Benchmark fix--mount the file system to write to it
[bluesky.git] / microbench / setup / run-synwrite
1 #!/bin/bash
2 #
3 # Launch the synthetic write benchmark.
4
5 # Defaults
6 SERVER=vrable2.sysnet.ucsd.edu
7 MNTDIR=/mnt/bluesky
8 SYNWRITE_RATE=10
9
10 # Export any environment variables specified on the command line
11 for e in "$@"; do
12     echo "$e" 1>&2
13     if echo "$e" | grep = >/dev/null; then
14         eval "$e"
15         export ${e%=*}
16     fi
17 done
18
19 mount -t nfs -o vers=3,tcp,rw,soft,intr $SERVER:/export $MNTDIR || exit 1
20
21 (echo -n "# "; date; cd $MNTDIR; /scratch/bluesky.git/microbench/writebench.py $SYNWRITE_RATE) >/scratch/synwrite/$BLUESKY_RUN_NAME.times
22
23 umount $MNTDIR