Subject: using X buffers containing Y KB of memeory -- broken?
To: None <port-sparc@netbsd.org>
From: Sean Doran <smd@ebone.net>
List: port-sparc
Date: 10/28/1999 19:08:55
Hi -

   Please examine the "using X buffers..." lines below.   Sources
are -current, as of yesterday.

NetBSD 1.4L (SMDSUN) #1: Thu Oct 28 18:17:54 CEST 1999
total memory = 32592 KB
avail memory = 29432 KB
using 2048 buffers containing 512 KB of memory

NetBSD 1.4L (SMDSUN) #0: Wed Oct 27 21:00:04 CEST 1999
total memory = 32592 KB
avail memory = 29656 KB
using 128 buffers containing 512 KB of memory

   The first of these is a kernel compiled with "options BUFCACHE=20".
The second was compiled with "options NBUF=2048" and "options BUFPAGES=2048".

   Note that we do not see 20% of the memory allocated to buffers in
the second paste above, and while we do see 2048 pages of buffer cache
in the first one, we do not have an accurate count of memory (it's not 512KB).

   This seems to be at least port-specific; the numbers work out OK
in -i386 and -alpha whether I use "BUFCACHE" or "NBUF"+"BUFPAGES".

   Is this worth a PR? 

	Sean.