diff --git a/test/nvmf/discovery/discovery.sh b/test/nvmf/discovery/discovery.sh index bb0777637..45a417f13 100755 --- a/test/nvmf/discovery/discovery.sh +++ b/test/nvmf/discovery/discovery.sh @@ -27,12 +27,14 @@ fi timing_enter discovery timing_enter start_nvmf_tgt # Start up the NVMf target in another process -$NVMF_APP -c $testdir/../nvmf.conf & +$NVMF_APP -m 0xF -w & nvmfpid=$! trap "killprocess $nvmfpid; exit 1" SIGINT SIGTERM EXIT waitforlisten $nvmfpid +$rpc_py set_nvmf_target_options -u 8192 -p 4 +$rpc_py start_subsystem_init timing_exit start_nvmf_tgt null_bdevs="$($rpc_py construct_null_bdev Null0 $NULL_BDEV_SIZE $NULL_BLOCK_SIZE) " diff --git a/test/nvmf/filesystem/filesystem.sh b/test/nvmf/filesystem/filesystem.sh index fcf9f9adb..175f9e4dd 100755 --- a/test/nvmf/filesystem/filesystem.sh +++ b/test/nvmf/filesystem/filesystem.sh @@ -23,14 +23,14 @@ timing_enter fs_test for incapsule in 0 4096; do # Start up the NVMf target in another process - cp $testdir/../nvmf.conf /tmp/nvmf.conf - echo "InCapsuleDataSize $incapsule" >> /tmp/nvmf.conf - $NVMF_APP -c /tmp/nvmf.conf & + $NVMF_APP -m 0xF -w & nvmfpid=$! trap "killprocess $nvmfpid; exit 1" SIGINT SIGTERM EXIT waitforlisten $nvmfpid + $rpc_py set_nvmf_target_options -u 8192 -p 4 -c $incapsule + $rpc_py start_subsystem_init bdevs="$bdevs $($rpc_py construct_malloc_bdev $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE)" bdevs="$bdevs $($rpc_py construct_malloc_bdev $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE)" diff --git a/test/nvmf/fio/fio.sh b/test/nvmf/fio/fio.sh index 4719b64a7..a35332df4 100755 --- a/test/nvmf/fio/fio.sh +++ b/test/nvmf/fio/fio.sh @@ -22,12 +22,14 @@ fi timing_enter fio timing_enter start_nvmf_tgt # Start up the NVMf target in another process -$NVMF_APP -c $testdir/../nvmf.conf & +$NVMF_APP -m 0xF -w & nvmfpid=$! trap "killprocess $nvmfpid; exit 1" SIGINT SIGTERM EXIT waitforlisten $nvmfpid +$rpc_py set_nvmf_target_options -u 8192 -p 4 +$rpc_py start_subsystem_init timing_exit start_nvmf_tgt malloc_bdevs="$($rpc_py construct_malloc_bdev $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE) " diff --git a/test/nvmf/host/aer.sh b/test/nvmf/host/aer.sh index 4548c8715..6ef2d79b4 100755 --- a/test/nvmf/host/aer.sh +++ b/test/nvmf/host/aer.sh @@ -19,12 +19,14 @@ fi timing_enter aer timing_enter start_nvmf_tgt -$NVMF_APP -s 512 -c $testdir/../nvmf.conf & +$NVMF_APP -m 0xF -w & nvmfpid=$! trap "killprocess $nvmfpid; exit 1" SIGINT SIGTERM EXIT waitforlisten $nvmfpid +$rpc_py set_nvmf_target_options -u 8192 -p 4 +$rpc_py start_subsystem_init timing_exit start_nvmf_tgt modprobe -v nvme-rdma diff --git a/test/nvmf/host/bdevperf.sh b/test/nvmf/host/bdevperf.sh index 2124eb0ea..972ab31f4 100755 --- a/test/nvmf/host/bdevperf.sh +++ b/test/nvmf/host/bdevperf.sh @@ -22,12 +22,14 @@ fi timing_enter bdevperf timing_enter start_nvmf_tgt -$NVMF_APP -c $testdir/../nvmf.conf & +$NVMF_APP -m 0xF -w & nvmfpid=$! trap "killprocess $nvmfpid; exit 1" SIGINT SIGTERM EXIT waitforlisten $nvmfpid +$rpc_py set_nvmf_target_options -u 8192 -p 4 +$rpc_py start_subsystem_init timing_exit start_nvmf_tgt bdevs="$bdevs $($rpc_py construct_malloc_bdev $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE)" diff --git a/test/nvmf/host/fio.sh b/test/nvmf/host/fio.sh index d497019fa..a06d0907e 100755 --- a/test/nvmf/host/fio.sh +++ b/test/nvmf/host/fio.sh @@ -25,12 +25,14 @@ fi timing_enter fio timing_enter start_nvmf_tgt -$NVMF_APP -c $testdir/../nvmf.conf & +$NVMF_APP -m 0xF -w & nvmfpid=$! trap "killprocess $nvmfpid; exit 1" SIGINT SIGTERM EXIT waitforlisten $nvmfpid +$rpc_py set_nvmf_target_options -u 8192 -p 4 +$rpc_py start_subsystem_init timing_exit start_nvmf_tgt bdevs="$bdevs $($rpc_py construct_malloc_bdev 64 512)" diff --git a/test/nvmf/host/identify.sh b/test/nvmf/host/identify.sh index f9bcdd271..7ac10d96e 100755 --- a/test/nvmf/host/identify.sh +++ b/test/nvmf/host/identify.sh @@ -21,12 +21,14 @@ fi timing_enter identify timing_enter start_nvmf_tgt -$NVMF_APP -c $testdir/../nvmf.conf & +$NVMF_APP -m 0xF -w & nvmfpid=$! trap "killprocess $nvmfpid; exit 1" SIGINT SIGTERM EXIT waitforlisten $nvmfpid +$rpc_py set_nvmf_target_options -u 8192 -p 4 +$rpc_py start_subsystem_init timing_exit start_nvmf_tgt bdevs="$bdevs $($rpc_py construct_malloc_bdev $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE)" diff --git a/test/nvmf/host/perf.sh b/test/nvmf/host/perf.sh index 916d4eb6c..c9234c913 100755 --- a/test/nvmf/host/perf.sh +++ b/test/nvmf/host/perf.sh @@ -22,19 +22,18 @@ fi timing_enter perf timing_enter start_nvmf_tgt -cp $testdir/../nvmf.conf $testdir/nvmf.conf -$rootdir/scripts/gen_nvme.sh >> $testdir/nvmf.conf - -local_nvme_trid=$(grep TransportID $testdir/nvmf.conf | head -n1 | awk -F"\"" '{print $2}') - -$NVMF_APP -c $testdir/nvmf.conf -i 0 & +$NVMF_APP -m 0xF -w -i 0 & nvmfpid=$! trap "killprocess $nvmfpid; exit 1" SIGINT SIGTERM EXIT waitforlisten $nvmfpid +$rpc_py set_nvmf_target_options -u 8192 -p 4 +$rpc_py start_subsystem_init +$rootdir/scripts/gen_nvme.sh --json | $rpc_py load_subsystem_config timing_exit start_nvmf_tgt +local_nvme_trid="trtype:PCIe traddr:"$($rpc_py get_subsystem_config bdev | jq -r '.[].params | select(.name=="Nvme0").traddr') bdevs="$bdevs $($rpc_py construct_malloc_bdev $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE)" if [ -n "$local_nvme_trid" ]; then @@ -87,7 +86,5 @@ fi trap - SIGINT SIGTERM EXIT -rm -f $testdir/nvmf.conf - killprocess $nvmfpid timing_exit perf diff --git a/test/nvmf/lvol/nvmf_lvol.sh b/test/nvmf/lvol/nvmf_lvol.sh index e24c26086..b76f9fc5d 100755 --- a/test/nvmf/lvol/nvmf_lvol.sh +++ b/test/nvmf/lvol/nvmf_lvol.sh @@ -39,12 +39,14 @@ fi timing_enter lvol_integrity timing_enter start_nvmf_tgt # Start up the NVMf target in another process -$NVMF_APP -c $testdir/../nvmf.conf & +$NVMF_APP -m 0xF -w & pid=$! trap "disconnect_nvmf; killprocess $pid; exit 1" SIGINT SIGTERM EXIT waitforlisten $pid +$rpc_py set_nvmf_target_options -u 8192 -p 4 +$rpc_py start_subsystem_init timing_exit start_nvmf_tgt modprobe -v nvme-rdma diff --git a/test/nvmf/multiconnection/multiconnection.sh b/test/nvmf/multiconnection/multiconnection.sh index d483bab3b..afd49fbab 100755 --- a/test/nvmf/multiconnection/multiconnection.sh +++ b/test/nvmf/multiconnection/multiconnection.sh @@ -31,12 +31,14 @@ fi timing_enter multiconnection timing_enter start_nvmf_tgt # Start up the NVMf target in another process -$NVMF_APP -c $testdir/../nvmf.conf & +$NVMF_APP -m 0xF -w & pid=$! trap "killprocess $pid; exit 1" SIGINT SIGTERM EXIT waitforlisten $pid +$rpc_py set_nvmf_target_options -u 8192 -p 4 +$rpc_py start_subsystem_init timing_exit start_nvmf_tgt modprobe -v nvme-rdma diff --git a/test/nvmf/nvme_cli/nvme_cli.sh b/test/nvmf/nvme_cli/nvme_cli.sh index 5bf6b3d8f..6c1e27772 100755 --- a/test/nvmf/nvme_cli/nvme_cli.sh +++ b/test/nvmf/nvme_cli/nvme_cli.sh @@ -28,12 +28,14 @@ fi timing_enter nvme_cli timing_enter start_nvmf_tgt -$NVMF_APP -c $testdir/../nvmf.conf & +$NVMF_APP -m 0xF -w & nvmfpid=$! trap "killprocess $nvmfpid; exit 1" SIGINT SIGTERM EXIT waitforlisten $nvmfpid +$rpc_py set_nvmf_target_options -u 8192 -p 4 +$rpc_py start_subsystem_init timing_exit start_nvmf_tgt bdevs="$bdevs $($rpc_py construct_malloc_bdev $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE)" diff --git a/test/nvmf/rpc/rpc.sh b/test/nvmf/rpc/rpc.sh index f99a99794..5b3ab33d8 100755 --- a/test/nvmf/rpc/rpc.sh +++ b/test/nvmf/rpc/rpc.sh @@ -19,12 +19,14 @@ fi timing_enter rpc timing_enter start_nvmf_tgt # Start up the NVMf target in another process -$rootdir/app/nvmf_tgt/nvmf_tgt -c $testdir/../nvmf.conf & +$NVMF_APP -m 0xF -w & pid=$! trap "killprocess $pid; exit 1" SIGINT SIGTERM EXIT waitforlisten $pid +$rpc_py set_nvmf_target_options -u 8192 -p 4 +$rpc_py start_subsystem_init timing_exit start_nvmf_tgt # set times for subsystem construct/delete diff --git a/test/nvmf/shutdown/shutdown.sh b/test/nvmf/shutdown/shutdown.sh index 12a7226ef..1e0411414 100755 --- a/test/nvmf/shutdown/shutdown.sh +++ b/test/nvmf/shutdown/shutdown.sh @@ -22,12 +22,14 @@ fi timing_enter shutdown timing_enter start_nvmf_tgt # Start up the NVMf target in another process -$NVMF_APP -c $testdir/../nvmf.conf & +$NVMF_APP -m 0xF -w & pid=$! trap "killprocess $pid; nvmfcleanup; exit 1" SIGINT SIGTERM EXIT waitforlisten $pid +$rpc_py set_nvmf_target_options -u 8192 -p 4 +$rpc_py start_subsystem_init timing_exit start_nvmf_tgt num_subsystems=10