What's up with Realtek r8169? Need help with very strange behavior.

binaryjay

New Member
Aug 25, 2021
3
0
1
44
Host is Proxmox 7.

Doing my part for the environment and my electrical bill, I've been moving a bunch of services from an old 2nd gen i7 I was using as a home server to a low power mini PC using Celeron J4125. Unfortunately, this thing has a garbage Realtek ethernet device which has been behaving really bizarrely.

What I found was upload speed was perfectly fine, but download speed on it was incredibly slow. Tried the usual tricks disabling whatever hardware offload features I could but it made no difference. Even tried other cables out of desperation without change. ethtool reports everything looks fine with a full duplex gigabit link speed. dmesg doesn't show any errors related to the device.

Finally I decided to break out a really long cable and start trying to use different ports I had around, and finally I got much better (but still under what I would have expected) speeds in both directions but ONLY if I have a specific old tplink switch in the middle - if I connect directly to my main netgear switch or ubiquiti switch the problem remains, but if I put an old tplink switch in the middle it's much improved. I suspect some kind of autonegotiation problem but can't see any evidence that the negotiated link speed is wrong either way.

Someone suggested the difference might be energy efficient ethernet support, but I tried disabling EEE on the adapter with ethtool when connected directly to my main switch and when the link was up again my speed test results were the same (~30 Mbit/s download, > 700 Mbit/s upload). As soon as I plugged it back in to the tplink switch which itself is connected to a port on the main switch, the download speed was again within expected parity of upload.

Any suggestions on where to go next with this? Should I just forget that port exists and use an (ugh) USB3 ethernet adapter with a chipset from a different vendor or is there possibly some way to save this device?

lspci:
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
 
Does this happen to be a Mele Quieter2/2Q/3Q?

I have both the 2Q and the 3Q - I bought the latter because its NIC was internally just on the USB bus. I contacted Mele and they said they just change whether its PCI or USB according to suppliers.

While the 3Q does have a PCI NIC, like you I'm seeing the same behaviour:

Code:
[ ID][Role] Interval           Transfer     Bitrate         Retr
[  5][TX-C]   0.00-10.00  sec   379 MBytes   318 Mbits/sec    0             sender
[  5][TX-C]   0.00-10.00  sec   377 MBytes   316 Mbits/sec                  receiver
[  7][RX-C]   0.00-10.00  sec  63.9 MBytes  53.6 Mbits/sec  1496             sender
[  7][RX-C]   0.00-10.00  sec  63.5 MBytes  53.3 Mbits/sec                  receiver

318Mbit up, and only 53Mbit down. No apparent errors. I'm also plugged into a Unify switch.

I wonder if you got any further with this?

Ironically, on the 2Q, the USB NIC is an rtl8153a-4 using the r8152 driver, and it works fine. But that port cannot be passed through to a VM.

The one in the 3Q is an rtl8168h-2_0.0.2 using the r8169 driver.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!