Very slow pages loading in browsers

Hi,
I have a problem with loading pages in browsers and loading repositories in pamac in Manjaro. I have fast internet and fast laptop. Duration of pages loading is from 15 to 45 sec. Has someone the same problem or has someone resolution? Thanks.

           Distro: Manjaro Linux base: Arch Linux
Machine:   Type: Laptop System: HP product: HP ProBook 455 G7 v: N/A serial: <filter>
           Mobo: HP model: 8730 v: KBC Version 13.21.00 serial: <filter> UEFI: HP
           v: S79 Ver. 01.05.00 date: 05/05/2021
Battery:   ID-1: BAT0 charge: 33.3 Wh (76.2%) condition: 43.7/45.0 Wh (97.1%) volts: 12.2
           min: 11.4 model: Hewlett-Packard Primary status: Unknown
           Device-1: hidpp_battery_0 model: Logitech G305 Lightspeed Wireless Gaming Mouse
           charge: 100% (should be ignored) status: Discharging
CPU:       Info: 8-Core model: AMD Ryzen 7 4700U with Radeon Graphics bits: 64 type: MCP
           arch: Zen 2 rev: 1 cache: L2: 4 MiB
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 31948
           Speed: 1400 MHz min/max: 1400/2000 MHz boost: enabled Core speeds (MHz): 1: 1400
           2: 1856 3: 2418 4: 1520 5: 1396 6: 1470 7: 1397 8: 1397
Graphics:  Device-1: AMD Renoir vendor: Hewlett-Packard driver: amdgpu v: kernel bus-ID: 05:00.0
           Device-2: Cheng Uei Precision Industry (Foxlink) HP Wide Vision HD Integrated Webcam
           type: USB driver: uvcvideo bus-ID: 3-4:3
           Display: wayland server: X.org 1.20.13 compositor: gnome-shell driver: loaded: amdgpu
           note: n/a (using device driver) - try sudo/root resolution: <missing: xdpyinfo>
           OpenGL: renderer: AMD RENOIR (DRM 3.42.0 5.14.10-1-MANJARO LLVM 12.0.1)
           v: 4.6 Mesa 21.2.3 direct render: Yes
Audio:     Device-1: AMD vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus-ID: 05:00.1
           Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor vendor: Hewlett-Packard
           driver: N/A bus-ID: 05:00.5
           Device-3: AMD Family 17h HD Audio vendor: Hewlett-Packard driver: snd_hda_intel
           v: kernel bus-ID: 05:00.6
           Sound Server-1: ALSA v: k5.14.10-1-MANJARO running: yes
           Sound Server-2: JACK v: 1.9.19 running: no
           Sound Server-3: PulseAudio v: 15.0 running: no
           Sound Server-4: PipeWire v: 0.3.38 running: yes
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
           vendor: Hewlett-Packard driver: r8169 v: kernel port: 3000 bus-ID: 01:00.0
           IF: enp1s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
           Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel bus-ID: 02:00.0
           IF: wlp2s0 state: up mac: <filter>
           IF-ID-1: vmnet1 state: unknown speed: N/A duplex: N/A mac: <filter>
           IF-ID-2: vmnet8 state: unknown speed: N/A duplex: N/A mac: <filter>
Bluetooth: Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-3:2
           Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: enabled,running rfk-block:
           hardware: no software: yes address: see --recommends
Drives:    Local Storage: total: 1.38 TiB used: 266.33 GiB (18.9%)
           ID-1: /dev/nvme0n1 vendor: Intel model: SSDPEKNW512G8H size: 476.94 GiB temp: 30.9 C
           ID-2: /dev/sda vendor: Samsung model: SSD 860 EVO 1TB size: 931.51 GiB
Partition: ID-1: / size: 459.43 GiB used: 68.52 GiB (14.9%) fs: ext4 dev: /dev/nvme0n1p2
           ID-2: /boot/efi size: 299.4 MiB used: 1.1 MiB (0.4%) fs: vfat dev: /dev/nvme0n1p1
Swap:      ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%) dev: /dev/nvme0n1p3
Sensors:   System Temperatures: cpu: 54.9 C mobo: 0.0 C gpu: amdgpu temp: 41.0 C
           Fan Speeds (RPM): N/A
