aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xautomated/linux/cyclictest/cyclictest.sh14
-rw-r--r--automated/linux/cyclictest/cyclictest.yaml10
2 files changed, 14 insertions, 10 deletions
diff --git a/automated/linux/cyclictest/cyclictest.sh b/automated/linux/cyclictest/cyclictest.sh
index 88bb4d55..a19faef1 100755
--- a/automated/linux/cyclictest/cyclictest.sh
+++ b/automated/linux/cyclictest/cyclictest.sh
@@ -10,21 +10,23 @@ OUTPUT="$(pwd)/output"
LOGFILE="${OUTPUT}/cyclictest.txt"
RESULT_FILE="${OUTPUT}/result.txt"
-PRIORITY="99"
-INTERVAL="10000"
+PRIORITY="98"
+INTERVAL="1000"
THREADS="1"
-LOOPS="10000"
+AFFINITY="0"
+LOOPS="100000"
usage() {
echo "Usage: $0 [-p priority] [-i interval] [-t threads] [-l loops]" 1>&2
exit 1
}
-while getopts ":p:i:t:l:" opt; do
+while getopts ":p:i:t:a:l:" opt; do
case "${opt}" in
p) PRIORITY="${OPTARG}" ;;
i) INTERVAL="${OPTARG}" ;;
t) THREADS="${OPTARG}" ;;
+ a) AFFINITY="${OPTARG}" ;;
l) LOOPS="${OPTARG}" ;;
*) usage ;;
esac
@@ -39,8 +41,8 @@ if ! binary=$(which cyclictest); then
# shellcheck disable=SC2154
binary="./bin/${abi}/cyclictest"
fi
-"${binary}" -p "${PRIORITY}" -i "${INTERVAL}" -t "${THREADS}" \
- -l "${LOOPS}" | tee "${LOGFILE}"
+"${binary}" -p "${PRIORITY}" -i "${INTERVAL}" -t "${THREADS}" -a "${AFFINITY}" \
+ -l "${LOOPS}" -m -n | tee "${LOGFILE}"
# Parse test log.
tail -n "${THREADS}" "${LOGFILE}" \
diff --git a/automated/linux/cyclictest/cyclictest.yaml b/automated/linux/cyclictest/cyclictest.yaml
index 12736666..a0943329 100644
--- a/automated/linux/cyclictest/cyclictest.yaml
+++ b/automated/linux/cyclictest/cyclictest.yaml
@@ -29,16 +29,18 @@ metadata:
params:
# Priority of highest prio thread.
- PRIORITY: "99"
+ PRIORITY: "98"
# Base interval of thread in us.
- INTERVAL: "10000"
+ INTERVAL: "1000"
# Number of threads.
THREADS: "1"
+ # Set the affinity
+ AFFINITY: "0"
# Number of loops.
- LOOPS: "10000"
+ LOOPS: "100000"
run:
steps:
- cd ./automated/linux/cyclictest/
- - ./cyclictest.sh -p "${PRIORITY}" -i "${INTERVAL}" -t "${THREADS}" -l "${LOOPS}"
+ - ./cyclictest.sh -p "${PRIORITY}" -i "${INTERVAL}" -t "${THREADS}" -a "${AFFINITY}" -l "${LOOPS}"
- ../../utils/send-to-lava.sh ./output/result.txt