You are not logged in.

#1 2024-09-22 12:20:46

Magician Merlin
Member
Registered: 2017-05-16
Posts: 26

[SOLVED] Pacman Wifi slow, cable fast

Hi all,
I have a weird issue. For the last months I recognized that pacman downloads packages extremely slow, when using wifi instead of ethernet via cable.

A speedtest also confirms that I have 250Mbit available. When using a cable, pacman downloads packages with approx. 30MiBytes, that almost uses the complete capacity. But when I use wifi (via NetworkManager), The average download speed is approx. 1MiBytes.

Is that a known issue?
Does anybody have an idea how to solve that issue?

Thank you in advance!

Last edited by Magician Merlin (2024-09-25 18:56:10)

Offline

#2 2024-09-22 12:28:21

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,930

Re: [SOLVED] Pacman Wifi slow, cable fast

Please post the full outputs of

$ lspci -k
$ journalctl -b | | curl -F 'file=@-' 0x0.st
$ find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2024-09-22 18:14:47

Magician Merlin
Member
Registered: 2017-05-16
Posts: 26

Re: [SOLVED] Pacman Wifi slow, cable fast

Thanks for your response!
Here is the outout:

$ lspci -k

Output:

00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 05)
        Subsystem: Lenovo Device 224d
        Kernel driver in use: skl_uncore
00:01.0 PCI bridge: Intel Corporation 6th-10th Gen Core Processor PCIe Controller (x16) (rev 05)
        Subsystem: Lenovo Device 224d
        Kernel driver in use: pcieport
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
        Subsystem: Lenovo Device 224d
00:14.0 USB controller: Intel Corporation 100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller (rev 31)
        Subsystem: Lenovo Device 224d
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
00:14.2 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Thermal Subsystem (rev 31)
        Subsystem: Lenovo Device 224d
        Kernel driver in use: intel_pch_thermal
        Kernel modules: intel_pch_thermal
00:15.0 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Serial IO I2C Controller #0 (rev 31)
        Subsystem: Lenovo Device 224d
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci
00:16.0 Communication controller: Intel Corporation 100 Series/C230 Series Chipset Family MEI Controller #1 (rev 31)
        Subsystem: Lenovo Device 224d
        Kernel driver in use: mei_me
        Kernel modules: mei_me
00:17.0 SATA controller: Intel Corporation Q170/Q150/B150/H170/H110/Z170/CM236 Chipset SATA Controller [AHCI Mode] (rev 31)
        Subsystem: Lenovo Device 224d
        Kernel driver in use: ahci
00:1c.0 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #1 (rev f1)
        Subsystem: Lenovo Device 224d
        Kernel driver in use: pcieport
00:1c.2 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #3 (rev f1)
        Subsystem: Lenovo Device 224d
        Kernel driver in use: pcieport
00:1c.4 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #5 (rev f1)
        Subsystem: Lenovo Device 224d
        Kernel driver in use: pcieport
00:1d.0 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #9 (rev f1)
        Subsystem: Lenovo Device 224d
        Kernel driver in use: pcieport
00:1d.4 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #13 (rev f1)
        Subsystem: Lenovo Device 224d
        Kernel driver in use: pcieport
00:1f.0 ISA bridge: Intel Corporation CM238 Chipset LPC/eSPI Controller (rev 31)
        Subsystem: Lenovo Device 224d
00:1f.2 Memory controller: Intel Corporation 100 Series/C230 Series Chipset Family Power Management Controller (rev 31)
        Subsystem: Lenovo Device 224d
00:1f.3 Audio device: Intel Corporation CM238 HD Audio Controller (rev 31)
        Subsystem: Lenovo Device 224d
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel, snd_soc_avs
00:1f.4 SMBus: Intel Corporation 100 Series/C230 Series Chipset Family SMBus (rev 31)
        Subsystem: Lenovo Device 224d
        Kernel driver in use: i801_smbus
        Kernel modules: i2c_i801
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (5) I219-V (rev 31)
        Subsystem: Lenovo Device 224d
        Kernel driver in use: e1000e
        Kernel modules: e1000e
01:00.0 VGA compatible controller: NVIDIA Corporation GM107GLM [Quadro M1200 Mobile] (rev a2)
        Subsystem: Lenovo Device 2251
        Kernel driver in use: nvidia
        Kernel modules: nouveau, nvidia_drm, nvidia
01:00.1 Audio device: NVIDIA Corporation GM107 High Definition Audio Controller [GeForce 940MX] (rev a1)
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
04:00.0 Network controller: Intel Corporation Wireless 8265 / 8275 (rev 78)
        Subsystem: Intel Corporation Dual Band Wireless-AC 8265
        Kernel driver in use: iwlwifi
        Kernel modules: iwlwifi
3e:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
        Subsystem: Samsung Electronics Co Ltd SSD 970 EVO/PRO
        Kernel driver in use: nvme
        Kernel modules: nvme
3f:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader (rev 01)
        Subsystem: Lenovo Device 224d
        Kernel driver in use: rtsx_pci
        Kernel modules: rtsx_pci
