Report average latency in synbench
authorMichael Vrable <mvrable@cs.ucsd.edu>
Wed, 16 Mar 2011 20:23:00 +0000 (13:23 -0700)
committerMichael Vrable <mvrable@cs.ucsd.edu>
Wed, 16 Mar 2011 20:23:00 +0000 (13:23 -0700)
microbench/run-synread.sh
nfs3/parse-synread.py

index f7fa67c..a6e5181 100755 (executable)
@@ -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
index 6c75efb..91f128b 100755 (executable)
@@ -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)