75b7f4bc78c78b439acf19b704e90c3cbdb1369b
[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_CACHE_SIZE=$((32 * 1024 * 1024))
41 BLUESKY_EXTRA_OPTS="BLUESKY_OPT_NO_CRYPTO=1"
42 #run_spec s3-west-hi16 sfs_bluesky-hi
43 run_spec native-hi16 sfs_bluesky-hi
44
45 #BLUESKY_TARGET=native
46 #run_spec native-hi8 sfs_bluesky-hi
47
48 #BLUESKY_TARGET=s3:mvrable-bluesky-west
49 #BLUESKY_EXTRA_OPTS="BLUESKY_OPT_NO_GROUP_READS=1"
50 #run_spec s3-west-noagg sfs_bluesky
51
52 #BLUESKY_EXTRA_OPTS="BLUESKY_OPT_NO_CRYPTO=1"
53 #run_spec s3-west-nocrypt sfs_bluesky
54
55 #BLUESKY_EXTRA_OPTS="BLUESKY_OPT_NO_GROUP_READS=1 BLUESKY_OPT_NO_CRYPTO=1"
56 #run_spec s3-west-noagg-nocrypt sfs_bluesky