]> git.ipfire.org Git - thirdparty/bind9.git/commit
Remove memory limit on ADB finds and fetches
authorOndřej Surý <ondrej@isc.org>
Wed, 15 Jan 2025 09:36:33 +0000 (10:36 +0100)
committerOndřej Surý <ondrej@isc.org>
Wed, 22 Jan 2025 13:13:35 +0000 (14:13 +0100)
commit05faff6d5306de1e57b56f9ea44469bfb111e2e3
tree3a189edffba17f4a86d1bbe2bd1b52fbda16b69e
parent3f490fe3fb7a408377857354b369312d395e39f0
Remove memory limit on ADB finds and fetches

Address Database (ADB) shares the memory for the short lived ADB
objects (finds, fetches, addrinfo) and the long lived ADB
objects (names, entries, namehooks).  This could lead to a situation
where the resolver-heavy load would force evict ADB objects from the
database to point where ADB is completely empty, leading to even more
resolver-heavy load.

Make the short lived ADB objects use the other memory context that we
already created for the hashmaps.  This makes the ADB overmem condition
to not be triggered by the ongoing resolver fetches.
lib/dns/adb.c