RHD:FAQ

From Rsewiki
(Difference between revisions)
Jump to: navigation, search
(mlockall error)
(mlockall error)
 
Line 23: Line 23:
 
This is probably not allowed, so change in /etc/security/limits.conf
 
This is probably not allowed, so change in /etc/security/limits.conf
  
add a line, e.g.:
+
add a line, e.g. (there is some guidance in the file):
 
  @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

Latest revision as of 11:10, 15 June 2009

[edit] 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. (there is some guidance in the file):

@users soft memlock unlimited

This sets the limit for all in users group to unlimited

- reboot is probably needed /Christian

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox