From 1de697628e4acf932508d3f0edb7f6416201ee02 Mon Sep 17 00:00:00 2001 From: akankshamahajan Date: Thu, 9 Mar 2023 09:16:20 -0800 Subject: [PATCH] Fix hang in async_io benchmarks in regression script (#11285) Summary: Fix hang in async_io benchmarks in regression script. I changed the order of benchmarks and that somehow fixed the issue of hang. Pull Request resolved: https://github.com/facebook/rocksdb/pull/11285 Test Plan: Ran it manually Reviewed By: pdillinger Differential Revision: D43937431 Pulled By: akankshamahajan15 fbshipit-source-id: 7c43075d3be6b8f41d08e845664012768b769661 --- tools/regression_test.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/regression_test.sh b/tools/regression_test.sh index 8d03ad32e..49cbb207f 100755 --- a/tools/regression_test.sh +++ b/tools/regression_test.sh @@ -137,15 +137,15 @@ function main { fi if [ $TEST_MODE -ge 1 ]; then build_checkpoint + # run_db_bench benchmark_name NUM_OPS NUM_THREADS USED_EXISTING_DB UPDATE_REPORT ASYNC_IO + run_db_bench "seekrandom_asyncio" $NUM_OPS $NUM_THREADS 1 1 true + run_db_bench "multireadrandom_asyncio" $NUM_OPS $NUM_THREADS 1 1 true run_db_bench "readrandom" run_db_bench "readwhilewriting" run_db_bench "deleterandom" run_db_bench "seekrandom" run_db_bench "seekrandomwhilewriting" run_db_bench "multireadrandom" - # run_db_bench benchmark_name NUM_OPS NUM_THREADS USED_EXISTING_DB UPDATE_REPORT ASYNC_IO - run_db_bench "seekrandom_asyncio" $NUM_OPS $NUM_THREADS 1 1 true - run_db_bench "multireadrandom_asyncio" $NUM_OPS $NUM_THREADS 1 1 true fi cleanup_test_directory $TEST_ROOT_DIR @@ -313,7 +313,7 @@ function run_db_bench { } function set_async_io_parameters { - options=" --duration=50" + options=" --duration=500" # Below parameters are used in case of async_io only. # 1. If you want to run below parameters for all benchmarks, it should be # specify in OPTIONS_FILE instead of exporting them.