ref: master / latest
I ran into a dpdk memory initialization issue running over Ubuntu 26.04
/ Linux 7.0.0-31-generic.
$ sudo /usr/bin/vpp unix interactive
dpdk_config: rte_eal_init failed: Cannot allocate memory (12)
Here's a workaround:
sudo /usr/bin/vpp unix interactive dpdk { iova-mode pa }
plugin/load [warn ]: Skipping PCI device 0000:01:00.0 as host
interface enp1s0 is up
vat-plug/load [error ]: vat_plugin_register: oddbuf plugin not
loaded...
vat-plug/load [error ]: vat_plugin_register: idpf plugin not
loaded...
_______ _ _ _____ ___
__/ __/ _ \ (_)__ | | / / _ \/ _ \
_/ _// // / / / _ \ | |/ / ___/ ___/
/_/ /____(_)_/\___/ |___/_/ /_/
vpp# sh int
Name Idx State MTU (L3/IP4/IP6/MPLS)
Counter Count
TwoDotFiveGigabitEthernet2/0/0 1 down 9000/0/0/0
TwoDotFiveGigabitEthernet3/0/0 2 down 9000/0/0/0
TwoDotFiveGigabitEthernet4/0/0 3 down 9000/0/0/0
local0 0 down 0/0/0/0
vpp#
The issue appears to be a regression associated with DPDK 26.07 | path
[v2 3/6] eal/memory: allocate all VA space in one go| by Anatoly Burakov.
Without specifying iova-mode = pa, the 2M hugepage allocation itself
succeeds at VA |0x79df00000000|, after which |alloc_pages_on_heap()|
rejects it because the IOVA/VA exceeds the current DMA mask.
Previous VPP/DPDK works on identical hardware/kernel modulo build issues
straightened out sufficiently to build images.
This isn't an emergency, but it'd be a good idea to investigate / solve
before folks try to officially support Ubuntu 26.04...
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#27207): https://lists.fd.io/g/vpp-dev/message/27207
Mute This Topic: https://lists.fd.io/mt/121409943/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/14379924/21656/631435203/xyzzy
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-