IPB

Welcome Guest ( Log In | Register )

Piperec.exe uses a lot of CPU
Mr_Rabid_Teddybe...
post Jun 13 2005, 16:39
Post #1





Group: Members
Posts: 1197
Joined: 3-September 03
From: Bergen, Norway
Member No.: 8667



Tried the following with piperec.exe from Case's site; first recording from soundcard to a file:
CODE
piperec 44100 16 2 | lame --preset standard - - > F:\test.mp3

Then send the result as a stream with ezstream:
CODE
piperec 44100 16 2 | lame --preset standard - - | ezstream -c C:\MYPATH\ezstream_stdin.xml

This is very practical and useful. However I discovered that CPU goes straight to 100% in both cases. I checked with Windows Task Manager and Sysinternals ProcessExplorer. Piperec uses between 30 to 50% of CPU. Also csrss.exe, the client/server run-time subsystem for Windows, uses an equal amount of CPU. The csrss process goes to these figures when piperec is started, and goes straight down as piperec process is stopped, so there's gotta be a connection. Then lame uses an 7-8% so all in all this uses almost 100% of CPU as long as it's run. As piperec only takes sound from soundcard and sends it to stdout as wav with specified samplerate, bitdepth and channels, I think it's a bit strange that it should use this much CPU. A bit pity too, as it's a useful tool (and the only Win32 command line tool I know of that does this).

My system has a nForce2 based Asus mobo with Athlon XP 3000+ and 1 GB RAM, running XPsp2.


--------------------
"ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts
Go to the top of the page
+Quote Post
 
Start new topic
Replies (1 - 8)
Preuss
post Jun 13 2005, 17:27
Post #2





Group: Members
Posts: 47
Joined: 18-March 02
Member No.: 1551



QUOTE (Mr_Rabid_Teddybear @ Jun 13 2005, 05:39 PM)
Piperec uses between 30 to 50% of CPU. Also csrss.exe, the client/server run-time subsystem for Windows, uses an equal amount of CPU. ...

I have compiled a new one for you, it should work. Lucky it was with source code ;-)

QUOTE (Mr_Rabid_Teddybear @ Jun 13 2005, 05:39 PM)
My system has a nForce2 based Asus mobo with Athlon XP 3000+ and 1 GB RAM, running XPsp2.
*

It's nothing to do with your mobo or processor. I have P4 and it also goes to 100% CPU usage.

Please use my new compile and try it out, please tell me if it works.
Cases piperec that no longer hog the CPU

Updated the link, now links to the upload forum.

This post has been edited by Preuss: Jun 14 2005, 22:43
Go to the top of the page
+Quote Post
Mr_Rabid_Teddybe...
post Jun 13 2005, 18:05
Post #3





Group: Members
Posts: 1197
Joined: 3-September 03
From: Bergen, Norway
Member No.: 8667



Works very fine! Now CPU usage hardly registers. smile.gif


--------------------
"ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts
Go to the top of the page
+Quote Post
Preuss
post Jun 13 2005, 19:03
Post #4





Group: Members
Posts: 47
Joined: 18-March 02
Member No.: 1551



QUOTE (Mr_Rabid_Teddybear @ Jun 13 2005, 07:05 PM)
Works very fine! Now CPU usage hardly registers. smile.gif
*


You are welcome, and I'm happy it works.

This post has been edited by Preuss: Jun 14 2005, 22:43
Go to the top of the page
+Quote Post
Mr_Rabid_Teddybe...
post Jun 13 2005, 19:33
Post #5





Group: Members
Posts: 1197
Joined: 3-September 03
From: Bergen, Norway
Member No.: 8667



I forgot the obvious: Thank You! smile.gif

I think you should leave it up at least a couple of days to give people a chance to show whether there's any interest.....


--------------------
"ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts
Go to the top of the page
+Quote Post
johny5
post Jun 13 2005, 19:37
Post #6





Group: Members
Posts: 110
Joined: 27-May 04
Member No.: 14369



I've never heard of this program but it sounds good. Im gonna give it a try. And thank you for fixing the bug Preuss.

LOL its only 4 kb smile.gif, this is the smallest program i've ever seen which still is usefull.

This post has been edited by johny5: Jun 13 2005, 19:39
Go to the top of the page
+Quote Post
Mr_Rabid_Teddybe...
post Jun 13 2005, 19:45
Post #7





Group: Members
Posts: 1197
Joined: 3-September 03
From: Bergen, Norway
Member No.: 8667



QUOTE (johny5 @ Jun 13 2005, 10:37 AM)
I've never heard of this program but it sounds good. Im gonna give it a try. And thank you for fixing the bug  Preuss.

LOL its only 4 kb smile.gif, this is the smallest program i've ever seen which still is usefull.
*

Actually it's the original that's 4,0 KB as it's compressed with UPX. The fixed version are piperec_fix.exe that's uncompressed and 16,0 KB large. If you compress that one with UPX the result are 4,5 KB.


--------------------
"ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts
Go to the top of the page
+Quote Post
Preuss
post Jun 13 2005, 22:42
Post #8





Group: Members
Posts: 47
Joined: 18-March 02
Member No.: 1551



QUOTE (Mr_Rabid_Teddybear @ Jun 13 2005, 08:33 PM)
I think you should leave it up at least a couple of days to give people a chance to show whether there's any interest.....
*

Ok then, I will leave it up for a week or so.

Now I have moved the link to the upload forum ;-)

This post has been edited by Preuss: Jun 14 2005, 22:44
Go to the top of the page
+Quote Post
Forfit
post May 7 2012, 15:06
Post #9





Group: Members
Posts: 200
Joined: 11-April 09
Member No.: 68870



Piperec now get 50% cpu and crss.exe other 50% about.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 29th August 2014 - 22:11