DragonFly BSD
DragonFly users List (threaded) for 2013-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

IFNET/IFADDR statistics are now per-CPU


From: Sepherosa Ziehau <sepherosa@xxxxxxxxx>
Date: Fri, 15 Feb 2013 16:40:29 +0800

Hi all,

As of e1fcdad72cfb9eab8f4873e5b9330f2a753dfefa, IFNET/IFADDR stats are
per-CPU and their locations are changed.  It greatly improves stats
accuracy (especially for high rate small packets); should be useful
for user space programs to perform network load balance.

- Callers of sysctl IFMIB_IFDATA are _not_ affected.
- For programs that directly access ifnet.if_data and ifaddr.if_data
to get statistics, they need to be _modified_ to use the new stats
location.  /usr/src/usr.bin/netstat/if.c could be used as example.

Best Regards,
sephe

--
Tomorrow Will Never Die



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]