From 2454ce9e67f94f9ccd5e12954f91341ff1e8e83a Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Wed, 16 Mar 2011 17:00:37 -0700 Subject: [PATCH] Prepare for re-run of synthetic test with more clients --- microbench/run-synread.sh | 16 +++++++++------- nfs3/parse-synread.py | 7 ++++--- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/microbench/run-synread.sh b/microbench/run-synread.sh index 7a77e5e..1840a97 100755 --- a/microbench/run-synread.sh +++ b/microbench/run-synread.sh @@ -20,11 +20,13 @@ run_synbench() { SYNREAD_SIZE=$((1 << 24)) run_cmd $BENCHER warmup-synread for s in $sizes; do - SYNREAD_SIZE=$s - SYNREAD_OUTSTANDING=1 - SYNREAD_PROCS=1 - BLUESKY_RUN_NAME=$basename-$(($s / 1024)) - run_cmd $BENCHER run-synread + for o in 16 32 64; do + SYNREAD_SIZE=$s + SYNREAD_OUTSTANDING=8 + SYNREAD_PROCS=$(($o / 8)) + BLUESKY_RUN_NAME=$basename-$(($s / 1024))-c$o + run_cmd $BENCHER run-synread + done done run_cmd $PROXY stop-proxy @@ -32,8 +34,8 @@ run_synbench() { wait $proxy_pid } -SYNREAD_DURATION=60 +SYNREAD_DURATION=120 for cache in 8 16 24 32; do BLUESKY_CACHE_SIZE=$(($cache * 1024 * 1024)) - run_synbench "syntest-${cache}G" + run_synbench "syntest2-${cache}G" done diff --git a/nfs3/parse-synread.py b/nfs3/parse-synread.py index 689ae56..10d452d 100755 --- a/nfs3/parse-synread.py +++ b/nfs3/parse-synread.py @@ -30,6 +30,7 @@ if __name__ == '__main__': print len(data), len(truncated) duration = float(end - start + 1) print duration - print "Ops per second:", len(truncated) / duration - print "Bandwidth (MB/s):", len(truncated) / duration * blocksize / 1024.0**2 - print "Average latency (ms):", sum(d[1] for d in truncated) / len(truncated) / 1000 + print "# ops/sec\tbandwidth (MB/s)\tLatency(ms)" + print "%s\t%s\t%s" % (len(truncated) / duration, + len(truncated) / duration * blocksize / 1024.0**2, + sum(d[1] for d in truncated) / len(truncated) / 1000) -- 2.20.1