arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.01826cs.PFcs.OS
收藏

通过硬件性能计数器跟踪的数据驱动功耗建模与监测

Data-Driven Power Modeling and Monitoring via Hardware Performance Counters Tracking

Sergio Mazzola, Gabriele Ara, Thomas Benz, Björn Forsberg, Tommaso Cucinotta, Luca Benini

AI总结:

提出一种架构无关的功耗建模方法,通过识别最佳硬件性能计数器构建线性模型,并开发了集成于Linux内核的开源监测框架Runmeter,以低开销实现高精度的在线功耗评估。

摘要:

在当前的高性能和嵌入式计算时代,全栈以能量为中心的设计至关重要。用例需要在可承受的功耗预算下实现越来越高的性能,且通常处于实时约束下。极致的异构性和并行性解决了这些问题,但极大复杂化了在线功耗评估,而这对于动态硬件和软件栈自适应至关重要。我们引入了一种新颖的架构无关的功耗建模方法,具有最先进的准确度、低开销和高响应性。我们的方法识别最佳的 Performance Monitoring Counters (PMCs),以在每个 Dynamic Voltage and Frequency Scaling (DVFS) 状态下对每个硬件子系统的功耗进行建模。各个线性模型被组合成一个完整的模型,有效描述了整个系统的功耗,实现了高准确度和低开销。我们的评估报告显示,功耗的平均估计误差为 7.5%,能量为 1.3%。此外,我们提出了 Runmeter,一个开源的、基于 PMC 的监测框架,集成到 Linux 内核中。Runmeter 管理 PMC 样本收集和操作,在运行时高效评估我们的功耗模型。在最坏情况下仅有 0.7% 的时间开销,Runmeter 在内核中直接提供响应迅速且准确的功耗测量,可用于诸如 Dynamic Power Management (DPM) 和功耗感知任务调度等执行策略。

英文摘要:

In the current high-performance and embedded computing era, full-stack energy-centric design is paramount. Use cases require increasingly high performance at an affordable power budget, often under real-time constraints. Extreme heterogeneity and parallelism address these issues but greatly complicate online power consumption assessment, which is essential for dynamic hardware and software stack adaptations. We introduce a novel architecture-agnostic power modeling methodology with state-of-the-art accuracy, low overhead, and high responsiveness. Our methodology identifies the best Performance Monitoring Counters (PMCs) to model the power consumption of each hardware sub-system at each Dynamic Voltage and Frequency Scaling (DVFS) state. The individual linear models are combined into a complete model that effectively describes the power consumption of the whole system, achieving high accuracy and low overhead. Our evaluation reports an average estimation error of 7.5 % for power consumption and 1.3 % for energy. Furthermore, we propose Runmeter, an open-source, PMC-based monitoring framework integrated into the Linux kernel. Runmeter manages PMC samples collection and manipulation, efficiently evaluating our power models at runtime. With a time overhead of only 0.7 % in the worst case, Runmeter provides responsive and accurate power measurements directly in the kernel, which can be employed for actuation policies such as Dynamic Power Management (DPM) and power-aware task scheduling.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