October 3, 2005CIS 7001 Compositional Real-Time Scheduling Framework Insik Shin.

Slides:



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

QoS-based Management of Multiple Shared Resources in Dynamic Real-Time Systems Klaus Ecker, Frank Drews School of EECS, Ohio University, Athens, OH {ecker,
Courseware Scheduling of Distributed Real-Time Systems Jan Madsen Informatics and Mathematical Modelling Technical University of Denmark Richard Petersens.
Missed Deadline Notification in Best-Effort Schedulers Balaji Raman.
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.
Fair Real-time Traffic Scheduling over A Wireless Local Area Network Maria Adamou, Sanjeev Khanna, Insup Lee, Insik Shin, and Shiyu Zhou Dept. of Computer.
CPU SCHEDULING RONG ZHENG. OVERVIEW Why scheduling? Non-preemptive vs Preemptive policies FCFS, SJF, Round robin, multilevel queues with feedback, guaranteed.
On Schedulability and Time Composability of Data Aggregation Networks Fatemeh Saremi *, Praveen Jayachandran †, Forrest Iandola *, Md Yusuf Sarwar Uddin.
Resource Management for Real-Time Environments Instructor: Dr. Subra Ganesan Presented by: Pooja Mehta Date: 10/16/06.
Soft Real-Time Semi-Partitioned Scheduling with Restricted Migrations on Uniform Heterogeneous Multiprocessors Kecheng Yang James H. Anderson Dept. of.
Realizing Compositional Scheduling through Virtualization Jaewoo Lee, Sisu Xi, Sanjian Chen, Linh T.X. Phan Chris Gill, Insup Lee, Chenyang Lu, Oleg Sokolsky.
Approximating Sensor Network Queries Using In-Network Summaries Alexandra Meliou Carlos Guestrin Joseph Hellerstein.
Computer Science Deadline Fair Scheduling: Bridging the Theory and Practice of Proportionate-Fair Scheduling in Multiprocessor Servers Abhishek Chandra.
26 April A Compositional Framework for Real-Time Guarantees Insik Shin and Insup Lee Real-time Systems Group Systems Design Research Lab Dept. of.
System-Wide Energy Minimization for Real-Time Tasks: Lower Bound and Approximation Xiliang Zhong and Cheng-Zhong Xu Dept. of Electrical & Computer Engg.
Simulation Relations, Interface Complexity, and Resource Optimality for Real-Time Hierarchical Systems Insup Lee PRECISE Center Department of Computer.
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
CprE 458/558: Real-Time Systems
Misconceptions About Real-time Computing : A Serious Problem for Next-generation Systems J. A. Stankovic, Misconceptions about Real-Time Computing: A Serious.
Real-Time Systems Group Accounting for Cache Related Pre-emption Delays in Hierarchal Scheduling Will Lunniss 1 Sebastian Altmeyer 2 Giuseppe Lipari 3,4.
Embedded System Design Framework for Minimizing Code Size and Guaranteeing Real-Time Requirements Insik Shin, Insup Lee, & Sang Lyul Min CIS, Penn, USACSE,
Packet Scheduling From Ion Stoica. 2 Packet Scheduling  Decide when and what packet to send on output link -Usually implemented at output interface 1.
Fair Real-time Traffic Scheduling over Wireless Local Area Networks Insik Shin Joint work with M. Adamou, S. Khanna, I. Lee, and S. Zhou Dept. of Computer.
Embedded System Design Framework for Minimizing Code Size and Guaranteeing Real-Time Requirements Insik Shin, Insup Lee, & Sang Lyul Min CIS, Penn, USACSE,
The Design of an EDF- Scheduled Resource-Sharing Open Environment Nathan Fisher Wayne State University Marko Bertogna Scuola Superiore Santa’Anna of Pisa.
Composability and Schedulability of Real-Time Applications in Open Environments Nathan Fisher Department of Computer Science Wayne State University.
Non-Preemptive Access to Shared Resources in Hierarchical Real-Time Systems Marko Bertogna, Fabio Checconi, Dario Faggioli CRTS workshop – Barcelona, November,
Real-Time Systems Hierarchical Real-Time Systems for Imprecise Computation Model The 5th EuroSys Doctoral Workshop (EuroDW 2011) Guy Martin.
Efficient Admission Control for Enforcing Arbitrary Real-Time Demand-Curve Interfaces Farhana Dewan and Nathan Fisher RTSS, December 6 th, 2012 Sponsors:
DESIGNING VM SCHEDULERS FOR EMBEDDED REAL-TIME APPLICATIONS Alejandro Masrur, Thomas Pfeuffer, Martin Geier, Sebastian Drössler and Samarjit Chakraborty.
1 Distributed Energy-Efficient Scheduling for Data-Intensive Applications with Deadline Constraints on Data Grids Cong Liu and Xiao Qin Auburn University.
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.
The Packing Server for Real-time Scheduling of MapReduce Workflows Shen Li, Shaohan Hu, Tarek Abdelzaher University of Illinois at Urbana Champaign 1.
A Node and Load Allocation Algorithm for Resilient CPSs under Energy-Exhaustion Attack Tam Chantem and Ryan M. Gerdes Electrical and Computer Engineering.
The 32nd IEEE Real-Time Systems Symposium Meeting End-to-End Deadlines through Distributed Local Deadline Assignment Shengyan Hong, Thidapat Chantem, X.
Real-time Virtual Resource: a Timely Abstraction for Embedded Systems Aloysius K. Mok Alex Xiang Feng Dept. of Computer Sciences University of Texas at.
Distributed Multimedia Systems Resource management and Stream Adaptation Arun A Tharuvai CSC8530 October 21, 2003.
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.
1 Job Scheduling for Grid Computing on Metacomputers Keqin Li Proceedings of the 19th IEEE International Parallel and Distributed Procession Symposium.
Real-Time Support for Mobile Robotics K. Ramamritham (+ Li Huan, Prashant Shenoy, Rod Grupen)
Chapter 3 System Performance and Models Introduction A system is the part of the real world under study. Composed of a set of entities interacting.
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.
1 Real-Time Scheduling. 2Today Operating System task scheduling –Traditional (non-real-time) scheduling –Real-time scheduling.
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.
Classical scheduling algorithms for periodic systems Peter Marwedel TU Dortmund, Informatik 12 Germany 2012 年 12 月 19 日 These slides use Microsoft clip.
Introduction to Real-Time Systems
Mok & friends. Resource partition for real- time systems (RTAS 2001)
For a good summary, visit:
NUS.SOC.CS5248 Ooi Wei Tsang 1 Course Matters. NUS.SOC.CS5248 Ooi Wei Tsang 2 Make-Up Lecture This Saturday, 23 October TR7, 1-3pm Topic: “CPU scheduling”
Task Mapping and Partition Allocation for Mixed-Criticality Real-Time Systems Domițian Tămaș-Selicean and Paul Pop Technical University of Denmark.
An Overview of Distributed Real- Time Systems Research By Brian Demers March 24, 2003 CS 535, Spring 2003.
ECRTS/WiP, July 2009 André M. van Renssen, TU/e, Mathematics & Computer Science 1 André M. van Renssen, Stefan J. Geuns, Joost.
Introductory Seminar on Research CIS5935 Fall 2008 Ted Baker.
Euro-Par, HASTE: An Adaptive Middleware for Supporting Time-Critical Event Handling in Distributed Environments ICAC 2008 Conference June 2 nd,
THE DEADLINE-BASED SCHEDULING OF DIVISIBLE REAL-TIME WORKLOADS ON MULTIPROCESSOR PLATFORMS Suriayati Chuprat Supervisors: Professor Dr Shaharuddin Salleh.
Lecture 6: Real-Time Scheduling
Optimization of Time-Partitions for Mixed-Criticality Real-Time Distributed Embedded Systems Domițian Tămaș-Selicean and Paul Pop Technical University.
Embedded System Scheduling
OPERATING SYSTEMS CS 3502 Fall 2017
Multiprocessor Real-Time Scheduling
Sanjoy Baruah The University of North Carolina at Chapel Hill
Networked Real-Time Systems: Routing and Scheduling
Processes and operating systems
Ch 4. Periodic Task Scheduling
Dynamic Placement of Virtual Machines for managing sla violations
کنترل جریان امیدرضا معروضی.
Presentation transcript:

October 3, 2005CIS 7001 Compositional Real-Time Scheduling Framework Insik Shin

October 3, 2005 CIS Outline Compositional scheduling framework –Scheduling component model –Periodic resource model Schedulability analysis Utilization bound Component timing abstraction

October 3, 2005 CIS Traditional Scheduling Framework CPU OS Scheduler Task Single real-time task in a single application Application

October 3, 2005 CIS Hierarchical Scheduling Framework (HFS) CPU OS Scheduler Application Scheduler Task Application Scheduler Task Application Scheduler Task Multiple real-time tasks with a scheduler in a single application, forming a hierarchy of scheduling

October 3, 2005 CIS Compositional Scheduling Framework CPU OS Scheduler Java Virtual Machine J 1 (50,3)J 2 (75,5) VM Scheduler Multimedia T 2 (33,10) Digital Controller T 1 (25,5)

October 3, 2005 CIS VM Scheduler’s Viewpoint CPU OS Scheduler Multimedia T 2 (33,10) Digital Controller T 1 (25,5) Java Virtual Machine J 1 (50,3)J 2 (75,5) VM Scheduler CPU Share Real-Time Guarantee on CPU Supply

October 3, 2005 CIS Problems & Approach I Resource supply modeling –Characterize temporal property of resource allocations we propose a periodic resource model –Analyze schedulability with a new resource model

October 3, 2005 CIS OS Scheduler’s Viewpoint CPU OS Scheduler Java Virtual Machine J 1 (50,3)J 2 (75,5) VM Scheduler Multimedia T 2 (33,10) Digital Controller T 1 (25,5) Real-Time TaskReal-Time Demand

October 3, 2005 CIS Problems & Approach II Real-time demand composition –Combine multiple real-time requirements into a single real-time requirement Real-Time Constraint Real-Time Constraint Real-Time Constraint EDF / RM T 1 (p 1, e 1 )T 2 (p 2, e 2 )T (p, e)

October 3, 2005 CIS Compositional Real-time Scheduling Framework Goal –to support compositionality for timeliness aspect –to achieve system-level schedulability analysis using the results of component-level schedulability analysis Scheduling component modeling

October 3, 2005 CIS Scheduling Component Modeling Scheduling –assigns resources to workloads by scheduling algorithms Scheduling Component Model : C(W,R,A) –W : workload model –R : resource model –A : scheduling algorithm Resource Scheduler WorkloadPeriodic TaskWorkloadPeriodic Task EDF / RM ???

October 3, 2005 CIS Resource Modeling Dedicated resource : always available at full capacity Shared resource : not a dedicated resource –Time-sharing : available at some times –Non-time-sharing : available at fractional capacity 0 time 0 0

October 3, 2005 CIS Resource Modeling Time-sharing resources –Bounded-delay resource model [Mok et al., ’01] characterizes a time-sharing resource w.r.t. a non-time- sharing resource –Periodic resource model Γ ( Π,Θ ) [Shin & Lee, RTSS ’03] characterizes periodic resource allocations time

October 3, 2005 CIS Schedulability Analysis A workload set is schedulable under a scheduling algorithm with available resources if its real-time requirements are satisfiable Schedulability analysis determines whether scheduler resource workload resource demand, which a workload set requires under a scheduling algorithm resource supply, which available resources provide ≤

October 3, 2005 CIS Resource Demand Bound Resource demand bound during an interval of length t –dbf(W,A,t) computes the maximum possible resource demand that W requires under algorithm A during a time interval of length t Periodic task model T(p,e) [Liu & Layland, ’73 ] –i.e., T(3,2) t demand

October 3, 2005 CIS For a periodic workload set W = {Ti(pi,ei)}, –dbf (W,A,t) for EDF algorithm [Baruah et al.,‘90] –Example: W = {T 1 (3,2), T 2 (4,1)} Demand Bound Function - EDF t demand

October 3, 2005 CIS Resource Supply Bound Resource supply during an interval of length t –sbf R (t) : the minimum possible resource supply by resource R over all intervals of length t For a single periodic resource model, i.e., Γ (3,2) –we can identify the worst-case resource allocation

October 3, 2005 CIS Resource Supply Bound supply = sbf R (i) = 1 0time R(3,2) i

October 3, 2005 CIS Resource Supply Bound Resource supply during an interval of length t –sbf R (t) : the minimum possible resource supply by resource R over all intervals of length t For a single periodic resource model, i.e., Γ (3,2) –we can identify the worst-case resource allocation t supply

October 3, 2005 CIS Supply Bound Function Resource supply during an interval of length t –sbf Γ (t) : the minimum possible resource supply by resource R over all intervals of length t For a single periodic resource model Γ ( Π,Θ ) t supply

October 3, 2005 CIS Schedulability Conditions (EDF) A workload set W is schedulable over a resource model R under EDF if and only if for all interval i of length t dbf w (i) ≤ t [BHR90] dbf w (i) ≤ sbf R (i) –sbf R (i) : the minimum resource supply by resource R during an interval i –dbf w (i) : the resource demand of workload W during an interval i Resource demand in an interval Resource supply during the interval (from a dedicated resource)

October 3, 2005 CIS Schedulability Condition - EDF A periodic workload set W is schedulable under EDF over a periodic resource model Γ(Π,Θ) if and only if time

October 3, 2005 CIS Schedulability Condition - RM A periodic workload set W is schedulable under EDF over a periodic resource model Γ(Π,Θ) if and only if For a periodic workload set W = {T i (p i,e i )}, –dbf (W,A,t,i) for RM algorithm [ Lehoczky et al., ‘89 ]

October 3, 2005 CIS Utilization Bounds Utilization bound (UB) of a resource model R –given a scheduling algorithm A and a resource model R, UB R,A is a number s. t. a workload set W is schedulable if For a periodic workload T(p,e), utilization U T = e/p For a periodic workload set W, utilization U W is scheduler workload resource workload

October 3, 2005 CIS Utilization Bounds Example: –Consider a periodic resource Γ ( Π,Θ ), where Π = 10 and Θ = 4, and suppose UB Γ, EDF = 0.4. –Then, a set of periodic task W is schedulable if –W = {T1(20,3), T2(50,5)} s.t. U W = 0.25, is schedulable EDF workload Γ(Π=10,Θ=4) workload

October 3, 2005 CIS Utilization Bound - EDF For a scheduling component C(W, Γ ( Π,Θ ),A), where A = EDF, its utilization bound is P min is the minimum task period (deadline) in W. k represents the relationship between resource period Π and the minimum task period P min, k ≈ P min /Π

October 3, 2005 CIS EDF Utilization Bound - Intuition Observation for a component C(W, Γ ( Π,Θ ),EDF) –C is schedulable iff dbf (W,EDF,t) ≤ sbf Γ (t) P min t sbf Γ (t) dbf (W,EDF,t)

October 3, 2005 CIS EDF Utilization Bound - Intuition Observation for a component C(W, Γ ( Π,Θ ),EDF) –C is schedulable iff dbf (W,EDF,t) ≤ sbf Γ (t) –dbf (W,EDF,t) ≤ U W · t U W · t P min t sbf Γ (t) dbf (W,EDF,t)

October 3, 2005 CIS EDF Utilization Bound - Intuition Observation for a component C(W, Γ ( Π,Θ ),EDF) –C is schedulable iff dbf (W,EDF,t) ≤ sbf Γ (t) –dbf (W,EDF,t) ≤ U W · t –U Γ (t-2(Π-Θ)) ≤ sbf Γ (t) U W · t U Γ (t-2(Π-Θ)) P min t sbf Γ (t) dbf (W,EDF,t)

October 3, 2005 CIS EDF Utilization Bound - Intuition Observation for a component C(W, Γ ( Π,Θ ),EDF) –C is schedulable iff dbf (W,EDF,t) ≤ sbf Γ (t) –dbf (W,EDF,t) ≤ U W · t –U Γ (t-2(Π-Θ)) ≤ sbf Γ (t) –Therefore, C is schedulable if U W · t ≤ U Γ (t-2(Π-Θ)) U W · t U Γ (t-2(Π-Θ)) P min t

October 3, 2005 CIS EDF Utilization Bound - Intuition For a component C(W, Γ ( Π,Θ ),EDF) –for all t > P min, if U W · t ≤ U Γ (t-2(Π-Θ)) then C is schedulable. U W ≤ U Γ (t-2(Π-Θ)) / t U W · t U Γ (t-2(Π-Θ)) P min t

October 3, 2005 CIS For a scheduling component C(W, Γ ( Π,Θ ),A), where A = RM, its utilization bound is –[Saewong, Rajkumar, Lehoczky, Klein, ’02] –We generalize this earlier result, where k ≈ P min / Π. Utilization Bound - RM

October 3, 2005 CIS Component Abstraction Component timing abstraction –To specify the collective real-time demands of a component as a timing interface Periodic (50,7) EDF Periodic (70,9) timing interface virtual real-time task

October 3, 2005 CIS Component Abstraction Component timing abstraction –To specify the collective real-time demands of a component as a timing interface Periodic (50,7) EDF Periodic (70,9) timing interface periodic resource Γ(Π,Θ) periodic interface Γ (Π,Θ)

October 3, 2005 CIS Component Abstraction (Example) In this example, a solution space of a periodic resource Γ (Π,Θ) that makes C(W, Γ ( Π,Θ ),EDF) schedulable is Periodic (50,7) EDF Periodic (70,9) Γ(Π,Θ)Γ(Π,Θ)Γ(Π,Θ)Γ(Π,Θ)

October 3, 2005 CIS Component Abstraction (Example) An approach to pick one solution out of the solution space –Given a range of Π, we can pick Γ (Π,Θ) such that U Γ is minimized. (for example, 28 ≤ Π ≤ 46) Periodic (50,7) EDF Periodic (70,9) Γ(29,9.86)Γ(Π,Θ)Γ(Π,Θ)

October 3, 2005 CIS Component Timing Abstraction Component timing abstraction –To abstract the collective real-time demands of a component as a timing interface Periodic (50,7) EDF Periodic (70,9) periodic interface Γ (29, 9.86)

October 3, 2005 CIS Compositional Real-Time Guarantees T 21 (25,4) T 22 (40,5) R(?, ?) EDF RM R 2 (?, ?)R 2 (10, 4.4) T 11 (25,4) T 12 (40,5) EDF R 1 (?, ?)R 1 (10, 3.1)

October 3, 2005 CIS Compositional Real-Time Guarantees T 21 (25,4) T 22 (40,5) R(?, ?) EDF RM R(5, 4.4) R 2 (10, 4.4) T 2 (10, 4.4) T 11 (25,4) T 12 (40,5) EDF R 1 (10, 3.1) T 1 (10, 3.1)

October 3, 2005 CIS Abstraction Overhead For a scheduling component C(W, Γ ( Π,Θ ), A), its abstraction overhead (O Γ ) is Periodic (50,7) EDF Periodic (70,9) periodic interface Γ (29, 9.86) U W =0.27U Γ =0.34

October 3, 2005 CIS Abstraction Overhead Bound For a scheduling component C(W, Γ ( Π,Θ ), A), its abstraction overhead (O Γ ) is –A = EDF –A = RM

October 3, 2005 CIS Abstraction Overhead Simulation Results –with periodic workloads and periodic resource under EDF/RM –the number of tasks n : 2, 4, 8, 16, 32, 64 –the workload utilization U(W) : 0.2~0.7 –the resource period : represented by k

October 3, 2005 CIS Abstraction Overhead k= 2, U(W) = 0.4

October 3, 2005 CIS Summary Compositional real-time scheduling framework - with the periodic model [Shin & Lee, RTSS ‘03] 1.resource modeling –utilization bounds (EDF/RM) 2.schedulability analysis exact schedulability conditions (EDF/RM) 3.component timing abstraction and composition overhead evaluation –upper-bounds and simulation results

October 3, 2005 CIS Future Work Extending our framework for handling –Soft real-time workload models –non-periodic workload models –task dependency

October 3, 2005 CIS References Insik Shin & Insup Lee, “Periodic Resource Model for Compositional Real-Time Gaurantees”, the Best Paper of RTSS Insik Shin & Insup Lee, “Compositional Real-time Scheduling Framework”, RTSS 2004.

October 3, 2005 CIS THE THE END END THE THANK YOU