path: rocksdb_9.11.2-1/tools/regression_test.sh # $6 --- async_io. Default: False function run_db_bench { # Make sure no other db_bench is running. (Make sure command succeeds if pidof # command exists but finds nothing.) pids_cmd='pidof db_bench || pidof --version > /dev/null' path: rocksdb_9.11.2-1/tools/regression_test.sh # Make sure no other db_bench is running. (Make sure command succeeds if pidof # command exists but finds nothing.) pids_cmd='pidof db_bench || pidof --version > /dev/null' # But first, make best effort to kill any db_bench that have run for more # than 12 hours, as that indicates a hung or runaway process. path: rocksdb_9.11.2-1/tools/regression_test.sh # But first, make best effort to kill any db_bench that have run for more # than 12 hours, as that indicates a hung or runaway process. kill_old_cmd='for PID in $(pidof db_bench); do [ "$(($(stat -c %Y /proc/$PID) + 43200))" -lt "$(date +%s)" ] && echo "Killing old db_bench $PID" && kill $PID && sleep 5 && kill -9 $PID && sleep 5; done; pidof --version > /dev/null' if ! [ -z "$REMOTE_USER_AT_HOST" ]; then pids_cmd="$SSH $REMOTE_USER_AT_HOST '$pids_cmd'"