New Schedulability Tests for Real- Time task sets scheduled by Deadline Monotonic on Multiprocessors Marko Bertogna, Michele Cirinei, Giuseppe Lipari Scuola.

Slides:



Advertisements
Similar presentations
Multiprocessor Scheduling
Advertisements

Washington WASHINGTON UNIVERSITY IN ST LOUIS Real-Time: Periodic Tasks Fred Kuhns Applied Research Laboratory Computer Science Washington University.
Time Demand Analysis.
Priority INHERITANCE PROTOCOLS
Real-Time Mutli-core Scheduling Moris Behnam. Introduction Single processor scheduling – E.g., t 1 (P=10,C=5), t 2 (10, 6) – U= >1 – Use a faster.
Explicit Preemption Placement for Real- Time Conditional Code via Graph Grammars and Dynamic Programming Bo Peng, Nathan Fisher, and Marko Bertogna Department.
THE UNIVERSITY of TEHRAN Mitra Nasri Sanjoy Baruah Gerhard Fohler Mehdi Kargahi October 2014.
Multi-core Real-Time Scheduling for Generalized Parallel Task Models Abusayeed Saifullah, Kunal Agrawal, Chenyang Lu, Christopher Gill.
Response-Time Analysis for globally scheduled Symmetric Multiprocessor Platforms Real-Time Systems Laboratory RETIS Lab Marko Bertogna, Michele Cirinei.
DP-F AIR : A Simple Model for Understanding Optimal Multiprocessor Scheduling Greg Levin † Shelby Funk ‡ Caitlin Sadowski † Ian Pye † Scott Brandt † †
From HRT-HOOD to ADA95 Real-Time Systems Lecture 5 Copyright, 2001 © Adam Czajka.
RUN: Optimal Multiprocessor Real-Time Scheduling via Reduction to Uniprocessor Paul Regnier † George Lima † Ernesto Massa † Greg Levin ‡ Scott Brandt ‡
Real-Time Scheduling CIS700 Insup Lee October 3, 2005 CIS 700.
Module 2 Priority Driven Scheduling of Periodic Task
Towards optimal priority assignments for real-time tasks with probabilistic arrivals and probabilistic execution times Dorin MAXIM INRIA Nancy Grand Est.
Soft Real-Time Semi-Partitioned Scheduling with Restricted Migrations on Uniform Heterogeneous Multiprocessors Kecheng Yang James H. Anderson Dept. of.
Sporadic Server Scheduling in Linux Theory vs. Practice Mark Stanovich Theodore Baker Andy Wang.
Problem 11: Complex Hierarchical Scheduling Full Processor FP T3T2 T4T1 EDF T6T5 RM T10T9T8T7 EDFSPS DPS 10 Tasks - with jitter - with bursts - deadline.
Real-Time Scheduling for Multiprocessor Platforms
How Many Boundaries Are Required to Ensure Optimality in Multiprocessor Scheduling? Geoffrey Nelissen Shelby Funk Dakai Zhu Joёl Goossens.
HASSO-PLATTNER-INSTITUT für Softwaresystemtechnik GmbH an der Universität Potsdam Multiprocessor Scheduling “Global Multiprocessor Scheduling of Aperiodic.
Preemptive Behavior Analysis and Improvement of Priority Scheduling Algorithms Xiaoying Wang Northeastern University China.
Periodic Task Scheduling
Resource augmentation and on-line scheduling on multiprocessors Phillips, Stein, Torng, and Wein. Optimal time-critical scheduling via resource augmentation.
Embedded Systems Exercise 3: Scheduling Real-Time Periodic and Mixed Task Sets 18. May 2005 Alexander Maxiaguine.
Recap Priorities task-level static job-level static dynamic Migration task-level fixed job-level fixed migratory Baker/ Oh (RTS98) Pfair scheduling This.
Chapter 5: CPU Scheduling
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
Real-Time Scheduling Analysis for Multiprocessor Platforms Marko Bertogna PhD dissertation Scuola Superiore S.Anna, Pisa, Italy.
Multiprocessor Real- Time Scheduling Aaron Harris CSE 666 Prof. Ganesan.
Distributed Real-Time systems 1 By: Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Computer Networks.
A Categorization of Real-Time Multiprocessor Scheduling Problems and Algorithms Presentation by Tony DeLuce CS 537 Scheduling Algorithms Spring Quarter.
Introductory Seminar on Research CIS5935 Fall 2009 Ted Baker.
Non-Preemptive Access to Shared Resources in Hierarchical Real-Time Systems Marko Bertogna, Fabio Checconi, Dario Faggioli CRTS workshop – Barcelona, November,
Probabilistic Preemption Control using Frequency Scaling for Sporadic Real-time Tasks Abhilash Thekkilakattil, Radu Dobrin and Sasikumar Punnekkat.
Quantifying the Sub-optimality of Non-preemptive Real-time Scheduling Abhilash Thekkilakattil, Radu Dobrin and Sasikumar Punnekkat.
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
1 Reducing Queue Lock Pessimism in Multiprocessor Schedulability Analysis Yang Chang, Robert Davis and Andy Wellings Real-time Systems Research Group University.
Multiprocessor Real-time Scheduling Jing Ma 马靖. Classification Partitioned Scheduling In the partitioned approach, the tasks are statically partitioned.
1 Multiprocessor and Real-Time Scheduling Chapter 10 Real-Time scheduling will be covered in SYSC3303.
National Taiwan University Department of Computer Science and Information Engineering 1 Optimal Real-Time Scheduling for Uniform Multiprocessors 薛智文 助理教授.
BFair: An Optimal Scheduler for Periodic Real-Time Tasks
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
The Global Limited Preemptive Earliest Deadline First Feasibility of Sporadic Real-time Tasks Abhilash Thekkilakattil, Sanjoy Baruah, Radu Dobrin and Sasikumar.
6. Application mapping 6.1 Problem definition
Scheduling Real-Time tasks on Symmetric Multiprocessor Platforms Real-Time Systems Laboratory RETIS Lab Marko Bertogna Research Area: Multiprocessor Systems.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems RMS and EDF Schedulers.
CSE 522 Real-Time Scheduling (2)
1 Real-Time Scheduling. 2Today Operating System task scheduling –Traditional (non-real-time) scheduling –Real-time scheduling.
CSCI1600: Embedded and Real Time Software Lecture 24: Real Time Scheduling II Steven Reiss, Fall 2015.
Multiprocessor Fixed Priority Scheduling with Limited Preemptions Abhilash Thekkilakattil, Rob Davis, Radu Dobrin, Sasikumar Punnekkat and Marko Bertogna.
CSCI1600: Embedded and Real Time Software Lecture 23: Real Time Scheduling I Steven Reiss, Fall 2015.
Dynamic Priority Driven Scheduling of Periodic Task
Sandtids systemer 2.modul el. Henriks 1. forsøg m. Power Point.
Introductory Seminar on Research CIS5935 Fall 2008 Ted Baker.
CPU scheduling.  Single Process  one process at a time  Maximum CPU utilization obtained with multiprogramming  CPU idle :waiting time is wasted 2.
Lecture 6: Real-Time Scheduling
Distributed Process Scheduling- Real Time Scheduling Csc8320(Fall 2013)
Tardiness Bounds for Global EDF Scheduling on a Uniform Multiprocessor Kecheng Yang James H. Anderson Dept. of Computer Science UNC-Chapel Hill.
ECE 720T5 Fall 2012 Cyber-Physical Systems
Multiprocessor Real-Time Scheduling
Houssam-Eddine Zahaf, Giuseppe Lipari, Luca Abeni RTNS’17
Real Time Scheduling Mrs. K.M. Sanghavi.
Sanjoy Baruah The University of North Carolina at Chapel Hill
CSCI1600: Embedded and Real Time Software
Outline Scheduling algorithms Multi-processor scheduling
Limited-Preemption Scheduling of Sporadic Tasks Systems
CSCI1600: Embedded and Real Time Software
Chapter 6: CPU Scheduling
Ch 4. Periodic Task Scheduling
Presentation transcript:

