You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
computes the amount of available parallelism by running nproc -all. However, when nproc -all returns all available parallelism, not the parallelism clamps done by /usr/bin/taskset $cpu_mask ...job invocation. Arguably, just nproc should be used here, not nproc -all since nproc returns the number of processors asked for by the parent /usr/bin/taskset
/usr/bin/taskset 0xf nproc -all
Returns 36 (that's what the hardware on my workstation has), but
/usr/bin/taskset 0xf nproc
returns 4, eg the popcount(0xf).
Reproduction Steps
See above
Expected behavior
There's a reason I clamp the number of cores I give to the build process tree. I wish the build process followed my wishes.
Actual behavior
uses number of hardware cores, not the number of cores I clamped it to
Activity
RobertHenry6bev commentedon Aug 27, 2022
/cc @jkotas
jkotas commentedon Aug 27, 2022
cc @am11
jkotas commentedon Aug 27, 2022
nproc -allwas introduced in dotnet/coreclr#13909am11 commentedon Aug 27, 2022
This is a good point, and that's how brotli's build uses it
runtime/src/native/external/brotli/fuzz/test_fuzzer.sh
Line 17 in 13d8d2e
Lets update all three places: