Skip to content

Raspberry Pi Zero 2 W - runs out of memory when installing rust #120049

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

Closed
adzke opened this issue Jan 17, 2024 · 1 comment
Closed

Raspberry Pi Zero 2 W - runs out of memory when installing rust #120049

adzke opened this issue Jan 17, 2024 · 1 comment

Comments

@adzke
Copy link

adzke commented Jan 17, 2024

I tried this code:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

I expected to see this happen:

Rust to be installed.

Instead, this happened:

Ran out of memory.

rustc --version --verbose:

Latest run version 64 bit
G'day rust team! This is my first issue post ever, but i thought you would find this bug interesting.

Using a Raspberry Pi Zero 2 W 64 bit, and install rust, you will find that after it's completed downloading, the installation will failure. It's failing due to memory related issues.

I solved this problem but increasing swap allocation on the Raspberry Pi.

Note: this doesn't failure installation on a 32 bit Raspberry Pi zero 1 w

Thanks all!

AD

@adzke adzke added the C-bug Category: This is a bug. label Jan 17, 2024
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Jan 17, 2024
@saethlin saethlin removed C-bug Category: This is a bug. needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Jan 17, 2024
@saethlin
Copy link
Member

Setting RUSTUP_IO_THREADS=1 has also helped me out of this in the past: rust-lang/rustup#3125

I think the problem here is just that rustup's free memory calculation could use some improvement. But that's rustup issue, unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants