Re: [PATCH 7/6] delayacct: Add sysctl to enable at runtime

From: Mel Gorman
Date: Wed May 12 2021 - 07:40:43 EST


On Mon, May 10, 2021 at 02:05:13PM +0200, Peter Zijlstra wrote:
>
> 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@xxxxxxxxxxxxx>
> ---
> Documentation/accounting/delay-accounting.rst | 6 ++--
> kernel/delayacct.c | 36 ++++++++++++++++++++++++--
> kernel/sysctl.c | 12 ++++++++
> 3 files changed, 50 insertions(+), 4 deletions(-)
>

Update sysctl/kernel.rst?

diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst
index 1d56a6b73a4e..5d9193bd8d27 100644
--- a/Documentation/admin-guide/sysctl/kernel.rst
+++ b/Documentation/admin-guide/sysctl/kernel.rst
@@ -1087,6 +1087,13 @@ Model available). If your platform happens to meet the
requirements for EAS but you do not want to use it, change
this value to 0.

+sched_delayacct
+===============
+
+Enables/disables task delay accounting (see
+:doc:`accounting/delay-accounting.rst`). Enabling this feature incurs
+a small amount of overhead in the scheduler but is useful for debugging
+and performance tuning. It is required by some tools such as iotop.

sched_schedstats
================

--
Mel Gorman
SUSE Labs