Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Oct 2015 18:49:58 -0300
From:      Luiz Otavio O Souza <lists.br@gmail.com>
To:        "C.Dornig" <c_dornig@gmx.de>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: dwc on banana pi pro and poor network performance
Message-ID:  <CAB=2f8yEd58Gv-UXrJL=B7D1vVNhTEewSNoY4eDrVXZCs0Xpag@mail.gmail.com>
In-Reply-To: <560ED8DF.4080709@gmx.de>
References:  <560ED8DF.4080709@gmx.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2 October 2015 at 16:19, C.Dornig wrote:
> -----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.


This is expected, if_dwc needs some work to perform better.

I just did enough to make it work on A20.

If someone is willing to work with this, I can help with some of
details (yongari@ was kind enough to educate me about what could be
done there), otherwise I'll fix this on my free time (i.e. it will
take some time).

Luiz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAB=2f8yEd58Gv-UXrJL=B7D1vVNhTEewSNoY4eDrVXZCs0Xpag>