rust-lang / rust-lang/rust

rustup is slow

Open
#119,496 26 comments 6 reactions 1 assignee View on GitHub

@jdno is already working on this.

Since Jan 8, 2024.

C-bug T-infra
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

View all comments

Running rustup update and rustup target add x86_64-unknown-linux-gnu is very slow for me.

info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
info: downloading component 'rust-src'
info: downloading component 'cargo'
  1.7 MiB /   7.7 MiB ( 22 %)  40.8 KiB/s in 41s ETA:  2m 29s 

It eventually fails. Sometimes rustup update works and downloads at high speed, e.g. 100Mbit+.
I suspect there's a problem with the mirrors/servers that rustup uses?
If I should take a wild guess, maybe there is DNS roundrobin load balancing, and the DNS response is then cached/pinned to a slow/unresponsive server, until the DNS cache expires.
I worry about downtime in production. There doesn't seem to be any way to choose between mirrors? Are there even any mirrors?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.