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!
About this post
- Posted
- Archived
- Score
- 12 · 100% up
- Kind
- Text
- ID
- ba535a
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.
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:
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:
N.B. Score is calculated as:
(all values relative to the location of the Arch server; lower is better)
Do you just use the 5 fastest from any geo-location?
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.
Deleted before we saved it.
It can be done as a pacman hook that only runs it when pacnew is updated. No need to do it at every boot.
Interesting. I've been using
reflectorfor 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:One, because of deltas.
Sorry, can you elaborate, please?
https://bbs.archlinux.org/viewtopic.php?id=243247
There aren't many of delta servers available, and they are not interchangeable, so i'm only using that one. I particularly enjoy getting full Plasma updates that are at most 3 MB.
One! I don't like the package list changing because different servers have different lists.
1, my own public mirror
I have all of them. Why would you remove them? Just move the ones nearest to you to the top of the file.
The nearest ones may not always be the fastest and they could potentially be outdated as well. Thus it's best to use the
rankmirrorsscript in conjunction with the mirrors from https://www.archlinux.org/mirrorlist/, or to usereflector. I personally use the former method and I select 2 of the nearest countries from the list.You could perhaps not filter out any mirrors and just use the
rankmirrorsscript with all mirrors?I only have the one. ive had to change mirror once in like 6 years or so.
I leave all mirrors on my country, its 5 or 6, don't remember now...
12
5
Just the 5 in my country ordered using reflector
Filter out all the http ones then rankmirrors by updated and speed.