Reputation: 13
I met a issue with error shows(when deploy dpdk on redhat) :
sudo: x86_64-native-linuxapp-gcc/app/test: command not found
I am not sure what is the matter.
Now I cannot test dpdk, could you someone help me if you met this before.
There are some detailed information about my system below.
3.10.0-693.11.1.el7.x86_64
[root@cnhzdhcp16557 usertools]# ./dpdk-setup.sh
...
== Build app/test-crypto-perf
== Build app/test-eventdev
Build complete [x86_64-native-linuxapp-gcc]
Installation cannot run with T defined and DESTDIR undefined
Unloading any existing DPDK UIO module
Loading DPDK UIO module
Unloading any existing VFIO module
Loading VFIO module
chmod /dev/vfio
OK
Unloading any existing DPDK KNI module
Loading DPDK KNI module
Press enter to continue ...
0000:00:19.0 'Ethernet Connection I217-V 153b' if=enp0s25 drv=e1000e unused=igb_uio Active
0000:02:00.0 'Centrino Advanced-N 6235 088e' if=wlo1 drv=iwlwifi unused=igb_uio
AnonHugePages: 98304 kB
HugePages_Total: 128
HugePages_Free: 128
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
Enter hex bitmask of cores to execute test app on
Example: to execute app on cores 0 to 7, enter 0xff
bitmask: f
Launching app
sudo: x86_64-native-linuxapp-gcc/app/test: command not found
Enter hex bitmask of cores to execute test app on
Example: to execute app on cores 0 to 7, enter 0xff
bitmask: f
Launching app
EAL: Detected 4 lcore(s)
EAL: No free hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: PCI device 0000:00:19.0 on NUMA socket -1
EAL: Invalid NUMA socket, default to 0
EAL: probe driver: 8086:153b net_e1000_em
EAL: No probed ethernet devices
Interactive-mode selected
USER1: create a new mbuf pool : n=171456, size=2176,
socket=0
EAL: Error - exiting with code: 1
Cause: Creation of mbuf pool for socket 0 failed: Cannot allocate memory
Upvotes: 0
Views: 2113
Reputation: 8544
The test application should be build manually with make test...
command. What you really want is the testpmd
application to work. There are two issues:
EAL: No probed ethernet devices
log means there are no NICs available for testpmd
. You need to bind your NIC to igb_uio
in order to use in with DPDK application.
Cause: Creation of mbuf pool for socket 0 failed: Cannot allocate memory
log means there are no enough huge pages to allocate mempool. Indeed:
HugePages_Free: 128 Hugepagesize: 2048 kB
There are 128 pages 2M each, which makes 256M of available memory. While testpmd
tries to allocate create a new mbuf pool : n=171456, size=2176
which makes 171456 * 2176 = 373M, so it fails.
The solution would be to either allocate more huge pages or to run testpmd
with --total-num-mbufs
command line option.
Upvotes: 1