Prepare for re-run of synthetic test with more clients
[bluesky.git] / microbench / run-synread.sh
index a6e5181..1840a97 100755 (executable)
@@ -6,8 +6,7 @@ BASEDIR=$(dirname $(which $0))
 BLUESKY_TARGET=s3:mvrable-readbench-west
 BLUESKY_EXTRA_OPTS="BLUESKY_OPT_NO_CRYPTO=1"
 
-sizes="1048576"
-#sizes="1048576 131072 32768"
+sizes="1048576 131072 32768"
 
 run_synbench() {
     basename=$(date +%Y%m%d)-$1
@@ -18,12 +17,16 @@ run_synbench() {
     proxy_pid=$!
     sleep 10
 
-    SYNREAD_SIZE=1048576
+    SYNREAD_SIZE=$((1 << 24))
     run_cmd $BENCHER warmup-synread
     for s in $sizes; do
-        SYNREAD_SIZE=$s
-        BLUESKY_RUN_NAME=$basename-$s
-        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
@@ -31,9 +34,8 @@ run_synbench() {
     wait $proxy_pid
 }
 
-for BLUESKY_CACHE_SIZE in $((256 * 1024)) $((8192 * 1024 * 1024)); do
-    echo
+SYNREAD_DURATION=120
+for cache in 8 16 24 32; do
+    BLUESKY_CACHE_SIZE=$(($cache * 1024 * 1024))
+    run_synbench "syntest2-${cache}G"
 done
-
-BLUESKY_CACHE_SIZE=$((256 * 1024))
-run_synbench syntest