Memory leak in v0.52 while unpacking on DS-209-II?

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.
Post Reply
mrombout
Newbie
Newbie
Posts: 5
Joined: May 19th, 2010, 3:38 pm

Memory leak in v0.52 while unpacking on DS-209-II?

Post by mrombout »

Hi all,

Version: 0.5.2 Final
OS: Synology Linux version 2.6.24, firmware DSM 2.3-1157
Install-type: NAS package, afterwards upgrade to v5.2 using SABhelper
Skin :Plush
Firewall Software: none
Are you using IPV6? : no
Is the issue reproducible? Probably when I fill up my queue with ±50GB of files

The main issue is that files are not being unrar´d when download has finished.
Memory is occupied for 81% at that time.
When I restart the SABNZBD service from the webinterface, memory usage drops to a comfortable 17% and operation continues as normal.

I also took some screenshots to clarify the issue and attached them to the post. In case you cant see them here´s a referral post on a Dutch Synology forum http://www.synology-forum.nl/viewtopic. ... 241#p18241
Any help or suggestions are very welcome  :)
Last edited by mrombout on May 20th, 2010, 2:13 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Memory leak in v0.52 while unpacking on DS-209-II?

Post by shypike »

SABnzbd is quite memory hungry and Python is reluctant to
give memory back to the OS.
How much memory do you have installed?
mrombout
Newbie
Newbie
Posts: 5
Joined: May 19th, 2010, 3:38 pm

Re: Memory leak in v0.52 while unpacking on DS-209-II?

Post by mrombout »

shypike wrote: SABnzbd is quite memory hungry and Python is reluctant to
give memory back to the OS.
How much memory do you have installed?
The NAS has 512 MB (default) of memory on board.
Can a tweak be applied to let Phyton release memory more frequently?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Memory leak in v0.52 while unpacking on DS-209-II?

Post by shypike »

Not to my knowledge.
Do you have a large memory cache setting in Config->General?
A 50G queue is not very big.
Can you check the SABnzbd_nzo_* files in the cache folder?
Most should be below 50K, if not than there's another problem.
mrombout
Newbie
Newbie
Posts: 5
Joined: May 19th, 2010, 3:38 pm

Re: Memory leak in v0.52 while unpacking on DS-209-II?

Post by mrombout »

shypike wrote: Not to my knowledge.
Do you have a large memory cache setting in Config->General?
A 50G queue is not very big.
Can you check the SABnzbd_nzo_* files in the cache folder?
Most should be below 50K, if not than there's another problem.
I assume you mean Article Cache Limit. This field has no value.
In the help file I see a tip; 0=Disable Cache -1= Unlimited cache number.
I´ve entered a 0 to disable the cache.
I will check the content and size of the SABnzbd_nzo_* files in the cache folder when I get home.

Update:
SABnzbd_nzo_IAxeiK, 14.970.880 bytes
SABnzbd_nzo_IdcDnZ, 0 bytes
SABnzbd_nzo_WKosYV, 209.299 bytes

So the first one is almost 15 MB?  ???
Last edited by mrombout on May 20th, 2010, 10:38 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Memory leak in v0.52 while unpacking on DS-209-II?

Post by shypike »

The first one is likely the active job.
It is rather big. How much needs to be downloaded?
If it's about 20G or bigger, than the size matches.

We haven't really looked at memory consumption and (temporary)
memory leaks. We will in the future, but the to-do list is large.
Also, on the average PC/Mac, it's seldom an issue.
mrombout
Newbie
Newbie
Posts: 5
Joined: May 19th, 2010, 3:38 pm

Re: Memory leak in v0.52 while unpacking on DS-209-II?

Post by mrombout »

shypike wrote: The first one is likely the active job.
It is rather big. How much needs to be downloaded?
If it's about 20G or bigger, than the size matches.

We haven't really looked at memory consumption and (temporary)
memory leaks. We will in the future, but the to-do list is large.
Also, on the average PC/Mac, it's seldom an issue.
The queue was empty at that point...
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Memory leak in v0.52 while unpacking on DS-209-II?

Post by shypike »

OK, so that was debris left behind (an issue that will be solved in 0.6.0).
At this moment there's not much more I can advise or do.
mrombout
Newbie
Newbie
Posts: 5
Joined: May 19th, 2010, 3:38 pm

Re: Memory leak in v0.52 while unpacking on DS-209-II?

Post by mrombout »

shypike wrote: OK, so that was debris left behind (an issue that will be solved in 0.6.0).
At this moment there's not much more I can advise or do.
Never mind Shypike, we´ll see what the disablement of the cache will do.
Looking forward to 0.6.0 though!  ;)

Keep up the great work you are doing! Respect for such a versatile / wonderful product.
Post Reply