Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Jun 2022 21:49:21 +0000
From:      Marcin Cieslak <saper@saper.info>
To:        freebsd-arm@freebsd.org
Cc:        bob prohaska <fbsd@www.zefox.net>, Mark Millard <marklmi@yahoo.com>, Mark Johnston <markj@freebsd.org>
Subject:   Re: devel/llvm13 failed to reclaim memory on 8 GB Pi4 running -current
Message-ID:  <99rror60-3pnn-s3q6-2q70-5ss2p968r658@fncre.vasb>
Resent-Message-ID: <795s9oon-865s-54r7-no49-323s76pq3o30@fncre.vasb>
In-Reply-To: <B5F34703-F217-4719-B563-09B76D32401E@yahoo.com>
References:  <20220127164512.GA51200@www.zefox.net> <C8BDF77F-5144-4234-A453-8DEC9EA9E227@yahoo.com> <B5F34703-F217-4719-B563-09B76D32401E@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 28 Jan 2022, Mark Millard wrote:

[ Reviving old thread ]

> After that I intend runs with 30 GiBytes of swap (so RAM+SWAP 38 GiBytes).
> Hopefully that will complete and I'll be able to report how much swap was
> observed to have been used.

I thought I will get LLVM14 + OpenJDK built quickly so I fired up
a c6g.4xlarge AWS instance (16 vCPUs, 32 GB RAM),
or even c6g.8xlarge (32 vCPUs, 64 GB RAM) and even these
are unable to build llvm14 under FreeBSD 13.1-RELEASE
with poudrière enabling MAKE_JOBS for llvm build.

The build proceeds on 1 CPU only now - and casual observation
with top confirms that compilation of certain C++ files
requires 7..8 GB of RAM. If 16 of them are built concurrently,
no wonder that there is not enough memory.

Files tha crashed my compiliation:

/wrkdirs/usr/ports/devel/llvm14/work/llvm-project-14.0.4.src/flang/lib/Evaluate/tools.cpp
/wrkdirs/usr/ports/devel/llvm14/work/llvm-project-14.0.4.src/clang/lib/Sema/SemaOpenMP.cpp
/wrkdirs/usr/ports/devel/llvm14/work/llvm-project-14.0.4.src/flang/lib/Semantics/check-omp-structure.cpp
/wrkdirs/usr/ports/devel/llvm14/work/llvm-project-14.0.4.src/flang/lib/Evaluate/fold-integer.cpp

Sure, poudrière could get Kubernetes-like capabilities to control
resources during the build one day, but aren't amounts of memory
needed to build the compiler excessive a bit?

saper




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?99rror60-3pnn-s3q6-2q70-5ss2p968r658>