Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

r8169 and slow network speed

Linux Kernel, Network, and Services configuration.
Message
Author
User avatar
Ichino
Posts: 15
Joined: 2019-09-10 08:42
Location: Freising

r8169 and slow network speed

#1 Post by Ichino »

Hi community,
I have a problem with network configuration in Debian 10 stable.
In Debian, the download speed is around 1.5 mb/s, other OS gives around 40/50 mb/s
Upload speed is totally fine.

Code: Select all

$ lspci |grep -i ethernet
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

Code: Select all

    $ sudo ethtool -i enp1s0
    [sudo] password for ju:
    driver: r8169
version: 
firmware-version: rtl8168h-2_0.0.2 02/26/15
expansion-rom-version: 
bus-info: 0000:01:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no

Code: Select all

$ sudo ethtool  enp1s0
    Settings for enp1s0:
	Supported ports: [ TP AUI BNC MII FIBRE ]
	Supported link modes:   10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	                        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/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/Full 
	Link partner advertised pause frame use: Symmetric
	Link partner advertised auto-negotiation: Yes
	Link partner advertised FEC modes: Not reported
	Speed: 1000Mb/s
	Duplex: Full
	Port: MII
	PHYAD: 0
	Transceiver: internal
	Auto-negotiation: on
	Supports Wake-on: pumbg
	Wake-on: d
	Current message level: 0x00000033 (51)
			       drv probe ifdown ifup
	Link detected: yes
I tried switching the driver (r8169 -> r8168) without improvement.

Code: Select all

$ ip -s link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
        RX: bytes  packets  errors  dropped overrun mcast   
        13422179   105621   0       0       0       0       
        TX: bytes  packets  errors  dropped carrier collsns
        13422179   105621   0       0       0       0       
    2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
        link/ether 54:bf:64:87:a7:23 brd ff:ff:ff:ff:ff:ff
        RX: bytes  packets  errors  dropped overrun mcast   
        618841842  623332   0       0       0       8243   
        TX: bytes  packets  errors  dropped carrier collsns
        1033279718 1624347  0       0       0       0 
There is no write speed issue when I copy/paste a file locally, and no difference between protocols

Any advice where to look at?

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: r8169 and slow network speed

#2 Post by L_V »

+ for investigation:

Code: Select all

sudo modinfo r8169 | grep ^fi

ls /lib/firmware/rtl_nic/

apt policy firmware-realtek

User avatar
Ichino
Posts: 15
Joined: 2019-09-10 08:42
Location: Freising

Re: r8169 and slow network speed

#3 Post by Ichino »

Here it is

Code: Select all

sudo modinfo r8169 | grep ^fi
filename:       /lib/modules/4.19.0-6-amd64/kernel/drivers/net/ethernet/realtek/r8169.ko
firmware:       rtl_nic/rtl8107e-2.fw
firmware:       rtl_nic/rtl8107e-1.fw
firmware:       rtl_nic/rtl8168h-2.fw
firmware:       rtl_nic/rtl8168h-1.fw
firmware:       rtl_nic/rtl8168g-3.fw
firmware:       rtl_nic/rtl8168g-2.fw
firmware:       rtl_nic/rtl8106e-2.fw
firmware:       rtl_nic/rtl8106e-1.fw
firmware:       rtl_nic/rtl8411-2.fw
firmware:       rtl_nic/rtl8411-1.fw
firmware:       rtl_nic/rtl8402-1.fw
firmware:       rtl_nic/rtl8168f-2.fw
firmware:       rtl_nic/rtl8168f-1.fw
firmware:       rtl_nic/rtl8105e-1.fw
firmware:       rtl_nic/rtl8168e-3.fw
firmware:       rtl_nic/rtl8168e-2.fw
firmware:       rtl_nic/rtl8168e-1.fw
firmware:       rtl_nic/rtl8168d-2.fw
firmware:       rtl_nic/rtl8168d-1.fw

Code: Select all

