]> git.ipfire.org Git - thirdparty/bind9.git/commit
chg: usr: Reduce memory footprint by actively returning unused memory to the OS
authorOndřej Surý <ondrej@isc.org>
Wed, 8 Apr 2026 14:43:29 +0000 (16:43 +0200)
committerOndřej Surý <ondrej@isc.org>
Wed, 8 Apr 2026 14:43:29 +0000 (16:43 +0200)
commit460bf794a5ea64cd1b90f8724e6fa7e3e30bf243
tree7612aa1b5b216c7f570487e0aaaaf04330b1f278
parente99b5f80bebe1cf09fe7b7a02d8393505100665b
parentad6f4e1992258fd1888b42d907963df322d0cecc
chg: usr: Reduce memory footprint by actively returning unused memory to the OS

Previously, :iscman:`named` relied on the default allocator settings for
releasing unused memory back to the operating system, which could result in
unnecessarily high resident memory usage. :iscman:`named` now actively
manages memory page purging. On systems using jemalloc, background cleanup
threads are enabled and the dirty page decay time is reduced from 10 seconds
to 5 seconds. Additionally, a volume-based decay pass is triggered after
every 16 MiB of freed memory.  On glibc-based systems, a similar
volume-based mechanism using malloc_trim() is used instead.

Merge branch 'ondrej/enable-background-cleaning-of-unused-memory' into 'main'

See merge request isc-projects/bind9!11761