$ journalctl -b | | curl -F 'file=@-' 0x0.st

For privacy reasons I post it as DM - quite verbose.

$ find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

Output:

acpid.service                            | multi-user.target.wants
avahi-daemon.service                     | multi-user.target.wants
avahi-daemon.socket                      | sockets.target.wants
bluetooth.service                        | bluetooth.target.wants
cpupower-gui.service                     | multi-user.target.wants
cups.path                                | multi-user.target.wants
cups.service                             | multi-user.target.wants
cups.service                             | printer.target.wants
cups.socket                              | sockets.target.wants
dbus-org.bluez.service                   | system
dbus-org.freedesktop.Avahi.service       | system
dbus-org.freedesktop.nm-dispatcher.service | system
dbus-org.freedesktop.timesync1.service   | system
dbus-org.rnd2.cpupower_gui.helper.service | system
display-manager.service                  | system
docker.service                           | multi-user.target.wants
gcr-ssh-agent.socket                     | sockets.target.wants
getty@tty1.service                       | getty.target.wants
gitlab-runner.service                    | multi-user.target.wants
gnome-keyring-daemon.socket              | sockets.target.wants
libvirtd-ro.socket                       | sockets.target.wants
libvirtd.service                         | multi-user.target.wants
libvirtd.socket                          | sockets.target.wants
mariadb.service                          | multi-user.target.wants
NetworkManager.service                   | multi-user.target.wants
NetworkManager-wait-online.service       | network-online.target.wants
p11-kit-server.socket                    | sockets.target.wants
pcscd.socket                             | sockets.target.wants
pipewire-media-session.service           | pipewire.service.wants
pipewire-session-manager.service         | user
pipewire.socket                          | sockets.target.wants
postgresql.service                       | multi-user.target.wants
pulseaudio.socket                        | sockets.target.wants
reflector.service                        | multi-user.target.wants
remote-fs.target                         | multi-user.target.wants
systemd-timesyncd.service                | sysinit.target.wants
teamviewerd.service                      | multi-user.target.wants
tlp.service                              | multi-user.target.wants
ufw.service                              | multi-user.target.wants
virtlockd.socket                         | sockets.target.wants
virtlogd.socket                          | sockets.target.wants
watchdog.service                         | multi-user.target.wants
xdg-user-dirs-update.service             | default.target.wants

Offline

#4 2024-09-22 18:52:48

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,200

Re: [SOLVED] Pacman Wifi slow, cable fast

Magician Merlin wrote:

...The average download speed is approx. 1MiBytes.

Is that a known issue?

Nope, and Intel WiFi are generally well supported.

From my system:

ewaller@odin/~% iw dev wlan0 station dump
Station 6c:4b:b4:ef:67:e8 (on wlan0)
        inactive time:  257 ms
        rx bytes:       2004976354
        rx packets:     1604125
        tx bytes:       23202467
        tx packets:     137191
        tx retries:     21026
        tx failed:      0
        beacon loss:    0
        beacon rx:      145109
        rx drop misc:   12148
        signal:         -56 [-56, -58] dBm
        signal avg:     -58 dBm
        beacon signal avg:      -48 dBm
        tx bitrate:     1225.0 MBit/s 160MHz HE-MCS 6 HE-NSS 2 HE-GI 1 HE-DCM 0
        tx duration:    0 us
        rx bitrate:     1729.6 MBit/s 160MHz HE-MCS 8 HE-NSS 2 HE-GI 0 HE-DCM 0
        rx duration:    0 us
        authorized:     yes
        authenticated:  yes
        associated:     yes
        preamble:       long
        WMM/WME:        yes
        MFP:            yes
        TDLS peer:      no
        DTIM period:    3
        beacon interval:100
        short slot time:yes
        connected time: 14980 seconds
        associated at [boottime]:       73947.547s
        associated at:  1727015824588 ms
        current time:   1727030804582 ms
ewaller@odin/~% 

Note the speeds.  What does that command give on your system (you may have to change wlan0 to whatever it called on your system)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2024-09-22 20:09:46

seth
Member
Registered: 2012-09-03
Posts: 58,717

Re: [SOLVED] Pacman Wifi slow, cable fast

Unless there's a selective issue w/ ufw or libvirt (rules/config only applying to the wifi NIC) my money is on tlp and general power saving.

systool -vm iwlwifi
systool -vm iwlmvm
iw dev <device> get power_save
iw dev <device> set power_save off

Unrelated

pipewire-media-session.service           | pipewire.service.wants
pipewire-session-manager.service         | user
pulseaudio.socket                        | sockets.target.wants

https://archlinux.org/packages/extra/x8 … ire-pulse/
https://archlinux.org/packages/extra/x8 … replumber/

Don't run PW and PA in parallel and the general advice is to replace PWMS w/ wireplumber

For privacy reasons I post it as DM - quite verbose.

The journal isn't supposed to contain sensitive data, but

Lone_Wolf wrote:

