Doctoral thesis
Cite …

AVX Overhead Mitigation: OS Support for Power-Limited Systems

Mathias Gottschlag  ORCID iD icon 1
1 Institute of Computer Engineering (ITEC), Karlsruhe Institute of Technology (KIT)
DOI: 10.5445/IR/1000167744
PDF published on Jan 26, 2024
Abstract

In recent years, processors have become more and more power-limited.

As a result, one of the main goals of CPU frequency selection of recent processors is to maximize performance under the given power constraints.

On these processors, the choice of instructions has started to affect operating frequencies as different instructions require different amounts of energy.

For example, current Intel server CPUs with support for the AVX2 and AVX-512 instruction set extensions reduce the frequency of individual cores that execute these power-intensive SIMD instructions.

The resulting temporary frequency reduction reduces the throughput of the SIMD code itself, but also affect other, less power-intensive code that is, for example, executed on another hardware thread of the same physical CPU core at the same time.

This thesis focuses on the overhead that is caused by such situations where code consisting only of simple instructions with little energy consumption is executed at sub-optimal CPU frequencies.

This emote AVX overhead has been reported to slow some workloads down by up to 30% and presents a major challenge in the use of AVX2 and AVX-512.

As we show, remote AVX overhead is largely avoidable using OS-level techniques, though.

In this thesis, we perform a thorough analysis of the origins of remote AVX overhead and present a profiler that is able to accurately measure its performance impact.

We then demonstrate that existing frequency selection policies implemented by the CPU provide little potential for improvement in most scenarios - instead, major performance gains are possible via techniques implemented in the operating system.

We present two scheduler modifications to mitigate the impact of remote AVX overhead in different situations.

First, we show how limiting the use of AVX-512 to few CPU cores and migrating individual tasks to appropriate cores can greatly reduce remote AVX overhead in heterogeneous workloads involving AVX-512 code.

Second, we show how prioritizing tasks affected by remote AVX overhead can greatly improve performance isolation in the presence of remote AVX overhead caused by either AVX2 or AVX-512 code.

Our work demonstrates the need for increased involvement of the operating system with CPU frequency selection in current - and, potentially, future - power-limited systems.

In addition, we uncover a range of potential improvements to existing CPU designs that would allow for even more effective mitigation of effects such as remote AVX overhead.