Project

General

Profile

Actions

Feature #13741

closed

want microstates for bhyve vCPUs

Added by Patrick Mooney 3 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Category:
bhyve
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

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.


Related issues

Related to illumos gate - Bug #13723: expose bhyve metrics as kstatsClosedPatrick Mooney

Actions
Actions #1

Updated by Patrick Mooney 3 months ago

  • Tracker changed from Bug to Feature
Actions #2

Updated by Electric Monk 3 months ago

  • Gerrit CR set to 1431
Actions #3

Updated by Patrick Mooney 3 months ago

  • Related to Bug #13723: expose bhyve metrics as kstats added
Actions #4

Updated by Patrick Mooney 3 months ago

This was tested in conjunction with the #13723 work.

Actions #5

Updated by Electric Monk 3 months ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

git commit 59460b493cd70b38e999010c370d57e58b989e45

commit  59460b493cd70b38e999010c370d57e58b989e45
Author: Patrick Mooney <pmooney@pfmooney.com>
Date:   2021-05-04T04:51:12.000Z

    13723 expose bhyve metrics as kstats
    13741 want microstates for bhyve vCPUs
    Reviewed by: Andy Fiddaman <andy@omnios.org>
    Reviewed by: Jason King <jason.brian.king@gmail.com>
    Reviewed by: Mike Zeller <mike.zeller@joyent.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF