]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
intel_pmu 2.0 - updates in collectd.conf.pod 3775/head
authorKamil Wiatrowski <kamilx.wiatrowski@intel.com>
Wed, 28 Oct 2020 15:39:52 +0000 (15:39 +0000)
committerKamil Wiatrowski <kamilx.wiatrowski@intel.com>
Tue, 5 Oct 2021 11:11:47 +0000 (11:11 +0000)
Change-Id: I5f0d4c289c5264933cd1a2c43dd6ca0933f94e6a
Signed-off-by: Kamil Wiatrowski <kamilx.wiatrowski@intel.com>
src/collectd.conf.in
src/collectd.conf.pod
src/intel_pmu.c

index a30346dd53778276946509b7e998ef3ae932a33b..846f2ab640d63af21d86b2789acb498603b6d641 100644 (file)
 #</Plugin>
 
 #<Plugin intel_pmu>
-#    EventList "/var/cache/pmu/GenuineIntel-6-2D-core.json"
+#    EventList "/var/cache/pmu/GenuineIntel-6-55-4-core.json"
 #    HardwareEvents "L2_RQSTS.CODE_RD_HIT,L2_RQSTS.CODE_RD_MISS" "L2_RQSTS.ALL_CODE_RD"
 #    Cores "[0-3]"
 #    AggregateUncorePMUs true
index a479c6a2eed109a3f1534417e9f95a122757edfe..7dbbb68f12aabbc2d88f67025357f291917b1549 100644 (file)
@@ -3881,16 +3881,22 @@ Linux perf interface. All events are reported on a per core basis.
 B<Note:> When using intel_pmu plugin number of reading threads in collectd
 should be adjusted accordingly. The value should be more than a half of
 configured cores, so for 60 monitored cores the recommendation is to set
-B<ReadThreads> > 30.
+B<ReadThreads> > 30. The optimal number of B<WriteThreads> depends on volume
+of metrics from read plugins, interval and number of enabled write plugins.
+The above adjustments can help with performance scaling when monitoring a high
+number of events on many cores.
+
 
 B<Synopsis:>
 
   <Plugin intel_pmu>
-    EventList "/var/cache/pmu/GenuineIntel-6-2D-core.json"
+    EventList "/var/cache/pmu/GenuineIntel-6-55-4-core.json"
     HardwareEvents "L2_RQSTS.CODE_RD_HIT,L2_RQSTS.CODE_RD_MISS" "L2_RQSTS.ALL_CODE_RD"
     Cores "0-3" "4,6" "[12-15]"
     HardwareEvents "L2_RQSTS.PF_MISS"
     Cores "[1,2]"
+    HardwareEvents "INST_RETIRED.ANY" "CPU_CLK_UNHALTED.THREAD"
+    Cores ""
     AggregateUncorePMUs true
   </Plugin>
 
@@ -3932,13 +3938,14 @@ This option can be used once for every B<HardwareEvents> set.
 
 =item B<AggregateUncorePMUs> B<false>|B<true>
 
-This option toggles the event value reporting from all the uncore PMUs to
-either dispatch as aggregated value in a single metric or dispatch as
-individual values. If B<AggregateUncorePMUs> is set to 'true' uncore events are
-reported as single metric, even for multi PMU. The total value is obtained by
-summing all counters across all the units (e.g. CHAs). If B<AggregateUncorePMUs>
-is set to 'false' all cloned PMUs are dispatched separately with PMU name added
-to Collectd's I<plugin_instance>.
+This option toggles the event value reporting from all the uncore PMUs to either
+dispatch as aggregated value in a single metric or dispatch as individual
+values. If B<AggregateUncorePMUs> is set to 'true', uncore events from the
+various PMU subsystems across uncore are reported as a single metric, usually
+reported as single 'Core0' events. The total value is obtained by summing all
+counters across all the units (e.g. CHAs). If B<AggregateUncorePMUs> is set to
+'false', values from the individual PMU subsystems across uncore are dispatched
+separately with PMU name/number added to Collectd's I<plugin_instance>.
 
 =back
 
index 9f04f52a7970edfb2841376c3e8d436abc7f03f4..aa8c4e63d8239599e841e287994aecb9fdb0fd11 100644 (file)
@@ -718,7 +718,10 @@ static int pmu_init(void) {
   }
 
   /* parse events names from JSON file */
-  ret = read_events(g_ctx.event_list_fn);
+  if (g_ctx.event_list_fn[0] == '\0')
+    ret = read_events(NULL); // Let jevents choose default file
+  else
+    ret = read_events(g_ctx.event_list_fn);
   if (ret != 0) {
     ERROR(PMU_PLUGIN ": Failed to read event list file '%s'.",
           g_ctx.event_list_fn);