journalctl -b | | curl -F 'file=@-' 0x0.st

bash: syntax error near unexpected token `|'

tongue

Offline

#6 2024-09-23 16:01:17

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,930

Re: [SOLVED] Pacman Wifi slow, cable fast

typing part of a command and then adding another part through c/p sometimes gives such results.

Magician Merlin noticed it and corrected the command

A few points :

no nvidia_drm.modeset=1 as kernel parameter

Sep 22 19:43:30 ThinkPad kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.LPCB.EC.HKEY.DEVT.PEGS], AE_NOT_FOUND (20240322/psargs-330)
Sep 22 19:43:30 ThinkPad kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.EC.HKEY.DEVT due to previous error (AE_NOT_FOUND) (20240322/psparse-529)
Sep 22 19:43:30 ThinkPad kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.EC._Q4F due to previous error (AE_NOT_FOUND) (20240322/psparse-529)
Sep 22 19:43:30 ThinkPad kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.LPCB.EC.HKEY.DEVT.PEGS], AE_NOT_FOUND (20240322/psargs-330)
Sep 22 19:43:30 ThinkPad kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.EC.HKEY.DEVT due to previous error (AE_NOT_FOUND) (20240322/psparse-529)
Sep 22 19:43:30 ThinkPad kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.EC._Q4E due to previous error (AE_NOT_FOUND) (20240322/psparse-529)

The journal shows lots of similar/same  errors multiple times.



It appears NM creates a lot of virbr* entries

mattermost-desktop seems to use electron and has trouble connecting

Sep 22 19:43:30 ThinkPad mattermost-desktop[2226]: 19:43:30.823 › [App.Utils] Could not get server info for MyName Error: net::ERR_INTERNET_DISCONNECTED
Sep 22 19:43:30 ThinkPad mattermost-desktop[2226]:     at SimpleURLLoaderWrapper.<anonymous> (node:electron/js2c/browser_init:2:115199)
Sep 22 19:43:30 ThinkPad mattermost-desktop[2226]:     at SimpleURLLoaderWrapper.emit (node:events:519:28)
Sep 22 19:43:30 ThinkPad mattermost-desktop[2226]: 19:43:30.831 › [App.Config] config.autostart has been configured: true
Sep 22 19:42:53 ThinkPad kernel: DMI: LENOVO 20HH001QGE/20HH001QGE, BIOS N1UET80W (1.54 ) 11/05/2020

Magician Merlin , is this  a laptop and what do you use it for ?

I do think you should show a fresh journal to more people.

Last edited by Lone_Wolf (2024-09-23 16:05:23)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#7 2024-09-25 17:41:34

Magician Merlin
Member
Registered: 2017-05-16
Posts: 26

Re: [SOLVED] Pacman Wifi slow, cable fast

sorry for the delayed response.
I'm currently quite busy...

@Lone_Wolf: Yes, it is a laptop. unfortunately with dedicated NVIDIA graphics, I had trouble with that under linux since ever :-D
Since I use it for business tasks, I do not feel very comfortable with making the journals completely public...
It contains domains, names, usernames, etc. that are confidential.
I tried to prune it by the most important ones, but I cannot assure that it is completely clean...
I know it should not contain secrets, but it will reveal some details...
I will have a look into that and maybe I will share it after that...

Offline

#8 2024-09-25 17:59:20

Magician Merlin
Member
Registered: 2017-05-16
Posts: 26

Re: [SOLVED] Pacman Wifi slow, cable fast

seth wrote:

Unless there's a selective issue w/ ufw or libvirt (rules/config only applying to the wifi NIC) my money is on tlp and general power saving.

You won the bet!
After I disabled power_save for the wifi device by using

iw dev <device> set power_save off

it worked perfectly...
With well wifi connection the speed was the same as using the ethernet cable...

To disable the power_saving for the device permanently I have to change the tlp settings i guess?
I will dig into that...

Thanks a lot!


seth wrote:

Don't run PW and PA in parallel and the general advice is to replace PWMS w/ wireplumber

Thanks for the hint!
I will have a look at this.
As far as I see it came as a dependency of obs-studio, kwin and telegram-desktop.
...and pulseaudio came with plasma-meta...

Would you recommend to just deactivate the pulseaudio service, or did I get it wrong?

Last edited by Magician Merlin (2024-09-25 18:09:38)

Offline

#9 2024-09-25 20:16:30

seth
Member
Registered: 2012-09-03
Posts: 58,717

Re: [SOLVED] Pacman Wifi slow, cable fast

Just install pipewire-pulse, it'll provide the PA dependency.
Likewise nothing in the repos hard-depends on pipewire-media-session, you can replace it w/ wireplumber.

To disable the power_saving for the device permanently I have to change the tlp settings i guess?

TLP will most likely take precedence over any udev rule and the default setting, yes.
If there's no such setting, you can just add a udev rule as in https://wiki.archlinux.org/title/Power_ … interfaces - except setting it "off" rather than the illustrated "on".

Offline

Board footer

Powered by FluxBB