On Tue, Aug 22, 2023 at 10:40 PM Ashwin Sekhar T K <asek...@marvell.com> wrote: > > Currently mempool_cnxk driver uses asynchronous allocation > for all pools. This asynchronous allocation can result in > local caching of additional 512 objects on a single core > even when cache is disabled. This will eventually lead to > starvation on pools where the number of objects is very less. > > This commit changes this logic to use asynchronous allocation on > only those pools which have local cache enabled. Also the async buffer > size will be RTE_ALIGN_CEIL(rte_mempool->cache_size, 16). This > means that when cache is disabled, async alloc will be completely > disabled and when cache is enabled, the additional caching due > to asynchronous allocation will be limited. > > A limitation has been added to cnxk documentation warning the users > to adjust the local cache sizes accordingly. > > Signed-off-by: Ashwin Sekhar T K <asek...@marvell.com>
Series applied to dpdk-next-net-mrvl/for-next-net. Thanks