Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Aug 2018 11:31:02 -0700
From:      bob prohaska <fbsd@www.zefox.net>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        "Rodney W. Grimes" <freebsd-rwg@pdx.rh.CN85.dnsmgr.net>, blubee blubeeme <gurenchan@gmail.com>, FreeBSD Current <freebsd-current@freebsd.org>, Brooks Davis <brooks@freebsd.org>, bob prohaska <fbsd@www.zefox.net>
Subject:   Re: building LLVM threads gets killed
Message-ID:  <20180820183101.GA76172@www.zefox.net>
In-Reply-To: <4ECEE41C-E1FF-4B6A-A138-3BDDB6552A7D@FreeBSD.org>
References:  <201808201426.w7KEQo9j074809@pdx.rh.CN85.dnsmgr.net> <4ECEE41C-E1FF-4B6A-A138-3BDDB6552A7D@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 20, 2018 at 07:33:32PM +0200, Dimitry Andric wrote:
> On 20 Aug 2018, at 16:26, Rodney W. Grimes <freebsd-rwg@pdx.rh.CN85.dnsmgr.net> wrote:
> > 
> >> It is running out of RAM while running multiple parallel link jobs.  If
> >> you are building using WITH_DEBUG, turn that off, it consumes large
> >> amounts of memory.  If you must have debug info, try adding the
> >> following flag to the CMake command line:
> >> 
> >> -D LLVM_PARALLEL_LINK_JOBS:STRING="1"
> >> 
> >> That will limit the amount of parallel link jobs to 1, even if you
> >> specify -j 8 to gmake or ninja.
> >> 
> >> Brooks, it would not be a bad idea to always use this CMake flag in the
> >> llvm ports. :)
> > 
> > And this may also fix the issues that all the small
> > memory (aka, RPI*) buliders are facing when trying
> > to do -j4?
> 
> Possibly, as linking is usually the most memory-consuming part of the
> build process (and more so, if debugging is enabled).  Are there build
> logs available somewhere for those RPI builders?
> 

There is a collection of RPI3 buildworld logs in
http://www.zefox.net/~fbsd/rpi3/swaptests/
The more recent experiments are sorted by revision first, then swap config
and then other modifications.

If I can do anything to make the records more useful please let me know.

hth,

bob prohaska
 





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