]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Bump the mempool sizes in dns_message
authorOndřej Surý <ondrej@isc.org>
Fri, 27 Oct 2023 06:54:59 +0000 (08:54 +0200)
committerOndřej Surý <ondrej@isc.org>
Fri, 27 Oct 2023 13:28:27 +0000 (15:28 +0200)
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

index 39b2ef34606494e7c14d3a48eac7539f1e4ce74c..2f352dc7e7775fca553e198429c2d63328763599 100644 (file)
@@ -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
 
 /*%