在商用集群上执行工作流期间使用RAPL测量能耗的策略
Strategies to Measure Energy Consumption Using RAPL During Workflow Execution on Commodity Clusters
AI总结:
针对商用托管集群中工作流能耗测量难的问题,本文提出三种基于Intel RAPL、在Kubernetes集群上结合Nextflow引擎的能耗测量方法,经标准对比和实证评估明确各方案优劣及并发任务能耗估算方案。
摘要:
在科学领域,许多学科的问题都可以通过一系列计算密集型算法处理数据集来解决,这类算法流程有时被称为工作流。传统上,人们会优化这些工作流的配置,以在给定的(通常是分布式的)基础设施上,针对指定任务和数据集实现最短运行时间。然而近年来,由于低能效计算对环境的负面影响以及能源成本问题,人们越来越关注高能效计算。要评估给定工作流配置的能效,就需要可靠且准确的系统能耗测量方法。其中一种方法是使用内置硬件能耗计数器,例如Intel RAPL(运行平均功率限制)。遗憾的是,在带有典型深层软件基础设施栈的托管集群上,要有效利用RAPL进行工作流内的能耗测量难度很大,原因包括权限受限、节点间需要通信等。本文中,我们介绍了三种在Kubernetes集群上、利用Nextflow工作流引擎执行科学工作流时实现RAPL能耗测量的方法。我们通过八项应满足的准确测量标准对这些方法进行对比,包括对工作流故障的响应能力、可移植性以及新增开销等。我们阐明了每种方法的优缺点,讨论了相关挑战与陷阱以及规避方法。我们还对所有方法进行了实证评估,结果发现使用shell脚本和Nextflow插件的方案既有效又易于实现。此外我们还发现,当同一时间仅运行单个任务时,测量单个任务的能耗十分简单,但同一节点上的并发任务执行则需要利用CPU利用率等指标来估算每个任务的能耗。
英文摘要:
In science, problems in many fields can be solved by processing datasets using a series of computationally expensive algorithms, sometimes referred to as workflows. Traditionally, the configurations of these workflows are optimized to achieve a short runtime for the given task and dataset on a given (often distributed) infrastructure. However, recently more attention has been drawn to energy-efficient computing, due to the negative impact of energy-inefficient computing on the environment and energy costs. To be able to assess the energy-efficiency of a given workflow configuration, reliable and accurate methods to measure the energy consumption of a system are required. One approach is the usage of built-in hardware energy counters, such as Intel RAPL. Unfortunately, effectively using RAPL for energy measurement within a workflow on a managed cluster with the typical deep software infrastructure stack can be difficult, for instance because of limited privileges and the need for communication between nodes. In this paper, we describe three ways to implement RAPL energy measurement on a Kubernetes cluster while executing scientific workflows utilizing the Nextflow workflow engine. We compare them by utilizing a set of eight criteria that should be fulfilled for accurate measurement, such as the ability to react to workflow faults, portability, and added overhead. We highlight advantages and drawbacks of each method and discuss challenges and pitfalls, as well as ways to avoid them. We also empirically evaluate all methods, and find that approaches using a shell script and a Nextflow plugin are both effective and easy to implement. Additionally, we find that measuring the energy consumption of a single task is straight forward when only one task runs at a time, but concurrent task executions on the same node require approximating per-task energy usage using metrics such as CPU utilization.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。