]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[9.20] chg: usr: Fix CPU spikes and slow queries when cache approaches memory limit
authorOndřej Surý <ondrej@isc.org>
Tue, 5 May 2026 12:55:39 +0000 (14:55 +0200)
committerMichał Kępień <michal@isc.org>
Thu, 7 May 2026 11:09:18 +0000 (13:09 +0200)
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.20' into 'security-bind-9.20'

See merge request isc-private/bind9!1000


Trivial merge