From: Michael Vrable Date: Wed, 16 Mar 2011 21:05:12 +0000 (-0700) Subject: synread script updates X-Git-Url: https://git.vrable.net/?a=commitdiff_plain;h=0623ad8d40d5459b6168b23bd2c7444913b365fd;p=bluesky.git synread script updates --- 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