Linus Torvalds lands a 2.6% performance improvement with minor Linux kernel patc
Linus Torvalds merged a patch improving Linux kernel performance by 2.6% by optimizing the copy_from_user() function. The change will be included in the upcoming Linux 6.12-rc6 release.
Read original articleLinus Torvalds has successfully merged a minor patch to the Linux kernel that results in a 2.6% performance improvement in Intel's "will it scale" per-thread-ops benchmark. The patch, which Torvalds authored, 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, particularly in scenarios where copy_from_user() is utilized to transfer data from user-space to kernel-space. The kernel test robot confirmed the performance gain, and the patch will be included in the upcoming Linux 6.12-rc6 release, with a stable version expected later in November. This optimization is part of ongoing efforts to mitigate the performance costs associated with Spectre-related security measures.
- Linus Torvalds' patch improves Linux kernel performance by 2.6%.
- The patch modifies the 64-bit copy_from_user() function to enhance efficiency.
- The change avoids the slow barrier_nospec() operation.
- The performance improvement was confirmed by the kernel test robot.
- The patch will be included in the upcoming Linux 6.12-rc6 release.
Related
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.
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.
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.
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 modifying the copy_from_user() function. It will be included in the upcoming Linux 6.12-rc6 release in November.
Also.. the past 3 copies of this submission didn't have the title truncation.
Related
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.
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.
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.
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 modifying the copy_from_user() function. It will be included in the upcoming Linux 6.12-rc6 release in November.