Page 1 of 2

100% CPU load when downloading anything

Posted: December 11th, 2014, 1:39 pm
by WeirDave
Recently I have been plagued by a 100% CPU load when I try to download. If I pause the download normal CPU cycles continue. This happens on any download. If I have a single file or multiple files. After googling the issue I saw a post from a couple of years back that sad to attempt to do a que repair. This did not fix my issue. Any other suggestions?

v0.7.20

Thanks in advance,
WeirDave

Re: 100% CPU load when downloading anything

Posted: December 11th, 2014, 3:14 pm
by shypike
What kind of hardware and OS?

Re: 100% CPU load when downloading anything

Posted: March 2nd, 2015, 3:22 am
by kozunak
shypike wrote:What kind of hardware and OS?
Hi guys, new to the forum. I just installed sickbeard, couchpotato and sabnzbd in Ubuntu and am having the same/similar issue. Sabnzbd starts and everything runs smooth for a little while. Downloads start and shortly after the GUI becomes unresponsive.

Setup:
Ubuntu:14.04 (VM)
RAM: 6GB
CPU: 1 socket with 6 cores
Sabnzbd:

As I was typing the reply I noticed several entries of the following error in Sabnzbd:
********************************************************************************************************************************************************************************************************
[02/Mar/2015:00:18:23] Traceback (most recent call last): File "/usr/share/sabnzbdplus/cherrypy/_cpwsgi.py", line 79, in setapp s, h, b = self.get_response() File "/usr/share/sabnzbdplus/cherrypy/_cpwsgi.py", line 219, in get_response response = self.request.run(meth, path, qs, rproto, headers, rfile) File "/usr/share/sabnzbdplus/cherrypy/_cprequest.py", line 579, in run raise cherrypy.TimeoutError() TimeoutError
********************************************************************************************************************************************************************************************************
I installed the whole setup using this guide:
http://www.htpcbeginner.com/install-sabnzbd-on-ubuntu/

Thank you in advance for your help!

Re: 100% CPU load when downloading anything

Posted: March 2nd, 2015, 3:23 am
by kozunak
WeirDave wrote:Recently I have been plagued by a 100% CPU load when I try to download. If I pause the download normal CPU cycles continue. This happens on any download. If I have a single file or multiple files. After googling the issue I saw a post from a couple of years back that sad to attempt to do a que repair. This did not fix my issue. Any other suggestions?

v0.7.20

Thanks in advance,
WeirDave
WeirDave, were you able to resolve this? I am having same/similar issue :(

Re: 100% CPU load when downloading anything

Posted: March 2nd, 2015, 4:18 am
by sander
Kozunak,

If you set Logging to +Debug (via Status -> Latest Warnings -> Logging) and restart SABnzbd , the sabnzbd.log (via Status -> Latest Warnings -> Show Logging) will show a line like "CPU Pystone available performance is 83028". What does your logging show?

Furthermore, on Linux (and other Unix-like?) systems, SABnzbd shows in the upper right corner something like "Sysload: 0.00 | 0.01 | 0.05 | V=334M R=24M". What do you see there?

Re: 100% CPU load when downloading anything

Posted: March 2nd, 2015, 11:24 am
by kozunak
sander wrote:Kozunak,

If you set Logging to +Debug (via Status -> Latest Warnings -> Logging) and restart SABnzbd , the sabnzbd.log (via Status -> Latest Warnings -> Show Logging) will show a line like "CPU Pystone available performance is 83028". What does your logging show?

Furthermore, on Linux (and other Unix-like?) systems, SABnzbd shows in the upper right corner something like "Sysload: 0.00 | 0.01 | 0.05 | V=334M R=24M". What do you see there?
Here is the info requested:

2015-03-02 08:09:03,046::DEBUG::[sabnzbdplus:1294] CPU Pystone available performance is 268456

Sysload: 0.00 | 0.01 | 0.05 | V=3538M R=44M

Re: 100% CPU load when downloading anything

Posted: March 2nd, 2015, 11:30 am
by sander
Wow ... that is a beast of a machine, and so the CPU load is low "0.00".

Where do you get the information that the CPU load is 100%?

Re: 100% CPU load when downloading anything

Posted: March 2nd, 2015, 2:14 pm
by kozunak
Yeah, I threw more resources at it to try to remedy the situation :) Ideally, I would like to scale back. To answer your question, I get that info from PRTG monitoring that host. The CPUs show to go to 100%. I am assuming the Sabnzbd gui would also show 100% but it is unresponsive so I am unable to get the info that way...

Re: 100% CPU load when downloading anything

Posted: March 2nd, 2015, 2:23 pm
by sander
scale back to what?

Re: 100% CPU load when downloading anything

Posted: March 2nd, 2015, 3:49 pm
by kozunak
Scale back the resources provisioned to that VM...right now it has 6GB of RAM and 6 cores for CPU.

