summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorArthur She <arthur.she@linaro.org>2015-06-15 16:26:32 -0700
committerArthur She <arthur.she@linaro.org>2015-06-18 11:43:02 -0700
commitb7317e5aeb952710e94c27b73cfcd93aa8780b15 (patch)
tree2f3f18e400dbfeb607055df22b11d44da3c7261d /common
parent5e142209165bf5118c10ace1affa1917a782caeb (diff)
common: iozone.yaml
IOzone is a filesystem benchmark tool. The benchmark generates and measures a variety of file operations. Change-Id: I21cc59593697d15201f4c1e6cfd8886372dc4ae3
Diffstat (limited to 'common')
-rw-r--r--common/iozone.yaml33
-rwxr-xr-xcommon/scripts/iozone.sh16
2 files changed, 49 insertions, 0 deletions
diff --git a/common/iozone.yaml b/common/iozone.yaml
new file mode 100644
index 0000000..e9694d1
--- /dev/null
+++ b/common/iozone.yaml
@@ -0,0 +1,33 @@
+metadata:
+ name: iozone
+ format: "Lava-Test-Shell Test Definition 1.0"
+ description: "IOzone is a filesystem benchmark tool. The benchmark generates and measures a variety of file operations."
+ maintainer:
+ - arthur.she@linaro.org
+ os:
+ - ubuntu
+ devices:
+ - panda
+ - panda-es
+ - arndale
+ - vexpress-a9
+ - vexpress-tc2
+ scope:
+ - performance
+
+install:
+ steps:
+ - 'if [ -f "/etc/apt/sources.list" ]; then sed -i "s/\(^deb .*\)/\1 multiverse/" /etc/apt/sources.list; apt-get update ; apt-get install iozone3; fi'
+
+params:
+ OPTIONS: -az -i0 -i1 -s 20m -y 128k -q 4m -I -e
+
+run:
+ steps:
+ - 'iozone $OPTIONS -f iozone.tmp | tee result.log'
+ - 'log_file_size=`du -b result.log|cut -f1`'
+ - 'lava-test-case iozone --shell test ${log_file_size} -gt 0'
+ - 'lava-test-case-attach iozone result.log'
+ - 'sed -n "/^ *[0-9]/p" result.log | common/scripts/iozone.sh'
+parse:
+ pattern: "^(?P<test_case_id>[a-zA-Z0-9-]+):\\s(?P<measurement>\\d+)\\s(?P<result>pass)"
diff --git a/common/scripts/iozone.sh b/common/scripts/iozone.sh
new file mode 100755
index 0000000..cc378a6
--- /dev/null
+++ b/common/scripts/iozone.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+TEST_ITEM="write rewrite read reread random_read random_write bkwd_read record_rewrite stride_read fwrite frewrite fread freread"
+while read in
+do
+ n=1
+ kb=`echo ${in} | cut -d' ' -f 1`
+ reclen=`echo ${in} | cut -d' ' -f 2`
+ for i in `echo ${in} | cut -d' ' -f 3-`
+ do
+ itm=`echo ${TEST_ITEM} | cut -d' ' -f ${n}`
+ echo "${itm}-${kb}-KB-${reclen}-reclen: ${i} pass"
+ n=$(($n+1))
+ done
+done
+