From owner-freebsd-ports@FreeBSD.ORG Thu Apr 12 21:39:42 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6F73716A400 for ; Thu, 12 Apr 2007 21:39:42 +0000 (UTC) (envelope-from cokane@cokane.org) Received: from ms-smtp-02.texas.rr.com (ms-smtp-02.texas.rr.com [24.93.47.41]) by mx1.freebsd.org (Postfix) with ESMTP id CFD3813C45A for ; Thu, 12 Apr 2007 21:39:41 +0000 (UTC) (envelope-from cokane@cokane.org) Received: from mail.cokane.org (rrcs-24-153-184-158.sw.biz.rr.com [24.153.184.158]) by ms-smtp-02.texas.rr.com (8.13.6/8.13.6) with ESMTP id l3CKeYjp017565; Thu, 12 Apr 2007 15:40:34 -0500 (CDT) Received: by mail.cokane.org (Postfix, from userid 103) id DDB4C14B6AB; Thu, 12 Apr 2007 16:40:33 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.1.3-gr0 (2006-06-01) on discordia X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.3-gr0 Received: from [172.31.1.10] (unknown [172.31.1.10]) by mail.cokane.org (Postfix) with ESMTP id C2C9E14B6A8; Thu, 12 Apr 2007 16:40:32 -0400 (EDT) From: Coleman Kane To: Benjamin Lutz In-Reply-To: <200704122108.01376.mail@maxlor.com> References: <200704100452.40574.mail@maxlor.com> <1176363454.72184.2.camel@pav.hide.vol.cz> <461DF6A3.9030201@u.washington.edu> <200704122108.01376.mail@maxlor.com> Content-Type: text/plain Date: Thu, 12 Apr 2007 14:41:15 -0600 Message-Id: <1176410475.1728.15.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.10.0 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine Cc: Garrett Cooper , freebsd-ports@freebsd.org Subject: Re: parallel builds revisited X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: cokane@freebsd.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Apr 2007 21:39:42 -0000 On Thu, 2007-04-12 at 21:07 +0200, Benjamin Lutz wrote: > On Thursday 12 April 2007 11:06, Garrett Cooper wrote: > > I dunno how you want to approach this, but gmake does recommend 2 > > jobs be run in parallel for HTT enabled chips, and 3 or 4 jobs for a > > dual core machines. > > -Garrett > > So far the approach is one job per CPU. I'll do some benchmarks lateron > to determine wether it really helps to run more jobs. For the KDE > ports, my gut feeling is that the improvement would be negligible. I'll > have to evaluate non-C++ ports like gnome-*, where the compilation time > per file is shorter. > > Of course, to make proper use of distcc, at least #cores + 1 jobs are > required. I'll keep that in mind. > > Cheers > Benjamin I have always seen that NCPUS+1 was a good heuristic. -- Coleman Kane