**Problem** <!-- A clear and concise description of what the bug is. --> <!-- including what currently happens and what you expected to happen. --> After #2756 rustup will just hang if it's not able to determine the effective max ram of the system. The differences seem to be: 1. The fallback for when `effective_limits::memory_limit` changed from 500MB to 32MB. 2. Rustup gets stuck waiting for some memory to free up here: https://github.com/rust-lang/rustup/blob/a1d59124df97069ce210f4ca9c11f00ab2dbd5e8/src/dist/component/package.rs#L402-L409 I encountered this running on an illumos machine. **Steps** On a machine not supported by `effective_limits` v0.5.2`: `$ curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal --default-toolchain nightly` **Possible Solution(s)** 1. Choose a larger default than 32MB (note, 64MB is still not enough for `--profile complete`). 2. v0.5.3-alpha of the effective-limits crate supports illumos but hasn't been released yet. (https://github.com/rbtcollins/effective-limits.rs/issues/15) **Notes** Output of `rustup --version`: `1.24.2 (755e2b07e 2021-05-12)`
Problem
After #2756 rustup will just hang if it's not able to determine the effective max ram of the system. The differences seem to be:
effective_limits::memory_limitchanged from 500MB to 32MB.rustup/src/dist/component/package.rs
Lines 402 to 409 in a1d5912
I encountered this running on an illumos machine.
Steps
On a machine not supported by
effective_limitsv0.5.2`:$ curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal --default-toolchain nightlyPossible Solution(s)
--profile complete).Notes
Output of
rustup --version:1.24.2 (755e2b07e 2021-05-12)