Page MenuHomeFreeBSD

bhyve: implement NVMe SMART data I/O statistics
ClosedPublic

Authored by chuck on May 18 2020, 6:27 PM.

Details

Summary

SMART data in NVMe includes statistics for number of read and write
commands issued as well as the number of "data units" read and written.
NVMe defines "data unit" as thousands of 512 byte blocks (e.g. 1 data
unit is 1-1,000 512 byte blocks, 3 data units are 2,001-3,000 512 byte
blocks).

This patch implements counters for:

  • Data Units Read
  • Data Units Written
  • Host Read Commands
  • Host Write Commands

and exposes the values when the guest reads the SMART/Health Log Page.

Fixes UNH Test 1.3.8

Test Plan

Run UNH IOL INTERACT tests

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

chuck requested review of this revision.May 18 2020, 6:27 PM
This revision was not accepted when it landed; it landed in state Needs Review.Jun 29 2020, 12:32 AM
This revision was automatically updated to reflect the committed changes.