Skip to content

Commit 2fd1c30

Browse files
authored
Mark TX_COMMIT transaction with TXG_NOTHROTTLE.
TX_COMMIT has no on-disk representation and does not produce any more dirty data. It should not wait for anything, and even just skipping the checks if not waiting gives improvement noticeable in profiler. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Prakash Surya <[email protected]> Signed-off-by: Alexander Motin <[email protected]> Sponsored by: iXsystems, Inc. Closes #14798
1 parent ae0d0f0 commit 2fd1c30

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

module/zfs/zil.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3155,7 +3155,14 @@ static void
31553155
zil_commit_itx_assign(zilog_t *zilog, zil_commit_waiter_t *zcw)
31563156
{
31573157
dmu_tx_t *tx = dmu_tx_create(zilog->zl_os);
3158-
VERIFY0(dmu_tx_assign(tx, TXG_WAIT));
3158+
3159+
/*
3160+
* Since we are not going to create any new dirty data, and we
3161+
* can even help with clearing the existing dirty data, we
3162+
* should not be subject to the dirty data based delays. We
3163+
* use TXG_NOTHROTTLE to bypass the delay mechanism.
3164+
*/
3165+
VERIFY0(dmu_tx_assign(tx, TXG_WAIT | TXG_NOTHROTTLE));
31593166

31603167
itx_t *itx = zil_itx_create(TX_COMMIT, sizeof (lr_t));
31613168
itx->itx_sync = B_TRUE;

0 commit comments

Comments
 (0)