A Minor Optimization Comes For x86 Memory Management In Linux 6.18
([Linux Kernel] 5 Hours Ago
x86/mm)
- Reference: 0001582114
- News link: https://www.phoronix.com/news/Linux-6.18-x86-mm
- Source link:
Sent out today was the x86/mm pull request of the x86/x86_64 memory management changes destined for this next version of the Linux kernel. This pull has just one new patch but is worth mentioning.
The patch from Intel engineer Yu-cheng Yu is changing the cpa_flush() call to call the flush_kernel_range() function directly. The CPA flushing code is for flushing the translation lookaside buffer (TLB) as part of the Change Page Attribute (CPA) code for user and kernel space memory attributes.
With this change, the CPA flush code can make use of the INVLPGB or RAR instructions without any additional changes. [1]INVLPGB at least can be of very nice performance benefit as [2]shown in other testing from past Phoronix articles.
The code is pending via [3]the x86/mm pull request .
[1] https://www.phoronix.com/search/INVLPGB
[2] https://www.phoronix.com/review/amd-invlpgb-linux
[3] https://lore.kernel.org/lkml/20251001171529.901044-1-dave.hansen@linux.intel.com/T/#u
The patch from Intel engineer Yu-cheng Yu is changing the cpa_flush() call to call the flush_kernel_range() function directly. The CPA flushing code is for flushing the translation lookaside buffer (TLB) as part of the Change Page Attribute (CPA) code for user and kernel space memory attributes.
With this change, the CPA flush code can make use of the INVLPGB or RAR instructions without any additional changes. [1]INVLPGB at least can be of very nice performance benefit as [2]shown in other testing from past Phoronix articles.
The code is pending via [3]the x86/mm pull request .
[1] https://www.phoronix.com/search/INVLPGB
[2] https://www.phoronix.com/review/amd-invlpgb-linux
[3] https://lore.kernel.org/lkml/20251001171529.901044-1-dave.hansen@linux.intel.com/T/#u
phoronix