3 testdir
=$
(readlink
-f $
(dirname $0))
4 rootdir
=$
(readlink
-f $testdir/..
/..
/..
)
5 source $rootdir/scripts
/autotest_common.sh
6 source $rootdir/test
/nvmf
/common.sh
11 rpc_py
="python $rootdir/scripts/rpc.py"
15 if ! rdma_nic_available
; then
16 echo "no NIC for nvmf test"
20 timing_enter multiconnection
22 # Start up the NVMf target in another process
23 $rootdir/app
/nvmf_tgt
/nvmf_tgt
-c $testdir/..
/nvmf.conf
&
26 trap "killprocess $pid; exit 1" SIGINT SIGTERM EXIT
28 waitforlisten
$pid ${RPC_PORT}
34 bdevs
="$($rpc_py construct_malloc_bdev $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE)"
35 $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"
38 for i
in `seq 1 11`; do
39 nvme connect
-t rdma
-n "nqn.2016-06.io.spdk:cnode${i}" -a "$NVMF_FIRST_TARGET_IP" -s "$NVMF_PORT"
42 $testdir/..
/fio
/nvmf_fio.py
262144 64 read 10
43 $testdir/..
/fio
/nvmf_fio.py
262144 64 randwrite
10
46 for i
in `seq 1 11`; do
47 nvme disconnect
-n "nqn.2016-06.io.spdk:cnode${i}" || true
48 $rpc_py delete_nvmf_subsystem nqn
.2016-06.io.spdk
:cnode
${i}
51 rm -f .
/local-job0-0-verify.state
53 trap - SIGINT SIGTERM EXIT
57 timing_exit multiconnection