mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-27 10:24:22 +03:00
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:
parent
e71cade67d
commit
01ff0d7540
@ -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
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user