Anyone installing Ubuntu 19.10 next month will find more than a new light theme to marvel at — as boot times will be faster too.
Canonical engineers tested a variety of different compression options on the Ubuntu install image, looking to find the best compromise between best compression (i.e. small file sizes) and decompression (i.e. fast unpack times).
But it was the LZ4 decompression algorithm which showed the most appreciable gains in the tests.
As such, LZ4 is going to be default decompression for x86, ppc64el and s390 kernels, and
initramfs in the relevant Ubuntu 19.10 installer images — i.e. the images that most people will install Ubuntu 19.10 using.
initramfs is a temporary root file system loaded into memory as part of the Linux boot process. Once decompressed it provides modules needed to mount the real root file system (i.e. your hard-drive).
Canonical’s Colin King shares more detail on his blog, explaining that: “Even with slow spinning media and a slow CPU, the longer load time of the LZ4 kernel is overcome by the far faster decompression time.”
“As media gets faster, the load time difference between GZIP, LZ4 and LZO diminishes and the decompression time becomes the dominant speed factor with LZ4 the clear winner.”
Those minded can pore over the full test results in finer detail.
hero image: monsteer