Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Need to unlock Locked Memory

  1. #1

    Question 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.


  2. #2
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,744

    Default Re: Need to unlock Locked Memory

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

    Make the change there. Will probably require a reboot

  3. #3
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Need to unlock Locked Memory

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

    > [image:
    > http://slackermedia.info/handbook/li...ur_ignore.png]


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

    --
    Cheers / Saludos,

    Carlos E. R.

    (from 13.1 x86_64 "Bottle" (Minas Tirith))

  4. #4

    Default Re: Need to unlock Locked Memory

    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.

  5. #5
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Need to unlock Locked Memory

    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:

    Code:
    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)

  6. #6
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,744

    Default Re: Need to unlock Locked Memory

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

  7. #7
    Join Date
    Aug 2008
    Location
    Brazil
    Posts
    2,908

    Default Re: Need to unlock Locked Memory

    It seems to be obsolete. From man ulimit:

    Code:
    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:

    Code:
    man <utility_name>

  8. #8
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Need to unlock Locked Memory

    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))

  9. #9
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,846
    Blog Entries
    14

    Default Re: Need to unlock Locked Memory

    Quote Originally Posted by robin_listas View Post
    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.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  10. #10
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Need to unlock Locked Memory

    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 :-)

    --
    Cheers / Saludos,

    Carlos E. R.

    (from 13.1 x86_64 "Bottle" (Minas Tirith))

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •