From owner-freebsd-arm@freebsd.org Mon Jul 27 13:31:51 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 B9E089AAD63 for ; Mon, 27 Jul 2015 13:31:51 +0000 (UTC) (envelope-from jiashiun@gmail.com) Received: from mail-ig0-x22f.google.com (mail-ig0-x22f.google.com [IPv6:2607:f8b0:4001:c05::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8386EDD6 for ; Mon, 27 Jul 2015 13:31:51 +0000 (UTC) (envelope-from jiashiun@gmail.com) Received: by igbpg9 with SMTP id pg9so76739468igb.0 for ; Mon, 27 Jul 2015 06:31:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=WsiFJz/k5/zpg4ji+Vp+pnW1Tz1FbaXMvPbxF3vfCxY=; b=MFJT8DWpdINUw7KBaSlaQHtVs4C6wb+weCdqqBD0Dlp735eNJ1GxHlY1adghtppPB6 ZcUFF0zWJtlAiQSuVPzcgv18dxug2J5AbUppo0i/pbQcli/WHVjJ3gtlhqo/dX5CzP1e IU+lfRZufrYwcwNQ2EUwFV1GNq062Rd4uQGei7CALG38mzbIsIIlgcV0hzgwgcmZB6xt 9yjN1u5DsX3xfB+GH/yZXBhfwd+z7PBsDR9wYp2TPnzXpMIwifkPKqSG1CwW1GnwbfLt mz6kB+IUG0ORkmQvtcCC68uGr0dZkg3S98KGe99k4ucmpsYiMgggN03j/uMWGJKVW+wz mCYQ== X-Received: by 10.50.143.104 with SMTP id sd8mr17644381igb.34.1438003910873; Mon, 27 Jul 2015 06:31:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.143.4 with HTTP; Mon, 27 Jul 2015 06:31:21 -0700 (PDT) In-Reply-To: <55B23276.8090703@selasky.org> References: <55A7D8CE.4020809@selasky.org> <55B23276.8090703@selasky.org> From: Jia-Shiun Li Date: Mon, 27 Jul 2015 21:31:21 +0800 Message-ID: Subject: Re: [RPI-B] [HEADS UP] DWC OTG TX path optimisation for 11-current To: Hans Petter Selasky Cc: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Mon, 27 Jul 2015 13:31:51 -0000 On Fri, Jul 24, 2015 at 8:41 PM, Hans Petter Selasky wrote: > > Can you try to tune "DWC_OTG_NAK_MAX" in the range "16 .. 255" and see if > it makes any difference? > > Hi, the original value is 16 so I skipped testing it again. Below results from 32 to 256, in short the result is (NAK_MAX: RX thgoughput MB/s) 256: 58.5 255: 59.8 128: 59.8 64: 60.2 32: 13.3 Setting it to 64 seems good enough for now. But I thought it would be easy to saturate fast ethernet. ;) No? 'top' shows major loading on usb kproc when reaching 60MB/s. 'vmstat -i' shows 30000 int/s from dwcotg. - Jia-Shiun. 256: 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 46425 connected with 192.168.111.192 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.0 sec 81.0 MBytes 67.9 Mbits/sec jsli@rpi2:~ % 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 24444 connected with 192.168.111.92 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.1 sec 70.5 MBytes 58.5 Mbits/sec 255: 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 41623 connected with 192.168.111.192 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.0 sec 88.9 MBytes 74.5 Mbits/sec jsli@rpi2:~ % 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 15654 connected with 192.168.111.92 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.0 sec 71.4 MBytes 59.8 Mbits/sec jsli@4cbsd:~ % 128: 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 15108 connected with 192.168.111.192 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.0 sec 87.9 MBytes 73.5 Mbits/sec jsli@rpi2:~ % 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 62676 connected with 192.168.111.92 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.0 sec 71.4 MBytes 59.8 Mbits/sec jsli@4cbsd:~ % 64: 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 10000 connected with 192.168.111.192 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.0 sec 89.8 MBytes 75.2 Mbits/sec jsli@rpi2:~ % 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 43080 connected with 192.168.111.92 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.0 sec 71.9 MBytes 60.2 Mbits/sec jsli@4cbsd:~ % 32: 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 19313 connected with 192.168.111.192 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.0 sec 88.9 MBytes 74.4 Mbits/sec jsli@rpi2:~ % 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 17061 connected with 192.168.111.92 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.0 sec 15.9 MBytes 13.3 Mbits/sec jsli@4cbsd:~ %