mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: linux-kernel@vger.kernel.org, cgroups@vger.kernel.org,
	rcu@vger.kernel.org, linux-doc@vger.kernel.org
Cc: "Sebastian Andrzej Siewior" <bigeasy@linutronix.de>,
	"Jonathan Corbet" <corbet@lwn.net>,
	"Shuah Khan" <skhan@linuxfoundation.org>,
	"Randy Dunlap" <rdunlap@infradead.org>,
	"Ingo Molnar" <mingo@redhat.com>,
	"Peter Zijlstra" <peterz@infradead.org>,
	"Juri Lelli" <juri.lelli@redhat.com>,
	"Vincent Guittot" <vincent.guittot@linaro.org>,
	"Dietmar Eggemann" <dietmar.eggemann@arm.com>,
	"Steven Rostedt" <rostedt@goodmis.org>,
	"Ben Segall" <bsegall@google.com>, "Mel Gorman" <mgorman@suse.de>,
	"Valentin Schneider" <vschneid@redhat.com>,
	"K Prateek Nayak" <kprateek.nayak@amd.com>,
	"luca abeni" <luca.abeni@santannapisa.it>,
	"Yuri Andriaccio" <yurand2000@gmail.com>,
	"Yuri Andriaccio" <yuri.andriaccio@santannapisa.it>,
	"Paul E. McKenney" <paulmck@kernel.org>,
	"Frederic Weisbecker" <frederic@kernel.org>,
	"Neeraj Upadhyay" <neeraj.upadhyay@kernel.org>,
	"Joel Fernandes" <joelagnelf@nvidia.com>,
	"Josh Triplett" <josh@joshtriplett.org>,
	"Boqun Feng" <boqun@kernel.org>,
	"Uladzislau Rezki" <urezki@gmail.com>,
	"Mathieu Desnoyers" <mathieu.desnoyers@efficios.com>,
	"Lai Jiangshan" <jiangshanlai@gmail.com>,
	Zqiang <qiang.zhang@linux.dev>,
	"Davidlohr Bueso" <dave@stgolabs.net>,
	"Tejun Heo" <tj@kernel.org>,
	"Johannes Weiner" <hannes@cmpxchg.org>,
	"Michal Koutný" <mkoutny@suse.com>,
	"Qais Yousef" <qyousef@layalina.io>,
	"John Ogness" <john.ogness@linutronix.de>
Subject: [PATCH v4 5/6] Documentation/sched: Drop the section enumeration in sched-deadline
Date: Mon, 23 Nov 2026 14:41:11 +0100	[thread overview]
Message-ID: <20261123-sched_dl-v4-5-d523e4d960d3@linutronix.de> (raw)
In-Reply-To: <20261123-sched_dl-v4-0-d523e4d960d3@linutronix.de>

Each headline within the document has a manual numbering. If a new
section is added in the middle of the document then one has to renumber
the sections that follow plus update the maunal TOC at the top of the
document.

Remove the manual created TOC and the numbers before the section. The
rendered HTML has a TOC.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
 Documentation/scheduler/sched-deadline.rst | 106 +++++++++++------------------
 1 file changed, 40 insertions(+), 66 deletions(-)

diff --git a/Documentation/scheduler/sched-deadline.rst b/Documentation/scheduler/sched-deadline.rst
index 4441bb689cca1..b76bb61cd48fd 100644
--- a/Documentation/scheduler/sched-deadline.rst
+++ b/Documentation/scheduler/sched-deadline.rst
@@ -2,41 +2,16 @@
 Deadline Task Scheduling
 ========================
 
-.. CONTENTS
-
-    0. WARNING
-    1. Overview
-    2. Scheduling algorithm
-      2.1 Main algorithm
-      2.2 Bandwidth reclaiming
-    3. Scheduling Real-Time Tasks
-      3.1 Definitions
-      3.2 Schedulability Analysis for Uniprocessor Systems
-      3.3 Schedulability Analysis for Multiprocessor Systems
-      3.4 Relationship with SCHED_DEADLINE Parameters
-    4. Bandwidth management
-      4.1 System-wide settings
-      4.2 Task interface
-      4.3 Default behavior
-      4.4 Behavior of sched_yield()
-    5. Tasks CPU affinity
-      5.1 Using cgroup v1 cpuset controller
-      5.2 Using cgroup v2 cpuset controller
-    6. Future plans
-    A. Test suite
-    B. Minimal main()
-
-
-0. WARNING
-==========
+WARNING
+=======
 
  Fiddling with these settings can result in an unpredictable or even unstable
  system behavior. As for -rt (group) scheduling, it is assumed that root users
  know what they're doing.
 
 
-1. Overview
-===========
+Overview
+========
 
  The SCHED_DEADLINE policy contained inside the sched_dl scheduling class is
  basically an implementation of the Earliest Deadline First (EDF) scheduling
