Submitted:
22 May 2025
Posted:
26 May 2025
You are already at the latest version
Abstract

Keywords:
1. Introduction
2. Materials and Methods
- the primary sources of energy consumption during HEP tasks are the processor (CPU) and RAM, therefore RAPL metrics measuring these components are representative for evaluating the system's overall energy consumption;
- the ratio of processor energy consumption to total system energy consumption remains relatively stable for typical HEPscore workloads, allowing the use of a conversion coefficient to estimate total energy consumption;
- all necessary software components for the measurement methods are already installed in the target system.
- environmental temperature effects on system energy consumption are not considered;
- voltage fluctuations in the electrical network that may affect external measurements are not accounted for;
- energy consumption of additional system components such as network adapters and disks during their active use during benchmark execution is not considered;
- the research was conducted on a single hardware platform, limiting the generalizability of results across all types of computing systems.
2.1. Hardware and Software Setup
2.2. Reference Measurement System
- PZEM-004 module with built-in V9811A (29 MHz) microcontroller for computing energy parameters;
- Two 22-bit delta-sigma ADCs for voltage and current measurement;
- Current transformer with 100/10 conversion ratio;
- Arduino UNO board for data collection and transmission;
- Optocouplers for UART interface galvanic isolation;
- USB interface for computer connection.
2.3. Software Implementation
- MSR method — uses direct access to Model-Specific Registers (MSR) of the processor to obtain energy consumption data. This method requires administrative privileges (root access) but provides the most accurate data directly from hardware counters;
- Powercap method — uses the Linux powercap interface, which provides access to RAPL data through the virtual file system (powercap). This method does not require administrative privileges but may need appropriate system configurations;
- Perf method — uses the Linux perf software interface to access the energy-pkg counter via /sys/bus/event_source/devices/power/events/. This method also does not require administrative privileges under certain system configurations and allows obtaining processor energy consumption data.
- msr_power.py: Implements direct MSR access;
- pcap_power.py: Implements the powercap interface approach;
- perf_power.py: Implements the perf events interface approach.
2.4. Integration with HEPscore
- Automatic detection of available energy consumption measurement methods;
- Collection of energy consumption data during benchmark execution;
- Storage and analysis of measurement results.
2.5. Experimental Methodology
- Calculation of mean difference between measurement methods;
- Determination of Pearson correlation coefficient;
- Analysis of differences distribution using the Bland-Altman method;
- Calculation of relative measurement error.
3. Results
3.1. Evaluation of RAPL-Based Energy Measurement Methods
- MSR method requires root access;
- Powercap method works with regular user privileges on properly configured systems;
- Perf method works with regular user privileges under certain system configura-tions;
3.2. Comparison of RAPL and PZEM-004 Measurements
3.3. Analysis of Measurement Consistency
3.4. Implementation of Automatic Transition Algorithm
- Checks for MSR interface availability through /msr file access;
- If MSR is unavailable, checks for powercap interface availability;
- If powercap is unavailable, checks for perf interface availability.
3.5. Integration with HEPscore
- Energy consumption of each individual benchmark based on RAPL data;
- Estimated total system energy consumption based on the established conversion factors;
- Graphs and diagrams for visual comparison of energy characteristics across systems.
4. Discussion
- User-level operation without administrative privileges, enabling deployment across grid computing environments with restricted access policies;
- Automatic adaptation to available measurement interfaces on the target system;
- Direct integration with HEPscore, providing energy metrics alongside performance measurements;
- Validation against external hardware measurements to establish accuracy and reliability;
- Compatibility with the HEP Benchmark Suite plugin system for data collection and analysis.
- Integration with performance monitoring counter (PMC) based energy models for systems without direct hardware energy measurement interfaces;
- Development of dynamic energy optimization techniques based on real-time energy consumption monitoring;
Abbreviations
| RAPL | Running Average Power Limit |
| IPMI | Intelligent Platform Management Interface |
| HEP | High Energy Physics |
| LHC | The Large Hadron Collider |
References
- Giordano, D.; Alef, M.; Atzori, L.; et al. HEPiX Benchmarking Solution for WLCG Computing Resources. Comput. Softw. Big Sci. 2021, 5, 28. [CrossRef]
- Szczepanek, N.; et al. HEP Benchmark Suite: Enhancing Efficiency and Sustainability in Worldwide LHC Computing Infrastructures. arXiv 2024, arXiv:2408.12445. [CrossRef]
- Giordano, D.; et al. HEPScore: A new CPU benchmark for the WLCG. EPJ Web Conf. 2024, 295, 07024. [CrossRef]
- Simili, E.; et al. ARMing HEP for the future Energy Efficiency of WLCG sites (ARM vs. x86). EPJ Web Conf. 2024, 295, 11007. [CrossRef]
- Gao, Y. An Experiment in Using the HEPscore Benchmark to Examine and Improve Data Center Operational Energy and Carbon Performance. Massachusetts Institute of Technology: Cambridge, MA, USA, 2024. Available online: https://impactclimate.mit.edu/wp-content/uploads/2024/06/Yichen_Gao_Final_-Delieverables-Yichen-Gao.pdf (accessed on 10 May 2025).
- Hollowell, C. HEPscore Application – Design, Status and Plans. In Proceedings of the HEPiX Benchmarking Working Group, Chicago, IL, USA, 13 September 2019. Available online: https://indico.cern.ch/event/782638/contributions/3563729/attachments/1907659/3166471/hepscore_bwg.pdf (accessed on 10 May 2025).
- Tuteja, K. Power Efficiency of High Energy Physics Applications on CPU and GPU. Master's Thesis, International School for Advanced Studies (SISSA), Trieste, Italy, 2024. Available online: https://backend.mhpc.sissa.it/sites/default/files/2024-06/Keshvi-Tuteja-thesis-mhpc.pdf (accessed on 10 May 2025).
- HEP Benchmark Suite, The Plugin Reference. Available online: https://gitlab.cern.ch/hep-benchmarks/hep-benchmark-suite/-/tree/qa/hepbenchmarksuite/plugins (accessed on 10 May 2025).
- Menéndez Borge, G. HEP Benchmark Suite: The Centralized Future of WLCG Benchmarking. EPJ Web Conf. 2024, 295, 07023. [CrossRef]
- Alqurashi, F.S.; Al-Hashimi, M. An Experimental Approach to Estimation of the Energy Cost of Dynamic Branch Prediction in an Intel High-Performance Processor. Computers 2023, 12, 139. [CrossRef]
- Fahad, M.; Shahid, A.; Manumachu, R.R.; Lastovetsky, A. A Comparative Study of Methods for Measurement of Energy of Computing. Energies 2019, 12, 2204. [CrossRef]
- Energy Measurement Module for HEPscore. GitHub Repository. Available online: https://github.com/NikitaP2001/hep-score-energy/tree/feature/rapl-power-msmt (accessed on 15 May 2025).





