Page 1 of 1

Python 2.6 causes 100% CPU usage in some areas

Posted: April 8th, 2009, 11:43 am
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

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

Posted: April 8th, 2009, 12:53 pm
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