Integrated Control and Scheduling James Yang, Steve Sheng, Bill Li Instructor: Prof. Insup Lee.

Slides:



Advertisements
Similar presentations
Feedback Control Real- time Scheduling James Yang, Hehe Li, Xinguang Sheng CIS 642, Spring 2001 Professor Insup Lee.
Advertisements

Simulation of Feedback Scheduling Dan Henriksson, Anton Cervin and Karl-Erik Årzén Department of Automatic Control.
Feedback Control Real-Time Scheduling: Framework, Modeling, and Algorithms Chenyang Lu, John A. Stankovic, Gang Tao, Sang H. Son Presented by Josh Carl.
Real Time Scheduling.
CPE555A: Real-Time Embedded Systems
Real- time Dynamic Voltage Scaling for Low- Power Embedded Operating Systems Written by P. Pillai and K.G. Shin Presented by Gaurav Saxena CSE 666 – Real.
Courseware Scheduling of Distributed Real-Time Systems Jan Madsen Informatics and Mathematical Modelling Technical University of Denmark Richard Petersens.
Real Time Scheduling Terminologies define Fixed Priority Scheduler
CSE 522 Real-Time Scheduling (4)
Mehdi Kargahi School of ECE University of Tehran
Real-Time Scheduling CIS700 Insup Lee October 3, 2005 CIS 700.
Task Allocation and Scheduling n Problem: How to assign tasks to processors and to schedule them in such a way that deadlines are met n Our initial focus:
Module 2 Priority Driven Scheduling of Periodic Task
Chapter 6 Dynamic Priority Servers
Scheduling Theory ITV Multiprogramming and Real-Time Programs Anders P. Ravn Aalborg University May 2009.
Roadmap  Introduction  Concurrent Programming  Communication and Synchronization  Completing the Java Model  Overview of the RTSJ  Memory Management.
Courseware Basics of Real-Time Scheduling Jan Madsen Informatics and Mathematical Modelling Technical University of Denmark Richard Petersens Plads, Building.
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.
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
CprE 458/558: Real-Time Systems
Spring 2002Real-Time Systems (Shin) Rate Monotonic Analysis Assumptions – A1. No nonpreemptible parts in a task, and negligible preemption cost –
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.
Module 2 Clock-Driven Scheduling
Probabilistic Preemption Control using Frequency Scaling for Sporadic Real-time Tasks Abhilash Thekkilakattil, Radu Dobrin and Sasikumar Punnekkat.
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.
Welcome!. PhD Dissertation Defense PhD Candidate: Wenming Li Advisor: Dr. Krishna M. Kavi Committee: Dr. Krishna M. Kavi Dr. Robert Akl Dr. Phil Sweany.
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.
Prepare by : Ihab shahtout.  Overview  To give an overview of fixed priority schedule  Scheduling and Fixed Priority Scheduling.
CS244-Introduction to Embedded Systems and Ubiquitous Computing Instructor: Eli Bozorgzadeh Computer Science Department UC Irvine Winter 2010.
5 May CmpE 516 Fault Tolerant Scheduling in Multiprocessor Systems Betül Demiröz.
CSC 8420 Advanced Operating Systems Georgia State University Yi Pan.
Undergraduate course on Real-time Systems Linköping 1 of 45 Autumn 2009 TDDC47: Real-time and Concurrent Programming Lecture 5: Real-time Scheduling (I)
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems RMS and EDF Schedulers.
CS244-Introduction to Embedded Systems and Ubiquitous Computing Instructor: Eli Bozorgzadeh Computer Science Department UC Irvine Winter 2010.
CSE 522 Real-Time Scheduling (2)
Real Time Operating Systems Schedulability - Part 2 Course originally developed by Maj Ron Smith 12/20/2015Dr Alain Beaulieu1.
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 G.Anuradha Ref:- Stallings. Real time computing Correctness of the system depends not only on the logical result of computation,
Chapter 3: Real-Time Scheduling and Schedulability Analysis Albert M. K. Cheng.
Introduction to Embedded Systems Rabie A. Ramadan 5.
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.
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.
Lecture 6: Real-Time Scheduling
Distributed Process Scheduling- Real Time Scheduling Csc8320(Fall 2013)
Undergraduate course on Real-time Systems Linköping TDDD07 – Real-time Systems Lecture 1: Introduction & Scheduling I Simin Nadjm-Tehrani Real-time Systems.
Real-Time Operating Systems RTOS For Embedded systems.
Networked Embedded Control System - Integration of control and computing Moonju Park Dept. of Computer Science & Engineering University of Incheon 1.
Networked Embedded Control System - Integration of control and computing Moonju Park Dept. of Computer Science & Engineering University of Incheon 1.
Clock-Driven Scheduling (in-depth) Task Scheduler: i := 0; k := 0; BEGIN LOOP i := i+1; k:= i mod N; IF J(t k-1 )is empty THEN wakeup(aperiodic) ELSE wakeup(J(t.
Embedded System Scheduling
Wayne Wolf Dept. of EE Princeton University
EEE 6494 Embedded Systems Design
Lecture 24: Process Scheduling Examples and for Real-time Systems
Chapter 6 Dynamic Priority Servers
Elastic Task Model For Adaptive Rate Control
CSCI1600: Embedded and Real Time Software
Scheduling Basic Concepts Ref: Hard Real-Time Computing Systems Giorgio Buttazzo Ref: Real-Time Systems & Software Alan Shaw Processes - Tasks.
CSCI1600: Embedded and Real Time Software
Feedback Control Real-time Scheduling
Ch 4. Periodic Task Scheduling
Presentation transcript:

Integrated Control and Scheduling James Yang, Steve Sheng, Bill Li Instructor: Prof. Insup Lee

Outline Motivation Periodic scheduling Control Concepts Robust scheduling

Motivation Misunderstanding between control and scheduling communities –C: computer platforms provide deterministic, fixed sampling period –S: control tasks have: fixed periods hard deadlines known worst-case execution times (WCETs)

The Vision Dynamic, flexible, interactive integrated control and scheduling environment –Control performance vs. computing resource –Relax known WCET On-line information exchange –Desired period of control task –Nominal execution time –Desired deadline

Delete,Real-Time Scheduling Concept about task –Periodic, sporadic, aperiodic –Worst case CPU time C, deadline D Scheduling of CPU time for periodic tasks –Static cyclic executive scheduling Off-line to generate execution table –Priority-based scheduling Assumption: Di=Ti, no communication, ideal kernel Earliest deadline first(EDF) Rate-monotonic(RM)

Periodic Task Scheduling EDF –If U<=1, then all deadlines will be met –Processor fully utilized with deadlines met RM –Tasks with shorter period get higher priority –If U<=n(2^1/n-1) –Iff Ri<Di for all tasks –Bad performance when Di<<Ti

Implementation and Scheduling of Periodic Control Loops What is control loop? –Three parts: data collection, algorithm computation, output transmission –Periodical in most cases Implementation –Single-task approach –Multiple-task approach

Loop Timing Constrains The period should be constant Input-output latency –Decrease stability, limits performance –Ignore if minimized, otherwise be considered samplecontrolsamplecontrol period latency

Single-task Implementation LOOP Await clock interrupt Data collection Algorithm calculation Output transmission END CurrentTime(t) LOOP Data collection Algorithm calculation Output transmission t = t+h WaitUntil(t) END

Control Delay Separate algorithm calculation –Calculate output: make use of current sample information –Update state: update controller states CurrentTime(t) LOOP Data collection calculate output Output transmission update state t = t+h WaitUntil(t) END

Timing Requirement Data collection: same instant every period Calculate output: ASA sample available Output transmission: immediately after CO, or at fixed instant after data collection Update state: before next period, or before release of next “calculate output”

Scheduling of Control Tasks Fixed-priority scheduling –Describe controller as period tasks –Rate-monotonic is optimal if D=T –Deadline-monotonic is optimal if D<=T, used to improve important long period control tasks

Deadline Assignment Period T and execution time C are known Deadlines D must be assigned, optimal deadline assignment is NP-hard Effective-deadline-monotonic assignment –Later subtasks given just enough time Dij=Di-Sum[j+1<=k<=ni]Cik

Scheduling Under Overload Conditions Relaxation of known worst-case execution time –Treat longer-than-worst actual execution time as overload conditions –Algorithm: associate positive value with task Complete the most important tasks Avoid domino effect

Robust Aperiodic Scheduling Real-time systems should handle –Periodic tasks Hard deadlines –Aperiodic tasks—irregular arrival times Soft deadlines –minimize average response time Firm deadlines –Reject tasks going to be late –Maximize completed tasks –Maximize system value

Assumptions All periodic tasks have hard deadlines, known constant period and WCET Arrival time of aperiodic tasks is unknown WCET of aperiodicities is known on arrival Aperiodicities have firm deadlines and can be rejected

Terminology J: a set of aperiodic Ji ordered by deadline ri:arrival time of Ji Ci:max computation time of Ji Ci’:actual computation time of Ji di:deadline of Ji mi:deadline tolerance vi:task value(relative importance) fi:finishing time Ei:exceeding time

Total Bandwidth Algorithm Assign a suitable deadline –dk=max(rk, dk-1)+Ck/Us –d0=0 Schedule it as periodic tasks

TB Algorithm: Example

Resource Reclaiming TB behavior depends on est. max time –What if the value is overestimated? Correct the assigned deadlines –di=ri’+Ci/Us –ri’=max(ri, d’i-1, fi-1) –At task completion, di’=ri’+Ci’/US

Resource Reclaiming: example

Schedulability Theorem: given a set n of periodic tasks with Up and a TB server with Us, the whole set is schedulable iff Up+Us<=1 Lemma: in [t1,t2], if Cape is the total execution time of aperiodic tasks, then Cape<=(t2-t1)Us

Robust Scheduling What if overload? –Assign large bandwidth to server –Introduce overload awareness RED algorithm