基于概率的能耗分析器用于静态类型JVM基础编程语言
Probabilistic energy profiler for statically typed JVM-based programming languages
AI总结:
本文提出了一种基于概率的能耗分析器,用于预测静态类型JVM基础编程语言的能耗,通过统计模型分析代码因素影响能耗。
摘要:
能耗问题在多个领域日益突出,从移动设备到大型数据中心。开发者需要详细的软件能耗数据以缓解消耗问题。以往的方法更关注特定函数或程序,而不是源代码语句。它们主要通过点估计来估算CPU的能耗,从而忽略了其他硬件影响,限制了其在统计推理和解释性方面的应用。我们开发了一种新的方法来解决只测量CPU消耗和使用点估计的局限性,专注于预测静态类型JVM基础编程语言(如Java和Scala)的能耗。我们测量字节码模式的能耗,即编程语言源代码语句到Java字节码表示的转换。通过能耗测量,我们使用贝叶斯统计构建统计模型,这使我们能够通过统计分布预测能耗并分析个体因素。该模型包含三个静态从代码获得的因素:数据大小、数据类型、操作,以及一个关于代码执行的硬件平台的因素:设备。为了验证我们的方法,我们将其应用于Java,并在未见过的程序上评估其能耗预测。我们发现所有四个因素都有影响,特别值得注意的是,同型号的两个设备可能在能耗上有所不同,且操作和数据类型会导致能耗差异。实验还显示,程序的能耗预测与程序的真实能耗紧密相符,验证了我们的方法。我们的工作提出了一种构建能耗模型的方法,未来的工作,如验证工具,可以使用此方法进行能耗估计。
英文摘要:
Energy consumption is a growing concern in several fields, from mobile devices to large data centers. Developers need detailed data on the energy consumption of their software to mitigate consumption issues. Previous approaches have a broader focus, such as on specific functions or programs, rather than source code statements. They primarily focus on estimating the CPU's energy consumption using point estimates, thereby disregarding other hardware effects and limiting their use for statistical reasoning and explainability. We developed a novel methodology to address the limitations of measuring only the CPU's consumption and using point estimates, focusing on predicting the energy usage of statically typed JVM-based programming languages, such as Java and Scala. We measure the energy consumption of Bytecode patterns, the translation from the programming language's source code statement to their Java Bytecode representation. With the energy measurements, we construct a statistical model using Bayesian statistics, which allows us to predict the energy consumption through statistical distributions and analyze individual factors. The model includes three factors we obtain statically from the code: data size, data type, operation, and one factor about the hardware platform the code executes on: device. To validate our methodology, we implemented it for Java and evaluated its energy predictions on unseen programs. We observe that all four factors are influential, notably that two devices of the same model may differ in energy consumption and that the operations and data types cause consumption differences. The experiments also show that the energy prediction of programs closely follows the program's real energy consumption, validating our approach. Our work presents a methodology for constructing an energy model that future work, such as verification tools, can use for their energy estimates.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。