3 ms·
Turning Off Zen 4's Op Cache for Curiosity and Giggles
- o11c 2y agoHmm, does this affect power draw?
- AstralStorm 2y agoI believe the opcache is too small to really matter here to disable. Even though it's fast SRAM, it's not too many transistors. Performance loss will of course cause the task to run longer which increases total power usage. It makes much more sense to disable SMT instead first, with the performance losses being on par most of the time, while this bringing serious powwr savings.
- skavi 2y agoI would assume the inverse relationship. That enabling the op cache would reduce power draw. Though I also wouldn’t be surprised if they’re always running the decoder.
- p_l 2y agoThe very reason for the Loop Buffer was to let decoder power down within tight loops, so I'd assume micro op cache would have similar effect, except with more impact on performance.
- skavi 2y agoVery curious as to the typical strategy for implementing low power modes on things that are highly latency sensitive like a decoder. Like would whatever mechanism they’ve got behave well if fetches were alternating between cache hits and cache misses?
- Symmetry 2y agoWell, the decode used to use 15% of an x86 core's power budget but it hasn't grown as fast as the other structures so I'd guess more like 10% these days. So you're losing out on being able to turn off a small but noticeable part of your active power usage. But on the other hand fewer instructions executing means less active power draw in the rest of your core too. So it's not clear which way it goes in terms of Watts, but certainly you use more Jules.
- Traubenfuchs 2y agoOne thing I'd be interested in, which kind of belongs in this space: In the last years, there were lots of performance reducing software patches for security flaws in CPUs, e.g. meltdown, specter and god knows what. Is there a way to disable those security fixes and increase performance, e.g. for servers that only ever run self written backend code and if so, is it common practice? I feel like I wouldn't want those security fixes on that server I am running which only runs postgres, is only accessible to other servers via the postgres port and does nothing else.
- alecmg 2y agoPhoronix regularly tests this, search for keyword mitigations https://www.phoronix.com/review/amd-zen5-mitigations-off https://www.phoronix.com/review/amd-zen5-mitigations-off
- lnx01 2y agoI ran mitigations=off on my Zen4 until I saw that phoronix article and realised that in most workloads it made essentially no difference, and even harmed performance in others. I no longer run mitigations=off. But on my old i7 7700HQ mitigations=off improved performance by 10-20% depending on workload.
- phkahler 2y ago>> Performance monitoring data shows increased pressure on the decoder in SMT mode across all integer workloads. That's probably why AMD put 2 decoders in Zen5.