Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-8788 tests: modify create_pool to use as wrapper
[fs/lustre-release.git]
/
lustre
/
tests
/
runiozone
diff --git
a/lustre/tests/runiozone
b/lustre/tests/runiozone
index
f187ed6
..
b364abe
100755
(executable)
--- a/
lustre/tests/runiozone
+++ b/
lustre/tests/runiozone
@@
-1,10
+1,17
@@
#!/bin/sh
#!/bin/sh
-SIZE=5g
-COUNT=0
+[ -z "$SIZE" ] && SIZE=5g
+[ -z "$COUNT" ] && COUNT=100
+[ -z "$VERIFY" ] && VERIFY="-+d"
+#[ -z "$ODIR" ] && ODIR="-I"
+[ -z "$REC" ] && REC=64
+[ -z "$FILE" ] && FILE=/mnt/lustre/iozone.$$
+[ $1 ] && SIZE=$1
+LOOP=0
rm -f endiozone
rm -f endiozone
+lctl set_param -n debug=0
while date; do
while date; do
- echo "Test #$COUNT"
- iozone -i 0 -i 1 -f /mnt/lusre/test.$$ -s $SIZE 2>&1 || exit $?
- COUNT=`expr $COUNT + 1`
- [ -f endiozone
] && rm
endiozone && exit 0
+ LOOP=`expr $LOOP + 1`
+ echo "Test #$LOOP"
+ iozone $VERIFY $ODIR -r $REC -i 0 -i 1 -f $FILE -s $SIZE 2>&1 || exit $?
+ [ -f endiozone
-o $LOOP -ge $COUNT ] && rm -f
endiozone && exit 0
done | tee /tmp/iozone.log
done | tee /tmp/iozone.log