From nobody Mon Oct 28 02:23: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 4XcHHM588Zz5bjpx for ; Mon, 28 Oct 2024 02:23:11 +0000 (UTC) (envelope-from void@f-m.fm) Received: from fhigh-a8-smtp.messagingengine.com (fhigh-a8-smtp.messagingengine.com [103.168.172.159]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4XcHHL443xz4PMh for ; Mon, 28 Oct 2024 02:23:10 +0000 (UTC) (envelope-from void@f-m.fm) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=f-m.fm header.s=fm3 header.b="v/usAv8T"; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=VQ63UHs4; spf=pass (mx1.freebsd.org: domain of void@f-m.fm designates 103.168.172.159 as permitted sender) smtp.mailfrom=void@f-m.fm; dmarc=pass (policy=none) header.from=f-m.fm Received: from phl-compute-07.internal (phl-compute-07.phl.internal [10.202.2.47]) by mailfhigh.phl.internal (Postfix) with ESMTP id 3985E11400EB for ; Sun, 27 Oct 2024 22:23:09 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-07.internal (MEProxy); Sun, 27 Oct 2024 22:23:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=f-m.fm; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1730082189; x=1730168589; bh=uQ+WqNRA7W 0nAi/g0xFGHgTiJDg6JoIlmv8D61r+Rxs=; b=v/usAv8T4i+P4qr9A/mxSuEROd ChZAA1Gg9gHGwTXRLtW/9t3+y3N1IbfFQ+td6SsYqba/uellL5xQFnWXSN4zXjh9 +e5g2TjpdEEewNrgsIdXhvwF7IZhpxN8RPVHVOiKNfJYVNEzi2S3kfohSvxGFXI3 updxhoSnUYehna8zNSn/DlHZsxdgLWNdf4Auw4EDLBMTzXQtvKjKiZen1nCwt6Tn M4Ccj85czgpzA1EKxjci1Gsw4GuRlcV3pFzwPPyPQxqiahNsZzP3//GOYTSa2rnJ qysMf7h2ynEF4z73FHKR+fupOVJzw8fUT15Y+axBeuY0YN2v8hcNBX/uSSGQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1730082189; x=1730168589; bh=uQ+WqNRA7W0nAi/g0xFGHgTiJDg6 JoIlmv8D61r+Rxs=; b=VQ63UHs4w5k8VzCyAlUmsEGji32uyPfVNAZ5cBYi4Ndb seA5MsSeBAx54lt/uJCTewHMR5Fpbr92QwJ5CLEQNl8+rut8YlfAg69IRGItBiWj dBEBNOa77dDuEzAiSc3ODKeizPn3nmOibye7nIKqnAe6Pr0dGKUyzIgxlzLvuSYO V0cgEkVYa6lEOdPJPR8MllEwRwi9cKTSjeUo2shyBSH7fFp9IHfbCttJRa188qOo fZE0fTITUIGk1/Ujo58Y/phNfo/M8aI/VoVrXvBMnd4feahRbbPor9Y0DUfk2iLo pPKWZxFJ0whKeOue64C1/S/L49hV3ocgx21dXHqXbg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdejjedggeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuf fkfhggtggujgesthdtredttddtvdenucfhrhhomhepvhhoihguuceovhhoihgusehfqdhm rdhfmheqnecuggftrfgrthhtvghrnhepkeeluddvlefhieelfefggffhffektdehleelgf dugfdvgeekjeejuddtheehgfeunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomhepvhhoihgusehfqdhmrdhfmhdpnhgspghrtghpthhtohepuddpmh houggvpehsmhhtphhouhhtpdhrtghpthhtohepfhhrvggvsghsugdqtghurhhrvghnthes fhhrvggvsghsugdrohhrgh X-ME-Proxy: Feedback-ID: i2541463c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 27 Oct 2024 22:23:08 -0400 (EDT) Date: Mon, 28 Oct 2024 02:23:06 +0000 From: void To: freebsd-current@freebsd.org Subject: Re: speedup build time Message-ID: Mail-Followup-To: freebsd-current@freebsd.org References: <012d01db28cc$5fc66ac0$1f534040$@gmail.com> 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; format=flowed Content-Disposition: inline In-Reply-To: <012d01db28cc$5fc66ac0$1f534040$@gmail.com> X-Spamd-Result: default: False [-3.80 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[f-m.fm,none]; MID_RHS_NOT_FQDN(0.50)[]; R_DKIM_ALLOW(-0.20)[f-m.fm:s=fm3,messagingengine.com:s=fm3]; RWL_MAILSPIKE_VERYGOOD(-0.20)[103.168.172.159:from]; R_SPF_ALLOW(-0.20)[+ip4:103.168.172.128/27]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[103.168.172.159:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FREEMAIL_FROM(0.00)[f-m.fm]; RCVD_COUNT_THREE(0.00)[3]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVFROM(0.00)[f-m.fm]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[f-m.fm:+,messagingengine.com:+]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; ASN(0.00)[asn:209242, ipnet:103.168.172.0/24, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; MISSING_XM_UA(0.00)[]; DWL_DNSWL_NONE(0.00)[messagingengine.com:dkim] X-Rspamd-Queue-Id: 4XcHHL443xz4PMh X-Spamd-Bar: --- On Sun, Oct 27, 2024 at 07:00:17PM -0500, Maku Bex wrote: >Hello, > >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. > >* 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. If you're following -current and want a quick build/everything you need to build GENERIC-NODEBUG not GENERIC I don't have WITH_CCACHE_BUILD=yes in src-env but I do have it in /etc/src.conf cat /etc/src.conf KERNCONF=GENERIC-NODEBUG WITH_CCACHE_BUILD= CCACHE_PREFIX=/usr/local/bin CCACHE_DIR=/var/cache/ccache # WITH_MALLOC_PRODUCTION= I build the kernel with 'make -j16 kernel' and reboot into the new kernel Then: make -j16 buildworld make -j16 kernel etcupdate -p make -j16 installworld etcupdate -B make check-old yes | make delete-old yes | make delete-old-libs sync reboot subsequent builds are very quick. This particular example is from a VM on a bhyve (XEON) host. For the purposes of rebuilding, before doing the updating, I temporarily launch the vm with 16 vCPUs and 64GB vRAM. It'd be faster on baremetal. --