Internet Really Slow Using RealTek Network CARD (RTL8111/8168/8411) Using Kernel Module R8169

This is my first time to Ask a question for myself, so be kind to me :crossed_fingers: , I’m really desperate, My internet doesn’t work as expected with this chips:

This is my box:

OS: Fedora release 34 (Thirty Four) x86_64
Host: GA-MA790X-UD4
Kernel: 5.12.9-300.fc34.x86_64
Shell: zsh 5.8
DE: GNOME 40.2
WM: Mutter
CPU: AMD Phenom 8750 Triple- (3) @ 2.400GHz
GPU: NVIDIA GeForce 9800 GT
Memory: 3165MiB / 7949MiB

lspci -vt

-[0000:00]-+-00.0  Advanced Micro Devices, Inc. [AMD/ATI] RD780 Host Bridge                                               [295/360]
           +-02.0-[01]----00.0  NVIDIA Corporation G92 [GeForce 9800 GT]                                                           
           +-09.0-[02]----00.0  Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller          
           +-0a.0-[03]----00.0  Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller          
           +-11.0  Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [IDE mode]                             
           +-12.0  Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller                                   
           +-12.1  Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller                                               
           +-12.2  Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller                                    
           +-13.0  Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller                                   
           +-13.1  Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller                                               
           +-13.2  Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller                                    
           +-14.0  Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller                                                   
           +-14.1  Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 IDE Controller                                         
           +-14.2  Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA)                                                 
           +-14.3  Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller
           +-14.4-[04]----06.0  Realtek Semiconductor Co., Ltd. RTL8169 PCI Gigabit Ethernet Controller
           +-14.5  Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
           +-18.0  Advanced Micro Devices, Inc. [AMD] Family 10h Processor HyperTransport Configuration
           +-18.1  Advanced Micro Devices, Inc. [AMD] Family 10h Processor Address Map
           +-18.2  Advanced Micro Devices, Inc. [AMD] Family 10h Processor DRAM Controller
           +-18.3  Advanced Micro Devices, Inc. [AMD] Family 10h Processor Miscellaneous Control
           \-18.4  Advanced Micro Devices, Inc. [AMD] Family 10h Processor Link Control
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
        Subsystem: TP-LINK Technologies Co., Ltd. TG-3468 Gigabit PCI Express Network Adapter
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 4 bytes
        Interrupt: pin A routed to IRQ 17
        NUMA node: 0
        Region 0: I/O ports at de00 [size=256]
        Region 2: Memory at fdaff000 (64-bit, non-prefetchable) [size=4K]
        Region 4: Memory at fdffc000 (64-bit, prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel driver in use: r8169
        Kernel modules: r8169

03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 02)
        Subsystem: Gigabyte Technology Co., Ltd Onboard Ethernet
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 4 bytes
        Interrupt: pin A routed to IRQ 18
        NUMA node: 0
        Region 0: I/O ports at ce00 [size=256]
        Region 2: Memory at fddff000 (64-bit, prefetchable) [size=4K]
        Region 4: Memory at fdde0000 (64-bit, prefetchable) [size=64K]
        Expansion ROM at fde00000 [virtual] [disabled] [size=64K]
        Capabilities: <access denied>
        Kernel driver in use: r8169
        Kernel modules: r8169

04:06.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8169 PCI Gigabit Ethernet Controller (rev 10)
        Subsystem: Realtek Semiconductor Co., Ltd. RTL8169/8110 Family PCI Gigabit Ethernet NIC
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 64 (8000ns min, 16000ns max), Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 20
        NUMA node: 0
        Region 0: I/O ports at be00 [size=256]
        Region 1: Memory at fdcff000 (32-bit, non-prefetchable) [size=256]
        Expansion ROM at fdb00000 [virtual] [disabled] [size=128K]
        Capabilities: <access denied>
        Kernel driver in use: r8169
        Kernel modules: r8169

Layer 1: The physical layer

ip link show enp3s0

3: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 00:24:1d:13:b6:95 brd ff:ff:ff:ff:ff:ff

ip -br link sh

enp3s0           UP             00:24:1d:13:b6:95 <BROADCAST,MULTICAST,UP,LOWER_UP> 

ip -s link show enp3s0

3: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 00:24:1d:13:b6:95 brd ff:ff:ff:ff:ff:ff
    RX: bytes  packets  errors  dropped missed  mcast   
    1421003914 999785   0       0       0       34      
    TX: bytes  packets  errors  dropped carrier collsns 
    10714927   124242   0       0       0       0       

ethtool enp3s0

Settings for enp3s0:
	Supported ports: [ TP	 MII ]
	Supported link modes:   10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/Full
	                        1000baseT/Half 1000baseT/Full
	Supported pause frame use: Symmetric Receive-only
	Supports auto-negotiation: Yes
	Supported FEC modes: Not reported
	Advertised link modes:  10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/Full
	                        1000baseT/Half 1000baseT/Full
	Advertised pause frame use: Symmetric Receive-only
	Advertised auto-negotiation: Yes
	Advertised FEC modes: Not reported
	Link partner advertised link modes:  10baseT/Half 10baseT/Full
	                                     100baseT/Half 100baseT/Full
	                                     1000baseT/Half 1000baseT/Full
	Link partner advertised pause frame use: Symmetric Receive-only
	Link partner advertised auto-negotiation: Yes
	Link partner advertised FEC modes: Not reported
	Speed: 1000Mb/s
	Duplex: Full
	Auto-negotiation: on
	master-slave cfg: preferred slave
	master-slave status: slave
	Port: Twisted Pair
	PHYAD: 0
	Transceiver: external
	MDI-X: Unknown
	Supports Wake-on: pumbg
	Wake-on: d
	Link detected: yes

