X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;ds=sidebyside;f=lustre%2Ftests%2Fruniozone;h=5eacb9c0b97af67c0736a5c4b661586c6eaa36ce;hb=a6527b28ba2082a445fbf584909a7791ce407ef3;hp=c6b96adffab1eedef05f06765c654f6e6796b555;hpb=47cf59ab19b33e3266a316ce1797d344b9c5de7b;p=fs%2Flustre-release.git diff --git a/lustre/tests/runiozone b/lustre/tests/runiozone index c6b96ad..5eacb9c 100755 --- a/lustre/tests/runiozone +++ b/lustre/tests/runiozone @@ -1,10 +1,17 @@ #!/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 +echo 0 > /proc/sys/lnet/debug while date; do - echo "Test #$COUNT" - iozone -i 0 -i 1 -f /mnt/lustre/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