Setup for the 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 run_synbench() {
10     BLUESKY_RUN_NAME=$(date +%Y%m%d)-$1
11
12     run_cmd $PROXY cleanup-proxy
13     run_cmd $PROXY run-proxy >$BLUESKY_RUN_NAME.proxy 2>&1 &
14     proxy_pid=$!
15     sleep 10
16
17     run_cmd $BENCHER run-specsfs
18
19     run_cmd $PROXY stop-proxy
20     echo "Waiting for proxy to stop..."
21     wait $proxy_pid
22 }
23
24 for BLUESKY_CACHE_SIZE in $((256 * 1024)) $((8192 * 1024 * 1024)); do
25 done
26
27 run_spec s3-west-noagg sfs_bluesky
28
29 BLUESKY_EXTRA_OPTS="BLUESKY_OPT_NO_CRYPTO=1"
30 run_spec s3-west-nocrypt sfs_bluesky
31
32 BLUESKY_EXTRA_OPTS="BLUESKY_OPT_NO_GROUP_READS=1 BLUESKY_OPT_NO_CRYPTO=1"
33 run_spec s3-west-noagg-nocrypt sfs_bluesky