]> git.ipfire.org Git - thirdparty/bind9.git/commit
Reduce memory footprint by enabling background page purging
authorOndřej Surý <ondrej@isc.org>
Mon, 30 Mar 2026 06:50:07 +0000 (08:50 +0200)
committerOndřej Surý <ondrej@isc.org>
Wed, 8 Apr 2026 14:42:19 +0000 (16:42 +0200)
commitad6f4e1992258fd1888b42d907963df322d0cecc
tree7612aa1b5b216c7f570487e0aaaaf04330b1f278
parente99b5f80bebe1cf09fe7b7a02d8393505100665b
Reduce memory footprint by enabling background page purging

Enable jemalloc background threads and reduce dirty page decay time from
10s to 1s so that unused memory is returned to the OS sooner.  As an
additional safety net, trigger a decay pass after every 16 MiB of frees
(rate-limited to once per second) to handle bursts that the background
thread might not catch in time.  On glibc, fall back to malloc_trim(0)
with the same volume-based trigger.
lib/isc/include/isc/mem.h
lib/isc/mem.c