Difference between revisions of "Plugin:Intel PMU"

From collectd Wiki
Jump to: navigation, search
m
Line 9: Line 9:
 
   | Manpage={{Manpage|collectd.conf|5|plugin_intel_pmu}}
 
   | Manpage={{Manpage|collectd.conf|5|plugin_intel_pmu}}
 
}}
 
}}
Performance counters are CPU hardware registers that count hardware events such as instructions executed, cache-misses suffered, or branches mispredicted. They form a basis for profiling applications to trace dynamic control flow and identify hotspots. [https://perf.wiki.kernel.org/index.php/Main_Page Linux perf] interface provides rich generalized abstractions over hardware specific capabilities. The ''intel_pmu'' plugin collects performance counters data on Intel CPUs using Linux perf interface. All events are reported on a per core basis.
+
 
 +
The ''intel_pmu plugin'' collects information provided by [https://perf.wiki.kernel.org/index.php/Main_Page Linux perf] interface which  provides rich generalized abstractions over hardware specific capabilities. All events are reported on a per core basis.
 +
 
 +
Performance counters are CPU hardware registers that count hardware events such as instructions executed, cache-misses suffered, or branches mispredicted. They form a basis for profiling applications to trace dynamic control flow and identify hotspots.
 +
 
 
For a full description of available options please refer to the {{Manpage|collectd.conf|5|plugin_intel_pmu}} manual page.
 
For a full description of available options please refer to the {{Manpage|collectd.conf|5|plugin_intel_pmu}} manual page.
  
Line 22: Line 26:
 
     Cores "0" "1,35" "[12-17]"
 
     Cores "0" "1,35" "[12-17]"
 
   </Plugin>
 
   </Plugin>
 +
 +
For a full description of available options please refer to the {{Manpage|collectd.conf|5|plugin_intel_pmu}} manual page.
  
 
== Example graph ==
 
== Example graph ==
Line 36: Line 42:
  
 
* [https://github.com/andikleen/pmu-tools/tree/master/jevents jevents]
 
* [https://github.com/andikleen/pmu-tools/tree/master/jevents jevents]
 +
 +
== See also ==
 +
 +
* [[Plugin:Intel_PMU/tests]]
 +
* [https://wiki.opnfv.org/display/fastpath/PMU PMU plugin high level design document]
  
 
[[Category:Plugins]]
 
[[Category:Plugins]]
 
{{DEFAULTSORT:Intel_PMU}}
 
{{DEFAULTSORT:Intel_PMU}}

Revision as of 18:06, 12 March 2020

Intel PMU plugin
Type: read
Callbacks: config, init, read, shutdown
Status: supported
First version: 5.8
Copyright: 2017–2018 Intel Corporation
License: MIT license
Manpage: collectd.conf(5)
List of Plugins

The intel_pmu plugin collects information provided by Linux perf interface which provides rich generalized abstractions over hardware specific capabilities. All events are reported on a per core basis.

Performance counters are CPU hardware registers that count hardware events such as instructions executed, cache-misses suffered, or branches mispredicted. They form a basis for profiling applications to trace dynamic control flow and identify hotspots.

For a full description of available options please refer to the collectd.conf(5) manual page.

Synopsis

<Plugin intel_pmu>
   ReportHardwareCacheEvents true
   ReportKernelPMUEvents true
   ReportSoftwareEvents true
   EventList "/var/cache/pmu/GenuineIntel-6-2D-core.json"
   HardwareEvents "L2_RQSTS.CODE_RD_HIT,L2_RQSTS.CODE_RD_MISS" "L2_RQSTS.ALL_CODE_RD"
   Cores "0" "1,35" "[12-17]"
 </Plugin>

For a full description of available options please refer to the collectd.conf(5) manual page.

Example graph

Graph pmu instructions.png

Instructions (counter) corresponding to perf metric PERF_COUNT_HW_INSTRUCTIONS.

History

Cores option is available since release 5.8.1.

Dependencies

See also