Date: Tue, 21 Aug 2018 18:07:06 -0700 From: Mark Millard <marklmi@yahoo.com> To: bob prohaska <fbsd@www.zefox.net> Cc: John Kennedy <warlock@phouka.net>, freebsd-arm <freebsd-arm@freebsd.org> Subject: Re: RPI3 swap experiments ["was killed: out of swap space" with: "v_free_count: 5439, v_inactive_count: 1"] Message-ID: <73D58E0D-B6A2-45D3-B8AF-4FE7EE0962A1@yahoo.com> In-Reply-To: <BD92A3B6-BCD2-4FA5-A9C6-0B950D3AD378@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> <B81E53A9-459E-4489-883B-24175B87D049@yahoo.com> <20180813021226.GA46750@www.zefox.net> <0D8B9A29-DD95-4FA3-8F7D-4B85A3BB54D7@yahoo.com> <20180815221728.GA59074@www.zefox.net> <9EA5D75D-A03F-4B25-B65E-03E93DE30130@yahoo.com> <BD92A3B6-BCD2-4FA5-A9C6-0B950D3AD378@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?73D58E0D-B6A2-45D3-B8AF-4FE7EE0962A1>