From bd2645bc3403b69e6a2782bbb6f62735bc0d9c13 Mon Sep 17 00:00:00 2001 From: anand76 Date: Wed, 23 Dec 2020 11:24:50 -0800 Subject: [PATCH] Update regression_test.sh to run multireadrandom benchmark (#7802) Summary: Update the regression_test.sh script to run the multireadrandom benchmark. Pull Request resolved: https://github.com/facebook/rocksdb/pull/7802 Reviewed By: zhichao-cao Differential Revision: D25685482 Pulled By: anand1976 fbshipit-source-id: ef2973b551a1bbdbce198a0adf29fc277f3e65e2 --- tools/regression_test.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/regression_test.sh b/tools/regression_test.sh index ed3ef7ab3..460400b7e 100755 --- a/tools/regression_test.sh +++ b/tools/regression_test.sh @@ -142,6 +142,7 @@ function main { run_db_bench "deleterandom" $((NUM_KEYS / 10 / $NUM_THREADS)) run_db_bench "seekrandom" run_db_bench "seekrandomwhilewriting" + run_db_bench "multireadrandom" fi cleanup_test_directory $TEST_ROOT_DIR @@ -192,6 +193,8 @@ function init_arguments { DELETE_TEST_PATH=${DELETE_TEST_PATH:-0} SEEK_NEXTS=${SEEK_NEXTS:-10} SEED=${SEED:-$( date +%s )} + MULTIREAD_BATCH_SIZE=${MULTIREAD_BATCH_SIZE:-128} + MULTIREAD_STRIDE=${MULTIREAD_STRIDE:-12} } # $1 --- benchmark name @@ -240,7 +243,10 @@ function run_db_bench { --max_background_compactions=$MAX_BACKGROUND_COMPACTIONS \ --num_high_pri_threads=$NUM_HIGH_PRI_THREADS \ --num_low_pri_threads=$NUM_LOW_PRI_THREADS \ - --seed=$SEED) 2>&1" + --seed=$SEED \ + --multiread_batched=true \ + --batch_size=$MULTIREAD_BATCH_SIZE \ + --multiread_stride=$MULTIREAD_STRIDE) 2>&1" ps_cmd="ps aux" if ! [ -z "$REMOTE_USER_AT_HOST" ]; then echo "Running benchmark remotely on $REMOTE_USER_AT_HOST"