Cannot allocate memory

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
meokey
Newbie
Newbie
Posts: 8
Joined: March 14th, 2012, 11:34 pm

Cannot allocate memory

Post by meokey »

I'm running sabnzbd on Drobo FS which is a small NAS with small embedded memory which means I have no way to add. Now I have such an error message

Code: Select all

2012-03-29 11:00:31,603 ERROR: Error [Errno 12] Cannot allocate memory while running par2_repair on set NCIS.S09E17.720p.WEB-DL.DD5.1.H.264
Does sabnzbd have an option to limit the memory usage, or can someone suggest a set of parameters fitting embedded systems? Thank you very much.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Cannot allocate memory

Post by shypike »

How much memory do you have?
meokey
Newbie
Newbie
Posts: 8
Joined: March 14th, 2012, 11:34 pm

Re: Cannot allocate memory

Post by meokey »

Drobo:/mnt/DroboFS/Shares/Public/temp/incomplete#more /proc/meminfo
MemTotal: 189028 kB
MemFree: 2340 kB
Buffers: 4736 kB

total used free shared buffers
Mem: 189028 186140 2888 0 4556
Swap: 262136 151128 111008
Total: 451164 337268 113896

Mem: 186352K used, 2676K free, 0K shrd, 4560K buff, 30196K cached
CPU: 6.6% usr 3.8% sys 11.2% nic 60.0% idle 17.6% io 0.0% irq 0.8% sirq
Load average: 1.35 1.22 1.56 4/85 12631
PID PPID USER STAT VSZ %MEM CPU %CPU COMMAND
4818 1 root S 411m222.3 0 15.4 /mnt/DroboFS/Shares/DroboApps/python2/bin/python /mnt/DroboFS/Shares/DroboApps/SABnzbdPlus/SABnzbd.py
Last edited by meokey on March 29th, 2012, 3:32 pm, edited 1 time in total.
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: Cannot allocate memory

Post by sander »

FWIW: I run SABnzbd on a headless system with 256 MB RAM like this:

Code: Select all

Mem:    243268k total,   239076k used,     4192k free,    31824k buffers
Swap:   524284k total,    57972k used,   466312k free,   106484k cached
In the meantime, check out http://forums.sabnzbd.org/viewtopic.php?t=4886 about memory usage and ... nzbget.

EDIT:

PS: as a test, I turned off swap, and that works too (tested with a 1 GB download)

Code: Select all

Mem:    243268k total,   215020k used,    28248k free,    22916k buffers
Swap:        0k total,        0k used,        0k free,    36076k cached
meokey
Newbie
Newbie
Posts: 8
Joined: March 14th, 2012, 11:34 pm

Re: Cannot allocate memory

Post by meokey »

sander wrote:
In the meantime, check out http://forums.sabnzbd.org/viewtopic.php?t=4886 about memory usage and ... nzbget.
I followed the tips by shypike, it does look better but still consuming a lot of mem.

Code: Select all

  PID  PPID USER     STAT   VSZ %MEM CPU %CPU COMMAND
13238     1 root     S     331m179.2   0  3.0 /mnt/DroboFS/Shares/DroboApps/python2/bin/python /mnt/DroboFS/Shares/DroboApps/SABnzbdPlus/SABnzbd.py
Wondering whether sabnzbd will have a special configuration for embedded systems in future releases ... comparing NZBGet that "seems to use up about 15MB of memory per connection, so about 60MB with 4 connections"
Post Reply