欢迎来到 DPDK交流社区 ,有什么问题可以尽管在这里提问,您将会收到社区其他成员的回答;也可以将您的总结写在这里,为社区其他成员提供帮助。 (QQ交流群:127163755)

VMware搭建DPDK环境,执行[22] Run testpmd application in interactive mode ($RTE_TARGET/app/testpmd)失败

+1 投票
Enter hex bitmask of cores to execute testpmd app on
  Example: to execute app on cores 0 to 7, enter 0xff
bitmask: 0x3
Launching app
EAL: Detected lcore 0 as core 0 on socket 0
EAL: Detected lcore 1 as core 0 on socket 0
EAL: Support maximum 128 logical core(s) by configuration.
EAL: Detected 2 lcore(s)
EAL: VFIO modules not all loaded, skip VFIO support...
EAL: Setting up memory...
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7fcbaf000000 (size = 0x200000)
EAL: Ask a virtual area of 0x7c00000 bytes
EAL: Virtual area found at 0x7fcba7200000 (size = 0x7c00000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7fcba6e00000 (size = 0x200000)
EAL: Requesting 64 pages of size 2MB from socket 0
EAL: TSC frequency is ~2095236 KHz
EAL: Master lcore 0 is ready (tid=b01f6900;cpuset=[0])
PMD: ENICPMD trace: rte_enic_pmd_init
EAL: lcore 1 is ready (tid=a65fe700;cpuset=[1])
EAL: PCI device 0000:02:01.0 on NUMA socket -1
EAL:   probe driver: 8086:100f rte_em_pmd
EAL:   Not managed by a supported kernel driver, skipped
EAL: PCI device 0000:02:06.0 on NUMA socket -1
EAL:   probe driver: 8086:100f rte_em_pmd
EAL:   PCI memory mapped at 0x7fcbaf200000
EAL:   PCI memory mapped at 0x7fcbaf220000
PMD: eth_em_dev_init(): port_id 0 vendorID=0x8086 deviceID=0x100f
Interactive-mode selected
EAL: Error - exiting with code: 1
  Cause: Creation of mbuf pool for socket 0 failed

Press enter to continue ...
最新提问 7月 23, 2015 分类:DPDK sample解惑 | 用户: 陈游旻 (130 分)

1个回答

+1 投票
把启动程序的完整命令发出来看一下吧。

另外,系统大页设置了吗?设置小了也有可能导致失败。
最新回答 7月 25, 2015 用户: sysight (12,190 分)
谢谢,我找到问题了,主要还是hugepage设太少,设了512就ok
好的,解决就好。欢迎把使用DPDK的经验发到本站 :-)
为什么我把hugepage该成512了还是不行,而且有个奇怪的问题,我该成512后在运行一次testpmd就变成了175,下面是我的log
[jervis@localhost dpdk-2.2.0]$ sudo ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 2
EAL: Detected lcore 0 as core 0 on socket 0
EAL: Detected lcore 1 as core 1 on socket 0
EAL: Detected lcore 2 as core 2 on socket 0
EAL: Detected lcore 3 as core 3 on socket 0
EAL: Support maximum 128 logical core(s) by configuration.
EAL: Detected 4 lcore(s)
EAL: No free hugepages reported in hugepages-1048576kB
EAL: VFIO modules not all loaded, skip VFIO support...
EAL: Setting up physically contiguous memory...
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7fd865c00000 (size = 0x200000)
EAL: Ask a virtual area of 0x3000000 bytes
EAL: Virtual area found at 0x7fd862a00000 (size = 0x3000000)
EAL: Ask a virtual area of 0x400000 bytes
EAL: Virtual area found at 0x7fd862400000 (size = 0x400000)
EAL: Ask a virtual area of 0x5400000 bytes
EAL: Virtual area found at 0x7fd85ce00000 (size = 0x5400000)
EAL: Ask a virtual area of 0x6600000 bytes
EAL: Virtual area found at 0x7fd856600000 (size = 0x6600000)
EAL: Ask a virtual area of 0x1200000 bytes
EAL: Virtual area found at 0x7fd855200000 (size = 0x1200000)
EAL: Ask a virtual area of 0x1400000 bytes
EAL: Virtual area found at 0x7fd853c00000 (size = 0x1400000)
EAL: Ask a virtual area of 0x1200000 bytes
EAL: Virtual area found at 0x7fd852800000 (size = 0x1200000)
EAL: Ask a virtual area of 0x1c00000 bytes
EAL: Virtual area found at 0x7fd850a00000 (size = 0x1c00000)
EAL: Ask a virtual area of 0x1a00000 bytes
EAL: Virtual area found at 0x7fd84ee00000 (size = 0x1a00000)
EAL: Requesting 175 pages of size 2MB from socket 0
EAL: TSC frequency is ~2194954 KHz
EAL: Master lcore 0 is ready (tid=66e1d900;cpuset=[0])
EAL: lcore 1 is ready (tid=4e5fe700;cpuset=[1])
EAL: lcore 3 is ready (tid=4d5fc700;cpuset=[3])
EAL: lcore 2 is ready (tid=4ddfd700;cpuset=[2])
EAL: PCI device 0000:02:01.0 on NUMA socket -1
EAL:   probe driver: 8086:100f rte_em_pmd
EAL:   Not managed by a supported kernel driver, skipped
EAL: PCI device 0000:02:05.0 on NUMA socket -1
EAL:   probe driver: 8086:100f rte_em_pmd
EAL:   Not managed by a supported kernel driver, skipped
EAL: PCI device 0000:02:06.0 on NUMA socket -1
EAL:   probe driver: 8086:100f rte_em_pmd
EAL:   Not managed by a supported kernel driver, skipped
EAL: PCI device 0000:02:07.0 on NUMA socket -1
EAL:   probe driver: 8086:100f rte_em_pmd
EAL:   Not managed by a supported kernel driver, skipped
EAL: No probed ethernet devices
EAL: Error - exiting with code: 1
  Cause: Creation of mbuf pool for socket 0 failed
[jervis@localhost dpdk-2.2.0]$ cat /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
175
[jervis@localhost dpdk-2.2.0]$
@sitence,这个是因为你的系统内存不足,所以分配不到期望的hugepages,
请增加虚拟机内存就解决了哈
...