From owner-freebsd-ports@FreeBSD.ORG Thu Apr 12 19:48:10 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 C03D116A400 for ; Thu, 12 Apr 2007 19:48:10 +0000 (UTC) (envelope-from LoN_Kamikaze@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 188C413C4AE for ; Thu, 12 Apr 2007 19:48:09 +0000 (UTC) (envelope-from LoN_Kamikaze@gmx.de) Received: (qmail invoked by alias); 12 Apr 2007 19:48:08 -0000 Received: from nat-wh-1.rz.uni-karlsruhe.de (EHLO [192.168.1.12]) [129.13.72.169] by mail.gmx.net (mp049) with SMTP; 12 Apr 2007 21:48:08 +0200 X-Authenticated: #5465401 X-Provags-ID: V01U2FsdGVkX187h1AcN/M7f9hpv1+OzwvMjIvZ3NowgzNJtVIEOo PjjjjjQrw1t6Ha Message-ID: <461E8CF3.3030203@gmx.de> Date: Thu, 12 Apr 2007 21:48:03 +0200 From: "[LoN]Kamikaze" User-Agent: Thunderbird 1.5.0.10 (X11/20070314) MIME-Version: 1.0 To: Benjamin Lutz References: <200704100452.40574.mail@maxlor.com> <1176363454.72184.2.camel@pav.hide.vol.cz> <461DF6A3.9030201@u.washington.edu> <200704122108.01376.mail@maxlor.com> In-Reply-To: <200704122108.01376.mail@maxlor.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 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 List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Apr 2007 19:48:10 -0000 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. I find the benefit especially big with Gecko based ports like Firefox or Thunderbird. > Of course, to make proper use of distcc, at least #cores + 1 jobs are > required. I'll keep that in mind. The recommendation of the Distcc developers is 2 jobs per core, as long as the machines contain sufficient memory. My personal experience says that it's rarely possible to divide a Makefile into more than 6 threads.