Tuesday, December 26, 2023

systat mbuf vs. netstat -m

In various places, netstat/mbuf.c does stuff like this against the hiwat value:

printf("%u/%lu mbuf %d byte clusters in use"
" (current/peak)\n",
mclpools[i].pr_nout,
(unsigned long)
mclpools[i].pr_hiwat * mclpools[i].pr_itemsperpage,
mclpools[i].pr_size);

for this result:

3/144 mbuf 2048 byte clusters in use (current/peak)
1011/83430 mbuf 2112 byte clusters in use (current/peak)

the hiwat according to systat mbuf is:

IFACE RING LIVELOCKS SIZE ALIVE LWM HWM CWM
System mbufs 0 256 2311 5254
mcl2k 2048 6 18
mcl2k2 2112 1014 5562

Is this sensible?

No comments:

Post a Comment