summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Quigley <[email protected]>2017-02-07 10:44:03 -0700
committerBrian Behlendorf <[email protected]>2017-02-07 09:44:03 -0800
commitbef78122e606945efbf2e08845e7d5e8ead93c3c (patch)
treed5d5e2e565a34444971fbff93507e4e079ac6a2b
parentcd5083c00c6215f4f15c04e30feeb5f9457ec896 (diff)
Add missing module_param for zfs_per_txg_dirty_frees_percent
When the code was added this tunable was not exposed via module params. Also it was not documented. This patch changes the type from a uint32 to a ulong as done with other percentage tunables and also documents it in the zfs-module-parameters man page. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: David Quigley <[email protected]> Closes #5750
-rw-r--r--man/man5/zfs-module-parameters.516
-rw-r--r--module/zfs/dmu.c7
2 files changed, 22 insertions, 1 deletions
diff --git a/man/man5/zfs-module-parameters.5 b/man/man5/zfs-module-parameters.5
index 8b9a4e8cc..b1c99cb17 100644
--- a/man/man5/zfs-module-parameters.5
+++ b/man/man5/zfs-module-parameters.5
@@ -1441,6 +1441,22 @@ Default value: \fB52,428,800\fR.
.sp
.ne 2
.na
+\fBzfs_per_txg_dirty_frees_percent \fR (ulong)
+.ad
+.RS 12n
+Tunable to control percentage of dirtied blocks from frees in one TXG.
+After this threshold is crossed, additional dirty blocks from frees
+wait until the next TXG.
+A value of zero will disable this throttle.
+.sp
+Default value: \fB30\fR and \fB0\fR to disable.
+.RE
+
+
+
+.sp
+.ne 2
+.na
\fBzfs_prefetch_disable\fR (int)
.ad
.RS 12n
diff --git a/module/zfs/dmu.c b/module/zfs/dmu.c
index b0bceac25..4e62e0435 100644
--- a/module/zfs/dmu.c
+++ b/module/zfs/dmu.c
@@ -65,7 +65,7 @@ int zfs_nopwrite_enabled = 1;
* wait until the next TXG.
* A value of zero will disable this throttle.
*/
-uint32_t zfs_per_txg_dirty_frees_percent = 30;
+unsigned long zfs_per_txg_dirty_frees_percent = 30;
const dmu_object_type_info_t dmu_ot[DMU_OT_NUMTYPES] = {
{ DMU_BSWAP_UINT8, TRUE, "unallocated" },
@@ -2228,10 +2228,15 @@ EXPORT_SYMBOL(dmu_assign_arcbuf);
EXPORT_SYMBOL(dmu_buf_hold);
EXPORT_SYMBOL(dmu_ot);
+/* BEGIN CSTYLED */
module_param(zfs_mdcomp_disable, int, 0644);
MODULE_PARM_DESC(zfs_mdcomp_disable, "Disable meta data compression");
module_param(zfs_nopwrite_enabled, int, 0644);
MODULE_PARM_DESC(zfs_nopwrite_enabled, "Enable NOP writes");
+module_param(zfs_per_txg_dirty_frees_percent, ulong, 0644);
+MODULE_PARM_DESC(zfs_per_txg_dirty_frees_percent,
+ "percentage of dirtied blocks from frees in one TXG");
+/* END CSTYLED */
#endif