X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fruniozone;h=b364abef8f8754812ce45be4787b046c71cf1e56;hb=7bba9569f40f2f81913cd6a0ff1b9b8523b686c4;hp=aa2a2c2aabbfa395e922760c3da03d8cefd69d08;hpb=8966d430c73232435ebba00bcd77dbbd730b9c88;p=fs%2Flustre-release.git diff --git a/lustre/tests/runiozone b/lustre/tests/runiozone index aa2a2c2..b364abe 100755 --- a/lustre/tests/runiozone +++ b/lustre/tests/runiozone @@ -1,16 +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 "$ODIR" ] && ODIR="-I" [ -z "$REC" ] && REC=64 -FILE=/mnt/lustre/test.$$ +[ -z "$FILE" ] && FILE=/mnt/lustre/iozone.$$ [ $1 ] && SIZE=$1 +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 ] && rm endiozone && exit 0 + [ -f endiozone -o $LOOP -ge $COUNT ] && rm -f endiozone && exit 0 done | tee /tmp/iozone.log