2016-07-20 18:16:23 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
testdir=$(readlink -f $(dirname $0))
|
2018-03-22 19:43:32 +00:00
|
|
|
rootdir=$(readlink -f $testdir/../..)
|
2019-06-10 07:16:46 +00:00
|
|
|
source $rootdir/test/common/autotest_common.sh
|
|
|
|
source $testdir/nbd_common.sh
|
|
|
|
|
2018-09-11 13:26:14 +00:00
|
|
|
rpc_py="$rootdir/scripts/rpc.py"
|
2019-12-17 18:29:06 +00:00
|
|
|
conf_file="$testdir/bdev.conf"
|
2020-01-29 16:07:09 +00:00
|
|
|
# Make sure the configuration is clean
|
|
|
|
:>"$conf_file"
|
|
|
|
|
|
|
|
function start_spdk_tgt() {
|
|
|
|
local spdk_cmd
|
|
|
|
|
|
|
|
if [[ -n $spdk_tgt_pid ]] && kill -0 "$spdk_tgt_pid" &>/dev/null; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ -s $conf_file ]]; then
|
|
|
|
spdk_cmd+=(--config "$conf_file")
|
|
|
|
fi
|
|
|
|
|
|
|
|
"$rootdir/app/spdk_tgt/spdk_tgt" "${spdk_cmd[@]}" &
|
|
|
|
spdk_tgt_pid=$!
|
|
|
|
trap 'killprocess "$spdk_tgt_pid"; exit 1' SIGINT SIGTERM EXIT
|
|
|
|
waitforlisten "$spdk_tgt_pid"
|
|
|
|
}
|
2019-12-17 18:29:06 +00:00
|
|
|
|
|
|
|
function setup_bdev_conf() {
|
|
|
|
# Create a file to be used as an AIO backend
|
|
|
|
dd if=/dev/zero of=/tmp/aiofile bs=2048 count=5000
|
|
|
|
|
|
|
|
cat >$conf_file <<-EOF
|
|
|
|
[AIO]
|
|
|
|
AIO /tmp/aiofile AIO0 2048
|
|
|
|
|
|
|
|
[Malloc]
|
2019-12-17 20:31:51 +00:00
|
|
|
NumberOfLuns 6
|
2019-12-17 18:29:06 +00:00
|
|
|
LunSizeInMB 32
|
|
|
|
|
|
|
|
[Split]
|
|
|
|
Split Malloc1 2
|
|
|
|
Split Malloc2 8 4
|
|
|
|
|
|
|
|
[Passthru]
|
|
|
|
PT Malloc3 TestPT
|
|
|
|
|
2020-01-29 16:07:09 +00:00
|
|
|
# FIXME: QoS doesn't work properly with json_config: issue 1146
|
|
|
|
# [QoS]
|
|
|
|
# Limit_IOPS Malloc0 20000
|
|
|
|
# Limit_BPS Malloc3 100
|
2019-12-17 18:29:06 +00:00
|
|
|
|
|
|
|
[RAID0]
|
|
|
|
Name raid0
|
|
|
|
StripSize 64
|
|
|
|
NumDevices 2
|
|
|
|
RaidLevel 0
|
|
|
|
Devices Malloc4 Malloc5
|
|
|
|
EOF
|
|
|
|
}
|
2016-07-20 18:16:23 +00:00
|
|
|
|
2019-12-17 19:45:55 +00:00
|
|
|
function setup_nvme_conf() {
|
|
|
|
$rootdir/scripts/gen_nvme.sh >> $conf_file
|
|
|
|
}
|
|
|
|
|
|
|
|
function setup_gpt_conf() {
|
2020-01-29 16:07:09 +00:00
|
|
|
# FIXME: Remove this
|
|
|
|
if [[ $1 == reset ]]; then
|
|
|
|
# Make sure that on reset we use ini config only as part_dev_by_gpt()
|
|
|
|
# still depends on it
|
|
|
|
:>"$conf_file"
|
|
|
|
fi
|
2019-12-17 20:31:51 +00:00
|
|
|
setup_nvme_conf
|
2019-12-17 19:45:55 +00:00
|
|
|
if grep -q Nvme0 $conf_file; then
|
2020-01-29 16:07:09 +00:00
|
|
|
[[ $1 == reset ]] && return 0
|
2019-12-17 19:45:55 +00:00
|
|
|
part_dev_by_gpt $conf_file Nvme0n1 $rootdir
|
2019-12-17 20:31:51 +00:00
|
|
|
else
|
|
|
|
return 1
|
2019-12-17 19:45:55 +00:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
function setup_crypto_conf() {
|
2019-12-17 20:31:51 +00:00
|
|
|
cat >$conf_file <<-EOF
|
|
|
|
[Malloc]
|
2020-02-01 21:19:18 +00:00
|
|
|
NumberOfLuns 3
|
|
|
|
LunSizeInMB 16
|
2019-12-17 20:31:51 +00:00
|
|
|
EOF
|
2020-02-01 21:19:18 +00:00
|
|
|
$testdir/gen_crypto.sh Malloc0 Malloc1 Malloc2 >> $conf_file
|
2019-12-17 19:45:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function setup_pmem_conf() {
|
|
|
|
if hash pmempool; then
|
|
|
|
rm -f /tmp/spdk-pmem-pool
|
|
|
|
pmempool create blk --size=32M 512 /tmp/spdk-pmem-pool
|
|
|
|
echo "[Pmem]" >> $conf_file
|
|
|
|
echo " Blk /tmp/spdk-pmem-pool Pmem0" >> $conf_file
|
2019-12-17 20:31:51 +00:00
|
|
|
else
|
|
|
|
return 1
|
2019-12-17 19:45:55 +00:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
function setup_rbd_conf() {
|
2019-12-17 20:31:51 +00:00
|
|
|
timing_enter rbd_setup
|
|
|
|
rbd_setup 127.0.0.1
|
|
|
|
timing_exit rbd_setup
|
2019-12-17 19:45:55 +00:00
|
|
|
|
2019-12-17 20:31:51 +00:00
|
|
|
$rootdir/scripts/gen_rbd.sh >> $conf_file
|
2019-12-17 19:45:55 +00:00
|
|
|
}
|
|
|
|
|
2019-12-10 17:49:31 +00:00
|
|
|
function bdev_bounds() {
|
2020-01-29 16:07:09 +00:00
|
|
|
$testdir/bdevio/bdevio -w -s $PRE_RESERVED_MEM --json "$conf_file" &
|
2019-12-10 17:49:31 +00:00
|
|
|
bdevio_pid=$!
|
|
|
|
trap 'killprocess $bdevio_pid; exit 1' SIGINT SIGTERM EXIT
|
|
|
|
echo "Process bdevio pid: $bdevio_pid"
|
|
|
|
waitforlisten $bdevio_pid
|
|
|
|
$testdir/bdevio/tests.py perform_tests
|
|
|
|
killprocess $bdevio_pid
|
|
|
|
trap - SIGINT SIGTERM EXIT
|
|
|
|
}
|
|
|
|
|
2017-12-14 01:44:56 +00:00
|
|
|
function nbd_function_test() {
|
|
|
|
if [ $(uname -s) = Linux ] && modprobe -n nbd; then
|
|
|
|
local rpc_server=/var/tmp/spdk-nbd.sock
|
|
|
|
local conf=$1
|
2019-06-12 07:48:32 +00:00
|
|
|
local nbd_all=($(ls /dev/nbd* | grep -v p))
|
2017-12-14 01:44:56 +00:00
|
|
|
local bdev_all=($bdevs_name)
|
2019-12-17 22:12:07 +00:00
|
|
|
local nbd_num=${#bdevs_all[@]}
|
|
|
|
if [ ${#nbd_all[@]} -le $nbd_num ]; then
|
|
|
|
nbd_num=${#nbd_all[@]}
|
|
|
|
fi
|
2017-12-14 01:44:56 +00:00
|
|
|
local nbd_list=(${nbd_all[@]:0:$nbd_num})
|
|
|
|
local bdev_list=(${bdev_all[@]:0:$nbd_num})
|
|
|
|
|
|
|
|
if [ ! -e $conf ]; then
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
modprobe nbd
|
2020-01-29 16:07:09 +00:00
|
|
|
$rootdir/test/app/bdev_svc/bdev_svc -r $rpc_server -i 0 --json "$conf" &
|
2017-12-14 01:44:56 +00:00
|
|
|
nbd_pid=$!
|
2019-08-09 08:46:01 +00:00
|
|
|
trap 'killprocess $nbd_pid; exit 1' SIGINT SIGTERM EXIT
|
2017-12-14 01:44:56 +00:00
|
|
|
echo "Process nbd pid: $nbd_pid"
|
|
|
|
waitforlisten $nbd_pid $rpc_server
|
|
|
|
|
2019-01-15 12:52:11 +00:00
|
|
|
nbd_rpc_start_stop_verify $rpc_server "${bdev_list[*]}"
|
2017-12-14 01:44:56 +00:00
|
|
|
nbd_rpc_data_verify $rpc_server "${bdev_list[*]}" "${nbd_list[*]}"
|
|
|
|
|
|
|
|
killprocess $nbd_pid
|
2019-06-11 13:07:55 +00:00
|
|
|
trap - SIGINT SIGTERM EXIT
|
2017-12-14 01:44:56 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
return 0
|
|
|
|
}
|
2016-07-20 18:16:23 +00:00
|
|
|
|
2019-12-05 17:16:24 +00:00
|
|
|
function fio_test_suite() {
|
|
|
|
# Generate the fio config file given the list of all unclaimed bdevs
|
|
|
|
fio_config_gen $testdir/bdev.fio verify AIO
|
|
|
|
for b in $(echo $bdevs | jq -r '.name'); do
|
2020-03-16 14:26:05 +00:00
|
|
|
echo "[job_$b]" >> $testdir/bdev.fio
|
|
|
|
echo "filename=$b" >> $testdir/bdev.fio
|
2019-12-05 17:16:24 +00:00
|
|
|
done
|
|
|
|
|
2020-01-16 21:04:10 +00:00
|
|
|
if [ $RUN_NIGHTLY_FAILING -eq 0 ]; then
|
2020-01-29 16:07:09 +00:00
|
|
|
local fio_params="--ioengine=spdk_bdev --iodepth=8 --bs=4k --runtime=10 $testdir/bdev.fio --spdk_json_conf=./test/bdev/bdev.conf"
|
2020-01-16 21:04:10 +00:00
|
|
|
else
|
2019-12-05 17:16:24 +00:00
|
|
|
# Use size 192KB which both exceeds typical 128KB max NVMe I/O
|
|
|
|
# size and will cross 128KB Intel DC P3700 stripe boundaries.
|
2020-01-29 16:07:09 +00:00
|
|
|
local fio_params="--ioengine=spdk_bdev --iodepth=128 --bs=192k --runtime=100 $testdir/bdev.fio --spdk_json_conf=./test/bdev/bdev.conf"
|
2019-12-05 17:16:24 +00:00
|
|
|
fi
|
2020-01-16 21:04:10 +00:00
|
|
|
|
|
|
|
run_test "bdev_fio_rw_verify" fio_bdev $fio_params --spdk_mem=$PRE_RESERVED_MEM \
|
|
|
|
--output=$output_dir/blockdev_fio_verify.txt
|
2019-12-05 17:16:24 +00:00
|
|
|
rm -f ./*.state
|
|
|
|
rm -f $testdir/bdev.fio
|
|
|
|
|
|
|
|
# Generate the fio config file given the list of all unclaimed bdevs that support unmap
|
|
|
|
fio_config_gen $testdir/bdev.fio trim
|
2019-12-18 15:27:53 +00:00
|
|
|
if [ "$(echo $bdevs | jq -r 'select(.supported_io_types.unmap == true) | .name')" != "" ]; then
|
|
|
|
for b in $(echo $bdevs | jq -r 'select(.supported_io_types.unmap == true) | .name'); do
|
2020-03-16 14:26:05 +00:00
|
|
|
echo "[job_$b]" >> $testdir/bdev.fio
|
|
|
|
echo "filename=$b" >> $testdir/bdev.fio
|
2019-12-18 15:27:53 +00:00
|
|
|
done
|
|
|
|
else
|
|
|
|
rm -f $testdir/bdev.fio
|
|
|
|
return 0
|
|
|
|
fi
|
2019-12-05 17:16:24 +00:00
|
|
|
|
2020-01-16 21:04:10 +00:00
|
|
|
run_test "bdev_fio_trim" fio_bdev $fio_params --output=$output_dir/blockdev_trim.txt
|
2019-12-05 17:16:24 +00:00
|
|
|
rm -f ./*.state
|
|
|
|
rm -f $testdir/bdev.fio
|
|
|
|
}
|
|
|
|
|
2019-03-12 22:49:36 +00:00
|
|
|
function get_io_result() {
|
|
|
|
local limit_type=$1
|
2019-11-26 19:45:09 +00:00
|
|
|
local qos_dev=$2
|
2019-12-03 06:53:35 +00:00
|
|
|
local iostat_result
|
|
|
|
iostat_result=$($rootdir/scripts/iostat.py -d -i 1 -t $QOS_RUN_TIME | grep $qos_dev | tail -1)
|
2019-03-12 22:49:36 +00:00
|
|
|
if [ $limit_type = IOPS ]; then
|
2019-12-03 06:53:35 +00:00
|
|
|
iostat_result=$(awk '{print $2}' <<< $iostat_result)
|
|
|
|
elif [ $limit_type = BANDWIDTH ]; then
|
|
|
|
iostat_result=$(awk '{print $6}' <<< $iostat_result)
|
2019-03-12 22:49:36 +00:00
|
|
|
fi
|
|
|
|
|
2019-12-03 06:53:35 +00:00
|
|
|
echo ${iostat_result/.*}
|
2019-03-12 22:49:36 +00:00
|
|
|
}
|
|
|
|
|
2019-12-03 06:53:35 +00:00
|
|
|
|
2019-03-12 22:49:36 +00:00
|
|
|
function run_qos_test() {
|
|
|
|
local qos_limit=$1
|
|
|
|
local qos_result=0
|
|
|
|
|
2019-11-26 19:45:09 +00:00
|
|
|
qos_result=$(get_io_result $2 $3)
|
2019-03-12 22:49:36 +00:00
|
|
|
if [ $2 = BANDWIDTH ]; then
|
2019-11-22 22:47:08 +00:00
|
|
|
qos_limit=$((qos_limit*1024))
|
2019-03-12 22:49:36 +00:00
|
|
|
fi
|
2019-11-22 22:47:08 +00:00
|
|
|
lower_limit=$((qos_limit*9/10))
|
|
|
|
upper_limit=$((qos_limit*11/10))
|
2019-03-12 22:49:36 +00:00
|
|
|
|
|
|
|
# QoS realization is related with bytes transfered. It currently has some variation.
|
|
|
|
if [ $qos_result -lt $lower_limit ] || [ $qos_result -gt $upper_limit ]; then
|
|
|
|
echo "Failed to limit the io read rate of NULL bdev by qos"
|
2020-01-17 11:11:57 +00:00
|
|
|
$rpc_py bdev_malloc_delete $QOS_DEV_1
|
2019-11-26 19:45:09 +00:00
|
|
|
$rpc_py bdev_null_delete $QOS_DEV_2
|
2019-03-12 22:49:36 +00:00
|
|
|
killprocess $QOS_PID
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
function qos_function_test() {
|
|
|
|
local qos_lower_iops_limit=1000
|
2019-11-26 19:45:09 +00:00
|
|
|
local qos_lower_bw_limit=2
|
2019-03-12 22:49:36 +00:00
|
|
|
local io_result=0
|
2019-11-26 19:45:09 +00:00
|
|
|
local iops_limit=0
|
|
|
|
local bw_limit=0
|
2019-03-12 22:49:36 +00:00
|
|
|
|
2019-11-26 19:45:09 +00:00
|
|
|
io_result=$(get_io_result IOPS $QOS_DEV_1)
|
2019-03-12 22:49:36 +00:00
|
|
|
# Set the IOPS limit as one quarter of the measured performance without QoS
|
2019-11-26 19:45:09 +00:00
|
|
|
iops_limit=$(((io_result/4)/qos_lower_iops_limit*qos_lower_iops_limit))
|
2019-03-12 22:49:36 +00:00
|
|
|
if [ $iops_limit -gt $qos_lower_iops_limit ]; then
|
|
|
|
|
2019-11-26 19:45:09 +00:00
|
|
|
# Run bdevperf with IOPS rate limit on bdev 1
|
|
|
|
$rpc_py bdev_set_qos_limit --rw_ios_per_sec $iops_limit $QOS_DEV_1
|
2019-12-19 23:03:30 +00:00
|
|
|
run_test "bdev_qos_iops" run_qos_test $iops_limit IOPS $QOS_DEV_1
|
2019-03-12 22:49:36 +00:00
|
|
|
|
2019-11-26 19:45:09 +00:00
|
|
|
# Run bdevperf with bandwidth rate limit on bdev 2
|
|
|
|
# Set the bandwidth limit as 1/10 of the measure performance without QoS
|
|
|
|
bw_limit=$(get_io_result BANDWIDTH $QOS_DEV_2)
|
|
|
|
bw_limit=$((bw_limit/1024/10))
|
|
|
|
if [ $bw_limit -lt $qos_lower_bw_limit ]; then
|
|
|
|
bw_limit=$qos_lower_bw_limit
|
|
|
|
fi
|
|
|
|
$rpc_py bdev_set_qos_limit --rw_mbytes_per_sec $bw_limit $QOS_DEV_2
|
2019-12-19 23:03:30 +00:00
|
|
|
run_test "bdev_qos_bw" run_qos_test $bw_limit BANDWIDTH $QOS_DEV_2
|
2019-03-12 22:49:36 +00:00
|
|
|
|
2019-11-26 19:45:09 +00:00
|
|
|
# Run bdevperf with additional read only bandwidth rate limit on bdev 1
|
|
|
|
$rpc_py bdev_set_qos_limit --r_mbytes_per_sec $qos_lower_bw_limit $QOS_DEV_1
|
2019-12-19 23:03:30 +00:00
|
|
|
run_test "bdev_qos_ro_bw" run_qos_test $qos_lower_bw_limit BANDWIDTH $QOS_DEV_1
|
2019-03-12 22:49:36 +00:00
|
|
|
else
|
|
|
|
echo "Actual IOPS without limiting is too low - exit testing"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2019-12-10 17:55:42 +00:00
|
|
|
function qos_test_suite() {
|
|
|
|
# Run bdevperf with QoS disabled first
|
2020-01-29 16:07:09 +00:00
|
|
|
"$testdir/bdevperf/bdevperf" -z -m 0x2 -q 256 -o 4096 -w randread -t 60 &
|
2019-12-10 17:55:42 +00:00
|
|
|
QOS_PID=$!
|
|
|
|
echo "Process qos testing pid: $QOS_PID"
|
|
|
|
trap 'killprocess $QOS_PID; exit 1' SIGINT SIGTERM EXIT
|
|
|
|
waitforlisten $QOS_PID
|
|
|
|
|
2020-01-17 11:11:57 +00:00
|
|
|
$rpc_py bdev_malloc_create -b $QOS_DEV_1 128 512
|
2019-12-10 17:55:42 +00:00
|
|
|
waitforbdev $QOS_DEV_1
|
|
|
|
$rpc_py bdev_null_create $QOS_DEV_2 128 512
|
|
|
|
waitforbdev $QOS_DEV_2
|
|
|
|
|
|
|
|
$rootdir/test/bdev/bdevperf/bdevperf.py perform_tests &
|
|
|
|
qos_function_test
|
|
|
|
|
2020-01-17 11:11:57 +00:00
|
|
|
$rpc_py bdev_malloc_delete $QOS_DEV_1
|
2019-12-10 17:55:42 +00:00
|
|
|
$rpc_py bdev_null_delete $QOS_DEV_2
|
|
|
|
killprocess $QOS_PID
|
|
|
|
trap - SIGINT SIGTERM EXIT
|
|
|
|
}
|
|
|
|
|
2019-12-05 16:51:08 +00:00
|
|
|
# Inital bdev creation and configuration
|
|
|
|
#-----------------------------------------------------
|
2020-01-17 11:11:57 +00:00
|
|
|
QOS_DEV_1="Malloc_0"
|
2019-12-05 16:51:08 +00:00
|
|
|
QOS_DEV_2="Null_1"
|
|
|
|
QOS_RUN_TIME=5
|
|
|
|
|
|
|
|
if [ $(uname -s) = Linux ]; then
|
|
|
|
# Test dynamic memory management. All hugepages will be reserved at runtime
|
|
|
|
PRE_RESERVED_MEM=0
|
|
|
|
else
|
|
|
|
# Dynamic memory management is not supported on BSD
|
|
|
|
PRE_RESERVED_MEM=2048
|
|
|
|
fi
|
|
|
|
|
2019-12-17 20:31:51 +00:00
|
|
|
test_type=$1
|
|
|
|
[ -z "$test_type" ] && setup_bdev_conf
|
|
|
|
if [ -n "$test_type" ]; then
|
|
|
|
case "$test_type" in
|
|
|
|
nvme )
|
|
|
|
setup_nvme_conf;;
|
|
|
|
gpt )
|
|
|
|
setup_gpt_conf;;
|
|
|
|
crypto )
|
|
|
|
setup_crypto_conf;;
|
|
|
|
pmem )
|
|
|
|
setup_pmem_conf;;
|
|
|
|
rbd )
|
|
|
|
setup_rbd_conf;;
|
|
|
|
* )
|
|
|
|
echo "invalid test name"
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
2019-12-05 16:51:08 +00:00
|
|
|
|
2020-01-29 16:07:09 +00:00
|
|
|
start_spdk_tgt
|
|
|
|
|
|
|
|
# Overwrite ini config with json and use it as such throughout all the tests
|
|
|
|
cat <<-CONF >"$conf_file"
|
|
|
|
{"subsystems":[
|
|
|
|
$("$rpc_py" save_subsystem_config -n bdev)
|
|
|
|
]}
|
|
|
|
CONF
|
|
|
|
|
|
|
|
|
|
|
|
bdevs=$("$rpc_py" bdev_get_bdevs | jq -r '.[] | select(.claimed == false)')
|
2019-12-05 16:51:08 +00:00
|
|
|
bdevs_name=$(echo $bdevs | jq -r '.name')
|
2019-12-17 20:59:42 +00:00
|
|
|
bdev_list=($bdevs_name)
|
|
|
|
hello_world_bdev=${bdev_list[0]}
|
2020-01-29 16:07:09 +00:00
|
|
|
trap - SIGINT SIGTERM EXIT
|
|
|
|
killprocess "$spdk_tgt_pid"
|
2019-12-05 16:51:08 +00:00
|
|
|
# End bdev configuration
|
|
|
|
#-----------------------------------------------------
|
|
|
|
|
2020-01-29 16:07:09 +00:00
|
|
|
run_test "bdev_hello_world" $rootdir/examples/bdev/hello_world/hello_bdev --json "$conf_file" -b "$hello_world_bdev"
|
2019-12-19 23:03:30 +00:00
|
|
|
run_test "bdev_bounds" bdev_bounds
|
2019-12-17 18:29:06 +00:00
|
|
|
run_test "bdev_nbd" nbd_function_test $conf_file "$bdevs_name"
|
2020-03-02 19:55:44 +00:00
|
|
|
if [[ $CONFIG_FIO_PLUGIN == y ]]; then
|
2019-12-17 20:31:51 +00:00
|
|
|
if [ "$test_type" = "nvme" ] || [ "$test_type" = "gpt" ]; then
|
|
|
|
# TODO: once we get real multi-ns drives, re-enable this test for NVMe.
|
|
|
|
echo "skipping fio tests on NVMe due to multi-ns failures."
|
|
|
|
else
|
|
|
|
run_test "bdev_fio" fio_test_suite
|
|
|
|
fi
|
2019-05-30 08:08:19 +00:00
|
|
|
else
|
|
|
|
echo "FIO not available"
|
|
|
|
exit 1
|
2017-07-14 23:31:43 +00:00
|
|
|
fi
|
|
|
|
|
2020-01-29 16:07:09 +00:00
|
|
|
run_test "bdev_verify" $testdir/bdevperf/bdevperf --json "$conf_file" -q 128 -o 4096 -w verify -t 5
|
|
|
|
run_test "bdev_write_zeroes" $testdir/bdevperf/bdevperf --json "$conf_file" -q 128 -o 4096 -w write_zeroes -t 1
|
2019-12-17 20:31:51 +00:00
|
|
|
|
|
|
|
if [ -z $test_type ]; then
|
|
|
|
run_test "bdev_qos" qos_test_suite
|
|
|
|
fi
|
2017-12-07 13:37:12 +00:00
|
|
|
|
2019-12-10 17:49:31 +00:00
|
|
|
# Temporarily disabled - infinite loop
|
|
|
|
# if [ $RUN_NIGHTLY -eq 1 ]; then
|
2020-01-29 16:07:09 +00:00
|
|
|
# run_test "bdev_reset" $testdir/bdevperf/bdevperf --json "$conf_file" -q 16 -w reset -o 4096 -t 60
|
2019-12-10 17:49:31 +00:00
|
|
|
# fi
|
2016-07-20 18:16:23 +00:00
|
|
|
|
2019-12-05 17:16:24 +00:00
|
|
|
# Bdev and configuration cleanup below this line
|
|
|
|
#-----------------------------------------------------
|
2019-12-17 20:31:51 +00:00
|
|
|
if [ "$test_type" = "gpt" ]; then
|
2020-01-29 16:07:09 +00:00
|
|
|
setup_gpt_conf reset
|
2019-12-17 18:29:06 +00:00
|
|
|
part_dev_by_gpt $conf_file Nvme0n1 $rootdir reset
|
2017-08-11 22:06:17 +00:00
|
|
|
fi
|
|
|
|
|
2017-08-10 00:28:32 +00:00
|
|
|
rm -f /tmp/aiofile
|
2018-03-30 17:08:58 +00:00
|
|
|
rm -f /tmp/spdk-pmem-pool
|
2019-12-17 18:29:06 +00:00
|
|
|
rm -f $conf_file
|
2018-04-16 13:12:23 +00:00
|
|
|
rbd_cleanup
|