0.7.4 CPU Load Extreme on OSX 10.8.2

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.
krap82
Newbie
Newbie
Posts: 7
Joined: November 2nd, 2012, 6:39 am

0.7.4 CPU Load Extreme on OSX 10.8.2

Post by krap82 »

I have been running 0.7.4 for a week now. Sabnzbd Process CPU load was at ca.170% almost continuously. I had to go back to 0.7.3 Now CPU load is normal again. (0-37%)

Details: After a fresh Sabnzbd start, Process CPU load starts low. But after the first download is started, Sabnzbd Process CPU load climbs to 160-180% and remains there. Even after finishing all downloads, Sabnzbd Process CPU load remains at ca.170% until I restart.

Before I went back, I tried:

- Sabnzbd restarts
- System restart
- Deactivate Sabnzbd Menu
- Change Skin

Any ideas?

Software:
Version: 0.7.4
OS: OSX 10.8.2 Mountain Lion
Install-type: OSx .app
Skin:Plush Gold, Smpl
Firewall Software: None on Mac, Fritz Router Firewall
Are you using IPV6? most likely no
Is the issue reproducible? yes
SickBeard and Coutchpatato also running

Hardware:
50Mbit DSL Connection
HDD:SAMSUNG SSD 830 Series Media
Modellname: Mac mini Intel Core i5 2,3 GHz
Memory: 8 GB
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: 0.7.4 CPU Load Extreme on OSX 10.8.2

Post by shypike »

The problem isn't reproducible for me.
One thing you can try is installing the "Lion" build of version 0.7.4.
Since 0.7.4 we have a specific build for MountainLion. The Lion build will work, but will miss some features.
I'm interested to see if it solves your CPU load issue.
Other than that it's very strange that SABnzbd can reach 170% CPU load, because it's a strictly single-core program.
krap82
Newbie
Newbie
Posts: 7
Joined: November 2nd, 2012, 6:39 am

Re: 0.7.4 CPU Load Extreme on OSX 10.8.2

Post by krap82 »

Ok. Interesting.
I will try 0.7.4.Lion over the weekend.
Here is a screenshot with 0.7.4.ML running at 160%.

Image
User avatar
sander
Release Testers
Release Testers
Posts: 9033
Joined: January 22nd, 2008, 2:22 pm

Re: 0.7.4 CPU Load Extreme on OSX 10.8.2

Post by sander »

50 threads?!

Can you see what kind of threads?

My guess: a thread per simultaneous connection. So do you have 50 connections defined? Can you lower it to 20 and what happens.
krap82
Newbie
Newbie
Posts: 7
Joined: November 2nd, 2012, 6:39 am

Re: 0.7.4 CPU Load Extreme on OSX 10.8.2

Post by krap82 »

I am just trying 0.7.4. Lion but with similar results. CPU Load 160% with 39 Threads. Even when Sabnzbd is paused.

I checked, I have 25 connections defined. That is what my usenetxl.nl account is supposed to offer. Now I lowered to 15 connections. No change in CPU load. Then restarted, and now I am at 25% CPU load, while downloading. Seems to work. Then I paused Sabnzbd and CPU went up to 108%. After resume I am still at 108%.
And now I am at ca. 140%.

- "Can you see what kind of threads?"
How do I do that?
User avatar
sander
Release Testers
Release Testers
Posts: 9033
Joined: January 22nd, 2008, 2:22 pm

Re: 0.7.4 CPU Load Extreme on OSX 10.8.2

Post by sander »

krap82 wrote:
- "Can you see what kind of threads?"
How do I do that?
On my Ubuntu Linux, I use 'htop', and then press F5 for tree view. Maybe it's available on OSX too?

Interesting: with my SABnzbd downloading nothing, htop shows 20 SABnzbd processes / threads ... :o
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: 0.7.4 CPU Load Extreme on OSX 10.8.2

Post by shypike »

Keep the lower connections count and do a "Queue Repair" from the Status page.
krap82
Newbie
Newbie
Posts: 7
Joined: November 2nd, 2012, 6:39 am

