Page 1 of 1

SABnzbd wakes up far too frequently

Posted: April 11th, 2011, 6:02 pm
by joehammer
It appears from an strace that SABnzbd uses a select() with a 500 microsecond timeout causing it to wake up the CPU way more frequently than it needs. It would be better to have a large timeout and a pipe in the select set to wake it up if necessary.

Re: SABnzbd wakes up far too frequently

Posted: April 12th, 2011, 1:43 am
by shypike
Have you tested with other values and "the pipe" and whether or not this has side effects?
I would be interested to know.
It's always nice to see pro-active users.

Re: SABnzbd wakes up far too frequently

Posted: April 19th, 2011, 6:14 am
by joehammer
shypike wrote: Have you tested with other values and "the pipe" and whether or not this has side effects?
I would be interested to know.
It's always nice to see pro-active users.
Where is the canonical source repository? I couldn't find a mention of it and the SF.net project doesn't appear to have enabled any source code revision control features.