Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Mar 2013 05:50:30 +1100 (EST)
From:      Ian Smith <smithi@nimnet.asn.au>
To:        Darren Pilgrim <list_freebsd@bluerosetech.com>
Cc:        Glen Barber <gjb@freebsd.org>, Adrian Chadd <adrian@freebsd.org>, freebsd-stable@freebsd.org
Subject:   Re: Building RELENG_9 (or RELENG_9_*) on a small machine?
Message-ID:  <20130302042828.J32142@sola.nimnet.asn.au>
In-Reply-To: <512F23AC.1000003@bluerosetech.com>
References:  <512EB5BD.1020803@bluerosetech.com> <20130228014635.GB70215@glenbarber.us> <CAJ-VmomJXm5VN1fNX7x%2B9HH4LVMs32UjW=K7YbkdiRjmYmurTA@mail.gmail.com> <512F23AC.1000003@bluerosetech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130302042828.J32142>