DPDK usage discussions
 help / color / mirror / Atom feed
* Help needed with hugepages and binding ports
@ 2024-08-29 15:01 David Aldrich
  0 siblings, 0 replies; only message in thread
From: David Aldrich @ 2024-08-29 15:01 UTC (permalink / raw)
  To: users

Hi,

We are running DPDK v.19.11.14 on Ubuntu 22.04 LTS. Our goal is to use
DPDK to accelerate UDP communication on a Broadcom 57504 network
controller.

I have some problems with hugepages and binding of ports and would be
grateful for some help please.

1) Firstly, regarding hugepages, our kernel cmdline includes:

default_hugepagesz=1G hugepagesz=1G hugepages=25 hugepagesz=2M hugepages=1024

After reboot I see:

$ cat /proc/meminfo | grep Hugepages

Hugepagesize:    1048576 kB

This is no mention of 2MB pages. Is that expected?

I call rte_eal_init() with parameter:

-m 4000

but see:

EAL: 1024 hugepages of size 2097152 reserved, but no mounted hugetlbfs
found for that size

Is that a problem?

2) Secondly, I use dpdk-devbind.py to bind the first device of the
57504 controller to DPDK. dpdk-devbind.py reports:

Network devices using DPDK-compatible driver
============================================
0000:43:00.0 'BCM57504 NetXtreme-E 10Gb/25Gb/40Gb/50Gb/100Gb/200Gb
Ethernet 1751' drv=igb_uio unused=bnxt_en,vfio-pci

but when our application calls rte_eth_dev_count_avail() the return
value is 0 and so the application reports:

ERROR: EXIT_FAILURE : No DPDK ports found - have you run the DPDK setup script?

Any idea why the bound port is not found?

3) Finally, our setup script inserts modules igb_uio.ko and
rte_kni.ko. Is this adequate for the Broadcom BCM57504?

Best regards
David

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-08-29 15:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-29 15:01 Help needed with hugepages and binding ports David Aldrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).