summaryrefslogtreecommitdiff
path: root/run.bonnie_io
diff options
context:
space:
mode:
authorfsgqa <fsgqa>2002-11-09 05:49:41 +0000
committerfsgqa <fsgqa>2002-11-09 05:49:41 +0000
commitd56adf280eb2b1b6981a7539ef5b3c713b532768 (patch)
treea559ff13da34c517b768a60592e73ad375f29b90 /run.bonnie_io
parent3a4a860cbc7409b90aa3f023ee53694c58a23b21 (diff)
Small updates to dbench test runs, and integrate some bonnie++ runs too.
Add a header showing mount and mkfs options.
Diffstat (limited to 'run.bonnie_io')
-rwxr-xr-xrun.bonnie_io38
1 files changed, 38 insertions, 0 deletions
diff --git a/run.bonnie_io b/run.bonnie_io
new file mode 100755
index 00000000..573faef7
--- /dev/null
+++ b/run.bonnie_io
@@ -0,0 +1,38 @@
+#!/bin/sh
+#
+# Does a bonnie throughput run (80M file and 1K chunksize if the
+# BONNIE_FILESIZE and/or BONNIE_CHUNKSIZE variables are not set),
+# then massages the output into CSV format with the human-readable
+# output preceding it as a "comment" (ie. #-prefixed).
+#
+BONNIE_FILESIZE=${BONNIE_FILESIZE:=80M}
+BONNIE_CHUNKSIZE=${BONNIE_CHUNKSIZE:=1K}
+
+. $here/common.bonnie
+
+#
+# Sample bonnie throughput output (stderr):
+#Version 1.02c ------Sequential Output------ --Sequential Input- --Random-
+# -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
+#Machine Size:chnk K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP
+# 150M:64k 52024 99 88969 99 245492 100 3746 264
+#
+filter_stderr()
+{
+ sed -e 's/^..................../# /g' | awk '{print} END {print "#"}'
+}
+
+#
+# Sample bonnie throughput output (stdout):
+# ",150M:64k,,,52024,99,88969,99,,,245492,100,3746.0,264,,,,,,,,,,,,,"
+#
+filter_stdout()
+{
+ tr -s ',' | sed -e 's/^,//' -e 's/,$//'
+}
+
+if [ $# -gt 0 ]; then
+ echo "size:chnk,writeK/s,wcpu,rewriteK/s,rwcpu,readK/s,rcpu,seek/s,scpu"
+ exit 0
+fi
+run_bonnie -n 0 -s $BONNIE_FILESIZE:$BONNIE_CHUNKSIZE