Aw: MT7623 Ethernet TX performance regression

David Woodhouse dwmw2 at infradead.org
Thu Jul 23 14:35:21 EDT 2020


On Thu, 2020-07-23 at 19:49 +0200, Frank Wunderlich wrote:
> Hi,
> 
> could you try this? it is the 3rd part of rene's series which got not
> merged to mainline yet.
> 
> https://github.com/frank-w/BPI-R2-4.14/commit/ff2bb8719bc269a9feb696764159e2640fc64eed

Yes, that's it. Thanks!

That brings the performance on 5.8.0-rc6 back to just under line rate
1Gb/s in both directions for both IPv6 and Legacy IP.

On the OpenWrt 5.4 kernel it's still not quite that for IPv6 TX
(although it is for Legacy IP TX), but at least I can consider that a
"performance" problem instead of basic functionality :)

root at OpenWrt:/# iperf3 -c i7.infradead.org
Connecting to host i7.infradead.org, port 5201
[  5] local 2001:8b0:10b:1::c2a port 52730 connected to 2001:8b0:10b:1:21e:67ff:fecb:7a92 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   109 MBytes   916 Mbits/sec  1357   72.5 KBytes       
[  5]   1.00-2.00   sec   109 MBytes   913 Mbits/sec  1203   69.7 KBytes       
[  5]   2.00-3.00   sec   107 MBytes   899 Mbits/sec  1300   76.7 KBytes       
[  5]   3.00-4.00   sec   108 MBytes   906 Mbits/sec  1514   71.1 KBytes       
[  5]   4.00-5.00   sec   108 MBytes   903 Mbits/sec  1518   62.8 KBytes       
[  5]   5.00-6.00   sec   108 MBytes   909 Mbits/sec  1402   68.3 KBytes       
[  5]   6.00-7.00   sec   108 MBytes   905 Mbits/sec  1325   83.7 KBytes       
[  5]   7.00-8.00   sec   108 MBytes   903 Mbits/sec  1348   72.5 KBytes       
[  5]   8.00-9.00   sec   107 MBytes   900 Mbits/sec  1481   76.7 KBytes       
[  5]   9.00-10.00  sec   108 MBytes   904 Mbits/sec  1300   73.9 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  1.05 GBytes   906 Mbits/sec  13748             sender
[  5]   0.00-10.00  sec  1.05 GBytes   905 Mbits/sec                  receiver

iperf Done.
root at OpenWrt:/# iperf3 -c i7.infradead.org -R
Connecting to host i7.infradead.org, port 5201
Reverse mode, remote host i7.infradead.org is sending
[  5] local 2001:8b0:10b:1::c2a port 52734 connected to 2001:8b0:10b:1:21e:67ff:fecb:7a92 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  77.3 MBytes   648 Mbits/sec                  
[  5]   1.00-2.00   sec  78.1 MBytes   655 Mbits/sec                  
[  5]   2.00-3.00   sec  78.3 MBytes   656 Mbits/sec                  
[  5]   3.00-4.00   sec  78.6 MBytes   659 Mbits/sec                  
[  5]   4.00-5.00   sec  78.2 MBytes   656 Mbits/sec                  
[  5]   5.00-6.00   sec  78.2 MBytes   656 Mbits/sec                  
[  5]   6.00-7.00   sec  78.4 MBytes   658 Mbits/sec                  
[  5]   7.00-8.00   sec  78.7 MBytes   661 Mbits/sec                  
[  5]   8.00-9.00   sec  78.1 MBytes   655 Mbits/sec                  
[  5]   9.00-10.00  sec  78.3 MBytes   657 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   784 MBytes   658 Mbits/sec   31             sender
[  5]   0.00-10.00  sec   782 MBytes   656 Mbits/sec                  receiver

iperf Done.
root at OpenWrt:/# iperf3 -c i7.infradead.org -R
Connecting to host i7.infradead.org, port 5201
Reverse mode, remote host i7.infradead.org is sending
[  5] local 2001:8b0:10b:1::c2a port 59138 connected to 2001:8b0:10b:1:21e:67ff:fecb:7a92 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec   103 MBytes   865 Mbits/sec                  
[  5]   1.00-2.00   sec   105 MBytes   879 Mbits/sec                  
[  5]   2.00-3.00   sec   105 MBytes   880 Mbits/sec                  
[  5]   3.00-4.00   sec   104 MBytes   876 Mbits/sec                  
[  5]   4.00-5.00   sec   105 MBytes   880 Mbits/sec                  
[  5]   5.00-6.00   sec   105 MBytes   878 Mbits/sec                  
[  5]   6.00-7.00   sec   105 MBytes   879 Mbits/sec                  
[  5]   7.00-8.00   sec   105 MBytes   879 Mbits/sec                  
[  5]   8.00-9.00   sec   105 MBytes   881 Mbits/sec                  
[  5]   9.00-10.00  sec   105 MBytes   880 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  1.03 GBytes   881 Mbits/sec   81             sender
[  5]   0.00-10.00  sec  1.02 GBytes   878 Mbits/sec                  receiver

iperf Done.



> to which client/server do you make the tests? i had retransmitts like
> you with ubuntu 20.4 default kernel (5.4.0-xx) and fixed it with self
> compiled 5.4.51

Just a standard x86_64 Fedora 32 box.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5174 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mediatek/attachments/20200723/09dc1f67/attachment-0001.bin>


More information about the Linux-mediatek mailing list