[PATCH] "automated" make -j value
Andrzej Tobola
ato at iem.pw.edu.pl
Thu Dec 14 05:41:01 PST 2006
Hello David,
I was using hw.ncpu. Which one is better ?
% sysctl -n kern.smp.cpus hw.ncpu
1
1
% ssh vol sysctl -n kern.smp.cpus hw.ncpu
2
2
% ssh vol2 sysctl -n kern.smp.cpus hw.ncpu
4
4
cheers,
-a
On Wed, Dec 13, 2006 at 08:19:52PM -0800, David O'Brien wrote:
> With multi-socket systems becoming more prevalent, and the continued
> increase in cores per processors, I thought it would be nice for
> 'make -j' to gain some automation.
>
> Attached is a patch that makes "-j-" be the same as
> "-j `sysctl -n kern.smp.cpus`" and "-j=" be twice that.
More information about the freebsd-hackers
mailing list