From owner-freebsd-arm@freebsd.org Wed Aug 22 01:07:18 2018 Return-Path: Delivered-To: freebsd-arm@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 984B910859D0 for ; Wed, 22 Aug 2018 01:07:18 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic309-22.consmr.mail.gq1.yahoo.com (sonic309-22.consmr.mail.gq1.yahoo.com [98.137.65.148]) (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 0885E77D80 for ; Wed, 22 Aug 2018 01:07:17 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: lXNL38IVM1lgQ5colpu8Pn6V2qN7ewW3F9jrWjxHdIT9ZJ8chEBwmhjmt15BMuo tITMRBzmsYdB.x2HTlfQuU919fovz4GaLdy8VVe_DB2TwDVSoC07.5hyfaZYtJk6CrDNyQI9Uxgb _Xx4QxG4trrFnmoF1PlqVoUDeyxefZgN0bL6b2rDEaPM9AXew9xVFBMWd9lEVvhl05aBFr01ksrQ 6GqzAYXVxQizmOHyseq61bNcptdgbWswsiu7NGk9qzAa2MYvZO2rwjSGmQ4Ph4g1Hh7CyOA19S3i yIa6zXLgr2gIpXZOyaKPHZ_NmPnWaTXqzLV9I_egGFchx8haKvbXM.9vzO.sy8rDCgQCmUTh5VsN D9MQxnV8Ms1jffU_4hkiNKvz38sdeRMjvRNK0Rmsda6M9gO93ZwsAEzteAlcbhkdNbzBd1j1dhHp 8oBthg4syiZ.CU6Bpbyt8LW4D9_JsKBFcv5MtqN.JDxzfMijFNmIHXc2ziksXcyHSfyuyWOEXepj 5V2Nl18NWZkYsVDF1FjoA0XpAAxW0d73EoQuuK07YnfUgClrF09aIf6zCntgYobiBs8yfQkMcTsT gmpNyMZ3xiNUUtw.S3UcV1BTl9oF9Lrc99PG841lMJ2nl56tv9l50PUa9aDnWYP3wKjsQjsTqeLG YoWrSI3wrHYlEX8my3U3vGDYSARUhd3ojkBn8fWmgSJBRH8WGZRPwAkiJma7dDFkvrVdeX0iH9tR oP61netnWa_qOtqBZCpZqAE3l_fqwYShYUEpagB_mbJg2TEhbyLzGuHNCOY8Uaz3w4ReMC8GFuCH lNzhsa.qXKxWy8XD4StT6sO58mSXGKhRnnr16WSoh2jupT6FQjIXAhNFhZ0oZW8ayW6kFUesLxuX EPEINb0e0gmFIaT_bhlU.RWgzKe9XAvi9nmuC_2jZ18CTUj18pfIMVa_nF58B06usp86dDDWao.k sTJijzNx76oLg56d0EmPMZR8Jb_55bqIE8Rtrc045I0ZVYeQ0YgROoLny.8fqoIMUxCGZqiG8.PZ 3xShRnIKw Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.gq1.yahoo.com with HTTP; Wed, 22 Aug 2018 01:07:10 +0000 Received: from ip70-189-131-151.lv.lv.cox.net (EHLO [192.168.0.105]) ([70.189.131.151]) by smtp417.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 34762e4dd4a1ca2183c70ba380f0178f; Wed, 22 Aug 2018 01:07:07 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: RPI3 swap experiments ["was killed: out of swap space" with: "v_free_count: 5439, v_inactive_count: 1"] From: Mark Millard In-Reply-To: Date: Tue, 21 Aug 2018 18:07:06 -0700 Cc: John Kennedy , freebsd-arm Content-Transfer-Encoding: 7bit Message-Id: <73D58E0D-B6A2-45D3-B8AF-4FE7EE0962A1@yahoo.com> References: <20180808153800.GF26133@www.zefox.net> <20180808204841.GA19379@raichu> <2DC1A479-92A0-48E6-9245-3FF5CFD89DEF@yahoo.com> <20180809033735.GJ30738@phouka1.phouka.net> <20180809175802.GA32974@www.zefox.net> <20180812173248.GA81324@phouka1.phouka.net> <20180812224021.GA46372@www.zefox.net> <20180813021226.GA46750@www.zefox.net> <0D8B9A29-DD95-4FA3-8F7D-4B85A3BB54D7@yahoo.com> <20180815221728.GA59074@www.zefox.net> <9EA5D75D-A03F-4B25-B65E-03E93DE30130@yahoo.com> To: bob prohaska X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2018 01:07:18 -0000 Just an FYI about lld being multi-threaded . . . Mark Johnston pointed out to me something that I'd not noticed about lld: by default it is multi-threaded ( --threads ) instead of not ( --no-threads ). This apparently goes back to llvm40. (I've been more compiler focused for powerpc family in my experiments, where lld does not be work. So I'd not been monitoring lld's details.) I tried an example and it seems to create about 5 threads in the context I tested it in. With a -j4 buildworld buildkernel already keeping 4 cores busy, I've decided to experiment with /etc/make.conf like files having: LDFLAGS.lld+= -Wl,--no-threads where so few cores (hw threads) are available. I my do so more generally. (If an lld was done in isolation, this likely would be slower than with multiple threads.) Also, I'm told that the threaded operation can require more RAM. (I've no independent knowledge of such and my quick experiments did not produce any stand-out results.) It is possible that, for some contexts, --no-threads might leave a little more free RAM and/or may cut down on context-switching during some stages of buildworld or kernel-toolchain or buildkernel or building ports. === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)