Layer 2: The data link layer

ip neighbor show

192.168.0.1 dev enp3s0 lladdr 58:2a:f7:a4:8f:7c REACHABLE

Layer 3: The network/internet layer

ip -br address show

enp3s0           UP             192.168.0.157/24 

ping -c 3 www.google.com

ping: socket: Address family not supported by protocol
PING www.google.com (216.58.209.68) 56(84) bytes of data.
64 bytes from mad07s22-in-f4.1e100.net (216.58.209.68): icmp_seq=1 ttl=118 time=9.28 ms
64 bytes from mad07s22-in-f4.1e100.net (216.58.209.68): icmp_seq=2 ttl=118 time=9.50 ms
64 bytes from waw02s06-in-f4.1e100.net (216.58.209.68): icmp_seq=3 ttl=118 time=9.51 ms

--- www.google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2005ms
rtt min/avg/max/mdev = 9.282/9.429/9.505/0.103 ms

ip route show

default via 192.168.0.1 dev enp3s0 proto dhcp metric 100 
192.168.0.0/24 dev enp3s0 proto kernel scope link src 192.168.0.157 metric 100 

resolvectl

Global                                                                                                                              
       Protocols: LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: stub

Link 3 (enp3s0)
    Current Scopes: DNS LLMNR/IPv4
         Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 208.67.222.222
       DNS Servers: 208.67.222.222 208.67.220.220 8.8.8.8 8.8.4.4
        DNS Domain: station

Log:

dmesg | grep enp3s0

[    3.435595] r8169 0000:03:00.0 enp3s0: renamed from eth1
[   79.348151] r8169 0000:03:00.0 enp3s0: Link is Down
[   82.082548] r8169 0000:03:00.0 enp3s0: Link is Up - 1Gbps/Full - flow control rx/tx

sudo lshw -c network

  *-network                                                                                                                                                                               
       description: Ethernet interface                                                                                                                                                    
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller                                                                                                                 
       vendor: Realtek Semiconductor Co., Ltd.                                                                                                                                            
       physical id: 0                                                                                                                                                                     
       bus info: pci@0000:03:00.0                                                                                                                                                         
       logical name: enp3s0                                                                                                                                                               
       version: 02                                                                                                                                                                        
       serial: 00:24:1d:13:b6:95                                                             
       size: 1Gbit/s                          
       capacity: 1Gbit/s                      
       width: 64 bits                         
       clock: 33MHz                           
       capabilities: pm msi pciexpress msix vpd bus_master cap_list rom ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation                             
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.12.9-300.fc34.x86_64 duplex=full ip=192.168.0.157 latency=0 link=yes multicast=yes port=twisted pair s
peed=1Gbit/s                                  
       resources: irq:18 ioport:ce00(size=256) memory:fddff000-fddfffff memory:fdde0000-fddeffff memory:fde00000-fde0ffff   

cat /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

wharever port I use I’ve got the same result poor internet speed, also I’ve bought some other NIC with the same result.

I’ve got a decent server provider speed.

Tought?

NOTE

I’m connecting via OnBoard One → lspci port <03:00.0>

Regards.,

1 Like

I’ve got it, seems R8169 kernel has some bug’s and doesn’t works well:

https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software

Or

Just type:

sudo ./autorun.sh

Then blacklist r8169 to prevent conflict.

  *-network                                                                                                    [15/35]
       description: Ethernet interface                                                                                
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller                                             
       vendor: Realtek Semiconductor Co., Ltd.                                                                        
       physical id: 0                                                                                                 
       bus info: pci@0000:03:00.0                                                                                     
       logical name: enp3s0                                                                                           
       version: 02
       serial: 00:24:1d:13:b6:95
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-
fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8168 driverversion=8.048.03-NAPI duplex=full ip=192.168
.0.157 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
       resources: irq:18 ioport:ce00(size=256) memory:fddff000-fddfffff memory:fdde0000-fddeffff memory:fde00000-fde0f
fff

ping -c 3 www.google.com

PING www.google.com (172.217.168.164) 56(84) bytes of data.
64 bytes from mad07s10-in-f4.1e100.net (172.217.168.164): icmp_seq=1 ttl=119 time=11.6 ms
64 bytes from mad07s10-in-f4.1e100.net (172.217.168.164): icmp_seq=2 ttl=119 time=11.7 ms
64 bytes from mad07s10-in-f4.1e100.net (172.217.168.164): icmp_seq=3 ttl=119 time=11.7 ms

BUG Reported

https://bugzilla.redhat.com/show_bug.cgi?id=1976488

NOTE

28/06/2021 seems good today.

Regards., HTH

4 Likes

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