5b4fe25981
when I changed the allocator bits. This implements per-CPU mbtypes stats by keeping net number of decrements/increments of a given mbtype per-CPU and then summing all of the per-CPU mbtypes to produce the total net number of allocated mbufs of the given mbtype. Counters are carefully balanced to avoid/prevent underflows/overflows. mbtypes stats are re-enabled with the idea that we may occasionally (although very rarely) observe slight inconsistencies in the stat reporting. Most of the time, we should be fine, though. Also make appropriate modifications to netstat(1) and systat(1) to do the necessary reporting. Submitted by: Jiangyi Liu <jyliu@163.net> |
||
---|---|---|
.. | ||
atalk.c | ||
if.c | ||
inet6.c | ||
inet.c | ||
ipsec.c | ||
ipx.c | ||
iso.c | ||
main.c | ||
Makefile | ||
mbuf.c | ||
mroute6.c | ||
mroute.c | ||
netgraph.c | ||
netstat.1 | ||
netstat.h | ||
ns.c | ||
route.c | ||
unix.c |