Page 1 of 1

Cannot allocate memory

Posted: March 29th, 2012, 12:43 pm
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.

Re: Cannot allocate memory

Posted: March 29th, 2012, 1:29 pm
by shypike
How much memory do you have?

Re: Cannot allocate memory

Posted: March 29th, 2012, 2:40 pm
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

Re: Cannot allocate memory

Posted: March 29th, 2012, 3:10 pm
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

Re: Cannot allocate memory

Posted: March 29th, 2012, 3:54 pm
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"