Show expensive mbuf operations in netstat(1) statistics.
authorbluhm <bluhm@openbsd.org>
Thu, 29 Aug 2024 10:44:40 +0000 (10:44 +0000)
committerbluhm <bluhm@openbsd.org>
Thu, 29 Aug 2024 10:44:40 +0000 (10:44 +0000)
commit5b00b7dda8bfc7f198d3a27a858787dca0d81520
tree7af235f83f0e0bc7c0b9af79b82be80763c251b3
parent1f3d7412826e51d5beb8c80abcafbb8f6fe7bdff
Show expensive mbuf operations in netstat(1) statistics.

If the memory layout is not optimal, m_defrag(), m_prepend(),
m_pullup(), and m_pulldown() will allocate mbufs or copy memory.
Count these operations to find possible optimizations.

input dhill@; OK mvs@
sys/kern/kern_sysctl.c
sys/kern/uipc_mbuf.c
sys/kern/uipc_mbuf2.c
sys/sys/mbuf.h
usr.bin/netstat/mbuf.c