]> git.ipfire.org Git - thirdparty/bind9.git/commit
[9.18] chg: usr: Fix CPU spikes and slow queries when cache approaches memory limit
authorOndřej Surý <ondrej@isc.org>
Tue, 5 May 2026 13:20:43 +0000 (15:20 +0200)
committerMichał Kępień <michal@isc.org>
Thu, 7 May 2026 11:21:59 +0000 (13:21 +0200)
commit874a19c71b45d45aad766d9371d012ce99e57e4b
treeadcadc5fbd73c4858aa4f9f4f24713955a7820fb
parent7ce6ce37b1b04af0953ed2d3211587465085600e
parent915aa590b684815675bdd5f970e9cecbc20812a3
[9.18] chg: usr: Fix CPU spikes and slow queries when cache approaches memory limit

When the cache grew close to the configured max-cache-size, every subsequent
entry triggered all worker threads to run cache cleanup at once, causing CPU
spikes and a drop in query throughput. Cleanup is now spread probabilistically
across inserts as memory approaches the limit, so the work is distributed evenly
instead of piling up at the threshold.

Backport of MR !1002

Merge branch '5891-improve-overmem-cleaning-9.18' into 'security-bind-9.18'

See merge request isc-private/bind9!1008