| Characteristic | PZEM (External Meter) | RAPL (Software Solution) |
|---|---|---|
| Measurement Point | Server/PC level | Processor level |
| Required Privileges | Physical access | Regular user |
| Scalability | Limited | High |
| Measurement Accuracy | Reference | Requires validation |
| Components Measured | Total consumption | CPU, DRAM |
| Workload | PZEM (J) | RAPL (J) | Difference (%) | PZEM/RAPL Ratio |
|---|---|---|---|---|
| atlas-gen-bmk | 25493.65 | 17889.25 | 42.51 | 1.4251 |
| atlas-kv-bmk | 2314.32 | 1822.23 | 27.00 | 1.2700 |
| belle2-gen-sim-reco-ma-bmk | 14268.10 | 10081.16 | 41.53 | 1.4153 |
| cms-reco-bmk | 25281.98 | 17853.75 | 41.61 | 1.4161 |
| lhcb-sim-run3-ma-bm | 22690.10 | 16345.48 | 38.82 | 1.3882 |
| Statistical Indicator | Value |
|---|---|
| Mean difference between PZEM and RAPL | 5211.26 J |
| Standard deviation of difference | 2687.51 J |
| Pearson correlation coefficient | 0.9997 |
| p-value | 0.00 |
| Mean relative error | 38.29 % |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).