From owner-freebsd-arm@freebsd.org Sat Oct 3 04:30:59 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 48DBFA0D93A for ; Sat, 3 Oct 2015 04:30:59 +0000 (UTC) (envelope-from jim@netgate.com) Received: from mail-lb0-x229.google.com (mail-lb0-x229.google.com [IPv6:2a00:1450:4010:c04::229]) (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 C6AF71EAB for ; Sat, 3 Oct 2015 04:30:58 +0000 (UTC) (envelope-from jim@netgate.com) Received: by lbwr8 with SMTP id r8so35434889lbw.2 for ; Fri, 02 Oct 2015 21:30:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netgate.com; s=google; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=DDKGxsvOKxzq6EknEhMjJeMjPYMnWwovCh5FSqKcrNs=; b=nAiJxmR1Eha7T+Hl+hNjlU4DXwMkDxH6CWMr9e5PYhu/FrCmPAHhRTXNPLfkICT+Su ZzC0y+SQksZMoL5n7HtCVOYkFb9e+tTdk+WwXP7oDLZv4VI3aAwUYq59/ya9yOexHEJM 0lW+4kiqJAXigM8qr0ijuVUekumOhmtCn0Ot8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=DDKGxsvOKxzq6EknEhMjJeMjPYMnWwovCh5FSqKcrNs=; b=INJIdiEgG5RBMxwaZnAOYCY7EfQmRZEKotWxgnEUb0ANHgrnlD8elf5g+eLf+j++tK aF6yDZp5KZ0PY27I26xoMZM6fV09T6eIrAzXvu49HqM4Lxa3qPAdDsT609miA8ZglyZc dqhDAPKiE1OniO0s/IGyOB3LevMmJkFqUrM3dNIf4KlScvloVEE7h658CiEdJ/m9a98z Kc4Cv7rBjGhDS7T1JO5oA75PkNO3AyVmiqzNUdDfeTnnki7VyvDhNSAkZKwG5v60n0bk crc3KjgIr73Ueut1H1en+XqFkycxlHsB/Rwoi+aTuIEgg8gMpSvgwCMH0rkHOxqVNnNl 07/w== X-Gm-Message-State: ALoCoQmUdZUfHTkvE3LT7MLPg68UHDT6SZpXHkNuJVtvhPha0GONaAFbQeDfPp24iswagJf2JZkq X-Received: by 10.112.13.136 with SMTP id h8mr6903986lbc.23.1443846656505; Fri, 02 Oct 2015 21:30:56 -0700 (PDT) Received: from [192.168.2.222] (c-217-115-42-158.cust.bredband2.com. [217.115.42.158]) by smtp.gmail.com with ESMTPSA id xt10sm2056825lbb.9.2015.10.02.21.30.55 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 02 Oct 2015 21:30:55 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: dwc on banana pi pro and poor network performance From: Jim Thompson X-Mailer: iPhone Mail (13A404) In-Reply-To: <560F2706.9@toomeek.waw.pl> Date: Sat, 3 Oct 2015 06:30:55 +0200 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <560ED8DF.4080709@gmx.de> <560F2706.9@toomeek.waw.pl> To: TooMeeK Admin 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 04:30:59 -0000 > On Oct 3, 2015, at 2:53 AM, TooMeeK Admin wrote: >=20 > Hello, >=20 > I'm very interested what exacly image was used here? I would like to build= it for my BPi :) FreeBSD -CURRENT and Crochet were mentioned.=20 > On Linux it should go close to ~960Mbit, Not even. 600Mbits tops, and that's on a good day, downhill, and with the w= ind.=20 > so You're right - there is something wrong. > Please report CPU usage on Your tests? These VLANs are on the same port, s= o what about Your switch load? > Please enable Jumbo Frames and test again? Why? What would jumbo frames do for you, other than potentially (and artifi= cially) decease the interrupt rate? Without running something like jmg's automtu script, how would you talk to o= ther hosts on the network that don't support jumbo frames? > Iperf isn't accurate really.. It is fairly accurate. Really.=20 > W dniu 2015-10-02 o 21:19, C.Dornig pisze: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA256 >>=20 >> Hi, >>=20 >>=20 >> I have a Lemaker Banana Pi Pro and want to use it as router (regarding >> the GBit interface). >>=20 >> 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 nod= e. >>=20 >> I created a FreeBSD 11 image with crochet (FreeBSD r288430, >> +u-boot-bananapi version 2015-04). >>=20 >> Test scenario: >>=20 >> # 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 >>=20 >> # 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 >>=20 >> # 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 >>=20 >> The hosts can reach each others. >>=20 >> Iperf reports me ~130 Mbit. >>=20 >> During the test, netstat reports ~37k pps and the interrupt rate are >> also not very high (~300). >>=20 >> The same test with Linux on the PI results ~550 Mbit. >>=20 >> Iperf from host 1 to host 2 without PI in between reports ~990 Mbit. >>=20 >>=20 >> What's wrong here ? >>=20 >> Regards, >> C. >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v2 >>=20 >> 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" >=20 > _______________________________________________ > 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"