Subject: Re: proc.curproc.rlimit.memorylocked.soft
To: Kamal Prasad <kamalpr@yahoo.com>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: tech-kern
Date: 07/16/2002 17:41:07
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?
No, it's really 100MB per process. I don't think there is a system-wide
limit.
--
Manuel Bouyer, LIP6, Universite Paris VI. Manuel.Bouyer@lip6.fr
--