Skip to content

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.

61 points11 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
61 Β· 96% up
Kind
Text
ID
k3eb06

Author

2
posts
1
comments
2
media
View profile

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.

02:00.0 Network controller: Intel Corporation Wi-Fi 6 AX200 (rev 1a)
	Subsystem: Intel Corporation Device 0084
	Flags: bus master, fast devsel, latency 0, IRQ 18, IOMMU group 11
	Memory at f1200000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi

EDIT: disabling TCP segmentation offload on the wireless interface seems to solve the problem for me:

sudo ethtool -K wlp3s0 tso off

Source: https://bbs.archlinux.org/viewtopic.php?id=258042

Now, how to make it persistent...

27 points

Hey, that's pretty interesting. Looks good on LTS for me too:

[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   791 MBytes   664 Mbits/sec    0             sender
[  5]   0.00-10.00  sec   790 MBytes   662 Mbits/sec                  receiver

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:

[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   635 MBytes   533 Mbits/sec    0             sender
[  5]   0.00-10.00  sec   634 MBytes   532 Mbits/sec                  receiver

I guess I'll follow the linked bug report. As for making it persistent, this is working nicely for me (inspiration):

$ cat /etc/udev/rules.d/90-tso-off.rules 
ACTION=="add", SUBSYSTEM=="net", NAME=="wlp*", RUN+="/usr/bin/ethtool -K $name tso off"

Thanks for your help!

12 points

Solid. I was trying to do it with a systemd.link file but was getting a weird error from ethtool. I'll try your method.

Update: Both methods work.

This is super annoying; when changing these parameters through something other than ethtool itself, the changes are not reflected when checking with ethtool -k.

I'm using this systemd.link file with success, confirmed by checking iperf3 performance:

# /etc/systemd/network/10-intel-wifi.link
[Match]
Driver=iwlwifi

[Link]
TCPSegmentationOffload=false
NamePolicy=keep kernel database onboard slot path
6 points

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.

9 points

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.

3 points

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

3 points

Same issue. Glad to have a workaround for the moment though!

2 points

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?

1 points

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

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←orβ†’
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.