Benchmark fix--mount the file system to write to it
authorMichael Vrable <mvrable@cs.ucsd.edu>
Thu, 17 Mar 2011 18:45:25 +0000 (11:45 -0700)
committerMichael Vrable <mvrable@cs.ucsd.edu>
Thu, 17 Mar 2011 18:45:25 +0000 (11:45 -0700)
microbench/setup/run-synwrite

index 4d82756..f6c9d86 100755 (executable)
@@ -2,6 +2,9 @@
 #
 # Launch the synthetic write benchmark.
 
+# Defaults
+SERVER=vrable2.sysnet.ucsd.edu
+MNTDIR=/mnt/bluesky
 SYNWRITE_RATE=10
 
 # Export any environment variables specified on the command line
@@ -13,4 +16,8 @@ for e in "$@"; do
     fi
 done
 
-(echo -n "# "; date; /scratch/bluesky.git/microbench/writebench.py $SYNWRITE_RATE) >/scratch/synwrite/$BLUESKY_RUN_NAME.times
+mount -t nfs -o vers=3,tcp,rw,soft,intr $SERVER:/export $MNTDIR || exit 1
+
+(echo -n "# "; date; cd $MNTDIR; /scratch/bluesky.git/microbench/writebench.py $SYNWRITE_RATE) >/scratch/synwrite/$BLUESKY_RUN_NAME.times
+
+umount $MNTDIR