Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Nov 2021 18:38:14 +0000
From:      Brooks Davis <brooks@freebsd.org>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        Stephen Montgomery-Smith <montgomerysmithstephen@gmail.com>, FreeBSD Ports <freebsd-ports@FreeBSD.org>
Subject:   Re: Running out of RAM building devel/llvm13
Message-ID:  <20211108183814.GD81740@spindle.one-eyed-alien.net>
In-Reply-To: <7D697030-8E5F-4B4F-B5E8-A8BE609A1CCA@FreeBSD.org>
References:  <23a70169-d986-02c0-6763-61db22c75c0b@FreeBSD.org> <7D697030-8E5F-4B4F-B5E8-A8BE609A1CCA@FreeBSD.org>

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

--dTy3Mrz/UPE2dbVg
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Nov 07, 2021 at 12:38:20AM +0100, Dimitry Andric wrote:
> On 6 Nov 2021, at 23:53, Stephen Montgomery-Smith <montgomerysmithstephen=
@gmail.com> wrote:
> >=20
> > Does anyone else have the problem of running out of RAM when building d=
evel/llvm13?  I have 6 CPUS, 4G of RAM, and 4G of swap.
> >=20
> > I can solve it by building with MAKE_JOBS_UNSAFE=3Dyes, but then the bu=
ild is so slow.
> >=20
> > It seems that there is a small part of the build which requires a lot o=
f RAM, and it would be nice to restrict just that portion of the build to j=
ust one CPU.
>=20
> Try turning off the FLANG option. In my release testing for llvm 13.0.0 I=
 found this eats up most of the memory during a build.

If you turn of FLANG, I also recommend disabling MLIR.  It's nominally a
separate thing with other uses, but I believe only flang uses it in tree.
If we could isolate which file(s) use too much memory it might be
possible for upstream to put in an exception to single-thread around
them.

BTW, which architecture are you building for?

-- Brooks

--dTy3Mrz/UPE2dbVg
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJhiW6WAAoJEKzQXbSebgfAGMwH+QG3tJN4NMW+RKoceIpzuCSy
3UrV+qoXCuY9EcSjUGA1NRIb1NW7XJH8yHg2JJrXK1UGltjmNUdtihZqABoJKMJV
KRoRudnY/4aQkePKh0gH0MFNkh23xvng9Fa0HaVRAL1/cjhBZAgYGLjwxrTZ/bIY
43f6zzqWaVSwBQjKuHy3QlP1CswtOsCv6pAtJKP+epETrRQbsOyIvtOqp9jYMPqo
kHxo4gZUY0IovnifCy/f2CVSm0ttF4Y5hxbj+N2p5RTcAJKLsw2P7YLz3T+tb7Y2
ulo2S6GTGXgbWm/Cfa+KUywTBHRaKnRrJ7XFFliXo1/SWGd4DJ8hFQj9xYizQ6Y=
=tojc
-----END PGP SIGNATURE-----

--dTy3Mrz/UPE2dbVg--



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