From owner-freebsd-current@freebsd.org Wed Aug 22 02:01:19 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F3C0D10873A0 for ; Wed, 22 Aug 2018 02:01:18 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic302-20.consmr.mail.ne1.yahoo.com (sonic302-20.consmr.mail.ne1.yahoo.com [66.163.186.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 939067A2B8 for ; Wed, 22 Aug 2018 02:01:18 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: fshMIdgVM1nlm.E1cN6Cq_Nxk776hPP1CYVBhZ067i1V6F7uDzrkj70iZMjjqB8 E15cOmRMwof0SQm7U3PotCq8HU0KqSpxufjrNxLTcP9.srKUxm429B6poNCgQ2KQYsxmIrprCWIp 8pOK2HrcG9aXodioMGBtckjE1dfBSchMnaR.xEi80wb53seVmtsjSdb_RKs2kPbtOcR9vyCRUJ.j WW6nSyqrCOLwJ.WI.SsvlW6eaEAOcZOC.5MUXrPLnaXAthWqejfMeC5bwHeDgRMwumkNjXhK9eg7 d5Fjvd5zThitRg4MZLTkNEV4dswEfe6LcDN9qAd6yG9L1YYe26JOZcquBK5UlkUdM0Vj_86GxhEG _8KPq7sDLdpYJMFALfnZ1zz.lzd.ZOU0aNEU0afR0Efgb1nAvea07WBg8PzaCp1gTnh4zQePFtvd LFeriExOO9olQXhMgOBOnGpT_eyeP1.0JS6E6KO5Ru4JUNfOixKBTN.sj_dJjk.YrFFEEdGZ0lrO QZ6aFUg9TVWswiiZg9JN8xC6nTHqQSMv24nDVdnqTKAG5Oh4qqMUDs1fXGlby0qcoM4fJiXDrU8K Dx96.GJ3mjbVtktuuUFKdHYHeFuasIFBWStuYNsDLw9ZIWoaCqaVua1A4pr.GJB_NMvO3DfUe2Xi Tl1mUeWi5s98slbGNFXj5mI1_3zDPdejQ7h1OVZR4jCinpNaeyVnBc6vtHGEQym8XENgE6BhFLLJ qyHqKrl9HzqqoV5xKCLXsJOMPMvkRQU4dvABMZ7lXZLe.OrSOjSWUDqwl78cub0yIhESbFRW4x2G 6KMUEcfKNhL_Y89QMfGTRZOWKRDUsty3JOLdo8gVQEW_TvjrvrafF9aRbJbGNC6vxRpl_CYiGrsg mXu99CbzZZKcJPvJUCt1_PvETOR0DZbpwkPGD12.4t7pEzc3AYn.dusjBgetUH7H43jvRwau51Ue 4Z3LFL32zmuCBb9TAGoXyU78FJO3K998d130ed6EWKt4iMB6S5yjMm7Dp0lV0vzgSkAaOgMX0 Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ne1.yahoo.com with HTTP; Wed, 22 Aug 2018 02:01:12 +0000 Received: from ip70-189-131-151.lv.lv.cox.net (EHLO [192.168.0.105]) ([70.189.131.151]) by smtp414.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 212d1c638e199170fa365e46eb532419 for ; Wed, 22 Aug 2018 02:01:07 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: building LLVM threads gets killed Message-Id: <0846E103-2DCC-421F-B82B-1BE287002468@yahoo.com> Date: Tue, 21 Aug 2018 19:01:05 -0700 To: FreeBSD Current X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2018 02:01:19 -0000 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)