X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fruniozone;h=b364abef8f8754812ce45be4787b046c71cf1e56;hb=3c580c93b8d3e94fac0ac2cf3cca2ff706c6497a;hp=cf198ad3b1c61e3481a2eb508609ab65a3b67f5a;hpb=7312616768bfed768ecc00ba20322c37568138d0;p=fs%2Flustre-release.git diff --git a/lustre/tests/runiozone b/lustre/tests/runiozone index cf198ad..b364abe 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 "$ODIR" ] && ODIR="-I" [ -z "$REC" ] && REC=64 -[ -z "$FILE" ] && FILE=/mnt/lustre/test.$$ +[ -z "$FILE" ] && FILE=/mnt/lustre/iozone.$$ [ $1 ] && SIZE=$1 -COUNT=0 +LOOP=0 rm -f endiozone -echo 0 > /proc/sys/portals/debug +lctl set_param -n debug=0 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