From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: Heiner Kallweit <hkallweit1@gmail.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
netdev@vger.kernel.org
Subject: Re: Very slow realtek 8169 ethernet performance, but only one interface, on ThinkPad T14.
Date: Thu, 5 Nov 2020 15:42:46 +0800 [thread overview]
Message-ID: <c4c063eb-d20b-8bc7-bbd7-b8df70c69a11@gmx.com> (raw)
In-Reply-To: <7ee6a86c-5aca-3931-73cc-2ab72d8dd8a7@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 3666 bytes --]
On 2020/11/5 下午3:01, Heiner Kallweit wrote:
> On 05.11.2020 03:48, Qu Wenruo wrote:
>> Hi,
>>
>> Not sure if this is a regression or not, but just find out that after upgrading to v5.9 kernel, one of my ethernet port on my ThinkPad T14 (ryzen version) becomes very slow.
>>
>> Only *2~3* Mbps.
>>
>> The laptop has two ethernet interfaces, one needs a passive adapter, the other one is a standard RJ45.
>>
>> The offending one is the one which needs the adapter (eth0).
>> While the RJ45 one is completely fine.
>>
>> 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0e)
>> 05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
>>
>> The 02:00.0 one is the affected one.
>>
>> The related dmesgs are:
>> [ 38.110293] r8169 0000:02:00.0: can't disable ASPM; OS doesn't have ASPM control
>> [ 38.126069] libphy: r8169: probed
>> [ 38.126250] r8169 0000:02:00.0 eth0: RTL8168ep/8111ep, 00:2b:67:b3:d9:20, XID 502, IRQ 105
>> [ 38.126252] r8169 0000:02:00.0 eth0: jumbo features [frames: 9194 bytes, tx checksumming: ko]
>> [ 38.126294] r8169 0000:05:00.0: can't disable ASPM; OS doesn't have ASPM control
>> [ 38.126300] r8169 0000:05:00.0: enabling device (0000 -> 0003)
>> [ 38.139355] libphy: r8169: probed
>> [ 38.139523] r8169 0000:05:00.0 eth1: RTL8168h/8111h, 00:2b:67:b3:d9:1f, XID 541, IRQ 107
>> [ 38.139525] r8169 0000:05:00.0 eth1: jumbo features [frames: 9194 bytes, tx checksumming: ko]
>> [ 42.120935] Generic FE-GE Realtek PHY r8169-200:00: attached PHY driver [Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-200:00, irq=IGNORE)
>> [ 42.247646] r8169 0000:02:00.0 eth0: Link is Down
>> [ 42.280799] Generic FE-GE Realtek PHY r8169-500:00: attached PHY driver [Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-500:00, irq=IGNORE)
>> [ 42.477616] r8169 0000:05:00.0 eth1: Link is Down
>> [ 76.479569] r8169 0000:02:00.0 eth0: Link is Up - 1Gbps/Full - flow control rx/tx
>> [ 91.271894] r8169 0000:02:00.0 eth0: Link is Down
>> [ 99.873390] r8169 0000:02:00.0 eth0: Link is Up - 1Gbps/Full - flow control rx/tx
>> [ 99.878938] r8169 0000:02:00.0 eth0: Link is Down
>> [ 102.579290] r8169 0000:02:00.0 eth0: Link is Up - 1Gbps/Full - flow control rx/tx
>> [ 185.086002] r8169 0000:02:00.0 eth0: Link is Down
>> [ 392.884584] r8169 0000:02:00.0 eth0: Link is Up - 1Gbps/Full - flow control rx/tx
>> [ 392.891208] r8169 0000:02:00.0 eth0: Link is Down
>> [ 395.889047] r8169 0000:02:00.0 eth0: Link is Up - 1Gbps/Full - flow control rx/tx
>> [ 406.670738] r8169 0000:02:00.0 eth0: Link is Down
>>
>> Really nothing strange, even it negotiates to 1Gbps.
>>
>> But during iperf3, it only goes up to miserable 3Mbps.
>>
>> Is this some known bug or something special related to the passive adapter?
>>
>> Since the adapter is passive, and hasn't experience anything wrong for a long time, I really doubt that.
>>
>> Thanks,
>> Qu
>>
>>
> Thanks for the report. From which kernel version did you upgrade?
Tested back to v5.7, which still shows the miserable performance.
So I guess it could be a faulty adapter?
> Please test
> with the prior kernel version and report behavior (link stability and speed).
> Under 5.9, does ethtool -S eth0 report packet errors?
>
Nope, no tx/rx_errors, no missed/aborted/underrun.
Adding that the adapter is completely passive (no chip, just converting
RJ45 pins to the I shaped pins), I'm not sure that the adapter itself
can fail.
THanks,
Qu
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2020-11-05 7:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-05 2:48 Very slow realtek 8169 ethernet performance, but only one interface, on ThinkPad T14 Qu Wenruo
2020-11-05 7:01 ` Heiner Kallweit
2020-11-05 7:42 ` Qu Wenruo [this message]
2020-11-05 9:13 ` Heiner Kallweit
2020-11-05 10:20 ` Qu Wenruo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c4c063eb-d20b-8bc7-bbd7-b8df70c69a11@gmx.com \
--to=quwenruo.btrfs@gmx.com \
--cc=hkallweit1@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox