-
Notifications
You must be signed in to change notification settings - Fork 941
RUSTUP_UNPACK_RAM seems not too work but is still documented #2919
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
Comments
So there's a number of potential things here.
|
A bit of a necro, but I was able to install rustc on a 512MB RAM OrangePi (4 cores) by also setting Prior to this, rustup would take 300MiB of RAM then get killed by the OOM killer. With this, the limit seems to be respected a lot more closely. |
What's the current workaround? I can't get RUSTUP_UNPACK_RAM to work on a Pi Zero W.
|
This comment was marked as duplicate.
This comment was marked as duplicate.
Closing in favor of #3125. Rustup's handling of very little free memory definitely needs some improvement... |
Problem
rustup advertises RUSTUP_UNPACK_RAM in https://rust-lang.github.io/rustup/environment-variables.html?highlight=ram#environment-variables
but it seems to do nothing
Steps
Possible Solution(s)
It could be that I'm doing something stupid but given it seems to happen on more than one device i feel that something is possibly wrong.
Notes
This is blocking the ability to install on small ram systems like rasp-pi-zero-2
Also if RUSTUP_UNPACK_RAM is too small or not parsable then rust up just keep going and crashes your system. To my mind it would be loads better to stop rather than continue.
Rustup version
Installed toolchains
The text was updated successfully, but these errors were encountered: