Pktgen application execution failure

Hi Team,

I am using CX-7 Card, I wanted to test pktgen application, I am facing issue while executing application.

rte_eth_rx_queue_setup: err=-12, port=0, Cannot allocate memory

Could you please let me know how to fix this.


Pktgen-DPDK$ sudo ./usr/local/bin/pktgen -a 01:00.0 -l 4-10 -n 4 – -m [6:7].0
*** Copyright(c) <2010-2025>, Intel Corporation. All rights reserved.
*** Pktgen 26.02.1 created by: Keith Wiles >>> Powered by DPDK 26.03.0-rc0 <<<

EAL: Detected CPU lcores: 28
EAL: Detected NUMA nodes: 1
EAL: Detected shared linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode ‘VA’
Create: 'RX-P0/Q0/S0             ’ - Memory used (MBUFs 32,768 x size  2,176) =   69,633 KB @ 0x100efde00
Create: 'TX-P0/Q0/S0             ’ - Memory used (MBUFs 32,768 x size  2,176) =   69,633 KB @ 0x1032f0080
Create: 'SP-P0/Q0/S0             ’ - Memory used (MBUFs  1,024 x size  2,176) =    2,177 KB @ 0x100862940
Total memory used = 1,41,443 KB
Initialize Port 0 …
Port info setup for port 0
Allocate packet sequence array
Checksum offload Pseudo-header required: No
Setup latency defaults
Setup fill pattern defaults
Setup MTU defaults and Jumbo Frames are Disabled
Setup TX offload defaults
Configure device: RxQueueCnt: 1, TxQueueCnt: 1
Setup number of descriptors RX: 1024, TX: 1024
Updated descriptors RX: 1024, TX: 1024
Source MAC: cc:40:f3:a5:62:64
Setup up device Ptypes
Number of RX queues 1
RX queue 0 enabled offloads: 0xe
mlx5_net: port 0 unable to allocate rx queue index 0
!PANIC!: rte_eth_rx_queue_setup: err=-12, port=0, Cannot allocate memory
EAL: PANIC in _rx_queues():
rte_eth_rx_queue_setup: err=-12, port=0, Cannot allocate memory
0: /usr/local/lib/x86_64-linux-gnu/librte_eal.so.26 (rte_dump_stack+0x42) [73b97d5a12e2]
1: /usr/local/lib/x86_64-linux-gnu/librte_eal.so.26 (__rte_panic+0xd4) [73b97d57851f]
2: ./usr/local/bin/pktgen (6168525ae000+0x29965) [6168525d7965]
3: ./usr/local/bin/pktgen (6168525ae000+0x2b31e) [6168525d931e]
4: ./usr/local/bin/pktgen (6168525ae000+0xbdf2) [6168525b9df2]
5: /lib/x86_64-linux-gnu/libc.so.6 (73b97d000000+0x29d90) [73b97d029d90]
6: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0x80) [73b97d029e40]
7: ./usr/local/bin/pktgen (6168525ae000+0xc675) [6168525ba675]
Aborted

Thanks in advance.

Hi,

Thank you for posting your query on our community. The error usually indicates a system memory configuration issue. You may want to check the following:

  1. memlock limits – Verify ulimit -l is set high enough or unlimited.
  2. Make sure hugepages are configured and mounted correctly (/proc/meminfo should show HugePages > 0).

If the issue continues, please submit a support ticket for further troubleshooting along with a sysinfo snapshot. The support ticket can be opened by emailing " Networking-support@nvidia.com ". Please note that an active support contract would be required for the same. For contracts information, please feel free to reach out to our contracts team at " Networking-Contracts@nvidia.com "

Thanks,
Bhargavi