+18
−0
Loading
Allow transports to specify a default UINT32_MAX as the buf_cache_size. If user does not override this when creating the transport, calculate the buf_cache_size dynamically using the number of poll groups and the size of the buffer pool (num_shared_buffers). We will allocate 75% of the buffers for the caches, meaning the buf_cache_size will be calculated as: (num_shared_buffers * 3 / 4) / num_poll_groups Signed-off-by:Jim Harris <james.r.harris@intel.com> Change-Id: I97768aea701060bbe0ff1925e5322229fa8d051c Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17334 Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com>