git: kernel - Detune memory slab allocator pcpu caching a little
Matthew Dillon
dillon at crater.dragonflybsd.org
Fri Apr 24 10:06:02 PDT 2020
commit 0186d1945bd435a81583a01a36eaa4256e364fb1
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Fri Apr 24 10:02:28 2020 -0700
kernel - Detune memory slab allocator pcpu caching a little
* The kernel tries to cache a lot of slab zones on a pcpu basis
due to the high overhead of mapping and unmapping kernel memory.
However, this can burn an excessive amount of physical memory on
high-core-count cpus.
* Reduce the pcpu cache hysteresis on systems with more than 32 cpu
threads. So on a 128-thread TR with 256GB of ram, this reduces
the slab cache from a ridiculous 30GB to a more reasonable 10GB.
Summary of changes:
sys/kern/kern_slaballoc.c | 15 ++++++++++++++-
sys/kern/sys_pipe.c | 11 +++++++++++
2 files changed, 25 insertions(+), 1 deletion(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0186d1945bd435a81583a01a36eaa4256e364fb1
--
DragonFly BSD source repository
More information about the Commits
mailing list