Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sched/dl/Documentation: Split Section 3

Introduce 4 subsections to make Section 3 more readable.

Signed-off-by: Luca Abeni <luca.abeni@unitn.it>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: henrik@austad.us
Cc: juri.lelli@gmail.com
Cc: raistlin@linux.it
Link: http://lkml.kernel.org/r/1431954032-16473-10-git-send-email-luca.abeni@unitn.it
Signed-off-by: Ingo Molnar <mingo@kernel.org>

authored by

Luca Abeni and committed by
Ingo Molnar
6aaa1025 78740858

+16
+16
Documentation/scheduler/sched-deadline.txt
··· 8 8 1. Overview 9 9 2. Scheduling algorithm 10 10 3. Scheduling Real-Time Tasks 11 + 3.1 Definitions 12 + 3.2 Schedulability Analysis for Uniprocessor Systems 13 + 3.3 Schedulability Analysis for Multiprocessor Systems 14 + 3.4 Relationship with SCHED_DEADLINE Parameters 11 15 4. Bandwidth management 12 16 4.1 System-wide settings 13 17 4.2 Task interface ··· 130 126 suited for periodic or sporadic real-time tasks that need guarantees on their 131 127 timing behavior, e.g., multimedia, streaming, control applications, etc. 132 128 129 + 3.1 Definitions 130 + ------------------------ 131 + 133 132 A typical real-time task is composed of a repetition of computation phases 134 133 (task instances, or jobs) which are activated on a periodic or sporadic 135 134 fashion. ··· 173 166 is the minimum WCET, and U_max = max{WCET_i/P_i} is the maximum 174 167 utilization[12]. 175 168 169 + 3.2 Schedulability Analysis for Uniprocessor Systems 170 + ------------------------ 171 + 176 172 If M=1 (uniprocessor system), or in case of partitioned scheduling (each 177 173 real-time task is statically assigned to one and only one CPU), it is 178 174 possible to formally check if all the deadlines are respected. ··· 213 203 In any case, this kind of analysis is too complex as well as too 214 204 time-consuming to be performed on-line. Hence, as explained in Section 215 205 4 Linux uses an admission test based on the tasks' utilizations. 206 + 207 + 3.3 Schedulability Analysis for Multiprocessor Systems 208 + ------------------------ 216 209 217 210 On multiprocessor systems with global EDF scheduling (non partitioned 218 211 systems), a sufficient test for schedulability can not be based on the ··· 261 248 but the theoretical result that is important for SCHED_DEADLINE is that if 262 249 the total utilization is smaller or equal than M then the response times of 263 250 the tasks are limited. 251 + 252 + 3.4 Relationship with SCHED_DEADLINE Parameters 253 + ------------------------ 264 254 265 255 Finally, it is important to understand the relationship between the 266 256 SCHED_DEADLINE scheduling parameters described in Section 2 (runtime,