Subject: Re: limit on locked memory
To: Jason Thorpe <thorpej@wasabisystems.com>
From: Eric Haszlakiewicz <erh@jodi.nimenees.com>
List: tech-kern
Date: 07/29/2004 13:32:02
On Thu, Jul 29, 2004 at 11:20:34AM -0700, Jason Thorpe wrote:
> On Jul 29, 2004, at 9:42 AM, Manuel Bouyer wrote:
> 
> >of course I raised all limits to the max, memorylocked and memoryuse 
> >are
> >unlimited, datasize is at 1GB.
> >Any idea of what is the limiting factor and if it's easy to raise ?
> >With this limit, I can only test 1/3 of the available RAM ...
> 
> I think there's a system-wide limit that applies, also.  Not sure how 
> you change it.
	uvm_pdaemon.c:  uvmexp.wiredmax = uvmexp.npages / 3;
It doesn't look like it's dynamically adjustable, but it wouldn't be too hard
to add to go with the other vm.*max sysctls. (uvm_meter.c)

eric