I am a beginner in using DPDK. I followed the guide below:
https://doc.dpdk.org/guides/linux_gsg/index.html
When I was running the sample hello world program, I received the following outputs:
Arguments : ./dpdk-helloworld -l 0-3 -n 4
EAL: Detected CPU lcores: 32
EAL: Detected NUMA nodes: 1
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: No free 1048576 kB hugepages reported on node 0
EAL: VFIO support initialized
EAL: Using IOMMU type 1 (Type 1)
EAL: pci_map_resource(): cannot map resource(32, 0x2180800000, 0x800000, 0x0): Cannot allocate memory ((nil))
EAL: Failed to map pci BAR0
EAL: 0000:07:00.0 mapping BAR0 failed: Cannot allocate memory
EAL: Requested device 0000:07:00.0 cannot be used
EAL: Using IOMMU type 1 (Type 1)
EAL: pci_map_resource(): cannot map resource(32, 0x2181000000, 0x800000, 0x0): Cannot allocate memory ((nil))
EAL: Failed to map pci BAR0
EAL: 0000:07:00.1 mapping BAR0 failed: Cannot allocate memory
EAL: Requested device 0000:07:00.1 cannot be used
TELEMETRY: No legacy callbacks, legacy socket not created
hello from core 1
hello from core 2
hello from core 3
hello from core 0
- Why is pci_map_resource unable to allocate memory? Evn though, I have set up the huge pages and IOMMU according to the guide?
- Why does it say “No free 1048576 kB hugepages reported on node 0” even though I have setup the huge pages?
AnonHugePages: 2586624 kB
ShmemHugePages: 0 kB
FileHugePages: 0 kB
HugePages_Total: 1024
HugePages_Free: 1024
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
Hugetlb: 4194304 kB
Thanks for help in advance!!
New contributor
Selow Ng is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.