Need to unlock Locked Memory

I am using Ardour and received a warning from the program telling that I have a limit for maximum locked memory. I know the command is “ulimit -l” that shows 64, but I can’t unlock it. I searched about it but without success.

http://slackermedia.info/handbook/lib/exe/fetch.php?media=ardour_ignore.png

I do believe it is adjusted in /etc/security/limits.conf

Make the change there. Will probably require a reboot

On 2015-09-17 02:26, Adnilson wrote:

> [image:
> http://slackermedia.info/handbook/lib/exe/fetch.php?media=ardour_ignore.png]

Well, the photo says exactly where you have to change it :slight_smile:


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

First of all thank you for the fast reply.
What should I write in the conf file? I am a noob.
I tried to change in bash using “ulimit -l 2900” but it does not accept my sudo, when I ran with root it changed but the user stayed locked at 64.

On 2015-09-17 03:56, Adnilson wrote:
>
> First of all thank you for the fast reply.
> What should I write in the conf file? I am a noob.
> I tried to change in bash using “ulimit -l 2900” but it does not accept
> my sudo, when I ran with root it changed but the user stayed locked at
> 64.

You have to change the file, then try log out and in. If it does not
apply, then reboot.

The file is self documented.

You would need something like:


USERNAME  soft  memlock  number

I don’t know if it is soft or hard.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

One thing you have to be root to edit the file because that is who owns it

It seems to be obsolete. From man ulimit:

NAME
       ulimit - get and set user limits

SYNOPSIS
       #include <ulimit.h>

       long ulimit(int cmd, long newlimit);

DESCRIPTION
       Warning: This routine is obsolete.  Use getrlimit(2), setrlimit(2), and sysconf(3) instead.  For the shell command ulimit(), see bash(1).

       The ulimit() call will get or set some limit for the calling process.  The cmd argument can have one of the following values.
...

Perhaps a check of the utilities mentioned will help. You can see them with:

man *<utility_name>*

On 2015-09-17 05:36, brunomcl wrote:
> It seems to be obsolete. From -man ulimit-:

Well, only root can change the (some of the) limits, so it would not
work for a user.


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

Permissions have nothing to do with obsoleteness.

On 2015-09-17 14:46, Knurpht wrote:

> Permissions have nothing to do with obsoleteness.

being obsolete is not the reason it doesn’t work :slight_smile:


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

This is how I do it for Jack:

Add user account to the “audio” group.
Add following lines to /etc/security/limits.conf:

@audio - rtprio 99
@audio - memlock unlimited

Then reboot!

Done! Thanks a lot!!!