Linus Torvalds Lands 2.6% Performance Improvement with Minor Linux Kernel Patch
Linus Torvalds merged a patch improving Linux kernel performance by 2.6% by optimizing the 64-bit copy_from_user() function, set for inclusion in the upcoming Linux 6.12-rc6 release.
Read original articleLinus Torvalds has successfully merged a minor patch to the Linux kernel that achieves a 2.6% performance improvement in Intel's "will it scale" per-thread-ops benchmark. The patch, which consists of 21 lines of code, modifies the 64-bit copy_from_user() function by eliminating the use of barrier_nospec(), a slow operation. Instead, it employs pointer masking to handle invalid addresses more efficiently. This change is expected to enhance performance in copying data from user-space to kernel-space, although its broader impact on various workloads remains to be seen. The optimization is particularly significant as it reduces the overhead associated with Spectre mitigations, which have previously imposed performance costs. The patch is set to be included in the upcoming Linux 6.12-rc6 kernel release, with the stable version expected later in November.
- Linus Torvalds' patch improves Linux kernel performance by 2.6%.
- The optimization focuses on the 64-bit copy_from_user() function.
- The patch eliminates the slow barrier_nospec() operation.
- It will be included in the Linux 6.12-rc6 release.
- The change aims to reduce performance costs associated with Spectre mitigations.
Related
Linux Close to Enabling Real-Time "Preempt_rt" Support
The Linux kernel is close to integrating real-time "PREEMPT_RT" support, with potential inclusion in version 6.12 or 6.13, while 6.12 will be this year's Long-Term Support version.
Linux 6.11 Released
The 6.11 kernel was released by Linus Torvalds on September 15, 2024, featuring new io_uring operations, Rust support for block drivers, and enhancements like atomic writes and a vDSO for getrandom().
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.
Linux 6.12 Features Super Real-Time, Sched_ext, Intel Xe2 and Pi 5
Linux 6.12 will introduce real-time PREEMPT_RT support, initial Intel Xe2 graphics and Raspberry Pi 5 support, and various enhancements, with a stable Long Term Support release expected in November.
Linus Torvalds Growing Frustrated by Buggy Hardware and Theoretical CPU Attacks
Linus Torvalds criticized current hardware and CPU security issues, particularly with Intel's LAM, emphasizing manufacturers' responsibility and the need for clearer guidance, while Intel develops LASS to address speculation problems.
Related
Linux Close to Enabling Real-Time "Preempt_rt" Support
The Linux kernel is close to integrating real-time "PREEMPT_RT" support, with potential inclusion in version 6.12 or 6.13, while 6.12 will be this year's Long-Term Support version.
Linux 6.11 Released
The 6.11 kernel was released by Linus Torvalds on September 15, 2024, featuring new io_uring operations, Rust support for block drivers, and enhancements like atomic writes and a vDSO for getrandom().
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.
Linux 6.12 Features Super Real-Time, Sched_ext, Intel Xe2 and Pi 5
Linux 6.12 will introduce real-time PREEMPT_RT support, initial Intel Xe2 graphics and Raspberry Pi 5 support, and various enhancements, with a stable Long Term Support release expected in November.
Linus Torvalds Growing Frustrated by Buggy Hardware and Theoretical CPU Attacks
Linus Torvalds criticized current hardware and CPU security issues, particularly with Intel's LAM, emphasizing manufacturers' responsibility and the need for clearer guidance, while Intel develops LASS to address speculation problems.