Formatting fixes for docs/scheduler
cover Formatting fixes for docs/scheduler
While reading through docs at [1], I noticed a few glitches in formatting, which this patchset is trying to fix.
[1] https://www.kernel.org/doc/html/latest/scheduler/
Kir Kolyshkin (4):
docs/scheduler/sched-bwc: formatting fix
docs/scheduler/sched-design-CFS: formatting fix
docs/scheduler/sched-bwc: fix note rendering
docs/scheduler/sched-bwc: note/link cgroup v2
Documentation/scheduler/sched-bwc.rst | 15 ++++++++++----- Documentation/scheduler/sched-design-CFS.rst | 6 +++--- 2 files changed, 13 insertions(+), 8 deletions(-)
Signature · 1 line
2.26.2
PATCH 1/4 docs/scheduler/sched-bwc: formatting fix
Since commit d6a3b247627a3 these three lines are merged into one by the RST processor, making it hard to read. Use bullet points to separate the entries, like it's done in other similar places.
--- Documentation/scheduler/sched-bwc.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Documentation/scheduler/sched-bwc.rst +3 -3
@@ -25,9 +25,9 @@ Management ---------- Quota and period are managed within the cpu subsystem via cgroupfs. -cpu.cfs_quota_us: the total available run-time within a period (in microseconds) -cpu.cfs_period_us: the length of a period (in microseconds) -cpu.stat: exports throttling statistics [explained further below] +- cpu.cfs_quota_us: the total available run-time within a period (in microseconds) +- cpu.cfs_period_us: the length of a period (in microseconds) +- cpu.stat: exports throttling statistics [explained further below] The default values are::
Signature · 1 line
2.26.2
PATCH 2/4 docs/scheduler/sched-design-CFS: formatting fix
In reply to Kir KolyshkinFix the rendering of the paragraph. Before the fix, the first line is rendered in bold (I'm not quite sure why) and is also separated from the rest of the paragraph, which is rendered with an indent.
--- Documentation/scheduler/sched-design-CFS.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Documentation/scheduler/sched-design-CFS.rst +3 -3
@@ -34,9 +34,9 @@ In CFS the virtual runtime is expressed and tracked via the per-task p->se.vruntime (nanosec-unit) value. This way, it's possible to accurately timestamp and measure the "expected CPU time" a task should have gotten. -[ small detail: on "ideal" hardware, at any time all tasks would have the same - p->se.vruntime value --- i.e., tasks would execute simultaneously and no task - would ever get "out of balance" from the "ideal" share of CPU time. ] + Small detail: on "ideal" hardware, at any time all tasks would have the same + p->se.vruntime value --- i.e., tasks would execute simultaneously and no task + would ever get "out of balance" from the "ideal" share of CPU time. CFS's task picking logic is based on this p->se.vruntime value and it is thus very simple: it always tries to run the task with the smallest p->se.vruntime
Signature · 1 line
2.26.2
PATCH 3/4 docs/scheduler/sched-bwc: fix note rendering
In reply to Kir Kolyshkin--- Documentation/scheduler/sched-bwc.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Documentation/scheduler/sched-bwc.rst +3 -2
@@ -2,8 +2,9 @@ CFS Bandwidth Control ===================== -[ This document only discusses CPU bandwidth control for SCHED_NORMAL. - The SCHED_RT case is covered in Documentation/scheduler/sched-rt-group.rst ] +.. note:: + This document only discusses CPU bandwidth control for SCHED_NORMAL. + The SCHED_RT case is covered in Documentation/scheduler/sched-rt-group.rst CFS bandwidth control is a CONFIG_FAIR_GROUP_SCHED extension which allows the specification of the maximum CPU bandwidth available to a group or hierarchy.
Signature · 1 line
2.26.2
PATCH 4/4 docs/scheduler/sched-bwc: note/link cgroup v2
In reply to Kir Kolyshkin--- Documentation/scheduler/sched-bwc.rst | 4 ++++ 1 file changed, 4 insertions(+)
Documentation/scheduler/sched-bwc.rst +4 -0
@@ -26,6 +26,10 @@ Management ---------- Quota and period are managed within the cpu subsystem via cgroupfs. +.. note:: + The cgroupfs files described below are only applicable to cgroup v1. For + cgroup v2 API, see :ref:`Documentation/admin-guide/cgroup-v2.rst <cgroup-v2>`. + - cpu.cfs_quota_us: the total available run-time within a period (in microseconds) - cpu.cfs_period_us: the length of a period (in microseconds) - cpu.stat: exports throttling statistics [explained further below]
Signature · 1 line
2.26.2