Re: 100% CPU load when downloading anything

Posted: March 2nd, 2015, 3:56 pm
by sander
kozunak wrote:Scale back the resources provisioned to that VM...right now it has 6GB of RAM and 6 cores for CPU.
Please be exact: what are the resources provisioned to that VM?

Re: 100% CPU load when downloading anything

Posted: March 2nd, 2015, 4:04 pm
by kozunak
sander wrote:
kozunak wrote:Scale back the resources provisioned to that VM...right now it has 6GB of RAM and 6 cores for CPU.
Please be exact: what are the resources provisioned to that VM?
CPU:
- 1 virtual socket
- 6 cores per virtual socket

RAM: 6GB

HDD:
- OS and applications Installed and running on SSD
- Media stores (TV, Movies, etc) are stored on NFS
- NFS shares are on FreeNAS 9.3 that is presenting the storage as ISCSI to ESXi. The disks are spindle type running in RAID5

Re: 100% CPU load when downloading anything

Posted: March 2nd, 2015, 4:46 pm
by sander
Well, with high spec hardware you describe (pystone above 200000, RAM 6GB) I can't imagine you get 100% CPU due to SABnzbd downloading.

Re: 100% CPU load when downloading anything

Posted: March 2nd, 2015, 5:17 pm
by kozunak
I would agree with you but I can replicate the issue 100 times a day :) Here is a screen shot of PRTG polling the CPU usage. You can see each core spiking to 100%
Image
Also, I am getting the following:
Error when trying to navigate to the GUI while Sabnzbd is downloading and CPU at 100%

Unrecoverable error in the server.
Traceback (most recent call last):
File "/usr/share/sabnzbdplus/cherrypy/_cpwsgi.py", line 79, in setapp
s, h, b = self.get_response()
File "/usr/share/sabnzbdplus/cherrypy/_cpwsgi.py", line 219, in get_response
response = self.request.run(meth, path, qs, rproto, headers, rfile)
File "/usr/share/sabnzbdplus/cherrypy/_cprequest.py", line 579, in run
raise cherrypy.TimeoutError()
TimeoutError

Errors from the log:

2015-03-02 14:00:32,410 ERROR: [02/Mar/2015:14:00:32] Traceback (most recent call last): File "/usr/share/sabnzbdplus/cherrypy/_cpwsgi.py", line 79, in setapp s, h, b = self.get_response() File "/usr/share/sabnzbdplus/cherrypy/_cpwsgi.py", line 219, in get_response response = self.request.run(meth, path, qs, rproto, headers, rfile) File "/usr/share/sabnzbdplus/cherrypy/_cprequest.py", line 579, in run raise cherrypy.TimeoutError() TimeoutError
2015-03-02 13:54:26,735 ERROR: [02/Mar/2015:13:54:26] Traceback (most recent call last): File "/usr/share/sabnzbdplus/cherrypy/_cpwsgi.py", line 79, in setapp s, h, b = self.get_response() File "/usr/share/sabnzbdplus/cherrypy/_cpwsgi.py", line 219, in get_response response = self.request.run(meth, path, qs, rproto, headers, rfile) File "/usr/share/sabnzbdplus/cherrypy/_cprequest.py", line 579, in run raise cherrypy.TimeoutError() TimeoutError
2015-03-02 13:54:26,735 ERROR: [02/Mar/2015:13:54:26] Traceback (most recent call last): File "/usr/share/sabnzbdplus/cherrypy/_cpwsgi.py", line 79, in setapp s, h, b = self.get_response() File "/usr/share/sabnzbdplus/cherrypy/_cpwsgi.py", line 219, in get_response response = self.request.run(meth, path, qs, rproto, headers, rfile) File "/usr/share/sabnzbdplus/cherrypy/_cprequest.py", line 579, in run raise cherrypy.TimeoutError() TimeoutError
2015-03-02 13:54:26,730 ERROR: [02/Mar/2015:13:54:26] Traceback (most recent call last): File "/usr/share/sabnzbdplus/cherrypy/_cpwsgi.py", line 79, in setapp s, h, b = self.get_response() File "/usr/share/sabnzbdplus/cherrypy/_cpwsgi.py", line 219, in get_response response = self.request.run(meth, path, qs, rproto, headers, rfile) File "/usr/share/sabnzbdplus/cherrypy/_cprequest.py", line 579, in run raise cherrypy.TimeoutError() TimeoutError

Re: 100% CPU load when downloading anything

Posted: March 3rd, 2015, 8:43 am
by sander
Did you search
File "/usr/share/sabnzbdplus/cherrypy/_cprequest.py", line 579, in run raise cherrypy.TimeoutError() TimeoutError
on this forum? Including the possible causes, like a HUGE queue.