Re: 0.7.4 CPU Load Extreme on OSX 10.8.2

Post by krap82 »

shypike wrote:Keep the lower connections count and do a "Queue Repair" from the Status page.
Does not seem to make a difference. Still at 160% CPU load.
krap82
Newbie
Newbie
Posts: 7
Joined: November 2nd, 2012, 6:39 am

Re: 0.7.4 CPU Load Extreme on OSX 10.8.2

Post by krap82 »

sander wrote:
krap82 wrote:
- "Can you see what kind of threads?"
How do I do that?
On my Ubuntu Linux, I use 'htop', and then press F5 for tree view. Maybe it's available on OSX too?

Interesting: with my SABnzbd downloading nothing, htop shows 20 SABnzbd processes / threads ... :o

I had no time to look into htop so far.Maybe end of the week.
krap82
Newbie
Newbie
Posts: 7
Joined: November 2nd, 2012, 6:39 am

Re: 0.7.4 CPU Load Extreme on OSX 10.8.2

Post by krap82 »

CPU load problem persists in 0.7.5.

Screenshot: Even with Sabnzbd not downloading anything, the sabnzbd process is at 146% CPU.
https://www.evernote.com/shard/s250/sh/ ... 66e98e9f3c
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: 0.7.4 CPU Load Extreme on OSX 10.8.2

Post by shypike »

I didn't expect that 0.7.5 would solve anything, because I have no clue what causes this.
One more test.
Disable the top bar menu entry in Config->Special items osx_menu and osx_speed.
Then restart.
krap82
Newbie
Newbie
Posts: 7
Joined: November 2nd, 2012, 6:39 am

Re: 0.7.4 CPU Load Extreme on OSX 10.8.2

Post by krap82 »

shypike wrote:I didn't expect that 0.7.5 would solve anything, because I have no clue what causes this.
One more test.
Disable the top bar menu entry in Config->Special items osx_menu and osx_speed.
Then restart.
Already tried this without success.

Sabnzbd showed a warning today:

2012-11-05 18:11:22,435 FEHLER: Fehler beim Laden von /Users/johannahlers/Library/Application Support/SABnzbd/admin/future/SABnzbd_attrib
(Transl: Error while loading....)

Does that help?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: 0.7.4 CPU Load Extreme on OSX 10.8.2

Post by shypike »

Sigh.
I don't think the error is related, possible the result of a graceless abort.
As a last resort, can you try the SnowLeopard build of 0.7.5
It should work, but lacks some features (top menu icon, Notifications to NC, standby-prevention).

Desperate attempt:
Stop SABnzbd move all files out of /Users/johannahlers/Library/Application Support/SABnzbd/admin
Remove all jobs from the "temporary download folder".
Start.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: 0.7.4 CPU Load Extreme on OSX 10.8.2

Post by shypike »

Good news, I'm on track of this problem.
Under some circumstances the task that assembles articles into files
can be prevented from running, because the downloader/decoder is too busy.
The result is an ever increasing article cache, which results in excessive memory usage
and overall slowness because all tasks need to look up things in a huge article pool.

So far I have managed to prevent the choking and I'll add that to the coming 0.7.6 Beta.
There's some more rework needed to prevent related issues.

In short, none of the other suggestions I made will solve the problem.
The 0.7.6 Beta will be needed for that. With a bit of luck, before or in the weekend.
ApexDE
Newbie
Newbie
Posts: 31
Joined: August 8th, 2012, 6:09 am

Re: 0.7.6 CPU Load Extreme on OSX 10.8.2

Post by ApexDE »

I have exactly the same problem as the OP with 0.7.6. When SabNZB is started, CPU Usage is normal. After a download CPU Usage freaks out, about 160-180%. I am using ML 10.8.2
When i quit and start SabNZB again, CPU Usage is normal until i finished a download.

EDIT: Sabnzb runs normal, when using the Lion Build on ML.
Post Reply