aboutsummaryrefslogtreecommitdiffstats
path: root/vespabase
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-05-13 12:10:26 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2022-05-13 12:10:26 +0000
commit1dae7b5436ac88c6ffc7768dd625af2419d320d4 (patch)
treed7df659c6ec9edeb4e59d26a2aa2b7037f467ada /vespabase
parent84b48df485ad9af0c569c53aab7c78753efa5906 (diff)
Use explicit VESPA_LOAD_CODE_AS_HUGEPAGES
Diffstat (limited to 'vespabase')
-rwxr-xr-xvespabase/src/start-cbinaries.sh10
1 files changed, 3 insertions, 7 deletions
diff --git a/vespabase/src/start-cbinaries.sh b/vespabase/src/start-cbinaries.sh
index ecd673629d8..fa732d6bda8 100755
--- a/vespabase/src/start-cbinaries.sh
+++ b/vespabase/src/start-cbinaries.sh
@@ -152,6 +152,9 @@ configure_vespa_malloc () {
tryfile="${VESPA_HOME}/${pre}/${suf}"
if [ -f "$tryfile" ]; then
LD_PRELOAD="$tryfile"
+ if [ "$VESPA_LOAD_CODE_AS_HUGEPAGES" ]; then
+ LD_PRELOAD="$LD_PRELOAD:"${VESPA_HOME}/${pre}/vespa/malloc/libvespa_load_as_huge.so"
+ fi
if [ "$VESPA_USE_HUGEPAGES" ]; then
export VESPA_MALLOC_HUGEPAGES="$VESPA_USE_HUGEPAGES"
log_debug_message "enabling hugepages for '$0-bin'."
@@ -162,17 +165,10 @@ configure_vespa_malloc () {
fi
}
-configure_preload() {
- if [ "$PRELOAD" ]; then
- LD_PRELOAD="$LD_PRELOAD:$PRELOAD"
- fi
-}
-
configure_valgrind
configure_huge_pages
configure_use_madvise
configure_vespa_malloc
-configure_preload
log_debug_message "Using LD_PRELOAD='$LD_PRELOAD'"