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

Slides:



Advertisements
Similar presentations
CprE 458/558: Real-Time Systems
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.
QoS-based Management of Multiple Shared Resources in Dynamic Real-Time Systems Klaus Ecker, Frank Drews School of EECS, Ohio University, Athens, OH {ecker,
Achieving Elasticity for Cloud MapReduce Jobs Khaled Salah IEEE CloudNet 2013 – San Francisco November 13, 2013.
Intro. ANN & Fuzzy Systems Lecture 33 Fuzzy Logic Control (I)
Dynamic Thread Assignment on Heterogeneous Multiprocessor Architectures Pree Thiengburanathum Advanced computer architecture Oct 24,
Resource Management §A resource can be a logical, such as a shared file, or physical, such as a CPU (a node of the distributed system). One of the functions.
CPE555A: Real-Time Embedded Systems
DEXA 2005 Control-based Quality Adaptation in Data Stream Management Systems (DSMS) Yicheng Tu†, Mohamed Hefeeda‡, Yuni Xia†, Sunil Prabhakar†, and Song.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems (m, k)-firm tasks and QoS enhancement.
Real-Time Scheduling CIS700 Insup Lee October 3, 2005 CIS 700.
CPU SCHEDULING RONG ZHENG. OVERVIEW Why scheduling? Non-preemptive vs Preemptive policies FCFS, SJF, Round robin, multilevel queues with feedback, guaranteed.
Towards Feasibility Region Calculus: An End-to-end Schedulability Analysis of Real- Time Multistage Execution William Hawkins and Tarek Abdelzaher Presented.
Preemptive Behavior Analysis and Improvement of Priority Scheduling Algorithms Xiaoying Wang Northeastern University China.
Scheduling for Embedded Real-Time Systems Amit Mahajan and Haibo.
Project 2 – solution code
CS 3013 & CS 502 Summer 2006 Scheduling1 The art and science of allocating the CPU and other resources to processes.
Integrated Control and Scheduling James Yang, Steve Sheng, Bill Li Instructor: Prof. Insup Lee.
Supporting Time-sensitive Application on a Commodity OS By Ashvin Goel, Luca Abeni, Charles Krasic, Jim Snow, Jonathan Walpole Presenter: Shuping Tien.
Wk 2 – Scheduling 1 CS502 Spring 2006 Scheduling The art and science of allocating the CPU and other resources to processes.
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
LDU Parametrized Discrete-Time Multivariable MRAC and Application to A Web Cache System Ying Lu, Gang Tao and Tarek Abdelzaher University of Virginia.
End-to-End Delay Analysis for Fixed Priority Scheduling in WirelessHART Networks Abusayeed Saifullah, You Xu, Chenyang Lu, Yixin Chen.
The Design and Performance of A Real-Time CORBA Scheduling Service Christopher Gill, David Levine, Douglas Schmidt.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
Computers on Cruise Control Creating Adaptive Systems with Control Theory Ricardo Portillo The University of Texas at El Paso
An Autonomic Framework in Cloud Environment Jiedan Zhu Advisor: Prof. Gagan Agrawal.
Page 110/9/2015 CSE 40373/60373: Multimedia Systems So far…  RMS - task with highest rate has highest priority  EDF – earliest deadline first  Tasks.
Probabilistic Preemption Control using Frequency Scaling for Sporadic Real-time Tasks Abhilash Thekkilakattil, Radu Dobrin and Sasikumar Punnekkat.
Budget-based Control for Interactive Services with Partial Execution 1 Yuxiong He, Zihao Ye, Qiang Fu, Sameh Elnikety Microsoft Research.
Chapter 3 System Performance and Models. 2 Systems and Models The concept of modeling in the study of the dynamic behavior of simple system is be able.
Quality of Service Karrie Karahalios Spring 2007.
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.
Applying Control Theory to the Caches of Multiprocessors Department of EECS University of Tennessee, Knoxville Kai Ma.
Suzhen Lin, A. Sai Sudhir, G. Manimaran Real-time Computing & Networking Laboratory Department of Electrical and Computer Engineering Iowa State University,
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 31 – Multimedia OS (Part 1) Klara Nahrstedt Spring 2011.
Real-Time Scheduling CS 3204 – Operating Systems Lecture 20 3/3/2006 Shahrooz Feizabadi.
Survey of Real Time Databases Telvis Calhoun CSc 6710.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems with Multi-programming Chapter 4.
CSCI1600: Embedded and Real Time Software Lecture 24: Real Time Scheduling II Steven Reiss, Fall 2015.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
CSCI1600: Embedded and Real Time Software Lecture 23: Real Time Scheduling I Steven Reiss, Fall 2015.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 31 – Process Management (Part 1) Klara Nahrstedt Spring 2009.
CS333 Intro to Operating Systems Jonathan Walpole.
For a good summary, visit:
Control-based Quality Adaptation in Data Stream Management Systems (DSMS) Yicheng Tu†, Song Liu‡, Sunil Prabhakar†, and Bin Yao‡ † Department of Computer.
CS Spring 2010 CS 414 – Multimedia Systems Design Lecture 32 – Multimedia OS Klara Nahrstedt Spring 2010.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
Real-Time Operating Systems RTOS For Embedded systems.
Embedded System Scheduling
EEE 6494 Embedded Systems Design
Chapter 8 – Processor Scheduling
Process Scheduling B.Ramamurthy 11/18/2018.
Module 5: CPU Scheduling
Jason Neih and Monica.S.Lam
Elastic Task Model For Adaptive Rate Control
CSCI1600: Embedded and Real Time Software
Chapter 6: CPU Scheduling
Networked Real-Time Systems: Routing and Scheduling
Process Scheduling B.Ramamurthy 2/23/2019.
CSCI1600: Embedded and Real Time Software
Linköping University, IDA, ESLAB
Operating System , Fall 2000 EA101 W 9:00-10:00 F 9:00-11:00
Quality-aware Middleware
Feedback Control Real-time Scheduling
Ch 4. Periodic Task Scheduling
Real-Time Scheduling David Ferry CSCI 3500 – Operating Systems
Presentation transcript:

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

Agenda Motivation. Feedback control system overview. Important Issues of Feedback control real-time scheduling. FC-EDF by UVA. Conclusion.

Motivation Static real-time scheduling algorithms –Requires complete knowledge of task set and constraints. –eg. RM algorithm Dynamic algorithms –Does not have complete knowledge of task set. –Resource sufficient Vs. insufficient. –eg. Earliest Deadline first, spring algorithm

Problems They are all open-loop algorithms. Works poorly in unpredictable dynamic systems. Because they are usually based on worse-case work-load parameters. Most dynamic real world applications have insufficient resources and unpredictable workload. Assumes that timing requirements(such as deadline)are known and fixed.

Agenda Motivation. Feedback control system overview. Important Issues of Feedback control real-time scheduling. FC-EDF by UVA. Conclusion.

Feedback Control Scheduling Defines error terms for schedules, monitor the error, and continuously adjust the schedule to maintain satisfactory performance. Based on adaptive control theory, stochastic control. The result would be that many applications meet significantly more deadlines thereby improving the productivity.

Approach Controlled Variable. Set point. Error = set point – current value of CV. Manipulated Variable. Feedback Loop.

Agenda Motivation. Feedback control system overview. Important Issues of Feedback control real-time scheduling. FC-EDF by UVA. Conclusion.

Feedback control real-time scheduling Choices for control variables, manipulated variables, set points. Choice of appropriate Control functions. Is PID enough? Stability Problem of feedback control in the context of real-time scheduling? How to tune Control parameters? How significant is the overhead and how to minimize it? How to integrate a runtime analysis of time constraints with scheduling algorithms?

Agenda Motivation. Feedback control system overview. Important Issues of Feedback control real-time scheduling. FC-EDF by UVA. Conclusion.

FC-EDF algorithm Control Variable: miss rate of admitted tasks MissRatio(t) Set Point: 1%. Manipulated Variable: System Load(requested CPU utilization). Controller: PID Controller. Scheduler: EDF algorithm. Actuators: Service level Controller, admission Controller

FC-EDF Architecture

Task Model Imprecise Computation Model T i – (I i, ET i, VAL i, S i, D i ) –I: Logical Versions of T i =( T i1, T i2, …, T ik) –ET: Execution time (ET i1, ET i2, …, ET ik_ ) –VAL: values of different implementations. –S i : Start time, D i :Soft deadlines Different Version of task are called service levels. In the future, extend deadlines.

PID Controller Maps the miss ratio of accepted tasks to the change in requested utilization so as to drive the miss ratio back to set point. C p, C i, C d, are tunable parameters.

PID Controller cont. /* called every sampling period PS */ void PID(){ Get Error(t) during last sampling period P S ; /*PID control function*/ CPU(t) = C p *Error(t) + C i IW Error(t) + C D *(Error(t-DW) - Error(t))/DW /* greedily increase system load when lightly loaded */ if( CPU(t) 0) CPU(t) = CPU(t) + CPU A /* call the Service Level Controller, which returns the portion of CPU(t) that is not completed in it */ CPU 0 =SLC( CPU(t)); /* call the admission controller to accommodate the portion of CPU(t) that is not completed by SLC, if there is any */ if( CPU 0 != 0) ACadjust( CPU 0 ); }

Service Level Controller

Admission Controller Decides whether accepts a task or not. If ET ik < 1- CPU(t) accept, else reject. CPU(t) maybe adjusted when SLC controller cannot completely accommodate CPU(t) void Acadjust( CPU 0 ) {CPU(t) = CPU(t) - CPU 0 ; } Given an example.

Admission Controller(example) Suppose CPU(t) = 80%, SLC could increase 10% of the cpu use. AC could only admit tasks with 10% usage of cpu time, instead of 20%

Experiment Results Simulation Model Workload Model Implementation of FC-EDF Performance Matrices Experiment A: Steady Execution time Experiment B: Dynamic Execution Time

Simulation Model

Workload Model Each source is characterized with a period (P) (the deadline of each task instance equals its period), Worst case execution times {WCETi}, best case execution times {BCETi}, estimated execution times {EETi}, average execution times {AETi} Each tuple (P, WCETi,BCETi, EETi, AETi, VALi) characterizes a service level EETi =(WCETi+BCETi)*0.5 AETi = EETi*etf etf : execution time factor denotes the accuracy of the estimation.

Implementation of FC-EDF

Performance Matrices MRA: Miss Ration among admitted tasks. CPU utilization: how much the CPU is used. HRS: hit ratio among submitted tasks is a measure of throughput. VCR: Value completion ratio quality of results. Task with lower service level contributes to lower value.

Performance Conclusion FC-EDF provides soft performance guarantee for admitted tasks. Achieving high system utilization. High throughput. Effectively adapts to the radical changes in the execution time and system load and maintains satisfactory performance.

Overhead

Conclusion Presented the need for feedback control scheduling Presented a system developed by UVA. Questions?

Control Theory Terminology Process Variable Error Overshoot Steady state error Settling time

PID Controller PID – Proportional, Integral, Derivative Proportional: the controller output is proportional to the error. Integral: output is proportional to the amount of time the error is present. Derivative: output is proportional to the rate of change of the measurement of error.

PID Controller (cont.)