pespin has uploaded this change for review. (
https://gerrit.osmocom.org/c/upf-benchmark/+/39889?usp=email )
Change subject: testsuites: tunend: trex: configure.sh: Use trex binary depending on host
......................................................................
testsuites: tunend: trex: configure.sh: Use trex binary depending on host
gtplab* hosts worked fine with regular t-rex-64 binary, but c240-* and
epyc1 segfault when starting it, probably due to use of AVX in the
locally compiled binary. On those hosts, use t-rex-64-o binary instead,
which doesn't contain such optimizations and hence doesn't segfault.
Change-Id: Ia50f37e193c1cf6a89b46a815a4c5ca54dbfe576
---
M testsuites/gtplab-sysmo2025/tunend/trex/configure.sh
1 file changed, 19 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/upf-benchmark refs/changes/89/39889/1
diff --git a/testsuites/gtplab-sysmo2025/tunend/trex/configure.sh
b/testsuites/gtplab-sysmo2025/tunend/trex/configure.sh
index aa3b97e..2667cb1 100755
--- a/testsuites/gtplab-sysmo2025/tunend/trex/configure.sh
+++ b/testsuites/gtplab-sysmo2025/tunend/trex/configure.sh
@@ -2,7 +2,25 @@
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &>
/dev/null && pwd )
+case $(hostname) in
+gtplab0)
+ TREX_BIN="/opt/trex/t-rex-64"
+ ;;
+c240-1)
+ # Crashes at startup with "t-rex-64"
+ TREX_BIN="/opt/trex/t-rex-64-o"
+ ;;
+epyc1)
+ # Crashes at startup with "t-rex-64"
+ TREX_BIN="/opt/trex/t-rex-64-o"
+ ;;
+*)
+ echo "UNEXPECTED HOSTNAME: $(hostname)"
+ exit 1
+ ;;
+esac
+
sudo sysctl -w vm.nr_hugepages=4096
cd /opt/trex
-sudo /opt/trex/t-rex-64 -i --astf --software --tso-disable --no-scapy-server --cfg
"${SCRIPT_DIR}/trex_cfg.yaml" --no-ofed-check
+sudo $TREX_BIN -i --astf --software --tso-disable --no-scapy-server --cfg
"${SCRIPT_DIR}/trex_cfg.yaml" --no-ofed-check
--
To view, visit
https://gerrit.osmocom.org/c/upf-benchmark/+/39889?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: upf-benchmark
Gerrit-Branch: master
Gerrit-Change-Id: Ia50f37e193c1cf6a89b46a815a4c5ca54dbfe576
Gerrit-Change-Number: 39889
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>