AMD Retpoline Benchmarks From FX To Threadripper & EPYC
Written by Michael Larabel in AMD on 16 January 2018 at 02:00 PM EST. 12 Comments
AMD --
For those curious about the performance impact of the Retpoline patches as found in the latest Linux 4.15 kernel, here are some benchmarks on an assortment of old and new AMD Linux systems.

With the latest Linux 4.15 kernel there is not only the original Retpoline code but also an AMD-specific minimal thunk that is optimized for AMD's processor and should perform better for this Sepctre Variant Two mitigation. The Retpoline mode can be configured via the spectre_v2= kernel parameter and those interested can find more details via the kernel documentation.


Tests were done on an AMD FX-8370, A10-7870K, Ryzen 7 1800X, Ryzen Threadripper 1950X, and EPYC 7601. The systems were a mix of Debian and Ubuntu. This testing isn't meant for comparing the performance of the different processors but just looking at a range of the Retpoline performance impact on an array of different hardware with different CPUs, storage, RAM, OS, etc.

With each system the Linux 4.15 Git kernel twas tested using no Retpoline, the minimal generic Retpoline, and the minimal AMD-specific Retpoline.

The Threadripper system was more affected by the random read performance than the other AMD boxes with Retpoline.

For the most part, the Retpoline impact on AMD systems with the minimal thunk isn't too bad.

Even in the I/O benchmarks, the impact isn't too severe with the possible exception of the Threadripper box.


In CPU benchmarks, there was little change in the results.

The Linux kernel build speed wasn't impaired by the AMD Retpoline.

Those wishing to dig through more of this data can do so via OpenBenchmarking.org.
About The Author
Author picture

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 10,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 or contacted via MichaelLarabel.com.

Related AMD News
Popular News This Week