From owner-freebsd-stable@FreeBSD.ORG Fri Mar 1 19:18:33 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 6A054155; Fri, 1 Mar 2013 19:18:33 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id CD2CE10CE; Fri, 1 Mar 2013 19:18:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id r21IoU8C047635; Sat, 2 Mar 2013 05:50:31 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Sat, 2 Mar 2013 05:50:30 +1100 (EST) From: Ian Smith To: Darren Pilgrim Subject: Re: Building RELENG_9 (or RELENG_9_*) on a small machine? In-Reply-To: <512F23AC.1000003@bluerosetech.com> Message-ID: <20130302042828.J32142@sola.nimnet.asn.au> References: <512EB5BD.1020803@bluerosetech.com> <20130228014635.GB70215@glenbarber.us> <512F23AC.1000003@bluerosetech.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Glen Barber , Adrian Chadd , freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Mar 2013 19:18:33 -0000 On Thu, 28 Feb 2013 01:30:20 -0800, Darren Pilgrim wrote: > On 2013-02-27 18:23, Adrian Chadd wrote: > > Hm, have you disabled that CAM target layer stuff at boot? It's likely > > tying up some RAM. > > Disabling CTL let cc1plus get is resident size up to 167 MB, but that still > wasn't enough. Building clang is simply too memory intensive. :/ It is on anything less than 384MB even with kern.cam.ctl.disable=1 here, being on a thinkpad T23, 1133MHz P3-M on 9.1-R sources. At 256MB - the minimum earlier that completed installation without disabling CTL - swap often sat at ~14MB but blew out to around 165MB building those huge llvm libraries - cc1plus 332M, 173M resident was one top I snipped, but I can't say I caught the biggest. I let it finish anyway: 7h40m! When I ran buildworld again (as before, straight, no arguments) after removing /usr/obj and adding WITHOUT_CLANG=yes to /etc/src.conf (thanks Glen), I expected big savings but was surprised when it ran just 3h32m. Then I added 128MB (to 384MB) and repeated the first buildworld (incl. clang) expecting huge savings as it'd only touched swap to about 12MB a time or two, mostly having 100MB+ of free memory .. wow, down to 7h02m! Here at least, building llvm libs and clang doubles buildworld time! and extends /usr/obj from 675MB to 1GB. > To the buildbox! When I take it back to 768MB, that'll be my buildbox! :) cheers, Ian