2022-08-02 18:03:52

by Andrew than

[permalink] [raw]
Subject: Terrible performance form Lenovo Ideapad using RTL8852AE 802.11ax on 5.17 kernel (ubuntu)

Hello all:

Please direct me on what additional information I can provide.

I recently added a Lenovo Ideapad to my wifi network. Two mac hosts on
that network experience no issue whatsoever with the network (desktop +
macpro laptop).

A simple scp test between the desktop & macpro vs desktop & lenovo
yields a 50% difference in throughput.

Interactive performance of ssh is horrible vs the lenovo. I looked but
didn't find any TCP_NODELAY / Nagel's related settings for sshd.
However, the scp performance leads me to believe that's not the issue.

I've seen other reports of slow performance of these cards/drivers (e.g.
https://github.com/lwfinger/rtw89/issues/36)

Any ideas?



  *-network
       description: Wireless interface
       product: RTL8852AE 802.11ax PCIe Wireless Network Adapter
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: [email protected]:03:00.0
       logical name: wlo1
       version: 00
       serial: 14:5a:fc:01:c2:xx
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet
physical wireless
       configuration: broadcast=yes driver=rtw89_pci
driverversion=5.17.0-1014-oem firmware=N/A ip=192.168.x.x latency=0
link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:64 ioport:2000(size=256) memory:d1600000-d16fffff



2022-08-02 18:50:22

by Larry Finger

[permalink] [raw]
Subject: Re: Terrible performance form Lenovo Ideapad using RTL8852AE 802.11ax on 5.17 kernel (ubuntu)

On 8/2/22 12:53, Andrew than wrote:
> Hello all:
>
> Please direct me on what additional information I can provide.
>
> I recently added a Lenovo Ideapad to my wifi network. Two mac hosts on that
> network experience no issue whatsoever with the network (desktop + macpro laptop).
>
> A simple scp test between the desktop & macpro vs desktop & lenovo yields a 50%
> difference in throughput.
>
> Interactive performance of ssh is horrible vs the lenovo. I looked but didn't
> find any TCP_NODELAY / Nagel's related settings for sshd. However, the scp
> performance leads me to believe that's not the issue.
>
> I've seen other reports of slow performance of these cards/drivers (e.g.
> https://github.com/lwfinger/rtw89/issues/36)
>
> Any ideas?
>
>
>
>   *-network
>        description: Wireless interface
>        product: RTL8852AE 802.11ax PCIe Wireless Network Adapter
>        vendor: Realtek Semiconductor Co., Ltd.
>        physical id: 0
>        bus info: [email protected]:03:00.0
>        logical name: wlo1
>        version: 00
>        serial: 14:5a:fc:01:c2:xx
>        width: 64 bits
>        clock: 33MHz
>        capabilities: pm msi pciexpress bus_master cap_list ethernet physical
> wireless
>        configuration: broadcast=yes driver=rtw89_pci
> driverversion=5.17.0-1014-oem firmware=N/A ip=192.168.x.x latency=0 link=yes
> multicast=yes wireless=IEEE 802.11
>        resources: irq:64 ioport:2000(size=256) memory:d1600000-d16fffff
>

I reported this at the GitHub repo, but I will put it here for others to see.

I tried your scp test with a 204 MB file. Using the 5G band on a wifi5 router
(AC1900), I got 49.2 MBps (399 Mbps) for uploads and 64.0 MBps (511 Mbps) for
downloads. The other end was a desktop connected to the network via a wire.
Using my local speedtest, I got 587 Mbps down and 481 Mbps up. With file reads
and writes, scp should be a little slower than speedtest. My signal reported by
'iw dev ... scan' is -45 dBm.

You did not tell me what your kernel is, but from the name (rtw89_pci), I see
that you are using the in-kernel version. The one from this repo, which I am
using, would be rtw89pci with no underscore.

Larry


2022-08-03 04:13:22

by Ping-Ke Shih

[permalink] [raw]
Subject: RE: Terrible performance form Lenovo Ideapad using RTL8852AE 802.11ax on 5.17 kernel (ubuntu)

Hi,

> -----Original Message-----
> From: Andrew than <[email protected]>
> Sent: Wednesday, August 3, 2022 1:54 AM
> To: [email protected]
> Subject: Terrible performance form Lenovo Ideapad using RTL8852AE 802.11ax on 5.17 kernel (ubuntu)
>
> Hello all:
>
> Please direct me on what additional information I can provide.
>
> I recently added a Lenovo Ideapad to my wifi network. Two mac hosts on
> that network experience no issue whatsoever with the network (desktop +
> macpro laptop).
>
> A simple scp test between the desktop & macpro vs desktop & lenovo
> yields a 50% difference in throughput.

Please share the real throughput you saw.

To check the status during you do scp test, please enter debug entry of this driver,
and capture log by:

/sys/kernel/debug/ieee80211/phy0/rtw89$ while [ 1 ]; do cat phy_info; sleep 2; done | tee scp_test.log

Then, send the result to me. If there is privacy problem, please send
private mail to me directly.

Also, you can try 'iw wlan0 set power_save off' to see if it helps.

[...]

>        configuration: broadcast=yes driver=rtw89_pci
> driverversion=5.17.0-1014-oem firmware=N/A ip=192.168.x.x latency=0
> link=yes multicast=yes wireless=IEEE 802.11
>        resources: irq:64 ioport:2000(size=256) memory:d1600000-d16fffff
>

Please check firmware you are using via /var/log/kern.log:
The firmware version looks like:
rtw89_8852ae 0000:03:00.0: Firmware version 0.13.36.0, cmd version 0, type 1
rtw89_8852ae 0000:03:00.0: Firmware version 0.13.36.0, cmd version 0, type 3


Ping-Ke