We are currently working on energy attribution inside virtual machines using PowerAPI and I would like to ask which approach is currently recommended for this use case.
There seem to be two separate aspects which are currently unclear to us.
On the model/formula side:
it is unclear to us whether SmartWatts or VirtualWatts should currently be used for energy attribution inside virtual machines (see https://powerapi.org/getting_started/ and https://github.com/powerapi-ng/virtualwatts-formula).
On the sensor/input side:
from our understanding, the procfs sensor used by older VirtualWatts setups appears outdated/deprecated, while the current recommendation seems to be the HWPC sensor instead.
According to the documentation, the HWPC sensor appears to run on the host system and not inside the VM itself.
This raises the question:
which model should currently be used inside the VM, with which sensor/input source, and how is the model expected to obtain/read the required monitoring data inside the VM?
Any clarification or updated references/examples would be greatly appreciated.
We are currently working on energy attribution inside virtual machines using PowerAPI and I would like to ask which approach is currently recommended for this use case.
There seem to be two separate aspects which are currently unclear to us.
On the model/formula side:
it is unclear to us whether SmartWatts or VirtualWatts should currently be used for energy attribution inside virtual machines (see https://powerapi.org/getting_started/ and https://github.com/powerapi-ng/virtualwatts-formula).
On the sensor/input side:
from our understanding, the procfs sensor used by older VirtualWatts setups appears outdated/deprecated, while the current recommendation seems to be the HWPC sensor instead.
According to the documentation, the HWPC sensor appears to run on the host system and not inside the VM itself.
This raises the question:
which model should currently be used inside the VM, with which sensor/input source, and how is the model expected to obtain/read the required monitoring data inside the VM?
Any clarification or updated references/examples would be greatly appreciated.