New Schedulability Tests for Real- Time task sets scheduled by Deadline Monotonic on Multiprocessors Marko Bertogna, Michele Cirinei, Giuseppe Lipari Scuola S.Anna, Pisa, Italy

Overview Real-time multiprocessing Deadline-Monotonic (DM) for multiprocessors Existing schedulability tests for RM/DM An improved test for DM Existing schedulability bounds Improving the bound for fixed priority global scheduling

Real-time scheduling for multiprocessor platforms Platform: identical, uniform or heterogeneous Migration and priorities: MIGRATION PRIORITY FullAt job boundariesNot allowed (partitioning) StaticRM-global, DM-global, … RM-global, DM-global, … RM-FFDU, DM-WFIU, … Job-level dynamicEDF-global, fpEDF, … EDF, fpEDF, … EDF-FFDU, EDF-WFIU … Unrestricted dynamic pfair algorithms, LLF, … not useful

Multiprocessor DM CPU1 CPU2 CPU3 Global queue (ordered by relative deadline)    The first m tasks are scheduled upon the m CPUs     

 Multiprocessor DM CPU1 CPU2 CPU3 Global queue (ordered by relative deadline)   When a task finishes its execution, the next one in the queue is scheduled on the available CPU           

Multiprocessor DM CPU1 CPU2 CPU3 Global queue (ordered by relative deadline)   When a higher priority task arrives, it preempts the task with highest deadline among the executing tasks              

