From nobody Wed Oct 30 22:55:57 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 4Xf2Y42770z5cBVB for ; Wed, 30 Oct 2024 22:56:08 +0000 (UTC) (envelope-from brian@sonicboom.org) Received: from sheehan.sonicboom.org (sheehan.sonicboom.org [69.75.45.53]) (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 4Xf2Y342sjz4NHJ for ; Wed, 30 Oct 2024 22:56:07 +0000 (UTC) (envelope-from brian@sonicboom.org) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of brian@sonicboom.org designates 69.75.45.53 as permitted sender) smtp.mailfrom=brian@sonicboom.org; dmarc=none Received: from [10.10.1.112] (syn-069-075-045-051.biz.spectrum.com [69.75.45.51]) by sheehan.sonicboom.org (Postfix) with ESMTPSA id 8CC003A00459 for ; Wed, 30 Oct 2024 15:55:59 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------KTA5BtsnndBbyEuCN84Yl8k8" Message-ID: <1977c28a-7e83-4a4f-b3ec-7ab8817f7b01@sonicboom.org> Date: Wed, 30 Oct 2024 15:55:57 -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 User-Agent: Mozilla Thunderbird Subject: Re: speedup build time To: freebsd-current@freebsd.org References: <012d01db28cc$5fc66ac0$1f534040$@gmail.com> Content-Language: en-US From: Brian In-Reply-To: <012d01db28cc$5fc66ac0$1f534040$@gmail.com> X-Spamd-Result: default: False [-3.18 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.995]; R_SPF_ALLOW(-0.20)[+ip4:69.75.45.53]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; XM_UA_NO_VERSION(0.01)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEFALL_USER(0.00)[brian]; ASN(0.00)[asn:20001, ipnet:69.75.0.0/16, country:US]; R_DKIM_NA(0.00)[]; ARC_NA(0.00)[]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[sonicboom.org]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4Xf2Y342sjz4NHJ X-Spamd-Bar: --- This is a multi-part message in MIME format. --------------KTA5BtsnndBbyEuCN84Yl8k8 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Doesn't ccache work? install the package and put WITh_CCACHE_BUILD=yes in /etc/make.conf. With a lot of ccache hits i cann build kernel and world with 4 cores onn a vm in about ab hour. On 10/27/2024 5:00 PM, 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. > > 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. > > Hardware specs: > > * I7-10700T 8C/16T @2.0GHz. > * 16GB RAM. > * 256GB NVMe. > > Currently, ‘make buildworld’ has been running for 7hrs and counting. > Is there anything else I can do to speed up world build? > > thx, > --------------KTA5BtsnndBbyEuCN84Yl8k8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Doesn't ccache work? install the package and put WITh_CCACHE_BUILD=yes in /etc/make.conf. With a lot of ccache hits i cann build kernel and world with 4 cores onn a vm in about ab hour.


On 10/27/2024 5:00 PM, 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.

 

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.

 

Hardware specs:

 

  • I7-10700T 8C/16T @2.0GHz.
  • 16GB RAM.
  • 256GB NVMe.

 

Currently, ‘make buildworld’ has been running for 7hrs and counting. Is there anything else I can do to speed up world build?

 

 

thx,

--------------KTA5BtsnndBbyEuCN84Yl8k8--