Keeping large amount of memory in threads

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
Bascy
Newbie
Newbie
Posts: 8
Joined: January 19th, 2009, 4:10 pm

Keeping large amount of memory in threads

Post by Bascy »

I'm using Sabnzb 0.5 on my ReadyNas Duo and it is working well. Memory on the nas is upgrade to 1Gb
It startled me a bit at first  that it initiated over 20 threads, but that shouldnt be a problem. Neither do I have any problem with Sabnzb using large amounts of memory when its very busy downloading lots of files.

What i do find problematic is that after a download is finished, and sabnzb is turning idle, empty queue and such, all the threads keep the memory they reserved for when they were busy. The 20+ threads keep 100k virtual mem reserved EACH!

Any way to tell them to let go of that memory (besides restarting of course!)?
Last edited by Bascy on March 31st, 2011, 5:49 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Keeping large amount of memory in threads

Post by shypike »

This is a generic problem with Python on Linux systems.
It's very reluctant to return memory to the OS.
BTW: any decent OS will swap out unused memory to disk,
so it shouldn't be a real problem.
On Windows and OSX we don't see this issue.

There's a very long discussion on this subject here:
http://forums.sabnzbd.org/index.php?topic=4713.45
Bascy
Newbie
Newbie
Posts: 8
Joined: January 19th, 2009, 4:10 pm

Re: Keeping large amount of memory in threads

Post by Bascy »

Ok, thanks for the reply
Post Reply