Poor Wi-Fi performance on Arch compared to Ubuntu on 5GHz with Intel AX200
I noticed today that I seem to get really poor network performance in Arch compared to the Ubuntu Desktop live image running on the same machine. Here are iperf3 test results from Arch:
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 86.5 MBytes 72.6 Mbits/sec 4461 sender
[ 5] 0.00-10.00 sec 82.8 MBytes 69.4 Mbits/sec receiver
..and the results of the same test in Ubuntu 20.04:
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 780 MBytes 654 Mbits/sec 0 sender
[ 5] 0.00-10.00 sec 778 MBytes 652 Mbits/sec receiver
Both tests were taken only a few minutes apart and from the same location.
Pretty much the most common thing I've seen suggested is to tweak parameters for the iwlwifi module. I have tried setting the 11n_disable parameters to both 1 and 8, although I'm not sure if this parameter even has any relevance on 5GHz.
I have also checked the parameters in the Ubuntu Desktop environment and replicated them without success. They are:
11n_disable=0
amsdu_size=0
bt_coex_active=Y
debug=0
disable_11ac=N
disable_11ax=N
enable_ini=Y
fw_restart=Y
led_mode=0
nvm_file=(null)
power_level=0
power_save=N
remove_when_gone=N
swcrypto=0
uapsd_disable=3
At this stage I don't know what else to check. Any suggestions would be very welcome. The laptop is a Dell XPS 9560.
Edit: I tried installing linux-firmware-iwlwifi-git, but that made no difference.
Edited 29 Nov 2020. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 61 Β· 96% up
- Kind
- Text
- ID
- k3eb06
13 comments
Huh, I just realized this too. On 5.9.10 I get an average of 33 Mbps with a tremendous amount of retries. I installed the LTS kernel and averaged my usual 480 Mbps with zero retries. Looks like a pretty serious regression somewhere.
EDIT: disabling TCP segmentation offload on the wireless interface seems to solve the problem for me:
Source: https://bbs.archlinux.org/viewtopic.php?id=258042
Now, how to make it persistent...
Hey, that's pretty interesting. Looks good on LTS for me too:
I'll boot back into stable and try disabling TSO.
Edit: disabling TSO helps a lot. It's not perfect, but I can more than live with it for now:
I guess I'll follow the linked bug report. As for making it persistent, this is working nicely for me (inspiration):
Thanks for your help!
Solid. I was trying to do it with a
systemd.linkfile but was getting a weird error fromethtool. I'll try your method.Update: Both methods work.
This is super annoying; when changing these parameters through something other than
ethtoolitself, the changes are not reflected when checking withethtool -k.I'm using this
systemd.linkfile with success, confirmed by checkingiperf3performance:Yeah, I had to pin the August release of linux-firmware. Itβs been seriously broken for a few months. The latest drops connection constantly.
Same
This TCP Segmentation Offload bug was introduced in 5.9. I'm worried that it will carry over to 5.10 and eventually defile
linux-lts.5.10 is out and at least for me the issue is still there.
Same problem. Will try solution here later.
Dell Inspiron 7591 with 5.9.10 kernel, 5.8.x works fine, always get a sudden disconnect per 5 min when use 5Ghz AP.
Network interface is AC9560 160Mhz
Same issue. Glad to have a workaround for the moment though!
For a dude using Win 10 that knows nothing about linux, sudo, ethtool, or TSO, is there any of this that can translate to a Windows or AX200 driver config change that might improve performance?
Considering the drivers are native on windows, you could go through the latest firmware line by line and recompile it yourself after you optimized Intel's latest
You didn't set it up right on arch.
π