Mercurial > illumos > illumos-gate
changeset 13157:d26840a0e9ed
64 Improved default for number of build jobs
Reviewed by: davsebamse@gmail.com
Approved by: garrett@nexenta.com
author | Jeppe Toustrup <jeppe@tenzer.dk> |
---|---|
date | Tue, 24 Aug 2010 08:57:09 +0200 |
parents | 9b805b8d713b |
children | 439e57146ba2 |
files | usr/src/tools/env/illumos.sh |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/tools/env/illumos.sh Mon Aug 23 22:22:42 2010 -0400 +++ b/usr/src/tools/env/illumos.sh Tue Aug 24 08:57:09 2010 +0200 @@ -55,11 +55,11 @@ ON_CRYPTO_BINS="$CODEMGR_WS/on-crypto.$MACH.tar.bz2" export ON_CRYPTO_BINS -# Maximum number of dmake jobs. The recommended number is 2 + (2 * -# NCPUS), where NCPUS is the number of CPUs on your build system. +# Maximum number of dmake jobs. The recommended number is 2 + NCPUS, +# where NCPUS is the number of logical CPUs on your build system. maxjobs() { - ncpu=`/usr/sbin/psrinfo -p` - expr $ncpu \* 2 + 2 + ncpu=`kstat -p cpu_info:::state | grep -c on-line` + expr $ncpu + 2 } DMAKE_MAX_JOBS=`maxjobs`; export DMAKE_MAX_JOBS