7034889f8bd3aee19ca693cd67fc32115114a466
[bluesky.git] / microbench / run-spec.sh
1 #!/bin/bash
2
3 BASEDIR=$(dirname $(which $0))
4 . $BASEDIR/run-common.sh
5
6 run_spec() {
7     BLUESKY_RUN_NAME=$(date +%Y%m%d)-$1
8     SPEC_CONF=$2
9
10     $HOME/bin/s3-cleanup.py mvrable-bluesky
11     $HOME/bin/s3-cleanup.py mvrable-bluesky-west
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 # Test of using full segment fetches instead of range requests
25 #BLUESKY_TARGET=s3:mvrable-bluesky-west
26 #BLUESKY_OPT_FULL_SEGMENTS=1
27 #run_spec s3-west-fullseg sfs_bluesky
28
29 # Run a simulation of not using a log-structured system at all
30 #BLUESKY_TARGET=s3:mvrable-bluesky-west
31 #BLUESKY_EXTRA_OPTS="BLUESKY_OPT_FULL_SEGMENTS=1 BLUESKY_OPT_NO_AGGREGATION=1"
32 #run_spec s3-west-noseg sfs_bluesky
33
34 # Standard test with Azure instead of Amazon S3 for storage
35 BLUESKY_TARGET=azure
36 run_spec azure sfs_bluesky
37
38 # BlueSky, testing with a greater degree of parallelism
39 #BLUESKY_TARGET=s3:mvrable-bluesky-west
40 #BLUESKY_EXTRA_OPTS="BLUESKY_OPT_NO_CRYPTO=1"
41 #run_spec s3-west-hi32 sfs_bluesky-hi
42
43 #BLUESKY_TARGET=native
44 #run_spec native-hi8 sfs_bluesky-hi
45
46 #BLUESKY_TARGET=s3:mvrable-bluesky-west
47 #BLUESKY_EXTRA_OPTS="BLUESKY_OPT_NO_GROUP_READS=1"
48 #run_spec s3-west-noagg sfs_bluesky
49
50 #BLUESKY_EXTRA_OPTS="BLUESKY_OPT_NO_CRYPTO=1"
51 #run_spec s3-west-nocrypt sfs_bluesky
52
53 #BLUESKY_EXTRA_OPTS="BLUESKY_OPT_NO_GROUP_READS=1 BLUESKY_OPT_NO_CRYPTO=1"
54 #run_spec s3-west-noagg-nocrypt sfs_bluesky