[prev in list] [next in list] [prev in thread] [next in thread]
List: dragonfly-commits
Subject: git: pf - Improve SMP counter performance, static array MAXCPU -> kmalloc
From: Matthew Dillon <dillon () crater ! dragonflybsd ! org>
Date: 2019-04-29 20:22:11
Message-ID: 20190429202211.76D0865D9A8 () crater ! dragonflybsd ! org
[Download RAW message or body]
commit f7c73ea6a668231111e93e60976f7d29f0163bf3
Author: Matthew Dillon <dillon@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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic