-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
cargo doesn't respect the maximum number of jobs #7772
Comments
This is a known bug with the |
Do you have a link to an open issue? |
There is not currently an open issue on the |
Should this one be redirected there, then, with more details about the "known bug"? Because it's not clear to me how |
Er well I'm pointing out that this issue you're reporting has nothing to do with Cargo itself, so this isn't the proper place for this issue. This is likely very related to the behavior of the I don't really consider the behavior a bug on the |
I still don't understand how |
@glandium There is more detail at #7689 (comment) and #7344 (comment). The jobserver protocol is a very simple queue of tokens, and there is no protection that a client pushes extra tokens into the queue. The |
Problem
When running cargo with an explicit -jn, or via GNU make with an explicit -jn, the number of jobs can actually exceed the limit given. Presumably, the same happens without -jn, but now that I have 32 cores/64 threads, I can't find a crate that saturates them.
Steps
cargo build -j4 -Z timings
You'll notice that at some point the number of active jobs goes over 4. This report (cargo-timing.zip) goes up to 7.
Notes
Output of
cargo version
:The text was updated successfully, but these errors were encountered: