Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jun 2021 13:37:29 +0100
From:      Denis Ovsienko <denis@ovsienko.info>
To:        freebsd-arm@freebsd.org
Subject:   Re: Raspberry Pi 3B+ and pitiful network speeds
Message-ID:  <20210622133729.47b26900@basepc>
In-Reply-To: <ae290aa3-b28c-a48d-8d1e-61d253a150eb@gmail.com>
References:  <fcd91ac5-c807-3409-d1b6-a41ba6fdc362@gmail.com> <20210620144513.1f91a68f@basepc> <169baf0b-3f3c-f1dc-4a6f-b8a0ef863f51@denninger.net> <20210620154105.0c83bbcc@basepc> <20210620222922.51da1818@basepc> <3fa3f2a6-8560-f413-b2eb-5c172ce025eb@gmail.com> <6B4F2FB6-ABA1-4CFA-BE2A-6A466C30FF02@yahoo.com> <fa37f5ef-09e1-f5a2-90c0-102f3af7aa92@gmail.com> <20210621111301.75fa1c7a@basepc> <ae290aa3-b28c-a48d-8d1e-61d253a150eb@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 22 Jun 2021 08:24:02 +1000
MJ <mafsys1234@gmail.com> wrote:

> [=C2=A0 1] 0.00-30.19 sec=C2=A0=C2=A0 310 MBytes=C2=A0 86.0 Mbits/sec
>=20
> Now, I could run these very same tests off Devuan if you like? This
> may help disprove any network issues? Although, as I've stated, the
> Devuan version running on the RPI3 consistently gets up to 3 times
> this speed.

Thank you for clarifying the test results Matt. From the numbers it
indeed looks like the TCP throughput never reaches even 100Mb/s. Whilst
the root cause of this might be a driver issue, or a consequence of the
"early access" board USB implementation not working well in FreeBSD, it
would help to eliminate trivial explanations as well.

One such thing that comes to my mind is whilst the FreeBSD RPI end is
displaying 1000Mb/s in ifconfig, it might not represent the actual mode
negotiated between the PHYs, and that the actual mode might be
100Base-TX, possibly even half-duplex. So if you could confirm how the
other end of the link (assuming it works correctly) is seeing the
Ethernet connection and its error counters (frame length, CRC,
collisions), that would improve the sense of where the root cause might
be. Also I wonder if limiting the negotiated mode (or nailing it down
at both ends) to 100Base-TX/full would actually make the link perform
at 100Base-TX level (it is not even there right now).

It might look a far cry, but in my experience any hardware and any
software can malfunction, often in unexpected places. Considering the
classic "swap one component at a time and watch if anything changes"
method you are already using, you might want to run another TCP
throughput test using an external USB Ethernet interface. If that
delivers 300Mb/s (or even steady 100Mb/s), that would be interesting.

Also it might help to plug a fast USB storage into this board and to
run a block device read test with dd to confirm that this specific board
is able to push bytes through USB fast enough when it is running
FreeBSD.

I would unlikely do that myself anytime soon because the only RPI3B+ I
use runs NetBSD and is not available for tests. Most importantly, I am
not a FreeBSD developer, but the developers would likely want to receive
as exact problem statement as possible.

Have a nice day.

--=20
    Denis Ovsienko



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210622133729.47b26900>