Strategies and software support for the management of hardware performance counters
- 17 July 2023
- journal article
- research article
- Published by Wiley in Software: Practice and Experience
- Vol. 53 (10) , 1928-1957
Abstract
Hardware performance counters (HPCs) are facilities offered by most off‐the‐shelf CPU architectures. They are a vital support to post‐mortem performance profiling and are exploited by standard tools such as Linux or Intel V‐Tune. Nevertheless, an increasing number of application domains (e.g., simulation, task‐based high‐performance computing, or cybersecurity) are exploiting them to perform different activities, such as self‐tuning, autonomic optimization, and/or system inspection. This repurposing of HPCs can be difficult, for example, because of the overhead for extracting relevant information. This overhead might render any online or self‐tuning activity ineffective. This article discusses various practical strategies to exploit HPCs beyond post‐mortem profiling, suitable for different application contexts. The presented strategies are accompanied by a general primer on HPCs usage on Linux. We also provide reference x86 (both Intel and AMD) implementations targeting the Linux kernel, upon which we present an experimental assessment of the viability of our proposals.Keywords
Funding Information
- Ministry for Universities and Research
This publication has 30 references indexed in Scilit:
- Predicting program phases and defending against side-channel attacks using hardware performance counters2015
- Seer: A Lightweight Online Failure Prediction ApproachIEEE Transactions on Software Engineering, 2015
- HDROP: Detecting ROP Attacks Using Performance Monitoring Counters2014
- Traffic management2013
- On the Nature of Progress2011
- Unpredictable Random Number Generator Based on Hardware Performance Counters2011
- HPCTOOLKIT: tools for performance analysis of optimized parallel programsConcurrency and Computation: Practice and Experience, 2009
- Real time power estimation and thread scheduling via performance countersACM SIGARCH Computer Architecture News, 2009
- The vision of autonomic computingComputer, 2003
- Exploiting hardware performance counters with flow and context sensitive profilingACM SIGPLAN Notices, 1997