]> git.ipfire.org Git - thirdparty/bind9.git/commit
When overmem, clean enough memory when adding new ADB names/entries
authorOndřej Surý <ondrej@isc.org>
Wed, 25 Jun 2025 10:05:14 +0000 (12:05 +0200)
committerOndřej Surý <ondrej@isc.org>
Tue, 8 Jul 2025 03:56:19 +0000 (05:56 +0200)
commiteb0ffa0d5f84f58c45344d8a0e2856581188bd80
treeb2bd45742dd756956c688b4363e35cd4396192b5
parent8420adf218d2a62d2798ec45a0a51e81a163c5b7
When overmem, clean enough memory when adding new ADB names/entries

The purge_stale_names()/purge_stale_entries() is opportunistic even when
we are under memory pressure (overmem).  Split the opportunistic LRU
cleaning and overmem cleaning.  This makes the stale purging much
simpler as we don't have to try that hard and makes the overmem cleaning
always cleanup double the amount of the newly allocated ADB name/entry.
lib/dns/adb.c