News: 0001582114

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

A Minor Optimization Comes For x86 Memory Management In Linux 6.18

([Linux Kernel] 5 Hours Ago x86/mm)


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



phoronix

I sold my memoirs of my love life to Parker Brothers -- they're going
to make a game out of it.
-- Woody Allen