Re: speedup build time
- Reply: void : "Re: speedup build time"
- In reply to: Maku Bex: "speedup build time"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 28 Oct 2024 02:23:06 UTC
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. --