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

Extremely slow toolchain download #4057

Open
2 tasks done
ferologics opened this issue Oct 22, 2024 · 9 comments
Open
2 tasks done

Extremely slow toolchain download #4057

ferologics opened this issue Oct 22, 2024 · 9 comments
Labels
incomplete The bug report does not have enough information

Comments

@ferologics
Copy link

Verification

Problem

rustup toolchain install nightly-2024-10-19-aarch64-apple-darwin

.. no firewall or vpn ..

starts 4mib/s then immediately drops to 17kib/s

Image

Image

Steps

rustup toolchain install nightly-2024-10-19-aarch64-apple-darwin

Possible Solution(s)

wait 🤷

Notes

it's not the first time this happens

Rustup version

$ rustup --version
rustup 1.27.1 (54dd3d00f 2024-04-24)

Installed toolchains

$ rustup toolchain list
stable-aarch64-apple-darwin (default)

OS version

macOS Sequoia 15.1 (24B82)

@ferologics ferologics added the bug label Oct 22, 2024
@djc
Copy link
Contributor

djc commented Oct 22, 2024

How much memory does your machine have? How much free disk space?

@ferologics
Copy link
Author

100GB free space, 32GB memory, pressure is suuper low.

Image
Image

the installation is still ongoing... also i got a couple of error: component download failed for rustc-aarch64-apple-darwin: error decoding response body, possible because it just stalls.

Image

@rami3l
Copy link
Member

rami3l commented Oct 22, 2024

Hmmm I do remember downloading nightlies are slower, but I don't expect it to be this slow... Could this be a infra/peering problem or something?

@jdno have you seen anything like this before?

@rami3l
Copy link
Member

rami3l commented Oct 22, 2024

@ferologics OTOH you're using macOS 15.1 which is AFAIK still in prerelease state. Does it work alright on other machines/network environments, if you happen to have access to any?

@ferologics
Copy link
Author

imo this is not beta macos related, usually my toolchain update is smooth, but can occasionally be painfully slow, like now. my peers haven't had this issue, they're running stable macos.

@ChrisDenton
Copy link
Member

This might be a server issue. I've had a few instances where downloads crawled because I got routed to a bad CDN server.

@rami3l
Copy link
Member

rami3l commented Oct 23, 2024

This might be a server issue. I've had a few instances where downloads crawled because I got routed to a bad CDN server.

@ChrisDenton Thanks for sharing! I was reminded of the dual-CDN problem in #3791 (comment).

@ferologics Would you mind explicitly telling Rustup the CDN you'd like to use as described in that post and see if it gets any better?

Hint:

export RUSTUP_UPDATE_ROOT=https://fastly-static.rust-lang.org/rustup
export RUSTUP_DIST_SERVER=https://fastly-static.rust-lang.org

... or, replace fastly with cloudfront.

@jdno
Copy link
Member

jdno commented Oct 23, 2024

@ferologics It would also be helpful to get the output of curl -I https://static.rust-lang.org to see which point-of-presence your hitting in the CDN.

@ferologics
Copy link
Author

ferologics commented Oct 23, 2024

my install went through later that day, but I will try to repro and see if pointing it helps @rami3l

$ curl -I https://static.rust-lang.org
HTTP/2 200 
x-amz-id-2: hOPMMeM5UPVzIy5pQogkQHIRhMSz1YnYy8U27UxgAA5agN0sBpm+uavBD+fmIyBNT2ZHTYRts2Q=
x-amz-request-id: EJ9DSB8A3A1YN6P9
x-amz-bucket-region: us-west-1
content-type: application/xml
server: AmazonS3
accept-ranges: bytes
age: 1
date: Wed, 23 Oct 2024 10:21:03 GMT
via: 1.1 varnish
x-served-by: cache-vie6354-VIE
x-cache: MISS
x-cache-hits: 0
x-timer: S1729678862.622280,VS0,VE1664
content-length: 342529

^ @jdno this is the current output, not sure if that changed since yesterday.
my hunch is it's different b/c it recovered and significantly sped up..

@rami3l rami3l added incomplete The bug report does not have enough information and removed bug labels Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
incomplete The bug report does not have enough information
Projects
None yet
Development

No branches or pull requests

5 participants