commit 0186d1945bd435a81583a01a36eaa4256e364fb1
Author: Matthew Dillon <[email protected]>
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