Subject: Re: bufpages
To: Greg Wohletz <greg@duke.CS.UNLV.EDU>
From: Simon Burge <simonb@telstra.com.au>
List: current-users
Date: 06/25/1998 10:26:49
On Wed, 24 Jun 1998 17:09:13 -0700  Greg Wohletz wrote:

> Also, are any statistics kept by the kernel that I can query on the
> effectiveness of the disk buffer cache?

This probably doesn't help, but there's a program called "monitor" for
Ultrix which I guess is like systat for NetBSD.  One of the displays was
a buffer cache page.  Here's the output:

	Elapsed time: 3.17
	Current time: Thu Jun 25 10:24:25 1998

	There are 32768 buffers using 134217728 bytes of memory.

	File System             Bufs used    Cache   Bytes used    Bufsize
	/var/squid                   5094     1568      9641984   23150592
	/var                         2231     2120     17169408   17612800
	/support                     2085     1777     15757312   15765504
	/data/7                      1877     1386      8268800   10309632
	/home                        1348     1278      9899008   10293248
	/data/1                      1307      674      9061376    9650176
	/ftp                         1254       79     10272768   10272768
	/data/0                       740      559      4794368    5312512
	/NetBSD                       239      164      1354752    1515520
	/data/3                       230       23      1836032    1839104
	/                             191      180      1088512    1269760
	/usr                          178      156      1095680    1220608
	/home/simonb/src               52       21       259072     331776
	/data/5                         2        2         9216      12288

	Total:                      16828     9987     90508288  108556288

	monitor> 

I'll have a quick look and see if it can be beaten into shape for NetBSD.

Simon.