Date: Mon, 28 Oct 2024 02:23:06 +0000 From: void <void@f-m.fm> To: freebsd-current@freebsd.org Subject: Re: speedup build time Message-ID: <Zx71ijqPscuQbRIr@int21h> In-Reply-To: <012d01db28cc$5fc66ac0$1f534040$@gmail.com> References: <012d01db28cc$5fc66ac0$1f534040$@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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. --
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Zx71ijqPscuQbRIr>