summaryrefslogtreecommitdiffstats
path: root/module/zfs/txg.c
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2012-01-20 10:58:57 -0800
committerBrian Behlendorf <[email protected]>2012-02-27 08:59:10 -0800
commit570827e129ed81e066e894530bbe24642f473154 (patch)
tree90e9128a73735df10392a24280ade08031051b68 /module/zfs/txg.c
parent13be560d89e9de63bdf63e8187af2ceb90cf094d (diff)
Add 'dmu_tx' kstats entry
Keep counters for the various reasons that a thread may end up in txg_wait_open() waiting on a new txg. This can be useful when attempting to determine why a particular workload is under performing. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module/zfs/txg.c')
-rw-r--r--module/zfs/txg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/zfs/txg.c b/module/zfs/txg.c
index d0d2b1716..6e64adf93 100644
--- a/module/zfs/txg.c
+++ b/module/zfs/txg.c
@@ -524,6 +524,8 @@ txg_delay(dsl_pool_t *dp, uint64_t txg, int ticks)
(void) cv_timedwait(&tx->tx_quiesce_more_cv, &tx->tx_sync_lock,
timeout);
+ DMU_TX_STAT_BUMP(dmu_tx_delay);
+
mutex_exit(&tx->tx_sync_lock);
}