Re: building LLVM threads gets killed

From: Mark Millard <marklmi_at_yahoo.com>
Date: Tue, 21 Aug 2018 19:01:05 -0700
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)
Received on Wed Aug 22 2018 - 00:01:19 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:17 UTC