f7fa67c0b6a6ac4d18d499a9da900409bd559bb7
[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=1048576
21     run_cmd $BENCHER warmup-synread
22     for s in sizes; do
23         SYNREAD_SIZE=$s
24         BLUESKY_RUN_NAME=$basename-$s
25         run_cmd $BENCHER run-synread
26     done
27
28     run_cmd $PROXY stop-proxy
29     echo "Waiting for proxy to stop..."
30     wait $proxy_pid
31 }
32
33 for BLUESKY_CACHE_SIZE in $((256 * 1024)) $((8192 * 1024 * 1024)); do
34 done
35
36 run_synbench s3-west-noagg sfs_bluesky
37
38 BLUESKY_EXTRA_OPTS="BLUESKY_OPT_NO_CRYPTO=1"
39 run_spec s3-west-nocrypt sfs_bluesky
40
41 BLUESKY_EXTRA_OPTS="BLUESKY_OPT_NO_GROUP_READS=1 BLUESKY_OPT_NO_CRYPTO=1"
42 run_spec s3-west-noagg-nocrypt sfs_bluesky