Real-Time Scheduling CIS700 Insup Lee October 3, 2005 CIS 700.

Slides:



Advertisements
Similar presentations
Washington WASHINGTON UNIVERSITY IN ST LOUIS Real-Time: Periodic Tasks Fred Kuhns Applied Research Laboratory Computer Science Washington University.
Advertisements

Real Time Scheduling.
CPE555A: Real-Time Embedded Systems
Real-time concepts Lin Zhong ELEC424, Fall Real time Correctness – Logical correctness – Timing Hard vs. Soft – Hard: lateness is intolerable Pass/Fail.
Tasks Periodic The period is the amount of time between each iteration of a regularly repeated task Time driven The task is automatically activated by.
Module 2 Priority Driven Scheduling of Periodic Task
CPU SCHEDULING RONG ZHENG. OVERVIEW Why scheduling? Non-preemptive vs Preemptive policies FCFS, SJF, Round robin, multilevel queues with feedback, guaranteed.
Problem 11: Complex Hierarchical Scheduling Full Processor FP T3T2 T4T1 EDF T6T5 RM T10T9T8T7 EDFSPS DPS 10 Tasks - with jitter - with bursts - deadline.
Courseware Scheduling Uniprocessor Real-Time Systems Jan Madsen Informatics and Mathematical Modelling Technical University of Denmark Richard Petersens.
26 April A Compositional Framework for Real-Time Guarantees Insik Shin and Insup Lee Real-time Systems Group Systems Design Research Lab Dept. of.
Periodic Task Scheduling
Real-Time System: Introduction
EE 249, Fall Discussion: Scheduling Haibo Zeng Amit Mahajan.
Embedded Systems Exercise 3: Scheduling Real-Time Periodic and Mixed Task Sets 18. May 2005 Alexander Maxiaguine.
Chapter 5: CPU Scheduling
Scheduling Algorithms for Multiprogramming in a Hard-Real-Time Environment Presented by Pete Perlegos C.L. Liu and James W. Layland.
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
Misconceptions About Real-time Computing : A Serious Problem for Next-generation Systems J. A. Stankovic, Misconceptions about Real-Time Computing: A Serious.
Real-Time Operating System Chapter – 8 Embedded System: An integrated approach.
October 3, 2005CIS 7001 Compositional Real-Time Scheduling Framework Insik Shin.
Real Time Process Control (Introduction)
Binghamton University EngiNet™ State University of New York
MM Process Management Karrie Karahalios Spring 2007 (based off slides created by Brian Bailey)
Quantifying the sub-optimality of uniprocessor fixed priority non-pre-emptive scheduling Robert Davis 1, Laurent George 2, Pierre Courbin 3 1 Real-Time.
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
Scheduling policies for real- time embedded systems.
Real-Time Systems Mark Stanovich. Introduction System with timing constraints (e.g., deadlines) What makes a real-time system different? – Meeting timing.
Analysis of Real-Time Multi-Modal FP-Scheduled Systems with Non-Preemptible Regions Authors: Masud Ahmed (presenting) Pradeep Hettiarachchi Nathan Fisher.
Real Time Scheduling Telvis Calhoun CSc Outline Introduction Real-Time Scheduling Overview Tasks, Jobs and Schedules Rate/Deadline Monotonic Deferrable.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 31 – Multimedia OS (Part 1) Klara Nahrstedt Spring 2011.
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
Real-Time Scheduling CS 3204 – Operating Systems Lecture 20 3/3/2006 Shahrooz Feizabadi.
Survey of Real Time Databases Telvis Calhoun CSc 6710.
6. Application mapping 6.1 Problem definition
A Deferrable Scheduling Algorithm for Real-Time Transactions Maintaining Data Freshness Ming Xiong Bell Labs Research, Lucent Technologies Song Han, Kam-yiu.
RTOS task scheduling models
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems RMS and EDF Schedulers.
Special Class on Real-Time Systems
CSE 522 Real-Time Scheduling (2)
Real-Time Scheduling CS 3204 – Operating Systems Lecture 13 10/3/2006 Shahrooz Feizabadi.
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.
Real-Time Scheduling II: Compositional Scheduling Framework Insik Shin Dept. of Computer Science KAIST.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
Introduction to Embedded Systems Rabie A. Ramadan 5.
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.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 31 – Process Management (Part 1) Klara Nahrstedt Spring 2009.
Introduction to Real-Time Systems
Mok & friends. Resource partition for real- time systems (RTAS 2001)
For a good summary, visit:
Undergraduate course on Real-time Systems Linköping University TDDD07 Real-time Systems Lecture 2: Scheduling II Simin Nadjm-Tehrani Real-time Systems.
Unit - I Real Time Operating System. Content : Operating System Concepts Real-Time Tasks Real-Time Systems Types of Real-Time Tasks Real-Time Operating.
CS Spring 2010 CS 414 – Multimedia Systems Design Lecture 32 – Multimedia OS Klara Nahrstedt Spring 2010.
Lecture 6: Real-Time Scheduling
Distributed Process Scheduling- Real Time Scheduling Csc8320(Fall 2013)
Real-Time Operating Systems RTOS For Embedded systems.
Embedded System Scheduling
Chapter 20: Multimedia Systems
Chapter 20: Multimedia Systems
EEE 6494 Embedded Systems Design
Lecture 24: Process Scheduling Examples and for Real-time Systems
Chapter 20: Multimedia Systems
Realtime Scheduling Algorithms
Processes and operating systems
Chapter 20: Multimedia Systems
Chapter 20: Multimedia Systems
Ch 4. Periodic Task Scheduling
Chapter 20: Multimedia Systems
Real-Time Scheduling David Ferry CSCI 3500 – Operating Systems
Presentation transcript:

