mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 17:42:04 -04:00
Reduce the nodelock count for both cache and regular rbtdb
Increasing the nodelock count had major impact on the memory footprint
in scenarios where multiple rbtdb structure would be created like
hosting many zones in a single server.
This reverts commit 0344684385 and sets
the nodelock count to previously used values.
This commit is contained in:
parent
5a04b5bb1a
commit
6b24460a40
1 changed files with 2 additions and 2 deletions
|
|
@ -336,7 +336,7 @@ typedef ISC_LIST(dns_rbtnode_t) rbtnodelist_t;
|
|||
(((header)->rdh_ttl > (now)) || \
|
||||
((header)->rdh_ttl == (now) && ZEROTTL(header)))
|
||||
|
||||
#define DEFAULT_NODE_LOCK_COUNT 53 /*%< Should be prime. */
|
||||
#define DEFAULT_NODE_LOCK_COUNT 7 /*%< Should be prime. */
|
||||
#define RBTDB_GLUE_TABLE_INIT_BITS 2U
|
||||
#define RBTDB_GLUE_TABLE_MAX_BITS 32U
|
||||
#define RBTDB_GLUE_TABLE_OVERCOMMIT 3
|
||||
|
|
@ -368,7 +368,7 @@ hash_32(uint32_t val, unsigned int bits) {
|
|||
#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 97
|
||||
#define DEFAULT_CACHE_NODE_LOCK_COUNT 17
|
||||
#endif /* DNS_RBTDB_CACHE_NODE_LOCK_COUNT */
|
||||
|
||||
typedef struct {
|
||||
|
|
|
|||
Loading…
Reference in a new issue