]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Reduce number of buckets in tracklines debuglink table
authorMukund Sivaraman <muks@isc.org>
Wed, 9 May 2018 06:15:12 +0000 (11:45 +0530)
committerMark Andrews <marka@isc.org>
Fri, 11 May 2018 01:17:14 +0000 (11:17 +1000)
With 1044 res contexts, each with 65536 debuglink structs of 16 bytes
each, the debuglink table itself was consuming 1GB+ of memory.

lib/isc/mem.c

index 21b7a0f07a022aa419d157abb30549d1deff4ea7..a5f88c5c8f76c6aa9d84fab5092ed43e6ca3c925 100644 (file)
@@ -50,7 +50,7 @@ LIBISC_EXTERNAL_DATA unsigned int isc_mem_defaultflags = ISC_MEMFLAG_DEFAULT;
 #define ALIGNMENT_SIZE         8U              /*%< must be a power of 2 */
 #define NUM_BASIC_BLOCKS       64              /*%< must be > 1 */
 #define TABLE_INCREMENT                1024
-#define DEBUG_TABLE_COUNT      65536
+#define DEBUG_TABLE_COUNT      512U
 
 /*
  * Types.