Subject: Changes to netstat -m (mbuf.c) reporting between 1.6 and 2.0 releases
To: , <tech-net@NetBSD.org>
From: David H.Gutteridge <dhgutteridge@sympatico.ca>
List: tech-net
Date: 11/02/2004 21:25:26
Hello,

I've noticed between the 1.6.x series and 2.0RC4 netstat -m no longer provides as much information, e.g.

(1.6.x)

133 mbufs in use:
	129 mbufs allocated to data
	4 mbufs allocated to packet headers
150/158 mapped pages in use
364 Kbytes allocated to network (93% in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines

(2.0RC4)

131 mbufs in use:
	129 mbufs allocated to data
	2 mbufs allocated to packet headers
8 calls to protocol drain routines

Looking at the source code for mbuf.c and the attached comments in CVS, I can see that there's been a move to use sysctl which has changed a lot of functionality.  Will the other information be added back in at some point, or am I simply inexpertly using the system, and there's somewhere else to get percent memory use, etc.?

Regards,

David Gutteridge