3 # Run a set of benchmarks on the NFS frontend and report performance.
5 source "$HOME/bin/aws-keys"
6 BLUESKY="$HOME/local/bluesky.git"
7 NFSD="$BLUESKY/nfs3/nfsproxy"
10 echo "FATAL ERROR: $@"
15 echo "Starting nfsproxy..." 1>&2
19 sudo mount -t nfs -o tcp,hard,intr localhost:/bluesky /mnt/bluesky || die "Mounting NFS"
23 echo "Stopping nfsproxy..." 1>&2
24 sudo umount -f /mnt/bluesky
30 echo "Checking for sudo access..." 1>&2
32 echo "Preparing for benchmark run..." 1>&2
33 $HOME/docs/2009/fall/s3test/s3-cleanup.py mvrable-bluesky
36 dd if=/dev/urandom of=/mnt/bluesky/file-$i bs=32k count=1
43 echo "Cleaning up from benchmark runs..." 1>&2
48 echo "Running test" 1>&2
49 (cd /mnt/bluesky; $BLUESKY/microbench/readbench "$@") >results-t$1-s$BLUESKY_OPT_SYNC_FRONTENDS
55 export BLUESKY_OPT_SYNC_FRONTENDS=0
56 for t in 1 2 4 6 8 10 12 14 16 20 24 28 32 40 48 56 64; do
60 export BLUESKY_OPT_SYNC_FRONTENDS=1
61 for t in 1 2 4 6 8 10 12 14 16 20 24 28 32 40 48 56 64; do