Linux 5.2 Optimization To Help With Unnecessary Cache Line Movements & TLB Misses

Written by Michael Larabel in Linux Kernel on 28 April 2019 at 07:50 PM EDT. 6 Comments
VMware can be thanked for one of the performance optimizations coming with the upcoming Linux 5.2 kernel cycle.

VMware engineer Nadav Amit was able to rework some of the kernel's x86 TLB / memory management code to remove one of the structs from the stack. This in turn allows avoiding potential unnecessary cache line movements as well as the benefit of reduced TLB misses.

In a basic micro-benchmark exercising the functionality in question, the performance improved by about 3% with bumping the struct off the stack. But as far as any real-world performance benchmarks, no data was shared. But we'll certainly be firing off benchmarks next month when the Linux 5.2 kernel cycle officially kicks off.

More details via this Git commit where the change is currently staged in the x86/mm tree until the Linux 5.2 merge window.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of 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 automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via

Popular News This Week