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 <mahrens@delphix.com>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed by: Richard Elling <Richard.Elling@RichardElling.com>
Reviewed by: Prakash Surya <prakash.surya@delphix.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Alek Pinchuk <apinchuk@datto.com>
Closes #6691
This commit is contained in:
Alek P 2017-09-29 15:58:52 -07:00 committed by Brian Behlendorf
parent e71cade67d
commit 01ff0d7540
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -34,9 +34,9 @@ int zfs_read_history = 0;
int zfs_read_history_hits = 0; int zfs_read_history_hits = 0;
/* /*
* Keeps stats on the last N txgs, disabled by default. * Keeps stats on the last 100 txgs by default.
*/ */
int zfs_txg_history = 0; int zfs_txg_history = 100;
/* /*
* Keeps stats on the last N MMP updates, disabled by default. * Keeps stats on the last N MMP updates, disabled by default.