Whamcloud - gitweb
merge b_devel into HEAD, which will become 0.7.3
[fs/lustre-release.git] / lustre / tests / rundbench
1 #!/bin/sh
2 MNT=${MNT:-/mnt/lustre}
3 DIR=${DIR:-$MNT/`hostname`}
4 #[ -e /proc/sys/portals/debug ] && echo 0 > /proc/sys/portals/debug 
5 mkdir -p $DIR
6 TGT=$DIR/client.txt
7 SRC=${SRC:-/usr/lib/dbench/client.txt}
8 [ ! -e $TGT -a -e $SRC ] && echo "copying $SRC to $TGT" && cp $SRC $TGT
9 SRC=/usr/lib/dbench/client_plain.txt
10 [ ! -e $TGT -a -e $SRC ] && echo "copying $SRC to $TGT" && cp $SRC $TGT
11 cd $DIR
12 echo "running 'dbench $@' on $PWD at `date`"
13 dbench -c client.txt $@