SEPFApr 29

What Is the Cost of Energy Monitoring? An Empirical Study on the Overhead of RAPL-Based Tools

arXiv:2604.2681543.7
Predicted impact top 58% in SE · last 90 daysOriginality Synthesis-oriented
AI Analysis

For practitioners developing high-frequency energy profiling tools, this study provides guidance on reducing measurement overhead and identifies specific techniques for faster RAPL access.

This paper quantifies the overhead of RAPL-based energy monitoring tools at 1 kHz, finding that existing user-space tools introduce time overhead ranging from 0.25% to 46.75%, while the authors' optimized tools reduce overhead to near-baseline levels.

The Running Average Power Limit (RAPL) interface is widely used to estimate software energy consumption via CPU and DRAM counters, but tool design differences and high-frequency polling can introduce measurement overhead, namely, extra time and energy consumed by the tool itself.This paper quantifies the impact of RAPL-based tools on high-frequency (1 kHz) energy monitoring and investigates mitigation strategies. We conduct two controlled experiments: the first evaluates seven tools, including a user-space application and a kernel module developed by the authors, against a no-tool baseline, using six NAS Benchmark functions to quantify overhead. The second experiment isolates and times key functions for polling Model-Specific Registers (MSRs) (rdmsr and sys/proc_read) to estimate their execution latencies and identify potential slowdowns. The results show that existing user-space tools can introduce substantial time overhead at 1 kHz, whereas our tools significantly reduce system call overhead and inline math overhead. The time overhead of existing tools ranges from 0.25% to 46.75%. Our solutions maintain time overhead levels close to the baseline. We also find that system calls are slower than rdmsr, which in turn is slower than traditionally long-running instructions like cpuid. These findings indicate that RAPL-based energy measurement can be substantially improved by simplifying tool design and employing lower-level instructions to access RAPL values. Our findings provide guidance for practitioners on how to develop high-frequency energy profiling tools, show possible situations that can skew energy values, and demonstrate that access to RAPL values can be faster using specific techniques.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes