Piperec.exe uses a lot of CPU |
![]() ![]() |
Piperec.exe uses a lot of CPU |
Jun 13 2005, 16:39
Post
#1
|
|
![]() Group: Members Posts: 1195 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 |
|
|
|
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) 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 |
|
|
|
Jun 13 2005, 18:05
Post
#3
|
|
![]() Group: Members Posts: 1195 Joined: 3-September 03 From: Bergen, Norway Member No.: 8667 |
Works very fine! Now CPU usage hardly registers.
-------------------- "ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts |
|
|
|
Jun 13 2005, 19:03
Post
#4
|
|
![]() Group: Members Posts: 47 Joined: 18-March 02 Member No.: 1551 |
|
|
|
|
Jun 13 2005, 19:33
Post
#5
|
|
![]() Group: Members Posts: 1195 Joined: 3-September 03 From: Bergen, Norway Member No.: 8667 |
I forgot the obvious: Thank You!
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 |
|
|
|
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 This post has been edited by johny5: Jun 13 2005, 19:39 |
|
|
|
Jun 13 2005, 19:45
Post
#7
|
|
![]() Group: Members Posts: 1195 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 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 |
|
|
|
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 |
|
|
|
May 7 2012, 15:06
Post
#9
|
|
|
Group: Members Posts: 144 Joined: 11-April 09 Member No.: 68870 |
Piperec now get 50% cpu and crss.exe other 50% about.
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 19th June 2013 - 04:00 |