You are not logged in.

#1 2021-07-22 23:41:33

Blyatmobilebr
Member
Registered: 2021-07-21
Posts: 9

[SOLVED] Download speed incredibly slow

Hi there,

After finishing the base install, I've noticed that my download and upload speeds are pretty slow, even though I have a 150Mb/s connection and on my other devices everything is fine.
First, I tried running reflector --sort rate --protocol http,https --c Brazil --save /etc/pacman.d/mirrorlist to sort the mirrors in my country by speed and overwrite the mirrorlist file with the output, and the following is the error:

➜ reflector --sort rate -c Brazil -l 11 
[2021-07-22 20:29:50] WARNING: failed to rate http(s) download (http://archlinux.c3sl.ufpr.br/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2021-07-22 20:29:55] WARNING: failed to rate rsync download (rsync://archlinux.c3sl.ufpr.br/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2021-07-22 20:30:02] WARNING: failed to rate http(s) download (http://mirror.ufscar.br/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
^C^Zfish: Job 1, 'reflector --sort rate -c Brazil…' has stopped

After that, I tried increasing the timeout (which is 5s by default), to 60 using --download-timeout 60 but nothing has changed so far.
This is my hosts file:

✦ ➜ cat /etc/hosts
# Static table lookup for hostnames.
# See hosts(5) for details.
127.0.0.1    localhost
::1        localhost
127.0.0.1    blyatmobile.localdomain     blyatmobile

What could possibly be the cause of the error?

Last edited by Blyatmobilebr (2021-07-31 18:04:39)

Offline

#2 2021-07-23 02:31:22

mpan
Member
Registered: 2012-08-01
Posts: 1,208
Website

Re: [SOLVED] Download speed incredibly slow

I was observing similar warnings and don’t know what causes them, but — other than eliminating some mirrors — they are benign for the whole process. reflector will successfully rate other servers. So don’t kill the process, just allow it to perform its job until it naturally finishes, ignoring the warnings.

<opinion>
While it’s my opinion and some will have a different view on that, I will also advise against using the --country option unless you have reasons of political, financial, organisational or security-related nature, or they are data-backed. If a server is fast for you, it is fast no matter where it’s located: the point of using reflector is avoiding arbitrary choices and selecting the mirror based on its actual speed. So don’t needlessly eliminate options.

The reason some may be against that is one thing that reflector is not taking into account: latency. An Australian server may give you 18MB/s, but if it’s 3500ms away, the whole upgrade process may be slower. But IMO until you observe that problem, there is no reason to assume it happens. There is nothing that magically makes a Mexican, Argentinian or US server noticeably slower than a Brazilian one. And with pacman supporting parallel downloads since the 6.x line, that becomes of even less concern.
</opinion>

Last edited by mpan (2021-07-23 02:31:55)


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#3 2021-07-23 02:42:31

Blyatmobilebr
Member
Registered: 2021-07-21
Posts: 9

Re: [SOLVED] Download speed incredibly slow

mpan wrote:

I was observing similar warnings and don’t know what causes them, but — other than eliminating some mirrors — they are benign for the whole process. reflector will successfully rate other servers. So don’t kill the process, just allow it to perform its job until it naturally finishes, ignoring the warnings.

<opinion>
While it’s my opinion and some will have a different view on that, I will also advise against using the --country option unless you have reasons of political, financial, organisational or security-related nature, or they are data-backed. If a server is fast for you, it is fast no matter where it’s located: the point of using reflector is avoiding arbitrary choices and selecting the mirror based on its actual speed. So don’t needlessly eliminate options.

The reason some may be against that is one thing that reflector is not taking into account: latency. An Australian server may give you 18MB/s, but if it’s 3500ms away, the whole upgrade process may be slower. But IMO until you observe that problem, there is no reason to assume it happens. There is nothing that magically makes a Mexican, Argentinian or US server noticeably slower than a Brazilian one. And with pacman supporting parallel downloads since the 6.x line, that becomes of even less concern.
</opinion>

Hello there!

Well, I just stopped the process so the output here wouldn't be large, but yesterday I waited for around 30 mins just to rate all of my mirrors and write the output to that file, but still I can barely get 300kb/s. I can ping just fine and the ms is pretty low, so I'm kind of lost. I've read the wiki and some articles on the internet but I'm still facing the issue.

Offline

#4 2021-07-23 02:58:53

mpan
Member
Registered: 2012-08-01
Posts: 1,208
Website

Re: [SOLVED] Download speed incredibly slow

Then a different issue indeed.

Have you tried downloading from any of them directly? Can you measure your download speeds by other means, from any other source?

If you run mtr, like that:

mtr -tbuP 53 8.8.8.8

and switch to the third display mode (press the ‘d’ key twice), do you see a lot of lost of variation in latency? Or perhaps thee is many packets lost?


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#5 2021-07-23 03:14:28

Blyatmobilebr
Member
Registered: 2021-07-21
Posts: 9

Re: [SOLVED] Download speed incredibly slow

Here's a clear output: MTR Record. I didn't see many packet losses when I ran the command you advised me to, at first.

Last edited by Blyatmobilebr (2021-07-23 03:15:36)

Offline

#6 2021-07-23 06:22:35

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

Re: [SOLVED] Download speed incredibly slow

Please post your system journal (sudo journalctl -b) - did you forget to install https://archlinux.org/packages/core/any/linux-firmware/ ?

Offline

#7 2021-07-24 17:25:25

Blyatmobilebr
Member
Registered: 2021-07-21
Posts: 9

Re: [SOLVED] Download speed incredibly slow

Here's the output: https://pastecord.com/wyfysopoxe.yaml
No, actually that was the package I installed along with some other ones when I was installing Arch

Last edited by Blyatmobilebr (2021-07-24 17:25:53)

Offline

#8 2021-07-24 20:54:25

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

Re: [SOLVED] Download speed incredibly slow

That's only part of the journal, however there're no connection losses, the only logged signal looks strong enough - but: "brcmsmac"

Welcome to hell.

lspci

Offline

#9 2021-07-28 00:53:50

Blyatmobilebr
Member
Registered: 2021-07-21
Posts: 9

Re: [SOLVED] Download speed incredibly slow

Apparently it's something related to my regulatory domain. I ran this command:

root@meow-pc /h/meow# dmesg | grep cfg80211
[    8.762620] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    8.769764] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7
'

