Page MenuHomeFreeBSD

bhyve: implement NVMe SMART data I/O statistics
ClosedPublic

Authored by chuck on May 18 2020, 6:27 PM.
Tags
None
Referenced Files
F111645104: D24894.diff
Thu, Mar 6, 11:02 AM
Unknown Object (File)
Mon, Feb 24, 11:34 PM
Unknown Object (File)
Sun, Feb 23, 5:10 PM
Unknown Object (File)
Sun, Feb 23, 3:02 PM
Unknown Object (File)
Sun, Feb 23, 12:38 PM
Unknown Object (File)
Sun, Feb 23, 8:32 AM
Unknown Object (File)
Fri, Feb 7, 10:24 PM
Unknown Object (File)
Jan 8 2025, 8:32 PM
Subscribers

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 - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 31156

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.