For the kernel, removing hardware from the KERNCONF file that your system doesn't use, greatly reduces compile time. Also, upgrading the cpu from 32 to 64 bit does too. Both of these together reduced my kernel compile time from 2 hrs to 15 minutes. Using make with the -j option cut it down to 9 minutes.
Make options
The commands dmesg with grep can help find hardware
There are also other options like funroll-loops, but this may speed compile time, at the cost of performance.
There is also mounting/var and /tmp to memory by fstab and conf, by use of the programs tmpfs(5), and/or mdmfs(8), which should work for performance. Perhaps, I didn't mount the work directories to here.
I read that an SSD harddisk can improve boot times to a 10s of seconds. As for compiling, it had a negligible effect. Also, its function is not suited for it anyway, considering SSD isn't made for the wear and tear of constant rewrites.
I was wondering if it were possible to use FPGA's (Field-programmable gate array) to speed up compiling, and/or other processes. ASIC (Application-specific integrated circuit) use for this may seem doubtful.
Even for reduced kernel compile times at 9 minutes, compiling programs still takes hours.
There was also a thread somewhere, where they loaded /boot to memory to speed up boot time in NanoBSD. Does anyone have any ideas they'd like to add?
Make options
Code:
echo 'CPUTYPE=<myprocessor>' >> /etc/make.conf
<directory>/make -j<# of cores>
There are also other options like funroll-loops, but this may speed compile time, at the cost of performance.
There is also mounting
I read that an SSD harddisk can improve boot times to a 10s of seconds. As for compiling, it had a negligible effect. Also, its function is not suited for it anyway, considering SSD isn't made for the wear and tear of constant rewrites.
I was wondering if it were possible to use FPGA's (Field-programmable gate array) to speed up compiling, and/or other processes. ASIC (Application-specific integrated circuit) use for this may seem doubtful.
Even for reduced kernel compile times at 9 minutes, compiling programs still takes hours.
There was also a thread somewhere, where they loaded /boot to memory to speed up boot time in NanoBSD. Does anyone have any ideas they'd like to add?
Last edited: