]> granicus.if.org Git - zfs/commit
Add txgs-<pool> kstat file
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 23 Oct 2012 20:48:22 +0000 (13:48 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 2 Nov 2012 22:45:56 +0000 (15:45 -0700)
commite95853a331529a6cb96fdf10476c53441e59f4e1
tree30f0809324bb570d1e97ccbee054f1f0484d4668
parente8fd45a0f975c6b8ae8cd644714fc21f14fac2bf
Add txgs-<pool> kstat file

Create a kstat file which contains useful statistics about the
last N txgs processed.  This can be helpful when analyzing pool
performance.  The new KSTAT_TYPE_TXG type was added for this
purpose and it 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/dsl_pool.h
lib/libspl/include/sys/kstat.h
module/zfs/dsl_pool.c
module/zfs/txg.c