Prepare for re-run of synthetic test with more clients
authorMichael Vrable <mvrable@cs.ucsd.edu>
Thu, 17 Mar 2011 00:00:37 +0000 (17:00 -0700)
committerMichael Vrable <mvrable@cs.ucsd.edu>
Thu, 17 Mar 2011 00:00:37 +0000 (17:00 -0700)
microbench/run-synread.sh
nfs3/parse-synread.py

index 7a77e5e..1840a97 100755 (executable)
@@ -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
index 689ae56..10d452d 100755 (executable)
@@ -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)