-
Notifications
You must be signed in to change notification settings - Fork 965
Closed as not planned
Description
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
- rm -rf ~/.rustup
- export RUSTUP_UNPACK_RAM=33554432;
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- watch htop use about 150MBs ,quite hard to note like this. but on laptop 1.4Gb up to about 1.6Gb, on pi starting with 75MB of 428MB and seems to use all of it. both cases are way more than 33MB
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
[will@localhost ~]$ rustup --version
rustup 1.24.3 (ce5817a94 2021-05-31)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.57.0 (f1edd0429 2021-11-29)`
[will@localhost ~]$
Installed toolchains
[will@localhost ~]$ rustup show
Default host: x86_64-unknown-linux-gnu
rustup home: /home/will/.rustup
stable-x86_64-unknown-linux-gnu (default)
rustc 1.57.0 (f1edd0429 2021-11-29)