Spdk/test/json_config
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
..
alias_rpc add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
clear_config.py bdev/pmem: Removing bdev pmem - updated tests 2023-03-09 09:21:23 +00:00
config_filter.py virtio_blk: add dump opts 2023-01-20 18:57:38 +00:00
extra_key.json test/config: verify extra key in config doesnt break parsing 2021-11-30 09:07:02 +00:00
json_config_extra_key.sh add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
json_config.sh test/json_config: detach virtio controllers before shutdown 2023-03-28 06:58:38 +00:00
json_diff.sh add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00