欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Xilinx zynq zynqmp PL Ethernet Linux使用与优化

程序员文章站 2022-07-12 11:28:43
...

参考

Zynq-7000 AP SoC Performance – Gigabit Ethernet achieving the best performance
Linux AXI Ethernet driver
PS and PL based Ethernet in Zynq MPSoC
使用taskset将task绑定到指定的CPU上
绑定CPU逻辑核心的利器——taskset
taskset
zynq 1G&10G 网络功能
zynq-7000系列基于zynq-7015的vivado初步设计之linux下控制PL扩展的光以太网(1000BASE-X)

使用

设备树,

dma {
	xlnx,include-dre;
};

ethernet {
	local-mac-address = [00 0a 35 66 44 c4];
	phy-mode = "xgmii";
};

优化

加窗和应用绑核可以提高100MB/s左右,中断绑核实测反而会导致性能下降,

[email protected]:~# iperf3 -c 192.168.8.16
Connecting to host 192.168.8.16, port 5201
[  4] local 192.168.8.192 port 39628 connected to 192.168.8.16 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec   272 MBytes  2.28 Gbits/sec    0    392 KBytes       
[  4]   1.00-2.00   sec   273 MBytes  2.29 Gbits/sec    0    421 KBytes       
[  4]   2.00-3.00   sec   271 MBytes  2.27 Gbits/sec    0    433 KBytes       
[  4]   3.00-4.00   sec   272 MBytes  2.27 Gbits/sec    0    479 KBytes       
[  4]   4.00-5.00   sec   271 MBytes  2.28 Gbits/sec    0    479 KBytes       
[  4]   5.00-6.00   sec   272 MBytes  2.28 Gbits/sec    0    479 KBytes       
[  4]   6.00-7.00   sec   273 MBytes  2.29 Gbits/sec    0    479 KBytes       
[  4]   7.00-8.00   sec   272 MBytes  2.29 Gbits/sec    0    479 KBytes       
[  4]   8.00-9.00   sec   271 MBytes  2.27 Gbits/sec    0    479 KBytes       
[  4]   9.00-10.00  sec   271 MBytes  2.27 Gbits/sec    0    479 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  2.65 GBytes  2.28 Gbits/sec    0             sender
[  4]   0.00-10.00  sec  2.65 GBytes  2.28 Gbits/sec                  receiver

iperf Done.
[email protected]:~# iperf3 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.8.16, port 1040
[  5] local 192.168.8.192 port 5201 connected to 192.168.8.16 port 1041
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-1.00   sec   217 MBytes  1.82 Gbits/sec                  
[  5]   1.00-2.00   sec   271 MBytes  2.27 Gbits/sec                  
[  5]   2.00-3.00   sec   271 MBytes  2.27 Gbits/sec                  
[  5]   3.00-4.00   sec   272 MBytes  2.28 Gbits/sec                  
[  5]   4.00-5.00   sec   273 MBytes  2.29 Gbits/sec                  
[  5]   5.00-6.00   sec   270 MBytes  2.27 Gbits/sec                  
[  5]   6.00-7.00   sec   271 MBytes  2.27 Gbits/sec                  
[  5]   7.00-8.00   sec   270 MBytes  2.27 Gbits/sec                  
[  5]   8.00-9.00   sec   271 MBytes  2.27 Gbits/sec                  
[  5]   9.00-10.00  sec   271 MBytes  2.27 Gbits/sec                  
[  5]  10.00-10.21  sec  56.9 MBytes  2.27 Gbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-10.21  sec  0.00 Bytes  0.00 bits/sec                  sender
[  5]   0.00-10.21  sec  2.65 GBytes  2.23 Gbits/sec                  receiver

上一篇: uvm_recorder.svh

下一篇: recorder-list