DragonFly commits List (threaded) for 2013-02
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: if: Per-cpu ifnet/ifaddr statistics, step 3/3
commit e1fcdad72cfb9eab8f4873e5b9330f2a753dfefa
Author: Sepherosa Ziehau <sephe@dragonflybsd.org>
Date: Fri Feb 15 16:15:47 2013 +0800
if: Per-cpu ifnet/ifaddr statistics, step 3/3
Make ifnet stats per-cpu. The per-cpu stats are stored in cache aligned
ifdata_pcpu struct.
- if_mib code is adjusted, so callers of the IFMIB_IFDATA sysctl will not
aware of the ifnet per-cpu stats, e.g. systat -if
- User space programs that directly access ifnet.if_data are modified to
aware of the new location of the ifnet stats, e.g. netstat -in
Summary of changes:
sys/net/if.c | 5 +++++
sys/net/if_mib.c | 29 ++++++++++++++++++++++++++++-
sys/net/if_var.h | 29 +++++++++++++++++++++++++----
usr.bin/netstat/if.c | 37 +++++++++++++++++++++++++++----------
4 files changed, 85 insertions(+), 15 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e1fcdad72cfb9eab8f4873e5b9330f2a753dfefa
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]