erpalma / throttled

Workaround for Intel throttling issues in Linux.
MIT License
2.68k stars 166 forks source link

Print total power in monitor mode. #292

Closed tejaskale closed 2 years ago

erpalma commented 2 years ago

What are you trying to achieve exactly?

tejaskale commented 2 years ago

I am just trying to print the totals at the end of the line. Helpful ( atleast for me) for quickly testing config changes and how they affect the total power consumption.

[AC] Thermal: OK - Power: OK - Current: OK - Cross-domain (e.g. GPU): OK  ||  VCore: 1048 mV - Package: 8.6 W - Graphics: 0.0 W - DRAM: 0.7 W - Total: 9.3 W           

For eg. I was using this to test if disabling CPU cores using the gnome shell extension actually saves power. ( It doesnt unless you drop down to 1 core; as with 2 cores, 2 physical cores seem to be active. Just reduces the threads on them to 1 )

erpalma commented 2 years ago

So you want to measure the total energy, which is in Joule or Wh, not Watts. This way you are summing up all the instantaneous power consumption, which does not make any sense.

tejaskale commented 2 years ago

All the other values(Package, GPU , DRAM ) are also instantaneous power; This is just the total of those.

erpalma commented 2 years ago

Oh now I see, sorry. You just want the total power, i.e. CPU+GPU+DRAM. I was overthinking ;)