Skip to content

RUSTUP_UNPACK_RAM seems not too work but is still documented #2919

@fishrockz

Description

@fishrockz

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

  1. rm -rf ~/.rustup
  2. export RUSTUP_UNPACK_RAM=33554432;
  3. curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  4. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions