LEDE Project

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Kernel
  • Assigned To No-one
  • Operating System All
  • Severity High
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Votes 1
  • Private
Attached to Project: LEDE Project
Opened by Enrique Giraldo - 06.07.2017

FS#891 - Slow download speed over Ethernet (wpj344, QCA8334)

Version: Reboot (SNAPSHOT, r4512+1-f3ae0f8), master/trunk
Device: wpj344 (Switch QCA8334)
Problem: Slow download speed over Ethernet, upload works fine.
Steps to reproduce: Use iperf tool to perform network throughput test.

root@LEDE:~# iperf3 -s
-----------------------------------------------------------                                
Server listening on 5201                     
-----------------------------------------------------------                                
Accepted connection from 192.168.1.200, port 51144                                         
[  5] local 192.168.1.1 port 5201 connected to 192.168.1.200 port 51146                    
[ ID] Interval           Transfer     Bandwidth                                            
[  5]   0.00-1.00   sec   294 KBytes  2.41 Mbits/sec                                       
[  5]   1.00-2.00   sec   390 KBytes  3.20 Mbits/sec                                       
[  5]   2.00-3.00   sec   192 KBytes  1.58 Mbits/sec                                       
[  5]   3.00-4.00   sec   291 KBytes  2.39 Mbits/sec                                       
[  5]   4.00-5.00   sec  99.0 KBytes   810 Kbits/sec                                       
[  5]   5.00-6.00   sec  79.2 KBytes   649 Kbits/sec                                       
[  5]   6.00-7.00   sec   281 KBytes  2.31 Mbits/sec                                       
[  5]   7.00-8.00   sec   165 KBytes  1.36 Mbits/sec                                       
[  5]   8.00-9.00   sec   262 KBytes  2.14 Mbits/sec                                       
[  5]   9.00-10.00  sec   117 KBytes   961 Kbits/sec                                       
[  5]  10.00-10.01  sec  0.00 Bytes  0.00 bits/sec                                         
- - - - - - - - - - - - - - - - - - - - - - - - -                                          
[ ID] Interval           Transfer     Bandwidth                                            
[  5]   0.00-10.01  sec  0.00 Bytes  0.00 bits/sec                  sender                 
[  5]   0.00-10.01  sec  2.12 MBytes  1.78 Mbits/sec                  receiver

Using exactly the same node and the same setup and reverting:

commit 967b6be118e3217e8d6a28df9c615d3255e7b1ae     
Author: Vittorio Gambaletta <openwrt@vittgam.net>   
Date:   Sun Mar 26 10:08:20 2017 +0200              

    ar8327: Add workarounds for AR8337 switch.

The new results are:

root@LEDE:~# iperf3 -s    
-----------------------------------------------------------                                             
Server listening on 5201  
-----------------------------------------------------------                                             
Accepted connection from 192.168.1.200, port 50800  
[  5] local 192.168.1.1 port 5201 connected to 192.168.1.200 port 50802                                 
[ ID] Interval           Transfer     Bandwidth     
[  5]   0.00-1.00   sec  27.5 MBytes   230 Mbits/sec                                                    
[  5]   1.00-2.01   sec  24.1 MBytes   201 Mbits/sec                                                    
[  5]   2.01-3.00   sec  23.5 MBytes   198 Mbits/sec                                                    
[  5]   3.00-4.01   sec  24.1 MBytes   201 Mbits/sec                                                    
[  5]   4.01-5.00   sec  27.4 MBytes   231 Mbits/sec                                                    
[  5]   5.00-6.00   sec  25.1 MBytes   210 Mbits/sec                                                    
[  5]   6.00-7.00   sec  28.3 MBytes   238 Mbits/sec                                                    
[  5]   7.00-8.00   sec  30.2 MBytes   253 Mbits/sec                                                    
[  5]   8.00-9.00   sec  21.6 MBytes   181 Mbits/sec                                                    
[  5]   9.00-10.00  sec  28.6 MBytes   241 Mbits/sec                                                    
[  5]  10.00-10.01  sec   181 KBytes   128 Mbits/sec                                                    
- - - - - - - - - - - - - - - - - - - - - - - - -   
[ ID] Interval           Transfer     Bandwidth     
[  5]   0.00-10.01  sec  0.00 Bytes  0.00 bits/sec                  sender                              
[  5]   0.00-10.01  sec   261 MBytes   218 Mbits/sec             receiver   


Project Manager
Piotr Dymacz commented on 06.07.2017 09:46

I have seen similar problems on a different board with QCA9557+QCA8334 on RGMII interface but I was able to solve it with correct pll_1000 values on SoC side and {tx,rx}clk_delay{sel,en} on switch side (but that maybe just bypassed the real issue).

I suppose that the problem could be also related with the fact that QCA8334 has the same id as QCA8337 and that workaround should be applied only for QCA8337.

Enrique Giraldo commented on 07.07.2017 12:02

Is there a better solution than reversing the commit? How can I differentiate ids?

zygmund2000 commented on 20.07.2017 07:19

I have WR1043 V2 and I have same problem, speed between local computers is very slow 400-600KB/s, speed from WAN is higher.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing