# Realtek r8125 vs r8169 Driver - Performance Issues

**URL:** <https://forums.rockylinux.org/t/realtek-r8125-vs-r8169-driver-performance-issues/16438>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-8\
**Created:** [November 10, 2024, 2:50pm UTC](https://forums.rockylinux.org/t/realtek-r8125-vs-r8169-driver-performance-issues/16438 "2024-11-10T14:50:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DannyIrish](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/dannyirish/32/2466_2.png) [@DannyIrish](https://forums.rockylinux.org/u/DannyIrish)\
**Post date:** [November 10, 2024, 2:50pm UTC](https://forums.rockylinux.org/t/realtek-r8125-vs-r8169-driver-performance-issues/16438/1 "2024-11-10T14:50:39Z")

</div>

Just stumbled onto this old Realtek r8125 issue, and was curious if there was any up to date methods of getting the r8125 driver installed on Rocky? Lots of documentation out there for Debian brands, but not seeing much for us.

Main issue is poor performance when using Rocky Linux on this Realtek 2.5 Gbps NIC. Download speeds are cut nearly in half or worse, compared to other OSes.

**sudo lshw -C network**

```auto
       description: Ethernet interface
       product: RTL8125 2.5GbE Controller
       vendor: Realtek Semiconductor Co., Ltd.
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=4.18.0-553.27.1.el8_10.x86_64 duplex=full firmware=rtl8125b-2_0.0.2 07/13/20 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s

```

Attempted to compile the latest r8125-9.014.01 downloaded from Realtek’s site, but coming up with the familiar “fatal error: linux/pci-aspm.h: No such file or directory” issue. So, before I travel down this path any further, anybody have any updated methods of getting the latest drivers for the RTL8125 NICs?

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [November 11, 2024, 8:27am UTC](https://forums.rockylinux.org/t/realtek-r8125-vs-r8169-driver-performance-issues/16438/3 "2024-11-11T08:27:47Z")

</div>

The baseline is that Rocky has what corresponding RHEL has. Period.

ELRepo [start [ELRepo Wiki]](https://elrepo.org/wiki/doku.php?id=start) maintains many kernel modules that Red Hat has omitted from RHEL, and perhaps some “improved” ones too. They definitely know how to build modules for Enterprise Linux.

---

<div class="post-metadata">

**Author:** ![toracat](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/toracat/32/68_2.png) [@toracat](https://forums.rockylinux.org/u/toracat)\
**Post date:** [November 11, 2024, 5:28pm UTC](https://forums.rockylinux.org/t/realtek-r8125-vs-r8169-driver-performance-issues/16438/4 "2024-11-11T17:28:00Z")

</div>

ELRepo has the kmod-r8125 package that provides the r8125 driver.

Run ‘lspci -nn’ to find the device IDs and check it on ELRepo’s [devidID](https://elrepo.org/wiki/doku.php?id=deviceids) page to make sure your hardware is supported.

---

<div class="post-metadata">

**Author:** ![DannyIrish](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/dannyirish/32/2466_2.png) [@DannyIrish](https://forums.rockylinux.org/u/DannyIrish)\
**Post date:** [November 12, 2024, 11:59am UTC](https://forums.rockylinux.org/t/realtek-r8125-vs-r8169-driver-performance-issues/16438/5 "2024-11-12T11:59:19Z")

</div>

OK, so just the normal ELRepo method:

```auto
sudo dnf -y install https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm
sudo dnf -y install kmod-r8125
sudo vim /etc/modprobe.d/blacklists.conf 

```

> # /etc/modprobe.d/blacklists.conf
> 
> blacklist r8169

```auto
sudo vim /etc/default/grub 

```

> GRUB\_CMDLINE\_LINUX=“crashkernel=auto resume=UUID=blahblahblah rd.driver.blacklist=r8169 modprobe.blacklist=r8169”

```auto
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
sudo reboot

```

```auto
sudo lshw -C network

```

> configuration: autonegotiation=on broadcast=yes driver=r8125 driverversion=9.013.02-NAPI-PTP duplex=full latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s

Unfortunately, even with the r8125 driver, my speedtest checks are still worse than expected compared to other devices on the same LAN (Intel cards getting ~900 Mbps, but poor Realtek still stuck below ~400 Mbps). I’ll have to keep tshooting this issue.

Thank you though for the quick replies, and at least the driver update process was smooth. Appreciate the guidance.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [January 11, 2025, 11:59am UTC](https://forums.rockylinux.org/t/realtek-r8125-vs-r8169-driver-performance-issues/16438/6 "2025-01-11T11:59:24Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
