An Intel Engineer Has Another Optimization For Possible Performance Degradation On Linux

Written by Michael Larabel in Intel on 17 April 2020 at 07:09 AM EDT. 6 Comments
INTEL
Besides the long-running FSGSBASE patch series that has the ability to help the performance for CPUs going back years, another engineer on Intel's open-source team has been working on a separate but enticing patch in the name of performance.

The latest Linux performance work to talk about is Kirill Shutemov having posted a patch on Thursday to allow restoring large pages after fragmentation. This direct mapping fragmentation can degrade performance over time.

Shutemov explained with the "request for comments" patch:
Change of attributes of the pages may lead to fragmentation of direct mapping over time and performance degradation as result.

With current code it's one way road: kernel tries to avoid splitting large pages, but it doesn't restore them back even if page attributes got compatible again.

Any change to the mapping may potentially allow to restore large page.

With the initial patch, no numbers were provided as to the expected performance benefits. Dave Hansen, also of Intel, commented that "Looks pretty sane to me, and sounds like something we've needed for a long time."

We'll see if this optimization makes it for Linux 5.8.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week