You are not logged in.

#1 2022-01-15 20:23:43

lukef00
Member
Registered: 2022-01-13
Posts: 5

Slow internet, cannot access some websites

I've been using arch for almost two years, but for some reason since December every installation is broken. During installation download speed works as it should. But after that download speed from repos uses only fraction of what I should be receiving  (up to 300 KiB/s, same for torrents, but for some reason when I'm downloading stuff from browser I have 1,5M+) . Also I cannot access some websites (mozilla mdn, raspbery pi webite) from firefox, ping returns that name cannot be resolved (during installation works), but when I'm opening them with qutebrowser websites are loading normally and sometimes after that ping runs normally and firefox can open website as well. This problem occurs only on my laptop and only on arch, previously I had Win 10 and none of this happened. In the past I had problems with RLT8723BE, but on Arch it used to run flawelessly.

I'm using NetworkManager, here's output of some files.


/etc/hosts

# Static table lookup for hostnames.
# See hosts(5) for details.
127.0.0.1	localhost
::1	localhost
192.168.0.104 	pi4
/etc/resolv.conf

# Generated by NetworkManager
nameserver 192.168.0.1

Offline

#2 2022-01-15 21:00:23

seth
Member
Registered: 2012-09-03
Posts: 51,055

Re: Slow internet, cannot access some websites

since December every installation is broken

This problem occurs only on my laptop

???

previously I had Win 10 and none of this happened. In the past I had problems with RLT8723BE, but on Arch it used to run flawelessly.

?????

During installation download speed works as it should. But after that download speed from repos uses only fraction of what I should be receiving

Kernel version install iso ./. installed system?

The provided metrics are kinda all over the place (sometimes DNS works, sometimes not, slow torrents, fast browser, but then FF also fails DNS…)

So first a sanity check:

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

If that's not it

% modinfo rtl8723be
…
parm:           swenc:Set to 1 for software crypto (default 0)
parm:           ips:Set to 0 to not use link power save (default 1)
parm:           swlps:Set to 1 to use SW control power save (default 0)
parm:           fwlps:Set to 1 to use FW control power save (default 1)
parm:           msi:Set to 1 to use MSI interrupts mode (default 0)
parm:           aspm:Set to 1 to enable ASPM (default 1)
parm:           debug_level:Set debug level (0-5) (default 0) (int)
parm:           debug_mask:Set debug mask (default 0) (ullong)
parm:           disable_watchdog:Set to 1 to disable the watchdog (default 0)
parm:           ant_sel:Set to 1 or 2 to force antenna number (default 0)

Try "swenc=1 ips=0 swlps=1 fwlps=0 aspm=0" and if that doesn't help to force either antenna

Offline

#3 2022-01-15 21:26:03

lukef00
Member
Registered: 2022-01-13
Posts: 5

Re: Slow internet, cannot access some websites

Kernel on ISO: 5.15.12-arch1-1
OS: 5.16.0-arch1-1

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

cups.path                                | multi-user.target.wants
cups.service                             | multi-user.target.wants
cups.service                             | printers.target.wants
cups.socket                              | sockets.target.wants
dbus-org.freedesktop.nm-dispatcher.service | system
dirmngr.socket                           | sockets.target.wants
display-manager.service                  | system
gcr-ssh-agent.socket                     | sockets.target.wants
getty@tty1.service                       | getty.target.wants
gpg-agent-browser.socket                 | sockets.target.wants
gpg-agent-extra.socket                   | sockets.target.wants
gpg-agent.socket                         | sockets.target.wants
gpg-agent-ssh.socket                     | sockets.target.wants
NetworkManager.service                   | multi-user.target.wants
NetworkManager-wait-online.service       | network-online.target.wants
p11-kit-server.socket                    | sockets.target.wants
pipewire-pulse.socket                    | sockets.target.wants
pipewire-session-manager.service         | user
pipewire.socket                          | sockets.target.wants
remote-fs.target                         | multi-user.target.wants
wireplumber.service                      | pipewire.service.wants
xdg-user-dirs-update.service             | default.target.wants
pacman -Qs firmware

