Re: Problem with RLIMIT_MEMLOCK

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




AFAIK, if you are not root, and the administrator has set 
ulimit -l <some_limit>, there is no help for you - you can't set the limit
higher.

You can set it higher only if the administrator has set it as a soft limit
(i.e. with -S option).

	Tomas

> How can a process set its mlock() limit to unlimited?  I already did 
> "ulimit -l unlimited" as root, but when I call getrlimit(), it returns 
> 32KB.  My process can't call setrlimit() because it doesn't have root 
> privileges.  I have an application that needs to lock down tens of 
> megabytes of RAM, and I was hoping the user-space mlock() changes in 
> 2.6.10 would solve my problems.
> 
> -- 
> Timur Tabi
> Staff Software Engineer
> timur.tabi@xxxxxxxxxxx
> 
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux