Subject: Re: new memory allocation scheme and disk access
To: Luke Mewburn <lukem@NetBSD.org>
From: Kouichirou Hiratsuka <hira@po6.nsk.ne.jp>
List: current-users
Date: 01/03/2004 15:19:01
Hello,

At Sat, 3 Jan 2004 12:31:26 +1100,
Luke Mewburn wrote:
> 
> On Sat, Jan 03, 2004 at 01:26:38AM +0900, Kouichirou Hiratsuka wrote:
>   | My system has 1G bytes RAM and free memory was about 550M bytes at
>   | the time of second build of the kernel. But it was very slow by hard
>   | disk accesses. It seems to be related with new memory allocation
>   | scheme for the buffer cache.
> 
> What is
> 	sysctl kern.maxvnodes
> on your system?
> 
> If it's < 50000, have you tried
> 	sysctl -w kern.maxvnodes=131072
> (or even 262144 or larger again) ?
>

On my system kern.maxvnodes was 32721. I set it to 131072 and tried
again.

# sysctl -w kern.maxvnodes=131072
kern.maxvnodes: 32721 -> 131072
# cd /usr/src/sys/arch/i386/compile/GENERIC
# make clean > /dev/null; time make > /dev/null
       383.01 real      340.26 user        34.50 sys
# /usr/libexec/locate.updatedb
# make clean > /dev/null; time make > /dev/null
       384.32 real      341.39 user        35.37 sys

It seems to be good. Thank you very much for the advice.

best regards.

-- 
 Kouichirou Hiratsuka
   hira@po6.nsk.ne.jp