From owner-freebsd-current@FreeBSD.ORG Mon Nov 24 10:35:14 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D33D733E; Mon, 24 Nov 2014 10:35:14 +0000 (UTC) Received: from valery.hibma.org (valery.hibma.org [IPv6:2a02:2308::216:3eff:fe79:3a6c]) by mx1.freebsd.org (Postfix) with ESMTP id 97482E89; Mon, 24 Nov 2014 10:35:14 +0000 (UTC) Received: from hitske.fritz.box (thuis.van-laarhoven.org [80.100.41.4]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by valery.hibma.org (Postfix) with ESMTPSA id CB5F46B9807; Mon, 24 Nov 2014 11:35:11 +0100 (CET) Content-Type: multipart/signed; boundary="Apple-Mail=_DE22D504-BD50-4521-8F55-5480041F05C1"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: How much memory do I need for buildworld? From: Nick Hibma In-Reply-To: <5EBF0BB1-1E2A-4517-A7BB-22FD3150FF06@FreeBSD.org> Date: Mon, 24 Nov 2014 11:35:10 +0100 Message-Id: <5347CA82-D7D8-454E-8BC9-A08C0356BE20@van-laarhoven.org> References: <5EBF0BB1-1E2A-4517-A7BB-22FD3150FF06@FreeBSD.org> To: Dimitry Andric , Rostislav Krasny X-Mailer: Apple Mail (2.1878.6) Cc: FreeBSD Current Mailing List X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Nov 2014 10:35:14 -0000 --Apple-Mail=_DE22D504-BD50-4521-8F55-5480041F05C1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii >>=20 >> Nov 22 16:55:13 mercury kernel: swap_pager: out of swap space >> Nov 22 16:55:13 mercury kernel: swap_pager_getswapspace(16): failed >> Nov 22 16:55:13 mercury kernel: pid 22841 (tblgen), uid 0, was = killed: >> out of swap space >>=20 >> This machine has 256MB of RAM and one 64MB swap partition. >=20 > This is most likely the problem: you need more RAM for this particular > instance of tblgen. On my -CURRENT i386 box, it takes ~369MiB of RSS = to > build the X86 disassembler tables. >=20 > I'm surprised you didn't run into OOM problems earlier, with so little > memory. For such "router" like machines, it is obviously easier to do > the build on a fast desktop machine, then install over NFS, or rsync > /usr/src and /usr/obj to the target machine. I suggest you have a look at NanoBSD in /usr/src/tools/tools/nanobsd.sh. = It will build a disk image for you in roughly 1 hour on a fast machine = with 4+ processors by doing a complete world. It allows you to = regenerate the image and update a running image easily. If you keep your = changes separated in /cfg you will find that you can actually work = really quickly in this setup (even though not being able to install = packages on the image directly is sometimes a bit of a nuisance). We've wrapped that script with a lot of our own stuff and go from = initial config to running in VM in less than 5 minutes, 2.5 minutes for = an update after that (using an SSD on the host and FreeBSD in a single = processor VM generating the image). Nick --Apple-Mail=_DE22D504-BD50-4521-8F55-5480041F05C1 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) Comment: GPGTools - http://gpgtools.org iEYEARECAAYFAlRzCd4ACgkQBxE2H56uaYlLnACffoVyhigAdQpHDY56gwYLBi58 NycAn3I26eXVsLQk3KrWoNKiws8OUw1E =B9P8 -----END PGP SIGNATURE----- --Apple-Mail=_DE22D504-BD50-4521-8F55-5480041F05C1--