From owner-freebsd-stable@FreeBSD.ORG Mon Oct 16 19:46:23 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A28BB16A526 for ; Mon, 16 Oct 2006 19:46:23 +0000 (UTC) (envelope-from nikolas.britton@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECE6643D76 for ; Mon, 16 Oct 2006 19:46:17 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so790895uge for ; Mon, 16 Oct 2006 12:46:17 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GrlNFnm/bjerj/RBeTt7wD+FMcmb81oMv/qq4XBGVbxxpUIQy77z6FaHYmzBUKt2HdpxBkqbmWtwfR1eNq9+qlgJyXVqAMoBcFKvNRCrMAtPw20mk22i8mzdMSUISY9FZeEa17CvL79oopplX8fRcMhBSYbDL54goYBTETRCu6I= Received: by 10.78.150.7 with SMTP id x7mr8161321hud; Mon, 16 Oct 2006 12:46:17 -0700 (PDT) Received: by 10.78.118.10 with HTTP; Mon, 16 Oct 2006 12:46:17 -0700 (PDT) Message-ID: Date: Mon, 16 Oct 2006 14:46:17 -0500 From: "Nikolas Britton" To: "Kent Stewart" In-Reply-To: <200610131347.41023.kstewart@owt.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061013143130.GW491@dev.null.cz> <200610131347.41023.kstewart@owt.com> Cc: freebsd-stable@freebsd.org Subject: Re: FreeBSD and "make -j# buildworld" usability X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Oct 2006 19:46:23 -0000 On 10/13/06, Kent Stewart wrote: > On Friday 13 October 2006 07:31, Buki wrote: > > Hi, > > > > I searched the archives and web a little but found many different > > opinions on stability/usability of using make -j# with buildworld > > (and buildkernel). > > > > So I am asking if it is a good idea to use make -j on production > > boxes. > > > > I tested buildworlds with different values for -j. On single processors, > using a script that basically looked like > > time make -j? ... > > yielded fastest builds when I didn't specify a value for -j. On dual > cpu's a value around -j8 yielded the fastest build. That's odd, your results don't jive with this: http://people.freebsd.org/~fsmp/SMP/akgraph-a/graph1.html Although that report is quite old... My general rule of thumb for -j is n +1, where n equals the total number of cpu cores. This is generally enough to keep to processor(s) occupied without over stressing the system. Maybe n * 2 is more appropriate, can you post the results from your test?