DocumentCode :
3588929
Title :
Overhead Analysis of Performance Counter Measurements
Author :
Roehl, Thomas ; Treibig, Jan ; Hager, Georg ; Wellein, Gerhard
Author_Institution :
Erlangen Regional Comput. Center (RRZE), Univ. of Erlangen-Nuremberg, Erlangen, Germany
fYear :
2014
Firstpage :
176
Lastpage :
185
Abstract :
LIKWID is a set of performance-related command line tools targeting X86 processors. Besides affinity-related tools it also includes likwid-perfctr, which allows to count hardware performance events. LIKWID builds upon the Linux msr kernel module, which allows to access model-specific registers (MSRs) via a device file interface. In addition to a set of convenient functional features such as a logical thread group syntax and pre-configured performance groups, likwid-perfctr offers a lightweight and low-overhead implementation. A simple ´start/stop marker API´ supports measurements without introducing additional interrupts. Using the API the user can instrument code regions to be monitored individually. This is the only situation where overhead matters, since the marker routines might influence the runtime behavior of a code. As the regions are allowed to overlap in any way, this overhead also influences the measurements themselves. This paper investigates the runtime contributions comprising the LIKWID marker API overhead on several X86 processors. The overhead is compared with the PAPI instrumentation, which builds on the higher-level perf kernel interface. Finally, possible improvements to reduce the overhead are discussed.
Keywords :
Linux; application program interfaces; microprocessor chips; multi-threading; operating system kernels; program compilers; source code (software); LIKWID marker API overhead; Linux msr kernel module; MSR; PAPI instrumentation; X86 processors; affinity-related tools; code regions; code runtime behavior; device file interface; hardware performance events; higher-level perf kernel interface; likwid-perfctr; logical thread group syntax; marker routines; model-specific registers; overhead analysis; performance counter measurements; performance-related command line tools; preconfigured performance groups; start/stop marker API; Instruments; Kernel; Linux; Program processors; Radiation detectors; Registers; Runtime; Hardware Performance Counters; Overhead; Profiling; Tools; X86;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Parallel Processing Workshops (ICCPW), 2014 43rd International Conference on
ISSN :
1530-2016
Type :
conf
DOI :
10.1109/ICPPW.2014.34
Filename :
7103452
Link To Document :
بازگشت