Raspberry Pi 3B and pitiful network speeds

From: MJ <mafsys1234_at_gmail.com>
Date: Sun, 20 Jun 2021 12:10:34 UTC
I have installed 13 onto a 64GB SD Card (SanDisk extreme Pro).

FreeBSD rpi3 13.0-RELEASE FreeBSD 13.0-RELEASE #0 releng/13.0-n244733-ea31abc261f: Fri Apr  9 06:06:55 UTC 2021 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64

ue0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
         options=80009<RXCSUM,VLAN_MTU,LINKSTATE>
         ether b8:27:eb:14:fc:2c
         inet 192.168.1.24 netmask 0xffffff00 broadcast 192.168.1.255
         media: Ethernet autoselect (1000baseT <full-duplex>)
         status: active
         nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

The problem is the network speed is barely hitting 9 Mb/s. This is either using FTP or Samba.

I have previously been running Devuan/Linux and it consistently gets 18.5 MB/s using FTP or Samba.

Linux rpi3 4.16.14-v8+ #1 SMP PREEMPT Tue Jun 5 18:50:10 CEST 2018 aarch64 GNU/Linux

Now, I managed to get an increase of about 1 megabyte when setting hw.usb.xhci.use_polling to 1, but I'm unconvinced this wasn't just a stroke of good fortune.

Is there anything I can do to increase its performance or is this just FreeBSD's USB stack being slow?

Thanks

Matt.