Skip to content

Commit 01ff0d7

Browse files
alek-pbehlendorf
authored andcommittedSep 29, 2017
Update the default for zfs_txg_history
It's often useful to have access to txg history for debugging purposes. This patch changes the default from 0 to 100 TXGs worth of history preserved. Reviewed by: Matthew Ahrens <[email protected]> Reviewed-by: Giuseppe Di Natale <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed by: Richard Elling <[email protected]> Reviewed by: Prakash Surya <[email protected]> Reviewed-by: George Melikov <[email protected]> Signed-off-by: Alek Pinchuk <[email protected]> Closes openzfs#6691
1 parent e71cade commit 01ff0d7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎man/man5/zfs-module-parameters.5

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
.\" CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your
1313
.\" own identifying information:
1414
.\" Portions Copyright [yyyy] [name of copyright owner]
15-
.TH ZFS-MODULE-PARAMETERS 5 "Nov 16, 2013"
15+
.TH ZFS-MODULE-PARAMETERS 5 "Sept 28, 2017"
1616
.SH NAME
1717
zfs\-module\-parameters \- ZFS module parameters
1818
.SH DESCRIPTION
@@ -1766,7 +1766,7 @@ Default value: \fB32\fR.
17661766
Historical statistics for the last N txgs will be available in
17671767
\fB/proc/spl/kstat/zfs/<pool>/txgs\fR
17681768
.sp
1769-
Default value: \fB0\fR.
1769+
Default value: \fB100\fR.
17701770
.RE
17711771

17721772
.sp

‎module/zfs/spa_stats.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ int zfs_read_history = 0;
3434
int zfs_read_history_hits = 0;
3535

3636
/*
37-
* Keeps stats on the last N txgs, disabled by default.
37+
* Keeps stats on the last 100 txgs by default.
3838
*/
39-
int zfs_txg_history = 0;
39+
int zfs_txg_history = 100;
4040

4141
/*
4242
* Keeps stats on the last N MMP updates, disabled by default.

0 commit comments

Comments
 (0)
Please sign in to comment.