Linux boot time reduced by 0.035 seconds thanks to a one-line kernel patch — aligning the slab in the ACPI code makes Linux boot faster

Linux logo in front of clocks
(Image credit: Unsplash)

Linux systems already boot relatively fast, but it's never fast enough. So, when Linux engineer Colin Ian King (via Phoronix) discovered that aligning the slab in the ACPI code would make Linux boot faster, it was considered a win for the system.

According to King, "Enabling SLAB_HWCACHE_ALIGN for the ACPI object caches improves boot speed in the ACPICA core for object allocation and free'ing especially in the AML parsing and execution phases in boot. Testing with 100 boots shows an average boot saving in acpi_init of ~35000 usecs compared to the unaligned version. Most of the ACPI objects being allocated and free'd are of very short life times in the critical paths for parsing and execution, so the extra memory used for alignment isn't too onerous."

The 0.035-faster boot time might mean nothing for most users, especially as people won't even feel a one-second change in loading times. But with Linux being an open-source system, many people with free time have been working on improving the OS, no matter how small. It has received multiple optimizations since the glory days of the netbook.

Jowi Morales
Contributing Writer

Jowi Morales is a tech enthusiast with years of experience working in the industry. He’s been writing with several tech publications since 2021, where he’s been interested in tech hardware and consumer electronics.