]> git.ipfire.org Git - thirdparty/bind9.git/commit
Allocate DNS send buffers using dedicated per-worker memory arenas
authorArtem Boldariev <artem@boldariev.com>
Thu, 10 Aug 2023 20:08:25 +0000 (23:08 +0300)
committerOndřej Surý <ondrej@isc.org>
Tue, 5 Sep 2023 13:02:30 +0000 (15:02 +0200)
commit1cc17f797ebe70d2c8eed33f9e8b1841689fcc98
tree6878e236110d9860fbdf346d3c7cf123d5ec7b48
parentf5cb14265fcec61790f293f6a3102b357119e5c6
Allocate DNS send buffers using dedicated per-worker memory arenas

This commit ensures that memory allocations related to DNS send
buffers are routed through dedicated per-worker memory arenas in order
to decrease memory usage on high load caused by TCP-based DNS
transports.

We do that by following jemalloc developers suggestions:

https://github.com/jemalloc/jemalloc/issues/2483#issuecomment-1639019699
https://github.com/jemalloc/jemalloc/issues/2483#issuecomment-1698173849
(cherry picked from commit 01cc7edcca26967c98f45b95834f752afc468922)
lib/ns/client.c
lib/ns/include/ns/client.h
lib/ns/server.c