News: 0001475478

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Meta Sees ~5% Performance Gains To Optimizing The Linux Kernel With BOLT

([Linux Kernel] 5 Hours Ago Linux Kernel + BOLT)


For years Meta/Facebook has been [1]exploring using BOLT with the Linux kernel to optimize the layout of the Linux kernel binary. Since [2]BOLT was upstreamed into LLVM , they've [3]continued work around BOLT'ing the kernel . There is now a public guide for carrying out a BOLT-optimized Linux kernel build and roughly 5% better system performance to expect from such an optimized kernel.

Optimizing the Linux kernel with BOLT is currently yielding around 5% better performance than the default performance otherwise. The performance benefit to particular workloads ultimately depends upon how much time the application spends in kernel space, with the likes of database servers, other network intensive workloads, etc stand to benefit more than largely user-space bound tasks.

This past week Meta engineer Maksim Panchenko committed a Linux kernel optimization guide for those wanting to build a kernel image and see it optimized with BOLT. In that guide the particular performance advantage was explained as:

"By improving the code layout, BOLT can boost the kernel's performance by up to 5% by reducing instruction cache misses and branch mispredictions. When measuring total system performance, you should scale this number accordingly based on the time your application spends in the kernel (excluding I/O time)."

See [4]the new guide for those wanting to optimize the Linux kernel with BOLT.



[1] https://www.phoronix.com/news/Facebook-BOLTing-The-Kernel

[2] https://www.phoronix.com/news/LLVM-BOLT-Default-Test-Releases

[3] https://www.phoronix.com/news/LLVM-BOLT-Linux-Kernel-2024

[4] https://github.com/llvm/llvm-project/blob/main/bolt/docs/OptimizingLinux.md



Linuxhippy

muncrief

ptr1337

ptr1337

smirky

ptr1337

muncrief

Evolution Of A Linux User: The 11 Stages Towards Getting A Life

0. Microserf - Your life revolves around Windows and you worship Bill
Gates and his innovative company.
1. Fear, Uncertainty, Doubt... About Microsoft - You encounter a growing
number of problems with Microsoft solutions, shaking your world-view
2. FUD... About Linux - After hearing about this new Linux thing, you
take the plunge, but are unimpressed by the nerdware OS.
3. Born-Again Microserf - You rededicate your life to Microsoft worship
4. Disgruntled User - Microsoft software keeps screwing you over,
and you're not going to take it anymore!
5. A Religious Experience - You successfully install Linux, and are
left breathless at its elegance. No more Windows for you!
6. Linux Convert - You continue to fall in love with the new system
7. Linux Zealot - You dedicate your life to Linux World Domination...
and it shows! You go beyond mere advocacy to sheer zealotry.
8. Back To Reality - Forces out of your control compel you to
return to using Windows and Office
9. Enlightened Linux User - You become 100% Microsoft free after finding
ways to overcome the need for Microsoft bloatware
10.Get A Life - You become a millionaire after your Linux portal is
acquired; you move to a small tropical island and get a life