VOOZH about

URL: https://www.phoronix.com/news/Linux-6.19-X86_NATIVE_CPU

⇱ Linux 6.19 Kernel Benchmarks With X86_NATIVE_CPU Optimization - Phoronix


👁 Phoronix

Linux 6.19 Kernel Benchmarks With X86_NATIVE_CPU Optimization

Written by Michael Larabel in Linux Kernel on 30 December 2025 at 07:27 AM EST. 23 Comments
Added to the Linux kernel earlier this year was the new X86_NATIVE_CPU Kconfig option to enable compiler optimizations for the local/native CPU in use when building the Linux kernel. In effect about ensuring that the "-march=native" compiler flag is set for the kernel build for optimizing the Linux kernel build for your processor being used. Back with Linux 6.16 I ran some benchmarks of the Linux kernel build with X86_NATIVE_CPU to gauge the impact. Now with the current Linux 6.19 kernel and some different hardware, here are some additional on/off benchmarks for evaluating the impact of the Linux kernel build with X86_NATIVE_CPU.

For this quick round of benchmarking was Linux 6.19 Git built using the GCC 15.2 kernel on Ubuntu 26.04 development.

👁 CONFIG_X86_NATIVE option


This testing was on an AMD Ryzen Threadripper PRO 9995WX 96-core workstation.

The same kernel configuration/build was carried out besides one with the X86_NATIVE_CPU option enabled and the other without.



In some of the I/O benchmarks there were slight performance benefits from the X86_NATIVE_CPU kernel.

And in synthetic kernel micro-benchmarks.








But among the real-world workloads there was minimal benefit overall for this GCC 15 + Linux 6.19 X86_NATIVE_CPU kernel on the AMD Ryzen Threadripper PRO 9995WX Zen 5 workstation.



Just a quick article out of this round as after 100+ benchmarks, only in a handful of cases were there any improvements worth noting and just within those synthetic I/O and kernel micro-benchmark tests.

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.