From nobody Mon Oct 28 20:31:06 2024 X-Original-To: freebsd-current@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 4XclQj2VX0z5blm3 for ; Mon, 28 Oct 2024 20:31:09 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from omta002.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XclQh6VnCz4FGV for ; Mon, 28 Oct 2024 20:31:08 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Authentication-Results: mx1.freebsd.org; none Received: from shw-obgw-4001a.ext.cloudfilter.net ([10.228.9.142]) by cmsmtp with ESMTPS id 5MRHtXFN4MArN5WOKtIzFY; Mon, 28 Oct 2024 20:31:08 +0000 Received: from spqr.komquats.com ([70.66.152.170]) by cmsmtp with ESMTPSA id 5WOJtvfCGGvSV5WOJtneZB; Mon, 28 Oct 2024 20:31:08 +0000 X-Auth-User: cschuber X-Authority-Analysis: v=2.4 cv=FpSm/Hrq c=1 sm=1 tr=0 ts=671ff48c a=y8EK/9tc/U6QY+pUhnbtgQ==:117 a=y8EK/9tc/U6QY+pUhnbtgQ==:17 a=kj9zAlcOel0A:10 a=DAUX931o1VcA:10 a=JAf30KXuAAAA:8 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=EkcXrb_YAAAA:8 a=hZjCncq9Amomy58aZ2gA:9 a=CjuIK1q_8ugA:10 a=GEL62FyrTCmHtEug2d3R:22 a=Ia-lj3WSrqcvXOmTRaiG:22 a=LK5xJRSDVpKd5WXXoEvA:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTP id 91010C5D; Mon, 28 Oct 2024 13:31:06 -0700 (PDT) Received: by slippy.cwsent.com (Postfix, from userid 1000) id 60D90431; Mon, 28 Oct 2024 13:31:06 -0700 (PDT) X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.8+dev Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: David Wolfskill , Maku Bex , freebsd-current@freebsd.org Subject: Re: speedup build time In-reply-to: References: <012d01db28cc$5fc66ac0$1f534040$@gmail.com> Comments: In-reply-to David Wolfskill message dated "Sun, 27 Oct 2024 17:49:44 -0700." List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 28 Oct 2024 13:31:06 -0700 Message-Id: <20241028203106.60D90431@slippy.cwsent.com> X-CMAE-Envelope: MS4xfHqCTuqH2/qylU7O8CF/wP7owoFZU8cGKOO4A0dhMKrTiiFWq5IZXTt9rGnJLfSo4N06lljpOQY68E+O6GrZMVWUGXgysBazYT7WU/CKXQivz4V8HBdM y/HYFv19qs1H0bPswSDtoT2L4HC8uYHU2NT9tNp5r3i8sgtYUTfSE+9ENRb3fTBQqIpLwZSWlRUr9VebxOqI20cnNGcrlD59NFB3VJCJe2mPC8MGLwlaGNrF Gvc2hePOcM6VhJGv5CXmArOqrIo4zana4Cxfh1maJ2w= 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:16509, ipnet:3.96.0.0/15, country:US] X-Rspamd-Queue-Id: 4XclQh6VnCz4FGV X-Spamd-Bar: ---- In message , David Wolfskill writes: > > --ySbbNwu/7EFCexY0 > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Sun, Oct 27, 2024 at 07:00:17PM -0500, Maku Bex wrote: > > ... > > I'm trying to figure out a way to decrease build time of -CURRENT and/or > > -STABLE but it is not working out that well.=20 > > I've tried the following: > > * Tuning /etc/make.conf and /etc/src-env.conf based on their manpages > > (make.conf(5), make(1), src.conf(5)). > > * Removed certain options from GENERIC, which reduced the kernel build > > time significantly.=20 > >=20 > > Hardware specs: > > * I7-10700T 8C/16T @2.0GHz. > > * 16GB RAM. > > * 256GB NVMe. > >=20 > > Currently, 'make buildworld' has been running for 7hrs and counting. Is > > there anything else I can do to speed up world build? > > .... > > First, some questions -- whether or not you wish to share the answers, I > believe that answering the questions (if only for yourself) may be > helpful: > > * What (if any) "max_jobs" (make's "-j" parameter) are you using? For a > 16T system, I expect I would start with a value of around 28. > > * Are you using make's "meta" mode? I do. > > * Can you get more memory for that system? I haven't found meta mode faster than without. Yes it reduces build time in some cases but many other it rebuilds sources I would never have thought it should rebuild. Especially llvm. I find meta mode rebuilds clang more often than before I used meta mode. The reason for switching back to meta mode was a kernel patch which caused some weird behaviour. After some back & forth with kib@, I had determined that there were some old objects not being rebuilt when they should have been. I suppose one could say that meta mode is doing the correct thing by rebuilding objects when I feel it shouldn't, because the strange behaviour I had encountered a couple of months ago would never have happened had I been using meta mode. Though I can't prove it, my sense is that it does "gratuitously" rebuild llvm more often than without. I can't prove this scientifically. Just a seat of the pants "assessment." -- Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org e^(i*pi)+1=0