From 31d71bc30ce29786c95f424d5000c9dffcc5270c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Witold=20Kr=C4=99cicki?= Date: Tue, 28 Jan 2020 11:53:24 +0100 Subject: [PATCH] Increase nodelock count for both cache and regular db. --- lib/dns/rbtdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dns/rbtdb.c b/lib/dns/rbtdb.c index e19ea3708f..06341e7d39 100644 --- a/lib/dns/rbtdb.c +++ b/lib/dns/rbtdb.c @@ -302,7 +302,7 @@ typedef ISC_LIST(dns_rbtnode_t) rbtnodelist_t; (((header)->rdh_ttl > (now)) || \ ((header)->rdh_ttl == (now) && ZEROTTL(header))) -#define DEFAULT_NODE_LOCK_COUNT 7 /*%< Should be prime. */ +#define DEFAULT_NODE_LOCK_COUNT 53 /*%< Should be prime. */ #define RBTDB_GLUE_TABLE_INIT_SIZE 2U /*% @@ -322,7 +322,7 @@ typedef ISC_LIST(dns_rbtnode_t) rbtnodelist_t; #define DEFAULT_CACHE_NODE_LOCK_COUNT DNS_RBTDB_CACHE_NODE_LOCK_COUNT #endif /* if DNS_RBTDB_CACHE_NODE_LOCK_COUNT <= 1 */ #else /* ifdef DNS_RBTDB_CACHE_NODE_LOCK_COUNT */ -#define DEFAULT_CACHE_NODE_LOCK_COUNT 16 +#define DEFAULT_CACHE_NODE_LOCK_COUNT 97 #endif /* DNS_RBTDB_CACHE_NODE_LOCK_COUNT */ typedef struct {