From nobody Fri Sep 08 23:42:08 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RjCM731s3z4sgQj for ; Fri, 8 Sep 2023 23:42:11 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "www.zefox.com", Issuer "www.zefox.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RjCM67467z4bGH for ; Fri, 8 Sep 2023 23:42:10 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Authentication-Results: mx1.freebsd.org; none Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.17.1/8.15.2) with ESMTPS id 388Ng8WU073009 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 8 Sep 2023 16:42:09 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.17.1/8.15.2/Submit) id 388Ng8Nm073008; Fri, 8 Sep 2023 16:42:08 -0700 (PDT) (envelope-from fbsd) Date: Fri, 8 Sep 2023 16:42:08 -0700 From: bob prohaska To: Mark Millard Cc: freebsd-arm@freebsd.org Subject: Re: High swap use building Kyuafile on Pi3 Message-ID: References: <5DD3836C-E6F1-4EB5-8F11-3C342A5915DF@yahoo.com> List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US] X-Rspamd-Queue-Id: 4RjCM67467z4bGH On Fri, Sep 08, 2023 at 01:32:06PM -0700, Mark Millard wrote: > On Sep 8, 2023, at 10:58, Mark Millard wrote: > > > On Sep 8, 2023, at 09:14, bob prohaska wrote: > > > >> While building a -current world on Pi3 using -DWITH_META_MODE it appears that > >> swap use is quite heavy (~2GB) well after clang finishes compiling. > >> > >> The tail of the build log shows > >> Building /usr/obj/usr/src/arm64.aarch64/lib/googletest/tests/gmock_main/Kyuafile > >> as the last entry, suggesting something in tests is the cause. > >> > >> The machine reports > >> FreeBSD pelorus.zefox.org 15.0-CURRENT FreeBSD 15.0-CURRENT aarch64 1500000 #49 main-n265134-4a9cd9fc22d7: Mon Sep 4 10:08:30 PDT 2023 bob@pelorus.zefox.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64 > >> > >> The build command is > >> make -j3 -DWITH_META_MODE buildworld > buildworld.log > > > > So up to 3 builders can be active at the same time. > > You seem to have described only 1 builder's activity. > > > > Was it the only active builder? If other builders were > > active at the time you also need to check on what they > > were doing. The ~2GB is the total across all activity, > > including the (up to) 3 builders. > > > > A command that would show the active builders would be: > > > > # poudriere status -b I'm lost at this point. No poudriere use is involved, it's simply a -j3 buildworld in the "building everything" phase. Normally swap use peaks while building clang and then diminishes markedly in the building everything stage. Previously, by then a -j3 build isn't swap-bound. Buildworld was still running, with three jobs, two of which were over 1GB each in total size, though the RES numbers totaled only about 700 MB IIRC. Thanks for reading, and apologies if I'm missing something obvious! bob prohaska