On Thu, Mar 23, 2006 at 04:06:53PM -0800, Mike Kupfer wrote:
> [2nd resend due to mailing list problem]
>
> >>>>> "Gavin" == Gavin Maltby <[EMAIL PROTECTED]> writes:
>
> Gavin> I'd also like to see the default scaled with the number of cpus
> Gavin> available (remembering some build machines are shared!).
>
> tools/env/opensolaris.sh uses
>
> # Maximum number of dmake jobs. The recommended number is 2 + (2 *
> # NCPUS), where NCPUS is the number of CPUs on your build system.
> maxjobs() {
> ncpu=`/usr/sbin/psrinfo -p`
> expr $ncpu \* 2 + 2
> }
> DMAKE_MAX_JOBS=`maxjobs`; export DMAKE_MAX_JOBS
Which is a similar calculation to that used when the default /.make.machines
file is created upon installation of SUNWonbld; see
usr/src/tools/SUNWonbld/postinstall.
Cheers,
- jonathan
--
Jonathan Adams, Solaris Kernel Development
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code