summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Valente <paolo.valente@linaro.org>2018-11-21 16:22:06 +0100
committerPaolo Valente <paolo.valente@linaro.org>2018-11-22 19:55:29 +0100
commit8eb27ecb2302e1bea3f28edee71ed03b1c060106 (patch)
treee983151be51327da8e49d20b8399ecc1fac7011b
parent1e944bde87ef234b05ab339bae253849d1bc9c0c (diff)
add ssuite to automated/linux
Signed-off-by: Paolo Valente <paolo.valente@linaro.org>
-rwxr-xr-xautomated/linux/ssuite/run-bench.sh24
-rw-r--r--automated/linux/ssuite/ssuite-bench.yaml48
2 files changed, 72 insertions, 0 deletions
diff --git a/automated/linux/ssuite/run-bench.sh b/automated/linux/ssuite/run-bench.sh
new file mode 100755
index 0000000..8894da1
--- /dev/null
+++ b/automated/linux/ssuite/run-bench.sh
@@ -0,0 +1,24 @@
+#!/bin/sh -e
+
+. ../../lib/sh-test-lib
+OUTPUT="$(pwd)/output"
+RESULT_FILE="${OUTPUT}/result.txt"
+export RESULT_FILE
+
+run_test() {
+ git clone https://github.com/Algodev-github/S
+ cd S
+
+ # modprobe bfq-iosched
+ sed -i "s/TEST_PARTITION=/TEST_PARTITION=$2/" def_config.sh
+ rm -f ~/.S-config.sh
+ cd run_multiple_benchmarks/
+ echo ./run_main_benchmarks.sh \"$1\" | tee -a "${RESULT_FILE}"
+ # cat ~/.S-config.sh | tee -a "${RESULT_FILE}"
+ # ./run_main_benchmarks.sh "$1" 2>&1 | tee -a "${RESULT_FILE}"
+}
+
+# Test run.
+create_out_dir "${OUTPUT}"
+
+run_test
diff --git a/automated/linux/ssuite/ssuite-bench.yaml b/automated/linux/ssuite/ssuite-bench.yaml
new file mode 100644
index 0000000..2f5cb06
--- /dev/null
+++ b/automated/linux/ssuite/ssuite-bench.yaml
@@ -0,0 +1,48 @@
+metadata:
+ format: Lava-Test Test Definition 1.0
+ name: S-suite
+ description: "The S-suite is a suite of I/O-performance benchmarks.
+ This test uses the S-suite to run, for every I/O scheduler
+ available for the target device, two main benchmarks:
+ 1) A throughput benchmark, which measures throughput
+ with random and sequential sync I/O. In this respect,
+ sync I/O is the kind of I/O for which it is most
+ difficult to reach a higher throughput.
+ 2) A responsiveness benchmark, which measures the start-up
+ time of various popular application, in the presence
+ of sequential I/O in the background (sequential
+ is the kind of background I/O that makes it more
+ difficult to guarantee a high responsiveness"
+ maintainer:
+ - paolo.valente@linaro.org
+ os:
+ - debian
+ - ubuntu
+ - fedora
+ - centos
+ - openembedded
+ scope:
+ - I/O performance
+ devices:
+ - x86
+ - arm
+
+params:
+ # Set of tests: 'throughput' benchmarks throughput, while
+ # 'replayed-startup' benchmarks the start-up times of popular
+ # applications, by replaying their I/O. The replaying saves us
+ # from meeting all non-trivial dependencies of these applications
+ # (such as having an X session running). Results are
+ # indistinguishable w.r.t. to actually starting these applications.
+ TESTS: "throughput replayed-startup"
+ # Target partition: partition in which to execute the benchmarks.
+ # This implicitly identifies the whole drive to test. The partition
+ # must contain a mounted filesystem. Test files are created in that
+ # filesystem.
+ TEST_PARTITION: "sda"
+
+run:
+ steps:
+ - cd ./automated/linux/ssuite/
+ - ./run-bench.sh "${TESTS}" ${TEST_PARTITION}
+ - ../../utils/send-to-lava.sh ./output/result.txt