Real-Time Scheduling CIS700 Insup Lee October 3, 2005 CIS 700

Outline Real-time systems Real-time scheduling algorithms Fixed-priority algorithm (RM) Dynamic-priority algorithm (EDF) October 3, 2005 CIS 700

Real-Time Systems Definition Performance measure Key property Systems whose correctness depends on their temporal aspects as well as their functional aspects Performance measure Timeliness on timing constraints (deadlines) Speed/average case performance are less significant. Key property Predictability on timing constraints October 3, 2005 CIS 700

Real-Time System Example Digital control systems periodically performs the following job: senses the system status and actuates the system according to its current status Sensor Control-Law Computation Actuator October 3, 2005 CIS 700

Real-Time System Example Multimedia applications periodically performs the following job: reads, decompresses, and displays video and audio streams Multimedia October 3, 2005 CIS 700

Fundamental Real-Time Issue To specify the timing constraints of real-time systems To achieve predictability on satisfying their timing constraints, possibly, with the existence of other real-time systems October 3, 2005 CIS 700

Scheduling Framework Example Digital Controller Multimedia OS Scheduler CPU October 3, 2005 CIS 700

Real-Time Workload Job (unit of work) Attributes a computation, a file read, a message transmission, etc Attributes Resources required to make progress Timing parameters Absolute deadline Released Execution time Relative deadline October 3, 2005 CIS 700

Real-Time Task Task : a sequence of similar jobs 5 10 15 Periodic task (p,e) Its jobs repeat regularly Period p = inter-release time (0 < p) Execution time e = maximum execution time (0 < e < p) Utilization U = e/p 5 10 15 October 3, 2005 CIS 700

Deadlines: Hard vs. Soft Hard deadline Disastrous or very serious consequences may occur if the deadline is missed Validation is essential : can all the deadlines be met, even under worst-case scenario? Deterministic guarantees Soft deadline Ideally, the deadline should be met for maximum performance. The performance degrades in case of deadline misses. Best effort approaches / statistical guarantees October 3, 2005 CIS 700

Schedulability Property indicating whether a real-time system (a set of real-time tasks) can meet their deadlines (4,1) (5,2) (7,2) October 3, 2005 CIS 700

Real-Time Scheduling Determines the order of real-time task executions Static-priority scheduling Dynamic-priority scheduling (4,1) (5,2) 5 10 15 (7,2) October 3, 2005 CIS 700

RM (Rate Monotonic) Optimal static-priority scheduling It assigns priority according to period A task with a shorter period has a higher priority Executes a job with the shortest period T1 (4,1) T2 (5,2) 5 10 15 T3 (7,2) October 3, 2005 CIS 700

RM (Rate Monotonic) Executes a job with the shortest period T1 (4,1) (5,2) 5 10 15 T3 (7,2) October 3, 2005 CIS 700

RM (Rate Monotonic) Executes a job with the shortest period Deadline Miss ! T1 (4,1) T2 (5,2) 5 10 15 T3 (7,2) October 3, 2005 CIS 700

