Loading autotest.sh +1 −0 Original line number Diff line number Diff line Loading @@ -119,6 +119,7 @@ run_test test/nvmf/fio/fio.sh run_test test/nvmf/filesystem/filesystem.sh run_test test/nvmf/discovery/discovery.sh run_test test/nvmf/nvme_cli/nvme_cli.sh run_test test/nvmf/multiconnection/multiconnection.sh timing_enter host Loading test/nvmf/multiconnection/multiconnection.sh 0 → 100755 +57 −0 Original line number Diff line number Diff line #!/usr/bin/env bash testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/scripts/autotest_common.sh source $rootdir/test/nvmf/common.sh MALLOC_BDEV_SIZE=128 MALLOC_BLOCK_SIZE=512 rpc_py="python $rootdir/scripts/rpc.py" set -e if ! rdma_nic_available; then echo "no NIC for nvmf test" exit 0 fi timing_enter multiconnection # Start up the NVMf target in another process $rootdir/app/nvmf_tgt/nvmf_tgt -c $testdir/../nvmf.conf & pid=$! trap "killprocess $pid; exit 1" SIGINT SIGTERM EXIT waitforlisten $pid ${RPC_PORT} modprobe -v nvme-rdma for i in `seq 1 12` do bdevs="$($rpc_py construct_malloc_bdev $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE)" $rpc_py construct_nvmf_subsystem Virtual nqn.2016-06.io.spdk:cnode${i} "transport:RDMA traddr:$NVMF_FIRST_TARGET_IP trsvcid:$NVMF_PORT" '' -s SPDK${i} -n "$bdevs" done for i in `seq 1 12`; do nvme connect -t rdma -n "nqn.2016-06.io.spdk:cnode${i}" -a "$NVMF_FIRST_TARGET_IP" -s "$NVMF_PORT" done $testdir/../fio/nvmf_fio.py 262144 64 read 10 $testdir/../fio/nvmf_fio.py 262144 64 randwrite 10 sync for i in `seq 1 12`; do nvme disconnect -n "nqn.2016-06.io.spdk:cnode${i}" $rpc_py delete_nvmf_subsystem nqn.2016-06.io.spdk:cnode${i} done rm -f ./local-job0-0-verify.state trap - SIGINT SIGTERM EXIT nvmfcleanup killprocess $pid timing_exit multiconnection Loading
autotest.sh +1 −0 Original line number Diff line number Diff line Loading @@ -119,6 +119,7 @@ run_test test/nvmf/fio/fio.sh run_test test/nvmf/filesystem/filesystem.sh run_test test/nvmf/discovery/discovery.sh run_test test/nvmf/nvme_cli/nvme_cli.sh run_test test/nvmf/multiconnection/multiconnection.sh timing_enter host Loading
test/nvmf/multiconnection/multiconnection.sh 0 → 100755 +57 −0 Original line number Diff line number Diff line #!/usr/bin/env bash testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/scripts/autotest_common.sh source $rootdir/test/nvmf/common.sh MALLOC_BDEV_SIZE=128 MALLOC_BLOCK_SIZE=512 rpc_py="python $rootdir/scripts/rpc.py" set -e if ! rdma_nic_available; then echo "no NIC for nvmf test" exit 0 fi timing_enter multiconnection # Start up the NVMf target in another process $rootdir/app/nvmf_tgt/nvmf_tgt -c $testdir/../nvmf.conf & pid=$! trap "killprocess $pid; exit 1" SIGINT SIGTERM EXIT waitforlisten $pid ${RPC_PORT} modprobe -v nvme-rdma for i in `seq 1 12` do bdevs="$($rpc_py construct_malloc_bdev $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE)" $rpc_py construct_nvmf_subsystem Virtual nqn.2016-06.io.spdk:cnode${i} "transport:RDMA traddr:$NVMF_FIRST_TARGET_IP trsvcid:$NVMF_PORT" '' -s SPDK${i} -n "$bdevs" done for i in `seq 1 12`; do nvme connect -t rdma -n "nqn.2016-06.io.spdk:cnode${i}" -a "$NVMF_FIRST_TARGET_IP" -s "$NVMF_PORT" done $testdir/../fio/nvmf_fio.py 262144 64 read 10 $testdir/../fio/nvmf_fio.py 262144 64 randwrite 10 sync for i in `seq 1 12`; do nvme disconnect -n "nqn.2016-06.io.spdk:cnode${i}" $rpc_py delete_nvmf_subsystem nqn.2016-06.io.spdk:cnode${i} done rm -f ./local-job0-0-verify.state trap - SIGINT SIGTERM EXIT nvmfcleanup killprocess $pid timing_exit multiconnection