]> granicus.if.org Git - zfs/commit
Add KSTAT_TYPE_TXG type
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 22 Oct 2012 23:57:27 +0000 (16:57 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 2 Nov 2012 22:17:40 +0000 (15:17 -0700)
commitdba79fcbf2cc50be5caef84ae01657e884ac5d89
tree45071c65d0cf08c261574edb09aff0401e919a5e
parent71c9f0b00307e6ee703eef9eba91e7640731c458
Add KSTAT_TYPE_TXG type

Add a new kstat type for tracking useful statistics about a TXG.
The new KSTAT_TYPE_TXG type can be used to tracks the following
statistics per-txg.

  txg          - Unique txg number
  state        - State (O)pen/(Q)uiescing/(S)yncing/(C)ommitted
  birth;       - Creation time
  nread        - Bytes read
  nwritten;    - Bytes written
  reads        - IOPs read
  writes       - IOPs write
  open_time;   - Length in nanoseconds the txg was open
  quiesce_time - Length in nanoseconds the txg was quiescing
  sync_time;   - Length in nanoseconds the txg was syncing

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
include/sys/kstat.h
module/spl/spl-kstat.c