want microstates for bhyve vCPUs
In the existing bhyve stats system, there are only two measure of CPU usage: VCPU_TOTAL_RUNTIME and VCPU_IDLE_TICKS. While measurement of the idle "ticks" (read: hrtime nanoseconds) is mostly accurate, the total runtime measurement consists not only of time spent in guest context, but also includes time spent on in-kernel emulation tasks. Considering that we have visibility into how time is being spent for a guest vCPU, it would be nice to have more finely grained accounting. Something akin to CPU microstates, but for a guest vCPU, would probably be appropriate.
Updated by Electric Monk 3 months ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
commit 59460b493cd70b38e999010c370d57e58b989e45 Author: Patrick Mooney <firstname.lastname@example.org> Date: 2021-05-04T04:51:12.000Z 13723 expose bhyve metrics as kstats 13741 want microstates for bhyve vCPUs Reviewed by: Andy Fiddaman <email@example.com> Reviewed by: Jason King <firstname.lastname@example.org> Reviewed by: Mike Zeller <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>