Multiprocessor DM CPU1 CPU2 CPU3 Global queue (ordered by relative deadline)   When another task ends its execution, the preempted task can resume its execution                Task    “migrated” from CPU3 to CPU1

Why fixed priority global scheduling? Advantages: Load balancing Number of preemptions Simple implementation Easy rescheduling Reclaiming Disadvantages: Cache affinity: HW mitigates migration cost Utilization bound lower than pfair algorithms

RM for uniprocessor systems Optimality among fixed priority systems Bounded number of preemptions Efficient implementations Easy sufficient schedulability test:

RM uniprocessor: necessary and sufficient test Response Time Analysis: Repeat: Until: Pseudopolynomial complexity

RM on multiprocessors Low utilization bound (Dhall ’ s effect) Bounded number of preemptions/migrations Good performances on average Schedulability tests (sufficient conditions): Andersson, Baruah, Jonsson (2002)  ABJ test Baker (2003)  BAK test Efficient implementations

T Dhall ’ s effect Example: m processors, n=m+1 tasks, D i = T i  1,…,  m = (1,T-1)  m+1 = (T,T) RM can fail at very low utilizations DEADLINE MISS

The ABJ test For implicit deadline systems (D i = T i ) using RM Linear complexity A task set is schedulable with RM on a platform with m identical processors if: Total utilization

The BAK test For constrained deadline systems (D i  T i ) Quadratic complexity A task set is schedulable with EDF on a platform with m identical processors if:  i = f(  i,  k ) k = C k /D k

Toward a better schedulability test for RM/DM Improve BAK when heavy tasks are considered Extend the ABJ test: for arbitrary task utilizations for constrained deadline systems

Can BAK be improved? I k > (D k -C k ) kk kk kk DEADLINE MISS CPU1 CPU2 CPU3 rkrk r k +D k I k = Total interference suffered by task  k I 2,k I 1,k I 2,k I 3,k I 4,k I 5,k I 6,k I 8,k I 5,k I 3,k I 7,k I 3,k I i,k = Interference of task  i on task  k

The BCL test  I i,k > m(D k -C k ) kk kk kk DEADLINE MISS CPU1 CPU2 CPU3 rkrk r k +D k I 2,k I 1,k I 2,k I 3,k I 4,k I 5,k I 6,k I 8,k I 5,k I 3,k I 7,k I 3,k IDEA: It is sufficient to consider at most the portion D k -C k of each term I i,k in the sum for all i,k: I i,k ≤ I k

The BCL test for DM A task set is schedulable with DM on m processors if and only if, for every task  k : Computing each I i,k requires exponential time To reduce the complexity: bound the interference with the load give an upper bound on the load Derive a sufficient condition to be checked for every task

The BCL test for DM  i = f(  i,D k ) k = C k /D k Complexity is O(n 2 ) A task set is schedulable with DM on m processors if, for every task  k :

Can ABJ be improved? New analysis for constrained deadline systems and priorities according to DM Improvement over ABJ: Preperiod deadline systems Arbitrary individual task utilization Higher global utilization Introduce to a better schedulability bound for the fixed priority global scheduling class of algorithms

Density and utilization based test for RM/DM A task set with constrained deadlines is schedulable with DM on m ≥ 2 identical processors if: A task set with implicit deadlines is schedulable with RM on m ≥ 2 identical processors if:

Improvement over existing bounds Bound more general than ABJ: taking we have as ABJ. Corrected (and extended) Baker ’ s bound [RTSS ’ 03]

Existing schedulability bounds for SMPs M=number of processors U=worst-case total utilization [Carpenter, Funk, Holman, Srinivasan, Anderson, Baruah]

Hybrid algorithms Treat differently heavy and light tasks Allow to overcome Dhall ’ s effect ALGORITHM RM-US[U th ] - if (U i >U th )  task has maximum priority - else task has priority according to RM ALGORITHM DM-DS[λ th ] - if (λ i >λ th )  task has maximum priority - else task has priority according to DM

RM-US[1/3] and DM-DS[1/3] A task set with constrained deadlines is schedulable with DM-DS[1/3] on m ≥ 2 identical processors if: A task set with implicit deadlines is schedulable with RM-US[1/3] on m ≥ 2 identical processors if:

Existing schedulability bounds for SMPs M=number of processors U=worst-case total utilization [Carpenter, Funk, Holman, Srinivasan, Anderson, Baruah]

Conclusions Extended BAK test for DM: BCL test that better behaves with heavy tasks Improved ABJ test: generalized to constrained deadline systems extended to arbitrary task utilizations/densities increased the schedulability bound for RM/DM Proposed hybrid algorithms (RM-US, DM-DS): improved the schedulability bound of the fixed priority global scheduling class of algorithms

THE END Marko: Michele: Peppe: