[RPI-B] [HEADS UP] DWC OTG TX path optimisation for 11-current

Hans Petter Selasky hps at selasky.org
Fri Jul 24 12:40:08 UTC 2015


On 07/23/15 17:15, Jia-Shiun Li wrote:
> Hi,
>
> don't know if this is related.
>
> RPI2 r285700 seems to have rx performance issues.

Hi,

This is not directly related to the patch.

Can you try to tune "DWC_OTG_NAK_MAX" in the range "16 .. 255"  and see 
if it makes any difference?

sys/dev/usb/controller/dwc_otg.h

--HPS

>
> tx:
> jsli at rpi2:~ % iperf -c 192.168.111.192
> ------------------------------------------------------------
> Client connecting to 192.168.111.192, TCP port 5001
> TCP window size: 32.5 KByte (default)
> ------------------------------------------------------------
> [  3] local 192.168.111.92 port 25883 connected with 192.168.111.192 port
> 5001
> [ ID] Interval       Transfer     Bandwidth
> [  3]  0.0-10.0 sec  89.5 MBytes  75.0 Mbits/sec
>
> rx:
> jsli at 4cbsd:~ % iperf -c 192.168.111.92
> ------------------------------------------------------------
> Client connecting to 192.168.111.92, TCP port 5001
> TCP window size: 32.5 KByte (default)
> ------------------------------------------------------------
> [  3] local 192.168.111.192 port 33966 connected with 192.168.111.92 port
> 5001
> [ ID] Interval       Transfer     Bandwidth
> [  3]  0.0-10.1 sec  6.75 MBytes  5.62 Mbits/sec
> jsli at 4cbsd:~ %
>
>
>
> with iperf3:
> tx:
> jsli at rpi2:~ % iperf3 -c 192.168.111.192
> Connecting to host 192.168.111.192, port 5201
> [  4] local 192.168.111.92 port 26625 connected to 192.168.111.192 port 5201
> [ ID] Interval           Transfer     Bandwidth
> [  4]   0.00-1.00   sec  8.75 MBytes  73.4 Mbits/sec
> [  4]   1.00-2.00   sec  9.01 MBytes  75.6 Mbits/sec
> [  4]   2.00-3.00   sec  8.98 MBytes  75.3 Mbits/sec
> [  4]   3.00-4.00   sec  8.96 MBytes  75.1 Mbits/sec
> [  4]   4.00-5.00   sec  8.99 MBytes  75.4 Mbits/sec
> [  4]   5.00-6.00   sec  9.00 MBytes  75.5 Mbits/sec
> [  4]   6.00-7.00   sec  8.88 MBytes  74.5 Mbits/sec
> [  4]   7.00-8.00   sec  9.05 MBytes  75.9 Mbits/sec
> [  4]   8.00-9.00   sec  9.00 MBytes  75.5 Mbits/sec
> [  4]   9.00-10.00  sec  8.89 MBytes  74.6 Mbits/sec
> - - - - - - - - - - - - - - - - - - - - - - - - -
> [ ID] Interval           Transfer     Bandwidth
> [  4]   0.00-10.00  sec  89.5 MBytes  75.1 Mbits/sec                  sender
> [  4]   0.00-10.00  sec  89.4 MBytes  75.0 Mbits/sec
>   receiver
>
> iperf Done.
> jsli at rpi2:~ %
>
> rx:
> jsli at rpi2:~ % iperf3 -c 192.168.111.192 -R
> Connecting to host 192.168.111.192, port 5201
> Reverse mode, remote host 192.168.111.192 is sending
> [  4] local 192.168.111.92 port 23984 connected to 192.168.111.192 port 5201
> [ ID] Interval           Transfer     Bandwidth
> [  4]   0.00-1.00   sec   708 KBytes  5.80 Mbits/sec
> [  4]   1.00-2.00   sec   700 KBytes  5.73 Mbits/sec
> [  4]   2.00-3.00   sec   680 KBytes  5.57 Mbits/sec
> [  4]   3.00-4.00   sec   653 KBytes  5.35 Mbits/sec
> [  4]   4.00-5.00   sec   660 KBytes  5.41 Mbits/sec
> [  4]   5.00-6.00   sec   673 KBytes  5.51 Mbits/sec
> [  4]   6.00-7.00   sec   696 KBytes  5.70 Mbits/sec
> [  4]   7.00-8.00   sec   696 KBytes  5.70 Mbits/sec
> [  4]   8.00-9.00   sec   675 KBytes  5.53 Mbits/sec
> [  4]   9.00-10.00  sec   667 KBytes  5.47 Mbits/sec
> - - - - - - - - - - - - - - - - - - - - - - - - -
> [ ID] Interval           Transfer     Bandwidth
> [  4]   0.00-10.00  sec  6.69 MBytes  5.61 Mbits/sec                  sender
> [  4]   0.00-10.00  sec  6.69 MBytes  5.61 Mbits/sec
>   receiver
>
> iperf Done.
> jsli at rpi2:~ %
>
>
> from the other side:
> (rpi2) rx:
> jsli at 4cbsd:~ % iperf3 -c 192.168.111.92
> Connecting to host 192.168.111.92, port 5201
> [  4] local 192.168.111.192 port 31202 connected to 192.168.111.92 port 5201
> [ ID] Interval           Transfer     Bandwidth
> [  4]   0.00-1.00   sec   640 KBytes  5.24 Mbits/sec
> [  4]   1.00-2.00   sec   707 KBytes  5.79 Mbits/sec
> [  4]   2.00-3.00   sec   700 KBytes  5.74 Mbits/sec
> [  4]   3.00-4.00   sec   675 KBytes  5.52 Mbits/sec
> [  4]   4.00-5.00   sec   669 KBytes  5.48 Mbits/sec
> [  4]   5.00-6.00   sec   687 KBytes  5.63 Mbits/sec
> [  4]   6.00-7.00   sec   714 KBytes  5.85 Mbits/sec
> [  4]   7.00-8.00   sec   708 KBytes  5.81 Mbits/sec
> [  4]   8.00-9.00   sec   675 KBytes  5.53 Mbits/sec
> [  4]   9.00-10.00  sec   662 KBytes  5.42 Mbits/sec
> - - - - - - - - - - - - - - - - - - - - - - - - -
> [ ID] Interval           Transfer     Bandwidth
> [  4]   0.00-10.00  sec  6.68 MBytes  5.60 Mbits/sec                  sender
> [  4]   0.00-10.00  sec  6.63 MBytes  5.56 Mbits/sec
>   receiver
>
> iperf Done.
> jsli at 4cbsd:~ %
>
> (rpi2) tx:
> jsli at 4cbsd:~ % iperf3 -c 192.168.111.92 -R
> Connecting to host 192.168.111.92, port 5201
> Reverse mode, remote host 192.168.111.92 is sending
> [  4] local 192.168.111.192 port 41976 connected to 192.168.111.92 port 5201
> [ ID] Interval           Transfer     Bandwidth
> [  4]   0.00-1.00   sec  7.85 MBytes  65.9 Mbits/sec
> [  4]   1.00-2.00   sec  8.80 MBytes  73.8 Mbits/sec
> [  4]   2.00-3.00   sec  8.87 MBytes  74.4 Mbits/sec
> [  4]   3.00-4.00   sec  8.96 MBytes  75.2 Mbits/sec
> [  4]   4.00-5.00   sec  8.98 MBytes  75.4 Mbits/sec
> [  4]   5.00-6.00   sec  8.80 MBytes  73.8 Mbits/sec
> [  4]   6.00-7.00   sec  8.93 MBytes  74.9 Mbits/sec
> [  4]   7.00-8.00   sec  8.96 MBytes  75.2 Mbits/sec
> [  4]   8.00-9.00   sec  8.94 MBytes  75.0 Mbits/sec
> [  4]   9.00-10.00  sec  8.89 MBytes  74.6 Mbits/sec
> - - - - - - - - - - - - - - - - - - - - - - - - -
> [ ID] Interval           Transfer     Bandwidth
> [  4]   0.00-10.00  sec  88.2 MBytes  74.0 Mbits/sec                  sender
> [  4]   0.00-10.00  sec  88.1 MBytes  73.9 Mbits/sec
>   receiver
>
> iperf Done.
> jsli at 4cbsd:~ %
>
>
> -Jia-Shiun
>



More information about the freebsd-arm mailing list