Accounting for mbufs and clusters assigned to a socket buffer

gnn at gnn at
Fri Apr 25 10:15:13 UTC 2008


The following patch updates the kernel (CURRENT as of 23 April or so)
and netstat(1) to show not only the bytes in the receive and send
queues but also the mbuf and cluster usage per socket buffer.  I'd be
interested in people's comments on this.  I'd like to extend such
counting to show more information, in particular how much of a cluster
or mbuf is actually in use.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mbuf_count.diff
Type: application/octet-stream
Size: 3815 bytes
Desc: not available
Url :

More information about the freebsd-arch mailing list