From 0623ad8d40d5459b6168b23bd2c7444913b365fd Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Wed, 16 Mar 2011 14:05:12 -0700 Subject: [PATCH] synread script updates --- microbench/run-synread.sh | 4 +--- nfs3/parse-synread.py | 7 ++++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/microbench/run-synread.sh b/microbench/run-synread.sh index c6ae3d3..22ad853 100755 --- a/microbench/run-synread.sh +++ b/microbench/run-synread.sh @@ -33,8 +33,6 @@ run_synbench() { } SYNREAD_DURATION=60 -for BLUESKY_CACHE_SIZE in $((256 * 1024)) $((8192 * 1024 * 1024)); do +for BLUESKY_CACHE_SIZE in $((256 * 1024)) $((8 * 1024 * 1024)); do run_synbench "syntest-$((BLUESKY_CACHE_SIZE / 1024))" done - -BLUESKY_CACHE_SIZE=$((256 * 1024)) diff --git a/nfs3/parse-synread.py b/nfs3/parse-synread.py index 91f128b..689ae56 100755 --- a/nfs3/parse-synread.py +++ b/nfs3/parse-synread.py @@ -15,8 +15,9 @@ def load_log(f): return data if __name__ == '__main__': + blocksize = int(sys.argv[1]) data = [] - for f in sys.argv[1:]: + for f in sys.argv[2:]: data += load_log(open(f)) data.sort() @@ -30,5 +31,5 @@ if __name__ == '__main__': duration = float(end - start + 1) print duration print "Ops per second:", len(truncated) / duration - print "Bandwidth:", len(truncated) / duration * 1048576 - print "Average latency:", sum(d[1] for d in truncated) / len(truncated) + 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 -- 2.20.1