Questions about tinderbox

Mark Johnston markjdb at gmail.com
Wed Jun 15 12:48:09 EDT 2011


On Wed, Jun 15, 2011 at 11:19:21AM -0500, Stephen Montgomery-Smith wrote:
> I have just started using tinderbox, and I have some questions.  But let 
> me start with this first important question.
> 
> I am running tinderbox on an amd64 laptop with an i7 Intel processor. 
> It claims to have 8 processors, but that is really disingenuous on 
> Intel's part, because I find it only works efficiently when I use 2 
> processors.  In particular, using all 8 far worse than using only 1.
> 
> It seems to me that tinderbox tries to use the full set of processors. 
> What is the best way to tell tinderbox to only one processor?
> 

Are you talking about building world? If so, the following code
seems to indicate that one can make with -j1 by setting NO_JAIL_JOBS=yes
in env/GLOBAL.

        ncpus=$(/sbin/sysctl hw.ncpu | awk '{print $2}')
        factor=$(echo "$ncpus*2+1" | /usr/bin/bc -q)

        if [ -n "${NO_JAIL_JOBS}" ]; then
            factor=1
        fi

        cd ${SRCBASE} && env DESTDIR=${J_TMPDIR} ${crossEnv} \
            make -j${factor} -DNO_CLEAN world > ${jailBase}/world.tmp 2>&1

-Mark


More information about the tinderbox-list mailing list