From c855ed6a0b50fe742a17d42130ad6ecaf1db72ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Fri, 27 Oct 2023 08:54:59 +0200 Subject: [PATCH] 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. --- lib/dns/message.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dns/message.c b/lib/dns/message.c index 39b2ef3460..2f352dc7e7 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 /*%