Response Time Response time T1 (4,1) T2 (5,2) 5 10 15 T3 (10,2) Duration from released time to finish time T1 (4,1) T2 (5,2) 5 10 15 T3 (10,2) October 3, 2005 CIS 700

Response Time Response time Response Time T1 (4,1) T2 (5,2) 5 10 15 T3 Duration from released time to finish time Response Time T1 (4,1) T2 (5,2) 5 10 15 T3 (10,2) October 3, 2005 CIS 700

Response Time Response Time (ri) [Audsley et al., 1993] T1 (4,1) T2 HP(Ti) : a set of higher-priority tasks than Ti T1 (4,1) T2 (5,2) 5 10 T3 (10,2) 5 10 October 3, 2005 CIS 700

RM - Schedulability Analysis Real-time system is schedulable under RM if and only if ri ≤ pi for all task Ti(pi,ei) Joseph & Pandya, “Finding response times in a real-time system”, The Computer Journal, 1986. October 3, 2005 CIS 700

RM – Utilization Bound Real-time system is schedulable under RM if ∑Ui ≤ n (21/n-1) Liu & Layland, “Scheduling algorithms for multi-programming in a hard-real-time environment”, Journal of ACM, 1973. October 3, 2005 CIS 700

RM – Utilization Bound Real-time system is schedulable under RM if ∑Ui ≤ n (21/n-1) Example: T1(4,1), T2(5,1), T3(10,1), ∑Ui = 1/4 + 1/5 + 1/10 = 0.55 3 (21/3-1) ≈ 0.78 Thus, {T1, T2, T3} is schedulable under RM. October 3, 2005 CIS 700

RM – Utilization Bound Real-time system is schedulable under RM if ∑Ui ≤ n (21/n-1) October 3, 2005 CIS 700

EDF (Earliest Deadline First) Optimal dynamic priority scheduling A task with a shorter deadline has a higher priority Executes a job with the earliest deadline T1 (4,1) T2 (5,2) 5 10 15 T3 (7,2) October 3, 2005 CIS 700

EDF (Earliest Deadline First) Executes a job with the earliest deadline T1 (4,1) T2 (5,2) 5 10 15 T3 (7,2) October 3, 2005 CIS 700

EDF (Earliest Deadline First) Executes a job with the earliest deadline T1 (4,1) T2 (5,2) 5 10 15 T3 (7,2) October 3, 2005 CIS 700

EDF (Earliest Deadline First) Executes a job with the earliest deadline T1 (4,1) T2 (5,2) 5 10 15 T3 (7,2) October 3, 2005 CIS 700

EDF (Earliest Deadline First) Optimal scheduling algorithm if there is a schedule for a set of real-time tasks, EDF can schedule it. T1 (4,1) T2 (5,2) 5 10 15 T3 (7,2) October 3, 2005 CIS 700

Processor Demand Bound Demand Bound Function : dbf(t) the maximum processor demand by workload over any interval of length t t T1 (4,1) T2 (5,2) 5 10 15 T3 (7,2) October 3, 2005 CIS 700

EDF - Schedulability Analysis Real-time system is schedulable under EDF if and only if dbf(t) ≤ t for all interval t Baruah et al. “Algorithms and complexity concerning the preemptive scheduling of periodic, real-time tasks on one processor”, Journal of Real-Time Systems, 1990. Demand Bound Function : dbf(t) the maximum processor demand by workload over any interval of length t October 3, 2005 CIS 700

EDF – Utilization Bound Real-time system is schedulable under EDF if and only if ∑Ui ≤ 1 Liu & Layland, “Scheduling algorithms for multi-programming in a hard-real-time environment”, Journal of ACM, 1973. October 3, 2005 CIS 700

EDF – Overload Conditions Domino effect during overload conditions Example: T1(4,3), T2(5,3), T3(6,3), T4(7,3) Deadline Miss ! T1 T2 T3 T4 3 5 6 7 Better schedules : T1 5 7 T3 3 6 T1 5 7 T4 3 6 October 3, 2005 CIS 700

RM vs. EDF Rate Monotonic EDF Simpler implementation, even in systems without explicit support for timing constraints (periods, deadlines) Predictability for the highest priority tasks EDF Full processor utilization Misbehavior during overload conditions For more details: Buttazzo, “Rate monotonic vs. EDF: Judgement Day”, EMSOFT 2003. October 3, 2005 CIS 700