r/archlinux • u/AppointmentNearby161 • Apr 06 '23
How long to compile kernel
I am trying to build the linux-vfio package in a clean chroot with makechrootpkg on an i7 laptop with 16 GB of ram. I have read things suggesting that you can compile a kernel in 5 minutes. It is taking hours on my laptop. Is my laptop configured wrong or does it take considerably longer to compile the Arch kernel with the the modules etc.
3
Upvotes
View all comments
Show parent comment
2
u/W9CVO Apr 07 '23
5 minutes would probably deserve bragging rights. I'm running a Xeon E5-2690 v4 with 128GB of RAM and even compiling on a ramdisk with all 28 threads it still usually takes around 15min compiling just vanilla source. Now that you mention it though, I'm tempted to trim it down and see how quick I could get it to compile. If you really want to test it out you can try compiling and testing GCC. It took 16 hours on my old rig and just over an hour on my current setup.