Improved Conditions for Bounded Tardiness under EPDF Fair Multiprocessor Scheduling UmaMaheswari Devi and Jim Anderson University of North Carolina at.

Slides:



Advertisements
Similar presentations
On the Complexity of Scheduling
Advertisements

Washington WASHINGTON UNIVERSITY IN ST LOUIS Real-Time: Periodic Tasks Fred Kuhns Applied Research Laboratory Computer Science Washington University.
Algorithm Design Methods Spring 2007 CSE, POSTECH.
Courseware Scheduling of Distributed Real-Time Systems Jan Madsen Informatics and Mathematical Modelling Technical University of Denmark Richard Petersens.
Harini Ramaprasad, Frank Mueller North Carolina State University Center for Embedded Systems Research Tightening the Bounds on Feasible Preemption Points.
THE UNIVERSITY of TEHRAN Mitra Nasri Sanjoy Baruah Gerhard Fohler Mehdi Kargahi October 2014.
Mehdi Kargahi School of ECE University of Tehran
ISE480 Sequencing and Scheduling Izmir University of Economics ISE Fall Semestre.
DP-F AIR : A Simple Model for Understanding Optimal Multiprocessor Scheduling Greg Levin † Shelby Funk ‡ Caitlin Sadowski † Ian Pye † Scott Brandt † †
Online Scheduling with Known Arrival Times Nicholas G Hall (Ohio State University) Marc E Posner (Ohio State University) Chris N Potts (University of Southampton)
Outline. Theorem For the two processor network, Bit C(Leader) = Bit C(MaxF) = 2[log 2 ((M + 2)/3.5)] and Bit C t (Leader) = Bit C t (MaxF) = 2[log 2 ((M.
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.
Greedy Algorithms Basic idea Connection to dynamic programming Proof Techniques.
Module 2 Priority Driven Scheduling of Periodic Task
Soft Real-Time Semi-Partitioned Scheduling with Restricted Migrations on Uniform Heterogeneous Multiprocessors Kecheng Yang James H. Anderson Dept. of.
How Many Boundaries Are Required to Ensure Optimality in Multiprocessor Scheduling? Geoffrey Nelissen Shelby Funk Dakai Zhu Joёl Goossens.
Computer Science Deadline Fair Scheduling: Bridging the Theory and Practice of Proportionate-Fair Scheduling in Multiprocessor Servers Abhishek Chandra.
1 Single Machine Deterministic Models Jobs: J 1, J 2,..., J n Assumptions: The machine is always available throughout the scheduling period. The machine.
CSE 421 Algorithms Richard Anderson Lecture 6 Greedy Algorithms.
Fakultät für informatik informatik 12 technische universität dortmund Classical scheduling algorithms for periodic systems Peter Marwedel TU Dortmund,
Ph. D. candidate Scuola Superiore S.Anna Pisa - Italy Designing Real-Time Software visiting prof. Baruah Univ. of North Carolina Chapel Hill - NC.
Embedded System Design Framework for Minimizing Code Size and Guaranteeing Real-Time Requirements Insik Shin, Insup Lee, & Sang Lyul Min CIS, Penn, USACSE,
Technische Universität Dortmund Classical scheduling algorithms for periodic systems Peter Marwedel TU Dortmund, Informatik 12 Germany 2007/12/14.
New Schedulability Tests for Real- Time task sets scheduled by Deadline Monotonic on Multiprocessors Marko Bertogna, Michele Cirinei, Giuseppe Lipari Scuola.
A Categorization of Real-Time Multiprocessor Scheduling Problems and Algorithms Presentation by Tony DeLuce CS 537 Scheduling Algorithms Spring Quarter.
Called as the Interval Scheduling Problem. A simpler version of a class of scheduling problems. – Can add weights. – Can add multiple resources – Can ask.
Fair Scheduling of Real-Time Tasks on Multiprocessors Uday Prabhala.
VOLTAGE SCHEDULING HEURISTIC for REAL-TIME TASK GRAPHS D. Roychowdhury, I. Koren, C. M. Krishna University of Massachusetts, Amherst Y.-H. Lee Arizona.
Jim Anderson 1 Multiprocessor Fair Scheduling The Case for Multiprocessor Fair Scheduling James H. Anderson University of North Carolina at Chapel Hill.
The Design of an EDF- Scheduled Resource-Sharing Open Environment Nathan Fisher Wayne State University Marko Bertogna Scuola Superiore Santa’Anna of Pisa.
Quantifying the sub-optimality of uniprocessor fixed priority non-pre-emptive scheduling Robert Davis 1, Laurent George 2, Pierre Courbin 3 1 Real-Time.
Quantifying the Sub-optimality of Non-preemptive Real-time Scheduling Abhilash Thekkilakattil, Radu Dobrin and Sasikumar Punnekkat.
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.
Euro-Par, A Resource Allocation Approach for Supporting Time-Critical Applications in Grid Environments Qian Zhu and Gagan Agrawal Department of.
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
The Global Limited Preemptive Earliest Deadline First Feasibility of Sporadic Real-time Tasks Abhilash Thekkilakattil, Sanjoy Baruah, Radu Dobrin and Sasikumar.
The 32nd IEEE Real-Time Systems Symposium Meeting End-to-End Deadlines through Distributed Local Deadline Assignment Shengyan Hong, Thidapat Chantem, X.
Object-Oriented Design and Implementation of the OE-Scheduler in Real-time Environments Ilhyun Lee Cherry K. Owen Haesun K. Lee The University of Texas.
6. Application mapping 6.1 Problem definition
CSC 8420 Advanced Operating Systems Georgia State University Yi Pan.
Outline Introduction Minimizing the makespan Minimizing total flowtime
KUKUM Real Time System 1/21 Module 2 Real Time System Scheduling Lecture 05.
Computer Science & Engineering, ASU1/17 Pfair Scheduling of Periodic Tasks with Allocation Constraints on Multiple Processors Deming Liu and Yann-Hang.
Special Class on Real-Time Systems
CSE 522 Real-Time Scheduling (2)
CSCI1600: Embedded and Real Time Software Lecture 24: Real Time Scheduling II Steven Reiss, Fall 2015.
Common Approaches to Real-Time Scheduling Clock-driven (time-driven) schedulers Priority-driven schedulers Examples of priority driven schedulers Effective.
CSCI1600: Embedded and Real Time Software Lecture 23: Real Time Scheduling I Steven Reiss, Fall 2015.
Dynamic Priority Driven Scheduling of Periodic Task
Classical scheduling algorithms for periodic systems Peter Marwedel TU Dortmund, Informatik 12 Germany 2012 年 12 月 19 日 These slides use Microsoft clip.
Computer Science Department University of Pittsburgh Multiple-Resource Periodic Scheduling Problem: how much fairness is necessary? Dakai Zhu, Daniel Mossé.
Introduction to Real-Time Systems
Mok & friends. Resource partition for real- time systems (RTAS 2001)
Introductory Seminar on Research CIS5935 Fall 2008 Ted Baker.
Determining Optimal Processor Speeds for Periodic Real-Time Tasks with Different Power Characteristics H. Aydın, R. Melhem, D. Mossé, P.M. Alvarez University.
Studying and Implementing Multi-processor based Real-time Scheduling Algorithms in Linux Musfiq Niaz Rahman
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.
Embedded System Scheduling
Multiprocessor Real-Time Scheduling
CprE 458/558: Real-Time Systems
Sanjoy Baruah The University of North Carolina at Chapel Hill
Chapter 5: CPU Scheduling
Richard Anderson Lecture 6 Greedy Algorithms
Richard Anderson Lecture 7 Greedy Algorithms
Anand Srinivasan Department of Computer Science
Presentation transcript:

Improved Conditions for Bounded Tardiness under EPDF Fair Multiprocessor Scheduling UmaMaheswari Devi and Jim Anderson University of North Carolina at Chapel Hill

WPDRTS ‘042 Outline Introduction & Motivation Overview of Pfair scheduling Contributions Summary

WPDRTS ‘043 Context Scheduling under Earliest-Pseudo-Deadline- First EPDF is non-optimal Why EPDF when there exist optimal Pfair scheduling algorithms?

WPDRTS ‘044 Pfair Scheduling Quantum-length subtasks are schedulable entities. Subtasks prioritized by their deadlines. Resolving priority ties carefully is crucial for optimality. Optimal algorithms use non-trivial tie- breaking rules.

WPDRTS ‘045 Why EPDF? Tie-breakers unnecessary or unacceptable for soft and dynamic real-time applications. Soft real-time systems –May miss deadlines occasionally. –tardiness(J i ) = max(0, (t-d(J i )) Dynamic systems –Tasks leave and join –Spare capacity reallocated by changing task parameters (by “reweighting”). Don’t use tie-breaking rules for such systems. –Just use EPDF

WPDRTS ‘046 Prior EPDF-based Results (Srinivasan and Anderson) Optimal on up to 2 processors. Optimal on M>2 processors if –The weight of each task at most 1/(M-1). Ensures a tardiness of at most q quanta if –The weight of each task is at most q/(q+1). Weight  ½  tardiness  1

WPDRTS ‘047 Open Issues Can tardiness under EPDF exceed one quantum? If yes, can the weight restrictions be improved?

WPDRTS ‘048 Outline Introduction & Motivation Overview of Pfair scheduling Contributions Summary

WPDRTS ‘049 Pfair Scheduling Introduced by Baruah et al. (’93) Proportionate progress (uniform rate of execution) –Means for optimally scheduling recurrent real-time tasks on multiprocessors in polynomial time. Proportionate progress with respect to: –Task weight — wt(T) wt(T) = T.e/T.p  1 –Ideal fluid scheduler Allocation to T in [t 1,t 2 ) = wt(T)  (t 2  t 1 )

WPDRTS ‘0410 Lag Allocation error with respect to the ideal system –lag(T, t, S) = ideal(T, t) – actual(T, t, S) Positive  behind, negative  ahead, zero  punctual allocation error for task T at time t total allocation to T in the ideal schedule over [0,t) total allocation to T in the schedule under consideration over [0,t)

WPDRTS ‘0411 Pfairness Example: Task T with wt(T) = 3/8 3/ Ideal Allocation Possible allocations to a periodic task Lag

WPDRTS ‘0412 Pfairness Example: Task T with wt(T) = 3/8 3/ Ideal Allocation Possible allocations to a periodic task Lag A schedule is Pfair iff (  T, t ::  1 < lag(T, t) < 1)

WPDRTS ‘0413 Subtasks Pfairness ensured by –Scheduling subtasks Each task is broken into a sequence of quantum-length subtasks. –Time-driven, quantum-based scheduling Scheduling decisions at quantum boundaries. Time is integral, measured in units of quanta. Interval [i, i+1) – is i th quantum or time slot. Schedules at most M subtasks (M – no. of processors). Task migrations are allowed.

WPDRTS ‘0414 Task Models Example: Task T with wt(T) = 3/8 3/ /812/818/8330/836/842/86 T1T1 T2T2 T3T3 T4T4 T5T5 T6T /8 Periodic Total Ideal Allocation r(T 1 )d(T 1 ) f(T 6,13)

WPDRTS ‘0415 Task Models Example: Task T with wt(T) = 3/ Sporadic Total Ideal Allocation 3/8 1 06/812/818/8330/836/842/863 T1T1 T2T2 T3T3 T4T4 T5T5 T6T6

WPDRTS ‘0416 Task Models Example: Task T with wt(T) = 3/8 3/ /812/818/8330/836/842/ Intra-sporadic Total Ideal Allocation T1T1 T2T2 T3T3 T4T4 T5T5 T6T6

WPDRTS ‘0417 Task Models Example: Task T with wt(T) = 3/8 3/ /812/818/8330/836/842/ Generalized Intra-sporadic Total Ideal Allocation T1T1 T3T3 T4T4 T5T5 T6T6 Theorem (Baruah et al., Anderson & Srinivasan): A Pfair schedule exists for a GIS system  on M Processors iff.. …. Theorem (Baruah et al., Anderson & Srinivasan): A Pfair schedule exists for a GIS system  on M Processors iff.. ….

WPDRTS ‘0418 Pfair-based Scheduling Algorithms PF (Baruah et al.), PD (Baruah et al.), PD 2 (Anderson and Srinivasan) –Prioritize subtasks on an earliest-pseudo-deadline-first basis. –Ties among subtasks cannot be resolved arbitrarily. –Differ in tie-breaking rules. BF (Zhu et al.) –For reduced context switches. PD Q (QRFair) (Anderson et al.) –For efficient and nearly fair reallocation of spare capacity.

WPDRTS ‘0419 Outline Introduction & Motivation Background on Pfair scheduling Contributions Summary

WPDRTS ‘0420 Results of This Paper Tardiness under EPDF may exceed three quanta. EPDF ensures a tardiness of at most q quanta if the weight of each task is at most (q+1)/(q+2). –Weight  2/3  tardiness  1 Without any restrictions, tardiness under EPDF is at most

WPDRTS ‘0421 Counterexample Tardiness under EPDF may exceed 1 quantum. –10 processors –13 tasks 4 tasks of weight 1/2 3 tasks of weight 3/4 6 tasks of weight 23/24 –A subtask can miss its deadline by two at time 48. Examples of task systems with tardiness of 3 and 4 are provided in the paper.

WPDRTS ‘0422 System Lag – LAG Difference between the total allocation that  receives over [0, t) in the ideal and actual schedules. Simply, the sum of the lags of individual tasks. LAG( , t) =  lag(T, t) T 

WPDRTS ‘0423 Proof Sketch (Tardiness of 1) Theorem to prove: –EPDF ensures a tardiness of at most one quantum for a GIS task system  on M processors if the following hold. (  T   :: wt(T)  2/3) (  T  wt(T)  M) Proof by contradiction.

WPDRTS ‘0424 Proof Sketch (Tardiness of 1) Let t d be the earliest time that a subtask in a  misses its deadline by 2 under EPDF. 01 … tdtd LAG  M+1LAG = 0 tt+1 LAG < M+1LAG  M+1 h idle processors At most M-h tasks are scheduled at t Lags of tasks not scheduled at t is 0 or less at t+1 Suffices to determine the lags at t+1 of the M-h tasks scheduled Setup similar to that of Srinivasan and Anderson … misses deadline by 2

WPDRTS ‘0425 Proof Sketch (Tardiness of 1) 01 tdtd tt+1 h idle processors Task T scheduled at t lag(T, t+1) < 0 CASE 1: d(T i ) > t+1 T1T1 T2T2 T3T3 Recall: … LAG  M+1LAG = 0 LAG < M+1LAG  M+1 …

WPDRTS ‘0426 Proof Sketch (Tardiness of 1) 01 tdtd tt+1 lag(T, t+1) = 0 lag(T, t+1) < wt(T) CASE 2: d(T i ) = t+1 … LAG  M+1LAG = 0 LAG < M+1LAG  M+1 … h idle processors Task T scheduled at t T1T1 T2T2 T3T3 Recall:

WPDRTS ‘0427 T1T1 T2T2 T3T3 Recall: Proof Sketch (Tardiness of 1) 01 tdtd tt+1 lag(T, t+1) = 1 lag(T, t+1) = wt(T) CASE 3(a): d(T i ) = t … LAG  M+1LAG = 0 LAG < M+1LAG  M+1 … h idle processors Task T scheduled at t

WPDRTS ‘0428 Proof Sketch (Tardiness of 1) 01 tdtd tt+1 TiTi T i+1 T i+2 f(T i+2, t) is maximized if T i is the first subtask of a job. However, we show that the number of such subtasks is bounded! If the weight of each task is at most 2/3, then the sum of the lags of the tasks scheduled at t is less than M+1. CASE 3(b): d(T i ) = t … LAG  M+1LAG = 0 LAG < M+1LAG  M+1 … h idle processors Task T scheduled at t lag(T, t+1) = 1+f(T i+2,t) T1T1 T2T2 T3T3 Recall:

WPDRTS ‘0429 Other Results The same proof is generalized for a tardiness of q. Can be used to show that tardiness of an arbitrary feasible task set is less than maximum of the execution times over all the tasks. Can the weight restrictions be improved??

WPDRTS ‘0430 Summary Showed that tardiness under EPDF can exceed 1 quantum. Improved per-task weight restrictions for bounded tardiness under EPDF. Other related work: –Supporting multiple tardiness classes –Bounds on schedulable utilization of EPDF