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

build: limit the maximum amount of parallel cargo build #165

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

arighi
Copy link
Collaborator

@arighi arighi commented Feb 29, 2024

Each cargo build is already parallelized, spreading multiple rustc across all the available CPUs by default.

Allowing to run multiple instances of cargo at the same time doesn't provide any benefit and it can only increase the risk of triggering OOM conditions or overloading the build system.

Therefore, limit the amount of parallel cargo build instances to 1.

Each cargo build is already parallelized, spreading multiple rustc
across all the available CPUs by default.

Allowing to run multiple instances of cargo at the same time doesn't
provide any benefit and it can only increase the risk of triggering OOM
conditions or overloading the build system.

Therefore, limit the amount of parallel cargo build instances to 1.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
@Byte-Lab Byte-Lab merged commit a7b39f2 into main Feb 29, 2024
1 check passed
@htejun
Copy link
Contributor

htejun commented Feb 29, 2024

Wait, I'm not sure this actually does what you say. This doesn't limit the number of cargo instances from meson side. This limits the number of rustc instances that each cargo instance kicks off, right? This will make cargo builds really slow.

htejun added a commit that referenced this pull request Feb 29, 2024
This reverts commit a7b39f2, reversing
changes made to cf7404f.

The PR doesn't do what the description says. It instead limits the number of
rustc instances to 1 for each cargo build making rust builds extremely slow.
Let's revert and try again.
htejun added a commit that referenced this pull request Feb 29, 2024
Revert "Merge pull request #165 from sched-ext/reduce-rust-build-load"
@Byte-Lab Byte-Lab deleted the reduce-rust-build-load branch March 14, 2024 18:20
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

Successfully merging this pull request may close these issues.

None yet

3 participants