Subject: Re: limit on locked memory
To: Eric Haszlakiewicz <erh@nimenees.com>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-kern
Date: 07/29/2004 21:41:53
On Thu, Jul 29, 2004 at 01:32:02PM -0500, Eric Haszlakiewicz wrote:
> 	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)

Yes ! changed this to
uvmexp.wiredmax = uvmexp.npages - 32768, and now:
Memory: 12M Act, 872M Wired, 3712K Exec, 3184K File, 89M Free
Swap: 1201M Total, 1201M Free

  PID USERNAME PRI NICE   SIZE   RES STATE      TIME   WCPU    CPU COMMAND
  229 root      64    0   128M  129M RUN/0      2:39 29.98% 29.98% memtest
  628 root      64    0   128M  129M RUN/0      2:35 29.30% 29.30% memtest
  524 root      64    0   128M  129M RUN/1      2:36 29.00% 29.00% memtest
  227 root      64    0   128M  129M RUN/1      2:36 28.56% 28.56% memtest
  331 root      64    0   128M  129M CPU/1      2:26 26.86% 26.86% memtest
  694 root      64    0   128M  129M RUN/0      2:29 26.76% 26.76% memtest
  533 root      64    0   105M  106M RUN/0      2:31 25.73% 25.73% memtest


(I could probably run a single memtest with 872M, but I also want to exercise
the data path to both CPUs :)

thanks !

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--