a90e749f44
Support for Open-Channel SSDs is dying out (already marked as deprecated in linux kernel, scheduled for complete removal in 5.15) hence we should slowly adjust our test suites and move towards more standardized zoned nvmes. Signed-off-by: Michal Berger <michalx.berger@intel.com> Change-Id: I038b6361a78b27c2b350ccf594d201ffe92794e3 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8295 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@gmail.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com>
31 lines
978 B
Bash
Executable File
31 lines
978 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
testdir=$(readlink -f $(dirname $0))
|
|
rootdir=$(readlink -f $testdir/../..)
|
|
source $rootdir/test/common/autotest_common.sh
|
|
source $testdir/common.sh
|
|
|
|
tests=('-q 1 -w randwrite -t 4 -o 69632' '-q 128 -w randwrite -t 4 -o 4096' '-q 128 -w verify -t 4 -o 4096')
|
|
device=$1
|
|
use_append=$2
|
|
|
|
for ((i = 0; i < ${#tests[@]}; i++)); do
|
|
timing_enter "${tests[$i]}"
|
|
"$rootdir/test/bdev/bdevperf/bdevperf" -z -T ftl0 ${tests[$i]} --json <(gen_ftl_nvme_conf) &
|
|
bdevperf_pid=$!
|
|
|
|
trap 'killprocess $bdevperf_pid; exit 1' SIGINT SIGTERM EXIT
|
|
waitforlisten $bdevperf_pid
|
|
$rpc_py bdev_nvme_attach_controller -b nvme0 -a $device -t pcie
|
|
bdev_create_zone nvme0n1
|
|
$rpc_py bdev_ftl_create -b ftl0 -d "$ZONE_DEV" $use_append
|
|
|
|
$rootdir/test/bdev/bdevperf/bdevperf.py perform_tests
|
|
$rpc_py bdev_ftl_delete -b ftl0
|
|
bdev_delete_zone "$ZONE_DEV"
|
|
$rpc_py bdev_nvme_detach_controller nvme0
|
|
killprocess $bdevperf_pid
|
|
trap - SIGINT SIGTERM EXIT
|
|
timing_exit "${tests[$i]}"
|
|
done
|