From owner-freebsd-arm@freebsd.org Sat Oct 3 05:41:27 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 A4695A0F209 for ; Sat, 3 Oct 2015 05:41:27 +0000 (UTC) (envelope-from jau789@gmail.com) Received: from mail-wi0-x234.google.com (mail-wi0-x234.google.com [IPv6:2a00:1450:400c:c05::234]) (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 46A631D74 for ; Sat, 3 Oct 2015 05:41:27 +0000 (UTC) (envelope-from jau789@gmail.com) Received: by wicfx3 with SMTP id fx3so57510145wic.1 for ; Fri, 02 Oct 2015 22:41:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=in-reply-to:references:from:subject:to:cc:content-type :content-transfer-encoding:date:message-id:mime-version; bh=fHuTvBtoWQRUn9mGCq/ZYK2Pu1VERTouEXVwQWSijhY=; b=okdBTk9+1jPRJfoGLyyj++v+RWI7+WM+k1TfQk6Tun4q10Mhtaxrru4UPrKHoNZrXD SE2IhI/JZAukZnAunU6LD1Jc21Eo+IFqkrQWj0Fs1aVenBr89qn4rlN+M1QyDHrujE0Q s07ScFsbk+kQmFL7FrWoozpOZTKVlZajU8C2i9cdqHLX4bdUlEbGmiRf3x9rJyl07pGv jlxNAPmfdnJ9CuEwDgtu8K0lFYjNwOXOlkH4arF96doX1n6ynsMl70s4TD5/tcyZlw6J ApYMJtGygMVwBfaikcUphzJ2uk2LBZw1tNl7nSl826ig6tkUdYDoHjdmgG1VEWuJQLF9 nn9Q== X-Received: by 10.180.74.175 with SMTP id u15mr971226wiv.66.1443850885783; Fri, 02 Oct 2015 22:41:25 -0700 (PDT) Received: from [127.0.0.1] (xdsl-205-163.nblnetworks.fi. [83.145.205.163]) by smtp.gmail.com with ESMTPSA id qc4sm14660611wjc.33.2015.10.02.22.41.24 (version=TLS1 cipher=RC4-SHA bits=128/128); Fri, 02 Oct 2015 22:41:25 -0700 (PDT) In-Reply-To: References: <560ED8DF.4080709@gmx.de> <560F2706.9@toomeek.waw.pl> From: jau789@gmail.com Subject: Re: dwc on banana pi pro and poor network performance To: TooMeeK Admin , Jim Thompson Cc: freebsd-arm@freebsd.org Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 3 Oct 2015 05:41:25 +0000 Message-ID: MIME-Version: 1.0 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: Sat, 03 Oct 2015 05:41:27 -0000 Since iperf uses tcp by default, the congestion control methods used on the test systems may affect the test results quite seriously. Most of the cc methods known to freebsd were not designed with short high capasity links in mind. Many of those cc methods were in fact intended for long distances and high bandwidth. In this case the RTT is very short while many of the CC methods expext much higher RTTs. For the best results on short distances and high bandwidth enable ECN bits and use dctcp. The dctcp method was from day one intended to behave gracefully also when RTT is very short and the bandwidth is large. --jau On 03/10/2015 7:30 Jim Thompson wrote: > On Oct 3, 2015, at 2:53 AM, TooMeeK Admin wrote: > > Hello, > > I'm very interested what exacly image was used here? I would like to bui= ld it for my BPi :) FreeBSD -CURRENT and Crochet were mentioned. > On Linux it should go close to ~960Mbit, Not even. 600Mbits tops, and that's on a good day, downhill, and with the= wind. > so You're right - there is something wrong. > Please report CPU usage on Your tests? These VLANs are on the same port,= so what about Your switch load? > Please enable Jumbo Frames and test again? Why? What would jumbo frames do for you, other than potentially (and arti= ficially) decease the interrupt rate? Without running something like jmg's automtu script, how would you talk=20= to other hosts on the network that don't support jumbo frames? > Iperf isn't accurate really.. It is fairly accurate. Really. > W dniu 2015-10-02 o 21:19, C.Dornig pisze: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA256 >> >> Hi, >> >> >> I have a Lemaker Banana Pi Pro and want to use it as router (regarding >> the GBit interface). >> >> For testing i used iperf with two test hosts. The Pi have two vlans >> configured and each test node use the pi as router to reach the other= node. >> >> I created a FreeBSD 11 image with crochet (FreeBSD r288430, >> +u-boot-bananapi version 2015-04). >> >> Test scenario: >> >> # On Banana: >> sysctl net.inet.ip.forwarding=3D1 >> sysctl net.inet.ip.fastforwarding=3D1 >> ifconfig vlan10 create >> ifconfig vlan10 vlan 10 vlandev dwc0 >> ifconfig vlan10 10.0.0.1/24 up >> ifconfig vlan11 create >> ifconfig vlan11 vlan 11 vlandev dwc0 >> ifconfig vlan11 10.0.1.1/24 up >> >> # Host 1: >> ifconfig vlan10 create >> ifconfig vlan10 vlan 10 vlandev em0 >> ifconfig vlan10 10.0.0.100/24 up >> route add -net 10.0.1.0/24 10.0.0.1 >> iperf -c 10.0.1.100 >> >> # Host 2: >> ifconfig vlan11 create >> ifconfig vlan11 vlan 11 vlandev em0 >> ifconfig vlan11 10.0.1.100/24 up >> route add -net 10.0.0.0/24 10.0.1.1 >> iperf -s >> >> The hosts can reach each others. >> >> Iperf reports me ~130 Mbit. >> >> During the test, netstat reports ~37k pps and the interrupt rate are >> also not very high (~300). >> >> The same test with Linux on the PI results ~550 Mbit. >> >> Iperf from host 1 to host 2 without PI in between reports ~990 Mbit. >> >> >> What's wrong here ? >> >> Regards, >> C. >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v2 >> >> iQIcBAEBCAAGBQJWDtjaAAoJENpF8Q7kD80ylu0P/AwenlTV9xU5ZTGyOec8LQK9 >> p6GkBuBrXx/if8Su/c81mvSrJWnIufSUIZJmUTgOWLfYqgYAvc5MptTHzzgSa90d >> i96MdOurF60pKI+a9zcssC7GPYm6yEoSSwDkWecIn0VatlqDTB2ygCdQxie+FRgb >> SuCFWtyntfLlI45f63IRLgOA5rflEQiPq0L64XTcVe9EJpS6iAUrWnd5KA93/qn3 >> wJmzqFGITTgyV1OHzYQbkrTKZxQx2CUXpWr08O55J3vsD++Sl2AkGrq3iB4jowap >> UjA9BxF0KqtY6IwaepnsyrhbacARhJwwMdwjRI/0+zQP2pQcmzjCLtg8mYuOxVp1 >> lkljVy0FDN2U47eWjybdJ3YWDB4FVFZTOmxj55UKA9X4ayR2a2OMc64vxzJV+cjF >> 30spBAxYCCHGKWiRWLW0viuajCrBhS0wbD44jF1Be9GmBtRbBBOiZ0f2cLBzAV/x >> wJCjWaapDvmqzZ2R98uhc1N04ezmlidn1OrAt/Mgca85qQnz5vricbJRR5LUrZzJ >> tWuq5cTRE+vRC3nQCXuNqHa8AE0rzuSmzMxW12JETHHVqOwBPT5KD5JXk2+N5o2m >> 67DByhMVxnW/IrsDghNWTyQJJpceUkag2KffddqjYz3ph8KoGraaGw9f5pIOWGUN >> kWPmLJiSr29OX0/EAygK >> =3DExPu >> -----END PGP SIGNATURE----- >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-arm >> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" _______________________________________________ freebsd-arm@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-arm To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"