@@ -44,11 +19,11 @@ Deadline Task Scheduling
  that makes it possible to isolate the behavior of tasks between each other.
 
 
-2. Scheduling algorithm
-=======================
+Scheduling algorithm
+====================
 
-2.1 Main algorithm
-------------------
+Main algorithm
+--------------
 
  SCHED_DEADLINE [18] uses three parameters, named "runtime", "period", and
  "deadline", to schedule tasks. A SCHED_DEADLINE task should receive
@@ -123,8 +98,8 @@ Deadline Task Scheduling
  signals.
 
 
-2.2 Bandwidth reclaiming
-------------------------
+Bandwidth reclaiming
+--------------------
 
  Bandwidth reclaiming for deadline tasks is based on the GRUB (Greedy
  Reclamation of Unused Bandwidth) algorithm [15, 16, 17] and it is enabled
@@ -287,8 +262,8 @@ Deadline Task Scheduling
     running_bw is incremented.
 
 
-2.3 Energy-aware scheduling
----------------------------
+Energy-aware scheduling
+-----------------------
 
  When cpufreq's schedutil governor is selected, SCHED_DEADLINE implements the
  GRUB-PA [19] algorithm, reducing the CPU operating frequency to the minimum
@@ -300,8 +275,8 @@ Deadline Task Scheduling
  setting a fixed CPU frequency results in a lower amount of deadline misses.
 
 
-3. Scheduling Real-Time Tasks
-=============================
+Scheduling Real-Time Tasks
+==========================
 
 
 
@@ -323,8 +298,8 @@ Deadline Task Scheduling
  suited for periodic or sporadic real-time tasks that need guarantees on their
  timing behavior, e.g., multimedia, streaming, control applications, etc.
 
-3.1 Definitions
-------------------------
+Definitions
+-----------
 
  A typical real-time task is composed of a repetition of computation phases
  (task instances, or jobs) which are activated on a periodic or sporadic
@@ -369,8 +344,8 @@ Deadline Task Scheduling
  is the minimum WCET, and U_max = max{WCET_i/P_i} is the maximum
  utilization[12].
 
-3.2 Schedulability Analysis for Uniprocessor Systems
-----------------------------------------------------
+Schedulability Analysis for Uniprocessor Systems
+------------------------------------------------
 
  If M=1 (uniprocessor system), or in case of partitioned scheduling (each
  real-time task is statically assigned to one and only one CPU), it is
@@ -414,8 +389,8 @@ Deadline Task Scheduling
  time-consuming to be performed on-line. Hence, as explained in Section
  4 Linux uses an admission test based on the tasks' utilizations.
 
-3.3 Schedulability Analysis for Multiprocessor Systems
-------------------------------------------------------
+Schedulability Analysis for Multiprocessor Systems
+--------------------------------------------------
 
  On multiprocessor systems with global EDF scheduling (non partitioned
  systems), a sufficient test for schedulability can not be based on the
@@ -464,8 +439,8 @@ Deadline Task Scheduling
  the total utilization is smaller or equal than M then the response times of
  the tasks are limited.
 
-3.4 Relationship with SCHED_DEADLINE Parameters
------------------------------------------------
+Relationship with SCHED_DEADLINE Parameters
+-------------------------------------------
 
  Finally, it is important to understand the relationship between the
  SCHED_DEADLINE scheduling parameters described in Section 2 (runtime,
@@ -549,8 +524,8 @@ Deadline Task Scheduling
        2018), Pau, France, April 2018.
 
 
