nvmf: use io unit size in transport buffer pools
When this structure was brought up to the generic layer, the tcp transport was using max_io_size and the rdma transport was using io_unit_size. In the interest of conserving memory, we should use io_unit_size instead of max_io_size. Change-Id: I2633306fcbfd8c3d557445959c745cb2d9a0999e Signed-off-by: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.gerrithub.io/c/442778 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
b7651b681c
commit
bdc81134c2
@ -122,7 +122,7 @@ spdk_nvmf_transport_create(enum spdk_nvme_transport_type type,
|
|||||||
|
|
||||||
transport->data_buf_pool = spdk_mempool_create(spdk_mempool_name,
|
transport->data_buf_pool = spdk_mempool_create(spdk_mempool_name,
|
||||||
opts->num_shared_buffers,
|
opts->num_shared_buffers,
|
||||||
opts->max_io_size + NVMF_DATA_BUFFER_ALIGNMENT,
|
opts->io_unit_size + NVMF_DATA_BUFFER_ALIGNMENT,
|
||||||
SPDK_MEMPOOL_DEFAULT_CACHE_SIZE,
|
SPDK_MEMPOOL_DEFAULT_CACHE_SIZE,
|
||||||
SPDK_ENV_SOCKET_ID_ANY);
|
SPDK_ENV_SOCKET_ID_ANY);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user