summaryrefslogtreecommitdiffstats
path: root/vespabase
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-05-12 15:15:06 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2022-05-13 10:59:35 +0000
commit84b48df485ad9af0c569c53aab7c78753efa5906 (patch)
tree9fb39e4a55747176547fdb40f7a8bf006de0d151 /vespabase
parent1df3b3c59251bd4fd1b099ae5cfb4c280313e76d (diff)
Add experimental library for loading code into huge pages.
Diffstat (limited to 'vespabase')
-rwxr-xr-xvespabase/src/start-cbinaries.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/vespabase/src/start-cbinaries.sh b/vespabase/src/start-cbinaries.sh
index 2f0a923b074..ecd673629d8 100755
--- a/vespabase/src/start-cbinaries.sh
+++ b/vespabase/src/start-cbinaries.sh
@@ -152,7 +152,6 @@ configure_vespa_malloc () {
tryfile="${VESPA_HOME}/${pre}/${suf}"
if [ -f "$tryfile" ]; then
LD_PRELOAD="$tryfile"
- log_debug_message "Using LD_PRELOAD='$tryfile'"
if [ "$VESPA_USE_HUGEPAGES" ]; then
export VESPA_MALLOC_HUGEPAGES="$VESPA_USE_HUGEPAGES"
log_debug_message "enabling hugepages for '$0-bin'."
@@ -163,10 +162,19 @@ 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'"
if $no_valgrind ; then
numactl=$(get_numa_ctl_cmd)