From: Ondřej Surý Date: Fri, 27 Oct 2023 06:54:59 +0000 (+0200) Subject: Bump the mempool sizes in dns_message X-Git-Tag: v9.19.18~12^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c855ed6a0b50fe742a17d42130ad6ecaf1db72ad;p=thirdparty%2Fbind9.git Bump the mempool sizes in dns_message Increasing the initial and freemax sizes for dns_message memory pools restores the root zone performance. The former sizes were suited for per-dns_message memory pools and we need to bump the sizes up for per-thread memory pools. --- diff --git a/lib/dns/message.c b/lib/dns/message.c index 39b2ef34606..2f352dc7e77 100644 --- a/lib/dns/message.c +++ b/lib/dns/message.c @@ -110,12 +110,12 @@ hexdump(const char *msg, const char *msg2, void *base, size_t len) { * XXXMLG These should come from a config setting. */ #define SCRATCHPAD_SIZE 1232 -#define NAME_FILLCOUNT 4 +#define NAME_FILLCOUNT 1024 #define NAME_FREEMAX 8 * NAME_FILLCOUNT #define OFFSET_COUNT 4 #define RDATA_COUNT 8 #define RDATALIST_COUNT 8 -#define RDATASET_FILLCOUNT 4 +#define RDATASET_FILLCOUNT 1024 #define RDATASET_FREEMAX 8 * RDATASET_FILLCOUNT /*%