September 18th, 2024

Patch Proposed for Adding x86_64 Feature Levels to the Kernel

A proposed patch to add x86_64 feature levels to the Linux kernel faces skepticism from developers, citing minimal performance benefits and concerns over clarity and necessity, making acceptance unlikely.

Read original articleLink Icon
Patch Proposed for Adding x86_64 Feature Levels to the Kernel

A recent patch proposal aimed at adding x86_64 micro-architecture feature levels to the Linux kernel has been met with skepticism from upstream developers. The patch seeks to introduce new configuration options for optimizing kernel builds for modern Intel and AMD processors, potentially enhancing performance. However, many developers argue that the benefits for the kernel are minimal, as the existing kernel code is already highly optimized. Intel engineer Dave Hansen raised concerns about the clarity of the proposed options for end users, suggesting that the patch lacks sufficient justification for its complexity. Similarly, AMD engineer Borislav Petkov noted that previous attempts to introduce such patches have not demonstrated significant advantages. The consensus among developers is that the proposed changes are unlikely to be accepted into the mainline kernel, especially since users can already achieve similar results through existing compiler flags. As it stands, the patch appears to be facing an uphill battle for acceptance due to a lack of compelling rationale and interest from the community.

- A patch for adding x86_64 feature levels to the Linux kernel has been proposed but faces criticism.

- Developers argue that the performance benefits for the kernel are minimal due to existing optimizations.

- Concerns have been raised about the clarity and necessity of the proposed configuration options for users.

- Previous similar patches have not gained traction, indicating a trend of skepticism in the community.

- The patch is unlikely to be accepted into the mainline kernel without stronger justification.

Link Icon 2 comments
By @westurner - 5 months
> The proposed patch adds the x86_64 micro-architecture feature levels v2 / v3 / v4 as new Kconfig options if wanting to cater to them when building the kernel with modern GCC and LLVM Clang compilers. It's just some Kconfig logic to then set the "-march=x86-64-v4" or similar compiler options for the kernel build.

How much would these compiler flags save a standard datacenter and then an HPV center?

By @muziq - 5 months
I like the sound of AMD engineer Borislav Petkov, him & I could fix the world together }:-8)