HomeFreeBSD

SMP: Use nproc(1) instead of sysctl kern.smp.cpus

Description

SMP: Use nproc(1) instead of sysctl kern.smp.cpus

The former respects cpuset, while the latter does not.

$ cpuset -l 1 -- make -V MAKE_JOBS_NUMBER
1

As nproc is newly introduced, keep the previous variant as a fallback
for the time being.

Differential Revision: https://reviews.freebsd.org/D38457

Details

Provenance
mjgAuthored on Feb 16 2023, 3:49 PM
baptCommitted on Feb 16 2023, 3:51 PM
Differential Revision
D38457: Use nproc(1) instead of sysctl kern.smp.cpus
Parents
R11:22885407b30b: graphics/converseen: update to 0.9.11.0
Branches
Unknown
Tags
Unknown