Skip to content

How many mirrors do you typically have in your mirror list?

I have been using Arch for about two years, and recently did a fresh install on my new PC. I was in a rush and skipped ranking or properly setting up my mirrorlist, so right now everything is activated as with the live environment. As you'd expect, my speeds tend to be painfully slow.

​

Anyway, in looking at the mirrorlist generator and wiki articles it got be thinking about how many mirrors I should have in my mirrorlist? I'm located in Ontario, Canada, so I'm thinking ranking a handful of Canadian and US mirrors should be a good fit, but I'd appreciate any input you folks have!

12 points22 comments
Open on Reddit
About this post
Posted
Archived
Score
12 · 100% up
Kind
Text
ID
ba535a

Author

12
posts
183
comments
0
media
View profile

25 comments

I have five, and I live in Canada, too. I run reflector every so often:
'reflector --verbose --latest 5 --sort rate --save /etc/pacman.d/mirrorlist'
This takes the top five fastest mirrors and overwrites the older mirrorlist.
Usually do this before I run syu.
Funnily enough, not too many servers in Canada are the fastest.

12 points

Just a friendly FYI, your command does not take the top 5 fastest mirrors. It takes the top 5 most recently updated mirrors and sorts them by download speed. If you want the top 5 fastest mirrors sorted by download speed, you would run:

reflector --fastest 5 --sort rate --save /etc/pacman.d/mirrorlist

However, that would take a very long time to run because it would test every available mirror. You probably want to test some subset of available mirrors. For example, you're very likely to find the top 5 fastest mirrors among the top 50 by score:

reflector --score 50 --fastest 5 --sort rate --save /etc/pacman.d/mirrorlist

N.B. Score is calculated as:

(hours delay + average duration + standard deviation) / completion percentage

(all values relative to the location of the Arch server; lower is better)

2 points

Do you just use the 5 fastest from any geo-location?

1 points

If it's on the mirror page https://www.archlinux.org/mirrors/status/list and the fastest, why not?
Obviously, you can pick the top five locally - like Waterloo and Princeton, for example, if speed is not a concern. As for security of the mirrors, that's another discussion.
I do think that any more than five in the list is unnecessary.

4 points
unknown author2 hidden

Deleted before we saved it.

5 points

It can be done as a pacman hook that only runs it when pacnew is updated. No need to do it at every boot.

3 points

Interesting. I've been using reflector for a few years, but only just now learned you can sort by "score". I had been sorting according to "rate". According to the Mirror Status page "score" is:

A very rough calculation for ranking mirrors. It is currently calculated as (hours delay + average duration + standard deviation) / completion percentage. Lower is better.

2 points

One! I don't like the package list changing because different servers have different lists.

2 points

I have all of them. Why would you remove them? Just move the ones nearest to you to the top of the file.

1 points

The nearest ones may not always be the fastest and they could potentially be outdated as well. Thus it's best to use the rankmirrors script in conjunction with the mirrors from https://www.archlinux.org/mirrorlist/, or to use reflector. I personally use the former method and I select 2 of the nearest countries from the list.

1 points

You could perhaps not filter out any mirrors and just use the rankmirrors script with all mirrors?

1 points

I only have the one. ive had to change mirror once in like 6 years or so.

1 points

I leave all mirrors on my country, its 5 or 6, don't remember now...

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.