Date: Sat, 3 Oct 2015 06:30:55 +0200 From: Jim Thompson <jim@netgate.com> To: TooMeeK Admin <maps@toomeek.waw.pl> Cc: freebsd-arm@freebsd.org Subject: Re: dwc on banana pi pro and poor network performance Message-ID: <F69250DB-0096-41D4-85C1-244122357C45@netgate.com> In-Reply-To: <560F2706.9@toomeek.waw.pl> References: <560ED8DF.4080709@gmx.de> <560F2706.9@toomeek.waw.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Oct 3, 2015, at 2:53 AM, TooMeeK Admin <maps@toomeek.waw.pl> 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F69250DB-0096-41D4-85C1-244122357C45>