summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorbmilekic <bmilekic@FreeBSD.org>2003-05-15 19:05:28 +0000
committerbmilekic <bmilekic@FreeBSD.org>2003-05-15 19:05:28 +0000
commitf48bcc48de0a67fdb1915dde82d3e150840ac9c6 (patch)
tree38fc4f060cf169e0a53109d86e86a77189e1e251 /usr.bin
parent211414dc5e58705776a2a58363c1528176abedb4 (diff)
downloadFreeBSD-src-f48bcc48de0a67fdb1915dde82d3e150840ac9c6.zip
FreeBSD-src-f48bcc48de0a67fdb1915dde82d3e150840ac9c6.tar.gz
Make the mb_alloc low-watermark sysctl-tunable read-only and make
netstat(1) not display it for now because its effects are not yet completely implemented and we're about to cut 5.2-RELEASE. This is temporary. Approved by: re (scottl, rwatson)
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/netstat/mbuf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.bin/netstat/mbuf.c b/usr.bin/netstat/mbuf.c
index 7c9b2b3..4da47cd 100644
--- a/usr.bin/netstat/mbuf.c
+++ b/usr.bin/netstat/mbuf.c
@@ -253,7 +253,9 @@ mbpr(u_long mbaddr, u_long mbtaddr __unused, u_long nmbcaddr, u_long nmbufaddr,
totused[0] = totnum - totfree;
printf("\tTotal:\t\t%lu/%lu (in use/in pool)\n", totused[0], totnum);
printf("\tMbuf cache high watermark: %d\n", mbuf_hiwm);
+#ifdef NOTYET
printf("\tMbuf cache low watermark: %d\n", mbuf_lowm);
+#endif
printf("\tMaximum possible: %d\n", nmbufs);
printf("\tAllocated mbuf types:\n");
for (mp = mbtypenames; mp->mt_name; mp++) {
@@ -292,7 +294,9 @@ mbpr(u_long mbaddr, u_long mbtaddr __unused, u_long nmbcaddr, u_long nmbufaddr,
totused[1] = totnum - totfree;
printf("\tTotal:\t\t%lu/%lu (in use/in pool)\n", totused[1], totnum);
printf("\tCluster cache high watermark: %d\n", clust_hiwm);
+#ifdef NOTYET
printf("\tCluster cache low watermark: %d\n", clust_lowm);
+#endif
printf("\tMaximum possible: %d\n", nmbclusters);
printf("\t%lu%% of cluster map consumed\n", ((totspace[1] * 100) /
(nmbclusters * MCLBYTES)));
OpenPOWER on IntegriCloud