]> git.ipfire.org Git - thirdparty/bind9.git/commit
fix: usr: Clean enough memory when adding new ADB names/entries under memory pressure
authorOndřej Surý <ondrej@isc.org>
Tue, 8 Jul 2025 07:49:30 +0000 (09:49 +0200)
committerOndřej Surý <ondrej@isc.org>
Tue, 8 Jul 2025 07:49:30 +0000 (09:49 +0200)
commit754d17590e58cf8219ca75ab69740b728edd510f
treeb2bd45742dd756956c688b4363e35cd4396192b5
parent8420adf218d2a62d2798ec45a0a51e81a163c5b7
parenteb0ffa0d5f84f58c45344d8a0e2856581188bd80
fix: usr: Clean enough memory when adding new ADB names/entries under memory pressure

The ADB memory cleaning is opportunistic even when we are under
memory pressure (in the overmem condition).  Split the opportunistic
LRU cleaning and overmem cleaning and make the overmem cleaning
always cleanup double of the newly allocated adbname/adbentry to
ensure we never allocate more memory than the assigned limit.

Merge branch 'ondrej/enforce-memory-cleanup-in-ADB-when-overmem' into 'main'

See merge request isc-projects/bind9!10637