2 # script which _must_ complete successfully (at minimum) before checkins to
3 # the CVS HEAD are allowed.
6 [ "$CONFIGS" ] || CONFIGS="local lov"
7 [ "$THREADS" ] || THREADS=1
8 [ "$SIZE" ] || SIZE=20480
9 [ "$RSIZE" ] || RSIZE=64
10 [ "$UID" ] || UID=1000
11 [ "$MNT" ] || MNT=/mnt/lustre
12 [ "$COUNT" ] || COUNT=1000
13 [ "$DEBUG_OFF" ] || DEBUG_OFF="eval echo 0 > /proc/sys/portals/debug"
15 for NAME in $CONFIGS; do
17 [ -e $NAME.sh ] && sh $NAME.sh
18 [ ! -e $NAME.xml ] && echo "no config '$NAME.xml'" 1>&2 && exit 1
20 if [ "$RUNTESTS" != "no" ]; then
24 mount | grep $MNT || sh llmount.sh
25 [ "$SANITY" != "no" ] && sh sanity.sh
26 if [ "$DBENCH" != "no" ]; then
31 if [ $THREADS -gt 1 ]; then
36 rm -f /mnt/lustre/client.txt
38 chown $UID $MNT && chmod 700 $MNT
39 if [ "$BONNIE" != "no" ]; then
41 bonnie++ -s 0 -n 10 -u $UID -d $MNT
45 IOZONE_OPTS="-i 0 -i 1 -i 2 -+d -r $RSIZE -s $SIZE"
46 IOZONE_FILE="-f $MNT/iozone"
47 if [ "$IOZONE" != "no" ]; then
49 iozone $IOZONE_OPTS $IOZONE_FILE
53 if [ "$IOZONE_DIR" != "no" ]; then
55 iozone -I $IOZONE_OPTS $IOZONE_FILE.odir
56 IOZVER=`iozone -v | awk '/Revision:/ { print $3 }' | tr -d '.'`
59 if [ "$THREADS" -gt 1 -a "$IOZVER" -ge 3145 ]; then
63 SIZE=`expr $SIZE / $THREADS`
64 while [ $THREAD -le $THREADS ]; do
65 IOZONE_FILE="$IOZONE_FILE $MNT/iozone.$THREAD"
66 THREAD=`expr $THREAD + 1`
68 iozone -I $IOZONE_OPTS -t $THREADS $IOZONE_FILE
71 elif [ $IOZVER -lt 3145 ]; then
72 VER=`iozone -v | awk '/Revision:/ { print $3 }'`
73 echo "iozone $VER too old for multi-threaded tests"
76 if [ "$FSX" != "no" ]; then
78 ./fsx -c 50 -p 1000 -l 1024000 -N $(($COUNT * 100)) $MNT/fsxfile
82 mount | grep $MNT && sh llmountcleanup.sh