building LLVM threads gets killed

Mark Millard marklmi at yahoo.com
Wed Aug 22 02:01:19 UTC 2018


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)



More information about the freebsd-current mailing list