Skip to content

Commit bb4e30a

Browse files
Claudio Scordinoingomolnar
authored andcommitted
sched/deadline/Documentation: Add overrun signal and GRUB-PA documentation
Signed-off-by: Claudio Scordino <claudio@evidence.eu.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Juri Lelli <juri.lelli@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Luca Abeni <luca.abeni@santannapisa.it> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-kernel@vger.kernel.org Link: http://lkml.kernel.org/r/1522741362-4542-1-git-send-email-claudio@evidence.eu.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 943d355 commit bb4e30a

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

‎Documentation/scheduler/sched-deadline.txt‎

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ CONTENTS
4949
2.1 Main algorithm
5050
------------------
5151

52-
SCHED_DEADLINE uses three parameters, named "runtime", "period", and
52+
SCHED_DEADLINE [18] uses three parameters, named "runtime", "period", and
5353
"deadline", to schedule tasks. A SCHED_DEADLINE task should receive
5454
"runtime" microseconds of execution time every "period" microseconds, and
5555
these "runtime" microseconds are available within "deadline" microseconds
@@ -117,6 +117,10 @@ CONTENTS
117117
scheduling deadline = scheduling deadline + period
118118
remaining runtime = remaining runtime + runtime
119119

120+
The SCHED_FLAG_DL_OVERRUN flag in sched_attr's sched_flags field allows a task
121+
to get informed about runtime overruns through the delivery of SIGXCPU
122+
signals.
123+
120124

121125
2.2 Bandwidth reclaiming
122126
------------------------
@@ -279,6 +283,19 @@ CONTENTS
279283
running_bw is incremented.
280284

281285

286+
2.3 Energy-aware scheduling
287+
------------------------
288+
289+
When cpufreq's schedutil governor is selected, SCHED_DEADLINE implements the
290+
GRUB-PA [19] algorithm, reducing the CPU operating frequency to the minimum
291+
value that still allows to meet the deadlines. This behavior is currently
292+
implemented only for ARM architectures.
293+
294+
A particular care must be taken in case the time needed for changing frequency
295+
is of the same order of magnitude of the reservation period. In such cases,
296+
setting a fixed CPU frequency results in a lower amount of deadline misses.
297+
298+
282299
3. Scheduling Real-Time Tasks
283300
=============================
284301

@@ -505,6 +522,12 @@ CONTENTS
505522
17 - L. Abeni, G. Lipari, A. Parri, Y. Sun, Multicore CPU reclaiming: parallel
506523
or sequential?. In Proceedings of the 31st Annual ACM Symposium on Applied
507524
Computing, 2016.
525+
18 - J. Lelli, C. Scordino, L. Abeni, D. Faggioli, Deadline scheduling in the
526+
Linux kernel, Software: Practice and Experience, 46(6): 821-839, June
527+
2016.
528+
19 - C. Scordino, L. Abeni, J. Lelli, Energy-Aware Real-Time Scheduling in
529+
the Linux Kernel, 33rd ACM/SIGAPP Symposium On Applied Computing (SAC
530+
2018), Pau, France, April 2018.
508531

509532

510533
4. Bandwidth management

0 commit comments

Comments
 (0)