]> Gentwo Git Trees - linux/.git/commit
tools/power turbostat: Add idle governor statistics reporting
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Sat, 8 Feb 2025 11:53:19 +0000 (13:53 +0200)
committerLen Brown <len.brown@intel.com>
Sun, 9 Feb 2025 16:56:27 +0000 (10:56 -0600)
commit447c98c1ca4a4b0d43be99f76c558c09956484f3
tree77e94ae52d3c5b1e9585e344c5140bbbce43011e
parent5132681dcd96b2a8c357b6e5d93e9876924bb80b
tools/power turbostat: Add idle governor statistics reporting

The idle governor provides the following per-idle state sysfs files:
  * above - Indicates overshoots, where a more shallow state should have
            been requested (if avaliale and enabled).
  * below - Indicates undershoots, where a deeper state should have been
            requested (if available and enabled).\13

These files offer valuable insights into how effectively the Linux kernel
idle governor selects idle states for a given workload. This commit adds
support for these files in turbostat.

Expose the contents of these files with the following naming convention:
* C1: The number of times the C1 state was requested (existing counter).
* C1+: The number of times the idle governor selected C1, but a deeper
  idle state should have been selected instead.
* C1-: The number of times the idle governor selected C1, but a shallower
  idle state should have been selected instead.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.8
tools/power/x86/turbostat/turbostat.c