diff options
author | Arnstein Ressem <aressem@gmail.com> | 2021-08-20 10:33:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-20 10:33:56 +0200 |
commit | f1ff9b46c6d663e180840b048ba7e2dd65616d43 (patch) | |
tree | 3720f218858e9ffe384fa523f7f42112c10a1a0c /vespabase/src/common-env.sh | |
parent | 4c97161ae4ac76bcb7a2753762c9e17c6447b636 (diff) |
Revert "Fail Vespa startup if no numactl ."
Diffstat (limited to 'vespabase/src/common-env.sh')
-rwxr-xr-x | vespabase/src/common-env.sh | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/vespabase/src/common-env.sh b/vespabase/src/common-env.sh index d5f8381432f..eb60154071c 100755 --- a/vespabase/src/common-env.sh +++ b/vespabase/src/common-env.sh @@ -292,30 +292,3 @@ log_debug_message () { log_warning_message () { log_message "warning" "$*" 1>&2 } - -get_numa_ctl_cmd () { - if ! type numactl &> /dev/null; then - echo "FATAL: Could not find required program numactl." - exit 1 - fi - - numnodes=$(numactl --hardware 2>/dev/null | - grep available | - awk '$3 == "nodes" { print $2 }') - - if [ -n "$numanodes" ]; then - # We are allowed to use numactl and have NUMA nodes - if [ "$VESPA_AFFINITY_CPU_SOCKET" ] && - [ "$numnodes" -gt 1 ] - then - node=$(($VESPA_AFFINITY_CPU_SOCKET % $numnodes)) - numactlcmd="numactl --cpunodebind=$node --membind=$node" - else - numactlcmd="numactl --interleave all" - fi - else - numactlcmd="" - fi - - echo $numactlcmd -} |