兼职功率测量:nvidia-smi的关注度缺失
Part-time Power Measurements: nvidia-smi's Lack of Attention
AI总结:
本研究揭示nvidia-smi功率测量存在采样占比低等机制缺陷,通过微基准测试在多代GPU上验证问题,提出优化方案使能耗测量误差平均降低35%、最高达65%。
摘要:
GPU凭借其性能与能效优势,已成为高吞吐量、并行工作负载(从科学模拟到人工智能领域)的首选加速器。鉴于全球排名前10的最快超级计算机中有6台使用NVIDIA GPU,且许多人工智能公司各自配备数万台NVIDIA GPU,准确掌握GPU功耗对进一步提升其能效至关重要。尽管NVIDIA GPU内置功率传感器的相关文档有限,且人们对其工作机制缺乏了解,但这款可通过nvidia-smi接口轻松获取功率读数的传感器,仍被广泛应用于GPU能效计算研究中。本研究旨在阐明nvidia-smi提供的功率读数的内部机制,并评估其功率与能耗数据的准确性。我们开发了一套微基准测试程序(micro-benchmarks),用于分析nvidia-smi功率读数的特性,并在70多款不同GPU上开展了评估,这些GPU覆盖了自“Fermi”架构首次引入功率测量以来的所有架构代际。我们发现了使用nvidia-smi进行功率/能耗测量时存在的若干意外问题:例如在A100和H100 GPU上,仅25%的运行时间会被采样用于功耗计算,在其余75%的时间里,GPU的功耗可能存在显著差异,但nvidia-smi及其输出结果对此毫无察觉。这一问题连同其他发现,可能导致能耗被严重低估或高估,在部署数万块GPU的数据中心场景中尤为突出。我们提出了若干有助于缓解这些问题的最佳实践。通过将我们的结果与外部功率计的测量结果进行对比,在本次研究的测试用例中,我们将能耗测量的误差平均降低了35%,部分情况下降幅高达65%。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。