<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>DPS: Adaptive Power Management for Overprovisioned Systems</title></titleStmt>
			<publicationStmt>
				<publisher>ACM</publisher>
				<date>11/11/2023</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10598197</idno>
					<idno type="doi">10.1145/3581784.3607091</idno>
					
					<author>Jianru Ding</author><author>Henry Hoffmann</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Maximizing performance under a power budget is essential for HPC systems and has inspired the development of many power management frameworks. These can be broadly characterized into two groups: model-based and stateless. Model-based frameworks use machine learning to achieve good performance under a power budget but are highly dependent on the quality of the learned model and the data used to train it. Stateless frameworks are more robust and require no training, but are generally lower performance. In this paper, we propose a new framework that does not require a model, but does track a small amount of state in the form of recent power dynamics. We implement this idea and test it on a public cloud running both Spark and HPC jobs. We find when total power demand is low, our framework achieves equivalent performance to prior work, but when power demand is high it achieves mean 8% performance improvement (with no reliance on a learned model).]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">INTRODUCTION</head><p>As the scale of distributed systems increases, power becomes the bottleneck of the system design. The US Department of Energy (DoE)'s goal for Exascale Computing is to operate in a power envelope of 20-30 MW <ref type="bibr">[30]</ref>. Overprovisioning-building a system which is capable of drawing power over its budget and then limiting individual nodes to respect the budget-has thus been proposed to increase scale while respecting a power budget <ref type="bibr">[33]</ref>. To support this goal, modern processors include power-capping hardware. Since the Sandy Bridge architecture, Intel processors have supported the RAPL (Running Average Power Limit) interface, which takes a processor power limit and meets it by automatically managing voltage and frequency <ref type="bibr">[6]</ref>.</p><p>In real systems, it is rare that all machines operate at full power. For example, cloud servers typically operate between 10 to 50% utilization <ref type="bibr">[3]</ref>. Thus, unused power budget on low-power machines to be migrated to those operating at their power caps to increase performance. This creates the need for a power management system that assigns the cluster-wide power budget dynamically based on power usage such that system performance is maximized.</p><p>Prior work proposes three broad categories of power managers:</p><p>&#8226; Constant allocation systems assign an equal power budget to each node. This approach is simple to implement and clearly respects the cluster-wide power budget. However, it is rarely optimal as it cannot shift power dynamically based on demand. &#8226; Model-based systems use machine learning or similar approaches <ref type="bibr">[29,</ref><ref type="bibr">50,</ref><ref type="bibr">55]</ref> to construct models that capture the relationship between measurable system behavior and powerperformance tradeoffs. These systems then use their models to find performance-optimal power assignments and can dynamically adapt to changes in the operating conditions or workload. But such models require a huge amount of data to train, which creates a non-negligible deployment overhead to migrate such systems to new architectures. They can also be brittle and subject to failure if the system enters an operating regime that is not captured in the training data <ref type="bibr">[46]</ref>. &#8226; Model-free stateless systems (later referred to as stateless systems) use no model, and in fact, keep no knowledge or reference to past operations. Instead, they make decisions based solely on instantaneous power consumption, shifting unused power from nodes operating below their caps, to nodes operating at their cap. This model-free approach works because it is assumed that nodes operating at their cap can achieve good performance with more power and nodes operating below their cap will not be hurt if their cap is lowered. A well-known example of the stateless system is the power management plugin of SLURM (later referred to solely as SLURM) which is currently world-widely deployed on many supercomputers and distributed systems <ref type="bibr">[51]</ref>. Such systems are lightweight and ready to operate once configured. They are also robust to different scenarios as they make decisions based solely on current power usage. However, lacking a model, they do not have the means to predict future power states and thus have limited ability to optimize power allocations.</p><p>To illustrate the differences between these approaches (and ultimately argue for a new approach), Figure <ref type="figure">1</ref>  in dotted frames. In this example, both nodes will eventually execute at the maximum power (as shown in the top row with infinite budget); however, Node 0 increases its power 2 timesteps before Node 1 (shown on the first row). The constant allocation (row 2) wastes part of the budget at T2 and T3 but evenly distributes power at T4. A Perfect Model-based system and a stateless system fully utilize the budget through time T3. At T4, a perfect model-based system reassigns part of Node 0's budget to Node 1, but a stateless system sees both nodes operating at their power caps and continues with this disproportionate power allocation, starving node 1. This raises the question of whether there is a practically realizable power management system that can arrive at the same place as a perfect model-based system while looking only at power data. In fact, this paper argues that there is an important, yet unexplored, middle ground between model-based systems and stateless model-free systems. Specifically, power dynamics-changes in power usage over time-reveal a great deal of information that can be used to allocate power budgets in a distributed system without reliance on complicated models. Consider again the example in Figure <ref type="figure">1</ref>. From time T1 to T3, node 1's power increases and it is likely that it will need more power in the future. By tracking these changes, power can be redistributed based on the system's dynamics, without reliance on a complicated model.</p><p>Based on these observations, we present the Dynamic Power Scheduler (DPS), a model-free stateful power manager for overprovisioned systems that improves performance while maintaining a cluster-level power limit. Inheriting the low-overhead advantage of the model-free stateless approaches, DPS assumes no a priori knowledge of application workloads and monitors only power data. DPS decides the power cap for each node by first using a stateless approach and then updates this initial power distribution using power dynamics, which include an estimate of each node's first derivative of power and its frequency of power changes. These power dynamics are then converted into a priority that modifies the initial power distribution to ensure that nodes that either (1) need power now or (2) will likely need power in the near future get that power. DPS also uses power dynamics to ensure that when power usage fluctuates too quickly to benefit from active management, it never produces worse performance than a constant allocation.</p><p>Figure <ref type="figure">1</ref> includes DPS as the last row. DPS makes the same decision as the stateless system until T2. When the power needs exceed the power budget at T3, different from the stateless system, DPS detects the increasing trend of Node 1's power and adjusts the caps to the anticipated power need. Then at T4, it is able to continue assigning balanced caps just as a perfect model-based system does.</p><p>We implement DPS and test it on an 11-node Linux/x86 server cluster with the machine learning workloads in the HiBench benchmark suite <ref type="bibr">[20]</ref> and an HPC benchmark suite, the NAS Parallel Benchmarks (NPB) <ref type="bibr">[2]</ref>. The Spark applications demonstrate distinct phases in power changes while the HPC applications continuously require high power. Machine learning applications are implemented and executed in Apache Spark, and categorized into two groups based on the application's power usage. We test in three experimental setups where two clusters are run in parallel to reflect a realworld cloud service utility. In the first setup where mid-power Spark applications are paired with low-power Spark applications, our results show that DPS achieves similar mean performance to prior stateless systems, but with a maximum improvement in application performance of up to 17.5%. In the second setup where high-power and mid-power Spark workloads are paired together, DPS outperforms the power-management plugin in the wide-used resource manager, SLURM by a mean 5.4%. In the third setup where Spark applications are paired with NPB applications, DPS out-performs SLURM, by a mean 8.0% and up to 21.3%.</p><p>We acknowledge that a highly constrained set of application workloads (and inputs) could benefit from 1-time training in a model-based approach, which, however, bares a non-negligible overhead beyond such a constrained scenario, as we believe HPC (and cloud) workloads are becoming increasingly diverse and dynamic. On the contrary, DPS can be deployed on any cloud system, including commercial cloud systems like elastic clouds. DPS can also be deployed in systems where the applications are black-boxes where Model-based systems are essentially unable to operate.</p><p>To our best knowledge, this paper proposes the first model-free stateful power manager and makes the following contributions:</p><p>&#8226; Developing a model-free stateful power management system to maximize performance under a power cap. The state is simply the recent power usage changes, which we refer to as power dynamics.</p><p>&#8226; Proposing a new methodology for designing power management systems based only on recent power behavior. &#8226; Making all scripts, code, and data available as open source, so others can test or extend these results.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">RELATED WORK</head><p>Power and energy have become first-order concerns for computer system design. Therefore, power management has been proposed at both node and cluster-level. We first briefly cover node-level designs before reviewing cluster-level solutions (the topic of this paper). Cluster-level solutions, of course, require some node-level support <ref type="bibr">[4]</ref>. Several OS projects add support for node-level power monitoring and energy allocation <ref type="bibr">[11,</ref><ref type="bibr">17,</ref><ref type="bibr">21,</ref><ref type="bibr">36,</ref><ref type="bibr">41,</ref><ref type="bibr">42,</ref><ref type="bibr">44,</ref><ref type="bibr">48,</ref><ref type="bibr">52]</ref>.</p><p>Several studies profile applications or hardware-level metrics to improve energy efficiency <ref type="bibr">[16,</ref><ref type="bibr">31]</ref>. To support setting power limits, Intel's SandyBridge and later processors provide power management in hardware <ref type="bibr">[6]</ref>. RAPL provides an interface for specifying a power limit and then keeps the processor at or below that limit.</p><p>As we enter the exascale era, the United States Department of Energy (DoE) is anticipating a cluster-level power envelope of 10s of Megawatts (MW) <ref type="bibr">[30]</ref>. In this scenario, it is anticipated that large-scale systems for supercomputing and datacenters will be overprovisioned; that is, it will not be possible to power each server at its TDP (Thermal Design Power) while still respecting the cluster-level budget. For example, prior work proposes improving performance for HPC systems by overprovisioning and using RAPL to set node-level power limits below TDP <ref type="bibr">[33]</ref>. In industry, Google has deployed overprovisioned systems worldwide for several years <ref type="bibr">[37]</ref>. The overprovisioned system has become a practical and critical approach to addressing tight cluster-level power limits in current and future cloud clusters. As introduced in Section 1, prior works on cluster-level power management systems can be generally separated into three categories and this section covers each.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1">Constant Allocation Systems</head><p>Some early works in cluster-level power management explore constant allocation systems that set a static power cap for each node in the system <ref type="bibr">[12,</ref><ref type="bibr">35]</ref>. Patki et al. <ref type="bibr">[33]</ref> first explored application scalability in a strictly overprovisioned system with a constant allocation system using RAPL to set node-level power limits. Sarood et al. <ref type="bibr">[40]</ref> extended this system to include power limits on DRAM. Constant allocation systems assure cluster-level power limits and are easy to implement (given RAPL's hardware support), but using the same peak power limit for all nodes leads to sub-optimal application performance, as nodes with compute-heavy workloads run at the limits, and other nodes run below their limits, making poor use of the available power.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2">Model-based Systems</head><p>Researchers quickly realized the limits of constant allocation and turned to solutions that dynamically allocate power. A prominent class of model-based systems uses machine learning to make decisions on how to set node-level caps to meet cluster-wide budgets. For example, Lee et al. <ref type="bibr">[26]</ref> models I/O behavior to dynamically adjust per-node power budgets by shifting power from I/O bound nodes to compute bound ones. The idea of power management via a workload characterization model has been studied within various types of services, including online data-intensive services <ref type="bibr">[29]</ref>, parallel workloads <ref type="bibr">[19]</ref>, non-interactive workloads <ref type="bibr">[10]</ref>, visualization workloads <ref type="bibr">[5]</ref>, and microservices <ref type="bibr">[18]</ref>. Several works build job performance models to manage an isolated component or coordinate multiple components <ref type="bibr">[13,</ref><ref type="bibr">14,</ref><ref type="bibr">25,</ref><ref type="bibr">27,</ref><ref type="bibr">39]</ref>. Machine learning models are also widely studied for power management. The PowerShift project models coupled applications o ine to make power cap decisions based on its model's predictions <ref type="bibr">[54]</ref>. The PoDD project upgrades this idea by building machine learning models online <ref type="bibr">[55]</ref>. The PANN project uses neural networks to dynamically allocate power in overprovisioned systems <ref type="bibr">[50]</ref>. Some other works build feedback-based models to improve power efficiency. Wang et al. <ref type="bibr">[47]</ref> establishes a feedback control framework to improve power efficiency with DVFS. Several feedback-based systems are proposed to adaptively apply power capping and maximize performance <ref type="bibr">[15,</ref><ref type="bibr">28,</ref><ref type="bibr">45,</ref><ref type="bibr">53]</ref>. Model-based systems generally achieve near-optimal performance under the assumption that their models have sufficient training data. Once trained, their optimality (and sometimes even ability to meet the power budgets) is dependent on the assumption that runtime workloads are drawn from the same distribution as their training data. If the architecture or workloads change significantly from this training set, the models will no longer maximize performance, and in some cases might fail to maintain the power budget.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3">Stateless Model-free Systems</head><p>Stateless model-free systems eliminate the dependence on a welltrained model. SLURM is a widely used cluster job and resource management system that incorporates a power management plugin. SLURM's power management system is a stateless system that maintains a cluster-wide power limit by setting node-level power caps using only the current power measurements <ref type="bibr">[51]</ref>. A framework based on SLURM provides safe hardware overprovisioning on a 965-node cluster at Kyushu University <ref type="bibr">[38]</ref>. The Argo project incorporates a conclave-node two-level stateless power management system <ref type="bibr">[7]</ref><ref type="bibr">[8]</ref><ref type="bibr">[9]</ref><ref type="bibr">34]</ref>. The Fukagu supercomputer incorporates a core retention mode to turn off idle nodes based on current processes and improve energy efficiency <ref type="bibr">[24]</ref>. These systems demonstrate the practical benefits of approaches that eschew models. However, stateless model-free systems make power assignments using only current power usage, forcing a greedy optimization strategy. They lack the ability to predict future power usage and escape local optima, providing sub-optimal performance, especially when workloads transition through phases of high-and low-power needs.</p><p>To the best of our knowledge, only model-free systems are deployed in production clusters. As of June 2022, SLURM is the default resource and job manager for 5 supercomputers in the top 10 of the Top 500 list, including Frontier, LUMI, Sunway TaihuLight, Perlmutter, and Tianhe-2A <ref type="bibr">[1]</ref>. Fukagu still remains as the second top supercomputer in the world. Therefore this paper takes the position that a power management system that can be applied in real-world systems should not rely on a model that introduces a high deployment cost and a reliance on well-calibrated training data. Thus, this paper explores a model-free power management system that can escape local optima by incorporating power dynamics.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">POWER MANAGEMENT WITH DYNAMICS</head><p>Overprovisioned systems must divide a cluster-wide power budget among individual nodes. We refer to the maximum power that a node could draw as its power demand. Generally, meeting a node's power demand will result in higher performance; compute-bound nodes tend to have high power demands, while memory-and IObound nodes tend to have lower demands. So, a power manager should meet a node's demands whenever possible. However, sometimes there is not sufficient budget to meet all nodes' demands simultaneously. In this case we would like to ensure each node is equally penalized so the power budget is fairly distributed according to demands. We note that this is a novel definition of fairness-instead of evenly distributing power among units, we seek to distribute power proportional to each node's demands. In other words, we define fairness based on a node's power demand rather than its absolute power.</p><p>Although it is difficult to quantify how much a single node's power demand is capped at a certain time, we can define a more general term of how a node's power demand is satisfied throughout the lifetime of a workload, as the node's satisfaction. Equation <ref type="formula">1</ref>shows the definition of satisfaction of Node n. Then we can further define the fairness of allocating the power budget to two nodes. As shown in Equation <ref type="formula">2</ref>, the fairness of Node &#287; and &#288; is unity minus the absolute difference between the satisfaction of &#287; and &#288;. The fairness is between 0 and 1, and the higher the fairness is, the two nodes are getting closer percentages of the power budget they demand. As will be discussed later in section 6, a higher fairness will generally result in a higher harmonic mean performance of different workloads.</p><p>&#297;&#279;&#298;&#287;&#297; &#284;&#279;&#281;&#298;&#287;&#293;&#292;(&#292;) = average power under current cap average power under no cap (1)</p><p>While conceptually simple, meeting power demands fairly is challenging in practice for two reasons: (1) the true demand cannot be measured directly as the system might be capped and (2) the demands vary dynamically, so even once the demand is known at some point, it is not clear what it will be in the future. Because different machines may support different power management scales (cores, sockets, or nodes), in the following text we refer to each part of a machine that supports power capping individually as a unit.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Fluctuating Power Demands</head><p>Power demand is continually changing. At any time, a unit's power demand depends on its application workload and even different phases within an application. Figure <ref type="figure">2</ref> shows three Apache Spark applications-LDA, Bayes, and LR-and their power over time, executed separately without power limit. We refer to the power consumption that an application would exhibit without a cap as its power demand. From the figures we summarize three observations about these applications' power dynamics; i.e., their changes in power demand over time.</p><p>&#8226; Power phase duration is diverse. Applications put different computing loads on the system at different times, resulting in power phases. In Figure <ref type="figure">2a</ref>, LDA has a long phase  ranging from second 0 to 125. Figure <ref type="figure">2c</ref> shows LR has many phases shorter than 10 seconds, for example from second 140 to 149. Figure <ref type="figure">2b</ref> shows phase durations in between these extremes, but each phase has a different length. One longer duration ranges from second 50 to 75, but a shorter one lasts only 13 seconds, from second 235 to 248. &#8226; Peak power at each phase is diverse. In Figure <ref type="figure">2b</ref>, Bayes's peak power is different for different phases. For example, from second 50 to 75, power increases to 165W, but from second 175 to 192, the peak power is only 110W. &#8226; The first derivative of power is diverse. When power changes, its first derivative also differs based on the current computing loads. In Figure <ref type="figure">2a</ref>, power increases from 20W to 160W in 3 seconds starting from second 3, but decreases slowly from 160W to 70W in 20 seconds starting from second 97. In Figure <ref type="figure">2b</ref>, changing speeds are different in different phases: from second 50 to 75, power both increases and decreases quickly, but from second 195 to 225, power both increases and decreases slowly.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Power Management Challenges</head><p>Under a system-wide power budget, the power dynamics observed above lead to two power management challenges:</p><p>&#8226; Matching the power demands and the budget through application phases. To respect all units' demands fairly, the power management system should not over or under allocate the budget to any unit. Under-allocating limits that unit's performance, while over-allocating means less budget is available for other units. Yet the diversity in both peak power and power derivatives makes it hard to match the allocation to demands fairly. &#8226; Handling high-frequency power changes. Power management decisions take time. But the diverse power phase duration can be too short for the system to react. For example, in Figure <ref type="figure">2c</ref> the periods of high and low power usage </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3">Power Dynamics</head><p>A key observation in this work is that power changes with inertia; power changes are locally predictable, meaning we can estimate near-future power changes from recent power history. We define the components in the power history that are useful for this estimation as power dynamics and identify two key components: the first derivative and the frequency. Relevant symbols and terminology are included in Table <ref type="table">1</ref>.</p><p>The estimation of the first derivative is as defined in equation 3. It indicates the direction and magnitude of power changes. If it is positive, power is increasing, and vice versa. The absolute value of the first derivative indicates the speed of change. Though it does not allow us to predict the exact power consumption, it implies the direction that the power is most likely to go. If power is increasing quickly, power will likely either increase or stay high in the near term. Similarly, if power is decreasing quickly, we can predict the unit will not need more power budget in the near term.</p><p>But such prediction can be wrong when the frequency change is high. Therefore the frequency is another important element in the power dynamics. The frequency is inferred from the number of power peaks in the recent past. The frequency may be too fast for the power management system to keep up with. In this case, it is important to know the reaction speed of the power manager, and have a separate power allocation mechanism that handles the case when the power change frequency is faster than the power management system's reaction.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">DPS DESIGN</head><p>DPS is a model-free stateful power manager. It builds off of prior stateless approaches, but distinguishes itself by taking power dynamics into consideration and attaching a priority to each powerallocation unit based on the observed dynamics.</p><p>Power Caps Temporary Cap Allocation Result Estimated Power History Queue Priority Module Priority Array Cap Readjusting Module Stateless Module Kalman Filter Figure 3: DPS control system design 4.1 Design Principles DPS has two fundamental design goals: overhead minimization and performance maximization. Overhead includes both operation and deployment. The operating overhead is the cost of making decisions, including data collection, signal transition, power cap setting, etc. The deployment overhead is the preparation cost for the system to operate, for model-based systems, this can be large. In summary, the goals of low overhead (deployment and operational) and high performance lead to the following design principles: &#8226; Minimum load on applications. The system should have minimal impact on application performance, including the cost of monitoring and setting power, communication, etc. &#8226; No initial profiling or data-driven model building. A model of any kind that involves profiling or training data will dramatically increase overhead compared to a model-free system. Instead of relying on such a pre-trained model to predict the power demand, DPS incorporates power dynamics to make decisions on power caps. &#8226; Only power usage data is involved. Making decisions based on any metric other than power usage requires additional operational and deployment overhead. DPS thus uses only unit-level power consumption data.</p><p>&#8226; Ensures the same lower-bound performance as constant allocation. For any power management system that makes dynamic decisions, there is a risk that it may make worse decisions than simply dividing the cluster-wide power budget equally for each unit, resulting in a lower fairness than what constant allocation guarantees. Indeed, prior work can reduce performance compared to constant allocation in certain scenarios (see Section 6). However, DPS ensures the same lower-bound performance as constant allocation because it incorporates power dynamics, so it knows when power behavior will be poorly suited to dynamic reallocation and it switches to a constant approach.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2">Hardware Support: RAPL in DPS</head><p>DPS interacts with the hardware in 2 ways, reading power usage data and setting power caps. Both abilities are supported by Intel's RAPL system <ref type="bibr">[6]</ref>. RAPL observes various low-level hardware events and estimates energy consumption based on event counters. Still, the accuracy of RAPL's energy readings is shown to be high and the overhead is low <ref type="bibr">[23]</ref>.</p><p>Although DPS uses RAPL to read power and set the power caps, it is not tied to the RAPL interface. DPS only needs to interact with the hardware in these two ways and it can be implemented with any interface with these functionalities.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3">DPS Control System</head><p>DPS consists of a server on a central node and clients on each computing node (similar to SLURM's power management plugin). Each client is responsible for reading power, setting caps, and communicating with the server for all the power capping units on the node. The control system is excluded from the client to minimize operating overhead. The server keeps a list of all the power capping units, including their current power caps, estimated power histories, and priorities, which we will go into detail about later in this section. The control system on the server, as shown in Figure <ref type="figure">3</ref>, consists of 4 modules and two important global data sets. At each time step, the control system receives current power usage data from all computing nodes. The stateless module takes in current power and outputs a temporary cap allocation decision. The priority module takes in the power history and updates the priorities attached to all units. Although RAPL has been verified by previous work to deliver reliably high accuracy, noise exists in power usage traces and we further assume pessimistically that RAPL bares certain measurement noise. Therefore we assume the exact power is not known, but is a hidden variable that must be estimated from these noisy measurements. To address such noisy measurements, DPS incorporates a Kalman Filter that takes the (potentially noisy) power measurements and updates the estimated power history, which stores the recent power dynamics for each unit. This power history is then fed into the priority module. The cap readjusting module finally takes the priorities and the caps produced by the stateless module and outputs the cap decisions, internally modifying the caps set by the stateless system based on the priorities. The control system then sends the new caps to all computing units. This section introduces each individual module and how the control system incorporates power dynamics to provide improved power cap allocation compared to a stateless system, without requiring any additional measurements or models.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3.1">Stateless Module.</head><p>As indicated by the name, this module is a stateless power management system, which takes in the current power and decides the power caps only based on the current power. This cap result serves as a temporary basis to be readjusted by the cap resetting module. As shown in Algorithm 1, the stateless module is a Multiplicative-Increase-Multiplicative-Decrease (MIMD) based controller, inspired by SLURM's power management system <ref type="bibr">[51]</ref>. It maintains two thresholds for increasing and decreasing the power cap respectively, set at percentages of the current cap. If a unit's current power is below the decreasing threshold, its power cap will be decreased by a percentage or to its current power. If the current power of a unit is above the increasing threshold, its power cap will be increased by a percentage or by what is left in the cluster-wide budget. The cap-increasing loop is done in a random manner so that no unit has priority in increasing the cap over others.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3.2">Kalman</head><p>Filter. The Kalman Filter (KF) produces an estimation of a joint probability distribution over a single measurement for each time frame by taking unknown noise and variance as other variables. We use the version of a 1-dimensional Kalman Filter in the standard formulation that renders minimum computing loads while providing reliable estimations <ref type="bibr">[49]</ref>. More specifically in DPS, at each time step, the KF module calculates the Kalman gain based on the // power: list of current power consumption of all units // cap: list of current power cap of all units // set_flag: list of flags for all units of whether the cap is changed</p><p>2 global power, cap, set_flag; // Initialize set_flag to 0 3 for &#8712; do 4 _ [ ] &#8592; 0 ; // First loop: decrease caps 5 for &#8712; do 6 if [ ] &lt; [ ] * _ &#8462; &#8462; then 7 [ ] &#8592; max( [ ], [ ] * _ ) ; 8 _ [ ] &#8592; 0; // Second loop: increase caps in random order 9 _ &#8592; _ -sum(cap); 10 for &#8712; random( ) do 11 if [ ] &gt; [ ] * _ &#8462; &#8462; then 12 &#8592; min( [ ] * _ , _ ); 13 [ ] &#8592; ; 14 _ &#8592; _ -;</p><p>estimation uncertainty, which is updated after each estimation, and produces an estimation of current power. The estimation will be pushed into the global estimated power history queue.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3.3">Priority Module.</head><p>The priority module estimates the two properties of power dynamics, the frequency and the first derivative, and attaches a priority of either high or low to each unit. As shown in algorithm 2, the priority module keeps track of the changing frequency of units' power phases. At each time step, the module first identifies the high-frequency units and attaches high priorities to them. For those who have already been identified as high-frequency units, the module checks both the number of prominent peaks <ref type="bibr">[32]</ref> and the standard deviation over the power history. If the two measures are both below their thresholds, they are identified as low-frequency units. The additional check on the standard deviation is because of the uncertainty in the power and the fixed threshold in calculating the number of prominent peaks. Sometimes the number of prominent peaks can fall below the threshold yet power is still changing with high frequency, the standard deviation identifies such scenarios.</p><p>After attaching the priority according to the frequency, the module estimates the first derivative for all units that are identified as low frequency. Two thresholds are involved in classifying the first derivative, one positive and one negative. If the first derivative is above the positive threshold, a high priority is attached. If it is below the negative threshold, a low priority is attached. If it is in between, the unit's current priority is not changed. The positive threshold detects fast power increases, and the negative threshold detects fast decreases. The reason behind using two thresholds is Algorithm 2: Priority Module</p><p>// duration_history: list of duration of each power reading // high_freq_flags: list of flags of whether the unit is demonstrating high-frequency power changes 2 global power_history, duration_history, high_freq_flags, priority_arr</p><p>&#8462; then 21 _ [ ] &#8592; 22 continue Algorithm 3: Cap Readjusting Module: Restore 1 Function restore( _ &#8462; &#8462; ): 2 global power, cap, set_flag // Restore all caps to the initial cap if no unit is consuming high power 3 _ &#8592; 4 for &#8712; do 5 if [ ] &gt; _ * _ &#8462; &#8462; then 6 _ &#8592; 7 break 8 if _ then 9 for &#8712; do 10 [ ] &#8592; _ 11 _ [ ] &#8592;</p><p>that after the power change, the unit's priority should be kept unchanged until the power changes again. For example, if a unit is set as high-priority when its power increases, it should be considered as high-priority until tasks are finished and power decreases.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3.4">Cap Readjusting Module.</head><p>After the Stateless Module makes a temporary cap allocation decision, some of the cluster-wide power budget could be unassigned. The cap readjusting module allocates this unassigned budget to all the high-priority units. If there is no power budget left after the Stateless Module's adjustment, this module instead readjusts the caps of all the high-priority units to force a relatively high fairness between all units and fix any major unfairness due to the Stateless Module's random ordering. However, if there are no large loads in the whole system at all, and every unit's power demand is lower than the constant cap (power budget evenly divided among all units), this module will ignore all previous decisions and set each unit's cap to the constant cap. Such restoration makes sure there is headroom for any unit's incoming tasks. Therefore the Cap Readjusting Module is separated into restoring and readjusting. Algorithm 3 shows that the restoring part of this module checks if the current power usage of each unit is under a threshold and restores the cap of each unit if so. The boolean flag indicating whether restoration is made is passed to the readjusting module.</p><p>As shown in algorithm 4, the readjusting part first checks the boolean flag passed by the restoring part. If all caps are already restored, this part will be skipped at once. If not, then it calculates the remaining unassigned budget and readjusts the caps accordingly.</p><p>If there is some remaining unassigned budget, the module will assign the budget to all high-priority units in a way that units with lower caps currently will get allocated more additional budget. Such an allocation decision is made considering two aspects. First, high-priority units with lower caps will need more budget for them to reach peak power compared to those with higher caps. Second, if these units are increasing power in order, units with lower caps will eventually be penalized harder if they are not allocated more additional budget at this time step.</p><p>On the other hand, if there is no remaining unassigned budget, the module will readjust the caps of all high-priority units in case units increasing power in order but capped are not penalized equally. The module leaves low-priority units unchanged and equalizes the caps of all high-priority units. Such a decision not only limits all high-priority units to the same power cap, but also ensures that this power cap is no lower than the constant cap, because low-priority units cannot increase power and get allocated with additional budgets before this time step. Therefore, the Cap Readjusting Module ensures the same lower-bound performance as the constant allocation.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4">Power Dynamics Address Challenges</head><p>DPS includes all necessary mechanisms to tackle the two power management challenges identified in Section 3.2:</p><p>&#8226; Matching the power demands and the budget through application phases. When a unit quickly increases poweri.e., a large positive first derivative-it is identified as high priority. By assigning extra power to such units, the Cap Readjusting Module ensures that they always get a fair allocation in anticipation of their future demands. When clusterwide power demand exceeds budget, the Cap Readjusting Module restores all high-priority units' power caps to the same level. Since it is impossible for a model-free system to</p><p>Algorithm 4: Cap Readjusting Module: Readjust 1 Function readjust( _ ): 2 global power, cap, set_flag, priority 3 if _ then return 4 5 _ &#8592; _ -sum(cap) 6 if _ &gt; 0 then // Assign all the rest budge if any left 7 &#8462; &#8462;_ _ &#8592; Dictionary() 8 for &#8712; do 9 if [ ] then 10 &#8462; &#8462;_ _ [ ] &#8592; [ ] 11 _&#8462; &#8462; &#8592;sum(&#8462; &#8462;_ _ .values()) 12 for &#8712; [ ].keys() do 13 &#8462; &#8462;_ _ [ ] &#8592; _&#8462; &#8462;/&#8462; &#8462;_ _ [ ] 14 &#8592;sum(&#8462; &#8462;_ _ .values()) 15 for &#8712; [ ].keys() do 16 [ ] &#8592; min( _ _ , _ * &#8462; &#8462;_ _ [ ]/ ) 17 _ [ ] &#8592; 18 else // Readjust all high-priority units 19 _&#8462; &#8462; &#8592; 0 20 _&#8462; &#8462; &#8592; 0 21 for &#8712; do 22 if [ ] then 23 _&#8462; &#8462; &#8592; _&#8462; &#8462; + [ ] 24 _&#8462; &#8462; &#8592; _&#8462; &#8462; + 1 25 _ &#8592; _&#8462; &#8462;/ _&#8462; &#8462; 26 for &#8712; do 27 if [ ] then 28 [ ] &#8592; _ 29 _ [ ] &#8592;</p><p>predict the exact fairness at any moment, DPS assumes that all high-priority units demand the highest power possible. While it does not guarantee that the maximum fairness is achieved, it avoids the situation that a high-priority unit's power budget is aggressively stripped by another one, resulting in low satisfaction for a high-priority unit, and forces a relatively high instantaneous fairness. &#8226; Handling high-frequency power changes. DPS identifies high-frequency units as high priority. By assuming they are in need of extra power, DPS assures their performance does not suffer, even when it cannot react to the speed of their phase changes. This approach guarantees the same lowerbound performance as constant allocation, where prior work (that does not account for these high-frequency changes) can easily produce worse results than constant allocation (as we will see in the evaluation section).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">EXPERIMENTAL SETUP 5.1 Hardware Evaluation Platform</head><p>We use the Chameleon cloud <ref type="bibr">[22]</ref>. Each experiment runs on a Server node and ten client nodes. The client nodes include two clusters. Each node is a dual-socket system running Ubuntu 18.04 (GNU/Linux 5.4) with 2 Intel(R) Xeon(R) Gold 6240 processors, 192 GB of RAM, and hyperthreads. Each socket has 24 cores/48 threads and a 20 MB last-level cache. TurboBoost is turned on and the CPU frequency governor is set in performance mode. The servers support power capping at the granularity of sockets, with a Thermal Dynamic Power (TDP) of 165W per socket. For all the experiments in this paper, a cluster-wise 66.7% power limit is enforced.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2">Data Analytics and HPC Benchmarks</head><p>We test 7 widely-used machine learning applications (written in Apache Spark) from the HiBench Benchmark Suite <ref type="bibr">[20]</ref>, and 8 compute-intensive HPC benchmarks from the NAS Parallel Benchmark Suite (NPB) <ref type="bibr">[2]</ref>. We also use 4 micro applications from the HiBench Benchmark Suite that consume much less power. Spark workload specs are listed in Table <ref type="table">2</ref> and the NPB workload specs are listed in Table <ref type="table">4</ref>. Spark workloads are labeled as mid-power if the time portion above 110W is above 10%, and they are labeled as high-power if more than 2/3 of the time power is above 110W. Low-power workloads are executed with 1 Spark executor with 8 cores. The mid-power and high-power workloads are executed with 48 Spark executors with 8 cores, taking up all cores (including virtual cores) on the worker nodes. All NPB workloads are considered as high-power as over 99% of the time power is above 110W. The thread setting for the NPB workloads is the maximum allowed.</p><p>To test the power manager's ability to adapt to a wide range of situations, we create several different workload profiles by coexecuting applications with differing power demands. Spark workloads have distinct power phases while NPB workloads consistently consume high power. Therefore, we experiment with the following three benchmark setups:</p><p>&#8226; Spark low utility: mid-power and high-power paired with low-power workloads, representing total utility below 50%. &#8226; Spark high utility: A high-power workload paired with mid-power workloads, with average utility above 50%. &#8226; Spark NPB: mid-power and high-power Spark workloads paired with NPB workloads, representing high utility and tight power demands.</p><p>In the first group we compare DPS to constant allocation, SLURM's power management plugin, and an oracle. In the second and third group no low-power workloads are included, and the cluster-wide power demands often exceed the power budget. Meanwhile, the variation ins Spark makes the instantaneous power demand at a specific time uncertain. Altogether, implementing an oracle in such cases is extremely difficult. Therefore we only compare DPS to constant allocation and the SLURM plugin in this group.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6">RESULTS AND EVALUATIONS</head><p>We report results for all scenarios described above. We compare a number of power managers based on their harmonic mean performance improvement over constant allocation. For reference, Tables  2 and 4 report the mean latency of each workload under the constant allocation scheme (each socket gets 110 W power cap). Although experiments with multiple power limits lower than the TDP can provide a more comprehensive evaluation of DPS, multiple runs of each benchmark workload are needed to diminish the performance variance and the benchmark workloads are time-consuming. We repeated at least 10 runs for each workload and spent over 1,000 hours collecting data for experiments with one power limit. We note that in all cases (and for all power managers) the power caps are respected. We therefore focus the evaluation solely on the difference in performance.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.1">Performance: Spark Low Utility Workloads</head><p>When a mid-power workload is paired with a low-power workload, cluster-wide power demands rarely exceed the budget. As shown in Figure <ref type="figure">4</ref>, both DPS and the oracle improve over constant allocation by 5% to 8% on average. The performance improvements differ between workloads, though. DPS provides a maximum performance improvement for GMM at 17.6%. SLURM also improves performance for 5 workloads to a similar extent as DPS and the oracle, except for Linear and LR, which both have high-frequency power phases. LR's performance is decreased by 4.0% with SLURM. The performance difference between DPS and SLURM mainly results from DPS's ability to identify and handle these high-frequency changes.</p><p>For two workloads, LDA and GMM, the oracle doesn't provide maximum performance. In fact, the oracle doesn't provide maximum performance at all times for any workload. The two reasons behind this are first, cluster-wide power demands rarely exceed the budget and DPS and SLURM are able to provide close-to-oracle performance as long as they match power caps to power demands fast enough, and second, the Spark workloads demonstrate such variable performance between different runs under the same execution condition that the average performance of DPS and SLURM may exceed that of the oracle.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.2">Performance: Spark High Utility Workloads</head><p>When pairing mid-power and high-power Spark workloads, the cluster-wide power demands often exceed the power budget. In such cases, the performance reflects not only how fast the power management system reacts to demand changes but how both workloads are penalized when the power budget is exceeded.</p><p>Figure <ref type="figure">5</ref> (a) shows the harmonic mean of each mid-power workload when it is paired with a high-power workload. DPS delivers either the same performance or improvements up to 5.2% compared to the constant allocation. SLURM penalizes all workloads except GMM. For workloads with long power phases, Kmeans, LDA, and RF, SLURM slows them down by from 8.9% to 14.3%. The workloads with high frequencies, Linear and LR, are penalized by up to 7.7%.</p><p>Figure <ref type="figure">5</ref> (b) shows the harmonic mean of the performance of each workload and its paired GMM executions. DPS improves the mean performance of both workloads or ensures the lower-bound performance all the time, but the mean performance of SLURM is up to 8.1% below the constant allocation baseline. DPS outperforms SLUM by up to 22.76% at maximum for LDA. While SLURM always prioritizes power allocation to GMM and penalizes the other paired workload, DPS makes sure both workloads are equally penalized. By taking power from GMM and allocating it to the other workloads when necessary, DPS improves performance for both workloads and ensures the same lower-bound performance as constant allocation.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.3">Performance: Spark &amp; NPB Workloads</head><p>Spark workloads have phases but the NPB workloads always consume high power. That is to say, when a Spark workload is paired with an NPB workload, they compete for power budget whenever the Spark workload is not idle. Therefore these performance results reflect how well the managers balance a limited power budget.</p><p>The Spark NPB group runs Spark workloads on one cluster and NPB workloads on another, including all exhaustive pairs of midpower and high-power Spark workloads and the NPB Workloads. Among all the pairs, DPS always outperforms SLURM by a range from 1.7% to 21.3%. Figure <ref type="figure">6</ref> (a) shows the result grouped by the Spark workloads. For each workload in the figure, the two bars represent the harmonic mean performance gains of the paired workloads managed by DPS and SLURM respectively, normalized to the constant allocation at 110W per socket. While performance differs between different workloads, DPS improves the performance of all the workloads. On the contrary, SLURM decreases the performance of all workloads but Linear and LR. Since the data in the Kmeans LDA Linear LR Bayes RF GMM Hmean (a) Application's performance when paired with GMM 20.1 0.0 0.1 Kmeans LDA Linear LR Bayes RF GMM Hmean (b) Hmean performance of the application and its paired GMM 20.1 0.0 0.1 Speedup normalized to performance under Constant 110W cap DPS SLURM Figure 5: Normalized hmean performance gain of the Spark high utility group. kmeans lda linear lr bayes rf gmm Hmean (a) Hmean of paired applications across Spark applications 20.05 0.00 0.05 bt cg ep ft is lu mg sp Hmean (b) Hmean of paired applications across NPB applications 20.05 0.00 0.05 Speedup normalized to performance under Constant 110W cap DPS SLURM Figure 6: Normalized hmean application performance gain of the Spark NPB group.</p><p>figure represents the harmonic mean between the Spark workload and NPB workloads, it shows that the performance improvement of the NPB workloads and the performance decline of the Spark workloads under SLURM leads to an overall performance drop. For example, for the pair of GMM and EP, SLURM results in a 30.3% performance decline for GMM and 27.8% performance increase for EP, altogether resulting a harmonic mean 9.8% performance decline. DPS, on the other hand, yields 3.9% and 5.2% performance increases for GMM and EP respectively, and a harmonic mean 4.6% performance improvement. DPS outperforms SLURM on Kmeans by a max 12.4% and a min 1.9% on Linear, and an overall mean 8.0%.  shows the result grouped by the NPB workloads. Similar to grouping by Spark workloads, DPS improves performance for all NPB workloads, and SLURM decreases performance for all workloads except LU. The performance speedup also varies among NPB workloads. For short-duration NPB workloads, such as FT and EP, when paired with long-duration Spark workloads, such as Kmeans and GMM, multiple runs are in need to match one run of the Spark workload. Although NPB workloads consistently demand high power, the short period between workloads makes each execution look like a power phase. Given a long range of time, the short-duration NPB workloads do not always demand high power. Therefore SLURM delivers better performance with shortduration NPB workloads. In general, DPS outperforms SLURM by a minimum of 4.9% on IS and a maximum 12.2% on SP.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.4">Fairness Analysis</head><p>For the Spark Low Utility workloads, DPS, SLURM, and the oracle achieve similar fairness, close to 1. This is because there is generally sufficient power to cover all power demands. Yet for the Spark High Utility workloads, DPS achieves a mean 0.97 fairness while SLURM achieves only 0.75 mean fairness. Figure <ref type="figure">7</ref> shows the distribution of the workload fairness under DPS and SLURM. More specifically for each workload, DPS gets a fairness from 10.9% to 43.6% higher than that of SLURM. For the Spark &amp; NPB workloads, where fairness has the most influence on the harmonic mean performance, DPS and SLURM achieve a mean 0.96% and 0.71% fairness respectively. Workload-wise, DPS always gets a higher fairness than SLURM, from 0.2% to 77.5%. We observe a general positive correlation between fairness and harmonic mean performance.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.5">Overhead Analysis</head><p>All above reported performance data is real measurements on systems running either DPS or SLURM. The performance data includes the overhead of the power management systems themselves. DPS and SLURM are implemented using the same Internet communication protocol, while Constant Allocation and Oracle do not have overhead since they do not change the power caps.</p><p>As discussed in section 4, DPS is designed with multiple modules among which is a stateless module. The stateless module has theoretically the same overhead as SLURM. Apart from that, the overhead of the other three modules also scales by a constant cost. As DPS keeps a short range of estimated power history of each socket, default 20 time steps, the power history can easily fit in the last-level cache even scaled to tens of thousands of nodes, taking up several megabytes. Therefore IO is not bottle-necking the turnaround time of DPS and we observe that it incurs less than 0.5% average CPU usage on the controller node with 10 client nodes. In fact, we observe that communication using the BSD socket interface takes up most of the turnaround time. The network latency is of tens of microseconds. Scaling to 1,000 nodes would only incur a several millisecond latency, which is little compared to a onesecond decision loop time. Since only 3 bytes are exchanged per request with each node, scaling to even 1M nodes, requiring a network traffic size of 3MB, would put a little burden on a network bandwidth in GB/s. Such overhead is shared among all centralized power management systems and consistent with SLURM and prior work <ref type="bibr">[43,</ref><ref type="bibr">55]</ref>. Therefore we claim that DPS has negligibly more operating overhead than SLURM, a stateless system, and the controller could handle tens of thousands of nodes with no bottleneck in computation or network.</p><p>Different from model-based systems, DPS is ready to operate once deployed on a cluster. It needs at most the time of the range of estimated power history to make desired decisions, which is defaulted at 20 seconds. SLURM, on the other hand, sets power caps based on instantaneous power, so it starts to operate functionally as soon as deployed on a cluster. However, considering 20 seconds are negligible compared to the lifetime of a cluster, we claim that DPS has negligibly more deployment overhead than SLURM.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.6">Summary of Key Results</head><p>DPS ensures the same lower-bound performance as the Constant Allocation. In low-utility scenarios where cluster-wide power demands rarely exceed the power budget, DPS yields similar performance to SLURM and an oracle. In high-utility scenarios where cluster-wide power demands often, or even always exceed the power budget, DPS outperforms SLURM from 1.7% to 21.3%. Other work on model-based approaches reports a range of 14% to 22% improvement compared to SLURM <ref type="bibr">[55]</ref>. DPS yields competitive performance improvement without requiring a model.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7">CONCLUSION</head><p>This paper presents DPS, a model-free stateful power management system that improves application performance in an overprovisioned system. DPS contributes a new methodology for designing a power management system by analyzing power dynamics. It explores a promising middle ground between prior work on modelbased systems, which require an expensive and error-prone model but yields very high performance, and model-free stateless systems, which make decisions based solely on instantaneous power usage.</p><p>We hope this inspires people to further explore the use of power dynamics and the temporal relationships residing in power usage data, and achieve performance even closer to the model-based systems.</p><p>Appendix: Artifact Description/Artifact Evaluation ARTIFACT DOI 10.5281/zenodo.8066467</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>ARTIFACT IDENTIFICATION</head><p>This paper proposes a power management system, named DPS, that improves undergoing application performance while respecting a cluster-wide power budget without relying on a model. DPS interacts with the hardware and assumes no knowledge of any application. The artifact includes a Python package of DPS which can be imported to deploy or test on any workload 1 . The package also includes an implementation of the power plugin for the SLURM workload manager, and an oracle as described in section 5.2. The experiments of this paper are conducted with the HiBench and the NAS Parallel Benchmark Suites. The provided artifact also includes a script to automatically reproduce all experiments in this paper.</p><p>In addition to the above, we include scripts to install and configure all required software packages, and produce plots for all figures in the paper. A detailed README.md, describing how to run experiments and reproduce each figure, is included in the description.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>REPRODUCIBILITY OF EXPERIMENTS</head><p>The artifact includes a setup script that needs to be executed at the beginning to establish the connection between nodes and install all the required benchmarks and tools. Next, a script is provided to run experiments on two clusters with any workload pair as described in section 5.2, under any power cap as long as it respects the hardware specification. We also provide a script to automatically run all workload pairs using the configuration mentioned in this paper. The script will run four main experiments.</p><p>&#8226; Constant allocation Each benchmark workload will be tested under a constant 110W power cap per socket. This experiment will provide the baseline throughput time. &#8226; Low utility Mid-power and high-power Spark workloads will be executed when paired with low-power Spark workloads. 28 pairs of workloads will be tested. The results of this experiment will be used to generate a similar plot as Figure <ref type="figure">4</ref>.</p><p>&#8226; High utility Mid-power and high-power Spark workloads will be paired with each other and executed. The results of 49 pairs of workloads in this experiment will be used to generate a similar plot as Figure <ref type="figure">5</ref>. &#8226; Spark NPB Mid-power and high-power Spark workloads will be paired with NPB workloads. The results of this experiment include 56 pairs of workloads and will be used to generate a similar plot as Figure <ref type="figure">6</ref>.</p><p>Once the experiments complete, the results can be plotted using the provided plotting scripts. Given the performance variance in Spark workloads, Spark workload in each pair is repeated at least 10 times. Consequently, the total execution time of the experimental runs is over 1,000 hours. Once all pairs are executed, the experimental results can be separated by the power management systems tested, Constant Allocation, Oracle, SLURM, and DPS. The results include the start time, end time, and throughput time of each workload. The throughput time is the performance metric we use to plot figures in this paper. The harmonic mean throughput time of each workload in the Constant Allocation group will be the baseline. The speedup of a workload in a pair in another group, for example in Figure <ref type="figure">5</ref>(a), is calculated as the baseline divided by the workload's harmonic mean throughput time in that group. When several pairs are grouped, for example in Figure <ref type="figure">4</ref>, the speedup is the baseline divided by the harmonic mean of all the runs of the workload. In Figure <ref type="figure">5</ref>(b) and Figure <ref type="figure">6</ref>, the value is the harmonic mean of the speedup of the two paired workloads.</p><p>The experimental results also include a log of the average power during every operating cycle, the power cap set, and the priority (if DPS is running) at every operating decision for each socket. One can match the power-related data to each workload using the start and end time and further plot the time-series power-related data. We can also get the average power consumption during the lifetime of a workload. Furthermore, we can compute the of each node and the between the two clusters. In the artifact, we include a script that computes the of each pair and generates a figure similar to Figure <ref type="figure">7</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>ARTIFACT DEPENDENCIES REQUIREMENTS</head><p>As stated in section 4.2, although DPS is not tied to any powermanagement interface, the package is implemented to interact with the hardware with RAPL, therefore the only hardware requirement is Intel processors with RAPL available. The experiments in this paper were conducted on Cascade Lake R processors, yet the requirement is any newer generation than Sandybridge inclusively. A Linux system version newer than 18.04 inclusively is required as we did not test on older versions. To reproduce the experiment results in this paper, the following software libraries are needed:</p><p>The experiments in this paper use two public datasets as follows:</p><p>These two benchmark suites represent two distinct workload sets on a distributed system. The Spark workloads in the HiBench benchmark suite have distinct power phases while the HPC workloads in the NPB benchmark suite always consume the total power budget.</p><p>The program is mainly implemented in Python, therefore we list all dependent Python libraries below:</p><p>&#8226; Numpy 1.25 &#8226; Scipy 1.10.1</p></div></body>
		</text>
</TEI>
