Intel® Acceleration Stack用户指南: Intel FPGA Programmable Acceleration Card N3000

ID 683040
日期 8/17/2020
Public
文档目录

9.3. DPDK中的故障排除

如果在启动pktgen过程中看到以下错误,那么执行以下步骤:
Port  0: Link Up - speed 25000 Mbps - full-duplex <Enable promiscuous mode>
Port  1: Link Up - speed 25000 Mbps - full-duplex <Enable promiscuous mode>
 
RX processing lcore:   1 rx:  1 tx:  0
PANIC in pktgen_main_rx_loop():
*** port 0 socket ID 0 has different socket ID for lcore 1 socket ID 1
7:  [/lib64/libc.so.6(clone+0x6d) [0x7ff79c354ead]]
6: [/lib64/libpthread.so.0(+0x7dd5) [0x7ff79c62bdd5]]
5: [./app/x86_64-native-linuxapp-gcc/pktgen(eal_thread_loop+0x1d4) [0x583594]]
4: [./app/x86_64-native-linuxapp-gcc/pktgen(pktgen_launch_one_lcore+0xa7) [0x4a8997]]
3: [./app/x86_64-native-linuxapp-gcc/pktgen() [0x4a1b1f]]
2: [./app/x86_64-native-linuxapp-gcc/pktgen(__rte_panic+0xb8) [0x46b941]]
1: [./app/x86_64-native-linuxapp-gcc/pktgen(rte_dump_stack+0x1a) [0x58935a]]
        Aborted (core dumped)
  1. 查找连接到 Intel® FPGA PAC N3000的CPU (NUMA node/socket)。
    图 23. 示例
  2. 运行以下命令来查找CPU到内核的映射。
    $	RTE_SDK/usertools/cpu_layout.py 
    图 24. 输出
    这显示了所有偶数内核[0, 2, 4, 6, 8, 10]都绑定到插槽0,所有奇数内核[1, 3, 5, 7, 9, 11]都绑定到插槽1。
    注: NUMA节点与插槽相同。
由于此设置中的端口绑定到插槽0,因此在下面命令中偶数内核用作 lcore。请根据系统配置对lcore进行更新。
$  ./app/x86_64-native-linuxapp-gcc/pktgen -l 0,2,4 -n 4 --proc-type primary \
--log-level 7 --file-prefix pg -w 0000:16:00.0 -w 0000:16:00.1 -- \
-T -P -m 2.0 -m 4.1 -f themes/black-yellow.theme
注: 第一个内核始终被管理线程使用。lcore 2用于处理port 0的rx和tx。lcore 4用于处理port 1的rx和tx。