mbuf statistics

Hongjiang Zhang honzhan at microsoft.com
Wed Dec 2 03:17:22 UTC 2015


I can observe the same phenomena on FreeBSD 10.2: current+cache==total==USED+FREE.
There must be some relationship between them.

$ netstat -mb|grep "mbuf clusters"
0/766/766/126146 mbuf clusters in use (current/cache/total/max)

$ vmstat -z|egrep "mbuf_cluster|ITEM"|column -t
ITEM           SIZE   LIMIT    USED  FREE  REQ   FAIL  SLEEP
mbuf_cluster:  2048,  126146,  759,  7,    759,  0,    0

-----Original Message-----
From: owner-freebsd-net at freebsd.org [mailto:owner-freebsd-net at freebsd.org] On Behalf Of Hooman Fazaeli
Sent: 2015年12月2日 0:06
To: freebsd-net at freebsd.org
Subject: mbuf statistics


Hi,

On an idle freebsd 9.3 system:

> vmstat -z | egrep "mbuf_cluster|ITEM" | column -t
ITEM           SIZE   LIMIT   USED   FREE  REQ    FAIL  SLEEP
mbuf_cluster:  2048,  10284,  1152,  56,   4237,  0,    0

> netstat -mb | grep "mbuf clusters in use"
512/696/1208/10284 mbuf clusters in use (current/cache/total/max)

one can see that:

current + cache == total == USED + FREE

but the current/cache values as reported by netstat are very different form USED/FREE values reported by vmstat, so they should have different meaning.

The question is: what is the exact meaning of USED/FREE and current/cache values? Is there any relationship between them?

--
Best regards
Hooman Fazaeli

_______________________________________________
freebsd-net at freebsd.org mailing list
https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2flists.freebsd.org%2fmailman%2flistinfo%2ffreebsd-net&data=01%7c01%7chonzhan%40064d.mgd.microsoft.com%7c23b4f4abbceb4f717fba08d2fa695134%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=dprvahDUYdoMYi22nOHMes385ngc4gJ6SH8aHX8LHiA%3d
To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"


More information about the freebsd-net mailing list