+16
−1
Loading
Currently, this average is calculated from all the files which include “avg” and “pm” in their names. This match, however, is too greedy. collect-bmc-pm creates separate files for each power sensor. With RAPL enabled, files per cpu socket|package and dram are created as well. On most our platforms, we get a single DCMI sensor (or dedicated one in SDR in case DCMI is not supported) which accounts power from the entire system. While having an avg reading from such a global sensor, we can’t combine it with avg of other components without ending up with an off result. Use data from DCIM sensor, if not available, use data from other components as SDR. As a fallback use socket/dram data sensors. Signed-off-by:Kamil Godzwon <kamilx.godzwon@intel.com> Change-Id: Ia61bdb14453c374898ce1b6bcba34c09746825ad Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19075 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by:
Michal Berger <michal.berger@intel.com> Reviewed-by:
Karol Latecki <karol.latecki@intel.com> Reviewed-by:
Marek Chomnicki <marek.chomnicki@intel.com> Reviewed-by:
Pawel Piatek <pawelx.piatek@intel.com>