Info:      Processes: 286 Uptime: 2h 28m Memory: 15.04 GiB used: 3.18 GiB (21.2%) Init: systemd
           Compilers: gcc: 11.1.0 Packages: 1284 Client: gnome-shell v: 40.5 inxi: 3.3.08```

Are you sure? Doesn’t sound like it via your description. Loading web pages and repositories are completely different things and connect to various different servers. Have you done a speed test while this occurs?

Which browsers?

Did you saw slow speed during a WiFi connection? Turn off all other network connections and try to check wired Ethernet connection. The same?


About browsers environment:
Is it just initial page load is slow, but further on the same website (for example after Ctlr+F5 key press) is faster?


Show ping statistics (statistics only) of:

ping 8.8.8.8 -4 -c300

and ping 8.8.8.8 -6 -c300
EDIT reason: incompatible suggestion: to ping IPv4 host by using only IPv6.

Example:

--- 8.8.8.8 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6012ms
rtt min/avg/max/mdev = 15.585/15.630/15.688/0.035 ms

This is my test:

.

I tried different network with 100 Mbit/s connection and all was without problems. That means that problem is somewhere in my home network or at my operator.

Connection by ethernet gives the same results, unfortunatelly.

Yes. Exactly. Ctrl+F5 doesnt work. Problem is probably in my home network or at the operator.

Results:

ping 8.8.8.8 -4 -c300                                            
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=241 time=12.6 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=241 time=12.7 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=241 time=12.4 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=241 time=12.9 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=241 time=12.9 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=241 time=12.6 ms
64 bytes from 8.8.8.8: icmp_seq=7 ttl=241 time=12.8 ms
64 bytes from 8.8.8.8: icmp_seq=8 ttl=241 time=12.4 ms
64 bytes from 8.8.8.8: icmp_seq=9 ttl=241 time=12.7 ms
64 bytes from 8.8.8.8: icmp_seq=10 ttl=241 time=13.1 ms
64 bytes from 8.8.8.8: icmp_seq=11 ttl=241 time=12.7 ms
64 bytes from 8.8.8.8: icmp_seq=12 ttl=241 time=20.4 ms
64 bytes from 8.8.8.8: icmp_seq=13 ttl=241 time=12.3 ms
ping 8.8.8.8 -6 -c300                                           
ping: 8.8.8.8: Trieda adries nie je podporovaná počítačom

Is the issue related to pamac repository and download of packages being slow?

You can try finding better repo or faster repo, for starters does this help

pacman-mirrors -f 5

This will select 5 fastest mirror

Apparently it doesn’t do so, Sorry for that!

Thanks for good tip. :slightly_smiling_face:

…uh…

Do not ever touch mirrors without forcing resync of databases … and do not resync db without updating … so …
(here we will use geoip which will try to find things locally and sort)

sudo pacman-mirrors -g && sudo pacman -Syyu

Again … the point is … dont use pacman-mirrors without at least ‘pacman -Syyu’
(maybe ‘Syyuu’ if you want to accept downgrades)

Ping a URL. I bet it’s a slow DNS you’re experiencing.

About the

a) you posted something which is not statistics. Statistics will appear at the end of that 5 minute long procedure.

What is that “exactly” if Ctrl+F5 “doesn’t work”?

b) Secondary page refreshes by Ctrl+F5 show a page slow or not?

c) If to navigate on the same website to another section/article which you did not open earlier then it loads slow or not?


Try this in Firefox or any other browser:

  1. Open Firefox.

  2. Navigate to search engine website.

  3. Do any random query.

  4. open Developer Tools by Ctrl+Shift+I (it is capital “i”). DevTools will open.

  5. Navigate to Network tab.

  6. Open any site in result list. Prefer those, which you do not visit very long time. You will see many item in DevTools.

  7. If a page loads slow, click on Timeline column to sort items.

  8. Scroll into earliest one. it’s timeline bar located most closer to left border.

  9. Click on that bar. You will see the section with details appeared:
    image

  10. Note the DNS resolution time value. And any other long duration procedure.

  11. Press “back” button to navigate to search results page again.

  12. Repeat the (6) - (11) steps for several times. at least 5 with any the website you did not visit very long time.

Report your collected info to us.

Many thanks to all people for help. Problem was in my mesh system. After restart all works like it should be.

:slightly_smiling_face:

1 Like

No it doesn’t. Please people stop writing that all over the forum again and again. It DOESN’T select the 5 fastest mirror. No it DOESN’T (It is not against you but I see even old timers here saying that often).

       -f, --fasttrack [NUMBER]
              Generates a random mirrorlist for the users current selected branch, mirrors are randomly selected from the users current mirror  pool,  either  a
              custom  pool or the default pool, the randomly selected mirrors are ranked by their current access time.  The higher number the higher possibility
              of a fast mirror.  If a number is given the resulting mirrorlist contains that number of servers.

1 Like

yup … 5 random … use -f0 or -f if you want an actual speed ranking … but its global, so you have to load all of them. ‘-f5’ is just 5 random working mirrors, and you get the fastest of those.

1 Like

If you change the wording a little, then you are right:
This will select 5 fastest of 5 mirrors

 -f, --fasttrack [NUMBER]
              Generates  a random mirrorlist for the users current selected branch, mirrors are randomly selected from the users current mirror pool, ei‐
              ther a custom pool or the default pool, the randomly selected mirrors are ranked by their current access time.  The higher number the high‐
              er possibility of a fast mirror.  If a number is given the resulting mirrorlist contains that number of servers.

:point_up: the randomly selected mirrors are ranked by their current access time

I do use:

sudo pacman-mirrors -f9

For the sake of arguing, no, this is also wrong.

that is true, it will sort the 5 randomly selected mirror by their “access time” or actually the speed result from the test it does, not simply access time or ping (or sort 5 random mirror picked from your current custom mirror pool if you have at least 5 in your custom mirror pool).

As the manual says the bigger the number, the higher the chance to have one of the fastest mirror possible. If you don’t put a number it will sort them all then you will have the fastest speed for the mirror as already pointed by cscs

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.