ls /lib/firmware/rtl_nic/
rtl8105e-1.fw  rtl8107e-1.fw  rtl8168d-2.fw  rtl8168e-3.fw  rtl8168g-1.fw  rtl8168h-1.fw  rtl8411-1.fw
rtl8106e-1.fw  rtl8107e-2.fw  rtl8168e-1.fw  rtl8168f-1.fw  rtl8168g-2.fw  rtl8168h-2.fw  rtl8411-2.fw
rtl8106e-2.fw  rtl8168d-1.fw  rtl8168e-2.fw  rtl8168f-2.fw  rtl8168g-3.fw  rtl8402-1.fw

Code: Select all

apt policy firmware-realtek
firmware-realtek:
  Installed: 20190114-2
  Candidate: 20190114-2
  Version table:
 *** 20190114-2 500
        500 http://debian.mirror.lrz.de/debian buster/non-free amd64 Packages
        100 /var/lib/dpkg/status

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: r8169 and slow network speed

#4 Post by L_V »

I don't have any problem with this one:

Code: Select all

lspci -k | egrep -iA2 ethernet
> Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
> Subsystem: Micro-Star International Co., Ltd. [MSI] RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
> Kernel driver in use: r8169
> Kernel modules: r8169

The difference is you have a controller "(rev 15)".

How do you estimate download speed ?
+

Code: Select all

lsmod |grep 81
dpkg -l r8168-dkms

User avatar
Ichino
Posts: 15
Joined: 2019-09-10 08:42
Location: Freising

Re: r8169 and slow network speed

#5 Post by Ichino »

Thanks to follow this L_V!
I do have problem with this one, yes

Code: Select all

lspci -k | egrep -iA2 ethernet
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
	Subsystem: Dell RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
	Kernel driver in use: r8169
	Kernel modules: r8169
Download speed is indicated in Firefox when I download. and it actually takes really longer to download using Debian, than other OS (Tested with Manjaro (dual-boot), but at first when W10 was installed, it gives same good download speed)
a 5-minute download turns into a "more than 2-hour" download when using Debian. The network is fast here (University network in Munich)
DOWNLOAD:67.35MB
UPLOAD:895.39MB
LATENCY:15MS

Code: Select all

lsmod |grep 81
r8169                  90112  0
libphy                 77824  3 r8169,realtek

Code: Select all

dpkg -l r8168-dkms
dpkg-query: no packages found matching r8168-dkms

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: r8169 and slow network speed

#6 Post by L_V »

Did you compare your DL speed with a wget ?

Code: Select all

wget <isofile>
If IPV6 enabled ? Did you compare with IPV4 only ?

User avatar
Ichino
Posts: 15
Joined: 2019-09-10 08:42
Location: Freising

Re: r8169 and slow network speed

#7 Post by Ichino »

Sorry for slow answer. Problem is on my office computer so no progress during weekends...
L_V wrote:Did you compare your DL speed with a wget ?
Just tested. Debian gives download speed between 1 and 3 MB/s.
To compare with, if I boot Manjaro I get a DL speed betwwen 30 and 50 MB/s for the same server (I asked for some tips in their forum, but they are not willing to help that much to fix Debian...)

Disabling IPV6 doesn't help, even after reboot.

Same issue when I booted into a Live-Ubuntu session, just for information.

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: r8169 and slow network speed

#8 Post by kedaha »

I had a very slow connection recently so I configured my router to use google public-dns for the time being which seems to have brought network speed back to normal.
I have the same hardware:

Code: Select all

$ lspci |grep -i ethernet
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
[/size]
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

User avatar
Ichino
Posts: 15
Joined: 2019-09-10 08:42
Location: Freising

Re: r8169 and slow network speed

#9 Post by Ichino »

kedaha wrote:I configured my router to use google public-dns
As I am connected to the University network, I do not have full freedom for DNS configuration, unfortunately.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: r8169 and slow network speed

#10 Post by Head_on_a_Stick »

MTU, perhaps?

Code: Select all

ip link
Change it with:

Code: Select all

# ip link set dev enp1s0 mtu 1492
Does that help?

Or maybe https://wiki.archlinux.org/index.php/Et ... ng_problem
deadbang

User avatar
Ichino
Posts: 15
Joined: 2019-09-10 08:42
Location: Freising

Re: r8169 and slow network speed

#11 Post by Ichino »

Hi,
I checked MTU as well. Not my problem.
And for TCP window scaling, I tried to change stuff after reading your suggestion but I am still facing the same limit for download speed.
I think I should push the lazy guys working @ IT support. I hope to find people running debian-based distro on this machine, as it is bought dozens by dozens by the University.

