[PATCH v2 2/3] docs: sched-stats: fix misleading 'per-process' wording

Kit Dallege posted 3 patches 3 weeks, 1 day ago
[PATCH v2 2/3] docs: sched-stats: fix misleading 'per-process' wording
Posted by Kit Dallege 3 weeks, 1 day ago
/proc/<pid>/schedstat provides statistics for the specific task (thread)
identified by the pid, not an aggregation across all threads of a
process. Change 'per-process' to 'per-task' to avoid confusion.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=202635
Assisted-by: Claude:claude-opus-4-6
Signed-off-by: Kit Dallege <xaum.io@gmail.com>
---
 Documentation/scheduler/sched-stats.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/scheduler/sched-stats.rst b/Documentation/scheduler/sched-stats.rst
index 9d6a337755f4..9187cb6ce1cb 100644
--- a/Documentation/scheduler/sched-stats.rst
+++ b/Documentation/scheduler/sched-stats.rst
@@ -190,8 +190,8 @@ of idleness (busy, idle and newly idle):
 /proc/<pid>/schedstat
 ---------------------
 schedstats also adds a new /proc/<pid>/schedstat file to include some of
-the same information on a per-process level.  There are three fields in
-this file correlating for that process to:
+the same information on a per-task level.  There are three fields in
+this file correlating for that task to:
 
      1) time spent on the cpu (in nanoseconds)
      2) time spent waiting on a runqueue (in nanoseconds)
-- 
2.53.0
Re: [PATCH v2 2/3] docs: sched-stats: fix misleading 'per-process' wording
Posted by Jonathan Corbet 3 weeks ago
Kit Dallege <xaum.io@gmail.com> writes:

> /proc/<pid>/schedstat provides statistics for the specific task (thread)
> identified by the pid, not an aggregation across all threads of a
> process. Change 'per-process' to 'per-task' to avoid confusion.
>
> Link: https://bugzilla.kernel.org/show_bug.cgi?id=202635
> Assisted-by: Claude:claude-opus-4-6
> Signed-off-by: Kit Dallege <xaum.io@gmail.com>
> ---
>  Documentation/scheduler/sched-stats.rst | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/scheduler/sched-stats.rst b/Documentation/scheduler/sched-stats.rst
> index 9d6a337755f4..9187cb6ce1cb 100644
> --- a/Documentation/scheduler/sched-stats.rst
> +++ b/Documentation/scheduler/sched-stats.rst
> @@ -190,8 +190,8 @@ of idleness (busy, idle and newly idle):
>  /proc/<pid>/schedstat
>  ---------------------
>  schedstats also adds a new /proc/<pid>/schedstat file to include some of
> -the same information on a per-process level.  There are three fields in
> -this file correlating for that process to:
> +the same information on a per-task level.  There are three fields in
> +this file correlating for that task to:
>  

Until you've copied the scheduler maintainers, a change like this will
not go anywhere useful.

jon