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
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
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)