Python 2.6 causes 100% CPU usage in some areas

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
GraveR
Newbie
Newbie
Posts: 1
Joined: April 8th, 2009, 11:29 am

Python 2.6 causes 100% CPU usage in some areas

Post by GraveR »

Since at least 0.4.7 and Ubuntu Jaunty (testing) SABnzbd+ shoots to 100% CPU usage and the webGUI becomes unresponsive when using Python 2.6 (default for Jaunty). This problem does not exist when forcing SABnzbd+ to use Python 2.5.

This can be reproduced by doing at least the following:

1) Change server properties and hit save, the gui becomes unresponsive and the SABnzbd+ process shoots to 100% (the settings are applied in the config file, though)
2) Hit 'Shutdown', 'Initiating shutdown...' is displayed, but 'SABnzbd-0.4.8 shutdown finished' never shows, again the process shoots to 100%

Python versions: Python 2.5.4 and Python 2.6.2c1
OS: Ubuntu Jaunty (9.04) x86_64

A minor issue is that a deprecation warning is printed for cherrypy/lib/cptools.py and cherrypy/filters/sessionfilter.py that the modules md5 and sha are to be replaced by hashlib
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Python 2.6 causes 100% CPU usage in some areas

Post by switch »

We don't yet support python 2.6

SABnzbd 0.4.x does not support python 2.6
SABnzbd 0.5.0 will not be fully supported either, however it should work better.

We are waiting on third party modules to be updated for 2.6 support. The 100% CPU issue is likely from the scheduler restarting (kronos.py) which the 0.4.x version has problems with 2.6.

For more information see http://forums.sabnzbd.org/index.php?topic=1849.0
Last edited by switch on April 8th, 2009, 1:05 pm, edited 1 time in total.
Post Reply