Stream: wasmtime

Topic: `cargo test --all` consuming all my RAM


view this post on Zulip Benjamin Bouvier (Aug 10 2022 at 14:53):

Hey! I can't seem to be able to run cargo test --all properly on my machine, as doing so consumes all my RAM, some tests don't run at all. Cargo complains that some sub builds processes fail, and it's likely LD that consumes too much RAM and then fails. Is there a way to run all the tests nevertheless, or specify an alternative linker that would consume less ram?

view this post on Zulip Dan Gohman (Aug 10 2022 at 14:54):

would something like cargo test --all --jobs=1 help?

view this post on Zulip Benjamin Bouvier (Aug 10 2022 at 15:14):

Likely yes, thanks. I could try to identify which subset of tests need a lesser number of jobs, so as to still be able to run other tests in parallel.

view this post on Zulip Alex Crichton (Aug 10 2022 at 15:20):

You might also be able to get by with turning down debuginfo which is probably most of the cause of the blowup. I think seeing CARGO_PROFILE_{DEV,TEST}_DEBUGINFO=0 should work


Last updated: Nov 22 2024 at 16:03 UTC