[Kernel-packages] [Bug 1880076] Re: ubuntu 20.4 - retransmitts with r8169

2023-06-05 Thread Leith Bade
Did some more testing and found some interesting results.

I forgot to mention the reason for extra SSD is so that I could set up a
dual boot with Windows 10 via GRUB. I have discovered it is Windows that
is creating my problem.

If I boot straight into Linux from power off I have no latency issues.
However if I first boot into Windows, then restart into Linux the
latency issue occurs.

It is definitely related to ASPM as the Linux kernel pcie_aspm=off flag
prevents the issue.

I also tested a bunch of settings in the BIOS and the results (NOK means issue 
still occured):
Boot -> Fast Boot -> Disabled - NOK
Advanced -> Platform Misc Configuration -> PCI Express Native Power Management 
-> Disabled - OK
Advanced -> Platform Misc Configuration -> Native ASPM -> Disabled - OK
Advanced -> PCH Configuration -> ASPM Support -> Disabled - OK
Advanced -> PCH Configuration -> ASPM Support -> Auto - NOK
Advanced -> PCH Configuration -> ASPM Support -> L0s - OK
Advanced -> PCH Configuration -> ASPM Support -> L1 - NOK
Advanced -> PCH Configuration -> ASPM Support -> L0sL1 - OK

I don't really understand much about ASPM and how OSes and BIOSes
control it, but it seems with ASPM support set to auto or L1, then
somehow after the system reboots from Windows some sort of state is left
set which causes the latency. Possibly related to the L1 state.

Anyway I am going to leave ASPM in BIOS set to L0sL1 so that ASPM is
still used but whatever Windows is doing is reset by the BIOS.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1880076

Title:
  ubuntu 20.4 - retransmitts with r8169

Status in linux package in Ubuntu:
  Expired

Bug description:
  Hi,

  i run some network-tests (iperf3) and noticed massive retransmitts in
  ubuntu 20.4 with kernel 5.4.0-29. I'm using module r8169 for network-
  adapter

  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
  RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

  if i boot my ubuntu 18.4 and did same iperf-test (same hardware, same
  network configuration, other client is not rebooted) i have not these
  retransmitts.

  root@bpi-r2:~# iperf3 -c 192.168.0.21 
  
  Connecting to host 192.168.0.21, port 5201
  
  [  5] local 192.168.0.11 port 35702 connected to 192.168.0.21 port 5201   
  
  [ ID] Interval   Transfer Bitrate Retr  Cwnd  
  
  [  5]   0.00-1.00   sec  14.2 MBytes   119 Mbits/sec  337   14.1 KBytes   
  
  [  5]   1.00-2.00   sec  14.9 MBytes   125 Mbits/sec  331   14.1 KBytes   
  
  [  5]   2.00-3.00   sec  15.1 MBytes   126 Mbits/sec  296   19.8 KBytes   
  
  [  5]   3.00-4.00   sec  14.7 MBytes   124 Mbits/sec  314   14.1 KBytes   
  
  [  5]   4.00-5.00   sec  12.8 MBytes   107 Mbits/sec  259   14.1 KBytes   
  
  [  5]   5.00-6.01   sec  67.4 MBytes   560 Mbits/sec  137362 KBytes   
  
  [  5]   6.01-7.00   sec   111 MBytes   940 Mbits/sec0366 KBytes   
  
  [  5]   7.00-8.00   sec   112 MBytes   941 Mbits/sec0409 KBytes   
  
  [  5]   8.00-9.00   sec   112 MBytes   940 Mbits/sec0421 KBytes   
  
  [  5]   9.00-10.00  sec   112 MBytes   936 Mbits/sec0426 KBytes   
  
  - - - - - - - - - - - - - - - - - - - - - - - - - 
  
  [ ID] Interval   Transfer Bitrate Retr
  
  [  5]   0.00-10.00  sec   586 MBytes   491 Mbits/sec  1674 sender 
  
  [  5]   0.00-10.01  sec   585 MBytes   491 Mbits/sec  
receiver  

  
  iperf Done.

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  inet 192.168.0.21/24 brd 192.168.0.255 scope global dynamic noprefixroute 
enp3s0
 valid_lft 171856sec preferred_lft 171856sec
  inet6 fe80::781a:829f:5030:ad6a/64 scope link noprefixroute 
 valid_lft forever preferred_lft forever

  $ ethtool -S enp3s0 
  NIC statistics:
   tx_packets: 571053
   rx_packets: 1184934
   tx_errors: 0
   rx_errors: 0
   rx_missed: 1919  <<<
   align_errors: 0
   tx_single_collisions: 0
   tx_multi_collisions: 0
   unicast: 1184926
   broadcast: 6
   multicast: 2
   tx_aborted: 0
   tx_underrun: 0

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
mode DEFAULT group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  RX: bytes  packets  errors  dropped overrun mcast   
  1785166133 1184970  0   0   0   2   
  TX: bytes  packets  errors  dropped carrier collsns 
  39395440   570500   0   0   0   0  

  on the other side i see 

[Kernel-packages] [Bug 1880076] Re: ubuntu 20.4 - retransmitts with r8169

2023-06-05 Thread Leith Bade
I think I ran into same the same problem. Only started happening
recently when I added an extra SSD and re-arranged my SATA device ports.
I also made some changes in the BIOS, the main one was disabling the CSM
(compatibility support module) setting and forcing a UEFI boot.

Basically I was having issues not being able to connect to Internet
every so often and having to disable/enable the Ethernet port multiple
times to reconnect.

A ping to local device and 8.8.8.8 revealed widely varying ping times
from sub ms to 1000 ms, which was not replicated on a different computer
on same network.

ethtool was also showing a large rx_missed count.

I tried the kernel pcie_aspm=off flag and issue disappeared.

My motherboard is a ASUS H81M-E and manual says the Ethernet chip is
Realtek a RTL8111G. BIOS is the latest version from 2018.

When I get some time I will try and see if one of the BIOS settings
affects things.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1880076

Title:
  ubuntu 20.4 - retransmitts with r8169

Status in linux package in Ubuntu:
  Expired

Bug description:
  Hi,

  i run some network-tests (iperf3) and noticed massive retransmitts in
  ubuntu 20.4 with kernel 5.4.0-29. I'm using module r8169 for network-
  adapter

  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
  RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

  if i boot my ubuntu 18.4 and did same iperf-test (same hardware, same
  network configuration, other client is not rebooted) i have not these
  retransmitts.

  root@bpi-r2:~# iperf3 -c 192.168.0.21 
  
  Connecting to host 192.168.0.21, port 5201
  
  [  5] local 192.168.0.11 port 35702 connected to 192.168.0.21 port 5201   
  
  [ ID] Interval   Transfer Bitrate Retr  Cwnd  
  
  [  5]   0.00-1.00   sec  14.2 MBytes   119 Mbits/sec  337   14.1 KBytes   
  
  [  5]   1.00-2.00   sec  14.9 MBytes   125 Mbits/sec  331   14.1 KBytes   
  
  [  5]   2.00-3.00   sec  15.1 MBytes   126 Mbits/sec  296   19.8 KBytes   
  
  [  5]   3.00-4.00   sec  14.7 MBytes   124 Mbits/sec  314   14.1 KBytes   
  
  [  5]   4.00-5.00   sec  12.8 MBytes   107 Mbits/sec  259   14.1 KBytes   
  
  [  5]   5.00-6.01   sec  67.4 MBytes   560 Mbits/sec  137362 KBytes   
  
  [  5]   6.01-7.00   sec   111 MBytes   940 Mbits/sec0366 KBytes   
  
  [  5]   7.00-8.00   sec   112 MBytes   941 Mbits/sec0409 KBytes   
  
  [  5]   8.00-9.00   sec   112 MBytes   940 Mbits/sec0421 KBytes   
  
  [  5]   9.00-10.00  sec   112 MBytes   936 Mbits/sec0426 KBytes   
  
  - - - - - - - - - - - - - - - - - - - - - - - - - 
  
  [ ID] Interval   Transfer Bitrate Retr
  
  [  5]   0.00-10.00  sec   586 MBytes   491 Mbits/sec  1674 sender 
  
  [  5]   0.00-10.01  sec   585 MBytes   491 Mbits/sec  
receiver  

  
  iperf Done.

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  inet 192.168.0.21/24 brd 192.168.0.255 scope global dynamic noprefixroute 
enp3s0
 valid_lft 171856sec preferred_lft 171856sec
  inet6 fe80::781a:829f:5030:ad6a/64 scope link noprefixroute 
 valid_lft forever preferred_lft forever

  $ ethtool -S enp3s0 
  NIC statistics:
   tx_packets: 571053
   rx_packets: 1184934
   tx_errors: 0
   rx_errors: 0
   rx_missed: 1919  <<<
   align_errors: 0
   tx_single_collisions: 0
   tx_multi_collisions: 0
   unicast: 1184926
   broadcast: 6
   multicast: 2
   tx_aborted: 0
   tx_underrun: 0

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
mode DEFAULT group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  RX: bytes  packets  errors  dropped overrun mcast   
  1785166133 1184970  0   0   0   2   
  TX: bytes  packets  errors  dropped carrier collsns 
  39395440   570500   0   0   0   0  

  on the other side i see dropped packets, maybe flowcontrol-related?

  ethtool reports "Link partner advertised pause frame use: Symmetric"
  but maybe flowcontrol is not working...

  also driver reports flowcontrol is enabled...

  $ dmesg | grep r8169
  [0.939358] libphy: r8169: probed
  [0.939491] r8169 :03:00.0 eth0: RTL8168h/8111h, e4:b9:7a:f7:c4:8b, 
XID 541, IRQ 128
  [0.939492] r8169 :03:00.0 eth0: jumbo features [frames: 9200 bytes, 
tx checksumming: ko]
  [0.986853] r8169 :03:00.0 enp3s0: renamed from eth0
  [3.478981] Generic FE-GE Realtek 

[Kernel-packages] [Bug 1880076] Re: ubuntu 20.4 - retransmitts with r8169

2021-12-28 Thread Peter Passchier
It depends on your actual hardware. I got this fixed by installing
r8158-dkms, turned out the kernel's r8169 driver was not quite right for
my ethernet hardware.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1880076

Title:
  ubuntu 20.4 - retransmitts with r8169

Status in linux package in Ubuntu:
  Expired

Bug description:
  Hi,

  i run some network-tests (iperf3) and noticed massive retransmitts in
  ubuntu 20.4 with kernel 5.4.0-29. I'm using module r8169 for network-
  adapter

  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
  RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

  if i boot my ubuntu 18.4 and did same iperf-test (same hardware, same
  network configuration, other client is not rebooted) i have not these
  retransmitts.

  root@bpi-r2:~# iperf3 -c 192.168.0.21 
  
  Connecting to host 192.168.0.21, port 5201
  
  [  5] local 192.168.0.11 port 35702 connected to 192.168.0.21 port 5201   
  
  [ ID] Interval   Transfer Bitrate Retr  Cwnd  
  
  [  5]   0.00-1.00   sec  14.2 MBytes   119 Mbits/sec  337   14.1 KBytes   
  
  [  5]   1.00-2.00   sec  14.9 MBytes   125 Mbits/sec  331   14.1 KBytes   
  
  [  5]   2.00-3.00   sec  15.1 MBytes   126 Mbits/sec  296   19.8 KBytes   
  
  [  5]   3.00-4.00   sec  14.7 MBytes   124 Mbits/sec  314   14.1 KBytes   
  
  [  5]   4.00-5.00   sec  12.8 MBytes   107 Mbits/sec  259   14.1 KBytes   
  
  [  5]   5.00-6.01   sec  67.4 MBytes   560 Mbits/sec  137362 KBytes   
  
  [  5]   6.01-7.00   sec   111 MBytes   940 Mbits/sec0366 KBytes   
  
  [  5]   7.00-8.00   sec   112 MBytes   941 Mbits/sec0409 KBytes   
  
  [  5]   8.00-9.00   sec   112 MBytes   940 Mbits/sec0421 KBytes   
  
  [  5]   9.00-10.00  sec   112 MBytes   936 Mbits/sec0426 KBytes   
  
  - - - - - - - - - - - - - - - - - - - - - - - - - 
  
  [ ID] Interval   Transfer Bitrate Retr
  
  [  5]   0.00-10.00  sec   586 MBytes   491 Mbits/sec  1674 sender 
  
  [  5]   0.00-10.01  sec   585 MBytes   491 Mbits/sec  
receiver  

  
  iperf Done.

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  inet 192.168.0.21/24 brd 192.168.0.255 scope global dynamic noprefixroute 
enp3s0
 valid_lft 171856sec preferred_lft 171856sec
  inet6 fe80::781a:829f:5030:ad6a/64 scope link noprefixroute 
 valid_lft forever preferred_lft forever

  $ ethtool -S enp3s0 
  NIC statistics:
   tx_packets: 571053
   rx_packets: 1184934
   tx_errors: 0
   rx_errors: 0
   rx_missed: 1919  <<<
   align_errors: 0
   tx_single_collisions: 0
   tx_multi_collisions: 0
   unicast: 1184926
   broadcast: 6
   multicast: 2
   tx_aborted: 0
   tx_underrun: 0

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
mode DEFAULT group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  RX: bytes  packets  errors  dropped overrun mcast   
  1785166133 1184970  0   0   0   2   
  TX: bytes  packets  errors  dropped carrier collsns 
  39395440   570500   0   0   0   0  

  on the other side i see dropped packets, maybe flowcontrol-related?

  ethtool reports "Link partner advertised pause frame use: Symmetric"
  but maybe flowcontrol is not working...

  also driver reports flowcontrol is enabled...

  $ dmesg | grep r8169
  [0.939358] libphy: r8169: probed
  [0.939491] r8169 :03:00.0 eth0: RTL8168h/8111h, e4:b9:7a:f7:c4:8b, 
XID 541, IRQ 128
  [0.939492] r8169 :03:00.0 eth0: jumbo features [frames: 9200 bytes, 
tx checksumming: ko]
  [0.986853] r8169 :03:00.0 enp3s0: renamed from eth0
  [3.478981] Generic FE-GE Realtek PHY r8169-300:00: attached PHY driver 
[Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
  [3.591124] r8169 :03:00.0 enp3s0: Link is Down
  [7.171198] r8169 :03:00.0 enp3s0: Link is Up - 1Gbps/Full - flow 
control rx/tx

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: linux-image-5.4.0-29-generic 5.4.0-29.33
  ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30
  Uname: Linux 5.4.0-29-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27
  Architecture: amd64
  AudioDevicesInUse:
   USERPID ACCESS COMMAND
   /dev/snd/controlC0:  frank  1427 F pulseaudio
  CasperMD5CheckResult: skip
  CurrentDesktop: GNOME-Flashback:GNOME
  Date: Fri May 22 06:49:34 2020
  InstallationDate: Installed on 

[Kernel-packages] [Bug 1880076] Re: ubuntu 20.4 - retransmitts with r8169

2020-09-16 Thread Launchpad Bug Tracker
[Expired for linux (Ubuntu) because there has been no activity for 60
days.]

** Changed in: linux (Ubuntu)
   Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1880076

Title:
  ubuntu 20.4 - retransmitts with r8169

Status in linux package in Ubuntu:
  Expired

Bug description:
  Hi,

  i run some network-tests (iperf3) and noticed massive retransmitts in
  ubuntu 20.4 with kernel 5.4.0-29. I'm using module r8169 for network-
  adapter

  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
  RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

  if i boot my ubuntu 18.4 and did same iperf-test (same hardware, same
  network configuration, other client is not rebooted) i have not these
  retransmitts.

  root@bpi-r2:~# iperf3 -c 192.168.0.21 
  
  Connecting to host 192.168.0.21, port 5201
  
  [  5] local 192.168.0.11 port 35702 connected to 192.168.0.21 port 5201   
  
  [ ID] Interval   Transfer Bitrate Retr  Cwnd  
  
  [  5]   0.00-1.00   sec  14.2 MBytes   119 Mbits/sec  337   14.1 KBytes   
  
  [  5]   1.00-2.00   sec  14.9 MBytes   125 Mbits/sec  331   14.1 KBytes   
  
  [  5]   2.00-3.00   sec  15.1 MBytes   126 Mbits/sec  296   19.8 KBytes   
  
  [  5]   3.00-4.00   sec  14.7 MBytes   124 Mbits/sec  314   14.1 KBytes   
  
  [  5]   4.00-5.00   sec  12.8 MBytes   107 Mbits/sec  259   14.1 KBytes   
  
  [  5]   5.00-6.01   sec  67.4 MBytes   560 Mbits/sec  137362 KBytes   
  
  [  5]   6.01-7.00   sec   111 MBytes   940 Mbits/sec0366 KBytes   
  
  [  5]   7.00-8.00   sec   112 MBytes   941 Mbits/sec0409 KBytes   
  
  [  5]   8.00-9.00   sec   112 MBytes   940 Mbits/sec0421 KBytes   
  
  [  5]   9.00-10.00  sec   112 MBytes   936 Mbits/sec0426 KBytes   
  
  - - - - - - - - - - - - - - - - - - - - - - - - - 
  
  [ ID] Interval   Transfer Bitrate Retr
  
  [  5]   0.00-10.00  sec   586 MBytes   491 Mbits/sec  1674 sender 
  
  [  5]   0.00-10.01  sec   585 MBytes   491 Mbits/sec  
receiver  

  
  iperf Done.

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  inet 192.168.0.21/24 brd 192.168.0.255 scope global dynamic noprefixroute 
enp3s0
 valid_lft 171856sec preferred_lft 171856sec
  inet6 fe80::781a:829f:5030:ad6a/64 scope link noprefixroute 
 valid_lft forever preferred_lft forever

  $ ethtool -S enp3s0 
  NIC statistics:
   tx_packets: 571053
   rx_packets: 1184934
   tx_errors: 0
   rx_errors: 0
   rx_missed: 1919  <<<
   align_errors: 0
   tx_single_collisions: 0
   tx_multi_collisions: 0
   unicast: 1184926
   broadcast: 6
   multicast: 2
   tx_aborted: 0
   tx_underrun: 0

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
mode DEFAULT group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  RX: bytes  packets  errors  dropped overrun mcast   
  1785166133 1184970  0   0   0   2   
  TX: bytes  packets  errors  dropped carrier collsns 
  39395440   570500   0   0   0   0  

  on the other side i see dropped packets, maybe flowcontrol-related?

  ethtool reports "Link partner advertised pause frame use: Symmetric"
  but maybe flowcontrol is not working...

  also driver reports flowcontrol is enabled...

  $ dmesg | grep r8169
  [0.939358] libphy: r8169: probed
  [0.939491] r8169 :03:00.0 eth0: RTL8168h/8111h, e4:b9:7a:f7:c4:8b, 
XID 541, IRQ 128
  [0.939492] r8169 :03:00.0 eth0: jumbo features [frames: 9200 bytes, 
tx checksumming: ko]
  [0.986853] r8169 :03:00.0 enp3s0: renamed from eth0
  [3.478981] Generic FE-GE Realtek PHY r8169-300:00: attached PHY driver 
[Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
  [3.591124] r8169 :03:00.0 enp3s0: Link is Down
  [7.171198] r8169 :03:00.0 enp3s0: Link is Up - 1Gbps/Full - flow 
control rx/tx

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: linux-image-5.4.0-29-generic 5.4.0-29.33
  ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30
  Uname: Linux 5.4.0-29-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27
  Architecture: amd64
  AudioDevicesInUse:
   USERPID ACCESS COMMAND
   /dev/snd/controlC0:  frank  1427 F pulseaudio
  CasperMD5CheckResult: skip
  CurrentDesktop: GNOME-Flashback:GNOME
  Date: Fri May 22 06:49:34 2020
  InstallationDate: Installed on 2020-04-27 (24 

[Kernel-packages] [Bug 1880076] Re: ubuntu 20.4 - retransmitts with r8169

2020-07-18 Thread frank
tried with newer kernel on r2 (was 5.4.21 before) and now the 5.4.51
like my custom build and now i get my ~940Mbit without retransmitts...so
custom kernel on client fixes my problem...maybe because it is newer
than ubuntus 5.4 (which seems to be based on 5.4.0) or maybe because i
have no additional Patches (maybe ubuntu-kernel has).

@jeremy can you test with custom build kernel (stable-tree like above)
too?

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1880076

Title:
  ubuntu 20.4 - retransmitts with r8169

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Hi,

  i run some network-tests (iperf3) and noticed massive retransmitts in
  ubuntu 20.4 with kernel 5.4.0-29. I'm using module r8169 for network-
  adapter

  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
  RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

  if i boot my ubuntu 18.4 and did same iperf-test (same hardware, same
  network configuration, other client is not rebooted) i have not these
  retransmitts.

  root@bpi-r2:~# iperf3 -c 192.168.0.21 
  
  Connecting to host 192.168.0.21, port 5201
  
  [  5] local 192.168.0.11 port 35702 connected to 192.168.0.21 port 5201   
  
  [ ID] Interval   Transfer Bitrate Retr  Cwnd  
  
  [  5]   0.00-1.00   sec  14.2 MBytes   119 Mbits/sec  337   14.1 KBytes   
  
  [  5]   1.00-2.00   sec  14.9 MBytes   125 Mbits/sec  331   14.1 KBytes   
  
  [  5]   2.00-3.00   sec  15.1 MBytes   126 Mbits/sec  296   19.8 KBytes   
  
  [  5]   3.00-4.00   sec  14.7 MBytes   124 Mbits/sec  314   14.1 KBytes   
  
  [  5]   4.00-5.00   sec  12.8 MBytes   107 Mbits/sec  259   14.1 KBytes   
  
  [  5]   5.00-6.01   sec  67.4 MBytes   560 Mbits/sec  137362 KBytes   
  
  [  5]   6.01-7.00   sec   111 MBytes   940 Mbits/sec0366 KBytes   
  
  [  5]   7.00-8.00   sec   112 MBytes   941 Mbits/sec0409 KBytes   
  
  [  5]   8.00-9.00   sec   112 MBytes   940 Mbits/sec0421 KBytes   
  
  [  5]   9.00-10.00  sec   112 MBytes   936 Mbits/sec0426 KBytes   
  
  - - - - - - - - - - - - - - - - - - - - - - - - - 
  
  [ ID] Interval   Transfer Bitrate Retr
  
  [  5]   0.00-10.00  sec   586 MBytes   491 Mbits/sec  1674 sender 
  
  [  5]   0.00-10.01  sec   585 MBytes   491 Mbits/sec  
receiver  

  
  iperf Done.

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  inet 192.168.0.21/24 brd 192.168.0.255 scope global dynamic noprefixroute 
enp3s0
 valid_lft 171856sec preferred_lft 171856sec
  inet6 fe80::781a:829f:5030:ad6a/64 scope link noprefixroute 
 valid_lft forever preferred_lft forever

  $ ethtool -S enp3s0 
  NIC statistics:
   tx_packets: 571053
   rx_packets: 1184934
   tx_errors: 0
   rx_errors: 0
   rx_missed: 1919  <<<
   align_errors: 0
   tx_single_collisions: 0
   tx_multi_collisions: 0
   unicast: 1184926
   broadcast: 6
   multicast: 2
   tx_aborted: 0
   tx_underrun: 0

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
mode DEFAULT group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  RX: bytes  packets  errors  dropped overrun mcast   
  1785166133 1184970  0   0   0   2   
  TX: bytes  packets  errors  dropped carrier collsns 
  39395440   570500   0   0   0   0  

  on the other side i see dropped packets, maybe flowcontrol-related?

  ethtool reports "Link partner advertised pause frame use: Symmetric"
  but maybe flowcontrol is not working...

  also driver reports flowcontrol is enabled...

  $ dmesg | grep r8169
  [0.939358] libphy: r8169: probed
  [0.939491] r8169 :03:00.0 eth0: RTL8168h/8111h, e4:b9:7a:f7:c4:8b, 
XID 541, IRQ 128
  [0.939492] r8169 :03:00.0 eth0: jumbo features [frames: 9200 bytes, 
tx checksumming: ko]
  [0.986853] r8169 :03:00.0 enp3s0: renamed from eth0
  [3.478981] Generic FE-GE Realtek PHY r8169-300:00: attached PHY driver 
[Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
  [3.591124] r8169 :03:00.0 enp3s0: Link is Down
  [7.171198] r8169 :03:00.0 enp3s0: Link is Up - 1Gbps/Full - flow 
control rx/tx

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: linux-image-5.4.0-29-generic 5.4.0-29.33
  ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30
  Uname: Linux 5.4.0-29-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27
  Architecture: 

[Kernel-packages] [Bug 1880076] Re: ubuntu 20.4 - retransmitts with r8169

2020-07-17 Thread Jeremy Elson
I tried:

echo 'performance' > /sys/module/pcie_aspm/parameters/policy

This did not improve performance or reduce packet loss.

I don't think it's right to give up and say "Well, this is a BIOS bug."
The 18.04 kernel does not exhibit this problem, nor does Windows, but
the 20.04 kernel does. It's the kernel's fault, even if the kernel's bad
behavior was triggered by a bad BIOS.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1880076

Title:
  ubuntu 20.4 - retransmitts with r8169

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Hi,

  i run some network-tests (iperf3) and noticed massive retransmitts in
  ubuntu 20.4 with kernel 5.4.0-29. I'm using module r8169 for network-
  adapter

  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
  RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

  if i boot my ubuntu 18.4 and did same iperf-test (same hardware, same
  network configuration, other client is not rebooted) i have not these
  retransmitts.

  root@bpi-r2:~# iperf3 -c 192.168.0.21 
  
  Connecting to host 192.168.0.21, port 5201
  
  [  5] local 192.168.0.11 port 35702 connected to 192.168.0.21 port 5201   
  
  [ ID] Interval   Transfer Bitrate Retr  Cwnd  
  
  [  5]   0.00-1.00   sec  14.2 MBytes   119 Mbits/sec  337   14.1 KBytes   
  
  [  5]   1.00-2.00   sec  14.9 MBytes   125 Mbits/sec  331   14.1 KBytes   
  
  [  5]   2.00-3.00   sec  15.1 MBytes   126 Mbits/sec  296   19.8 KBytes   
  
  [  5]   3.00-4.00   sec  14.7 MBytes   124 Mbits/sec  314   14.1 KBytes   
  
  [  5]   4.00-5.00   sec  12.8 MBytes   107 Mbits/sec  259   14.1 KBytes   
  
  [  5]   5.00-6.01   sec  67.4 MBytes   560 Mbits/sec  137362 KBytes   
  
  [  5]   6.01-7.00   sec   111 MBytes   940 Mbits/sec0366 KBytes   
  
  [  5]   7.00-8.00   sec   112 MBytes   941 Mbits/sec0409 KBytes   
  
  [  5]   8.00-9.00   sec   112 MBytes   940 Mbits/sec0421 KBytes   
  
  [  5]   9.00-10.00  sec   112 MBytes   936 Mbits/sec0426 KBytes   
  
  - - - - - - - - - - - - - - - - - - - - - - - - - 
  
  [ ID] Interval   Transfer Bitrate Retr
  
  [  5]   0.00-10.00  sec   586 MBytes   491 Mbits/sec  1674 sender 
  
  [  5]   0.00-10.01  sec   585 MBytes   491 Mbits/sec  
receiver  

  
  iperf Done.

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  inet 192.168.0.21/24 brd 192.168.0.255 scope global dynamic noprefixroute 
enp3s0
 valid_lft 171856sec preferred_lft 171856sec
  inet6 fe80::781a:829f:5030:ad6a/64 scope link noprefixroute 
 valid_lft forever preferred_lft forever

  $ ethtool -S enp3s0 
  NIC statistics:
   tx_packets: 571053
   rx_packets: 1184934
   tx_errors: 0
   rx_errors: 0
   rx_missed: 1919  <<<
   align_errors: 0
   tx_single_collisions: 0
   tx_multi_collisions: 0
   unicast: 1184926
   broadcast: 6
   multicast: 2
   tx_aborted: 0
   tx_underrun: 0

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
mode DEFAULT group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  RX: bytes  packets  errors  dropped overrun mcast   
  1785166133 1184970  0   0   0   2   
  TX: bytes  packets  errors  dropped carrier collsns 
  39395440   570500   0   0   0   0  

  on the other side i see dropped packets, maybe flowcontrol-related?

  ethtool reports "Link partner advertised pause frame use: Symmetric"
  but maybe flowcontrol is not working...

  also driver reports flowcontrol is enabled...

  $ dmesg | grep r8169
  [0.939358] libphy: r8169: probed
  [0.939491] r8169 :03:00.0 eth0: RTL8168h/8111h, e4:b9:7a:f7:c4:8b, 
XID 541, IRQ 128
  [0.939492] r8169 :03:00.0 eth0: jumbo features [frames: 9200 bytes, 
tx checksumming: ko]
  [0.986853] r8169 :03:00.0 enp3s0: renamed from eth0
  [3.478981] Generic FE-GE Realtek PHY r8169-300:00: attached PHY driver 
[Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
  [3.591124] r8169 :03:00.0 enp3s0: Link is Down
  [7.171198] r8169 :03:00.0 enp3s0: Link is Up - 1Gbps/Full - flow 
control rx/tx

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: linux-image-5.4.0-29-generic 5.4.0-29.33
  ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30
  Uname: Linux 5.4.0-29-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27
  Architecture: amd64
  AudioDevicesInUse:
   

[Kernel-packages] [Bug 1880076] Re: ubuntu 20.4 - retransmitts with r8169

2020-07-17 Thread frank
frank@frank-G5-U20:~ 
$ iperf3 -c 192.168.0.11 -R
Connecting to host 192.168.0.11, port 5201
Reverse mode, remote host 192.168.0.11 is sending
[  5] local 192.168.0.21 port 43304 connected to 192.168.0.11 port 5201
[ ID] Interval   Transfer Bitrate
[  5]   0.00-1.00   sec   112 MBytes   937 Mbits/sec  
[  5]   1.00-2.00   sec   112 MBytes   939 Mbits/sec  
[  5]   2.00-3.00   sec   112 MBytes   939 Mbits/sec  
[  5]   3.00-4.00   sec   112 MBytes   939 Mbits/sec  
[  5]   4.00-5.00   sec   112 MBytes   939 Mbits/sec  
[  5]   5.00-6.00   sec   112 MBytes   939 Mbits/sec  
[  5]   6.00-7.00   sec   112 MBytes   939 Mbits/sec  
[  5]   7.00-8.00   sec   112 MBytes   939 Mbits/sec  
[  5]   8.00-9.00   sec   112 MBytes   939 Mbits/sec  
[  5]   9.00-10.00  sec   112 MBytes   939 Mbits/sec  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval   Transfer Bitrate Retr
[  5]   0.00-10.00  sec  1.09 GBytes   940 Mbits/sec0 sender
[  5]   0.00-10.00  sec  1.09 GBytes   939 Mbits/sec  receiver

iperf Done.
frank@frank-G5-U20:~ 
$ iperf3 -c 192.168.0.11
Connecting to host 192.168.0.11, port 5201
[  5] local 192.168.0.21 port 43308 connected to 192.168.0.11 port 5201
[ ID] Interval   Transfer Bitrate Retr  Cwnd
[  5]   0.00-1.00   sec   114 MBytes   957 Mbits/sec0373 KBytes   
[  5]   1.00-2.00   sec  93.6 MBytes   785 Mbits/sec0619 KBytes   
[  5]   2.00-3.00   sec  91.2 MBytes   765 Mbits/sec0619 KBytes   
[  5]   3.00-4.00   sec  91.2 MBytes   765 Mbits/sec0619 KBytes   
[  5]   4.00-5.00   sec  91.1 MBytes   764 Mbits/sec0714 KBytes   
[  5]   5.00-6.00   sec  91.2 MBytes   765 Mbits/sec0714 KBytes   
[  5]   6.00-7.00   sec  91.2 MBytes   765 Mbits/sec0714 KBytes   
[  5]   7.00-8.00   sec  92.5 MBytes   776 Mbits/sec0714 KBytes   
[  5]   8.00-9.00   sec  91.2 MBytes   765 Mbits/sec0714 KBytes   
[  5]   9.00-10.00  sec  91.2 MBytes   765 Mbits/sec0714 KBytes   
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval   Transfer Bitrate Retr
[  5]   0.00-10.00  sec   939 MBytes   787 Mbits/sec0 sender
[  5]   0.00-10.00  sec   933 MBytes   782 Mbits/sec  receiver

iperf Done.
frank@frank-G5-U20:~ 
$ uname -a
Linux frank-G5-U20 5.4.52-custom #1 SMP Thu Jul 16 19:16:51 CEST 2020 x86_64 
x86_64 x86_64 GNU/Linux
frank@frank-G5-U20:~ 
$ cat /etc/issue
Ubuntu 20.04 LTS \n \l

frank@frank-G5-U20:~ 
$ ethtool -S enp3s0
NIC statistics:
 tx_packets: 1085630
 rx_packets: 844392
 tx_errors: 0
 rx_errors: 0
 rx_missed: 0
 align_errors: 0
 tx_single_collisions: 0
 tx_multi_collisions: 0
 unicast: 844390
 broadcast: 1
 multicast: 1
 tx_aborted: 0
 tx_underrun: 0
frank@frank-G5-U20:~ 
$ 


other side:

root@bpi-r2:~# iperf3 -s
--- 
Server listening on 5201
--- 
Accepted connection from 192.168.0.21, port 43302   
[  5] local 192.168.0.11 port 5201 connected to 192.168.0.21 port 43304 
[ ID] Interval   Transfer Bitrate Retr  Cwnd
[  5]   0.00-1.00   sec   113 MBytes   947 Mbits/sec0460 KBytes 
[  5]   1.00-2.00   sec   112 MBytes   937 Mbits/sec0460 KBytes 
[  5]   2.00-3.00   sec   112 MBytes   937 Mbits/sec0460 KBytes 
[  5]   3.00-4.00   sec   112 MBytes   942 Mbits/sec0460 KBytes 
[  5]   4.00-5.00   sec   112 MBytes   938 Mbits/sec0460 KBytes 
[  5]   5.00-6.00   sec   112 MBytes   937 Mbits/sec0460 KBytes 
[  5]   6.00-7.00   sec   112 MBytes   941 Mbits/sec0460 KBytes 
[  5]   7.00-8.00   sec   112 MBytes   937 Mbits/sec0460 KBytes 
[  5]   8.00-9.00   sec   112 MBytes   940 Mbits/sec0460 KBytes 
[  5]   9.00-10.00  sec   112 MBytes   942 Mbits/sec0460 KBytes 
- - - - - - - - - - - - - - - - - - - - - - - - -   
[ ID] Interval   Transfer Bitrate Retr  
[  5]   0.00-10.00  sec  1.09 GBytes   940 Mbits/sec0 sender
--- 
Server listening on 5201
--- 
Accepted 

[Kernel-packages] [Bug 1880076] Re: ubuntu 20.4 - retransmitts with r8169

2020-07-17 Thread Heiner Kallweit
In addition you can try to set kernel command line parameter pcie_aspm=off.
Or set pcie_aspm.policy=performance.

In general it's a tradeoff: Older kernels didn't allow to enable ASPM at
all, resulting in less battery life on notebooks. Newer kernels disable
ASPM per default, but allow to re-enable it via sysfs. For this however
they depend on proper BIOS support.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1880076

Title:
  ubuntu 20.4 - retransmitts with r8169

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Hi,

  i run some network-tests (iperf3) and noticed massive retransmitts in
  ubuntu 20.4 with kernel 5.4.0-29. I'm using module r8169 for network-
  adapter

  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
  RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

  if i boot my ubuntu 18.4 and did same iperf-test (same hardware, same
  network configuration, other client is not rebooted) i have not these
  retransmitts.

  root@bpi-r2:~# iperf3 -c 192.168.0.21 
  
  Connecting to host 192.168.0.21, port 5201
  
  [  5] local 192.168.0.11 port 35702 connected to 192.168.0.21 port 5201   
  
  [ ID] Interval   Transfer Bitrate Retr  Cwnd  
  
  [  5]   0.00-1.00   sec  14.2 MBytes   119 Mbits/sec  337   14.1 KBytes   
  
  [  5]   1.00-2.00   sec  14.9 MBytes   125 Mbits/sec  331   14.1 KBytes   
  
  [  5]   2.00-3.00   sec  15.1 MBytes   126 Mbits/sec  296   19.8 KBytes   
  
  [  5]   3.00-4.00   sec  14.7 MBytes   124 Mbits/sec  314   14.1 KBytes   
  
  [  5]   4.00-5.00   sec  12.8 MBytes   107 Mbits/sec  259   14.1 KBytes   
  
  [  5]   5.00-6.01   sec  67.4 MBytes   560 Mbits/sec  137362 KBytes   
  
  [  5]   6.01-7.00   sec   111 MBytes   940 Mbits/sec0366 KBytes   
  
  [  5]   7.00-8.00   sec   112 MBytes   941 Mbits/sec0409 KBytes   
  
  [  5]   8.00-9.00   sec   112 MBytes   940 Mbits/sec0421 KBytes   
  
  [  5]   9.00-10.00  sec   112 MBytes   936 Mbits/sec0426 KBytes   
  
  - - - - - - - - - - - - - - - - - - - - - - - - - 
  
  [ ID] Interval   Transfer Bitrate Retr
  
  [  5]   0.00-10.00  sec   586 MBytes   491 Mbits/sec  1674 sender 
  
  [  5]   0.00-10.01  sec   585 MBytes   491 Mbits/sec  
receiver  

  
  iperf Done.

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  inet 192.168.0.21/24 brd 192.168.0.255 scope global dynamic noprefixroute 
enp3s0
 valid_lft 171856sec preferred_lft 171856sec
  inet6 fe80::781a:829f:5030:ad6a/64 scope link noprefixroute 
 valid_lft forever preferred_lft forever

  $ ethtool -S enp3s0 
  NIC statistics:
   tx_packets: 571053
   rx_packets: 1184934
   tx_errors: 0
   rx_errors: 0
   rx_missed: 1919  <<<
   align_errors: 0
   tx_single_collisions: 0
   tx_multi_collisions: 0
   unicast: 1184926
   broadcast: 6
   multicast: 2
   tx_aborted: 0
   tx_underrun: 0

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
mode DEFAULT group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  RX: bytes  packets  errors  dropped overrun mcast   
  1785166133 1184970  0   0   0   2   
  TX: bytes  packets  errors  dropped carrier collsns 
  39395440   570500   0   0   0   0  

  on the other side i see dropped packets, maybe flowcontrol-related?

  ethtool reports "Link partner advertised pause frame use: Symmetric"
  but maybe flowcontrol is not working...

  also driver reports flowcontrol is enabled...

  $ dmesg | grep r8169
  [0.939358] libphy: r8169: probed
  [0.939491] r8169 :03:00.0 eth0: RTL8168h/8111h, e4:b9:7a:f7:c4:8b, 
XID 541, IRQ 128
  [0.939492] r8169 :03:00.0 eth0: jumbo features [frames: 9200 bytes, 
tx checksumming: ko]
  [0.986853] r8169 :03:00.0 enp3s0: renamed from eth0
  [3.478981] Generic FE-GE Realtek PHY r8169-300:00: attached PHY driver 
[Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
  [3.591124] r8169 :03:00.0 enp3s0: Link is Down
  [7.171198] r8169 :03:00.0 enp3s0: Link is Up - 1Gbps/Full - flow 
control rx/tx

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: linux-image-5.4.0-29-generic 5.4.0-29.33
  ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30
  Uname: Linux 5.4.0-29-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27
  Architecture: amd64
  AudioDevicesInUse:
   USERPID 

[Kernel-packages] [Bug 1880076] Re: ubuntu 20.4 - retransmitts with r8169

2020-07-16 Thread Jeremy Elson
And another data point: I wiped the computer clean and installed Ubuntu
18.04.4; the problem disappeared. TCP performance was near wire speed.
Kernel:

4.15.0-111-generic #112-Ubuntu SMP Thu Jul 9 20:32:34 UTC 2020 x86_64
x86_64 x86_64 GNU/Linux

This clearly points to a regression in software, not a hardware or BIOS
problem.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1880076

Title:
  ubuntu 20.4 - retransmitts with r8169

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Hi,

  i run some network-tests (iperf3) and noticed massive retransmitts in
  ubuntu 20.4 with kernel 5.4.0-29. I'm using module r8169 for network-
  adapter

  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
  RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

  if i boot my ubuntu 18.4 and did same iperf-test (same hardware, same
  network configuration, other client is not rebooted) i have not these
  retransmitts.

  root@bpi-r2:~# iperf3 -c 192.168.0.21 
  
  Connecting to host 192.168.0.21, port 5201
  
  [  5] local 192.168.0.11 port 35702 connected to 192.168.0.21 port 5201   
  
  [ ID] Interval   Transfer Bitrate Retr  Cwnd  
  
  [  5]   0.00-1.00   sec  14.2 MBytes   119 Mbits/sec  337   14.1 KBytes   
  
  [  5]   1.00-2.00   sec  14.9 MBytes   125 Mbits/sec  331   14.1 KBytes   
  
  [  5]   2.00-3.00   sec  15.1 MBytes   126 Mbits/sec  296   19.8 KBytes   
  
  [  5]   3.00-4.00   sec  14.7 MBytes   124 Mbits/sec  314   14.1 KBytes   
  
  [  5]   4.00-5.00   sec  12.8 MBytes   107 Mbits/sec  259   14.1 KBytes   
  
  [  5]   5.00-6.01   sec  67.4 MBytes   560 Mbits/sec  137362 KBytes   
  
  [  5]   6.01-7.00   sec   111 MBytes   940 Mbits/sec0366 KBytes   
  
  [  5]   7.00-8.00   sec   112 MBytes   941 Mbits/sec0409 KBytes   
  
  [  5]   8.00-9.00   sec   112 MBytes   940 Mbits/sec0421 KBytes   
  
  [  5]   9.00-10.00  sec   112 MBytes   936 Mbits/sec0426 KBytes   
  
  - - - - - - - - - - - - - - - - - - - - - - - - - 
  
  [ ID] Interval   Transfer Bitrate Retr
  
  [  5]   0.00-10.00  sec   586 MBytes   491 Mbits/sec  1674 sender 
  
  [  5]   0.00-10.01  sec   585 MBytes   491 Mbits/sec  
receiver  

  
  iperf Done.

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  inet 192.168.0.21/24 brd 192.168.0.255 scope global dynamic noprefixroute 
enp3s0
 valid_lft 171856sec preferred_lft 171856sec
  inet6 fe80::781a:829f:5030:ad6a/64 scope link noprefixroute 
 valid_lft forever preferred_lft forever

  $ ethtool -S enp3s0 
  NIC statistics:
   tx_packets: 571053
   rx_packets: 1184934
   tx_errors: 0
   rx_errors: 0
   rx_missed: 1919  <<<
   align_errors: 0
   tx_single_collisions: 0
   tx_multi_collisions: 0
   unicast: 1184926
   broadcast: 6
   multicast: 2
   tx_aborted: 0
   tx_underrun: 0

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
mode DEFAULT group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  RX: bytes  packets  errors  dropped overrun mcast   
  1785166133 1184970  0   0   0   2   
  TX: bytes  packets  errors  dropped carrier collsns 
  39395440   570500   0   0   0   0  

  on the other side i see dropped packets, maybe flowcontrol-related?

  ethtool reports "Link partner advertised pause frame use: Symmetric"
  but maybe flowcontrol is not working...

  also driver reports flowcontrol is enabled...

  $ dmesg | grep r8169
  [0.939358] libphy: r8169: probed
  [0.939491] r8169 :03:00.0 eth0: RTL8168h/8111h, e4:b9:7a:f7:c4:8b, 
XID 541, IRQ 128
  [0.939492] r8169 :03:00.0 eth0: jumbo features [frames: 9200 bytes, 
tx checksumming: ko]
  [0.986853] r8169 :03:00.0 enp3s0: renamed from eth0
  [3.478981] Generic FE-GE Realtek PHY r8169-300:00: attached PHY driver 
[Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
  [3.591124] r8169 :03:00.0 enp3s0: Link is Down
  [7.171198] r8169 :03:00.0 enp3s0: Link is Up - 1Gbps/Full - flow 
control rx/tx

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: linux-image-5.4.0-29-generic 5.4.0-29.33
  ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30
  Uname: Linux 5.4.0-29-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27
  Architecture: amd64
  AudioDevicesInUse:
   USERPID ACCESS COMMAND
   /dev/snd/controlC0:  

[Kernel-packages] [Bug 1880076] Re: ubuntu 20.4 - retransmitts with r8169

2020-07-16 Thread Jeremy Elson
One more data point. Using the ethtool command described in comment 16
(rx-usecs 200, tx-usecs 200) I see about a 10% improvement in bandwidth
but still a large number of dropped incoming packets resulting in small
TCP congestion windows (and thus a small fraction of the overall TCP
goodput achieved by Windows on the same hardware).

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1880076

Title:
  ubuntu 20.4 - retransmitts with r8169

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Hi,

  i run some network-tests (iperf3) and noticed massive retransmitts in
  ubuntu 20.4 with kernel 5.4.0-29. I'm using module r8169 for network-
  adapter

  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
  RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

  if i boot my ubuntu 18.4 and did same iperf-test (same hardware, same
  network configuration, other client is not rebooted) i have not these
  retransmitts.

  root@bpi-r2:~# iperf3 -c 192.168.0.21 
  
  Connecting to host 192.168.0.21, port 5201
  
  [  5] local 192.168.0.11 port 35702 connected to 192.168.0.21 port 5201   
  
  [ ID] Interval   Transfer Bitrate Retr  Cwnd  
  
  [  5]   0.00-1.00   sec  14.2 MBytes   119 Mbits/sec  337   14.1 KBytes   
  
  [  5]   1.00-2.00   sec  14.9 MBytes   125 Mbits/sec  331   14.1 KBytes   
  
  [  5]   2.00-3.00   sec  15.1 MBytes   126 Mbits/sec  296   19.8 KBytes   
  
  [  5]   3.00-4.00   sec  14.7 MBytes   124 Mbits/sec  314   14.1 KBytes   
  
  [  5]   4.00-5.00   sec  12.8 MBytes   107 Mbits/sec  259   14.1 KBytes   
  
  [  5]   5.00-6.01   sec  67.4 MBytes   560 Mbits/sec  137362 KBytes   
  
  [  5]   6.01-7.00   sec   111 MBytes   940 Mbits/sec0366 KBytes   
  
  [  5]   7.00-8.00   sec   112 MBytes   941 Mbits/sec0409 KBytes   
  
  [  5]   8.00-9.00   sec   112 MBytes   940 Mbits/sec0421 KBytes   
  
  [  5]   9.00-10.00  sec   112 MBytes   936 Mbits/sec0426 KBytes   
  
  - - - - - - - - - - - - - - - - - - - - - - - - - 
  
  [ ID] Interval   Transfer Bitrate Retr
  
  [  5]   0.00-10.00  sec   586 MBytes   491 Mbits/sec  1674 sender 
  
  [  5]   0.00-10.01  sec   585 MBytes   491 Mbits/sec  
receiver  

  
  iperf Done.

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  inet 192.168.0.21/24 brd 192.168.0.255 scope global dynamic noprefixroute 
enp3s0
 valid_lft 171856sec preferred_lft 171856sec
  inet6 fe80::781a:829f:5030:ad6a/64 scope link noprefixroute 
 valid_lft forever preferred_lft forever

  $ ethtool -S enp3s0 
  NIC statistics:
   tx_packets: 571053
   rx_packets: 1184934
   tx_errors: 0
   rx_errors: 0
   rx_missed: 1919  <<<
   align_errors: 0
   tx_single_collisions: 0
   tx_multi_collisions: 0
   unicast: 1184926
   broadcast: 6
   multicast: 2
   tx_aborted: 0
   tx_underrun: 0

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
mode DEFAULT group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  RX: bytes  packets  errors  dropped overrun mcast   
  1785166133 1184970  0   0   0   2   
  TX: bytes  packets  errors  dropped carrier collsns 
  39395440   570500   0   0   0   0  

  on the other side i see dropped packets, maybe flowcontrol-related?

  ethtool reports "Link partner advertised pause frame use: Symmetric"
  but maybe flowcontrol is not working...

  also driver reports flowcontrol is enabled...

  $ dmesg | grep r8169
  [0.939358] libphy: r8169: probed
  [0.939491] r8169 :03:00.0 eth0: RTL8168h/8111h, e4:b9:7a:f7:c4:8b, 
XID 541, IRQ 128
  [0.939492] r8169 :03:00.0 eth0: jumbo features [frames: 9200 bytes, 
tx checksumming: ko]
  [0.986853] r8169 :03:00.0 enp3s0: renamed from eth0
  [3.478981] Generic FE-GE Realtek PHY r8169-300:00: attached PHY driver 
[Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
  [3.591124] r8169 :03:00.0 enp3s0: Link is Down
  [7.171198] r8169 :03:00.0 enp3s0: Link is Up - 1Gbps/Full - flow 
control rx/tx

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: linux-image-5.4.0-29-generic 5.4.0-29.33
  ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30
  Uname: Linux 5.4.0-29-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27
  Architecture: amd64
  AudioDevicesInUse:
   USERPID ACCESS COMMAND
   

[Kernel-packages] [Bug 1880076] Re: ubuntu 20.4 - retransmitts with r8169

2020-07-16 Thread Jeremy Elson
Two additional data points:

1) When I boot the "broken" computer -- i.e. the one that gets rx misses
under Linux -- into Windows, Windows can drive the Ethernet chip at full
wire speed; I get 500mbps to a WAN host over TCP. I believe this
suggests it is not a problem with the BIOS.

2) I actually have two of the broken systems (I bought two identical
computers) -- they both show the same ethernet receive problem. I
believe this suggests it's a software problem and not a hardware
problem.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1880076

Title:
  ubuntu 20.4 - retransmitts with r8169

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Hi,

  i run some network-tests (iperf3) and noticed massive retransmitts in
  ubuntu 20.4 with kernel 5.4.0-29. I'm using module r8169 for network-
  adapter

  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
  RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

  if i boot my ubuntu 18.4 and did same iperf-test (same hardware, same
  network configuration, other client is not rebooted) i have not these
  retransmitts.

  root@bpi-r2:~# iperf3 -c 192.168.0.21 
  
  Connecting to host 192.168.0.21, port 5201
  
  [  5] local 192.168.0.11 port 35702 connected to 192.168.0.21 port 5201   
  
  [ ID] Interval   Transfer Bitrate Retr  Cwnd  
  
  [  5]   0.00-1.00   sec  14.2 MBytes   119 Mbits/sec  337   14.1 KBytes   
  
  [  5]   1.00-2.00   sec  14.9 MBytes   125 Mbits/sec  331   14.1 KBytes   
  
  [  5]   2.00-3.00   sec  15.1 MBytes   126 Mbits/sec  296   19.8 KBytes   
  
  [  5]   3.00-4.00   sec  14.7 MBytes   124 Mbits/sec  314   14.1 KBytes   
  
  [  5]   4.00-5.00   sec  12.8 MBytes   107 Mbits/sec  259   14.1 KBytes   
  
  [  5]   5.00-6.01   sec  67.4 MBytes   560 Mbits/sec  137362 KBytes   
  
  [  5]   6.01-7.00   sec   111 MBytes   940 Mbits/sec0366 KBytes   
  
  [  5]   7.00-8.00   sec   112 MBytes   941 Mbits/sec0409 KBytes   
  
  [  5]   8.00-9.00   sec   112 MBytes   940 Mbits/sec0421 KBytes   
  
  [  5]   9.00-10.00  sec   112 MBytes   936 Mbits/sec0426 KBytes   
  
  - - - - - - - - - - - - - - - - - - - - - - - - - 
  
  [ ID] Interval   Transfer Bitrate Retr
  
  [  5]   0.00-10.00  sec   586 MBytes   491 Mbits/sec  1674 sender 
  
  [  5]   0.00-10.01  sec   585 MBytes   491 Mbits/sec  
receiver  

  
  iperf Done.

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  inet 192.168.0.21/24 brd 192.168.0.255 scope global dynamic noprefixroute 
enp3s0
 valid_lft 171856sec preferred_lft 171856sec
  inet6 fe80::781a:829f:5030:ad6a/64 scope link noprefixroute 
 valid_lft forever preferred_lft forever

  $ ethtool -S enp3s0 
  NIC statistics:
   tx_packets: 571053
   rx_packets: 1184934
   tx_errors: 0
   rx_errors: 0
   rx_missed: 1919  <<<
   align_errors: 0
   tx_single_collisions: 0
   tx_multi_collisions: 0
   unicast: 1184926
   broadcast: 6
   multicast: 2
   tx_aborted: 0
   tx_underrun: 0

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
mode DEFAULT group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  RX: bytes  packets  errors  dropped overrun mcast   
  1785166133 1184970  0   0   0   2   
  TX: bytes  packets  errors  dropped carrier collsns 
  39395440   570500   0   0   0   0  

  on the other side i see dropped packets, maybe flowcontrol-related?

  ethtool reports "Link partner advertised pause frame use: Symmetric"
  but maybe flowcontrol is not working...

  also driver reports flowcontrol is enabled...

  $ dmesg | grep r8169
  [0.939358] libphy: r8169: probed
  [0.939491] r8169 :03:00.0 eth0: RTL8168h/8111h, e4:b9:7a:f7:c4:8b, 
XID 541, IRQ 128
  [0.939492] r8169 :03:00.0 eth0: jumbo features [frames: 9200 bytes, 
tx checksumming: ko]
  [0.986853] r8169 :03:00.0 enp3s0: renamed from eth0
  [3.478981] Generic FE-GE Realtek PHY r8169-300:00: attached PHY driver 
[Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
  [3.591124] r8169 :03:00.0 enp3s0: Link is Down
  [7.171198] r8169 :03:00.0 enp3s0: Link is Up - 1Gbps/Full - flow 
control rx/tx

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: linux-image-5.4.0-29-generic 5.4.0-29.33
  ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30
  Uname: 

[Kernel-packages] [Bug 1880076] Re: ubuntu 20.4 - retransmitts with r8169

2020-07-16 Thread Jeremy Elson
In my case the bug is in the receiving direction. I see no problems with
transmitting.

Here is the output of lspci -vv (for only the ethernet controller in
question) on the broken system. Below, I have the output from the
working system.

Broken system:

01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 
PCI Express Gigabit Ethernet Controller (rev 15)
Subsystem: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI 
Express Gigabit Ethernet Controller
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- TAbort- SERR- TAbort- 
SERR- https://bugs.launchpad.net/bugs/1880076

Title:
  ubuntu 20.4 - retransmitts with r8169

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Hi,

  i run some network-tests (iperf3) and noticed massive retransmitts in
  ubuntu 20.4 with kernel 5.4.0-29. I'm using module r8169 for network-
  adapter

  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
  RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

  if i boot my ubuntu 18.4 and did same iperf-test (same hardware, same
  network configuration, other client is not rebooted) i have not these
  retransmitts.

  root@bpi-r2:~# iperf3 -c 192.168.0.21 
  
  Connecting to host 192.168.0.21, port 5201
  
  [  5] local 192.168.0.11 port 35702 connected to 192.168.0.21 port 5201   
  
  [ ID] Interval   Transfer Bitrate Retr  Cwnd  
  
  [  5]   0.00-1.00   sec  14.2 MBytes   119 Mbits/sec  337   14.1 KBytes   
  
  [  5]   1.00-2.00   sec  14.9 MBytes   125 Mbits/sec  331   14.1 KBytes   
  
  [  5]   2.00-3.00   sec  15.1 MBytes   126 Mbits/sec  296   19.8 KBytes   
  
  [  5]   3.00-4.00   sec  14.7 MBytes   124 Mbits/sec  314   14.1 KBytes   
  
  [  5]   4.00-5.00   sec  12.8 MBytes   107 Mbits/sec  259   14.1 KBytes   
  
  [  5]   5.00-6.01   sec  67.4 MBytes   560 Mbits/sec  137362 KBytes   
  
  [  5]   6.01-7.00   sec   111 MBytes   940 Mbits/sec0366 KBytes   
  
  [  5]   7.00-8.00   sec   112 MBytes   941 Mbits/sec0409 KBytes   
  
  [  5]   8.00-9.00   sec   112 MBytes   940 Mbits/sec0421 KBytes   
  
  [  5]   9.00-10.00  sec   112 MBytes   936 Mbits/sec0426 KBytes   
  
  - - - - - - - - - - - - - - - - - - - - - - - - - 
  
  [ ID] Interval   Transfer Bitrate Retr
  
  [  5]   0.00-10.00  sec   586 MBytes   491 Mbits/sec  1674 sender 
  
  [  5]   0.00-10.01  sec   585 MBytes   491 Mbits/sec  
receiver  

  
  iperf Done.

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  inet 192.168.0.21/24 brd 192.168.0.255 scope global dynamic noprefixroute 
enp3s0
 valid_lft 171856sec preferred_lft 171856sec
  inet6 fe80::781a:829f:5030:ad6a/64 scope link noprefixroute 
 valid_lft forever preferred_lft forever

  $ ethtool -S enp3s0 
  NIC statistics:
   tx_packets: 571053
   rx_packets: 1184934
   tx_errors: 0
   rx_errors: 0
   rx_missed: 1919  <<<
   align_errors: 0
   tx_single_collisions: 0
   tx_multi_collisions: 0
   unicast: 1184926
   broadcast: 6
   multicast: 2
   tx_aborted: 0
   tx_underrun: 0

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
mode DEFAULT group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  RX: bytes  packets  errors  dropped overrun mcast   
  1785166133 1184970  0   0   0   2   
  TX: bytes  packets  errors  dropped carrier collsns 
  39395440   570500   0   0   0   0  

  on the other side i see dropped packets, maybe flowcontrol-related?

  ethtool reports "Link partner advertised pause frame use: Symmetric"
  but maybe flowcontrol is not working...

  also driver reports flowcontrol is enabled...

  $ dmesg | grep r8169
  [0.939358] libphy: r8169: probed
  [0.939491] r8169 :03:00.0 eth0: RTL8168h/8111h, e4:b9:7a:f7:c4:8b, 
XID 541, IRQ 128
  [0.939492] r8169 :03:00.0 eth0: jumbo features [frames: 9200 bytes, 
tx checksumming: ko]
  [0.986853] r8169 :03:00.0 enp3s0: renamed from eth0
  [3.478981] Generic FE-GE Realtek PHY r8169-300:00: attached PHY driver 
[Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
  [3.591124] r8169 :03:00.0 enp3s0: Link is Down
  [7.171198] r8169 :03:00.0 enp3s0: Link is Up - 1Gbps/Full - flow 
control rx/tx

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: 

[Kernel-packages] [Bug 1880076] Re: ubuntu 20.4 - retransmitts with r8169

2020-07-16 Thread Heiner Kallweit
L1SubCtl1: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1-

This means ASPM sub-state 1.2 is enabled. This should not be the case
because the driver disables ASPM at probe time. Also there's no message
in dmesg that ASPM can't be controlled by OS. So this might be a BIOS
bug. This could also explain why there are not significantly more such
reports, as RTL8168h is a very common chip version.

Regarding the iperf log it's not clear whether it's rx or tx direction. If 
client is the system we talk about, then it's tx direction. Please run iperf 
also with the "-R" option.
Please also check with irq cialescing enabled: ethtool -C  rx-usecs 200 
tx-usecs 200

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1880076

Title:
  ubuntu 20.4 - retransmitts with r8169

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Hi,

  i run some network-tests (iperf3) and noticed massive retransmitts in
  ubuntu 20.4 with kernel 5.4.0-29. I'm using module r8169 for network-
  adapter

  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
  RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

  if i boot my ubuntu 18.4 and did same iperf-test (same hardware, same
  network configuration, other client is not rebooted) i have not these
  retransmitts.

  root@bpi-r2:~# iperf3 -c 192.168.0.21 
  
  Connecting to host 192.168.0.21, port 5201
  
  [  5] local 192.168.0.11 port 35702 connected to 192.168.0.21 port 5201   
  
  [ ID] Interval   Transfer Bitrate Retr  Cwnd  
  
  [  5]   0.00-1.00   sec  14.2 MBytes   119 Mbits/sec  337   14.1 KBytes   
  
  [  5]   1.00-2.00   sec  14.9 MBytes   125 Mbits/sec  331   14.1 KBytes   
  
  [  5]   2.00-3.00   sec  15.1 MBytes   126 Mbits/sec  296   19.8 KBytes   
  
  [  5]   3.00-4.00   sec  14.7 MBytes   124 Mbits/sec  314   14.1 KBytes   
  
  [  5]   4.00-5.00   sec  12.8 MBytes   107 Mbits/sec  259   14.1 KBytes   
  
  [  5]   5.00-6.01   sec  67.4 MBytes   560 Mbits/sec  137362 KBytes   
  
  [  5]   6.01-7.00   sec   111 MBytes   940 Mbits/sec0366 KBytes   
  
  [  5]   7.00-8.00   sec   112 MBytes   941 Mbits/sec0409 KBytes   
  
  [  5]   8.00-9.00   sec   112 MBytes   940 Mbits/sec0421 KBytes   
  
  [  5]   9.00-10.00  sec   112 MBytes   936 Mbits/sec0426 KBytes   
  
  - - - - - - - - - - - - - - - - - - - - - - - - - 
  
  [ ID] Interval   Transfer Bitrate Retr
  
  [  5]   0.00-10.00  sec   586 MBytes   491 Mbits/sec  1674 sender 
  
  [  5]   0.00-10.01  sec   585 MBytes   491 Mbits/sec  
receiver  

  
  iperf Done.

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  inet 192.168.0.21/24 brd 192.168.0.255 scope global dynamic noprefixroute 
enp3s0
 valid_lft 171856sec preferred_lft 171856sec
  inet6 fe80::781a:829f:5030:ad6a/64 scope link noprefixroute 
 valid_lft forever preferred_lft forever

  $ ethtool -S enp3s0 
  NIC statistics:
   tx_packets: 571053
   rx_packets: 1184934
   tx_errors: 0
   rx_errors: 0
   rx_missed: 1919  <<<
   align_errors: 0
   tx_single_collisions: 0
   tx_multi_collisions: 0
   unicast: 1184926
   broadcast: 6
   multicast: 2
   tx_aborted: 0
   tx_underrun: 0

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
mode DEFAULT group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  RX: bytes  packets  errors  dropped overrun mcast   
  1785166133 1184970  0   0   0   2   
  TX: bytes  packets  errors  dropped carrier collsns 
  39395440   570500   0   0   0   0  

  on the other side i see dropped packets, maybe flowcontrol-related?

  ethtool reports "Link partner advertised pause frame use: Symmetric"
  but maybe flowcontrol is not working...

  also driver reports flowcontrol is enabled...

  $ dmesg | grep r8169
  [0.939358] libphy: r8169: probed
  [0.939491] r8169 :03:00.0 eth0: RTL8168h/8111h, e4:b9:7a:f7:c4:8b, 
XID 541, IRQ 128
  [0.939492] r8169 :03:00.0 eth0: jumbo features [frames: 9200 bytes, 
tx checksumming: ko]
  [0.986853] r8169 :03:00.0 enp3s0: renamed from eth0
  [3.478981] Generic FE-GE Realtek PHY r8169-300:00: attached PHY driver 
[Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
  [3.591124] r8169 :03:00.0 enp3s0: Link is Down
  [7.171198] r8169 :03:00.0 enp3s0: Link is Up - 1Gbps/Full - flow 
control rx/tx

[Kernel-packages] [Bug 1880076] Re: ubuntu 20.4 - retransmitts with r8169

2020-07-16 Thread frank
frank@frank-G5-U20:~ 
$ uname -a
Linux frank-G5-U20 5.4.52-custom #1 SMP Thu Jul 16 19:16:51 CEST 2020 x86_64 
x86_64 x86_64 GNU/Linux
frank@frank-G5-U20:~ 
$ iperf3 -c 192.168.0.11
Connecting to host 192.168.0.11, port 5201
[  5] local 192.168.0.21 port 49482 connected to 192.168.0.11 port 5201
[ ID] Interval   Transfer Bitrate Retr  Cwnd
[  5]   0.00-1.00   sec  90.5 MBytes   759 Mbits/sec0411 KBytes   
[  5]   1.00-2.00   sec  90.5 MBytes   759 Mbits/sec0411 KBytes   
[  5]   2.00-3.00   sec  90.0 MBytes   755 Mbits/sec0411 KBytes   
[  5]   3.00-4.00   sec  89.9 MBytes   754 Mbits/sec0411 KBytes   
[  5]   4.00-5.00   sec  89.6 MBytes   752 Mbits/sec0411 KBytes   
[  5]   5.00-6.00   sec  90.4 MBytes   758 Mbits/sec0411 KBytes   
[  5]   6.00-7.00   sec   101 MBytes   848 Mbits/sec0433 KBytes   
[  5]   7.00-8.00   sec   103 MBytes   860 Mbits/sec0672 KBytes   
[  5]   8.00-9.00   sec  90.0 MBytes   755 Mbits/sec0672 KBytes   
[  5]   9.00-10.00  sec  90.0 MBytes   755 Mbits/sec0672 KBytes   
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval   Transfer Bitrate Retr
[  5]   0.00-10.00  sec   925 MBytes   776 Mbits/sec0 sender
[  5]   0.00-10.00  sec   920 MBytes   771 Mbits/sec  receiver

iperf Done.

at least no retransmitts...but not the best transmission speed (on 18.4
i had ~930Mbit/s)

will try before the first change in drivers/net/ethernet/realtek next

https://wiki.ubuntu.com/KernelTeam/GitKernelBuild
i used stable git-tree instead of mainline

git clone --single-branch --branch=linux-5.4.y
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

and had to disable secureboot because of wrong signature-message on
first boot...but at least easier than i thought...

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1880076

Title:
  ubuntu 20.4 - retransmitts with r8169

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Hi,

  i run some network-tests (iperf3) and noticed massive retransmitts in
  ubuntu 20.4 with kernel 5.4.0-29. I'm using module r8169 for network-
  adapter

  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
  RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

  if i boot my ubuntu 18.4 and did same iperf-test (same hardware, same
  network configuration, other client is not rebooted) i have not these
  retransmitts.

  root@bpi-r2:~# iperf3 -c 192.168.0.21 
  
  Connecting to host 192.168.0.21, port 5201
  
  [  5] local 192.168.0.11 port 35702 connected to 192.168.0.21 port 5201   
  
  [ ID] Interval   Transfer Bitrate Retr  Cwnd  
  
  [  5]   0.00-1.00   sec  14.2 MBytes   119 Mbits/sec  337   14.1 KBytes   
  
  [  5]   1.00-2.00   sec  14.9 MBytes   125 Mbits/sec  331   14.1 KBytes   
  
  [  5]   2.00-3.00   sec  15.1 MBytes   126 Mbits/sec  296   19.8 KBytes   
  
  [  5]   3.00-4.00   sec  14.7 MBytes   124 Mbits/sec  314   14.1 KBytes   
  
  [  5]   4.00-5.00   sec  12.8 MBytes   107 Mbits/sec  259   14.1 KBytes   
  
  [  5]   5.00-6.01   sec  67.4 MBytes   560 Mbits/sec  137362 KBytes   
  
  [  5]   6.01-7.00   sec   111 MBytes   940 Mbits/sec0366 KBytes   
  
  [  5]   7.00-8.00   sec   112 MBytes   941 Mbits/sec0409 KBytes   
  
  [  5]   8.00-9.00   sec   112 MBytes   940 Mbits/sec0421 KBytes   
  
  [  5]   9.00-10.00  sec   112 MBytes   936 Mbits/sec0426 KBytes   
  
  - - - - - - - - - - - - - - - - - - - - - - - - - 
  
  [ ID] Interval   Transfer Bitrate Retr
  
  [  5]   0.00-10.00  sec   586 MBytes   491 Mbits/sec  1674 sender 
  
  [  5]   0.00-10.01  sec   585 MBytes   491 Mbits/sec  
receiver  

  
  iperf Done.

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  inet 192.168.0.21/24 brd 192.168.0.255 scope global dynamic noprefixroute 
enp3s0
 valid_lft 171856sec preferred_lft 171856sec
  inet6 fe80::781a:829f:5030:ad6a/64 scope link noprefixroute 
 valid_lft forever preferred_lft forever

  $ ethtool -S enp3s0 
  NIC statistics:
   tx_packets: 571053
   rx_packets: 1184934
   tx_errors: 0
   rx_errors: 0
   rx_missed: 1919  <<<
   align_errors: 0
   tx_single_collisions: 0
   tx_multi_collisions: 0
   unicast: 1184926
   broadcast: 6
   multicast: 2
   

[Kernel-packages] [Bug 1880076] Re: ubuntu 20.4 - retransmitts with r8169

2020-07-16 Thread frank
sorry

03: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
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- https://bugs.launchpad.net/bugs/1880076

Title:
  ubuntu 20.4 - retransmitts with r8169

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Hi,

  i run some network-tests (iperf3) and noticed massive retransmitts in
  ubuntu 20.4 with kernel 5.4.0-29. I'm using module r8169 for network-
  adapter

  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
  RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

  if i boot my ubuntu 18.4 and did same iperf-test (same hardware, same
  network configuration, other client is not rebooted) i have not these
  retransmitts.

  root@bpi-r2:~# iperf3 -c 192.168.0.21 
  
  Connecting to host 192.168.0.21, port 5201
  
  [  5] local 192.168.0.11 port 35702 connected to 192.168.0.21 port 5201   
  
  [ ID] Interval   Transfer Bitrate Retr  Cwnd  
  
  [  5]   0.00-1.00   sec  14.2 MBytes   119 Mbits/sec  337   14.1 KBytes   
  
  [  5]   1.00-2.00   sec  14.9 MBytes   125 Mbits/sec  331   14.1 KBytes   
  
  [  5]   2.00-3.00   sec  15.1 MBytes   126 Mbits/sec  296   19.8 KBytes   
  
  [  5]   3.00-4.00   sec  14.7 MBytes   124 Mbits/sec  314   14.1 KBytes   
  
  [  5]   4.00-5.00   sec  12.8 MBytes   107 Mbits/sec  259   14.1 KBytes   
  
  [  5]   5.00-6.01   sec  67.4 MBytes   560 Mbits/sec  137362 KBytes   
  
  [  5]   6.01-7.00   sec   111 MBytes   940 Mbits/sec0366 KBytes   
  
  [  5]   7.00-8.00   sec   112 MBytes   941 Mbits/sec0409 KBytes   
  
  [  5]   8.00-9.00   sec   112 MBytes   940 Mbits/sec0421 KBytes   
  
  [  5]   9.00-10.00  sec   112 MBytes   936 Mbits/sec0426 KBytes   
  
  - - - - - - - - - - - - - - - - - - - - - - - - - 
  
  [ ID] Interval   Transfer Bitrate Retr
  
  [  5]   0.00-10.00  sec   586 MBytes   491 Mbits/sec  1674 sender 
  
  [  5]   0.00-10.01  sec   585 MBytes   491 Mbits/sec  
receiver  

  
  iperf Done.

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  inet 192.168.0.21/24 brd 192.168.0.255 scope global dynamic noprefixroute 
enp3s0
 valid_lft 171856sec preferred_lft 171856sec
  inet6 fe80::781a:829f:5030:ad6a/64 scope link noprefixroute 
 valid_lft forever preferred_lft forever

  $ ethtool -S enp3s0 
  NIC statistics:
   tx_packets: 571053
   rx_packets: 1184934
   tx_errors: 0
   rx_errors: 0
   rx_missed: 1919  <<<
   align_errors: 0
   tx_single_collisions: 0
   tx_multi_collisions: 0
   unicast: 1184926
   broadcast: 6
   multicast: 2
   tx_aborted: 0
   tx_underrun: 0

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
mode DEFAULT group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  RX: bytes  packets  errors  dropped overrun mcast   
  1785166133 1184970  0   0   0   2   
  TX: bytes  packets  errors  dropped carrier collsns 
  39395440   570500   0   0   0   0  

  on the other side i see dropped packets, maybe flowcontrol-related?

  ethtool reports "Link partner advertised pause frame use: Symmetric"
  but maybe flowcontrol is not working...

  also driver reports flowcontrol is enabled...

  $ dmesg | grep r8169
  [0.939358] libphy: r8169: probed
  [0.939491] r8169 :03:00.0 eth0: RTL8168h/8111h, e4:b9:7a:f7:c4:8b, 
XID 541, IRQ 128
  [0.939492] r8169 :03:00.0 eth0: jumbo features [frames: 9200 bytes, 
tx checksumming: ko]
  [0.986853] r8169 :03:00.0 enp3s0: renamed from eth0
  [3.478981] Generic FE-GE Realtek PHY r8169-300:00: attached PHY driver 
[Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
  [3.591124] r8169 :03:00.0 enp3s0: Link is Down
  [7.171198] r8169 :03:00.0 enp3s0: Link is Up - 1Gbps/Full - flow 
control rx/tx

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: linux-image-5.4.0-29-generic 5.4.0-29.33
  ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30
  Uname: Linux 5.4.0-29-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27
  Architecture: amd64
  AudioDevicesInUse:
   USERPID ACCESS COMMAND
   /dev/snd/controlC0:  frank  1427 F pulseaudio
  

[Kernel-packages] [Bug 1880076] Re: ubuntu 20.4 - retransmitts with r8169

2020-07-16 Thread Heiner Kallweit
The "lspci -vv" output misses the relevant part. Please execute the command as 
root.
The firmware hasn't changed for years, so this should not be the reason.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1880076

Title:
  ubuntu 20.4 - retransmitts with r8169

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Hi,

  i run some network-tests (iperf3) and noticed massive retransmitts in
  ubuntu 20.4 with kernel 5.4.0-29. I'm using module r8169 for network-
  adapter

  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
  RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

  if i boot my ubuntu 18.4 and did same iperf-test (same hardware, same
  network configuration, other client is not rebooted) i have not these
  retransmitts.

  root@bpi-r2:~# iperf3 -c 192.168.0.21 
  
  Connecting to host 192.168.0.21, port 5201
  
  [  5] local 192.168.0.11 port 35702 connected to 192.168.0.21 port 5201   
  
  [ ID] Interval   Transfer Bitrate Retr  Cwnd  
  
  [  5]   0.00-1.00   sec  14.2 MBytes   119 Mbits/sec  337   14.1 KBytes   
  
  [  5]   1.00-2.00   sec  14.9 MBytes   125 Mbits/sec  331   14.1 KBytes   
  
  [  5]   2.00-3.00   sec  15.1 MBytes   126 Mbits/sec  296   19.8 KBytes   
  
  [  5]   3.00-4.00   sec  14.7 MBytes   124 Mbits/sec  314   14.1 KBytes   
  
  [  5]   4.00-5.00   sec  12.8 MBytes   107 Mbits/sec  259   14.1 KBytes   
  
  [  5]   5.00-6.01   sec  67.4 MBytes   560 Mbits/sec  137362 KBytes   
  
  [  5]   6.01-7.00   sec   111 MBytes   940 Mbits/sec0366 KBytes   
  
  [  5]   7.00-8.00   sec   112 MBytes   941 Mbits/sec0409 KBytes   
  
  [  5]   8.00-9.00   sec   112 MBytes   940 Mbits/sec0421 KBytes   
  
  [  5]   9.00-10.00  sec   112 MBytes   936 Mbits/sec0426 KBytes   
  
  - - - - - - - - - - - - - - - - - - - - - - - - - 
  
  [ ID] Interval   Transfer Bitrate Retr
  
  [  5]   0.00-10.00  sec   586 MBytes   491 Mbits/sec  1674 sender 
  
  [  5]   0.00-10.01  sec   585 MBytes   491 Mbits/sec  
receiver  

  
  iperf Done.

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  inet 192.168.0.21/24 brd 192.168.0.255 scope global dynamic noprefixroute 
enp3s0
 valid_lft 171856sec preferred_lft 171856sec
  inet6 fe80::781a:829f:5030:ad6a/64 scope link noprefixroute 
 valid_lft forever preferred_lft forever

  $ ethtool -S enp3s0 
  NIC statistics:
   tx_packets: 571053
   rx_packets: 1184934
   tx_errors: 0
   rx_errors: 0
   rx_missed: 1919  <<<
   align_errors: 0
   tx_single_collisions: 0
   tx_multi_collisions: 0
   unicast: 1184926
   broadcast: 6
   multicast: 2
   tx_aborted: 0
   tx_underrun: 0

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
mode DEFAULT group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  RX: bytes  packets  errors  dropped overrun mcast   
  1785166133 1184970  0   0   0   2   
  TX: bytes  packets  errors  dropped carrier collsns 
  39395440   570500   0   0   0   0  

  on the other side i see dropped packets, maybe flowcontrol-related?

  ethtool reports "Link partner advertised pause frame use: Symmetric"
  but maybe flowcontrol is not working...

  also driver reports flowcontrol is enabled...

  $ dmesg | grep r8169
  [0.939358] libphy: r8169: probed
  [0.939491] r8169 :03:00.0 eth0: RTL8168h/8111h, e4:b9:7a:f7:c4:8b, 
XID 541, IRQ 128
  [0.939492] r8169 :03:00.0 eth0: jumbo features [frames: 9200 bytes, 
tx checksumming: ko]
  [0.986853] r8169 :03:00.0 enp3s0: renamed from eth0
  [3.478981] Generic FE-GE Realtek PHY r8169-300:00: attached PHY driver 
[Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
  [3.591124] r8169 :03:00.0 enp3s0: Link is Down
  [7.171198] r8169 :03:00.0 enp3s0: Link is Up - 1Gbps/Full - flow 
control rx/tx

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: linux-image-5.4.0-29-generic 5.4.0-29.33
  ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30
  Uname: Linux 5.4.0-29-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27
  Architecture: amd64
  AudioDevicesInUse:
   USERPID ACCESS COMMAND
   /dev/snd/controlC0:  frank  1427 F pulseaudio
  CasperMD5CheckResult: skip
  CurrentDesktop: GNOME-Flashback:GNOME
  Date: Fri May 22 06:49:34 2020
  InstallationDate: Installed on 

[Kernel-packages] [Bug 1880076] Re: ubuntu 20.4 - retransmitts with r8169

2020-07-16 Thread frank
btw. it looks like i have a rtl8168h as lshw report this firmware to be
loaded

firmware=rtl8168h-2_0.0.2

that matches with jeremy's test...there was also 8168h affected

can be the firmware also be the case? how can i load firmware from 18.4?

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1880076

Title:
  ubuntu 20.4 - retransmitts with r8169

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Hi,

  i run some network-tests (iperf3) and noticed massive retransmitts in
  ubuntu 20.4 with kernel 5.4.0-29. I'm using module r8169 for network-
  adapter

  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
  RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

  if i boot my ubuntu 18.4 and did same iperf-test (same hardware, same
  network configuration, other client is not rebooted) i have not these
  retransmitts.

  root@bpi-r2:~# iperf3 -c 192.168.0.21 
  
  Connecting to host 192.168.0.21, port 5201
  
  [  5] local 192.168.0.11 port 35702 connected to 192.168.0.21 port 5201   
  
  [ ID] Interval   Transfer Bitrate Retr  Cwnd  
  
  [  5]   0.00-1.00   sec  14.2 MBytes   119 Mbits/sec  337   14.1 KBytes   
  
  [  5]   1.00-2.00   sec  14.9 MBytes   125 Mbits/sec  331   14.1 KBytes   
  
  [  5]   2.00-3.00   sec  15.1 MBytes   126 Mbits/sec  296   19.8 KBytes   
  
  [  5]   3.00-4.00   sec  14.7 MBytes   124 Mbits/sec  314   14.1 KBytes   
  
  [  5]   4.00-5.00   sec  12.8 MBytes   107 Mbits/sec  259   14.1 KBytes   
  
  [  5]   5.00-6.01   sec  67.4 MBytes   560 Mbits/sec  137362 KBytes   
  
  [  5]   6.01-7.00   sec   111 MBytes   940 Mbits/sec0366 KBytes   
  
  [  5]   7.00-8.00   sec   112 MBytes   941 Mbits/sec0409 KBytes   
  
  [  5]   8.00-9.00   sec   112 MBytes   940 Mbits/sec0421 KBytes   
  
  [  5]   9.00-10.00  sec   112 MBytes   936 Mbits/sec0426 KBytes   
  
  - - - - - - - - - - - - - - - - - - - - - - - - - 
  
  [ ID] Interval   Transfer Bitrate Retr
  
  [  5]   0.00-10.00  sec   586 MBytes   491 Mbits/sec  1674 sender 
  
  [  5]   0.00-10.01  sec   585 MBytes   491 Mbits/sec  
receiver  

  
  iperf Done.

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  inet 192.168.0.21/24 brd 192.168.0.255 scope global dynamic noprefixroute 
enp3s0
 valid_lft 171856sec preferred_lft 171856sec
  inet6 fe80::781a:829f:5030:ad6a/64 scope link noprefixroute 
 valid_lft forever preferred_lft forever

  $ ethtool -S enp3s0 
  NIC statistics:
   tx_packets: 571053
   rx_packets: 1184934
   tx_errors: 0
   rx_errors: 0
   rx_missed: 1919  <<<
   align_errors: 0
   tx_single_collisions: 0
   tx_multi_collisions: 0
   unicast: 1184926
   broadcast: 6
   multicast: 2
   tx_aborted: 0
   tx_underrun: 0

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
mode DEFAULT group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  RX: bytes  packets  errors  dropped overrun mcast   
  1785166133 1184970  0   0   0   2   
  TX: bytes  packets  errors  dropped carrier collsns 
  39395440   570500   0   0   0   0  

  on the other side i see dropped packets, maybe flowcontrol-related?

  ethtool reports "Link partner advertised pause frame use: Symmetric"
  but maybe flowcontrol is not working...

  also driver reports flowcontrol is enabled...

  $ dmesg | grep r8169
  [0.939358] libphy: r8169: probed
  [0.939491] r8169 :03:00.0 eth0: RTL8168h/8111h, e4:b9:7a:f7:c4:8b, 
XID 541, IRQ 128
  [0.939492] r8169 :03:00.0 eth0: jumbo features [frames: 9200 bytes, 
tx checksumming: ko]
  [0.986853] r8169 :03:00.0 enp3s0: renamed from eth0
  [3.478981] Generic FE-GE Realtek PHY r8169-300:00: attached PHY driver 
[Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
  [3.591124] r8169 :03:00.0 enp3s0: Link is Down
  [7.171198] r8169 :03:00.0 enp3s0: Link is Up - 1Gbps/Full - flow 
control rx/tx

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: linux-image-5.4.0-29-generic 5.4.0-29.33
  ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30
  Uname: Linux 5.4.0-29-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27
  Architecture: amd64
  AudioDevicesInUse:
   USERPID ACCESS COMMAND
   /dev/snd/controlC0:  frank  1427 F pulseaudio
  CasperMD5CheckResult: skip
  CurrentDesktop: 

[Kernel-packages] [Bug 1880076] Re: ubuntu 20.4 - retransmitts with r8169

2020-07-16 Thread frank
i did not find any bios-setting regarding pcie/aspm and no "expert-mode"
to get more settings

also the "powercfg /energy" command in windows does not print any
helpful information

if i can builtin all needed drivers (localmodconfig),maybe i can use
tftp with grub anyhow (if i know how to configure it)?

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1880076

Title:
  ubuntu 20.4 - retransmitts with r8169

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Hi,

  i run some network-tests (iperf3) and noticed massive retransmitts in
  ubuntu 20.4 with kernel 5.4.0-29. I'm using module r8169 for network-
  adapter

  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
  RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

  if i boot my ubuntu 18.4 and did same iperf-test (same hardware, same
  network configuration, other client is not rebooted) i have not these
  retransmitts.

  root@bpi-r2:~# iperf3 -c 192.168.0.21 
  
  Connecting to host 192.168.0.21, port 5201
  
  [  5] local 192.168.0.11 port 35702 connected to 192.168.0.21 port 5201   
  
  [ ID] Interval   Transfer Bitrate Retr  Cwnd  
  
  [  5]   0.00-1.00   sec  14.2 MBytes   119 Mbits/sec  337   14.1 KBytes   
  
  [  5]   1.00-2.00   sec  14.9 MBytes   125 Mbits/sec  331   14.1 KBytes   
  
  [  5]   2.00-3.00   sec  15.1 MBytes   126 Mbits/sec  296   19.8 KBytes   
  
  [  5]   3.00-4.00   sec  14.7 MBytes   124 Mbits/sec  314   14.1 KBytes   
  
  [  5]   4.00-5.00   sec  12.8 MBytes   107 Mbits/sec  259   14.1 KBytes   
  
  [  5]   5.00-6.01   sec  67.4 MBytes   560 Mbits/sec  137362 KBytes   
  
  [  5]   6.01-7.00   sec   111 MBytes   940 Mbits/sec0366 KBytes   
  
  [  5]   7.00-8.00   sec   112 MBytes   941 Mbits/sec0409 KBytes   
  
  [  5]   8.00-9.00   sec   112 MBytes   940 Mbits/sec0421 KBytes   
  
  [  5]   9.00-10.00  sec   112 MBytes   936 Mbits/sec0426 KBytes   
  
  - - - - - - - - - - - - - - - - - - - - - - - - - 
  
  [ ID] Interval   Transfer Bitrate Retr
  
  [  5]   0.00-10.00  sec   586 MBytes   491 Mbits/sec  1674 sender 
  
  [  5]   0.00-10.01  sec   585 MBytes   491 Mbits/sec  
receiver  

  
  iperf Done.

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  inet 192.168.0.21/24 brd 192.168.0.255 scope global dynamic noprefixroute 
enp3s0
 valid_lft 171856sec preferred_lft 171856sec
  inet6 fe80::781a:829f:5030:ad6a/64 scope link noprefixroute 
 valid_lft forever preferred_lft forever

  $ ethtool -S enp3s0 
  NIC statistics:
   tx_packets: 571053
   rx_packets: 1184934
   tx_errors: 0
   rx_errors: 0
   rx_missed: 1919  <<<
   align_errors: 0
   tx_single_collisions: 0
   tx_multi_collisions: 0
   unicast: 1184926
   broadcast: 6
   multicast: 2
   tx_aborted: 0
   tx_underrun: 0

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
mode DEFAULT group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  RX: bytes  packets  errors  dropped overrun mcast   
  1785166133 1184970  0   0   0   2   
  TX: bytes  packets  errors  dropped carrier collsns 
  39395440   570500   0   0   0   0  

  on the other side i see dropped packets, maybe flowcontrol-related?

  ethtool reports "Link partner advertised pause frame use: Symmetric"
  but maybe flowcontrol is not working...

  also driver reports flowcontrol is enabled...

  $ dmesg | grep r8169
  [0.939358] libphy: r8169: probed
  [0.939491] r8169 :03:00.0 eth0: RTL8168h/8111h, e4:b9:7a:f7:c4:8b, 
XID 541, IRQ 128
  [0.939492] r8169 :03:00.0 eth0: jumbo features [frames: 9200 bytes, 
tx checksumming: ko]
  [0.986853] r8169 :03:00.0 enp3s0: renamed from eth0
  [3.478981] Generic FE-GE Realtek PHY r8169-300:00: attached PHY driver 
[Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
  [3.591124] r8169 :03:00.0 enp3s0: Link is Down
  [7.171198] r8169 :03:00.0 enp3s0: Link is Up - 1Gbps/Full - flow 
control rx/tx

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: linux-image-5.4.0-29-generic 5.4.0-29.33
  ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30
  Uname: Linux 5.4.0-29-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27
  Architecture: amd64
  AudioDevicesInUse:
   USERPID ACCESS COMMAND
   /dev/snd/controlC0:  frank  1427 F 

[Kernel-packages] [Bug 1880076] Re: ubuntu 20.4 - retransmitts with r8169

2020-07-16 Thread frank
lspci -vv (20.4)

03: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
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- 
Kernel driver in use: r8169
Kernel modules: r8169

i guess aspm (bios-setting) is not the reason because 18.4 works on same
laptop without changing this setting. i can look in bios if it is
enabled and disabling it, but this do not explain different behaviour in
18.4 vs. 20.4

i can do a git bisect if i know how to compile/install kernel in ubuntu
the save way (deb-packet) from mainline (git) source. i compile kernel
for arm (and know pkg-deb option for make) but i need to know if ubuntu
has any difference (registering in grub) before i destroy my working
system ;)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1880076

Title:
  ubuntu 20.4 - retransmitts with r8169

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Hi,

  i run some network-tests (iperf3) and noticed massive retransmitts in
  ubuntu 20.4 with kernel 5.4.0-29. I'm using module r8169 for network-
  adapter

  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
  RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

  if i boot my ubuntu 18.4 and did same iperf-test (same hardware, same
  network configuration, other client is not rebooted) i have not these
  retransmitts.

  root@bpi-r2:~# iperf3 -c 192.168.0.21 
  
  Connecting to host 192.168.0.21, port 5201
  
  [  5] local 192.168.0.11 port 35702 connected to 192.168.0.21 port 5201   
  
  [ ID] Interval   Transfer Bitrate Retr  Cwnd  
  
  [  5]   0.00-1.00   sec  14.2 MBytes   119 Mbits/sec  337   14.1 KBytes   
  
  [  5]   1.00-2.00   sec  14.9 MBytes   125 Mbits/sec  331   14.1 KBytes   
  
  [  5]   2.00-3.00   sec  15.1 MBytes   126 Mbits/sec  296   19.8 KBytes   
  
  [  5]   3.00-4.00   sec  14.7 MBytes   124 Mbits/sec  314   14.1 KBytes   
  
  [  5]   4.00-5.00   sec  12.8 MBytes   107 Mbits/sec  259   14.1 KBytes   
  
  [  5]   5.00-6.01   sec  67.4 MBytes   560 Mbits/sec  137362 KBytes   
  
  [  5]   6.01-7.00   sec   111 MBytes   940 Mbits/sec0366 KBytes   
  
  [  5]   7.00-8.00   sec   112 MBytes   941 Mbits/sec0409 KBytes   
  
  [  5]   8.00-9.00   sec   112 MBytes   940 Mbits/sec0421 KBytes   
  
  [  5]   9.00-10.00  sec   112 MBytes   936 Mbits/sec0426 KBytes   
  
  - - - - - - - - - - - - - - - - - - - - - - - - - 
  
  [ ID] Interval   Transfer Bitrate Retr
  
  [  5]   0.00-10.00  sec   586 MBytes   491 Mbits/sec  1674 sender 
  
  [  5]   0.00-10.01  sec   585 MBytes   491 Mbits/sec  
receiver  

  
  iperf Done.

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  inet 192.168.0.21/24 brd 192.168.0.255 scope global dynamic noprefixroute 
enp3s0
 valid_lft 171856sec preferred_lft 171856sec
  inet6 fe80::781a:829f:5030:ad6a/64 scope link noprefixroute 
 valid_lft forever preferred_lft forever

  $ ethtool -S enp3s0 
  NIC statistics:
   tx_packets: 571053
   rx_packets: 1184934
   tx_errors: 0
   rx_errors: 0
   rx_missed: 1919  <<<
   align_errors: 0
   tx_single_collisions: 0
   tx_multi_collisions: 0
   unicast: 1184926
   broadcast: 6
   multicast: 2
   tx_aborted: 0
   tx_underrun: 0

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
mode DEFAULT group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  RX: bytes  packets  errors  dropped overrun mcast   
  1785166133 1184970  0   0   0   2   
  TX: bytes  packets  errors  dropped carrier collsns 
  39395440   570500   0   0   0   0  

  on the other side i see dropped packets, maybe flowcontrol-related?

  ethtool reports "Link partner advertised pause frame use: Symmetric"
  but maybe flowcontrol is not working...

  also driver reports flowcontrol is enabled...

  $ dmesg | grep r8169
  [0.939358] libphy: r8169: probed
  [0.939491] r8169 :03:00.0 eth0: RTL8168h/8111h, e4:b9:7a:f7:c4:8b, 
XID 541, IRQ 128
  [0.939492] r8169 :03:00.0 eth0: jumbo features [frames: 9200 bytes, 
tx checksumming: ko]
  [

[Kernel-packages] [Bug 1880076] Re: ubuntu 20.4 - retransmitts with r8169

2020-07-16 Thread Heiner Kallweit
Main reason of missed rx packets is ASPM issues. Helpful would be the
output of "lspci -vv" to see whether the ASPM L1 sub-states are enabled.

What you can also try:
- Change ASPM settings in BIOS
- Comment out the following in rtl_hw_start_8168h_1:
  rtl_hw_aspm_clkreq_enable(tp, true);
- Play with rx interrupt coalescing (see ethtool -C)

I also have a system with RTL8168h and don't face the decribed issue. So
it seems to be system-dependent.

Appreciated would be a git bisect between last known good and current version.
As mentioned before there have been quite some changes to r8169, and manually 
reverting some of them + testing would be a cumbersome work.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1880076

Title:
  ubuntu 20.4 - retransmitts with r8169

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Hi,

  i run some network-tests (iperf3) and noticed massive retransmitts in
  ubuntu 20.4 with kernel 5.4.0-29. I'm using module r8169 for network-
  adapter

  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
  RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

  if i boot my ubuntu 18.4 and did same iperf-test (same hardware, same
  network configuration, other client is not rebooted) i have not these
  retransmitts.

  root@bpi-r2:~# iperf3 -c 192.168.0.21 
  
  Connecting to host 192.168.0.21, port 5201
  
  [  5] local 192.168.0.11 port 35702 connected to 192.168.0.21 port 5201   
  
  [ ID] Interval   Transfer Bitrate Retr  Cwnd  
  
  [  5]   0.00-1.00   sec  14.2 MBytes   119 Mbits/sec  337   14.1 KBytes   
  
  [  5]   1.00-2.00   sec  14.9 MBytes   125 Mbits/sec  331   14.1 KBytes   
  
  [  5]   2.00-3.00   sec  15.1 MBytes   126 Mbits/sec  296   19.8 KBytes   
  
  [  5]   3.00-4.00   sec  14.7 MBytes   124 Mbits/sec  314   14.1 KBytes   
  
  [  5]   4.00-5.00   sec  12.8 MBytes   107 Mbits/sec  259   14.1 KBytes   
  
  [  5]   5.00-6.01   sec  67.4 MBytes   560 Mbits/sec  137362 KBytes   
  
  [  5]   6.01-7.00   sec   111 MBytes   940 Mbits/sec0366 KBytes   
  
  [  5]   7.00-8.00   sec   112 MBytes   941 Mbits/sec0409 KBytes   
  
  [  5]   8.00-9.00   sec   112 MBytes   940 Mbits/sec0421 KBytes   
  
  [  5]   9.00-10.00  sec   112 MBytes   936 Mbits/sec0426 KBytes   
  
  - - - - - - - - - - - - - - - - - - - - - - - - - 
  
  [ ID] Interval   Transfer Bitrate Retr
  
  [  5]   0.00-10.00  sec   586 MBytes   491 Mbits/sec  1674 sender 
  
  [  5]   0.00-10.01  sec   585 MBytes   491 Mbits/sec  
receiver  

  
  iperf Done.

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  inet 192.168.0.21/24 brd 192.168.0.255 scope global dynamic noprefixroute 
enp3s0
 valid_lft 171856sec preferred_lft 171856sec
  inet6 fe80::781a:829f:5030:ad6a/64 scope link noprefixroute 
 valid_lft forever preferred_lft forever

  $ ethtool -S enp3s0 
  NIC statistics:
   tx_packets: 571053
   rx_packets: 1184934
   tx_errors: 0
   rx_errors: 0
   rx_missed: 1919  <<<
   align_errors: 0
   tx_single_collisions: 0
   tx_multi_collisions: 0
   unicast: 1184926
   broadcast: 6
   multicast: 2
   tx_aborted: 0
   tx_underrun: 0

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
mode DEFAULT group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  RX: bytes  packets  errors  dropped overrun mcast   
  1785166133 1184970  0   0   0   2   
  TX: bytes  packets  errors  dropped carrier collsns 
  39395440   570500   0   0   0   0  

  on the other side i see dropped packets, maybe flowcontrol-related?

  ethtool reports "Link partner advertised pause frame use: Symmetric"
  but maybe flowcontrol is not working...

  also driver reports flowcontrol is enabled...

  $ dmesg | grep r8169
  [0.939358] libphy: r8169: probed
  [0.939491] r8169 :03:00.0 eth0: RTL8168h/8111h, e4:b9:7a:f7:c4:8b, 
XID 541, IRQ 128
  [0.939492] r8169 :03:00.0 eth0: jumbo features [frames: 9200 bytes, 
tx checksumming: ko]
  [0.986853] r8169 :03:00.0 enp3s0: renamed from eth0
  [3.478981] Generic FE-GE Realtek PHY r8169-300:00: attached PHY driver 
[Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
  [3.591124] r8169 :03:00.0 enp3s0: Link is Down
  [7.171198] r8169 :03:00.0 enp3s0: Link is Up - 1Gbps/Full - flow 

[Kernel-packages] [Bug 1880076] Re: ubuntu 20.4 - retransmitts with r8169

2020-07-16 Thread frank
between 5.3 and 5.4 there are many changes in
drivers/net/ethernet/realtek

$ git log --format="%h %cd %s" --date=short 5.3-main..5.4-main -- 
drivers/net/ethernet/realtek/
44ee727013d5 2020-05-20 r8169: re-establish support for RTL8401 chip version
74107d56d1e8 2020-04-13 r8169: change back SG and TSO to be disabled by default
791c420f4228 2020-04-01 r8169: fix PHY driver check on platforms w/o module 
softdeps
4cc2498b7ebb 2020-04-01 r8169: re-enable MSI on RTL8168c
58bc57b373e0 2020-02-24 r8169: check that Realtek PHY driver module is loaded
0ed50cdcb505 2019-12-31 r8169: respect EEE user setting when restarting network
68159412b26e 2019-12-18 r8169: add missing RX enabling for WoL on RTL8125
dc63e75e19d3 2019-12-17 r8169: fix rtl_hw_jumbo_disable for RTL8168evl
2840e52f679a 2019-12-04 r8169: fix resume on cable plug-in
c07fd3caadc3 2019-12-04 r8169: fix jumbo configuration for RTL8168evl
a0783cd0c810 2019-11-19 r8169: disable TSO on a single version of RTL8168c to 
fix performance
9c6850fea3ed 2019-11-06 r8169: fix page read in r8168g_mdio_read
62bdc8fd1c21 2019-11-01 r8169: fix wrong PHY ID issue with RTL8168dp
4ebcb113edcc 2019-10-10 r8169: fix jumbo packet handling on resume from suspend
299d14d4c31a 2019-09-23 Merge tag 'pci-v5.4-changes' of 
git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci
dc161162e42c 2019-09-01 r8169: don't set bit RxVlan on RTL8125
b3a42e3a78ce 2019-08-29 r8169: add support for EEE on RTL8125
02bf642b188a 2019-08-29 r8169: add RTL8125 PHY initialization
f1bce4ad2f1c 2019-08-29 r8169: add support for RTL8125
ae84bc187337 2019-08-29 r8169: don't use bit LastFrag in tx descriptor after 
send
7366016d2d4c 2019-08-29 r8169: read common register for PCI commit
bcf2b868a5ae 2019-08-29 r8169: move disabling interrupt coalescing to 
RTL8169/RTL8168 init
ce37115e3a57 2019-08-29 r8169: factor out reading MAC address from registers
c623305bf465 2019-08-29 r8169: restrict rtl_is_8168evl_up to RTL8168 chip 
versions
c1d532d268cb 2019-08-29 r8169: change interrupt mask type to u32
7ce2e76a0420 2019-08-28 PCI: Move ASPM declarations to linux/pci.h
3c95e5013b7f 2019-08-26 r8169: improve DMA handling in rtl_rx
d4ed7463d02a 2019-08-23 r8169: fix DMA issue on MIPS platform
b6cef26fb909 2019-08-15 r8169: sync EEE handling for RTL8168h with vendor driver
2e779ddb5617 2019-08-15 r8169: use the generic EEE management functions
4773f9bdb476 2019-08-14 r8169: fix sporadic transmit timeout issue
eb2e7f092271 2019-08-11 r8169: inline rtl8169_free_rx_databuff
a7eb6a4f2560 2019-08-09 r8169: fix performance issue on RTL8168evl
32879f000120 2019-08-08 r8169: allocate rx buffers using alloc_pages_node
13dfb3fa4943 2019-08-06 Merge 
git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
a7a92cf81589 2019-08-06 r8169: sync PCIe PHY init with vendor driver 8.047.01
ef712ede3541 2019-08-06 r8169: add helper r8168_mac_ocp_modify
a14cc4d24a64 2019-08-06 r8169: remove access to legacy register MultiIntr
ef14358546b1 2019-07-29 r8169: make use of xmit_more
93681cd7d94f 2019-07-27 r8169: enable HW csum and TSO
96ea772ef241 2019-07-27 r8169: remove r8169_csum_workaround
e64e0c897499 2019-07-27 r8169: implement callback ndo_features_check
0170d594ded8 2019-07-27 r8169: set GSO size and segment limits
edcde3ee579b 2019-07-27 r8169: align setting PME with vendor driver
81cd17a4121d 2019-07-24 r8169: improve rtl_set_rx_mode
ed72a9bb9af0 2019-07-24 r8169: fix a typo in a comment
fcd4e60885af 2019-07-22 r8169: improve rtl_rx

some changes that may break on a quick diff:

static void rtl8169_irq_mask_and_ack(struct rtl8169_private *tp)
 {
rtl_irq_disable(tp);
-   rtl_ack_events(tp, 0x);
+   rtl_ack_events(tp, 0x);


 static void rtl_set_rx_mode(struct net_device *dev)
 {
+   u32 rx_mode = AcceptBroadcast | AcceptMyPhys | AcceptMulticast;
+   /* Multicast hash filter */
+   u32 mc_filter[2] = { 0x, 0x };
struct rtl8169_private *tp = netdev_priv(dev);
-   u32 mc_filter[2];   /* Multicast hash filter */
-   int rx_mode;
-   u32 tmp = 0;
+   u32 tmp;



static void rtl_hw_start_*

-   if (tp->dev->mtu <= ETH_DATA_LEN)
-   rtl_tx_performance_tweak(tp, PCI_EXP_DEVCTL_READRQ_4096B);

if we can compile a kernel directly from kernel.org we can revert some
of these commits and test which one is causing that issue. but i found
not yet a manual how to compile using mainline-sources directly.

config is (at least in 18.4) /boot/config-5.3.0-59-generic

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1880076

Title:
  ubuntu 20.4 - retransmitts with r8169

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Hi,

  i run some network-tests (iperf3) and noticed massive retransmitts in
  ubuntu 20.4 with kernel 5.4.0-29. I'm using module r8169 for network-
  adapter

  03:00.0 Ethernet controller: Realtek 

[Kernel-packages] [Bug 1880076] Re: ubuntu 20.4 - retransmitts with r8169

2020-07-16 Thread frank
@jeremy
Thanks for confirming.

Is it possible to install 18.4 kernel (afair i used 5.3) in 20.4? If the
problem is gone (i guess so) we have only compare 2 major versions. Are
there any Patches from ubuntu on top of 5.3 (18.4) and 5.4 (20.4)? If
not problem is in mainline source...is the above mainline-kernel
untouched?

How can i build mainle kernel (without ubuntu patches,but same config)
from git.kernel.org?

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1880076

Title:
  ubuntu 20.4 - retransmitts with r8169

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Hi,

  i run some network-tests (iperf3) and noticed massive retransmitts in
  ubuntu 20.4 with kernel 5.4.0-29. I'm using module r8169 for network-
  adapter

  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
  RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

  if i boot my ubuntu 18.4 and did same iperf-test (same hardware, same
  network configuration, other client is not rebooted) i have not these
  retransmitts.

  root@bpi-r2:~# iperf3 -c 192.168.0.21 
  
  Connecting to host 192.168.0.21, port 5201
  
  [  5] local 192.168.0.11 port 35702 connected to 192.168.0.21 port 5201   
  
  [ ID] Interval   Transfer Bitrate Retr  Cwnd  
  
  [  5]   0.00-1.00   sec  14.2 MBytes   119 Mbits/sec  337   14.1 KBytes   
  
  [  5]   1.00-2.00   sec  14.9 MBytes   125 Mbits/sec  331   14.1 KBytes   
  
  [  5]   2.00-3.00   sec  15.1 MBytes   126 Mbits/sec  296   19.8 KBytes   
  
  [  5]   3.00-4.00   sec  14.7 MBytes   124 Mbits/sec  314   14.1 KBytes   
  
  [  5]   4.00-5.00   sec  12.8 MBytes   107 Mbits/sec  259   14.1 KBytes   
  
  [  5]   5.00-6.01   sec  67.4 MBytes   560 Mbits/sec  137362 KBytes   
  
  [  5]   6.01-7.00   sec   111 MBytes   940 Mbits/sec0366 KBytes   
  
  [  5]   7.00-8.00   sec   112 MBytes   941 Mbits/sec0409 KBytes   
  
  [  5]   8.00-9.00   sec   112 MBytes   940 Mbits/sec0421 KBytes   
  
  [  5]   9.00-10.00  sec   112 MBytes   936 Mbits/sec0426 KBytes   
  
  - - - - - - - - - - - - - - - - - - - - - - - - - 
  
  [ ID] Interval   Transfer Bitrate Retr
  
  [  5]   0.00-10.00  sec   586 MBytes   491 Mbits/sec  1674 sender 
  
  [  5]   0.00-10.01  sec   585 MBytes   491 Mbits/sec  
receiver  

  
  iperf Done.

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  inet 192.168.0.21/24 brd 192.168.0.255 scope global dynamic noprefixroute 
enp3s0
 valid_lft 171856sec preferred_lft 171856sec
  inet6 fe80::781a:829f:5030:ad6a/64 scope link noprefixroute 
 valid_lft forever preferred_lft forever

  $ ethtool -S enp3s0 
  NIC statistics:
   tx_packets: 571053
   rx_packets: 1184934
   tx_errors: 0
   rx_errors: 0
   rx_missed: 1919  <<<
   align_errors: 0
   tx_single_collisions: 0
   tx_multi_collisions: 0
   unicast: 1184926
   broadcast: 6
   multicast: 2
   tx_aborted: 0
   tx_underrun: 0

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
mode DEFAULT group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  RX: bytes  packets  errors  dropped overrun mcast   
  1785166133 1184970  0   0   0   2   
  TX: bytes  packets  errors  dropped carrier collsns 
  39395440   570500   0   0   0   0  

  on the other side i see dropped packets, maybe flowcontrol-related?

  ethtool reports "Link partner advertised pause frame use: Symmetric"
  but maybe flowcontrol is not working...

  also driver reports flowcontrol is enabled...

  $ dmesg | grep r8169
  [0.939358] libphy: r8169: probed
  [0.939491] r8169 :03:00.0 eth0: RTL8168h/8111h, e4:b9:7a:f7:c4:8b, 
XID 541, IRQ 128
  [0.939492] r8169 :03:00.0 eth0: jumbo features [frames: 9200 bytes, 
tx checksumming: ko]
  [0.986853] r8169 :03:00.0 enp3s0: renamed from eth0
  [3.478981] Generic FE-GE Realtek PHY r8169-300:00: attached PHY driver 
[Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
  [3.591124] r8169 :03:00.0 enp3s0: Link is Down
  [7.171198] r8169 :03:00.0 enp3s0: Link is Up - 1Gbps/Full - flow 
control rx/tx

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: linux-image-5.4.0-29-generic 5.4.0-29.33
  ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30
  Uname: Linux 5.4.0-29-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27
  

[Kernel-packages] [Bug 1880076] Re: ubuntu 20.4 - retransmitts with r8169

2020-07-15 Thread Jeremy Elson
Re comment #4, I installed the latest kernel and am still having the
same issue.  Kernel used:

5.8.0-050800rc5-generic #202007140715 SMP Tue Jul 14 11:18:29 UTC 2020
x86_64 x86_64 x86_64 GNU/Linux

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1880076

Title:
  ubuntu 20.4 - retransmitts with r8169

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Hi,

  i run some network-tests (iperf3) and noticed massive retransmitts in
  ubuntu 20.4 with kernel 5.4.0-29. I'm using module r8169 for network-
  adapter

  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
  RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

  if i boot my ubuntu 18.4 and did same iperf-test (same hardware, same
  network configuration, other client is not rebooted) i have not these
  retransmitts.

  root@bpi-r2:~# iperf3 -c 192.168.0.21 
  
  Connecting to host 192.168.0.21, port 5201
  
  [  5] local 192.168.0.11 port 35702 connected to 192.168.0.21 port 5201   
  
  [ ID] Interval   Transfer Bitrate Retr  Cwnd  
  
  [  5]   0.00-1.00   sec  14.2 MBytes   119 Mbits/sec  337   14.1 KBytes   
  
  [  5]   1.00-2.00   sec  14.9 MBytes   125 Mbits/sec  331   14.1 KBytes   
  
  [  5]   2.00-3.00   sec  15.1 MBytes   126 Mbits/sec  296   19.8 KBytes   
  
  [  5]   3.00-4.00   sec  14.7 MBytes   124 Mbits/sec  314   14.1 KBytes   
  
  [  5]   4.00-5.00   sec  12.8 MBytes   107 Mbits/sec  259   14.1 KBytes   
  
  [  5]   5.00-6.01   sec  67.4 MBytes   560 Mbits/sec  137362 KBytes   
  
  [  5]   6.01-7.00   sec   111 MBytes   940 Mbits/sec0366 KBytes   
  
  [  5]   7.00-8.00   sec   112 MBytes   941 Mbits/sec0409 KBytes   
  
  [  5]   8.00-9.00   sec   112 MBytes   940 Mbits/sec0421 KBytes   
  
  [  5]   9.00-10.00  sec   112 MBytes   936 Mbits/sec0426 KBytes   
  
  - - - - - - - - - - - - - - - - - - - - - - - - - 
  
  [ ID] Interval   Transfer Bitrate Retr
  
  [  5]   0.00-10.00  sec   586 MBytes   491 Mbits/sec  1674 sender 
  
  [  5]   0.00-10.01  sec   585 MBytes   491 Mbits/sec  
receiver  

  
  iperf Done.

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  inet 192.168.0.21/24 brd 192.168.0.255 scope global dynamic noprefixroute 
enp3s0
 valid_lft 171856sec preferred_lft 171856sec
  inet6 fe80::781a:829f:5030:ad6a/64 scope link noprefixroute 
 valid_lft forever preferred_lft forever

  $ ethtool -S enp3s0 
  NIC statistics:
   tx_packets: 571053
   rx_packets: 1184934
   tx_errors: 0
   rx_errors: 0
   rx_missed: 1919  <<<
   align_errors: 0
   tx_single_collisions: 0
   tx_multi_collisions: 0
   unicast: 1184926
   broadcast: 6
   multicast: 2
   tx_aborted: 0
   tx_underrun: 0

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
mode DEFAULT group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  RX: bytes  packets  errors  dropped overrun mcast   
  1785166133 1184970  0   0   0   2   
  TX: bytes  packets  errors  dropped carrier collsns 
  39395440   570500   0   0   0   0  

  on the other side i see dropped packets, maybe flowcontrol-related?

  ethtool reports "Link partner advertised pause frame use: Symmetric"
  but maybe flowcontrol is not working...

  also driver reports flowcontrol is enabled...

  $ dmesg | grep r8169
  [0.939358] libphy: r8169: probed
  [0.939491] r8169 :03:00.0 eth0: RTL8168h/8111h, e4:b9:7a:f7:c4:8b, 
XID 541, IRQ 128
  [0.939492] r8169 :03:00.0 eth0: jumbo features [frames: 9200 bytes, 
tx checksumming: ko]
  [0.986853] r8169 :03:00.0 enp3s0: renamed from eth0
  [3.478981] Generic FE-GE Realtek PHY r8169-300:00: attached PHY driver 
[Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
  [3.591124] r8169 :03:00.0 enp3s0: Link is Down
  [7.171198] r8169 :03:00.0 enp3s0: Link is Up - 1Gbps/Full - flow 
control rx/tx

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: linux-image-5.4.0-29-generic 5.4.0-29.33
  ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30
  Uname: Linux 5.4.0-29-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27
  Architecture: amd64
  AudioDevicesInUse:
   USERPID ACCESS COMMAND
   /dev/snd/controlC0:  frank  1427 F pulseaudio
  CasperMD5CheckResult: skip
  CurrentDesktop: GNOME-Flashback:GNOME
  Date: Fri May 22 06:49:34 

[Kernel-packages] [Bug 1880076] Re: ubuntu 20.4 - retransmitts with r8169

2020-07-15 Thread Jeremy Elson
I am having an almost identical issue with Ubuntu 20.04, kernel
5.4.0-40-generic. I believe it is related to the ethernet driver. I have
two almost identical computers, both running 5.4.0-40. The bad one has
the following driver:

eth0: RTL8168h/8111h, 00:e4:4f:68:0e:77, XID 541, IRQ 126

On this computer, I see hundreds of increments to "rx_missed" every
second while trying to do high-speed transfers to WAN hosts with high
latency. Due to all the TCP segment losses, the TCP window never fully
opens and bandwidth is poor (about 20 megabits on a 1gbps connection).
Transfers on the same LAN happen at 1gbps, presumably because the
latency is so low that the re-tx happens quickly.

Sitting next to it, on the same LAN, is a "good" computer -- virtually
identical except the Ethernet chipset. It is also running 5.4.0-40, but
with a different driver:

eth0: RTL8168evl/8111evl, 00:e0:4c:68:04:7d, XID 2c9, IRQ 126

On this good computer, I see no rx_missed increments even after hundreds
of gigabytes of transfers. TCP happens at near wire speed even to WAN
hosts.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1880076

Title:
  ubuntu 20.4 - retransmitts with r8169

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Hi,

  i run some network-tests (iperf3) and noticed massive retransmitts in
  ubuntu 20.4 with kernel 5.4.0-29. I'm using module r8169 for network-
  adapter

  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
  RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

  if i boot my ubuntu 18.4 and did same iperf-test (same hardware, same
  network configuration, other client is not rebooted) i have not these
  retransmitts.

  root@bpi-r2:~# iperf3 -c 192.168.0.21 
  
  Connecting to host 192.168.0.21, port 5201
  
  [  5] local 192.168.0.11 port 35702 connected to 192.168.0.21 port 5201   
  
  [ ID] Interval   Transfer Bitrate Retr  Cwnd  
  
  [  5]   0.00-1.00   sec  14.2 MBytes   119 Mbits/sec  337   14.1 KBytes   
  
  [  5]   1.00-2.00   sec  14.9 MBytes   125 Mbits/sec  331   14.1 KBytes   
  
  [  5]   2.00-3.00   sec  15.1 MBytes   126 Mbits/sec  296   19.8 KBytes   
  
  [  5]   3.00-4.00   sec  14.7 MBytes   124 Mbits/sec  314   14.1 KBytes   
  
  [  5]   4.00-5.00   sec  12.8 MBytes   107 Mbits/sec  259   14.1 KBytes   
  
  [  5]   5.00-6.01   sec  67.4 MBytes   560 Mbits/sec  137362 KBytes   
  
  [  5]   6.01-7.00   sec   111 MBytes   940 Mbits/sec0366 KBytes   
  
  [  5]   7.00-8.00   sec   112 MBytes   941 Mbits/sec0409 KBytes   
  
  [  5]   8.00-9.00   sec   112 MBytes   940 Mbits/sec0421 KBytes   
  
  [  5]   9.00-10.00  sec   112 MBytes   936 Mbits/sec0426 KBytes   
  
  - - - - - - - - - - - - - - - - - - - - - - - - - 
  
  [ ID] Interval   Transfer Bitrate Retr
  
  [  5]   0.00-10.00  sec   586 MBytes   491 Mbits/sec  1674 sender 
  
  [  5]   0.00-10.01  sec   585 MBytes   491 Mbits/sec  
receiver  

  
  iperf Done.

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  inet 192.168.0.21/24 brd 192.168.0.255 scope global dynamic noprefixroute 
enp3s0
 valid_lft 171856sec preferred_lft 171856sec
  inet6 fe80::781a:829f:5030:ad6a/64 scope link noprefixroute 
 valid_lft forever preferred_lft forever

  $ ethtool -S enp3s0 
  NIC statistics:
   tx_packets: 571053
   rx_packets: 1184934
   tx_errors: 0
   rx_errors: 0
   rx_missed: 1919  <<<
   align_errors: 0
   tx_single_collisions: 0
   tx_multi_collisions: 0
   unicast: 1184926
   broadcast: 6
   multicast: 2
   tx_aborted: 0
   tx_underrun: 0

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
mode DEFAULT group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  RX: bytes  packets  errors  dropped overrun mcast   
  1785166133 1184970  0   0   0   2   
  TX: bytes  packets  errors  dropped carrier collsns 
  39395440   570500   0   0   0   0  

  on the other side i see dropped packets, maybe flowcontrol-related?

  ethtool reports "Link partner advertised pause frame use: Symmetric"
  but maybe flowcontrol is not working...

  also driver reports flowcontrol is enabled...

  $ dmesg | grep r8169
  [0.939358] libphy: r8169: probed
  [0.939491] r8169 :03:00.0 eth0: RTL8168h/8111h, e4:b9:7a:f7:c4:8b, 
XID 541, IRQ 128
  [0.939492] r8169 :03:00.0 eth0: jumbo 

[Kernel-packages] [Bug 1880076] Re: ubuntu 20.4 - retransmitts with r8169

2020-07-12 Thread Kai-Heng Feng
Please test latest mainline kernel:
https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.8-rc5/

** Changed in: linux (Ubuntu)
   Status: Confirmed => Incomplete

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1880076

Title:
  ubuntu 20.4 - retransmitts with r8169

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Hi,

  i run some network-tests (iperf3) and noticed massive retransmitts in
  ubuntu 20.4 with kernel 5.4.0-29. I'm using module r8169 for network-
  adapter

  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
  RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

  if i boot my ubuntu 18.4 and did same iperf-test (same hardware, same
  network configuration, other client is not rebooted) i have not these
  retransmitts.

  root@bpi-r2:~# iperf3 -c 192.168.0.21 
  
  Connecting to host 192.168.0.21, port 5201
  
  [  5] local 192.168.0.11 port 35702 connected to 192.168.0.21 port 5201   
  
  [ ID] Interval   Transfer Bitrate Retr  Cwnd  
  
  [  5]   0.00-1.00   sec  14.2 MBytes   119 Mbits/sec  337   14.1 KBytes   
  
  [  5]   1.00-2.00   sec  14.9 MBytes   125 Mbits/sec  331   14.1 KBytes   
  
  [  5]   2.00-3.00   sec  15.1 MBytes   126 Mbits/sec  296   19.8 KBytes   
  
  [  5]   3.00-4.00   sec  14.7 MBytes   124 Mbits/sec  314   14.1 KBytes   
  
  [  5]   4.00-5.00   sec  12.8 MBytes   107 Mbits/sec  259   14.1 KBytes   
  
  [  5]   5.00-6.01   sec  67.4 MBytes   560 Mbits/sec  137362 KBytes   
  
  [  5]   6.01-7.00   sec   111 MBytes   940 Mbits/sec0366 KBytes   
  
  [  5]   7.00-8.00   sec   112 MBytes   941 Mbits/sec0409 KBytes   
  
  [  5]   8.00-9.00   sec   112 MBytes   940 Mbits/sec0421 KBytes   
  
  [  5]   9.00-10.00  sec   112 MBytes   936 Mbits/sec0426 KBytes   
  
  - - - - - - - - - - - - - - - - - - - - - - - - - 
  
  [ ID] Interval   Transfer Bitrate Retr
  
  [  5]   0.00-10.00  sec   586 MBytes   491 Mbits/sec  1674 sender 
  
  [  5]   0.00-10.01  sec   585 MBytes   491 Mbits/sec  
receiver  

  
  iperf Done.

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  inet 192.168.0.21/24 brd 192.168.0.255 scope global dynamic noprefixroute 
enp3s0
 valid_lft 171856sec preferred_lft 171856sec
  inet6 fe80::781a:829f:5030:ad6a/64 scope link noprefixroute 
 valid_lft forever preferred_lft forever

  $ ethtool -S enp3s0 
  NIC statistics:
   tx_packets: 571053
   rx_packets: 1184934
   tx_errors: 0
   rx_errors: 0
   rx_missed: 1919  <<<
   align_errors: 0
   tx_single_collisions: 0
   tx_multi_collisions: 0
   unicast: 1184926
   broadcast: 6
   multicast: 2
   tx_aborted: 0
   tx_underrun: 0

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
mode DEFAULT group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  RX: bytes  packets  errors  dropped overrun mcast   
  1785166133 1184970  0   0   0   2   
  TX: bytes  packets  errors  dropped carrier collsns 
  39395440   570500   0   0   0   0  

  on the other side i see dropped packets, maybe flowcontrol-related?

  ethtool reports "Link partner advertised pause frame use: Symmetric"
  but maybe flowcontrol is not working...

  also driver reports flowcontrol is enabled...

  $ dmesg | grep r8169
  [0.939358] libphy: r8169: probed
  [0.939491] r8169 :03:00.0 eth0: RTL8168h/8111h, e4:b9:7a:f7:c4:8b, 
XID 541, IRQ 128
  [0.939492] r8169 :03:00.0 eth0: jumbo features [frames: 9200 bytes, 
tx checksumming: ko]
  [0.986853] r8169 :03:00.0 enp3s0: renamed from eth0
  [3.478981] Generic FE-GE Realtek PHY r8169-300:00: attached PHY driver 
[Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
  [3.591124] r8169 :03:00.0 enp3s0: Link is Down
  [7.171198] r8169 :03:00.0 enp3s0: Link is Up - 1Gbps/Full - flow 
control rx/tx

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: linux-image-5.4.0-29-generic 5.4.0-29.33
  ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30
  Uname: Linux 5.4.0-29-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27
  Architecture: amd64
  AudioDevicesInUse:
   USERPID ACCESS COMMAND
   /dev/snd/controlC0:  frank  1427 F pulseaudio
  CasperMD5CheckResult: skip
  CurrentDesktop: GNOME-Flashback:GNOME
  Date: Fri May 22 06:49:34 2020
  InstallationDate: Installed 

[Kernel-packages] [Bug 1880076] Re: ubuntu 20.4 - retransmitts with r8169

2020-07-11 Thread frank
Have anyone reproduced the bug? Any idea how to fix it or which change
introduces the issue?

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1880076

Title:
  ubuntu 20.4 - retransmitts with r8169

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  Hi,

  i run some network-tests (iperf3) and noticed massive retransmitts in
  ubuntu 20.4 with kernel 5.4.0-29. I'm using module r8169 for network-
  adapter

  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
  RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

  if i boot my ubuntu 18.4 and did same iperf-test (same hardware, same
  network configuration, other client is not rebooted) i have not these
  retransmitts.

  root@bpi-r2:~# iperf3 -c 192.168.0.21 
  
  Connecting to host 192.168.0.21, port 5201
  
  [  5] local 192.168.0.11 port 35702 connected to 192.168.0.21 port 5201   
  
  [ ID] Interval   Transfer Bitrate Retr  Cwnd  
  
  [  5]   0.00-1.00   sec  14.2 MBytes   119 Mbits/sec  337   14.1 KBytes   
  
  [  5]   1.00-2.00   sec  14.9 MBytes   125 Mbits/sec  331   14.1 KBytes   
  
  [  5]   2.00-3.00   sec  15.1 MBytes   126 Mbits/sec  296   19.8 KBytes   
  
  [  5]   3.00-4.00   sec  14.7 MBytes   124 Mbits/sec  314   14.1 KBytes   
  
  [  5]   4.00-5.00   sec  12.8 MBytes   107 Mbits/sec  259   14.1 KBytes   
  
  [  5]   5.00-6.01   sec  67.4 MBytes   560 Mbits/sec  137362 KBytes   
  
  [  5]   6.01-7.00   sec   111 MBytes   940 Mbits/sec0366 KBytes   
  
  [  5]   7.00-8.00   sec   112 MBytes   941 Mbits/sec0409 KBytes   
  
  [  5]   8.00-9.00   sec   112 MBytes   940 Mbits/sec0421 KBytes   
  
  [  5]   9.00-10.00  sec   112 MBytes   936 Mbits/sec0426 KBytes   
  
  - - - - - - - - - - - - - - - - - - - - - - - - - 
  
  [ ID] Interval   Transfer Bitrate Retr
  
  [  5]   0.00-10.00  sec   586 MBytes   491 Mbits/sec  1674 sender 
  
  [  5]   0.00-10.01  sec   585 MBytes   491 Mbits/sec  
receiver  

  
  iperf Done.

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  inet 192.168.0.21/24 brd 192.168.0.255 scope global dynamic noprefixroute 
enp3s0
 valid_lft 171856sec preferred_lft 171856sec
  inet6 fe80::781a:829f:5030:ad6a/64 scope link noprefixroute 
 valid_lft forever preferred_lft forever

  $ ethtool -S enp3s0 
  NIC statistics:
   tx_packets: 571053
   rx_packets: 1184934
   tx_errors: 0
   rx_errors: 0
   rx_missed: 1919  <<<
   align_errors: 0
   tx_single_collisions: 0
   tx_multi_collisions: 0
   unicast: 1184926
   broadcast: 6
   multicast: 2
   tx_aborted: 0
   tx_underrun: 0

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
mode DEFAULT group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  RX: bytes  packets  errors  dropped overrun mcast   
  1785166133 1184970  0   0   0   2   
  TX: bytes  packets  errors  dropped carrier collsns 
  39395440   570500   0   0   0   0  

  on the other side i see dropped packets, maybe flowcontrol-related?

  ethtool reports "Link partner advertised pause frame use: Symmetric"
  but maybe flowcontrol is not working...

  also driver reports flowcontrol is enabled...

  $ dmesg | grep r8169
  [0.939358] libphy: r8169: probed
  [0.939491] r8169 :03:00.0 eth0: RTL8168h/8111h, e4:b9:7a:f7:c4:8b, 
XID 541, IRQ 128
  [0.939492] r8169 :03:00.0 eth0: jumbo features [frames: 9200 bytes, 
tx checksumming: ko]
  [0.986853] r8169 :03:00.0 enp3s0: renamed from eth0
  [3.478981] Generic FE-GE Realtek PHY r8169-300:00: attached PHY driver 
[Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
  [3.591124] r8169 :03:00.0 enp3s0: Link is Down
  [7.171198] r8169 :03:00.0 enp3s0: Link is Up - 1Gbps/Full - flow 
control rx/tx

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: linux-image-5.4.0-29-generic 5.4.0-29.33
  ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30
  Uname: Linux 5.4.0-29-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27
  Architecture: amd64
  AudioDevicesInUse:
   USERPID ACCESS COMMAND
   /dev/snd/controlC0:  frank  1427 F pulseaudio
  CasperMD5CheckResult: skip
  CurrentDesktop: GNOME-Flashback:GNOME
  Date: Fri May 22 06:49:34 2020
  InstallationDate: Installed on 2020-04-27 (24 days ago)
  InstallationMedia: Ubuntu 20.04 LTS 

[Kernel-packages] [Bug 1880076] Re: ubuntu 20.4 - retransmitts with r8169

2020-05-22 Thread You-Sheng Yang
** Tags added: hwe-networking-ethernet

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1880076

Title:
  ubuntu 20.4 - retransmitts with r8169

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  Hi,

  i run some network-tests (iperf3) and noticed massive retransmitts in
  ubuntu 20.4 with kernel 5.4.0-29. I'm using module r8169 for network-
  adapter

  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
  RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

  if i boot my ubuntu 18.4 and did same iperf-test (same hardware, same
  network configuration, other client is not rebooted) i have not these
  retransmitts.

  root@bpi-r2:~# iperf3 -c 192.168.0.21 
  
  Connecting to host 192.168.0.21, port 5201
  
  [  5] local 192.168.0.11 port 35702 connected to 192.168.0.21 port 5201   
  
  [ ID] Interval   Transfer Bitrate Retr  Cwnd  
  
  [  5]   0.00-1.00   sec  14.2 MBytes   119 Mbits/sec  337   14.1 KBytes   
  
  [  5]   1.00-2.00   sec  14.9 MBytes   125 Mbits/sec  331   14.1 KBytes   
  
  [  5]   2.00-3.00   sec  15.1 MBytes   126 Mbits/sec  296   19.8 KBytes   
  
  [  5]   3.00-4.00   sec  14.7 MBytes   124 Mbits/sec  314   14.1 KBytes   
  
  [  5]   4.00-5.00   sec  12.8 MBytes   107 Mbits/sec  259   14.1 KBytes   
  
  [  5]   5.00-6.01   sec  67.4 MBytes   560 Mbits/sec  137362 KBytes   
  
  [  5]   6.01-7.00   sec   111 MBytes   940 Mbits/sec0366 KBytes   
  
  [  5]   7.00-8.00   sec   112 MBytes   941 Mbits/sec0409 KBytes   
  
  [  5]   8.00-9.00   sec   112 MBytes   940 Mbits/sec0421 KBytes   
  
  [  5]   9.00-10.00  sec   112 MBytes   936 Mbits/sec0426 KBytes   
  
  - - - - - - - - - - - - - - - - - - - - - - - - - 
  
  [ ID] Interval   Transfer Bitrate Retr
  
  [  5]   0.00-10.00  sec   586 MBytes   491 Mbits/sec  1674 sender 
  
  [  5]   0.00-10.01  sec   585 MBytes   491 Mbits/sec  
receiver  

  
  iperf Done.

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  inet 192.168.0.21/24 brd 192.168.0.255 scope global dynamic noprefixroute 
enp3s0
 valid_lft 171856sec preferred_lft 171856sec
  inet6 fe80::781a:829f:5030:ad6a/64 scope link noprefixroute 
 valid_lft forever preferred_lft forever

  $ ethtool -S enp3s0 
  NIC statistics:
   tx_packets: 571053
   rx_packets: 1184934
   tx_errors: 0
   rx_errors: 0
   rx_missed: 1919  <<<
   align_errors: 0
   tx_single_collisions: 0
   tx_multi_collisions: 0
   unicast: 1184926
   broadcast: 6
   multicast: 2
   tx_aborted: 0
   tx_underrun: 0

  2: enp3s0:  mtu 1500 qdisc fq_codel state UP 
mode DEFAULT group default qlen 1000
  link/ether e4:b9:7a:f7:c4:8b brd ff:ff:ff:ff:ff:ff
  RX: bytes  packets  errors  dropped overrun mcast   
  1785166133 1184970  0   0   0   2   
  TX: bytes  packets  errors  dropped carrier collsns 
  39395440   570500   0   0   0   0  

  on the other side i see dropped packets, maybe flowcontrol-related?

  ethtool reports "Link partner advertised pause frame use: Symmetric"
  but maybe flowcontrol is not working...

  also driver reports flowcontrol is enabled...

  $ dmesg | grep r8169
  [0.939358] libphy: r8169: probed
  [0.939491] r8169 :03:00.0 eth0: RTL8168h/8111h, e4:b9:7a:f7:c4:8b, 
XID 541, IRQ 128
  [0.939492] r8169 :03:00.0 eth0: jumbo features [frames: 9200 bytes, 
tx checksumming: ko]
  [0.986853] r8169 :03:00.0 enp3s0: renamed from eth0
  [3.478981] Generic FE-GE Realtek PHY r8169-300:00: attached PHY driver 
[Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
  [3.591124] r8169 :03:00.0 enp3s0: Link is Down
  [7.171198] r8169 :03:00.0 enp3s0: Link is Up - 1Gbps/Full - flow 
control rx/tx

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: linux-image-5.4.0-29-generic 5.4.0-29.33
  ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30
  Uname: Linux 5.4.0-29-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27
  Architecture: amd64
  AudioDevicesInUse:
   USERPID ACCESS COMMAND
   /dev/snd/controlC0:  frank  1427 F pulseaudio
  CasperMD5CheckResult: skip
  CurrentDesktop: GNOME-Flashback:GNOME
  Date: Fri May 22 06:49:34 2020
  InstallationDate: Installed on 2020-04-27 (24 days ago)
  InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
  MachineType: