GCC Compiler Adds Software Workaround To Avoid Intel Downfall Performance Hit

Written by Michael Larabel in Intel on 16 August 2023 at 09:48 AM EDT. 5 Comments
INTEL
With the Intel Downfall vulnerability made public last week (also known as GDS - "Gather Data Sampling") there can be a sizable hit to AVX workloads making use of the GATHER instructions. For helping to lower the impact of Downfall/GDS on mitigated systems, Intel has made a change to the GNU Compiler Collection to disable GATHER generation in vectorization for Intel CPU families affected by this vulnerability.

In order to help in trying to avoid the performance regressions, GATHER generation is being disabled in the GCC auto-vectorization code path on affected Intel CPU families. GATHER scalar emulation is used in place of the GATHER generation.

Downfall logo


This change in the GCC behavior applies to Intel Skylake with AVX-512, Cannonlake, Icelake client, Icelake server, Cascade Lake, Tigerlake, Cooperlake, and Rocket Lake families of processors.

This commit made its way to GCC 14 Git last night for this software change. No performance numbers were provided for an estimated impact of disabling the GATHER generation in auto-vectorization to instead use GATHER scalar emulation. The patch may end up being back-ported to the next GCC stable point releases but still will likely be some months away from being picked up by Linux distributions. See last week's Downfall benchmarks for the current performance expectations from a mitigated Linux kernel and new CPU microcode.
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