Hint mechanism to require more "slots" to build a crate #8405
Labels
A-build-execution
Area: anything dealing with executing the compiler
A-jobserver
Area: jobserver, concurrency, parallelism
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
When building rust-lang/rust in parallel, I found that
rustc_middle
would take the vast majority of the compilation time and memory. I repeatedly ran into the OOM-killer because cargo would start up three more things building in parallel, andrustc_middle
was already using 5-6GB of my 8GB of RAM. I'd like to be able to somehow hint to Cargo that it should treatrustc_middle
as particularly heavy to build, and that it should count as multiple "slots" in the 4 parallel jobs Cargo would allow to run. That would have allowed me to successfully build within 8GB of RAM.The text was updated successfully, but these errors were encountered: