diff options
author | andre <andre@FreeBSD.org> | 2006-02-18 16:03:07 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2006-02-18 16:03:07 +0000 |
commit | 63290a386aceb1bcda2036b63afc5d81f2645455 (patch) | |
tree | dbf26234488e12b333fc7c6add7398a76f5cc90d /usr.bin/netstat | |
parent | 733ad39b75bacfac28495d7f97f06cdc7d775d09 (diff) | |
download | FreeBSD-src-63290a386aceb1bcda2036b63afc5d81f2645455.zip FreeBSD-src-63290a386aceb1bcda2036b63afc5d81f2645455.tar.gz |
Print statistics on mbuf+clusters in packet zone.
Sponsored by: TCP/IP Optimization Fundraise 2005
MFC after: 3 days
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r-- | usr.bin/netstat/mbuf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.bin/netstat/mbuf.c b/usr.bin/netstat/mbuf.c index 1a14969..cfed1f4 100644 --- a/usr.bin/netstat/mbuf.c +++ b/usr.bin/netstat/mbuf.c @@ -203,6 +203,10 @@ mbpr(void *kvmd, u_long mbaddr) cluster_count - packet_free, cluster_free + packet_free, cluster_count + cluster_free, cluster_limit); + printf("%llu/%llu mbuf+clusters of packet zone in use " + "(current/cache)\n", + packet_count, packet_free); + printf("%llu/%llu/%llu/%llu %lluk (page size) jumbo clusters in use " "(current/cache/total/max)\n", jumbop_count, jumbop_free, jumbop_count + jumbop_free, |