From owner-freebsd-arm@freebsd.org Fri Oct 2 19:20:13 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 2C8559D03B2 for ; Fri, 2 Oct 2015 19:20:13 +0000 (UTC) (envelope-from c_dornig@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DDBCB1F7D for ; Fri, 2 Oct 2015 19:20:12 +0000 (UTC) (envelope-from c_dornig@gmx.de) Received: from [10.50.0.52] ([24.134.162.97]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0LsUDg-1afJC03DJo-0122K3 for ; Fri, 02 Oct 2015 21:20:04 +0200 Message-ID: <560ED8DF.4080709@gmx.de> Date: Fri, 02 Oct 2015 21:19:59 +0200 From: "C.Dornig" User-Agent: Mutt 1.0 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: freebsd-arm@freebsd.org Subject: dwc on banana pi pro and poor network performance Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:4krCM/nkJ4Li8dwBDk9qL6J4Wqtks0rQpOGVIHh0gofmHDPC86i LhfhDZsdiyahnBugCo3sEEjf9qEp2CB0IBKpmYZsyMK3rnv32r6KCQSmOE4aBTnlVZV1w9U C1jNkqH5xbyp/sh95jVSf0CKwJXYCx8EoZWSA2QX3hMhrCBpYPLRdU9nMlBea+dCQsdvsFg En7t5Dtb5KlO+zaCsszbg== X-UI-Out-Filterresults: notjunk:1;V01:K0:4d8fHKXaHxI=:6TmyjHgsq2Q4KLqAfurUE0 dGlW86gH3eJkIIkikuuIjTrdVYPfMmueizJBAsmPzebyQUqmmHgvqFkl7627OmhOInWwGPH83 22nwjTu54ByRDUwlHBjyZPsN/RUfCPfzWiPPKl91+PgrPn1422o+Edb3jcsKFiaawPNH7mnUi sf209oNUXZ38dkubeEasJPYGfGIT0r7ljOrMU3m5MU2WFdXVqTbwH0eIVpfYkS3LOhOR9QQUN ykwwn44lG6k2aThq7xLFXf8wldmjV29AximnWzBOYodu+jssxEbTAz3unnPI2bqgVE9/bvngJ aV+9YItYKBkW5auDfPFxE1IOujCG9N8tuQwRSuNp2RPFzn3t+H1zH++DWRUp3nV4f9Mc7onOt Rf0LEbCemUKTGO+dKrQYuZzWGX7P3o6CR/KWGhS+bAAvScZkqPEPTbpcBm5rjrTgzyLhQnNLv RupVCwvXPKMEEav74/787GLo8IRQ+LxNxTou3Npi59w3rmHJaXb4o2MTowFFU0Eo4QsQKbiEi UzQ+wwWS5VgBoaykTdVNcIQJBWZSQsXWD9mLDQOLHWyxpnEPrGv+3aFQHfFaeQS7f6bXJj+Xt HhqUU4fmHCuWR9lss2IaiVnLDeNvcAqk2zc+qE5hhilrpA05xFgbofZYDIeZzR4MfjySluKdm Y3h180OaTToapTBPv8T7vX8YWbvP9vi3YD1uybO647hvrGxMX+FYx/HRMmb8rMNtN9sT4kfo4 1AKuSQ3NqDa9eCfWQADc+NakjWpvDU3xB0Is7tTgw0YOX/QoVBPZ0r6lExQqxtmzYbB4H4ch+ W16H+Q2 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, 02 Oct 2015 19:20:13 -0000 -----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=1 sysctl net.inet.ip.fastforwarding=1 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 =ExPu -----END PGP SIGNATURE-----