Page 1 of 3

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

Posted: March 13th, 2008, 2:54 am
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)

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

Posted: March 13th, 2008, 3:28 am
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.

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

Posted: March 13th, 2008, 4:08 am
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

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

Posted: March 14th, 2008, 4:28 am
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.

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

Posted: March 14th, 2008, 4:33 am
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

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

Posted: March 14th, 2008, 4:51 am
by steve51184
where can i get yEnc as can't seem to find it

is it a part of uudeview?

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

Posted: March 14th, 2008, 5:22 am
by steve51184
just looked in my log file:
2008-03-14 10:13:05,101::INFO::_yenc module... found!

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

Posted: March 14th, 2008, 6:51 am
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

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

Posted: March 14th, 2008, 11:52 am
by nzb_leecher
what speed and size is the hd?

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

Posted: March 14th, 2008, 11:55 am
by steve51184
speed is 7200rpm i think and size is 80gb

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

Posted: March 14th, 2008, 2:46 pm
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!)

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

Posted: March 14th, 2008, 4:04 pm
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 :-)

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

Posted: March 14th, 2008, 5:23 pm
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!

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

Posted: March 14th, 2008, 5:24 pm
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 :)

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

Posted: March 14th, 2008, 6:04 pm
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