You are not logged in.

#1 2025-07-31 14:13:35

Succulent of your garden
Member
From: Majestic kingdom of pot plants
Registered: 2024-02-29
Posts: 1,566

[SOLVED] Question about reflector usage

So I have been using reflector like this:

sudo reflector --age 12 --latest 20 --fastest 20 --threads 20 --sort rate --protocol https --save /etc/pacman.d/mirrorlist

to generate my mirror list, but I have another computer that have another mirror list created with the same command, but It seems that is way more faster than the last one that I had created in another computer.

So why could be this happening ? and also any help to improve my reflector command will be appreciated. I know the country flag, but in my case it seems to create a worse output now matter how good the internet of my country is lol

Last edited by Succulent of your garden (2025-08-03 14:52:22)


str( @soyg ) == str( @potplant ) btw!

Also now with avatar logo included!

Online

#2 2025-07-31 15:25:04

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,177

Re: [SOLVED] Question about reflector usage

I have another computer that have another mirror list created with the same command, but It seems that is way more faster than the last one that I had created in another computer.

I suppose a diff of the mirror lists would be useful - plus: you're comparing the update/download speeds on the same host?
You're not asking "why does my 64-core system w/ 1TB RAM and an nvme raid connected to DE-CIX via infiniband download stuff faster than my old single-core 512MB RAM notebook via 802.11a - the one where rust is falling out everytime the HDD makes weird noises"?

Offline

#3 2025-08-01 13:35:24

Succulent of your garden
Member
From: Majestic kingdom of pot plants
Registered: 2024-02-29
Posts: 1,566

Re: [SOLVED] Question about reflector usage

Both computers are for this task almost the same. I mean i setup parallel downloads to 5 and the wifi card have the same speed, both are in the same room so I don't think about wifi delay issues. The list I think is very different in comparison with the  older one. Today I made an update with the newer one in the computer and seems to work fine, but not sure if the older one is better, because while updating pacman said:

 cuda-12.9.1-2-x86_64                                                                                             659.2 MiB  5.71 MiB/s 01:56 [#######################################################################################] 100%
 Total (56/56)                                                                                                      2.8 GiB  6.78 MiB/s 07:00 [#######################################################################################] 100%
error: failed retrieving file 'vulkan-radeon-1:25.1.7-1-x86_64.pkg.tar.zst' from mirror.theash.xyz : The requested URL returned error: 404
error: failed retrieving file 'mesa-1:25.1.7-1-x86_64.pkg.tar.zst' from mirror.theash.xyz : The requested URL returned error: 404
error: failed retrieving file 'cuda-12.9.1-2-x86_64.pkg.tar.zst' from mirror.theash.xyz : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
warning: too many errors from mirror.theash.xyz, skipping for the remainder of this transaction
(56/56) checking keys in keyring       
Blah blah blah then pacman does everything well and so on and so on :P

I don't get it why in the newer mirror list that I had made I'm having this kind of issues of retrieving packages, but with the older one everything seems to work fine. Or at least  I can notice that difference between computers.

I will send the diff later, but in the meantime what do you think about htis ?

Last edited by Succulent of your garden (2025-08-01 13:38:53)


str( @soyg ) == str( @potplant ) btw!

Also now with avatar logo included!

Online

#4 2025-08-01 13:51:05

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,177

Re: [SOLVED] Question about reflector usage

wget -O /dev/null https://mirror.theash.xyz/arch/extra/os/x86_64/vulkan-radeon-1:25.1.7-1-x86_64.pkg.tar.zst

Works fine for me - 404 would indicate that the mirror had not properly synced at the time?

Offline

#5 2025-08-01 20:55:05

Succulent of your garden
Member
From: Majestic kingdom of pot plants
Registered: 2024-02-29
Posts: 1,566

Re: [SOLVED] Question about reflector usage

seth wrote:

Works fine for me - 404 would indicate that the mirror had not properly synced at the time?

Maybe, since I just put age with 12 hours, I'm going to try but with less time. Do you recommend an specific input for the flag --age ?

By the way, the older computer with the older mirrorlist has just recently died lol , I'm going to see if I can fix it today, seems that can still kick in some time.

Last edited by Succulent of your garden (2025-08-01 20:55:41)


str( @soyg ) == str( @potplant ) btw!

Also now with avatar logo included!

Online

#6 2025-08-01 21:22:51

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,177

Re: [SOLVED] Question about reflector usage

Miss by an inch, miss by a mile - If you get the database from mirror A that has synced 5 minutes ago but try to get the package from mirror B that has synced 15 minutes ago and the package was updated inbetween, the gods hate you.
Also there might be some time passing between you updating the mirrorlist and actually updating.

12h is an upstream suggestion. It is for sure not the perfect™ duration, but I don't have any data to argue a better number smile

Offline

#7 2025-08-01 22:10:07

Succulent of your garden
Member
From: Majestic kingdom of pot plants
Registered: 2024-02-29
Posts: 1,566

Re: [SOLVED] Question about reflector usage

Also there might be some time passing between you updating the mirrorlist and actually updating.

The last time was cuda update time, which take like 8 to 10 minutes just only with cuda, the rest of the haskell stuff among others was pretty quickly, like all in a minute to download. Do you think that could made the mirror desync ?

Last edited by Succulent of your garden (2025-08-01 22:10:57)


str( @soyg ) == str( @potplant ) btw!

Also now with avatar logo included!

Online

#8 2025-08-02 06:31:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,177

Re: [SOLVED] Question about reflector usage

error: failed retrieving file 'cuda-12.9.1-2-x86_64.pkg.tar.zst' from mirror.theash.xyz : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds

At this point you already had problems w/ the mirror.
You can run into random gaps any time. But if it's overly frequent or even reproducible you want to look into that specific situation.

Offline

#9 2025-08-02 12:41:44

Succulent of your garden
Member
From: Majestic kingdom of pot plants
Registered: 2024-02-29
Posts: 1,566

Re: [SOLVED] Question about reflector usage

It is  not frequent, it does happen but most of the time when I'm downloading heavy packages like cuda, an IDE, etc.


str( @soyg ) == str( @potplant ) btw!

Also now with avatar logo included!

Online

#10 2025-08-02 12:59:32

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,177

Re: [SOLVED] Question about reflector usage

Your NIC might collapse under load, this would have nothing to do w/ the mirror but the local network device - have you checked the system journal after such incidents?

Offline

#11 2025-08-03 00:46:43

Succulent of your garden
Member
From: Majestic kingdom of pot plants
Registered: 2024-02-29
Posts: 1,566

Re: [SOLVED] Question about reflector usage

No I haven't. You mean using journalctl ? How can I check the nick using that cli in arch ? The other option could be wireshark i guess.

Last edited by Succulent of your garden (2025-08-03 00:47:08)


str( @soyg ) == str( @potplant ) btw!

Also now with avatar logo included!

Online

#12 2025-08-03 07:28:09

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,177

Re: [SOLVED] Question about reflector usage

You mean using journalctl ?

Yes.

The other option could be wireshark i guess.

No, you're not interested in the traffic but why it stops.

Offline

#13 2025-08-03 14:51:48

Succulent of your garden
Member
From: Majestic kingdom of pot plants
Registered: 2024-02-29
Posts: 1,566

Re: [SOLVED] Question about reflector usage

Thanks Seth. Since I'm not having this issue currently now, i'm going to mark the thread as solved. But if suddenly happen again, I'll make another post with the journalctl logs to fix the issue.

Last edited by Succulent of your garden (2025-08-03 14:52:05)


str( @soyg ) == str( @potplant ) btw!

Also now with avatar logo included!

Online

#14 2025-08-03 18:44:35

cryptearth
Member
Registered: 2024-02-03
Posts: 2,104

Re: [SOLVED] Question about reflector usage

btw: using multi-thread when comparing/sorting by speed is discouraged as multiple connection can impact eachother quite severely
or to put it this way: you try to rate 20 servers at the same time by the speed they give you - so they all have to share your bandwidth at the same time
this can give you an accurate result only if your bandwidth is more than all of the server's combined
so to get a more useful result remove the multi thread but test each server one at a time

Use n threads for rating mirrors. This option will
                        speed up the rating step but the results will be
                        inaccurate if the local bandwidth is saturated at any
                        point during the operation. If rating takes too long
                        without this option then you should probably apply
                        more filters to reduce the number of rated servers
                        before using this option.

Offline

#15 2025-08-04 10:22:51

Succulent of your garden
Member
From: Majestic kingdom of pot plants
Registered: 2024-02-29
Posts: 1,566

Re: [SOLVED] Question about reflector usage

Thanks cryptearth, yesterday I made again another mirrorlist file without the thread flag, but yet there are no new packages to check. So I'm going to wait a little and test the results smile


str( @soyg ) == str( @potplant ) btw!

Also now with avatar logo included!

Online

#16 2025-08-08 23:45:54

Succulent of your garden
Member
From: Majestic kingdom of pot plants
Registered: 2024-02-29
Posts: 1,566

Re: [SOLVED] Question about reflector usage

Thanks cryptearth for the info, the new mirrorlist without using the  threads flags works far better than the initial command big_smile


str( @soyg ) == str( @potplant ) btw!

Also now with avatar logo included!

Online

Board footer

Powered by FluxBB