From 6e19613d61bfdf6626da5087407c3e65bd8f03a9 Mon Sep 17 00:00:00 2001 From: Roman Dementiev Date: Wed, 17 Jul 2024 16:50:50 +0200 Subject: [PATCH] Update pcm-sensor-server.cpp Disable freq metrics for prometheus for a moment https://github.com/intel/pcm/issues/789 --- src/pcm-sensor-server.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pcm-sensor-server.cpp b/src/pcm-sensor-server.cpp index 11bc7447..d9dbab9a 100644 --- a/src/pcm-sensor-server.cpp +++ b/src/pcm-sensor-server.cpp @@ -700,8 +700,10 @@ class PrometheusPrinter : Visitor printCounter( "L3 Cache Occupancy", getL3CacheOccupancy ( after ) ); printCounter( "Invariant TSC", getInvariantTSC ( before, after ) ); printCounter( "SMI Count", getSMICount ( before, after ) ); - +#if 0 + // disabling this metric for a moment due to https://github.com/intel/pcm/issues/789 printCounter( "Core Frequency", getActiveAverageFrequency ( before, after ) ); +#endif //DBG( 2, "Invariant TSC before=", before.InvariantTSC, ", after=", after.InvariantTSC, ", difference=", after.InvariantTSC-before.InvariantTSC ); printCounter( "Thermal Headroom", after.getThermalHeadroom() ); @@ -744,11 +746,14 @@ class PrometheusPrinter : Visitor printCounter( "PP0 Joules Consumed", getConsumedJoules ( 0, before, after ) ); printCounter( "PP1 Joules Consumed", getConsumedJoules ( 1, before, after ) ); printCounter( "DRAM Joules Consumed", getDRAMConsumedJoules ( before, after ) ); +#if 0 + // disabling these metrics for a moment due to https://github.com/intel/pcm/issues/789 auto uncoreFrequencies = getUncoreFrequencies( before, after ); for (size_t i = 0; i < uncoreFrequencies.size(); ++i) { printCounter( std::string("Uncore Frequency Die ") + std::to_string(i), uncoreFrequencies[i]); } +#endif uint32 i = 0; for ( ; i <= ( PCM::MAX_C_STATE ); ++i ) { std::stringstream s;