X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=microbench%2Frun-synread.sh;h=b247b5b40bd4c6586c6f81c21c51a236c71ec745;hb=81b37a6f03b86bc0d8d3a1eee50c9c0feb51b533;hp=3d3d6b6cbb92f2ffe7ee1b717e0f75ce64bde4ca;hpb=dc76977049556a8268313318e3b90143fc9393a9;p=bluesky.git diff --git a/microbench/run-synread.sh b/microbench/run-synread.sh index 3d3d6b6..b247b5b 100755 --- a/microbench/run-synread.sh +++ b/microbench/run-synread.sh @@ -6,28 +6,43 @@ BASEDIR=$(dirname $(which $0)) BLUESKY_TARGET=s3:mvrable-readbench-west BLUESKY_EXTRA_OPTS="BLUESKY_OPT_NO_CRYPTO=1" +sizes="1048576 131072 32768" + run_synbench() { - BLUESKY_RUN_NAME=$(date +%Y%m%d)-$1 + basename=$(date +%Y%m%d)-$1 + BLUESKY_RUN_NAME=$basename run_cmd $PROXY cleanup-proxy run_cmd $PROXY run-proxy >$BLUESKY_RUN_NAME.proxy 2>&1 & proxy_pid=$! sleep 10 - run_cmd $BENCHER run-specsfs + SYNREAD_SIZE=$((1 << 24)) + run_cmd $BENCHER warmup-synread + for s in $sizes; do + SYNREAD_SIZE=$s + + SYNREAD_OUTSTANDING=1 + SYNREAD_PROCS=1 + BLUESKY_RUN_NAME=$basename-$(($s / 1024))-c1 + run_cmd $BENCHER run-synread + + #SYNREAD_OUTSTANDING=8 + #SYNREAD_PROCS=2 + #BLUESKY_RUN_NAME=$basename-$(($s / 1024))-c16 + #run_cmd $BENCHER run-synread + done run_cmd $PROXY stop-proxy echo "Waiting for proxy to stop..." wait $proxy_pid } -for BLUESKY_CACHE_SIZE in $((256 * 1024)) $((8192 * 1024 * 1024)); do +SYNREAD_DURATION=120 +for cache in 0 4 8 12 16 20 24 28 32; do + BLUESKY_CACHE_SIZE=$(($cache * 1024 * 1024)) + if [ $cache -eq 0 ]; then + BLUESKY_CACHE_SIZE=$((64 * 1024)) + fi + run_synbench "syntest-${cache}G" done - -run_spec s3-west-noagg sfs_bluesky - -BLUESKY_EXTRA_OPTS="BLUESKY_OPT_NO_CRYPTO=1" -run_spec s3-west-nocrypt sfs_bluesky - -BLUESKY_EXTRA_OPTS="BLUESKY_OPT_NO_GROUP_READS=1 BLUESKY_OPT_NO_CRYPTO=1" -run_spec s3-west-noagg-nocrypt sfs_bluesky