Ubuntu precise 12.04 - Locked memory limit error
10 Feb 2014 19:49 - 10 Feb 2014 20:11 #43698
by jtc
Ubuntu precise 12.04 - Locked memory limit error was created by jtc
Hi.
I was trying the following tutorial to install linuxcnc on ubuntu 12.04:
wiki.linuxcnc.org/cgi-bin/wiki.pl?LinuxCNC_On_Ubuntu_Precise
but when I try to run it, I have this error:
I tried to add the "* - memlock 20480" line on the recommended file, but it exists already....
so what I can do to solve this? I'm using the "precise master-rt" version of linuxcnc.
Thanks,
João Tiago
I was trying the following tutorial to install linuxcnc on ubuntu 12.04:
wiki.linuxcnc.org/cgi-bin/wiki.pl?LinuxCNC_On_Ubuntu_Precise
but when I try to run it, I have this error:
RTAPI: ERROR: failed to map shmem
RTAPI: Locked memory limit is 64KiB, recommended at least 20480KiB.
This can cause the error 'failed to map shmem'.
For more information, see
http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?LockedMemory
(...)
I tried to add the "* - memlock 20480" line on the recommended file, but it exists already....
so what I can do to solve this? I'm using the "precise master-rt" version of linuxcnc.
Thanks,
João Tiago
Last edit: 10 Feb 2014 20:11 by BigJohnT.
Please Log in or Create an account to join the conversation.
10 Feb 2014 21:56 - 10 Feb 2014 23:43 #43703
by ArcEye
Replied by ArcEye on topic Ubuntu precise 12.04 - Locked memory limit error
Hi
Did you also try the rest of the solution?
I would imagine you can read 10.10 as >10.04
EDIT: If that does not work you can always add ulimit -l 20480 to your .bashrc file in your home directory
regards
Did you also try the rest of the solution?
For Ubuntu Lucid (10.10), also add the following line at the end of /etc/pam.d/common-session
session required pam_limits.so
Log out and log back in.
I would imagine you can read 10.10 as >10.04
EDIT: If that does not work you can always add ulimit -l 20480 to your .bashrc file in your home directory
regards
Last edit: 10 Feb 2014 23:43 by ArcEye.
Please Log in or Create an account to join the conversation.
11 Feb 2014 02:01 #43714
by jtc
Replied by jtc on topic Ubuntu precise 12.04 - Locked memory limit error
it works with "session required pam_limits.so"
Please Log in or Create an account to join the conversation.
Time to create page: 0.175 seconds