Another Potential Performance Optimization For KPTI Meltdown Mitigation
![LINUX KERNEL](/assets/categories/linuxkernel.webp)
Intel developer Dave Hansen discovered that the back when KPTI was known as KAISER allowed the user/kernel shared areas to be marked global that would reduce the TLB overhead. But with all the code churn and it transitioning to page table isolation, that code got dropped.
Hansen posted a set of 10 patches on Thursday for bringing back global pages for shared areas with the x86/pti code. With this the code avoids unnecessary TLB misses.
No performance reports were provided but will be interesting to see what impact if anything measurable it will have on real-world workloads that were affected by KPTI. The patches can be found on the kernel mailing list and will be tested in our next Spectre/Meltdown benchmarking roundup.
5 Comments