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))
20 # Export any environment variables specified on the command line
23 if echo "$e" | grep = >/dev/null; then
29 # Prepare to run the benchmark
30 mount -t nfs -o vers=3,tcp,rw,soft,intr $SERVER:/export $MNTDIR
32 pushd $MNTDIR >/dev/null
34 for t in $(seq 0 $(($BENCH_THREADS - 1))); do
35 for i in $(seq 0 $(($BENCH_FILECOUNT - 1))); do
36 n1=$(($i / $BENCH_DIRSIZE))
37 n2=$(($i % $BENCH_DIRSIZE))
39 dd if=/dev/zero of=t$t/$n1/$n2 bs=$BENCH_FILESIZE count=1
43 find -type f -exec sha1sum '{}' \;