Project

General

Profile

Bug #64 » build-jobs.patch

Jeppe Toustrup, 2010-08-21 11:34 AM

View differences:

usr/src/tools/env/illumos.sh Sat Aug 21 07:48:34 2010 +1000 → usr/src/tools/env/illumos.sh Sat Aug 21 20:29:33 2010 +0200
55 55
ON_CRYPTO_BINS="$CODEMGR_WS/on-crypto.$MACH.tar.bz2" export ON_CRYPTO_BINS
56 56

  
57 57

  
58
# Maximum number of dmake jobs.  The recommended number is 2 + (2 *
59
# NCPUS), where NCPUS is the number of CPUs on your build system.
58
# Maximum number of dmake jobs.  The recommended number is 2 + NCPUS,
59
# where NCPUS is the number of logical CPUs on your build system.
60 60
maxjobs() {
61
	ncpu=`/usr/sbin/psrinfo -p`
62
	expr $ncpu \* 2 + 2
61
	ncpu=`kstat -p cpu_info:::state | grep -c on-line`
62
	expr $ncpu + 2
63 63
}
64 64
DMAKE_MAX_JOBS=`maxjobs`;			export DMAKE_MAX_JOBS
65 65

  
    (1-1/1)