With play_nice_sleep set to 0, Comskip processes a file in about 10 minutes but uses 80% to 90% of CPU. Set to any non-zero integer, CPU use drops to about 5% and processing takes about an hour.
Something in between would be nice.
play_nice could play nicer
Re: play_nice could play nicer
On what CPU?
-
- Posts: 39
- Joined: Tue Jan 31, 2012 12:13 am
Re: play_nice could play nicer
Celeron G530
http://www.costcentral.com/proddetail/I ... OgodqG0AWQ
Edit, after further testing:
=1 takes about 47 minutes
=-1 takes just about an hour
=5 takes just about an hour
=10 takes just about an hour
=100 would probably take most of the rest of my life.
Fractions of 1 just round down to 0, so my current options seem to be (as I originally postulated) 10 minutes at 85% or 50 minutes at 5%.
Something in between would be ideal.
http://www.costcentral.com/proddetail/I ... OgodqG0AWQ
Edit, after further testing:
=1 takes about 47 minutes
=-1 takes just about an hour
=5 takes just about an hour
=10 takes just about an hour
=100 would probably take most of the rest of my life.
Fractions of 1 just round down to 0, so my current options seem to be (as I originally postulated) 10 minutes at 85% or 50 minutes at 5%.
Something in between would be ideal.
-
- Posts: 39
- Joined: Tue Jan 31, 2012 12:13 am
Re: play_nice could play nicer
Any hope of allowing a play_nice_sleep = 0.5 in the future?
Re: play_nice could play nicer
Nope,
Can't sleep shorter then a millisecond on windows for the moment.
Can't sleep shorter then a millisecond on windows for the moment.
-
- Posts: 39
- Joined: Tue Jan 31, 2012 12:13 am
Re: play_nice could play nicer
Somehow, you fixed it anyway.
I missed a few, but just updated to 059. As you suggest, I ran it first with the default config file. It took about 8 minutes and used 90% to 95% of the CPU.
I then put in my play_nice code and it took about 45 minutes and used almost no CPU.
But setting play_nice_sleep = 0 now takes about 15 minutes with CPU usage between 45% and 50%.
PERFECT.
Many thanks again for your amazing efforts on this.
Michael
I missed a few, but just updated to 059. As you suggest, I ran it first with the default config file. It took about 8 minutes and used 90% to 95% of the CPU.
I then put in my play_nice code and it took about 45 minutes and used almost no CPU.
But setting play_nice_sleep = 0 now takes about 15 minutes with CPU usage between 45% and 50%.
PERFECT.
Many thanks again for your amazing efforts on this.
Michael