Commit 8431fb11 authored by Seth Howell's avatar Seth Howell Committed by Ben Walker
Browse files

test/nvmf: Perf test uses preallocated memory



There appear to be issues around using dynamic memory allocation with
secondary processes and local NVMe drives. This change allows us to keep
running the NVMe-oF physical tests while we debug the root cause of the
issue.

Change-Id: I2fdbac9878c3e19e6ef0bcef1aa301b7062dc0bf
Signed-off-by: default avatarSeth Howell <seth.howell@intel.com>
Reviewed-on: https://review.gerrithub.io/435942


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
parent fd985a47
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -24,7 +24,11 @@ fi
timing_enter perf
timing_enter start_nvmf_tgt

$NVMF_APP -m 0xF &
# Start the NVMe-oF target with preallocated memory because we will need to run perf.c
# as a secondary process later, and secondary process memory allocation is broken with
# the IOMMU.
# todo: remove this when the proper fixes are merged into DPDK.
$NVMF_APP -m 0xF -s 4096 &
nvmfpid=$!

trap "process_shm --id $NVMF_APP_SHM_ID; killprocess $nvmfpid; exit 1" SIGINT SIGTERM EXIT