Abstract
The GPU has emerged as the go-to accelerator for high throughput and parallel workloads, spanning scientific simulations to AI, thanks to its performance and power efficiency. Given that 6 out of the top 10 fastest supercomputers in the world use NVIDIA GPUs and many AI companies each employ 10,000's of NVIDIA GPUs, an accurate understanding of GPU power consumption is essential for making progress to further improve its efficiency. Despite the limited documentation and the lack of understanding of its mechanisms, NVIDIA GPUs' built-in power sensor, providing easily accessible power readings via the nvidia-smi interface, is widely used in energy efficient computing research on GPUs. Our study seeks to elucidate the internal mechanisms of the power readings provided by nvidia-smi and assess the accuracy of the power and energy consumption data. We have developed a suite of micro-benchmarks to profile the behaviour of nvidia-smi power readings and have evaluated them on over 70 different GPUs from all architectural generations since power measurement was first introduced in the 'Fermi' generation. We have identified several unforeseen problems in terms of power/energy measurement using nvidia-smi, for example on the A100 and H100 GPUs only 25% of the runtime is sampled for power consumption, during the other 75% of the time, the GPU can be using drastically different power and nvidia-smi and results presented by it are unaware of this. This along with other findings can lead to a drastic under/overestimation of energy consumed, especially when considering data centres housing tens of thousands of GPUs. We proposed several good practices that help to mitigate these problems. By comparing our results to those measured from an external power-meter, we have reduced the error in the energy measurement by an average of 35% and in some cases by as much as 65% in the test cases we present.
Introduction
Energy efficiency is a cornerstone of modern AI and High-Performance Computing (HPC). However, the primary tool used to measure it—NVIDIA’s System Management Interface (nvidia-smi)—is poorly documented and frequently misunderstood. Researchers often treat its power readings as "ground truth," yet the tool's internal sampling mechanisms remain opaque. This study demystifies these mechanisms, evaluating over 70 GPUs across 12 architectural generations to assess the accuracy of reported wattage and identify systematic measurement blind spots.
Methodology
To establish a hardware-level "ground truth," the researchers utilized an external Power Measurement Device (PMD) from ElmorLabs. This device employs shunt resistors to measure current at a high sampling frequency of 5 kHz, providing a high-fidelity reference against which nvidia-smi readings can be compared.
The study employed a custom CUDA micro-benchmarking suite designed to produce "square wave" power profiles. By precisely controlling high-power states (vector Fused Multiply-Add operations) and low-power states (timed sleeps), the team probed how nvidia-smi averages and samples data over time. The validation suite included standard workloads such as CUBLAS, CUFFT, and MLPerf benchmarks (ResNet-50, BERT).
The "Part-Time" Sampling Problem
A critical discovery of this research is the "Part-Time" measurement issue on modern architectures. On Ampere (A100) and Hopper (H100) GPUs, nvidia-smi only samples power for 25ms out of every 100ms window. This leaves the tool "blind" to 75% of the GPU's activity. If a short-lived kernel executes during this unsampled window, the tool may report near-idle power for a high-intensity task, leading to significant energy underestimation.
Furthermore, the study debunked the "±5W accuracy" claim often found in documentation. The error is actually proportional (roughly ±5%). For a 700W H100, this 35W discrepancy could translate to over $1 million in annual electricity costs for a large-scale data center if ignored.
Results and Mitigation
The researchers proposed a "good practice" framework to mitigate these measurement errors:
- Iteration Count: Running at least 32 iterations of a workload.
- Minimum Runtime: Ensuring a minimum 5-second execution time.
- Phase-Shifting: Inserting delays to ensure kernels eventually align with the 25% sampling windows.
By applying these practices, the authors reduced energy measurement errors by an average of 35%, and up to 65% in extreme cases. The standard deviation of errors across workloads was reduced to just 0.25%, significantly improving reproducibility.
Conclusion and Future Work
While software-based mitigation helps, physical manufacturing tolerances in shunt resistors mean some error is inevitable. The study also highlighted increased complexity in integrated systems like the GH200 Grace Hopper Superchip, where "instant" power readings erroneously include CPU and DRAM power. Future work will focus on further decoding power management in these heterogeneous systems and advocating for greater transparency in hardware telemetry from vendors.
Summary updated