From 8a7c96feae8e4df29f83ae98783a55aeceb822a6 Mon Sep 17 00:00:00 2001 From: Dennis Potter Date: Mon, 30 Jul 2018 17:06:16 +0200 Subject: [PATCH] Added different tests which are automatically dispatched --- tests/node-infiniband-benchmark.sh | 127 +++++++++++++++++++---------- 1 file changed, 82 insertions(+), 45 deletions(-) diff --git a/tests/node-infiniband-benchmark.sh b/tests/node-infiniband-benchmark.sh index 7857d5c2c..bb5a38a51 100755 --- a/tests/node-infiniband-benchmark.sh +++ b/tests/node-infiniband-benchmark.sh @@ -10,8 +10,7 @@ # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# any later version. +# the Free Software Foundation, either version 3 of the License, or any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -39,32 +38,48 @@ SCRIPT=$(realpath $0) SCRIPTPATH=$(dirname ${SCRIPT}) source ${SCRIPTPATH}/../tools/integration-tests-helper.sh + CONFIG_FILE=$(mktemp /tmp/ib-configuration-XXXX.conf) CONFIG_FILE_TARGET=$(mktemp /tmp/ib-configuration-target-XXXX.conf) CONFIG_FILE_SOURCE=$(mktemp /tmp/ib-configuration-source-XXXX.conf) INPUT_FILE=$(mktemp) +LOG_DIR=benchmarks_$(date +%Y%m%d_%H-%M-%S) +mkdir ${LOG_DIR} -NUM_VALUES=5 -RATE_SAMPLES=10000 -NUM_SAMPLES=100000 +NUM_VALUES=(3 5 10 25 50) +RATE_SAMPLES=(10 100 1000 10000 100000 200000) +TIME_TO_RUN=30 + +# Declare modes +MODES=("TCP" "UDP") + + +# Initialize counter +COUNT=0 # Set config file with a MODE flag +# NUM_VALUES, RATE_SAMPLES, NUM_SAMPLES, and MODE will be replaced in loop cat > ${CONFIG_FILE} <