Frank Winkler <
usenet@f.winkler-ka.de> wrote:
Hi there !
I'm using a couple of Pi 3B+, most of then running PiOS but one of them running Fedora 33. On all the PiOS ones, a "wget" download is going up
to roughly 30 MB/s, which fits to my Internet downlink and is near the maximum interface speed of this box. But on the Fedora machine, the
exact same command gets stuck at a fraction of this, even though it's connected to the same switch as one of the PiOS machines.
The Fedora box doesn't have a high load or something else which might be
an obvious reason for this effect. It's acting as a DHCP and DNS server.
Is Fedora's network stack that bad? Maybe I'll try a newer kernel
version (currently 5.11.15 whereas 5.14.18 is available).
I'm not familiar with the problem (or Fedora, or the Pi 3B+!) but
it sounds like yours is connected via the onboard Ethernet
interface, which talks to the CPU as a USB 2.0 device. This makes
the USB driver a likely point of difference between RPi OS and
Fedora, because RPi OS by default uses the dwc-otg USB driver which
is optimised for the Pi, including using the FIQ "Fast" interrupt
which bypasses some of the kernel's usual interrupt handling
process. That driver hadn't been adopted into the official Linux
kernel, so most other Linux distros for the Pi use the dwc2 driver
instead, which is officially part of Linux.
RPi OS can be told to load the dwc2 driver instead of dwc-otg by
adding this line to the config.txt file in the boot/FAT partition: dtoverlay=dwc2
Maybe try that and see if network performance then becomes the same
as with Fedora. In which case I'm not sure if there's an easy way
to get dwc-otg into Fedora - it might require manually swapping
over the kernel and modules from a RPi OS release with a similar
kernel version, which would likely bring up a whole lot of
problems.
Another description of the driver difference which I found when
confirming that I wasn't mis-remembering:
https://revolutionpi.com/forum/viewtopic.php?t=1563#p6083
--
__ __
#_ < |\| |< _#
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)