With the I/O channel changes, this test needs to be rewritten to be event-based. bdevio uses the spdk_bdev_do_work() function to poll for completions, which is built on the check_io functions that are going away when we move to using I/O channels. Do not delete the code from the tree - just detach it from the build and the test scripts for now. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I88674988db6ccb3673faf7eb5b3e79b403059fa4
45 lines
1.1 KiB
Bash
Executable File
45 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
testdir=$(readlink -f $(dirname $0))
|
|
rootdir=$testdir/../../..
|
|
source $rootdir/scripts/autotest_common.sh
|
|
|
|
testdir=$(readlink -f $(dirname $0))
|
|
|
|
timing_enter blockdev
|
|
|
|
# bdevio is disconnected from the build currently - it needs to be rewritten
|
|
# as an event-based test program.
|
|
#timing_enter bounds
|
|
#$testdir/bdevio/bdevio $testdir/bdev.conf
|
|
#process_core
|
|
#timing_exit bounds
|
|
|
|
timing_enter verify
|
|
$testdir/bdevperf/bdevperf -c $testdir/bdev.conf -q 32 -s 4096 -w verify -t 5
|
|
process_core
|
|
timing_exit verify
|
|
|
|
if [ $RUN_NIGHTLY -eq 1 ]; then
|
|
# Use size 192KB which both exceeds typical 128KB max NVMe I/O
|
|
# size and will cross 128KB Intel DC P3700 stripe boundaries.
|
|
timing_enter perf
|
|
$testdir/bdevperf/bdevperf -c $testdir/bdev.conf -q 128 -w read -s 196608 -t 5
|
|
process_core
|
|
timing_exit perf
|
|
|
|
timing_enter reset
|
|
$testdir/bdevperf/bdevperf -c $testdir/bdev.conf -q 16 -w reset -s 4096 -t 60
|
|
process_core
|
|
timing_exit reset
|
|
|
|
timing_enter unmap
|
|
$testdir/bdevperf/bdevperf -c $testdir/bdev.conf -q 1 -w unmap -s 4096 -t 60
|
|
process_core
|
|
timing_exit unmap
|
|
fi
|
|
|
|
timing_exit blockdev
|