Multiple SAB processes

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.
Post Reply
barlow
Newbie
Newbie
Posts: 15
Joined: February 11th, 2008, 7:36 am

Multiple SAB processes

Post by barlow »

I've enjoyed SAbnzbd+ 0.3.0 now for about a week on a Debian x86 box :) Many thanks to the devs  :)
That's why i decided i wanted it on my Conceptronic CH3SNAS (NAS which is almost the same as D-Link DNS-323).
The CH3SNAS runs a chrooted Debian etch install. SABnzbd+ 0.3.0 (final) does run and is able to download. It even gets the max speed of my internet connection (about 630 KB/sec)  :D

However there is one weird thing. After starting SABnzbd there are exactly 20 SABnzbd.py (all with different pid) processes running. But on my Debian x86 there is only one SABnzbd.py proces.
What is causing this?
User avatar
neilt0
Full Member
Full Member
Posts: 120
Joined: January 22nd, 2008, 4:16 am

Re: Multiple SAB processes

Post by neilt0 »

Top on my LinkStation shows 1 process, HTop or other process viewers show multiple processes. What are you using to view processes?
barlow
Newbie
Newbie
Posts: 15
Joined: February 11th, 2008, 7:36 am

Re: Multiple SAB processes

Post by barlow »

Both ps -A and top show 20 processes.

Btw, if i shut down SABnzbd through the webinterface all the processes disappear.
Last edited by barlow on February 11th, 2008, 12:57 pm, edited 1 time in total.
User avatar
rascalli
Moderator
Moderator
Posts: 656
Joined: January 18th, 2008, 12:30 am
Location: Bossche bollen land

Re: Multiple SAB processes

Post by rascalli »

What command do you use to start sabnzbd+ ?
barlow
Newbie
Newbie
Posts: 15
Joined: February 11th, 2008, 7:36 am

Re: Multiple SAB processes

Post by barlow »

./SABnzbd.py -d -f sabnzbd.ini
This is in my init script.
User avatar
rascalli
Moderator
Moderator
Posts: 656
Joined: January 18th, 2008, 12:30 am
Location: Bossche bollen land

Re: Multiple SAB processes

Post by rascalli »

That seems normal.

What happens when you use :

./SABnzbd.py -d -f /theplace/wheretheiniis/sabnzbd.ini
barlow
Newbie
Newbie
Posts: 15
Joined: February 11th, 2008, 7:36 am

Re: Multiple SAB processes

Post by barlow »

That makes no difference. Every time exactely 20 processes  :o
djh01
Newbie
Newbie
Posts: 1
Joined: January 4th, 2009, 2:13 am

Re: Multiple SAB processes

Post by djh01 »

I'm experiencing the exact same behavior on CentOS 5.2, using htop to monitor processes.

Any resolution to this?

edit: 0.4.6
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Multiple SAB processes

Post by shypike »

Do you think it's a problem?
The program uses about 20 threads.
How the library of Python creates these threads may depend on the available OS kernel.

Put the program below in a file, let Python run it and see what the OS says about it.

Code: Select all

#!/bin/python

import threading
import time

class Tester(threading.Thread):
    def __init__(self, name):
        threading.Thread.__init__(self)
        self.name = name
    
    def run(self):
        while 1:
            time.sleep(2.0)
            print self.name


one = Tester("one")
two = Tester("two")
three = Tester("three")
four = Tester("four")
five = Tester("five")

one.start()
time.sleep(0.5)
two.start()
time.sleep(0.5)
three.start()
time.sleep(0.5)
four.start()
time.sleep(0.5)
five.start()

while 1:
    time.sleep(0.5)
User avatar
inpheaux
Administrator
Administrator
Posts: 563
Joined: January 16th, 2008, 9:14 pm

Re: Multiple SAB processes

Post by inpheaux »

As I posted elsewhere, it's htop, not sabnzbd. htop defaults to showing threads as processes, so multi-threaded applications (like sabnzbd) show up multiple times.
Post Reply