diff --git a/etc/default/slapd b/etc/default/slapd index e7494674a7e42b7230ef6a4b12b18c03430d394d..a41fa63c88bd3068ef147f28ba49c70253600a04 100644 --- a/etc/default/slapd +++ b/etc/default/slapd @@ -21,6 +21,13 @@ then export LD_PRELOAD="/usr/lib/libtcmalloc_minimal.so.4" fi +# And the newest version of tcmalloc is the best of all worlds. +# Use it if is available. +if [ -e /usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4 ] +then + export LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4" +fi + # Specify a sentinel file that matches current practice SLAPD_SENTINEL_FILE=/etc/noldap