summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xautomated/linux/sysbench/sysbench.sh8
-rw-r--r--automated/linux/sysbench/sysbench.yaml2
2 files changed, 9 insertions, 1 deletions
diff --git a/automated/linux/sysbench/sysbench.sh b/automated/linux/sysbench/sysbench.sh
index 8a00613..dc60fd2 100755
--- a/automated/linux/sysbench/sysbench.sh
+++ b/automated/linux/sysbench/sysbench.sh
@@ -90,6 +90,8 @@ fi
sysbench --version
general_parser() {
+ # if $1 is there, let's append to test name in the result file
+ local tc="$tc$1"
ms=$(grep -m 1 "total time" "${logfile}" | awk '{print substr($NF,1,length($NF)-1)}')
add_metric "${tc}-total-time" "pass" "${ms}" "s"
@@ -117,6 +119,12 @@ for tc in ${TESTS}; do
info_msg "Running sysbench ${tc} test..."
logfile="${OUTPUT}/sysbench-${tc}.txt"
case "${tc}" in
+ percpu)
+ for i in $(cat /proc/cpuinfo | awk '/^processor/{print $3}'); do
+ taskset -c $i sysbench --num-threads=1 --test=cpu run | tee "${logfile}"
+ general_parser $i
+ done
+ ;;
cpu|threads|mutex)
sysbench --num-threads="${NUM_THREADS}" --test="${tc}" run | tee "${logfile}"
general_parser
diff --git a/automated/linux/sysbench/sysbench.yaml b/automated/linux/sysbench/sysbench.yaml
index 1bceee4..4b44942 100644
--- a/automated/linux/sysbench/sysbench.yaml
+++ b/automated/linux/sysbench/sysbench.yaml
@@ -31,7 +31,7 @@ params:
# "${TESTS}" could be one or more of the following tests.
# TESTS: cpu memory threads mutex fileio oltp
# TESTS: "oltp"
- TESTS: "cpu memory threads mutex fileio"
+ TESTS: "percpu cpu memory threads mutex fileio"
# Number of threads to use.
NUM_THREADS: "1"
SKIP_INSTALL: "false"