From: Mukund Sivaraman Date: Wed, 9 May 2018 06:15:12 +0000 (+0530) Subject: Reduce number of buckets in tracklines debuglink table X-Git-Tag: v9.13.0~23^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9886abd868f42694408a8279b5081d3bb4bb23c;p=thirdparty%2Fbind9.git Reduce number of buckets in tracklines debuglink table With 1044 res contexts, each with 65536 debuglink structs of 16 bytes each, the debuglink table itself was consuming 1GB+ of memory. --- diff --git a/lib/isc/mem.c b/lib/isc/mem.c index 21b7a0f07a0..a5f88c5c8f7 100644 --- a/lib/isc/mem.c +++ b/lib/isc/mem.c @@ -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.