Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Aug 2018 12:52:45 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Mark Millard <marklmi@yahoo.com>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: building LLVM threads gets killed
Message-ID:  <B2EAB715-726E-4D42-8AC7-C013A2565EE5@FreeBSD.org>
In-Reply-To: <0846E103-2DCC-421F-B82B-1BE287002468@yahoo.com>
References:  <0846E103-2DCC-421F-B82B-1BE287002468@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_1F225774-3A61-47BD-9CE3-22B7D08CC4DE
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii

On 22 Aug 2018, at 04:01, Mark Millard <marklmi@yahoo.com> wrote:
> 
> 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?

No, it just controls how many link processes ninja starts in parallel.
If those link processes use threads, like lld does by default, it is
outside the control of ninja.

Note that lld uses threads to speed up linking, but it might use more
memory, so you could turn it off if you are memory constrained.

-Dimitry


--Apple-Mail=_1F225774-3A61-47BD-9CE3-22B7D08CC4DE
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.2

iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCW31AfQAKCRCwXqMKLiCW
oyt/AJ4kqoLdR1ZusuitzPa+oiQ6+nBncwCfdocDvjVJBqGTkVdnQ/mT3wFZ2Hc=
=JDep
-----END PGP SIGNATURE-----

--Apple-Mail=_1F225774-3A61-47BD-9CE3-22B7D08CC4DE--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B2EAB715-726E-4D42-8AC7-C013A2565EE5>