, but when I installed CRDA, proceeded to reboot but nothing changed.
Then I proceeded to edit the /etc/conf.d/wireless-kingdom and I uncommented the WIRELESS-KINGDOM="BR" line, rebooted again and the speed is still slow (20-100kb/s). I set the regdomain using iw reg set BR, and checked if the change has been successful with iw list | grep -A 15 Frequencies:. Here's the output:

root@meow-pc /h/meow [0|1]# iw list | grep -A 15 Frequencies:
		Frequencies:
			* 2412 MHz [1] (19.0 dBm)
			* 2417 MHz [2] (19.0 dBm)
			* 2422 MHz [3] (19.0 dBm)
			* 2427 MHz [4] (19.0 dBm)
			* 2432 MHz [5] (19.0 dBm)
			* 2437 MHz [6] (19.0 dBm)
			* 2442 MHz [7] (19.0 dBm)
			* 2447 MHz [8] (19.0 dBm)
			* 2452 MHz [9] (19.0 dBm)
			* 2457 MHz [10] (19.0 dBm)
			* 2462 MHz [11] (19.0 dBm)
			* 2467 MHz [12] (19.0 dBm) (no IR)
			* 2472 MHz [13] (19.0 dBm) (no IR)
			* 2484 MHz [14] (disabled)
	Supported commands:

I've also used modprobe cfg80211 ieee80211_regdom=BR, but when I tried to check if my country was set with iw reg get, I got the following output:

root@meow-pc /h/meow# iw reg get
global
country 00: DFS-UNSET
	(2402 - 2472 @ 40), (6, 20), (N/A)
	(2457 - 2482 @ 20), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
	(2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN
	(5170 - 5250 @ 80), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
	(5250 - 5330 @ 80), (6, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN
	(5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
	(5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN
	(57240 - 63720 @ 2160), (N/A, 0), (N/A)

phy#0
country X2: DFS-UNSET
	(2402 - 2472 @ 40), (N/A, 19), (N/A)
	(2457 - 2482 @ 20), (N/A, 19), (N/A), PASSIVE-SCAN
	(5170 - 5250 @ 40), (N/A, 21), (N/A), PASSIVE-SCAN
	(5250 - 5330 @ 40), (N/A, 21), (0 ms), DFS, PASSIVE-SCAN
	(5490 - 5710 @ 40), (N/A, 21), (0 ms), DFS, PASSIVE-SCAN
	(5735 - 5835 @ 40), (N/A, 21), (N/A), PASSIVE-SCAN

I'm a bit lost from this point. How can I fix the issue?

Last edited by Blyatmobilebr (2021-07-28 00:55:00)

Offline

#10 2021-07-28 06:25:07

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

Re: [SOLVED] Download speed incredibly slow

Apparently it's something related to my regulatory domain.

How do you come to that conclusion?

Then I proceeded to edit the /etc/conf.d/wireless-kingdom

Where does that file come from? crda uses the COUNTRY locale

modprobe cfg80211 ieee80211_regdom=BR

If you didn't unload the module before, that did nothing.

I'll point out again that you're using one of the worst chipset family one can possibly have for wifi - it has its dedicated wiki entry because of the many issues and struggles.
Selecting a better™ driver might fix your issues (which is why I asked for lspci…)

Offline

#11 2021-07-28 14:18:14

Blyatmobilebr
Member
Registered: 2021-07-21
Posts: 9

Re: [SOLVED] Download speed incredibly slow

Hi Seth, sorry for that.
Here's the output of the lspci:

meow@meow-pc ~> lspci
00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02)
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
00:1a.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05)
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 05)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 05)
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 05)
00:1c.2 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 3 (rev 05)
00:1c.4 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 5 (rev 05)
00:1d.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a5)
00:1f.0 ISA bridge: Intel Corporation HM55 Chipset LPC Interface Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 05)
00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 05)
05:00.0 Network controller: Broadcom Inc. and subsidiaries BCM4313 802.11bgn Wireless Network Adapter (rev 01)
06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller (rev 02)
ff:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02)
ff:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02)
ff:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02)
ff:02.1 Host bridge: Intel Corporation 1st Generation Core i3/5/7 Processor QPI Physical 0 (rev 02)
ff:02.2 Host bridge: Intel Corporation 1st Generation Core i3/5/7 Processor Reserved (rev 02)
ff:02.3 Host bridge: Intel Corporation 1st Generation Core i3/5/7 Processor Reserved (rev 02)

How can I be able to know what driver is the "best" in my case?

Offline

#12 2021-07-28 14:27:46

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

Offline

#13 2021-07-31 18:01:57

Blyatmobilebr
Member
Registered: 2021-07-21
Posts: 9

Re: [SOLVED] Download speed incredibly slow

It was a problem with my drivers actually. I'm currently using b43-firmware package and my download speed is much better (40mb/s). I'm going to probably find out the correct driver to match my 150mb/s internet but I'll mark this thread as solved. Thank you all for helping me smile

Offline

Board footer

Powered by FluxBB