Disabling vulnerable PSF mechanism in AMD Zen 3 processors almost does not decrease performance

AMD recently announced that the Predictive Store Forwarding (PSF) mechanism in Zen 3 processors is susceptible to side-channel attacks (like Specter and Meltdown), which are based on the analysis of data deposited in the processor cache during speculative instruction execution. The company told users how they can secure themselves and disable this functionality, but did not comment on how this would affect performance. Phoronix journalists decided to clarify this issue.

(Phoronix)

The new Predictive Store Forwarding (PSF) prediction engine in AMD Zen 3 processors has been exposed to a hardware side-channel read vulnerability. In theory, disabling this feature should reduce performance, and this is exactly the effect we observed with Intel processors in the process of fixing Specter and Meltdown vulnerabilities. But at the moment AMD refers to the fact that cases of exploitation of the vulnerability in PSF are unknown, so it does not recommend end users to disable the functionality in order to avoid performance degradation.

The PSF mechanism is disabled in Zen 3 processors by setting certain MSR bits. In a whitepaper, AMD promised to publish patches for Linux to make it easy to disable PSF if needed, but there are no publicly available patches yet.

(Phoronix)

Nevertheless, Michael Larabel of Phoronix built his own Linux kernel with PSF disabled and ran dozens of tests on several systems with AMD Ryzen 5000 and EPYC 7003 series processors on a regular core and a kernel with PSF disabled. According to him, testing was carried out on a wide range of workloads, with each test running automatically several times.

As a result, I had to admit that disabling PSF has a minimal effect on performance. In most cases, the difference was within the margin of error, although in some workloads it approached 1%. For example, the Ryzen 7 5800X processor has been run through a suite of over 100 tests. At the same time, the averaging of all results indicates less than 1,5% loss of performance when the potentially dangerous Zen 3 function is turned off.

(Phoronix)

In short, while AMD generally discourages its customers from disabling PSF, if someone decides to take this step in the name of improving security, it likely won’t make any significant difference in performance. Unlike other patches designed to combat attacks related to speculative command execution, this time it came at a low cost.

If you notice an error, select it with the mouse and press CTRL + ENTER.

Related Posts

Property Management in Dubai: Effective Rental Strategies and Choosing a Management Company

“Property Management in Dubai: Effective Rental Strategies and Choosing a Management Company” In Dubai, one of the most dynamically developing regions in the world, the real estate…

In Poland, an 18-year-old Ukrainian ran away from the police and died in an accident, – media

The guy crashed into a roadside pole at high speed. In Poland, an 18-year-old Ukrainian ran away from the police and died in an accident / illustrative…

NATO saw no signs that the Russian Federation was planning an attack on one of the Alliance countries

Bauer recalled that according to Article 3 of the NATO treaty, every country must be able to defend itself. Rob Bauer commented on concerns that Russia is…

The Russian Federation has modernized the Kh-101 missile, doubling its warhead, analysts

The installation of an additional warhead in addition to the conventional high-explosive fragmentation one occurred due to a reduction in the size of the fuel tank. The…

Four people killed by storm in European holiday destinations

The deaths come amid warnings of high winds and rain thanks to Storm Nelson. Rescuers discovered bodies in two separate incidents / photo ua.depositphotos.com Four people, including…

Egg baba: a centuries-old recipe of 24 yolks for Catholic Easter

They like to put it in the Easter basket in Poland. However, many countries have their own variations of “bab”. The woman’s original recipe is associated with…

Leave a Reply

Your email address will not be published. Required fields are marked *