3 # Prepare a file system for a benchmark run by creating any needed files or
8 SERVER=c09-45.sysnet.ucsd.edu
11 BENCH_FILESIZE=$((1 << 12))
12 BENCH_FILECOUNT=$((8))
19 # Export any environment variables specified on the command line
22 if echo "$e" | grep = >/dev/null; then
28 # Prepare to run the benchmark
29 mount -t nfs -o vers=3,tcp,rw,soft,intr $SERVER:/export $MNTDIR
31 pushd $MNTDIR >/dev/null
33 for t in $(seq 0 $(($BENCH_THREADS - 1))); do
35 for i in $(seq 0 $(($BENCH_FILECOUNT - 1))); do
36 dd if=/dev/zero of=t$t/$i bs=$BENCH_FILESIZE count=1