Subject: Re: proc.curproc.rlimit.memorylocked.soft
To: <>
From: David Laight <david@l8s.co.uk>
List: tech-kern
Date: 07/12/2002 22:15:34
On Fri, Jul 12, 2002 at 02:07:33PM -0700, Kamal Prasad wrote:
> the documentation indicates that this is a per-process
> limit. but on netbsd-current(not that Ive verified
> over ther flavors of unix), it seems to be a
> system-wide limit.
> ie if proc.curproc.rlimit.memorylocked.soft=100MB,
> then the sum of all processes that could do an mlock
> [over memory allocated using
> mmap(0,len,PROT_READ|PROT_WRITE,MAP_ANON|MAP_PRIVATE,-1,0)]
>  will be < 100MB.
> is this functionality correct?
> thanks

IMHO most of the rlimit values in netbsd are inappropriate.
Far too many of the 'hard' limits match the system limit,
and even some of the 'soft' limits are inappropriate.

Remember a non-root process can increase any 'soft' limit up
to the hard limit, and root can increase the 'hard' limit.
(the shell 'ulimit' command will set both limits...)

	David

-- 
David Laight: david@l8s.co.uk