From b54d93195121656087794dfd748768cdfd180aed Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Wed, 16 Mar 2011 13:23:00 -0700 Subject: [PATCH] Report average latency in synbench --- microbench/run-synread.sh | 15 ++++++--------- nfs3/parse-synread.py | 1 + 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/microbench/run-synread.sh b/microbench/run-synread.sh index f7fa67c..a6e5181 100755 --- a/microbench/run-synread.sh +++ b/microbench/run-synread.sh @@ -6,7 +6,8 @@ BASEDIR=$(dirname $(which $0)) BLUESKY_TARGET=s3:mvrable-readbench-west BLUESKY_EXTRA_OPTS="BLUESKY_OPT_NO_CRYPTO=1" -sizes="1048576 131072 32768" +sizes="1048576" +#sizes="1048576 131072 32768" run_synbench() { basename=$(date +%Y%m%d)-$1 @@ -19,7 +20,7 @@ run_synbench() { SYNREAD_SIZE=1048576 run_cmd $BENCHER warmup-synread - for s in sizes; do + for s in $sizes; do SYNREAD_SIZE=$s BLUESKY_RUN_NAME=$basename-$s run_cmd $BENCHER run-synread @@ -31,12 +32,8 @@ run_synbench() { } for BLUESKY_CACHE_SIZE in $((256 * 1024)) $((8192 * 1024 * 1024)); do + echo done -run_synbench s3-west-noagg sfs_bluesky - -BLUESKY_EXTRA_OPTS="BLUESKY_OPT_NO_CRYPTO=1" -run_spec s3-west-nocrypt sfs_bluesky - -BLUESKY_EXTRA_OPTS="BLUESKY_OPT_NO_GROUP_READS=1 BLUESKY_OPT_NO_CRYPTO=1" -run_spec s3-west-noagg-nocrypt sfs_bluesky +BLUESKY_CACHE_SIZE=$((256 * 1024)) +run_synbench syntest diff --git a/nfs3/parse-synread.py b/nfs3/parse-synread.py index 6c75efb..91f128b 100755 --- a/nfs3/parse-synread.py +++ b/nfs3/parse-synread.py @@ -31,3 +31,4 @@ if __name__ == '__main__': 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) -- 2.20.1