Whamcloud - gitweb
d437988d26efe4d649c3032883a8da03380e1f59
[fs/lustre-release.git] / lustre / tests / runiozone
1 #!/bin/sh
2 SIZE=5g
3 COUNT=0
4 [ $1 ] && SIZE=$1
5 rm -f endiozone
6 while date; do
7         echo "Test #$COUNT"
8         iozone -i 0 -i 1 -f /mnt/lustre/test.$$ -s $SIZE 2>&1 || exit $?
9         COUNT=`expr $COUNT + 1`
10         [ -f endiozone ] && rm endiozone && exit 0
11 done | tee /tmp/iozone.log