Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use mirrors.ubuntu.com as package source #254

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jackpot51
Copy link
Member

This will select better sources for non-US users, and potentially improve package download speeds for all users.

Metadata download speeds may be negatively impacted, should be tested with a freshly installed ISO built from this branch.

@jackpot51 jackpot51 requested a review from a team April 15, 2020 16:25
@jackpot51 jackpot51 self-assigned this Apr 15, 2020
@jackpot51 jackpot51 requested a review from mmstick April 15, 2020 16:27
Copy link
Member

@jacobgkau jacobgkau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Built an iso with this PR, confirmed that it uses mirrors.ubuntu.com for its sources.

01-iso-sources

With both the current released iso (nvidia_9) and the mirrors iso, performed the following:

  • Installed without internet connection, rebooted into the new installation & completed first-time user setup.
  • Plugged in Ethernet & immediately ran sudo apt update, then ran it a second time.

First update:

  • us.archive.ubuntu.com, first update: 5.27 seconds
  • mirrors.ubuntu.com, first update: 10.27 seconds

Second update:

  • us.archive.ubuntu.com, second update: 1.27 seconds
  • mirrors.ubuntu.com, second update: 5.03 seconds

Video (with timer) for us.archive.ubuntu.com: https://www.dropbox.com/s/4c8a4mwagusly21/us-archive-updateonly.webm?dl=0
Video (with timer) for mirrors.ubuntu.com: https://www.dropbox.com/s/7hux7jbvytm06ss/mirrors-updateonly.webm?dl=0

Running out of time for this today, but I'd like to do another test where I install some packages after updating the metadata, to demonstrate whether the seconds lost from metadata are made back up when downloading packages (although that will depend a lot on users' locations.)

@jacobgkau
Copy link
Member

Doing another round of testing, at least in some instances, the mirrors:// format appears to be slower than us.archive.ubuntu.com not just in updating metadata, but also in downloading packages.

Us.archive update: 00:05.50
Us.archive install: 00:07.07
Video with timers: https://www.dropbox.com/s/42e8haz62jctz3q/us-archive-install.webm?dl=0

Mirrors update: 00:58.63 (it seemed to get stuck on one that wasn't responding for a while)
Mirrors install: 02:03.63
Video with timers: https://www.dropbox.com/s/c25bpa4im9p6v07/mirrors-install.webm?dl=0

(For the timers, the "apt update" timer stopped when the command finished to be consistent with the tests from last week, but the "apt install" timer stopped when it got done with the actual download portion.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants