10x slower ure0 than on Linux

Have ethernet card in Dell display connected to my desktop machine via USB-C. FreeBSD 13.2 detects that as:

Code:
[17] ue0: <USB Ethernet> on ure0
...
ugen0.11: <Realtek USB 10/100/1000 LAN> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (64mA)
...
ue0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=68009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
    ether ...
    inet 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255
    media: Ethernet autoselect (1000baseT <full-duplex>)
    status: active
    nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
...
39    1 0xffffffff83c93000     8500 if_ure.ko

Works fine, enabling via ifconfig_ue0="DHCP" but...

All networking benchmarks are ~10x slower than on Linux. (say, 500 Mbit/s vs. 50 Mbit/s on FreeBSD).

Is there any misconfiguration?
 
Is it using the RTL8153 chipset? sudo lsusb should tell you.

What sort of USB port are you plugging it in to? USB 3.0, 3.1 or 3.2? Gen 1 or Gen 2?

Are you using exactly the same port for FreeBSD and Linux?

I have tested a couple of Gigabit Ethernet Adapters with FreeBSD, and found the RTL8153 chipset to be inferior to the ASIX AX88179, but nowhere near as bad as you indicate above.
 
FreeBSD has unoptimized USB3 support. That's your bottleneck.
Unoptimized USB3 only regarding networking or in general? And really with 10x factor? I wouldn't mind 30% but 10x? Just curious, what kind of optimizations are they?
 
Simply downloaded the very same file from the internet many teams in each system, randomly intertwined. Linux constantly ~8-10x faster.
 
Unoptimized USB3 only regarding networking or in general? And really with 10x factor? I wouldn't mind 30% but 10x? Just curious, what kind of optimizations are they?

Passing packets through an unoptimized stream pipe is going to result in slow transfer speeds. This has to do with the USB3 interface, nothing else. Our network stack is second to none.

The only option would be to submit a bug report outlining your tests; and include the chipset of that USB device.
 
Back
Top