rustup is slow
Open
@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
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.