From owner-freebsd-arm@freebsd.org Fri Jul 24 12:40:07 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D9BAD9A942F for ; Fri, 24 Jul 2015 12:40:07 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 82E6D16B3 for ; Fri, 24 Jul 2015 12:40:07 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 2BA781FE022; Fri, 24 Jul 2015 14:40:06 +0200 (CEST) Message-ID: <55B23276.8090703@selasky.org> Date: Fri, 24 Jul 2015 14:41:26 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Jia-Shiun Li CC: "freebsd-arm@freebsd.org" Subject: Re: [RPI-B] [HEADS UP] DWC OTG TX path optimisation for 11-current References: <55A7D8CE.4020809@selasky.org> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jul 2015 12:40:08 -0000 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@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@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@4cbsd:~ % > > > > with iperf3: > tx: > jsli@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@rpi2:~ % > > rx: > jsli@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@rpi2:~ % > > > from the other side: > (rpi2) rx: > jsli@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@4cbsd:~ % > > (rpi2) tx: > jsli@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@4cbsd:~ % > > > -Jia-Shiun >