Subject: Problems increasing buffer cache size
To: None <netbsd-help@netbsd.org>
From: Alex Nash <nash@mcs.net>
List: netbsd-help
Date: 11/13/1998 20:03:43
I'm attempting to use NetBSD/i386 1.3.2 as an NFS server on a machine
with 512MB of RAM.  By default, the system is allocating 2822 buffer
headers and ~26MB of buffer memory -- I'd like about 256MB of buffer
memory instead.

Searching the archives I came across various suggestions of 'options
BUFPAGES' and 'options NBUF'.  Getting BUFPAGES to increase the buffer
size >26MB was no problem, but, IIRC, NBUF had no effect.  With the
cache sized around 128MB, the kernels were highly unstable, sometimes
causing files to become damaged (the settings must have confused cache
management).  The kernel with BUFPAGES tuned for 256MB paniced early in
the boot sequence -- insufficient KVA space?  Do I need to increase
NKPDE (currently 63)?

If anyone has advice or a similar config they could share, it would be
greatly appreciated.

Alex