]> git.ipfire.org Git - thirdparty/bind9.git/commit
[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)
commit9a7f5627e0afa7aefd612cf5d47f3a1bb559336c
tree173b63ca01cfe124466a58030ac29aa88197ddcb
parent4c1547e4b5afabdea3c3fe4ce81eb85acc990c9a
parentddd5586a519dca348e7a454885f674e2ba49db42
[9.20] 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.20' into 'security-bind-9.20'

See merge request isc-private/bind9!1000