Subject: Re: File/Buffer cache consumes all memory even when constrained in sysctl
To: None <current-users@netbsd.org>
From: Thor Lancelot Simon <tls@rek.tjls.com>
List: current-users
Date: 05/16/2004 22:52:09
On Mon, May 17, 2004 at 10:53:29AM +1000, George Michaelson wrote:
> 
> I have:
> 
> $ sudo sysctl vm
> Password:
> vm.loadavg: 1.76 1.63 1.11
> vm.nkmempages = 32768
> vm.anonmin = 10
> vm.execmin = 5
> vm.filemin = 10
> vm.maxslp = 20
> vm.uspace = 16384
> vm.anonmax = 80
> vm.execmax = 30
> vm.filemax = 50
> vm.bufcache = 15
> vm.bufmem = 72824832
> vm.bufmem_lowater = 20106240
> vm.bufmem_hiwater = 160849920
> $
> 
> But even with this, I find that on my 1GB IBM X31, a cvs followed by a
> build.sh forces available memory for apps down below 30Mb. 

I'm not sure what you mean by "available memory for apps", but perhaps you
can approximate it by increasing vm.anonmin and vm.execmin significantly.

I suspect that you will find that this makes your system slower, not
faster.

Thor