xsxnet 2018-09-29 12:57 采纳率: 0%
浏览 1817
已结题

有关dpdk l3fwd-power 多核问题

因项目需求,需要用到dpdk l3fwd-power例子,每个核处理0号port的单个队列,但尝试后用单核单队列命令可以跑,多核下每个线程都卡在epoll_wait上,无响应,例子是自带的

参数:
./l3fwd-power -l 0-3 -n 4 -- -p 3 --config "(0,0,0),(0,1,1)"

输出:
root@ubuntu:~/dpdk-18.08/examples/l3fwd-power/build# ./l3fwd-power -l 0-1 -n 4 -- -p 3 --config "(0,0,0),(0,1,1)"
EAL: Detected 4 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Probing VFIO support...
EAL: no supported IOMMU extensions found!
EAL: VFIO support could not be initialized
EAL: PCI device 0000:01:00.0 on NUMA socket -1
EAL: Invalid NUMA socket, default to 0
EAL: probe driver: 8086:1539 net_e1000_igb
EAL: PCI device 0000:02:00.0 on NUMA socket -1
EAL: Invalid NUMA socket, default to 0
EAL: probe driver: 8086:1539 net_e1000_igb
EAL: PCI device 0000:03:00.0 on NUMA socket -1
EAL: Invalid NUMA socket, default to 0
EAL: probe driver: 8086:1539 net_e1000_igb
EAL: PCI device 0000:06:00.0 on NUMA socket -1
EAL: Invalid NUMA socket, default to 0
EAL: probe driver: 8086:1539 net_e1000_igb
EAL: PCI device 0000:07:00.0 on NUMA socket -1
EAL: Invalid NUMA socket, default to 0
EAL: probe driver: 8086:1539 net_e1000_igb
EAL: PCI device 0000:08:00.0 on NUMA socket -1
EAL: Invalid NUMA socket, default to 0
EAL: probe driver: 8086:1539 net_e1000_igb
POWER: Attempting to initialise ACPI cpufreq power management...
POWER: Power management governor of lcore 0 has been set to user space successfully
POWER: File not openned
POWER: Cannot get available frequencies of lcore 0
POWER: Attempting to initialise VM power management...
GUEST_CHANNEL: Opening channel '/dev/virtio-ports/virtio.serial.port.poweragent.0' for lcore 0
GUEST_CHANNEL: Unable to to connect to '/dev/virtio-ports/virtio.serial.port.poweragent.0' with error No such file or directory
POWER: Unable to set Power Management Environment for lcore 0
POWER: Library initialization failed on core 0
POWER: Attempting to initialise ACPI cpufreq power management...
POWER: Power management governor of lcore 1 has been set to user space successfully
POWER: File not openned
POWER: Cannot get available frequencies of lcore 1
POWER: Attempting to initialise VM power management...
GUEST_CHANNEL: Opening channel '/dev/virtio-ports/virtio.serial.port.poweragent.1' for lcore 1
GUEST_CHANNEL: Unable to to connect to '/dev/virtio-ports/virtio.serial.port.poweragent.1' with error No such file or directory
POWER: Unable to set Power Management Environment for lcore 1
POWER: Library initialization failed on core 1

Initializing port 0 ... Creating queues: nb_rxq=2 nb_txq=2... Address:00:02:B6:85:1E:C2, Allocated mbuf pool on socket 0
LPM: Adding route 0x01010100 / 24 (0)
LPM: Adding route 0x02010100 / 24 (1)
LPM: Adding route 0x03010100 / 24 (2)
LPM: Adding route 0x04010100 / 24 (3)
LPM: Adding route 0x05010100 / 24 (4)
LPM: Adding route 0x06010100 / 24 (5)
LPM: Adding route 0x07010100 / 24 (6)
LPM: Adding route 0x08010100 / 24 (7)
txq=0,0,0 txq=1,1,0
Initializing port 1 ... Creating queues: nb_rxq=0 nb_txq=2... Address:00:02:B6:85:1E:C3, txq=0,0,0 txq=1,1,0

Skipping disabled port 2

Skipping disabled port 3

Initializing rx queues on lcore 0 ... rxq=0,0,0
Initializing rx queues on lcore 1 ... rxq=0,1,0

Checking link status.........................................done
Port 0 Link Up - speed 100 Mbps - full-duplex
Port 1 Link Up - speed 1000 Mbps - full-duplex
L3FWD_POWER: entering main loop on lcore 1
L3FWD_POWER: -- lcoreid=1 portid=0 rxqueueid=1
L3FWD_POWER: entering main loop on lcore 0
L3FWD_POWER: -- lcoreid=0 portid=0 rxqueueid=0
EAL: Event already been added.
L3FWD_POWER: lcore 1 sleeps until interrupt triggers
L3FWD_POWER: lcore 0 sleeps until interrupt triggers
L3FWD_POWER: lcore 1 is waked up from rx interrupt on port 0 queue 1
L3FWD_POWER: lcore 1 sleeps until interrupt triggers

备注:
intel电源管理技术没开启,不过从代码看应该不影响

系统环境:
Linux ubuntu 4.4.0 x64
Ubuntu 16.04.5 LTS
dpdk18.08
网卡I211 4口 2队列 4核

  • 写回答

2条回答

  • devmiao 2018-09-29 15:53
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