Skip to contentSkip to conversation

net/ena: Failed to initialize ENA device

DPDK/ethdev Bug 1400 [email protected] 1 participant 1 message Mar 13, 2024

lore
Share & tools
lore
#0 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=1400

            Bug ID: 1400
           Summary: net/ena: Failed to initialize ENA device
           Product: DPDK
           Version: 23.11
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: Normal
         Component: ethdev
          Assignee: [email protected]
          Reporter: [email protected]

Target Milestone: ---

Hi,

With DPDK-23.11 on AWS cloud with ENA network devices, DPDK initialization failed with 4GB memory for 2 ports.

While DPDK rte_eal_init() call on ENA devices, in the ena_com_allocate_customer_metrics_buffer() DPDK memory zone with "ena_p0_mz0" is taking lots of memory in GB's just for one zone, why ?

As part this call "na_com_allocate_customer_metrics_buffer()" API memory size was passed as '0' (customer_metrics->buffer_len = 0) to this "ena_mem_alloc_coherent()" API, which call's --> rte_memzone_reserve_aligned() with RTE_MEMZONE_IOVA_CONTIG option.
Thus, when memory size is '0' to allocate, this memzone allocated maximum available contiguous memory in GB's.

So, for two DPDK ENA ports, this two zones takes around 2GB Or more of memory in DPDK-23.11. For other Mbuf pool's could not allocate memory, as memory exhausted.

Why the "customer_metrics->buffer_len = 0" size is '0' passing to this ena_mem_alloc_coherent() ?

Regards,
Madhuker.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.