v&n
Posts: 624
Joined: 2015-02-04 02:57

Re: r8169 and slow network speed

#12 Post by v&n »

Ichino wrote:
kedaha wrote:I configured my router to use google public-dns
As I am connected to the University network, I do not have full freedom for DNS configuration, unfortunately.
DNS can be, and usually is configured locally in the OS itself (see this good post by HoaS - http://forums.debian.net/viewtopic.php?p=708268#p708268).

Although I can't understand how it can help download speeds, as once you 'reach' a site, the role of DNS is over. But oddly enough, some users sometimes have reported it to have made a difference.

Also -
Ichino wrote:I tried switching the driver (r8169 -> r8168) without improvement.
How? Using the dkms package from the repositories or using some external source?

Have you compared the same command outputs from Manjaro for any significant difference or hints? Maybe post them here if not sure?

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: r8169 and slow network speed

#13 Post by L_V »

v&n wrote:Although I can't understand how it can help download speeds
This was for investigation to be sure we compare apple to apple when saying "it works well with OS A", and "bad with OS B".
Is the router behaving the same in IPV6/IPV4 ?
Is IPV4 IPV6 addresses pointing to the same sites ? If not, it could explain some difference.

Of course I didn't really believe it can be a root cause, and ichino confirms, but as long as nobody can explain the differences, all clever ideas are welcomed.

User avatar
Ichino
Posts: 15
Joined: 2019-09-10 08:42
Location: Freising

Re: r8169 and slow network speed

#14 Post by Ichino »

DNS can be, and usually is configured locally in the OS itself
I meant 'I am not supposed to play with these settings on my work computer'. By the way, I tried Google DNS server (don't tell them!) and it didn't help.
How? Using the dkms package from the repositories or using some external source?
Using r8168-dkms, yes. Later, I tried to build one from other sources. Tried a lot of stuff in a ugly way and finish by restoring the system (using Timeshift)
Have you compared the same command outputs from Manjaro for any significant difference or hints? Maybe post them here if not sure?
I compared some yes, that is what suggested me to swithch to r8168-dkms. Ok, I will prepare this asap to post here.
This was for investigation to be sure we compare apple to apple when saying "it works well with OS A", and "bad with OS B".
Is the router behaving the same in IPV6/IPV4 ?
Is IPV4 IPV6 addresses pointing to the same sites ? If not, it could explain some difference
Again, I will collect more info to compare the two configurations.

Thanks to you all!

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: r8169 and slow network speed

#15 Post by L_V »

Ichino wrote:Tried a lot of stuff in a ugly way and finish by restoring the system
Could you also try with a live.iso to compare ?
http://cdimage.debian.org/images/unoffi ... so-hybrid/

User avatar
Ichino
Posts: 15
Joined: 2019-09-10 08:42
Location: Freising

Re: r8169 and slow network speed

#16 Post by Ichino »

I willl, yes. I won't be able to do that in the coming hours, but asap...
I did with a -buntu Live iso that gave the same low download speed

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: r8169 and slow network speed

#17 Post by L_V »

Ichino wrote:I did with a -buntu Live iso that gave the same low download speed
Ha... Then not a specific Debian issue.
You should also mention which kernel is used for your tests (manjaro etc....).
With which kernel did you get your "good" results ?

Code: Select all

uname -r
info >> linux-image-5.2.0-0.bpo.2-amd64 is available in buster-backports

User avatar
Ichino
Posts: 15
Joined: 2019-09-10 08:42
Location: Freising

Re: r8169 and slow network speed

#18 Post by Ichino »

I tried the Debian Live iso: same results
The good thing is that when downloading the iso, I realized the speed was quite good: 15-20 MB/s, so I started looking at the download speed for different big file using the different OSs
here are some data for Debian/Manjaro
Arch Iso: The requested URL was not found on this server/6-7 MB/s
Debian iso: 2.2/4-5 MB/s
Ubuntu: 1/100 MB/s (A open SUSE Live session gives about 100 MB/s as well)
Big files (https://www.thinkbroadband.com/download): 1.2/65 MB/s
Debian Live iso: 15-20/70 MB/s
Open SUSE: 3.4/100-110 MB/s

Then, and this is actually the crucial point for me, I compare copy/paste files from a network drive to my local drive. I mount the drive with the command

Code: Select all

sudo mount -t cifs //path/to/network/drive /mnt/my/local/drive -o username=guesswho,pass="guesswhat",dir_mode=0777,file_mode=0777
In Manjaro, a 2.6 GB file is transferred in 39 seconds, in Debian I get 614 MB of it after 10 minutes
For a 12.8 MB file, it takes about 10 seconds in Debian while it is even too fast in Manjaro that I can't check the time needed

My Debian install runs on kernel

Code: Select all

4.19.0-6-amd64
My Manjaro install runs on

Code: Select all

4.19.69-1-MANJARO
Here are output from various command related to this network thing. First for Debian and the other for Manjaro. Sorry for such huge console outputs, I can't upload attachments.

Debian

Code: Select all

$ lspci |grep -i ethernet
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

$ ethtool -i enp1s0
driver: r8169
version: 
firmware-version: rtl8168h-2_0.0.2 02/26/15
expansion-rom-version: 
bus-info: 0000:01:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no

$ ethtool enp1s0
Settings for enp1s0:
	Supported ports: [ TP AUI BNC MII FIBRE ]
	Supported link modes:   10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	                        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/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/Full 
	Link partner advertised pause frame use: Symmetric
	Link partner advertised auto-negotiation: Yes
	Link partner advertised FEC modes: Not reported
	Speed: 1000Mb/s
	Duplex: Full
	Port: MII
	PHYAD: 0
	Transceiver: internal
	Auto-negotiation: on
	Supports Wake-on: pumbg
	Wake-on: d
	Current message level: 0x00000033 (51)
			       drv probe ifdown ifup
	Link detected: yes

$ ip -s link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    RX: bytes  packets  errors  dropped overrun mcast   
    1716       23       0       0       0       0       
    TX: bytes  packets  errors  dropped carrier collsns 
    1716       23       0       0       0       0       
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether 54:bf:64:87:a7:23 brd ff:ff:ff:ff:ff:ff
    RX: bytes  packets  errors  dropped overrun mcast   
    6204573    5581     0       0       0       39      
    TX: bytes  packets  errors  dropped carrier collsns 
    2280047    3698     0       0       0       0       

$ modinfo r8168 | grep ^fi
filename:       /lib/modules/4.19.0-6-amd64/kernel/drivers/net/ethernet/realtek/r8169.ko
firmware:       rtl_nic/rtl8107e-2.fw
firmware:       rtl_nic/rtl8107e-1.fw
firmware:       rtl_nic/rtl8168h-2.fw
firmware:       rtl_nic/rtl8168h-1.fw
firmware:       rtl_nic/rtl8168g-3.fw
firmware:       rtl_nic/rtl8168g-2.fw
firmware:       rtl_nic/rtl8106e-2.fw
firmware:       rtl_nic/rtl8106e-1.fw
firmware:       rtl_nic/rtl8411-2.fw
firmware:       rtl_nic/rtl8411-1.fw
firmware:       rtl_nic/rtl8402-1.fw
firmware:       rtl_nic/rtl8168f-2.fw
firmware:       rtl_nic/rtl8168f-1.fw
firmware:       rtl_nic/rtl8105e-1.fw
firmware:       rtl_nic/rtl8168e-3.fw
firmware:       rtl_nic/rtl8168e-2.fw
firmware:       rtl_nic/rtl8168e-1.fw
firmware:       rtl_nic/rtl8168d-2.fw
firmware:       rtl_nic/rtl8168d-1.fw

$ modinfo r8169 | grep ^fi
modinfo: ERROR: Module r8168 not found.

$ ls /lib/firmware/rtl_nic/
rtl8105e-1.fw  rtl8168d-1.fw  rtl8168f-1.fw  rtl8168h-1.fw  rtl8106e-1.fw  rtl8168d-2.fw  rtl8168f-2.fw  rtl8168h-2.fw  rtl8106e-2.fw  rtl8168e-1.fw
rtl8168g-1.fw  rtl8402-1.fw   rtl8107e-1.fw  rtl8168e-2.fw  rtl8168g-2.fw  rtl8411-1.fw   rtl8107e-2.fw  rtl8168e-3.fw  rtl8168g-3.fw  rtl8411-2.fw

$ apt policy firmware-realtek
firmware-realtek:
  Installed: 20190114-2
  Candidate: 20190114-2
  Version table:
 *** 20190114-2 500
        500 http://debian.mirror.lrz.de/debian buster/non-free amd64 Packages
        100 /var/lib/dpkg/status

$ lsmod |grep 81
r8169                  90112  0
libphy                 77824  3 r8169,realtek
Manjaro

Code: Select all

$ lspci |grep -i ethernet
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

$ ethtool -i enp1s0
driver: r8168
version: 8.047.02-NAPI
firmware-version: 
expansion-rom-version: 
bus-info: 0000:01:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no

$ ethtool enp1s0
Settings for enp1s0:
	Supported ports: [ TP ]
	Supported link modes:   10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	                        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/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/Full 
	Link partner advertised pause frame use: Symmetric
	Link partner advertised auto-negotiation: Yes
	Link partner advertised FEC modes: Not reported
	Speed: 1000Mb/s
	Duplex: Full
	Port: Twisted Pair
	PHYAD: 0
	Transceiver: internal
	Auto-negotiation: on
	MDI-X: Unknown
Cannot get wake-on-lan settings: Operation not permitted
	Current message level: 0x00000033 (51)
			       drv probe ifdown ifup
	Link detected: yes

$ ip -s link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    RX: bytes  packets  errors  dropped overrun mcast   
    0          0        0       0       0       0       
    TX: bytes  packets  errors  dropped carrier collsns 
    0          0        0       0       0       0       
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 54:bf:64:87:a7:23 brd ff:ff:ff:ff:ff:ff
    RX: bytes  packets  errors  dropped overrun mcast   
    237934     307      0       0       0       6       
    TX: bytes  packets  errors  dropped carrier collsns 
    15091      133      0       0       0       0     

$ modinfo r8169 | grep ^fi
filename:       /lib/modules/4.19.69-1-MANJARO/kernel/drivers/net/ethernet/realtek/r8169.ko.xz
firmware:       rtl_nic/rtl8107e-2.fw
firmware:       rtl_nic/rtl8107e-1.fw
firmware:       rtl_nic/rtl8168h-2.fw
firmware:       rtl_nic/rtl8168h-1.fw
firmware:       rtl_nic/rtl8168g-3.fw
firmware:       rtl_nic/rtl8168g-2.fw
firmware:       rtl_nic/rtl8106e-2.fw
firmware:       rtl_nic/rtl8106e-1.fw
firmware:       rtl_nic/rtl8411-2.fw
firmware:       rtl_nic/rtl8411-1.fw
firmware:       rtl_nic/rtl8402-1.fw
firmware:       rtl_nic/rtl8168f-2.fw
firmware:       rtl_nic/rtl8168f-1.fw
firmware:       rtl_nic/rtl8105e-1.fw
firmware:       rtl_nic/rtl8168e-3.fw
firmware:       rtl_nic/rtl8168e-2.fw
firmware:       rtl_nic/rtl8168e-1.fw
firmware:       rtl_nic/rtl8168d-2.fw
firmware:       rtl_nic/rtl8168d-1.fw

$ modinfo r8168 | grep ^fi
filename:       /lib/modules/4.19.69-1-MANJARO/extramodules/r8168.ko.gz

$ ls /lib/firmware/rtl_nic/
rtl8105e-1.fw  rtl8106e-2.fw  rtl8107e-2.fw  rtl8168d-2.fw  rtl8168e-2.fw  rtl8168f-1.fw  rtl8168g-1.fw  rtl8168g-3.fw  rtl8168h-2.fw  rtl8411-1.fw
rtl8106e-1.fw  rtl8107e-1.fw  rtl8168d-1.fw  rtl8168e-1.fw  rtl8168e-3.fw  rtl8168f-2.fw  rtl8168g-2.fw  rtl8168h-1.fw  rtl8402-1.fw   rtl8411-2.fw

$ pacman -Ss r8168
extra/linux316-r8168 8.047.02-2 (linux316-extramodules)
    A kernel module for Realtek 8168 network cards
extra/linux414-r8168 8.047.02-8 (linux414-extramodules)
    A kernel module for Realtek 8168 network cards
extra/linux419-r8168 8.047.02-12 (linux419-extramodules) [installed]
    A kernel module for Realtek 8168 network cards
extra/linux44-r8168 8.047.02-5 (linux44-extramodules)
    A kernel module for Realtek 8168 network cards
extra/linux49-r8168 8.047.02-5 (linux49-extramodules)
    A kernel module for Realtek 8168 network cards
extra/linux51-r8168 8.047.02-5 (linux51-extramodules)
    A kernel module for Realtek 8168 network cards
extra/linux52-r8168 8.047.02-15 (linux52-extramodules)
    A kernel module for Realtek 8168 network cards
extra/linux53-r8168 8.047.02-0.8 (linux53-extramodules)
    A kernel module for Realtek 8168 network cards
community/linux-latest-r8168 5.2-4 (linux-latest-extramodules)
    A kernel module for Realtek 8168 network cards (metapackage)
community/linux-lts-r8168 4.19-2 (linux-lts-extramodules)
    A kernel module for Realtek 8168 network cards (metapackage)
community/linux-rt-lts-manjaro-r8168 4.19-2 (linux-rt-lts-manjaro-extramodules)
    A kernel module for Realtek 8168 network cards
community/linux-rt-manjaro-r8168 5.2-1 (linux-rt-manjaro-extramodules)
    A kernel module for Realtek 8168 network cards
community/linux419-rt-r8168 8.047.02-2 (linux419-rt-extramodules)
    A kernel module for Realtek 8168 network cards
community/linux52-rt-r8168 8.047.02-2 (linux52-rt-extramodules)
    A kernel module for Realtek 8168 network cards

$ lsmod |grep 81
r8168                 565248  0
I noticed few differences

Code: Select all

$ ethtool enp1s0
Debian
Supported ports: [ TP AUI BNC MII FIBRE ]
Port: MII
Manjaro
Supported ports: [ TP ]
Port: Twisted Pair

Code: Select all

$ ip -s link
Debian
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
Manjaro
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000

Code: Select all

$ modinfo r8169 | grep ^fi
Debian uses r8169 and Manjaro r8168, so different output

Code: Select all

$ ls /lib/firmware/rtl_nic/
Debian Manjaro No difference for rtl8168
rtl8168d-1.fw rtl8168d-1.fw
rtl8168d-2.fw rtl8168d-2.fw
rtl8168e-1.fw rtl8168e-1.fw
rtl8168e-2.fw rtl8168e-2.fw
rtl8168e-3.fw rtl8168e-3.fw
rtl8168f-1.fw rtl8168f-1.fw
rtl8168f-2.fw rtl8168f-2.fw
rtl8168g-1.fw rtl8168g-1.fw
rtl8168g-2.fw rtl8168g-2.fw
rtl8168g-3.fw rtl8168g-3.fw
rtl8168h-1.fw rtl8168h-1.fw
rtl8168h-2.fw rtl8168h-2.fw
L_V wrote:Ha... Then not a specific Debian issue.
Debian-based issue?
L_V wrote:info >> linux-image-5.2.0-0.bpo.2-amd64 is available in buster-backports
Tried. Same thing.
Last edited by Ichino on 2019-10-01 19:45, edited 6 times in total.

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: r8169 and slow network speed

#19 Post by L_V »

Debian => driver: r8169
Manjaro => driver: r8168

When you tried r8168, did you blacklist r8169 ?

https://tracker.debian.org/pkg/r8168

User avatar
Ichino
Posts: 15
Joined: 2019-09-10 08:42
Location: Freising

Re: r8169 and slow network speed

#20 Post by Ichino »

L_V wrote:When you tried r8168, did you blacklist r8169 ?
Is it necessary if it loads as expected?

Code: Select all

$ ethtool -i enp1s0
[sudo] password for ju: 
driver: r8168
version: 8.046.00-NAPI
firmware-version: 
expansion-rom-version: 
bus-info: 0000:01:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no
Not sure how to blacklist it. Is it correct?

Code: Select all

sudo sh -c 'echo blacklist r8169 >> /etc/modprobe.d/blacklist.conf'
And how to revert this?

Post Reply