Skip to content

How is PowerAPI intended to be used for energy attribution within VMs today? #843

Description

@Louis1870

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions