From owner-freebsd-questions Mon Jun 3 14:44:20 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.reppep.com (www.reppep.com [64.81.19.108]) by hub.freebsd.org (Postfix) with ESMTP id 75AA237B401 for ; Mon, 3 Jun 2002 14:44:11 -0700 (PDT) Received: from [129.85.219.160] (salt.rockefeller.edu [129.85.219.160]) by mail.reppep.com (Postfix) with ESMTP id 916BA17B8C for ; Mon, 3 Jun 2002 16:45:55 -0400 (EDT) Mime-Version: 1.0 X-Sender: pepper@mail.reppep.com Message-Id: Date: Mon, 3 Jun 2002 17:42:46 -0400 To: freebsd-questions@freebsd.org From: Chris Pepper Subject: make -j4 becoming default? Content-Type: text/plain; charset="us-ascii" ; format="flowed" 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 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. 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 -- Chris Pepper: Rockefeller University: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message