[dpdk-dev] [PATCH v8 2/4] mempool: add non-IO flag

Jiang, YuX yux.jiang at intel.com
Fri Oct 29 05:30:37 CEST 2021


> -----Original Message-----
> From: dev <dev-bounces at dpdk.org> On Behalf Of Dmitry Kozlyuk
> Sent: Monday, October 18, 2021 10:41 PM
> To: dev at dpdk.org
> Cc: David Marchand <david.marchand at redhat.com>; Matan Azrad
> <matan at oss.nvidia.com>; Andrew Rybchenko
> <andrew.rybchenko at oktetlabs.ru>; Tahhan, Maryam
> <maryam.tahhan at intel.com>; Pattan, Reshma <reshma.pattan at intel.com>;
> Olivier Matz <olivier.matz at 6wind.com>
> Subject: [dpdk-dev] [PATCH v8 2/4] mempool: add non-IO flag
> 
> Mempool is a generic allocator that is not necessarily used for device IO
> operations and its memory for DMA.
> Add MEMPOOL_F_NON_IO flag to mark such mempools automatically
> a) if their objects are not contiguous;
> b) if IOVA is not available for any object.
> Other components can inspect this flag
> in order to optimize their memory management.
> 
> Discussion: https://mails.dpdk.org/archives/dev/2021-August/216654.html
> 
> Signed-off-by: Dmitry Kozlyuk <dkozlyuk at nvidia.com>
> Acked-by: Matan Azrad <matan at nvidia.com>
> Reviewed-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>
> ---
>  app/proc-info/main.c                   |   6 +-
>  app/test/test_mempool.c                | 114 +++++++++++++++++++++++++
>  doc/guides/rel_notes/release_21_11.rst |   3 +
>  lib/mempool/rte_mempool.c              |  10 +++
>  lib/mempool/rte_mempool.h              |   2 +
>  5 files changed, 133 insertions(+), 2 deletions(-)
> 
Hi Dmitry,

We meet an issue based on this patch that mempool_autotest execute failed on FreeBSD13.0, bug id is https://bugs.dpdk.org/show_bug.cgi?id=863, could you pls have a look?
Reproduce steps:
2.lanch app
# ./x86_64-native-bsdapp-gcc/app/test/dpdk-test  -n 4 -c f
3. execute dpdk command 
# mempool_autotest
common_pool_count=1598
no statistics available
EAL: Test assert test_mempool_flag_non_io_unset_when_populated_with_valid_iova line 781 failed: Cannot get IOVA
test failed at test_mempool():1030
Test Failed


More information about the dev mailing list