From nobody Sat Nov 6 23:38:20 2021 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1185A18359B6 for ; Sat, 6 Nov 2021 23:38:32 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hmv2b6zqGz3PgJ; Sat, 6 Nov 2021 23:38:31 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id B71A42770D; Sat, 6 Nov 2021 23:38:31 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (longrow.home.andric.com [192.168.0.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 9BE1244265; Sun, 7 Nov 2021 00:38:29 +0100 (CET) From: Dimitry Andric Message-Id: <7D697030-8E5F-4B4F-B5E8-A8BE609A1CCA@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_5F6BAE53-34F0-48C3-B9FA-3B44D090BFF9"; protocol="application/pgp-signature"; micalg=pgp-sha1 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: Running out of RAM building devel/llvm13 Date: Sun, 7 Nov 2021 00:38:20 +0100 In-Reply-To: <23a70169-d986-02c0-6763-61db22c75c0b@FreeBSD.org> Cc: Brooks Davis , FreeBSD Ports To: Stephen Montgomery-Smith References: <23a70169-d986-02c0-6763-61db22c75c0b@FreeBSD.org> X-Mailer: Apple Mail (2.3654.120.0.1.13) X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_5F6BAE53-34F0-48C3-B9FA-3B44D090BFF9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 6 Nov 2021, at 23:53, Stephen Montgomery-Smith = wrote: >=20 > Does anyone else have the problem of running out of RAM when building = devel/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 = build is so slow. >=20 > It seems that there is a small part of the build which requires a lot = of RAM, and it would be nice to restrict just that portion of the build = to just one CPU. 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. -Dimitry --Apple-Mail=_5F6BAE53-34F0-48C3-B9FA-3B44D090BFF9 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCYYcR7AAKCRCwXqMKLiCW o83cAKDxIY5Te4a+VBpG3UB+ywZlMxg2aQCgoqhX8qCUHzW1OB/3Fk6/A42HkMk= =12JV -----END PGP SIGNATURE----- --Apple-Mail=_5F6BAE53-34F0-48C3-B9FA-3B44D090BFF9--