Ubuntu 21.04 Hirsute Hippo - r8125 Hardkernel drivers no longer required

Post Reply
Aerowinder
Posts: 2
Joined: Sat Apr 24, 2021 10:38 pm
languages_spoken: english
ODROIDs: 2x H2+
Has thanked: 0
Been thanked: 2 times
Contact:

Ubuntu 21.04 Hirsute Hippo - r8125 Hardkernel drivers no longer required

Post by Aerowinder »

Greetings,

With the release of Ubuntu 21.04 Hirsute Hippo, you can remove your Hardkernel PPA and the Realtek drivers you installed from it. I didn't see this information anywhere else, so figured I'd drop it here. It looks like the r8125 drivers have been included since Linux kernel 5.9 (20.10 used 5.8, 21.04 uses 5.11). The 21.04 update went smoothly, no issues. I did need to use the dev switch for do-release-upgrade (do-release-upgrade -d), because Canonical disabled the release upgrade until they can fix a problem with their shim package. It was causing EFI 1.10 systems to fail to boot after upgrade. These systems are ancient and the H2+ is not effected, safe to use -d switch to force update.


You probably have the Realtek driver from the Hardkernel PPA installed. Here is how you remove it gracefully:

sudo add-apt-repository --remove ppa:hardkernel/ppa
sudo rm /etc/apt/sources.list.d/hardkernel*
sudo dkms remove realtek-r8125/9.005.01 --all
sudo apt remove realtek-r8125-dkms
(if you're not using dkms for anything else, you can remove that package as well)
sudo reboot

Other than the reboot, you will not lose connectivity to the system. No changes needed to be made on my end. When the system rebooted, connectivity was restored as expected.
These users thanked the author Aerowinder for the post (total 2):
odroid (Mon Apr 26, 2021 9:58 am) • TurdFurguson (Tue Apr 27, 2021 2:42 am)

User avatar
odroid
Site Admin
Posts: 37371
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1785 times
Been thanked: 1138 times
Contact:

Re: Ubuntu 21.04 Hirsute Hippo - r8125 Hardkernel drivers no longer required

Post by odroid »

Thank you for sharing good news.
We are comparing actual network performance of the Kernel 5.11 RTL8125B driver with the Realtek's 9.005.01 driver.
We will share the test result within a couple of days.
These users thanked the author odroid for the post (total 2):
TurdFurguson (Tue Apr 27, 2021 2:42 am) • domih (Wed Apr 28, 2021 5:33 am)

joshua.yang
Posts: 506
Joined: Fri Sep 22, 2017 5:54 pm
languages_spoken: Korean, English
ODROIDs: XU4, XU4Q + Cloudshell2, H2, N2
Has thanked: 36 times
Been thanked: 148 times
Contact:

Re: Ubuntu 21.04 Hirsute Hippo - r8125 Hardkernel drivers no longer required

Post by joshua.yang »

Hi.

You're right, the built-in driver works out of the box without having any additional drivers/settings.

Actually, we have tested the built-in drivers in the 5.9 and 5.10 kernel before and can know that they're working fine. But their performance is not that good.
Again, I have done its performance test in 2.5 Gbits and 1 Gbits mode with 5.11.0-16 driver that Ubuntu 21.04 has by default.

TL;DR,
Still bad. :( I highly recommend installing the Realtek driver by yourself.
Here's the link: https://github.com/awesometic/realtek-r ... 9.003.05-1
How to disable ASPM by @domih: viewtopic.php?p=320336#p320336

The results,
I have used iperf3 tool to perform a test.
I prepared two H2+ and installed Ubuntu 21.04 on one side and the other side has Ubuntu 20.04 with 9.003.05 driver, which driver is that reports the best performance in any cases at this moment.

See these performance reports.
- one 1GbE connection: 940 Mbits/sec in upload, 935 Mbits/sec in download but very occasionally it dropped to 900 Mbits/sec in a very short time.
- one 2.5 GbE connection: 2.15 Gbits/sec in upload, 2.35 Gbits/sec in download.
- four 2.5 GbE connections simultaneously: 1.8~2.25 Gbits/sec in upload, 2.35 Gbits/sec in download, they are in all ports but it consumes too many CPU resources.

So,
- one 1 GbE: Good.
- one 2.5 GbE: Usable but not good.
- four 2.5 GbEs: Bad.

Consequently, I think it is still better to install the realtek-r8125-dkms driver for the best performance.
Especially, 9.003.05 with ASPM disabled. :)

BTW, apt purge realtek-r8125-dkms performs removing the current DKMS settings and the driver automatically as I remember.
These users thanked the author joshua.yang for the post:
domih (Wed Apr 28, 2021 5:33 am)

caramb
Posts: 27
Joined: Sun Oct 18, 2020 8:32 pm
languages_spoken: english french
ODROIDs: Odroid-H2+
Has thanked: 1 time
Been thanked: 5 times
Contact:

Re: Ubuntu 21.04 Hirsute Hippo - r8125 Hardkernel drivers no longer required

Post by caramb »

Hi Joshua,

As I'm currently "maintaining" a patched r8169 driver with r8125B support for Promox kernel 5.4 (see viewtopic.php?f=168&t=40598), I'm sharing with you some figures as they are not really consistent with yours.
8125B support is backported to 5.4 from a 5.9 patch (https://git.kernel.org/pub/scm/linux/ke ... 6d140ce2ef)
My setup : 2 H2+ and 1 HP MicroServer G8 with a dual R8125B PCIe adapter (x1 lane PCIe is a bottleneck here).
Back-to-back (switchless) network connections (2.5Gb/s FD & flow control on)
PCIe ASPM disabled on both H2+ & jumbo frame on (9000).

Promox is a debian/ubuntu based hypervisor software.
Recently, they released an official 5.11 kernel based on Ubuntu Hirsute.

Single 2.5Gb/s link test :
iperf3 between (H2+ with kernel 5.4.106-1-pve + my patched drivers) and (H2+ with kernel 5.4.106-1-pve + my patched drivers) gives a solid 2.47Gb/s throughput both ways.
iperf3 between (H2+ with kernel 5.11.7-1-pve with builtin support for 8125B) and (H2+ with kernel 5.4.106-1-pve + my patched drivers) also gives me a solid 2.47Gb/s throughput both ways.
This is more or less what we should get using the latest DKMS driver.

I don't have any NetCard so cannot tell for 4 links.

So just wanted to point out that don't face the performance drop using a 5.11 kernel (except for very specific things like ZFS, the Proxmox kernel is not supposed to be a heavily modified kernel).
Not sure what to conclude...

Edit : Additional testings show that kernel 5.11 features an extra 10% CPU overhead compared to kernel 5.4 + custom driver.
These users thanked the author caramb for the post:
joshua.yang (Mon May 03, 2021 12:51 pm)

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 1 guest