From 086e908f3b1ffb0ab3f871aafb22f26b13fc2625 Mon Sep 17 00:00:00 2001 From: Xueshan Feng <xueshan-feng@stanford.edu> Date: Tue, 17 Mar 2020 10:55:52 -0700 Subject: [PATCH] Fix libtcmalloc path on Buster. --- etc/default/slapd | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/etc/default/slapd b/etc/default/slapd index e749467..a41fa63 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 -- GitLab