Add proper per-file copyright notices/licenses and top-level license.
[bluesky.git] / microbench / run-synread.sh
index f7fa67c..939bc12 100755 (executable)
@@ -17,11 +17,19 @@ run_synbench() {
     proxy_pid=$!
     sleep 10
 
-    SYNREAD_SIZE=1048576
+    SYNREAD_SIZE=$((1 << 24))
     run_cmd $BENCHER warmup-synread
-    for s in sizes; do
+    for s in $sizes; do
         SYNREAD_SIZE=$s
-        BLUESKY_RUN_NAME=$basename-$s
+
+        SYNREAD_OUTSTANDING=1
+        SYNREAD_PROCS=1
+        BLUESKY_RUN_NAME=$basename-$(($s / 1024))-c1
+        run_cmd $BENCHER run-synread
+
+        SYNREAD_OUTSTANDING=2
+        SYNREAD_PROCS=2
+        BLUESKY_RUN_NAME=$basename-$(($s / 1024))-c4
         run_cmd $BENCHER run-synread
     done
 
@@ -30,13 +38,11 @@ run_synbench() {
     wait $proxy_pid
 }
 
-for BLUESKY_CACHE_SIZE in $((256 * 1024)) $((8192 * 1024 * 1024)); do
+SYNREAD_DURATION=120
+for cache in 0 4 8 12 16 20 24 28 32; do
+    BLUESKY_CACHE_SIZE=$(($cache * 1024 * 1024))
+    if [ $cache -eq 0 ]; then
+        BLUESKY_CACHE_SIZE=$((64 * 1024))
+    fi
+    run_synbench "syntest-${cache}G"
 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