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 D38457
Use nproc(1) instead of sysctl kern.smp.cpus mjg on Feb 8 2023, 9:30 PM. Authored by Tags None Referenced Files
Details
The former respects cpuset, while the latter does not. $ cpuset -l 1 -- make -V MAKE_JOBS_NUMBER As nproc is newly introduced, keep the previous variant as a fallback for the time being.
Diff Detail
Event TimelineThis comment was removed by mandree.
Comment Actions Note this introduces an extra PATH search for systems that do NOT yet have nproc so perhaps we need to add some OSVERSION switch here. |