RHD:FAQ
From Rsewiki
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