From: Michael Vrable Date: Sun, 27 Feb 2011 20:46:31 +0000 (-0800) Subject: Make NFS rsize/wsize configurable in the microbenchmark runs. X-Git-Url: https://git.vrable.net/?a=commitdiff_plain;h=f5250f71b8cbb948ae662e5eb407d747f886ef46;p=bluesky.git Make NFS rsize/wsize configurable in the microbenchmark runs. --- diff --git a/microbench/setup/run-benchmark b/microbench/setup/run-benchmark index 6eb40ff..fbe28c8 100755 --- a/microbench/setup/run-benchmark +++ b/microbench/setup/run-benchmark @@ -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