diff options
author | bmilekic <bmilekic@FreeBSD.org> | 2003-05-15 19:05:28 +0000 |
---|---|---|
committer | bmilekic <bmilekic@FreeBSD.org> | 2003-05-15 19:05:28 +0000 |
commit | f48bcc48de0a67fdb1915dde82d3e150840ac9c6 (patch) | |
tree | 38fc4f060cf169e0a53109d86e86a77189e1e251 /sys | |
parent | 211414dc5e58705776a2a58363c1528176abedb4 (diff) | |
download | FreeBSD-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 'sys')
-rw-r--r-- | sys/kern/subr_mbuf.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/kern/subr_mbuf.c b/sys/kern/subr_mbuf.c index 8736526..692316f 100644 --- a/sys/kern/subr_mbuf.c +++ b/sys/kern/subr_mbuf.c @@ -53,6 +53,9 @@ /* * mb_alloc: network buffer allocator + * + * XXX: currently, the "low watermark" sysctl is marked read-only as its + * effects are not completely implemented. To be fixed soon. */ /* @@ -318,11 +321,11 @@ SYSCTL_INT(_kern_ipc, OID_AUTO, mbuf_wait, CTLFLAG_RW, &mbuf_wait, 0, "Sleep time of mbuf subsystem wait allocations during exhaustion"); SYSCTL_UINT(_kern_ipc, OID_AUTO, mbuf_hiwm, CTLFLAG_RW, &mbuf_hiwm, 0, "Upper limit of number of mbufs allowed in each cache"); -SYSCTL_UINT(_kern_ipc, OID_AUTO, mbuf_lowm, CTLFLAG_RW, &mbuf_lowm, 0, +SYSCTL_UINT(_kern_ipc, OID_AUTO, mbuf_lowm, CTLFLAG_RD, &mbuf_lowm, 0, "Lower limit of number of mbufs allowed in each cache"); SYSCTL_UINT(_kern_ipc, OID_AUTO, clust_hiwm, CTLFLAG_RW, &clust_hiwm, 0, "Upper limit of number of mbuf clusters allowed in each cache"); -SYSCTL_UINT(_kern_ipc, OID_AUTO, clust_lowm, CTLFLAG_RW, &clust_lowm, 0, +SYSCTL_UINT(_kern_ipc, OID_AUTO, clust_lowm, CTLFLAG_RD, &clust_lowm, 0, "Lower limit of number of mbuf clusters allowed in each cache"); SYSCTL_STRUCT(_kern_ipc, OID_AUTO, mbstat, CTLFLAG_RD, &mbstat, mbstat, "Mbuf general information and statistics"); |