Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Nov 2014 11:35:10 +0100
From:      Nick Hibma <nick@van-laarhoven.org>
To:        Dimitry Andric <dim@FreeBSD.org>, Rostislav Krasny <rosti.bsd@gmail.com>
Cc:        FreeBSD Current Mailing List <freebsd-current@freebsd.org>
Subject:   Re: How much memory do I need for buildworld?
Message-ID:  <5347CA82-D7D8-454E-8BC9-A08C0356BE20@van-laarhoven.org>
In-Reply-To: <5EBF0BB1-1E2A-4517-A7BB-22FD3150FF06@FreeBSD.org>
References:  <CANt7McFASN=%2BLSuG7O0ZqUFOw4DckDqZHP_jSi7TXPTv-S-vxA@mail.gmail.com> <5EBF0BB1-1E2A-4517-A7BB-22FD3150FF06@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5347CA82-D7D8-454E-8BC9-A08C0356BE20>