is there a way to optimize and/or speed up SABnzbd+?

Get help with all aspects of 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.
steve51184

is there a way to optimize and/or speed up SABnzbd+?

Post by steve51184 »

hi there i've just setup SABnzbd+ 0.3.3 on my server but i'm getting a really high load of about 2.0-5.0 and is slowing my sites/server down

is there anyway to optimize, tweak or speed up SABnzbd+ in ANY way?

server specs are amd 1.5ghz 1gb ram and 100mbits connection (i get 25mbits from my NSP)
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: is there a way to optimize and/or speed up SABnzbd+?

Post by shypike »

You are very sparse on details.

What is 2.0-5.0 ? Is is it CPU usage? Is SABnzbd actually downloading anything?
Which user interface are you using (Default, Plush or SMPL)?
What's the refresh rate of the queue?
If downloading, what is the load then, what speed do you get?

What OS?

BTW, you could page through the Wiki site a bit. Click the Help field in the interface.
steve51184

Re: is there a way to optimize and/or speed up SABnzbd+?

Post by steve51184 »

shypike wrote: What is 2.0-5.0 ? Is is it CPU usage? Is SABnzbd actually downloading anything?
i was talking about server load and yes it's downloading everything fine
shypike wrote: Which user interface are you using (Default, Plush or SMPL)?
Default
shypike wrote: What's the refresh rate of the queue?
10 seconds but i don't have the web interface open
shypike wrote: If downloading, what is the load then, what speed do you get?
the load goes from about 2.0 to about 5.0 and the speeds are 25mbits (2500KB/s)
shypike wrote: What OS?
linux: fedora core 4



at the time of posting this i don't have the web interface open but i'm download at 1963.94 KB/s and have a load of 4.07 with almost 100% cpu usage going to SABnzbd.py
Last edited by steve51184 on March 13th, 2008, 4:17 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: is there a way to optimize and/or speed up SABnzbd+?

Post by shypike »

Do you have the compiled yEnc module installed?
Check the start of the logfile.

Python-level yEnc decoding (done when the module is not installed) is a performance killer.
steve51184

Re: is there a way to optimize and/or speed up SABnzbd+?

Post by steve51184 »

shypike wrote: Do you have the compiled yEnc module installed?
Check the start of the logfile.

Python-level yEnc decoding (done when the module is not installed) is a performance killer.

i think you've answered my question but i need to check if it's not installed and if it's not i'll install it and then test it out
steve51184

Re: is there a way to optimize and/or speed up SABnzbd+?

Post by steve51184 »

where can i get yEnc as can't seem to find it

is it a part of uudeview?
Last edited by steve51184 on March 14th, 2008, 4:53 am, edited 1 time in total.
steve51184

Re: is there a way to optimize and/or speed up SABnzbd+?

Post by steve51184 »

just looked in my log file:
2008-03-14 10:13:05,101::INFO::_yenc module... found!
steve51184

Re: is there a way to optimize and/or speed up SABnzbd+?

Post by steve51184 »

since it wasn't that i have a new idea..

is there a way to limit the cpu usage of a command? if so can the script be modified to load par2/unrar with the new command

at the moment i only know of the command nice and that sets it to low priority but i don't think that will make much difference

also i only have a 1.5ghz cpu in my server to limiting the par/unrar command to a set amount of cpu usage will surly help
nzb_leecher
Full Member
Full Member
Posts: 211
Joined: January 22nd, 2008, 1:38 pm

Re: is there a way to optimize and/or speed up SABnzbd+?

Post by nzb_leecher »

what speed and size is the hd?
steve51184

Re: is there a way to optimize and/or speed up SABnzbd+?

Post by steve51184 »

speed is 7200rpm i think and size is 80gb
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: is there a way to optimize and/or speed up SABnzbd+?

Post by shypike »

SABnzbd callls the par2 and unrar programs using the nice command.
"Nice" is called with the default parameters. You could change this if you dive into
the Python code. It's in file sabnzbd/newsunpack.py, starting at line 891:

def build_command(command):
    if os.name != "nt":
        if NICE_COMMAND:
            command.insert(0, NICE_COMMAND)
        need_shell = False
        stup = None
        creationflags = 0

You can add a parameter for "nice" this way:

def build_command(command):
    if os.name != "nt":
        if NICE_COMMAND:
            command.insert(0, '-2')
            command.insert(0, '-n')
            command.insert(0, NICE_COMMAND)
        need_shell = False
        stup = None
        creationflags = 0

Experiment with the value ('-2' in the example).

(Code not tested!)
nzb_leecher
Full Member
Full Member
Posts: 211
Joined: January 22nd, 2008, 1:38 pm

Re: is there a way to optimize and/or speed up SABnzbd+?

Post by nzb_leecher »

If i see the speed of your computer and HD i am not suprised with the bad performance.  I have seen a few alike topics on other forums most of them had old laptop :-)
maybe you can win some speed with using less connections. In my case 3 or 8 connctions gives no more dload speed but 3s easier on the system. Use cache (i use 175mb for 50mb files) ) for the article decoding, it helped quiite a bit here.

And buy a new HD (a real one)  i know a fast one for you if you can miss  100 dollars. I know i buy two of them :-)
Last edited by nzb_leecher on March 14th, 2008, 4:06 pm, edited 1 time in total.
steve51184

Re: is there a way to optimize and/or speed up SABnzbd+?

Post by steve51184 »

shypike wrote: SABnzbd callls the par2 and unrar programs using the nice command.
"Nice" is called with the default parameters. You could change this if you dive into
the Python code. It's in file sabnzbd/newsunpack.py, starting at line 891:

def build_command(command):
    if os.name != "nt":
        if NICE_COMMAND:
            command.insert(0, NICE_COMMAND)
        need_shell = False
        stup = None
        creationflags = 0

You can add a parameter for "nice" this way:

def build_command(command):
    if os.name != "nt":
        if NICE_COMMAND:
            command.insert(0, '-2')
            command.insert(0, '-n')
            command.insert(0, NICE_COMMAND)
        need_shell = False
        stup = None
        creationflags = 0

Experiment with the value ('-2' in the example).

(Code not tested!)
this seems very good i change it to:

            command.insert(0, '19')
            command.insert(0, '-n')

so i hope it'll help!
steve51184

Re: is there a way to optimize and/or speed up SABnzbd+?

Post by steve51184 »

nzb_leecher wrote: If i see the speed of your computer and HD i am not suprised with the bad performance.  I have seen a few alike topics on other forums most of them had old laptop :-)
maybe you can win some speed with using less connections. In my case 3 or 8 connctions gives no more dload speed but 3s easier on the system. Use cache (i use 175mb for 50mb files) ) for the article decoding, it helped quiite a bit here.

And buy a new HD (a real one)  i know a fast one for you if you can miss  100 dollars. I know i buy two of them :-)
the connection and cache seems like a good tip will test this out and also what shypike suggested and post here after :)
steve51184

Re: is there a way to optimize and/or speed up SABnzbd+?

Post by steve51184 »

right the "nice" tweak didn't work or gave little performance

the cache tweak didn't work or gave little performance

the connection tweak did work a little but limited my speed so it's really a pro/con situation


i was thinking is there a way to NOT par2/unrar when i'm downloading?

so lats say i have 1 thing downloading and 2 things wasting in the queue it'd download all 3 things then par2 them and unrar etc
Post Reply