X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fruniozone;h=c2eec04deff823295c14eb1fa488a3b3ed899dc3;hb=040033cef24c5aca2967daf2da7a862abcd074cf;hp=4fc00b2b1092a8c981b7f651ab164f009e3fd78f;hpb=5c0b2855f617d17e3c0749244edeca1b706f8a7e;p=fs%2Flustre-release.git diff --git a/lustre/tests/runiozone b/lustre/tests/runiozone index 4fc00b2..c2eec04 100755 --- a/lustre/tests/runiozone +++ b/lustre/tests/runiozone @@ -1,17 +1,17 @@ #!/bin/sh [ -z "$SIZE" ] && SIZE=5g -[ -z "$LOOPS" ] && LOOPS=9999 +[ -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 -COUNT=0 +LOOP=0 rm -f endiozone echo 0 > /proc/sys/portals/debug while date; do - echo "Test #$COUNT" + LOOP=`expr $LOOP + 1` + echo "Test #$LOOP" iozone $VERIFY $ODIR -r $REC -i 0 -i 1 -f $FILE -s $SIZE 2>&1 || exit $? - COUNT=`expr $COUNT + 1` - [ -f endiozone -o $COUNT -ge $LOOPS ] && rm -f endiozone && exit 0 + [ -f endiozone -o $LOOP -ge $COUNT ] && rm -f endiozone && exit 0 done | tee /tmp/iozone.log