Make NFS rsize/wsize configurable in the microbenchmark runs.
authorMichael Vrable <mvrable@cs.ucsd.edu>
Sun, 27 Feb 2011 20:46:31 +0000 (12:46 -0800)
committerMichael Vrable <mvrable@cs.ucsd.edu>
Sun, 27 Feb 2011 20:46:31 +0000 (12:46 -0800)
microbench/setup/run-benchmark

index 6eb40ff..fbe28c8 100755 (executable)
@@ -17,6 +17,7 @@ BENCH_OPS=100
 BENCH_INTERVALS=4
 BENCH_DIRSIZE=256
 BENCH_LOCKEDMEM=$((4096 - 256))
+NFS_BLOCKSIZE=32768
 
 lock_memory() {
     MEM=$1
@@ -41,7 +42,7 @@ done
 # Prepare to run the benchmark
 lock_memory $BENCH_LOCKEDMEM
 
-mount -t nfs -o vers=3,tcp,rw,soft,intr $SERVER:/export $MNTDIR
+mount -t nfs -o vers=3,tcp,rw,soft,intr,rsize=$NFS_BLOCKSIZE,wsize=$NFS_BLOCKSIZE $SERVER:/export $MNTDIR
 
 pushd $MNTDIR >/dev/null