Skip to content
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

Check memory usage when emulating x86 images on M1/M2 macs #102

Open
webmaster128 opened this issue Nov 18, 2022 · 1 comment
Open

Check memory usage when emulating x86 images on M1/M2 macs #102

webmaster128 opened this issue Nov 18, 2022 · 1 comment

Comments

@webmaster128
Copy link
Member

When cross compiling the 0.12.10 x86 image on ARM64 macs, the RUSTFLAGS='-C link-arg=-s' cargo build --release step in the builder image required a lot of RAM. 20 GB was not enought but 25 GB worked.

For maintaining this repository this is fine. However, I wonder what the users of rust-optimizer/workspace-optimizer have to configure when using the resulting image. We need to measure this (test a few settings with a few contracts) and document it.

It is likely the memory consumtion of the Rust compiler changed between 0.12.10 (Rust 1.65.0) and 0.12.9 (Rust 1.64.0).

@webmaster128
Copy link
Member Author

A user with an M1 machine (probably 8 core, 16 GB M1 mac) and those settings cannot cross-compile contracts with 0.12.10.

Bildschirmfoto 2022-11-20 um 00 25 55

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

1 participant