-4. Bandwidth management
-=======================
+Bandwidth management
+====================
 
  As previously mentioned, in order for -deadline scheduling to be
  effective and useful (that is, to be able to provide "runtime" time units
@@ -587,8 +562,8 @@ Deadline Task Scheduling
  interface we can put a cap on total utilization of -deadline tasks (i.e.,
  \Sum (runtime_i / period_i) < global_dl_utilization_cap).
 
-4.1 System wide settings
-------------------------
+System wide settings
+--------------------
 
  The system wide settings are configured under /sys/kernel/sched.
 
@@ -604,9 +579,8 @@ Deadline Task Scheduling
  be thus free of oversubscribing the system up to any arbitrary level.
  This is done by writing -1 in /sys/kernel/sched/dl_runtime_us.
 
-
-4.2 Task interface
-------------------
+Task interface
+--------------
 
  Specifying a periodic/sporadic task that executes for a given amount of
  runtime at each instance, and that is scheduled according to the urgency of
@@ -640,8 +614,8 @@ Deadline Task Scheduling
  reference, that is not directly usable from user-space.
 
 
-4.3 Default behavior
----------------------
+Default behavior
+----------------
 
  The default value for SCHED_DEADLINE bandwidth is to have dl_runtime_us equal to
  1000000. With rt_period equal to 1000000, by default, it means that -deadline
@@ -659,8 +633,8 @@ Deadline Task Scheduling
  -deadline task cannot fork.
 
 
-4.4 Behavior of sched_yield()
------------------------------
+Behavior of sched_yield()
+-------------------------
 
  When a SCHED_DEADLINE task calls sched_yield(), it gives up its
  remaining runtime and is immediately throttled, until the next
@@ -675,8 +649,8 @@ Deadline Task Scheduling
  SCHED_DEADLINE tasks.
 
 
-5. Tasks CPU affinity
-=====================
+Tasks CPU affinity
+==================
 
  Deadline tasks cannot have a cpu affinity mask smaller than the root domain they
  are created on. So, using ``sched_setaffinity(2)`` won't work. Instead, the
@@ -685,8 +659,8 @@ Deadline Task Scheduling
  See :ref:`Documentation/admin-guide/cgroup-v1/cpusets.rst <cpusets>` and
  :ref:`Documentation/admin-guide/cgroup-v2.rst <cgroup-v2>` for more information.
 
-5.1 Using cgroup v1 cpuset controller
--------------------------------------
+Using cgroup v1 cpuset controller
+---------------------------------
 
  An example of a simple configuration (pin a -deadline task to CPU0) follows::
 
@@ -703,8 +677,8 @@ Deadline Task Scheduling
    echo $$ > cpu0/tasks
    chrt --sched-runtime 100000 --sched-period 200000 --deadline 0 yes > /dev/null
 
-5.2 Using cgroup v2 cpuset controller
--------------------------------------
+Using cgroup v2 cpuset controller
+---------------------------------
 
  Assuming the cgroup v2 root is mounted at ``/sys/fs/cgroup``, an example of a
  simple configuration (pin a -deadline task to CPU0) follows::
@@ -717,8 +691,8 @@ Deadline Task Scheduling
    echo $$ > deadline_group/cgroup.procs
    chrt --sched-runtime 100000 --sched-period 200000 --deadline 0 yes > /dev/null
 
-6. Future plans
-===============
+Future plans
+============
 
  Still missing:
 

-- 
2.55.0


  parent reply	other threads:[~2026-11-23 13:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 13:41 [PATCH v4 0/6] sched: RT throttling cleanup and a bit of documentation Sebastian Andrzej Siewior
2026-11-23 13:41 ` [PATCH v4 1/6] sched: Mark RT_GROUP_SCHED broken Sebastian Andrzej Siewior
2026-11-23 13:41 ` [PATCH v4 2/6] sched: Move DL's admission control to sysfs Sebastian Andrzej Siewior
2026-11-23 13:41 ` [PATCH v4 3/6] sched: Add sysfs files for the per-CPU fair_server knobs Sebastian Andrzej Siewior
2026-11-23 13:41 ` [PATCH v4 4/6] sched: Limit sysctl sched_rt_{period|runtime}_us to RT_GROUP_SCHED Sebastian Andrzej Siewior
2026-11-23 13:41 ` Sebastian Andrzej Siewior [this message]
2026-11-23 14:17   ` [PATCH v4 5/6] Documentation/sched: Drop the section enumeration in sched-deadline Sebastian Andrzej Siewior
2026-11-23 13:41 ` [PATCH v4 6/6] Documentation/sched: Add fairserver to sched-deadline Sebastian Andrzej Siewior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261123-sched_dl-v4-5-d523e4d960d3@linutronix.de \
    --to=bigeasy@linutronix.de \
    --cc=boqun@kernel.org \
    --cc=bsegall@google.com \
    --cc=cgroups@vger.kernel.org \
    --cc=corbet@lwn.net \
    --cc=dave@stgolabs.net \
    --cc=dietmar.eggemann@arm.com \
    --cc=frederic@kernel.org \
    --cc=hannes@cmpxchg.org \
    --cc=jiangshanlai@gmail.com \
    --cc=joelagnelf@nvidia.com \
    --cc=john.ogness@linutronix.de \
    --cc=josh@joshtriplett.org \
    --cc=juri.lelli@redhat.com \
    --cc=kprateek.nayak@amd.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luca.abeni@santannapisa.it \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=mgorman@suse.de \
    --cc=mingo@redhat.com \
    --cc=mkoutny@suse.com \
    --cc=neeraj.upadhyay@kernel.org \
    --cc=paulmck@kernel.org \
    --cc=peterz@infradead.org \
    --cc=qiang.zhang@linux.dev \
    --cc=qyousef@layalina.io \
    --cc=rcu@vger.kernel.org \
    --cc=rdunlap@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=skhan@linuxfoundation.org \
    --cc=tj@kernel.org \
    --cc=urezki@gmail.com \
    --cc=vincent.guittot@linaro.org \
    --cc=vschneid@redhat.com \
    --cc=yurand2000@gmail.com \
    --cc=yuri.andriaccio@santannapisa.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®