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
Unknown Object (File)
Wed, Mar 27, 10:57 PM
Unknown Object (File)
Mar 6 2024, 4:49 AM
Unknown Object (File)
Feb 26 2024, 6:24 AM
Unknown Object (File)
Jan 13 2024, 6:43 AM
Unknown Object (File)
Jan 12 2024, 6:38 PM
Unknown Object (File)
Dec 23 2023, 1:17 AM
Unknown Object (File)
Dec 19 2023, 9:44 PM
Unknown Object (File)
Nov 22 2023, 9:10 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 Not Applicable
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.