Spdk/test
Konrad Sztyber 2a463e3e26 test/json_config: detach virtio controllers before shutdown
If the controllers are left attached when the application is terminated,
the virtio library might receive notifications about memory being
unregistered from the mem_map.  The apps in json_config test are
preallocating 1GB of memory, which should stop DPDK from releasing the
hugepages back to the system, but if they allocate more, that extra
pages can be released, which would generate the mem_map notifications .

This actually happened in #2951 - spdk_tgt was built with ocf support,
which preallocates an extra ~300MB mempools, exceeding 1GB, which caused
mem_map notifications to be sent when iscsi mempools were destroyed
triggering an assertion in virtio.

Another option to fix this would be to increase the size of the
preallocated memory, but detaching the controllers achieves the same
thing without requiring more resources.

Fixes #2951.

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: I743af39acfee68caba55ec4fccd593a696ab688b
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17265
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2023-03-28 06:58:38 +00:00
..
accel examples/accel/perf: add support for xor 2023-02-21 08:33:18 +00:00
app llvm_vfio_fuzz: detach io ctrlr in new thread 2023-02-17 12:52:59 +00:00
bdev test/blockdev: add extra crypto bdev for crypto_sw 2023-03-13 21:02:27 +00:00
blobfs add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
blobstore add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
common test/common: Don't apply ipsec_mb patch on DPDK >= 23.03 2023-03-24 07:23:19 +00:00
compress bdev/compress: Port to use accel_fw instead of compressdev 2023-01-20 10:26:21 +00:00
cpp_headers update Intel copyright notices 2022-11-10 08:28:53 +00:00
dd add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
dma test/dma: call spdk_thread_exit() 2022-11-23 08:22:04 +00:00
dpdk_memory_utility add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
env add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
event autotest: unify style for test/ and ./test/ 2023-02-14 09:07:09 +00:00
external_code tests: Run make clean only when SPDK was configured 2023-02-02 09:05:56 +00:00
ftl test/ftl: add cases line to cover RPC bdev_ftl_unload 2023-01-17 20:32:58 +00:00
fuzz test/fuzz: Don't gather coverage under short-fuzz job 2023-01-19 14:41:54 +00:00
interrupt Add SPDX header to various files 2022-11-29 08:27:51 +00:00
ioat add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
iscsi_tgt bdev/pmem: Removing bdev pmem - updated tests 2023-03-09 09:21:23 +00:00
json_config test/json_config: detach virtio controllers before shutdown 2023-03-28 06:58:38 +00:00
lvol autotest: unify style for test/ and ./test/ 2023-02-14 09:07:09 +00:00
make autotest: unify style for test/ and ./test/ 2023-02-14 09:07:09 +00:00
nvme test/nvme/cuse: Don't check OACS in the parent test 2023-03-22 07:09:37 +00:00
nvmf test/nvmf: Increase size of the malloc bdev 2023-03-23 08:27:37 +00:00
ocf Add SPDX header to various files 2022-11-29 08:27:51 +00:00
openstack add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
packaging test/packaging: Don't install DPDK RPMs from the remote by default 2023-03-13 07:27:43 +00:00
rpc lib/trace: add trace_get_info RPC 2022-12-05 09:50:38 +00:00
rpc_client add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
rpc_plugins autotest: Use rpc_cmd() for rpc plugin-based tests 2021-04-02 08:22:42 +00:00
scheduler test/scheduler: Merge cppc_cpufreq into acpi-cpufreq check 2023-03-22 07:08:22 +00:00
setup test/setup: Use hw_sector_size to convert size to sectors 2023-02-17 10:16:35 +00:00
sma test/sma: limit number of vhost-blk devices to 2 2023-03-13 21:02:27 +00:00
spdkcli vhost_rpc:add sessions information for vhost_get_controllers 2023-03-13 07:59:08 +00:00
thread thread: test SPDK spinlocks in an application 2022-12-06 21:20:17 +00:00
ublk test/ublk: add parameter for num devices 2023-01-25 10:52:36 +00:00
unit test/unit: add missing jsonrpc stubs 2023-03-28 06:57:59 +00:00
vfio_user test/vfio_user: use 2048MiB static memory size for bdevperf 2023-01-16 08:22:08 +00:00
vhost test/vhost: Use --force for all mkfs and wipefs calls 2023-03-27 10:48:46 +00:00
vmd add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
Makefile update Intel copyright notices 2022-11-10 08:28:53 +00:00
spdk_cunit.h update Intel copyright notices 2022-11-10 08:28:53 +00:00