summaryrefslogtreecommitdiffstats
path: root/man/man5
diff options
context:
space:
mode:
authorChunwei Chen <[email protected]>2016-12-01 10:06:27 -0800
committerBrian Behlendorf <[email protected]>2016-12-01 11:06:27 -0700
commit493492559e32aa77ff8a5b32572afab5b848a53b (patch)
tree6625b9ad7cb203ae0a479ca801ba2a467096d1bf /man/man5
parentcbba7146676dd145f373bcbe4f4f435d9100ddbb (diff)
Limit number of tasks shown in taskq proc
To prevent holding tq_lock for too long. Before zfsonlinux/zfs@8e71ab9, hogging delay tasks and cat /proc/spl/taskq would easily cause a lockup. While that bug has been fixed. It's probably still a good idea to do this just in case task lists grow too large. Reviewed-by: Tim Chase <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Chunwei Chen <[email protected]> Closes #586
Diffstat (limited to 'man/man5')
-rw-r--r--man/man5/spl-module-parameters.515
1 files changed, 15 insertions, 0 deletions
diff --git a/man/man5/spl-module-parameters.5 b/man/man5/spl-module-parameters.5
index 1b760243e..97241fd53 100644
--- a/man/man5/spl-module-parameters.5
+++ b/man/man5/spl-module-parameters.5
@@ -326,3 +326,18 @@ configurations.
.sp
Default value: \fB4\fR
.RE
+
+.sp
+.ne 2
+.na
+\fBspl_max_show_tasks\fR (uint)
+.ad
+.RS 12n
+The maximum number of tasks per pending list in each taskq shown in
+/proc/spl/{taskq,taskq-all}. Write 0 to turn off the limit. The proc file will
+walk the lists with lock held, reading it could cause a lock up if the list
+grow too large without limiting the output. "(truncated)" will be shown if the
+list is larger than the limit.
+.sp
+Default value: \fB512\fR
+.RE