From: Witold Kręcicki Date: Tue, 28 Jan 2020 10:53:24 +0000 (+0100) Subject: Increase nodelock count for both cache and regular db. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6d9add7506b088fb45ee6609a6dd7db800cc2da;p=thirdparty%2Fbind9.git Increase nodelock count for both cache and regular db. --- diff --git a/lib/dns/rbtdb.c b/lib/dns/rbtdb.c index 48606cbea1c..27a14974ca3 100644 --- a/lib/dns/rbtdb.c +++ b/lib/dns/rbtdb.c @@ -312,7 +312,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 /*% @@ -332,7 +332,7 @@ typedef ISC_LIST(dns_rbtnode_t) rbtnodelist_t; #define DEFAULT_CACHE_NODE_LOCK_COUNT DNS_RBTDB_CACHE_NODE_LOCK_COUNT #endif #else -#define DEFAULT_CACHE_NODE_LOCK_COUNT 16 +#define DEFAULT_CACHE_NODE_LOCK_COUNT 97 #endif /* DNS_RBTDB_CACHE_NODE_LOCK_COUNT */ typedef struct {