From owner-freebsd-questions@FreeBSD.ORG Thu Feb 8 23:05:07 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2E8E016A401 for ; Thu, 8 Feb 2007 23:05:07 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by mx1.freebsd.org (Postfix) with ESMTP id D178013C48D for ; Thu, 8 Feb 2007 23:05:06 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from vanquish.pgh.priv.collaborativefusion.com (vanquish.pgh.priv.collaborativefusion.com [192.168.2.61]) (SSL: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Thu, 08 Feb 2007 18:05:05 -0500 id 00056407.45CBACA2.0000272D Date: Thu, 8 Feb 2007 18:05:05 -0500 From: Bill Moran To: josh.carroll@psualum.com Message-Id: <20070208180505.ba9b98b5.wmoran@collaborativefusion.com> In-Reply-To: <8cb6106e0702081456r6bba1523rf00e3bd90d86989@mail.gmail.com> References: <197003711018545@lycos-europe.com> <8cb6106e0702081456r6bba1523rf00e3bd90d86989@mail.gmail.com> Organization: Collaborative Fusion X-Mailer: Sylpheed 2.3.0 (GTK+ 2.10.7; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org, Daniel Tourde Subject: Re: Intel Core Duo. SMP kernel but still only 50% load while using make on ports... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Feb 2007 23:05:07 -0000 In response to "Josh Carroll" : > > > > I noticed something strange: When I compile using ma in the ports > > > > tree, I only have 50% load. CPU1 is used at CPU0 is idle... > > As was already pointed out, ports do not compile with make -j X by > default. You can do so for ports that will build cleanly (not all of > them will), by adding something similar to the following to your > make.conf: > > .if ${.CURDIR:M*/ImageMagick*} > MAKE_ARGS+=-j4 > .endif > > A while back I found which ports I had installed that would play nice > with make -j, so I updated make.conf with a bunch of similar entries > to the above. Works fairly well, and there are actually quite a few > ports that will compile with make -j. If you're interested, let me > know and I'll throw my make.conf up somewhere. You know, it'd be cool if there were a knob in the ports framework that allowed port maintainers to specify this, something like PARALLEL_MAKE=yes in the Makefile ... Or is that a dumb idea for some reason I don't understand? -- Bill Moran Collaborative Fusion Inc.