SABnzbd wakes up far too frequently

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
joehammer
Newbie
Newbie
Posts: 2
Joined: April 11th, 2011, 5:58 pm

SABnzbd wakes up far too frequently

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: SABnzbd wakes up far too frequently

Post 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.
joehammer
Newbie
Newbie
Posts: 2
Joined: April 11th, 2011, 5:58 pm

Re: SABnzbd wakes up far too frequently

Post 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.
Post Reply