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

DPDK运行报错:PCI device 0000:00:04.0 on NUMA socket -1

0 投票
各位好:

我是一个刚接触DPDK的新手,由于条件有限,只能现在虚拟机kvm上尝试安装DPDK,可试过各种不同的系统(centos7.2, fedora18, ubuntu14.04, ubuntu16.04),也尝试过不同DPDK的版本,可运行测试程序testpmd时,一直报如下错误:

 

Option: 25

  Enter hex bitmask of cores to execute testpmd app on
  Example: to execute app on cores 0 to 7, enter 0xff
bitmask: 0xf
Launching app
EAL: Detected 4 lcore(s)
EAL: Probing VFIO support...
EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using unreliable clock cycles !
EAL: PCI device 0000:00:03.0 on NUMA socket -1
EAL:   probe driver: 1af4:1000 net_virtio
EAL: PCI device 0000:00:04.0 on NUMA socket -1
EAL:   probe driver: 8086:100e net_e1000_em
EAL: PCI device 0000:00:05.0 on NUMA socket -1
EAL:   probe driver: 8086:100e net_e1000_em
Interactive-mode selected
Warning: NUMA should be configured manually by using --port-numa-config and --ring-numa-config parameters along with --numa.
USER1: create a new mbuf pool <mbuf_pool_socket_0>: n=171456, size=2176, socket=0
Configuring Port 0 (socket 0)
Port 0: 52:54:00:DE:D1:96
Configuring Port 1 (socket 0)
Port 1: 52:54:00:E4:2C:76
Checking link statuses...
Done
testpmd> start
io packet forwarding - ports=2 - cores=1 - streams=2 - NUMA support enabled, MP over anonymous pages disabled
Logical Core 1 (socket 0) forwards packets on 2 streams:
  RX P=0/Q=0 (socket 0) -> TX P=1/Q=0 (socket 0) peer=02:00:00:00:00:01
  RX P=1/Q=0 (socket 0) -> TX P=0/Q=0 (socket 0) peer=02:00:00:00:00:00

  io packet forwarding - CRC stripping enabled - packets/burst=32
  nb forwarding cores=1 - nb forwarding ports=2
  RX queues=1 - RX desc=128 - RX free threshold=0
  RX threshold registers: pthresh=0 hthresh=0 wthresh=0
  TX queues=1 - TX desc=512 - TX free threshold=0
  TX threshold registers: pthresh=0 hthresh=0 wthresh=0
  TX RS bit threshold=0 - TXQ flags=0x0
testpmd> stop
Telling cores to stop...
Waiting for lcores to finish...

  ---------------------- Forward statistics for port 0  ----------------------
  RX-packets: 3              RX-dropped: 0             RX-total: 3
  TX-packets: 1              TX-dropped: 0             TX-total: 1
  ----------------------------------------------------------------------------

  ---------------------- Forward statistics for port 1  ----------------------
  RX-packets: 1              RX-dropped: 0             RX-total: 1
  TX-packets: 3              TX-dropped: 0             TX-total: 3
  ----------------------------------------------------------------------------

  +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++
  RX-packets: 4              RX-dropped: 0             RX-total: 4
  TX-packets: 4              TX-dropped: 0             TX-total: 4
  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Done.
testpmd>

 

而且此时推出后,大页内存已经用尽,信息如下:

Option: 26

AnonHugePages:      2048 kB
HugePages_Total:    1024
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB

 

有没有谁可以帮忙看看,这是什么错误啊?

注:

宿主机为:centos7.2,虚拟机:kvm

CPU:Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz

内存:8G
最新提问 10月 23, 2017 分类:DPDK初学入门 | 用户: myw31415926 (140 分)

1个回答

0 投票
你再次使用例子的时候应该也是可以用的,不用太在意/proc/meminfo下面这个值
最新回答 10月 24, 2017 用户: sysight (12,040 分)
谢谢你的回答。我发现这些信息在虚拟机上不用在意,好像是在kvm中才有,实体机上并没有这些错误信息,但不影响程序运行。
收不到包是因为kvm中的网络模式错误,应该配置“桥接网卡”,“NAT”是不行的。
...