Multiprocessor Realtime Scheduling Jing Ma Classification Multiprocessor Scheduling

  • Slides: 19
Download presentation
Multiprocessor Real-time Scheduling Jing Ma �靖

Multiprocessor Real-time Scheduling Jing Ma �靖

Classification Multiprocessor Scheduling algorithm Partitioned Scheduling Global Scheduling In the partitioned approach, the tasks

Classification Multiprocessor Scheduling algorithm Partitioned Scheduling Global Scheduling In the partitioned approach, the tasks are statically partitioned among the processors, i. e. , each task is assigned to a processor and is always executed on it. Under global scheduling, it is permitted that a job that has previously been preempted from one processor resume execution at a later point in time upon a different processor.

Uniprocessor Scheduling Algorithm By priority: 1 static 2 dynamic but fixed within a job

Uniprocessor Scheduling Algorithm By priority: 1 static 2 dynamic but fixed within a job 3 fully dynamic

Rate Monotonic (RM) Scheduling Assumption: Ø Ø Ø All tasks that have hard deadlines

Rate Monotonic (RM) Scheduling Assumption: Ø Ø Ø All tasks that have hard deadlines are periodic. All tasks are independent. di=pi, for all tasks. ci is constant and is known for all tasks. The time required for context switching is negligible For a single processor with n tasks, the following equation holds for the accumulated utilization µ:

Rate Monotonic (RM) Scheduling Ø The priority of a task is a monotonically decreasing

Rate Monotonic (RM) Scheduling Ø The priority of a task is a monotonically decreasing function of its period. Ø At any time, a highest priority task among all those that are ready for execution is allocated. If all assumptions are met, schedulability is guaranteed. The idle capacity is not required if the period of all tasks is a multiple of the period of the highest priority task

EDF scheduling v each time a new ready task arrives, it is inserted into

EDF scheduling v each time a new ready task arrives, it is inserted into a queue of ready tasks, sorted by their deadlines. If a newly arrived task is inserted at the head of the queue, the currently executing task is preempted

EDF scheduling Earlier deadline preemption Later deadline no preemption

EDF scheduling Earlier deadline preemption Later deadline no preemption

LLF (Least Laxity First) v Priorities = decreasing function of the laxity (the less

LLF (Least Laxity First) v Priorities = decreasing function of the laxity (the less laxity, the higher the priority); v dynamically changing priority; v preemptive. Requires calling the scheduler periodically, and to recompute the laxity. Overhead for many calls of the scheduler and many context switches. Detects missed deadlines early.

Partitioned Scheduling v Several polynomial-time heuristics have been proposed for solving this problem. (eg.

Partitioned Scheduling v Several polynomial-time heuristics have been proposed for solving this problem. (eg. FF and BF) the worst-case achievable utilization on M processors for all of the heuristics (and also for an optimal partitioning algorithm) is only (M+1)/2, even when an optimal uniprocessor scheduling algorithm such as EDF is used.

Classification 1 no migration In partitioned scheduling algorithms, the set of tasks is partitioned

Classification 1 no migration In partitioned scheduling algorithms, the set of tasks is partitioned into as many disjoint subsets as there are processors available, and each subset is associated with a unique processor. 2 migration allowed (Restricted migration) Each job must execute entirely upon a single processor. However, different jobs of the same task may execute upon different processors. 3 unrestricted migration

Different Scheduling Algorithm

Different Scheduling Algorithm

Global Scheduling v PD 2 incurs significant run-time overhead due to its quantumbased scheduling

Global Scheduling v PD 2 incurs significant run-time overhead due to its quantumbased scheduling approach. v EKG concentrates workloads on some processors due to the approach similar to partitioned scheduling. v LNREF energy efficient compare to other algorithm

fluid scheduling model

fluid scheduling model

T-N plane

T-N plane

LNREF scheduling algorithm

LNREF scheduling algorithm

Future Trend (I guess) v Combine with other algorithm RT-DVFS(real-time dynamic voltage and frequency

Future Trend (I guess) v Combine with other algorithm RT-DVFS(real-time dynamic voltage and frequency scaling) v Reduce Overhead v Uncertain Task Execution Time

reference v Energy-efficient Optimal Real-Time Scheduling on Multiprocessors, Kenji Funaoka, Shinpei Kato, IEEE, 2008.

reference v Energy-efficient Optimal Real-Time Scheduling on Multiprocessors, Kenji Funaoka, Shinpei Kato, IEEE, 2008. 19 v Energy-Aware Scheduling for Real-Time Multiprocessor Systems with Uncertain Task Execution Time, Changjiu Xian, Yung-Hsiang Lu, Zhiyuan Li, DAC, June 4 -8 2007 v Scheduling Algorithms and Operating Systems Support for Real. Time Systems, Krithi Ramamritham, John A. Stankovic, IEEE Vol 82, No. 1, January 1994 v An Optimal Real-Time Scheduling Algorithm for Multiprocessors, Hyeonjoong Cho, Binoy Ravindran, 27 th IEEE International Real. Time System Symposium, 2006 v http: //www. cise. ufl. edu/~prabhat/Teaching/cis 6930 s 09/slides/software. Components. ppt