Feedback Control Real-Time Scheduling: Framework, Modeling, and Algorithms Chenyang Lu, John A. Stankovic, Gang Tao, Sang H. Son Presented by Josh Carl.

Slides:



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

CprE 458/558: Real-Time Systems
Feedback Control Theory a Computer Systems Perspective Introduction What is feedback control? Why do computer systems need feedback control? Control design.
Simulation of Feedback Scheduling Dan Henriksson, Anton Cervin and Karl-Erik Årzén Department of Automatic Control.
EE5900 Advanced Embedded System For Smart Infrastructure
QoS-based Management of Multiple Shared Resources in Dynamic Real-Time Systems Klaus Ecker, Frank Drews School of EECS, Ohio University, Athens, OH {ecker,
On the Robust Capability of Feedback Scheduling in ORB Middleware Bing Du David.C. Levy School of Electrical and Information Engineering University of.
Hadi Goudarzi and Massoud Pedram
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.
Module 2 Priority Driven Scheduling of Periodic Task
All Hands Meeting, 2006 Title: Grid Workflow Scheduling in WOSE (Workflow Optimisation Services for e- Science Applications) Authors: Yash Patel, Andrew.
Towards Feasibility Region Calculus: An End-to-end Schedulability Analysis of Real- Time Multistage Execution William Hawkins and Tarek Abdelzaher Presented.
SIGMETRICS 2008: Introduction to Control Theory. Abdelzaher, Diao, Hellerstein, Lu, and Zhu. CPU Utilization Control in Distributed Real-Time Systems Chenyang.
AQM for Congestion Control1 A Study of Active Queue Management for Congestion Control Victor Firoiu Marty Borden.
Integrated Control and Scheduling James Yang, Steve Sheng, Bill Li Instructor: Prof. Insup Lee.
Feedback performance control in software services T.F. Abdelzaher, J.A. Stankovic, C. Lu, R. Zhang, and Y. Lu, Feedback Performance Control in Software.
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.
Bandwidth Allocation in a Self-Managing Multimedia File Server Vijay Sundaram and Prashant Shenoy Department of Computer Science University of Massachusetts.
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.
Real Time Process Control (Introduction)
Applying Feedback Control to QoS management - an introduction -
1 A Feedback Control Architecture and Design Methodology for Service Delay Guarantees in Web Servers Presentation by Amitayu Das.
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.
Large Scale Deeply Embedded Networks Jack Stankovic, Tarek Abdelzaher, Sang Son, Chenyang Lu Department of Computer Science University of Virginia Fall.
1 ECE692 Topic Presentation Power/thermal-Aware Utilization Control Xing Fu 22 September 2009.
Suzhen Lin, A. Sai Sudhir, G. Manimaran Real-time Computing & Networking Laboratory Department of Electrical and Computer Engineering Iowa State University,
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.
What Shape is Your Real-Time System? Lonnie R. Welch Intelligent, Real-Time, Secure Systems Lab. School of EECS Ohio University Michael.
Control systems KON-C2004 Mechatronics Basics Tapio Lantela, Nov 5th, 2015.
CSE 522 Real-Time Scheduling (2)
Real-Time systems By Dr. Amin Danial Asham.
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.
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.
Introduction to Real-Time Systems
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Energy-aware QoS packet scheduling.
For a good summary, visit:
Dynamic Resource Allocation for Shared Data Centers Using Online Measurements By- Abhishek Chandra, Weibo Gong and Prashant Shenoy.
Distributed Process Scheduling- Real Time Scheduling Csc8320(Fall 2013)
Embedded System Scheduling
OPERATING SYSTEMS CS 3502 Fall 2017
Chapter 6: CPU Scheduling (Cont’d)
Wayne Wolf Dept. of EE Princeton University
Chapter 8 – Processor Scheduling
Lecture 24: Process Scheduling Examples and for Real-time Systems
A Framework for Automatic Resource and Accuracy Management in A Cloud Environment Smita Vijayakumar.
Houssam-Eddine Zahaf, Giuseppe Lipari, Luca Abeni RTNS’17
Jason Neih and Monica.S.Lam
Elastic Task Model For Adaptive Rate Control
CSCI1600: Embedded and Real Time Software
Networked Real-Time Systems: Routing and Scheduling
NET 424: REAL-TIME SYSTEMS (Practical Part)
CSCI1600: Embedded and Real Time Software
Feedback Control Real-time Scheduling
Presentation transcript:

Feedback Control Real-Time Scheduling: Framework, Modeling, and Algorithms Chenyang Lu, John A. Stankovic, Gang Tao, Sang H. Son Presented by Josh Carl

Overview Motivation and Introduction Architecture Performance Specification and Metrics Control Theory Based Design Methodology Modeling the Controlled Real-Time System Design of FCS Algorithms Experiments

Motivation and Intro Static vs. Dynamic Scheduling – Knowledge of task set and time constraints – Example: Rate Monotonic (RM) Dynamic: Resource Sufficient/insufficient – Example: Earliest Deadline First (EDF), Admission- Control-based RM, EDF are Open Loop – Good in predictable environments with accurate models – Bad in unpredictable environments

Soft Real-Time Systems New soft real-time applications – Open and unpredictable environments – Examples: Online trading, e-commerce, agile manufacturing – Resource requirements and arrival rates not known, but the system still has performance guarantees. – EDF and RM fail miserably in these applications

Enter Feedback Control RT Scheduling Feedback Control Systems Scheduling Framework – Architecture – Performance specifications – Design methodology – In contrast to ad hoc approaches that rely on laborious design/tuning/testing iterations, FCS enables system designers to systematically design adaptive real-time systems with established analytical methods to achieve desired performance guarantees in unpredictable environments.

Task Model QoS Levels: – Each QoS level j (0 j N-1), higher QoS=more CPU and more Value – D i [j]: the relative deadline – EE i [j]: the estimated execution time – AE i [j]: the (actual) execution time – V i [j]: the value task T i contributes if it is completed at QoS level j before its deadline D i [j]. For periodic tasks: – P i [j]: the invocation period – B i [j]: the estimated CPU utilization B i [j] = EE i [j] / P i [j] – A i [j]: the (actual) CPU utilization A i [j] = AE i [j] / P i [j] For aperiodic tasks: – EI i [j]: the estimated inter-arrival-time between subsequent invocations – AI i [j]: the average inter-arrival-time that is unknown to the scheduler – B i [j]: the estimated CPU utilization B i [j] = EE i [j]/Ei i [j] – A i [j]: the (actual) CPU utilization A i [j] = AE i [j] / AI i [j] A key feature of our task model is that it characterizes systems in unpredictable environments where tasks actual CPU utilization is time varying and unknown to the scheduler.

Control Variables Controlled Variables – Performance metrics controlled by the scheduler. – Defined over window ( (k-1)W, kW), W=sampling period, k=sampling instant – Miss Ratio, M(k)=deadline misses/completed & aborted tasks – Utilization, U(k)=% of CPU busy time in window – Value, V(k) Performance References: M s and U s Manipulated Variables: What can be changed by the scheduler – Total estimated utilization B(k)=Σ i U i [l i (k)], l i =QoS level U(k) and B(k) are different values (actual vs. estimated), and U(k) bounded to 100%, B(k) is not.

FCS Architecture

Control Loop Monitor: Measures controlled variables (M(k) and/or U(k)) and sends data to the controller. Controller: Compares actual data to estimated data and changes control input accordingly (D B (k)). QoS Actuator: Changes total estimated requested utilization at each sampling instant k according to the control input by adjusting QoS levels. Basic Scheduler: EDF or Rate/Deadline Monotonic.

Performance Regular metrics (average miss ratio and average utilization) dont work. Stability: Miss ratio M(k) and utilization U(k) are always bounded for bounded references – dont want to stay at 100%. Transient-state response: – Overshoot: M o =(M max -M S )/M S, U o =(U max -U S )/U S – Settling Time = T S Steady-state Error = E SM or E SU = Difference between average values in steady state and its corresponding reference. Sensitivity = S P = Robustness of the system with regard to workload or system variations. Loads: Step-load, Ramp Load

Design Methodology A system designer can systematically design an adaptive resource scheduler to satisfy the systems performance specifications with established analytical methods in control theory. 1. Specify the desired dynamic behavior with transient and steady state performance metrics. 2. Establish a dynamic model of the real-time system for the purpose of performance control. 3. Based on 1 and 2 apply established mathematical techniques of feedback control theory to design FCS algorithms that analytically guarantee the specified behavior.

Modeling Utilization Misses G A =worst case utilization ratio, G M =worst case miss ratio, D B =change in total estimated requested utilization, A(k)=total (actual) requested utilization, A th (k)=Utilization Threshold Property 1: At any instant of time, at least one of the controlled variables (U(k) and M(k)) does not saturate in a real-time system.

Design (abbreviated) At each sampling instant k, the Controller computes a control input D B (k), the change in total estimated requested utilization based on an error ratio. Error ratios (E(k)): – E M (k)=M s -M(k) – E U (k)=U s -U(k) Control Input: D B (k)=K P E(k), K P =tunable parameter. Controller Goal: (1) guaranteed stability, (2) zero steady state error, (3) zero sensitivity to workload variations, and (4) satisfactory settling time and overshoot.

Derivations and z-transforms later… In summary, given the system parameters, the worst-case utilization ratio G A, and the miss ratio factor G M, we can directly derive the control parameter K P …to guarantee a set of performance profiles including stability, zero steady state error, and a satisfactory range of transient performance.

Three Algorithms FC-U: Feedback Utilization Control – Periodically samples the utilization, computes a change in total estimated utilization, assigns new QoS levels. – FC-U guarantees that the miss ratio M(k)=0 in steady state if its reference U s A th. – Achieves excellent performance (M(k)=0) in steady state if utilization reference is correct. FC-M: Feedback Miss Ratio Control – Utilizes a miss ratio control loop to directly control miss ratio. – Does not depend on any knowledge about the utilization bound. – It can always achieve low miss ratio, therefore is more robust in the face of utilization threshold variations. FC-UM: Integrated Utilization/Miss Ratio Control – Best of both worlds but more complicated. – Uses the most conservative of the control inputs.

Experiments On a simulator called FECSIM. Two task sets: Some built in randomness in the tasks. Tasks have 3 QoS levels. QoS Actuator: Highest-Value-Density-First Sampling window is 0.5 sec.

Profiling Run simulator in open-loop.

Performance Reference Settings and Experiment A System Settings Experiment A: Arrival Overload – SL(0,150%) – G a =2 (execution time factor) – average execution time is twice the estimation.

Experiment A: FC-U Results

Experiment A: FC-M

Experiment A: FC-UM

Experiment A: Open Loop

Experiment B: Arrival/Internal Overload Same as experiment A, plus the average execution times vary every 100 seconds. First and second change: 57.5% increase for every task. Last change: 75% decrease for every task. Underload situation. Shortened settling time by manually setting B(0)=80% (estimated requested utilization).

Experiment B: FC-UM

Experiment B: Open Loop

Final Metrics

Conclusions FCS algorithms can provide: – Stability with arrival overload and internal overload. – System miss ratio and utilization stay close to the corresponding performance reference. – Satisfactory settling time and low overshoot in transient state.