Make mbuf allocator statistics SMP safe.
authorJoe Talbott <josepht@dragonflybsd.org>
Sat, 11 Aug 2007 23:11:23 +0000 (23:11 +0000)
committerJoe Talbott <josepht@dragonflybsd.org>
Sat, 11 Aug 2007 23:11:23 +0000 (23:11 +0000)
commit4c1e250976b6f4f02aff8c966d55f5d12f59623a
tree4deaa70269ebf4d742eaa5278586c56ce0a6c71f
parentde9c90f53f86d8d2bc0fb400ef7931d4757351d2
Make mbuf allocator statistics SMP safe.

Make mbtypes[] and mbstat per-cpu.  Use atomic_*_*_nonlocked() to adjust
their values.  Convert sysctls (kern.ipc.mbstat and kern.ipc.mbtypes) into
procedures that sum the statistics for each CPU.

Reviewed-By: Matt Dillon <dillon@backplane.com>
sys/kern/uipc_mbuf.c
sys/platform/pc32/i386/symbols.raw
sys/sys/mbuf.h