local/linux-firmware 20211216.f682ecb-1
    Firmware files for Linux

Setting options provided above changed nothing, the same goes for switching antenna. I forgot to mention that on Ethernet connection is just as bad as on WiFi.

Offline

#4 2022-01-15 21:33:58

seth
Member
Registered: 2012-09-03
Posts: 51,055

Re: Slow internet, cannot access some websites

There's only NM and you have the firmware.
You could test the LTS kernel, but 5.16 doesn't fit "since december"

I forgot to mention that on Ethernet connection is just as bad as on WiFi.

That's significant. NM by default uses resolved, but that doesn't really align w/ your resolv.conf

ps aux | grep resolve

Otoh, torrents don't require DNS resolution - check the system journal whether NM switches between the wired and wifi NIC all the time.

Offline

#5 2022-01-16 07:57:15

lukef00
Member
Registered: 2022-01-13
Posts: 5

Re: Slow internet, cannot access some websites

From ps it appears that systemd-resolved is not active.

luke        2505  0.0  0.0   6832  2472 pts/0    S+   07:39   0:00 grep resolve

I've checked with systemctl and this service is only loaded, starting it resolves issues with accessing websites, however connection is still slow. Journal looks fine to me, I've switched few times from WiFi to Ethernet and interfaces are activating.

Offline

#6 2022-01-16 09:01:46

seth
Member
Registered: 2012-09-03
Posts: 51,055

Re: Slow internet, cannot access some websites

Please don't filter the journal - any kind of problem w/ the underlying driver or the (wifi) carrier is lost.
On a limb:

Config: added 'ssid' value 'Pi Network'

Is ther e a pi-hole involved? What what if it's not?

Offline

#7 2022-01-16 12:10:32

lukef00
Member
Registered: 2022-01-13
Posts: 5

Re: Slow internet, cannot access some websites

Currently I'm not using pi-hole and router is running on factory settings. Here's new journal. I thought it's my router fault, because on raspberry pi I'm also having problems updating software (name cannot be resolved for archive.raspberrypi.org), so I took cable from router and plugged it directly to my laptop but it's not it.

Edit. I've also set primary DNS on router to 8.8.8.8

Last edited by lukef00 (2022-01-16 12:15:44)

Offline

#8 2022-01-16 13:18:14

seth
Member
Registered: 2012-09-03
Posts: 51,055

Re: Slow internet, cannot access some websites

so I took cable from router and plugged it directly to my laptop but it's not it.

Did you also adjust /etc/resolv.conf?

because on raspberry pi I'm also having problems updating software

… ISP?
How's the connection/througput on teh LAN ie. eg. between the laptop and the raspi?

Offline

#9 2022-01-16 13:35:30

lukef00
Member
Registered: 2022-01-13
Posts: 5

Re: Slow internet, cannot access some websites

seth wrote:

so I took cable from router and plugged it directly to my laptop but it's not it.

Did you also adjust /etc/resolv.conf?

Yes I've changed nameserver ip to google dns.

because on raspberry pi I'm also having problems updating software

… ISP?
How's the connection/througput on teh LAN ie. eg. between the laptop and the raspi?

On average it's like 2.5Mb/s (full capacity for local network) using scp when copying files. After setting DNS to google I can update packages on raspberry, so looks like I have to call my ISP tomorrow.

Edit

I doubt it's ISP either, i ran couple times the same torrent (200MB, switching between both devices) on my laptop and smartphone. On laptop I've got up to 1Mb/s and was dropping to 600Kb/s, but on my phone it was running consistently 1.3Mb/s

Last edited by lukef00 (2022-01-16 14:45:53)

Offline

#10 2022-01-16 16:30:47

tbg
Member
Registered: 2017-06-22
Posts: 72

Re: Slow internet, cannot access some websites

If you have IPv6 enabled, then try disabling it.

If you already have IPv6 disabled, try re-enabling it.

Offline

Board footer

Powered by FluxBB