RHD:FAQ: Difference between revisions
From Rsewiki
(New page: ===mlockall error=== If you get an error like: mlockall: Cannot allocate memory It is most likely due to a limit in the amount of memory a user may lock (protect against swap) see the li...) |
|||
Line 26: | Line 26: | ||
@users soft memlock unlimited | @users soft memlock unlimited | ||
This sets the limit for all in users group to unlimited | This sets the limit for all in users group to unlimited | ||
- reboot is probably needed | |||
/Christian |
Revision as of 09:57, 15 June 2009
mlockall error
If you get an error like:
mlockall: Cannot allocate memory
It is most likely due to a limit in the amount of memory a user may lock (protect against swap)
see the limits bu
$ ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 8180 max locked memory (kbytes, -l) 32 max memory size (kbytes, -m) unlimited open files (-n) 1024 ...
here the limit is 32k, this is too small
Change try to set to a higher value, or unlimited:
$ulimit -l unlimited
This is probably not allowed, so change in /etc/security/limits.conf
add a line, e.g.:
@users soft memlock unlimited
This sets the limit for all in users group to unlimited
- reboot is probably needed /Christian