Spdk/test
Shuhei Matsumoto 972b3ae3aa lib/bdev: Use not SPDK thread count but core count for mempool cache size
Cache size of mempool is not based on SPDK thread but DPDK thread,
i.e. CPU core. So replace spdk_thread_get_count() by
spdk_env_get_core_count() to determine cache size of mempool in
spdk_bdev_initialize().

Besides, allocate and free stub cores at the corresponding unit tests.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: Icc4deae84c74820af4de61e991fa3f8683add058
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2767
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Broadcom CI
Community-CI: Mellanox Build Bot
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
2020-06-08 09:33:50 +00:00
..
app nvme/rdma: Use RDMA provider API to create/destroy qpair 2020-05-20 12:03:50 +00:00
bdev tests: Switch to $SPDK_TEST_STORAGE for writing out bigger tmp files 2020-05-20 14:17:02 +00:00
blobfs test/blobfs: fix a bug that $SPDK_TEST_STORAGE is NULL 2020-06-02 09:52:20 +00:00
blobstore check_format: Reformat the Bash code in compliance with shfmt 2020-05-07 20:52:21 +00:00
common test/common: remove discover_bdevs() 2020-06-05 09:03:50 +00:00
compress test/nvmf: Handle multiple arguments in nvmfappstart() 2020-05-13 07:46:04 +00:00
config_converter test/config_converter: Declare $rootdir, $testdir paths 2020-02-20 09:54:15 +00:00
cpp_headers queue_extras: use SPDK_CONTAINEROF 2019-10-07 15:06:01 +00:00
dpdk_memory_utility test: add test to validate dpdk mem utility 2020-01-24 05:46:43 +00:00
env Revert "env: Use rte_malloc in spdk_mem_register code path when possible" 2020-05-20 14:14:21 +00:00
event lib/thread: Use function name as poller name by using macro SPDK_POLLER_REGISTER 2020-04-15 07:23:09 +00:00
external_code test/external_code: use default HUGEMEM in setup.sh 2020-06-02 09:47:48 +00:00
ftl check_format: Reformat the Bash code in compliance with shfmt 2020-05-07 20:52:21 +00:00
fuzz check_format: Reformat the Bash code in compliance with shfmt 2020-05-07 20:52:21 +00:00
ioat test: move report_test_completion into run_test 2020-01-14 07:49:08 +00:00
iscsi_tgt test/iscsi_tgt: silence shellcheck SC2029 2020-06-02 09:49:06 +00:00
json_config tests: Switch to $SPDK_TEST_STORAGE for writing out bigger tmp files 2020-05-20 14:17:02 +00:00
lvol check_format: Reformat the Bash code in compliance with shfmt 2020-05-07 20:52:21 +00:00
make lib/bdev: Add spdk_bdev_abort API 2020-06-08 09:28:27 +00:00
nvme test/nvme/hotplug: create QEMU host drives at startup 2020-06-08 09:33:35 +00:00
nvmf rxe_cfg: Drop librxe and port minimal rxe_cfg functionality to Bash 2020-06-05 09:02:27 +00:00
ocf test/ocf: Drop .ini config in favor of json 2020-05-20 14:14:50 +00:00
openstack test/nvmf: Handle multiple arguments in nvmfappstart() 2020-05-13 07:46:04 +00:00
pmem check_format: Reformat the Bash code in compliance with shfmt 2020-05-07 20:52:21 +00:00
rpc rpc: Add test for pluggable RPCs 2020-05-18 10:14:09 +00:00
rpc_client lib/event: fix printing non-null-terminated strings 2020-04-06 07:48:37 +00:00
spdkcli rpc: Deprecate max_qpairs_per_ctrlr parameter 2020-06-04 07:20:45 +00:00
unit lib/bdev: Use not SPDK thread count but core count for mempool cache size 2020-06-08 09:33:50 +00:00
vhost test/vhost/initiator: remove unused fio sections 2020-06-05 09:03:50 +00:00
vmd check_format: Reformat the Bash code in compliance with shfmt 2020-05-07 20:52:21 +00:00
Makefile build: add option to disable building unit tests 2020-03-10 09:12:21 +00:00
spdk_cunit.h test: remove leftover spdk_cunit declaration 2018-07-06 22:47:56 +00:00