Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Aug 2018 19:01:05 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: building LLVM threads gets killed
Message-ID:  <0846E103-2DCC-421F-B82B-1BE287002468@yahoo.com>

next in thread | raw e-mail | index | archive | help
Brooks Davis brooks at freebsd.org wrote on
Tue Aug 21 20:29:45 UTC 2018 :

> On Mon, Aug 20, 2018 at 07:33:32PM +0200, Dimitry Andric wrote:
> > . . .
> > 
> > I have attached a patch for most of the llvm ports, which sets the
> > LLVM_PARALLEL_LINK_JOBS CMake flag during the configure phase.
> 
> Committed in r477756.
> 

lld itself has --threads (default) and --no-threads
(non-default, single threaded link). (Mark Johnston
recently made me aware of this.) In my quick experiment
in just one context, --threads used 5 or so threads
in the lld process. (Likely helps with speed when
the hardware threads are simply available without
conflicts.)

Does LLVM_PARALLEL_LINK_JOBS contribute to which of
these is in use?



I've started experimenting with /etc/make.conf like
files having:

LDFLAGS.lld+= -Wl,--no-threads

in contexts with few cores and/or that do not have
lots of RAM. (But I'm unsure of the difference in
RAM usage across various contexts for the two styles
of lld use.)

===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0846E103-2DCC-421F-B82B-1BE287002468>