Benchmarking The Performance Impact Of Linux 5.15's Newest Protection Around Side Channel Attacks

Written by Michael Larabel in Software on 3 September 2021 at 09:05 AM EDT. Page 4 of 5. 13 Comments.
5950X Linux 5.15 Hardening ZERO_CALL_USED_REGS
5950X Linux 5.15 Hardening ZERO_CALL_USED_REGS

When it came to the Stress-NG kernel micro-benchmarks, in some cases like the NUMA and MEMFD there was an observed performance hit, but a synthetic test case.

5950X Linux 5.15 Hardening ZERO_CALL_USED_REGS
5950X Linux 5.15 Hardening ZERO_CALL_USED_REGS

The context switching performance does take a visible hit, seen both by stress-ng and the separate ctx-clock benchmark.

5950X Linux 5.15 Hardening ZERO_CALL_USED_REGS
5950X Linux 5.15 Hardening ZERO_CALL_USED_REGS
5950X Linux 5.15 Hardening ZERO_CALL_USED_REGS

But for real-world workloads, any performance impact of ZERO_CALL_USED_REGS is expected to be minimal.


Related Articles