TL;DR
Researchers have developed an automated, data-driven framework to create highly accurate power models for heterogeneous chips (like those containing both CPUs and GPUs). By using internal performance counters and a lookup-table approach to handle different clock speeds, their model achieves a remarkable 1.3% average energy estimation error with an execution time of less than 500 nanoseconds.
What Problem Does This Paper Address?
In the "post-Dennard scaling" era, we can no longer simply shrink transistors to save power. This has led to the "dark silicon" problem: we have more transistors than we can safely power at once. To manage this, modern chips use Heterogeneous Architectures (mixing different types of processors) and DVFS (Dynamic Voltage and Frequency Scaling), which constantly adjusts clock speeds and voltages to save energy.
To manage these complex systems effectively in real-time—a process called Dynamic Power Management (DPM)—computers need to know exactly how much power they are consuming right now. While many chips have built-in power sensors, these are often too slow, too coarse, or too expensive for fine-grained control. Existing software-based models usually fall into two traps: they either require "black-box" deep learning (which is slow and opaque) or "bottom-up" expert knowledge of the hardware (which is difficult to scale to new, undocumented chips).
Methods
The authors propose a "top-down," architecture-agnostic approach that automates the creation of power models. Their method follows three main pillars:
- Automated Counter Selection: Instead of guessing which internal Performance Monitoring Counters (PMCs)—like "instructions retired" or "L1 cache accesses"—correlate to power, they use a statistical pipeline. It automatically profiles all available counters and uses Pearson Correlation Coefficients (PCC) to pick the most "robust" predictors.
- PMU-Aware Grouping: Hardware has limits; you can only track a few counters at once. The authors developed an iterative algorithm that uses the vendor's API to find the best-performing subset of counters that can actually be measured simultaneously in a single pass.
- The LUT-Linear Hybrid: Power consumption is non-linear across different frequencies. To keep the model "lightweight" (fast), they don't use complex math. Instead, they create a Lookup Table (LUT). For every supported frequency, they train a simple linear model. When the system changes speed, it just swaps to the corresponding linear model in the table.
- Physical Constraints: They use Non-Negative Least Squares (NNLS) regression. This ensures that the "weights" assigned to counters are always positive—after all, doing more work should never result in consuming less power in a physical sense.
Datasets
The models were trained and validated on an NVIDIA Jetson AGX Xavier platform.
- Benchmarks: They used the Rodinia 3.1 suite, employing OpenMP versions for CPU testing and CUDA versions for GPU testing.
- Synthetic Additions: The authors created custom synthetic benchmarks designed to stress-test specific CPU sub-units to ensure the model wasn't biased toward just one type of workload.
- Data Collection: Power was measured using the on-board INA3221 monitors via I2C, while activity was traced using the ARMv8 PMU (for CPU) and CUPTI (for GPU).
Key Insights and Ideas
- Decomposability is King: By modeling the CPU and GPU independently and then summing their results, the authors avoided the "combinatorial explosion" of having to test every possible pair of CPU/GPU frequencies.
- Linearity is Sufficient: The paper proves that you don't need complex Neural Networks for power modeling. If you segment the problem by frequency (the LUT approach), simple linear math is actually more accurate and orders of magnitude faster.
- Responsiveness: Because PMCs are updated every clock cycle, these models are actually more responsive to sudden spikes in activity than the physical analog power sensors on the board, which suffer from electrical inertia.
Key Results
- High Accuracy: The system-level model achieved an average energy estimation error of just 1.3%, with a worst-case error of 3.1%.
- Extreme Speed: The model takes between 150 ns and 500 ns to calculate a power estimate. This is negligible compared to the millisecond-scale decisions made by OS power managers, making it perfect for "online" use.
- DVFS Robustness: The model remained accurate across 29 different CPU frequencies and 14 GPU frequencies.
Limitations and Future Work
The authors noted that the model’s accuracy dips slightly when the CPU and GPU frequencies diverge significantly (e.g., a very fast CPU feeding a very slow GPU). In these lopsided states, "stalls" and speculative execution behaviors occur that the current linear model doesn't perfectly capture.
Future work includes testing this framework on a wider variety of hardware platforms to further prove its "architecture-agnostic" claims and integrating the model into a live Linux kernel governor to see how much battery life it can actually save in a real-world DPM scenario.
Summary updated