Results from a SPECsfs run with 8GB of memory
[bluesky.git] / microbench / run-common.sh
1 # Common definitions and functions for the various run-* scripts.
2
3 . $HOME/bin/aws-keys
4
5 SCRIPT_PATH=/scratch/bluesky.git/microbench/setup
6
7 PARAMS="BLUESKY_RUN_NAME BLUESKY_CACHE_SIZE BLUESKY_TARGET BENCH_DURATION BENCH_FILESIZE BENCH_FILECOUNT BENCH_WRITERATIO BENCH_THREADS BENCH_OPS BENCH_INTERVALS BENCH_DIRSIZE BENCH_BLOCKSIZE NFS_BLOCKSIZE SPEC_CONF"
8
9 BLUESKY_RUN_NAME=$(date +%Y%m%d)-$$
10 BENCHER=vrable1.sysnet.ucsd.edu
11 PROXY=vrable2.sysnet.ucsd.edu
12
13 SSH_ARGS="-i $HOME/.ssh/id_bluesky"
14
15 get_params() {
16     for p in $PARAMS; do
17         if [ -n "${!p}" ]; then
18             echo "$p=${!p}"
19         fi
20     done
21 }
22
23 run_cmd() {
24     host="$1"; shift
25     cmd="$1"; shift
26     echo "EXECUTE($host):" "$cmd" "$@" 1>&2
27     ssh $SSH_ARGS -l root $host $SCRIPT_PATH/$cmd "$@" $(get_params)
28 }
29
30 BLUESKY_CACHE_SIZE=$((8 * 1024 * 1024))
31 BENCH_FILESIZE=$((1024 * 1024))
32 BENCH_BLOCKSIZE=0
33 BENCH_FILECOUNT=$((62))
34 BENCH_WRITERATIO=0.5
35 BENCH_THREADS=4
36 BENCH_DURATION=120
37 BENCH_INTERVALS=10
38 BENCH_DIRSIZE=128
39 NFS_BLOCKSIZE=1048576