Prepare for first real synthetic read benchmark
[bluesky.git] / microbench / run-synread.sh
1 #!/bin/bash
2
3 BASEDIR=$(dirname $(which $0))
4 . $BASEDIR/run-common.sh
5
6 BLUESKY_TARGET=s3:mvrable-readbench-west
7 BLUESKY_EXTRA_OPTS="BLUESKY_OPT_NO_CRYPTO=1"
8
9 sizes="1048576 131072 32768"
10
11 run_synbench() {
12     basename=$(date +%Y%m%d)-$1
13     BLUESKY_RUN_NAME=$basename
14
15     run_cmd $PROXY cleanup-proxy
16     run_cmd $PROXY run-proxy >$BLUESKY_RUN_NAME.proxy 2>&1 &
17     proxy_pid=$!
18     sleep 10
19
20     SYNREAD_SIZE=$((1 << 24))
21     run_cmd $BENCHER warmup-synread
22     for s in $sizes; do
23         SYNREAD_SIZE=$s
24         SYNREAD_OUTSTANDING=1
25         SYNREAD_PROCS=1
26         BLUESKY_RUN_NAME=$basename-$(($s / 1024))
27         run_cmd $BENCHER run-synread
28     done
29
30     run_cmd $PROXY stop-proxy
31     echo "Waiting for proxy to stop..."
32     wait $proxy_pid
33 }
34
35 SYNREAD_DURATION=60
36 for cache in 4 8 16 32; do
37     BLUESKY_CACHE_SIZE=$(($cache * 1024 * 1024))
38     run_synbench "syntest-${cache}G"
39 done