summaryrefslogtreecommitdiffstats
path: root/Documentation/accounting
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2021-05-10 14:01:00 +0200
committerPeter Zijlstra <peterz@infradead.org>2021-05-12 11:43:25 +0200
commit0cd7c741f01de13dc1eecf22557593b3514639bb (patch)
tree9d1031e2a5e08dc9d45a6670f4d8e6171be8864c /Documentation/accounting
parente4042ad492357fa995921376462b04a025dd53b6 (diff)
downloadlinux-0cd7c741f01de13dc1eecf22557593b3514639bb.tar.gz
linux-0cd7c741f01de13dc1eecf22557593b3514639bb.tar.bz2
linux-0cd7c741f01de13dc1eecf22557593b3514639bb.zip
delayacct: Add sysctl to enable at runtime
Just like sched_schedstats, allow runtime enabling (and disabling) of delayacct. This is useful if one forgot to add the delayacct boot time option. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/YJkhebGJAywaZowX@hirez.programming.kicks-ass.net
Diffstat (limited to 'Documentation/accounting')
-rw-r--r--Documentation/accounting/delay-accounting.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/Documentation/accounting/delay-accounting.rst b/Documentation/accounting/delay-accounting.rst
index f20b282d6de0..1b8b46deeb29 100644
--- a/Documentation/accounting/delay-accounting.rst
+++ b/Documentation/accounting/delay-accounting.rst
@@ -74,8 +74,10 @@ To enable, add::
delayacct
-to the kernel boot options. The rest of the instructions
-below assume this has been done.
+to the kernel boot options. The rest of the instructions below assume this has
+been done. Alternatively, use sysctl kernel.task_delayacct to switch the state
+at runtime. Note however that only tasks started after enabling it will have
+delayacct information.
After the system has booted up, use a utility
similar to getdelays.c to access the delays