OPTPOLINES - Formerly Relpolines, Lower Overhead To Retpolines For Spectre Mitigation

Written by Michael Larabel in Linux Security on 31 December 2018 at 06:41 AM EST. 1 Comment
LINUX SECURITY
It's been nearly one year to the day since the Spectre and Meltdown vulnerabilities were made public. While the security vulnerabilities were quickly buttoned up in the Linux space, kernel developers continue working to offset the performance overhead introduced by these mitigations. They made a lot of overhead reductions in 2018 while still there are some patch-sets pending still for bettering the experience. One of these patch-sets was known as "Relpolines" but now has been updated and morphed into what is being called Optpolines.

Relpolines were announced a few months ago by a VMware developer as having lower overhead than Retpolines -- the return trampolines introduced as part of the Spectre mitigations back in January. The dynamic indirect call promotion work by VMware has been working on pairing relative calls and trampolines to reduce the overall Retpoline overhead. VMware found with their original patches it could deliver a 10% performance improvement to the Nginx web server, +4% for Redis, and other minor performance improvements -- well, recovering previously lost performance.

See this earlier article for information on those original patches.

Nadav Amit of VMware on Sunday night sent out a revised version of these patches where he is now referring to the Relpolines as Optpolines. The code was simplified and other improvements made, but there still are some open design decisions for the code that he's awaiting more feedback on from other kernel developers.

As such, this code is still too experimental for being ready in time for Linux 4.21 merge window, but perhaps the next cycle. Those wanting to check out these Optpoline patches can find them on the kernel mailing list.
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