git: pf - Improve SMP counter performance, static array MAXCPU -> kmalloc
Matthew Dillon
dillon at crater.dragonflybsd.org
Mon Apr 29 13:22:11 PDT 2019
commit f7c73ea6a668231111e93e60976f7d29f0163bf3
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Mon Apr 29 12:48:58 2019 -0700
pf - Improve SMP counter performance, static array MAXCPU -> kmalloc
* Change the global counters to pcpu counters. Counters are now
incremented in a cache-friendly state and will be aggregated
in the status ioctl.
* Change all static declarations of MAXCPU arrays into kmalloc()d
arrays to reduce kernel bss size.
Summary of changes:
sys/net/pf/pf.c | 61 +++++++++++++++++++++++++-------------------------
sys/net/pf/pf_ioctl.c | 62 +++++++++++++++++++++++++++++++++++++++++++++++++--
sys/net/pf/pf_norm.c | 31 +++++++++++++++++++++-----
sys/net/pf/pfvar.h | 39 ++++++++++++++++++++++----------
4 files changed, 143 insertions(+), 50 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f7c73ea6a668231111e93e60976f7d29f0163bf3
--
DragonFly BSD source repository
More information about the Commits
mailing list