Post #3057409
2026-05-21 23:07 UTC
@globalc@chaos.social Hmm, then you're somehow going to have to work out how to measure the power to put into your emulated device. I think the opposite might be easier; using 'perf kvm' or 'perf' on the host you should be able to get event information from the guest kernel about when the scheduler does stuff. Or even something simpler; like taking the output of a 'top' like thing in the guest to the host; then you're telling the host that a particular guest prog is using 23% of CPU.
Replies (1)
-
@globalc@chaos.social 2026-05-21 23:41
@penguin42@mastodon.org.uk I have the consumed power of the overall system with reasonably accuracy, from various sources like RAPL, or external meter. Then I attribute this between the processes, that's where the "second issue/topic" in the article comes into play. If the process is a virtual guest, then the consumed power attributed to that process (virtual guest) is also the metric to be "told" the OS running inside the guest, so it can inside attribute to single processes.