From owner-freebsd-questions Mon Jun 3 15:34:25 2002 Delivered-To: freebsd-questions@freebsd.org Received: from rutger.owt.com (rutger.owt.com [204.118.6.16]) by hub.freebsd.org (Postfix) with ESMTP id 284CC37B401 for ; Mon, 3 Jun 2002 15:34:18 -0700 (PDT) Received: from owt.com (owt-207-41-94-232.owt.com [207.41.94.232]) by rutger.owt.com (8.9.3/8.9.3) with ESMTP id PAA11872; Mon, 3 Jun 2002 15:34:15 -0700 Message-ID: <3CFBEEE6.30902@owt.com> Date: Mon, 03 Jun 2002 15:34:14 -0700 From: Kent Stewart User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2 X-Accept-Language: en-us, es-mx MIME-Version: 1.0 To: Chris Pepper Cc: freebsd-questions@FreeBSD.ORG Subject: Re: make -j4 becoming default? References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Chris Pepper wrote: > 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