Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Jun 2002 15:34:14 -0700
From:      Kent Stewart <kstewart@owt.com>
To:        Chris Pepper <pepper@reppep.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: make -j4 becoming default?
Message-ID:  <3CFBEEE6.30902@owt.com>
References:  <p05111a16b9218b533fc1@[129.85.219.160]>

next in thread | previous in thread | raw e-mail | index | archive | help


Chris Pepper wrote:

>     <http://www.freebsd.org/handbook/makeworld.html>; recommends -j4 for 
> "make buildworld". I've tried using it with various ports, and it works 
> with some, but prevents others (so far, bind9, net-snmp, and imap-uw) 
> from building.
> 
>     Obviously, I'd like to use -j4 wherever possible, and it's 
> suboptimal to try everything multi-threaded, then sometimes fail and 
> manually fall back to single-threaded. Even worse, I usually forget -j4 
> for thread-safe builds, so I waste time unnecessarily.


You should really time a buildworld. The only time the realtime is 
faster for me is when I have dual cpus. The 3rd field, which is the 
realtime, is frequently 10% faster than -j4 on an AMD-1600+ XP.

Kent


> 
>     Are there any plans to allow a default -j setting, and identify 
> certain packages as requiring single-threaded making? One possibility 
> that's occurred to me is to set MAKE_THREADS=4 and leave MAKE_THREADED 
> unset in /etc/defaults/make.conf.
> 
>     Multi-threadable Makefiles, including /usr/src/Makefile, could set 
> MAKE_THREADED="YES", and single-threaded Makefiles (/usr/ports/Makefile, 
> to start) could set MAKE_THREADED="NO". Then the make command could be 
> enhanced to set -j from MAKE_THREADS if MAKE_THREADED is YES.
> 
>     Are there gaping holes in this idea? Is there a better method 
> waiting in the wings?
> 
> 
>                         Thanks,
> 
> 
>                         Chris Pepper


-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3CFBEEE6.30902>