this post was submitted on 19 Jun 2023
4 points (100.0% liked)

Arch Linux

7605 readers
1 users here now

The beloved lightweight distro

founded 4 years ago
MODERATORS
 

I used to pick out mirrors manually and had servers very close to me, but I recently started using reflector to automate the process, but the mirrors it chooses is absolute dogshit and gives me really slow speeds.

What am I doing wrong?

top 8 comments
sorted by: hot top controversial new old
[–] theophrastus@vlemmy.net 2 points 1 year ago (1 children)

Could you include what you're currently using for the various reflector command-line switches? (e.g. --age --protocol --sort ...)

[–] radicalpikachu@vlemmy.net 0 points 1 year ago (3 children)

Here's whats in /etc/xdg/reflector/reflector.conf


# Reflector configuration file for the systemd service.
#
# Empty lines and lines beginning with "#" are ignored.  All other lines should
# contain valid reflector command-line arguments. The lines are parsed with
# Python's shlex modules so standard shell syntax should work. All arguments are
# collected into a single argument list.
#
# See "reflector --help" for details.

# Recommended Options

# Set the output path where the mirrorlist will be saved (--save).
--save /etc/pacman.d/mirrorlist

# Select the transfer protocol (--protocol).
--protocol https

# Select the country (--country).
# Consult the list of available countries with "reflector --list-countries" and
# select the countries nearest to you or the ones that you trust. For example:
--country Bangladesh,India

# Use only the  most recently synchronized mirrors (--latest).
--latest 5

# Sort the mirrors by synchronization time (--sort).
--sort age
[–] festus@lemmy.ca 2 points 1 year ago* (last edited 1 year ago)

Been a while since I mucked with reflector, but you don't seem to be prioritizing faster mirrors whatsoever. Try --sort rate instead. If that's not fast enough I'd also increase your --latest up to maybe 15 so that you have higher odds of a fast mirror being in the group of just-updated mirrors.

You are sorting by age, there is probably an option for sorting by speed or similar. You are already only choosing from the latest 5 synchronized mirrors, which should be very much up-to-date, so I'd sort by speed.

And IMO, your countries are not that many, maybe increase the list and double --latest to 10.

[–] 4ffy@lemmy.ml 1 points 1 year ago

In my reflector.conf, I have --score 5 instead of --latest 5. I don't know how much this actually improves anything, but surely selecting by score is better than just using the most recent mirrors.

My config is set to: --country US --protocol https --sort rate --age 48 --latest 10. As a result, installations and updates are always very fast for me.

[–] memchr@lemmy.world 1 points 1 year ago

A bit off topic:

Normally the mirrors behind the CDN would have decent speeds everywhere, e.g.

  • mirror.osbeck.com
  • arch.hu.fo
  • mirror.sunred.org

These are the top tree mirrors currently on the mirror status and they are all behind cloudflare.

load more comments
view more: next ›