Realizing Compositional Scheduling through Virtualization Jaewoo Lee, Sisu Xi, Sanjian Chen, Linh T.X. Phan Chris Gill, Insup Lee, Chenyang Lu, Oleg Sokolsky.

Slides:



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

KAIST Computer Architecture Lab. The Effect of Multi-core on HPC Applications in Virtualized Systems Jaeung Han¹, Jeongseob Ahn¹, Changdae Kim¹, Youngjin.
1 “Scheduling with Dynamic Voltage/Speed Adjustment Using Slack Reclamation In Multi-processor Real-Time Systems” Dakai Zhu, Rami Melhem, and Bruce Childers.
Tutorial 5 Test1 Review. Q1: Which of the following is an operating system theme or model as defined in lectures?
CSE 522 Real-Time Scheduling (4)
Virtualization and Cloud Computing. Definition Virtualization is the ability to run multiple operating systems on a single physical system and share the.
THE UNIVERSITY of TEHRAN Mitra Nasri Sanjoy Baruah Gerhard Fohler Mehdi Kargahi October 2014.
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.
Soft Real-Time Semi-Partitioned Scheduling with Restricted Migrations on Uniform Heterogeneous Multiprocessors Kecheng Yang James H. Anderson Dept. of.
Project Overview 2014/05/05 1. Current Project “Research on Embedded Hypervisor Scheduler Techniques” ◦ Design an energy-efficient scheduling mechanism.
Sporadic Server Scheduling in Linux Theory vs. Practice Mark Stanovich Theodore Baker Andy Wang.
Computer Science Deadline Fair Scheduling: Bridging the Theory and Practice of Proportionate-Fair Scheduling in Multiprocessor Servers Abhishek Chandra.
1 Virtual Private Caches ISCA’07 Kyle J. Nesbit, James Laudon, James E. Smith Presenter: Yan Li.
Chapter 6 Dynamic Priority Servers
26 April A Compositional Framework for Real-Time Guarantees Insik Shin and Insup Lee Real-time Systems Group Systems Design Research Lab Dept. of.
Simulation Relations, Interface Complexity, and Resource Optimality for Real-Time Hierarchical Systems Insup Lee PRECISE Center Department of Computer.
Enhancing the Platform Independence of the Real-Time Specification for Java Andy Wellings, Yang Chang and Tom Richardson University of York.
Spring 2002Real-Time Systems (Shin) Rate Monotonic Analysis Assumptions – A1. No nonpreemptible parts in a task, and negligible preemption cost –
Virtualization for Cloud Computing
October 3, 2005CIS 7001 Compositional Real-Time Scheduling Framework Insik Shin.
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.
Prioritizing Local Inter-Domain Communication in Xen Sisu Xi, Chong Li, Chenyang Lu, and Christopher Gill Cyber-Physical Systems Laboratory Washington.
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.
Energy-Efficient Soft Real-Time CPU Scheduling for Mobile Multimedia Systems Wanghong Yuan, Klara Nahrstedt Department of Computer Science University of.
Virtualization: Not Just For Servers Hollis Blanchard PowerPC kernel hacker.
Language Design for Implementing Process Scheduling Hierarchies Julia L. Lawall DIKU, University of Copenhagen Gilles Muller, Hervé Duchesne Ecole des.
张俊 BTLab Embedded Virtualization Group Outline  Introduction  Performance Analysis  PerformanceTuning Methods.
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:
1 Reducing Queue Lock Pessimism in Multiprocessor Schedulability Analysis Yang Chang, Robert Davis and Andy Wellings Real-time Systems Research Group University.
Scheduling policies for real- time embedded systems.
High Performance Computing on Virtualized Environments Ganesh Thiagarajan Fall 2014 Instructor: Yuzhe(Richard) Tang Syracuse University.
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.
Welcome!. PhD Dissertation Defense PhD Candidate: Wenming Li Advisor: Dr. Krishna M. Kavi Committee: Dr. Krishna M. Kavi Dr. Robert Akl Dr. Phil Sweany.
Headline in Arial Bold 30pt HPC User Forum, April 2008 John Hesterberg HPC OS Directions and Requirements.
The 32nd IEEE Real-Time Systems Symposium Meeting End-to-End Deadlines through Distributed Local Deadline Assignment Shengyan Hong, Thidapat Chantem, X.
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.
Department of Computer Science MapReduce for the Cell B. E. Architecture Marc de Kruijf University of Wisconsin−Madison Advised by Professor Sankaralingam.
Real Time Operating Systems Schedulability - Part 2 Course originally developed by Maj Ron Smith 12/20/2015Dr Alain Beaulieu1.
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.
Multiprocessor Fixed Priority Scheduling with Limited Preemptions Abhilash Thekkilakattil, Rob Davis, Radu Dobrin, Sasikumar Punnekkat and Marko Bertogna.
Defects of the POSIX Sporadic Server and How to Correct Them
CSCI1600: Embedded and Real Time Software Lecture 23: Real Time Scheduling I Steven Reiss, Fall 2015.
Technical Reading Report Virtual Power: Coordinated Power Management in Virtualized Enterprise Environment Paper by: Ripal Nathuji & Karsten Schwan from.
Introduction to Real-Time Systems
Determining Optimal Processor Speeds for Periodic Real-Time Tasks with Different Power Characteristics H. Aydın, R. Melhem, D. Mossé, P.M. Alvarez University.
Chapter 4 CPU Scheduling. 2 Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling Algorithm Evaluation.
Embedded System Scheduling
vCAT: Dynamic Cache Management using CAT Virtualization
Is Virtualization ready for End-to-End Application Performance?
Current Generation Hypervisor Type 1 Type 2.
Unit OS9: Real-Time and Embedded Systems
CS490 Windows Internals Quiz 2 09/27/2013.
Comparison of the Three CPU Schedulers in Xen
Chapter 6: CPU Scheduling
Houssam-Eddine Zahaf, Giuseppe Lipari, Luca Abeni RTNS’17
CSE591 October Rotation Report Haoran Li Nov
Improved schedulability on the ρVEX polymorphic VLIW processor
Chapter 6 Dynamic Priority Servers
Enforcing Real-Time Behavior I
RT-Xen: Real-Time Virtualization
Chapter 6: CPU Scheduling
Processes and operating systems
Research on Embedded Hypervisor Scheduler Techniques
Presentation transcript:

Realizing Compositional Scheduling through Virtualization Jaewoo Lee, Sisu Xi, Sanjian Chen, Linh T.X. Phan Chris Gill, Insup Lee, Chenyang Lu, Oleg Sokolsky

Virtualization  The benefits of virtualization  Consolidate legacy systems  Integrate large, complex systems  Key challenges of virtualization for safety-critical systems  Temporal isolation  Real-time guarantee Hypervisor Legacy System Virtualization Platform Domains Legacy System 2

Compositional Scheduling  Compositional Scheduling Framework (CSF)  Provides temporal isolation and real-time guarantee  Computes the minimum-bandwidth resource model for the component  The gap between CSF theory and system  Realizing CSF though virtualization can bridge the gap Resource Model Parent component Child components Workload Periodic Tasks Component Scheduler Rate Monotonic Scheduler Scheduler Periodic Resource Model (period, budget) 3

Contributions  Compositional Scheduling Architecture (CSA)  Confederation of compositional scheduling and virtualization Enhancement to periodic server design in CSA Extension to CSF for quantum-based platforms  Performance evaluation of CSA  Synthetic workloads and avionic workloads  First open-source real-time virtualization with CSF  Extensible with new domain-scheduling algorithms 4

Overview of Our Work  Compositional Scheduling Architecture (CSA)  Component  domain  Periodic Resource Model (PRM)  Periodic Server (PS)  Task model: independent, CPU-intensive, periodic task  Scheduling algorithm: rate monotonic App Domain Hypervisor RT-Xen Hardware Task Component Root Component Compositional Scheduling PSPRM S. Xi, J. Wilson, C. Lu, C. Gill, RT-Xen: Real-Time Virtualization Based on Hierarchical Scheduling, EMSOFT, 2011 Domain PS 5

Theory Pessimism in CSF  Interface considers the worst case: U PRM – U W ≥ 0  Interface overhead leads to underutilization of the component  Resource model  periodic server in CSA  Periodic server does not fully utilize its budget  Slacks : tasks do not always execute for WCETs  Interface overhead  Underutilization of periodic server  long response times of real-time tasks  Using idle times, we propose enhanced periodic servers 6 Interface Overhead

Periodic Server Design  Purely Time-driven Periodic Server (PTPS)  If currently scheduled domain is idle, its budget is wasted  Not work-conserving t Δ DHDH DLDL Budget time Task Release Task Complete Execution of tasks in D H Execution of tasks in D L Current Domain 7

Periodic Server Design  Work-Conserving Periodic Server (WCPS)  If currently scheduled domain is idle, the hypervisor picks a lower-priority domain that has tasks to execute  Early execution of the lower-priority domain during idle period does not affect schedulability t Δ DHDH DLDL Budget time Task Release Task Complete Execution of tasks in D H Execution of tasks in D L Current Domain 8

Periodic Server Design  Capacity Reclaiming Periodic Server (CRPS)  If currently scheduled domain is idle, we can re-assign this idled budget to any other domain that has tasks to execute  Early execution of the other domain during idle period does not affect schedulability t Δ DHDH DLDL Budget time Task Release Task Complete Execution of tasks in D H Execution of tasks in D L Current Domain 9

CSF Extension for Quantum-based Platforms P:  To find the minimum-bandwidth resource model for workload W. 10 Real-number-based resource model 3 tasks Task periodTask execution time of resource model B/P:

CSF Extension for Quantum-based Platform infeasible bandwidth Real-number-based resource model Quantum-based resource model Necessary condition for schedulability  To find the minimum-bandwidth resource model for workload W. the upper bound of the period to find min-BW resource model? 11 Non-decreasing P: of resource model B/P: 1 2

CSF Extension for Quantum-based Platform the upper bound of the period to find min-BW resource model? infeasible bandwidth Non-decreasing Real-number-based resource model Quantum-based resource model Necessary condition for schedulability  To find the minimum-bandwidth resource model for workload W. Min-BW resource model 12 P: B/P: 1 2 of resource model

System Architecture  Implemented in Xen 4.0  only re-compile Xen, keep Kernel untouched  All source code available at RT-Xen website:  Current Limitations:  one VCPU per domain (single core)  CPU intensive workload 13 Xen Scheduling Framework Real-Time Sub Framework PTPSWCPSCRPS

Evaluation – Setup 14 VCPU Core 0 Core 1 Schedulers (PTPS, CRPS, WCPS) Dom0 App VCPU Dom1 VCPU Dom5 App Scheduling Algorithms (PTPS, CRPS, WCPS) Parameters for each Domain IDLE … Responsiveness: response time / deadline Deadline Miss Ratio Use Rate Monotonic within Domain …

Evaluation – Synthetic workloads  Randomly generate task sets, then compute interface  Sources of idle time:  interface overhead: U PRM – U W  slacks: over-estimation of tasks’ execution time  Range workload periods -> different interface overhead  U W : 0.7, 0.8, 0.9, 1.0  Periods: [550ms, 650ms], [350ms, 850ms], [100ms, 1100ms]  Range Execution Time Factor (ETF) -> different slacks  For all tasks in highest three priorities domains: 100%, 50%, 10%  Using period [550ms, 650ms], pick U w from 0.7, 0.8, 0.9, typical overloaded situation most interface overhead uniform distribute [wcet*ETF, wcet] extremely overloaded situation

Evaluation – Interface Overhead % 60% 0% CRPS ≥ WCPS ≥ PTPS deadline miss CDF Plot, Probability

Evaluation – ETF 17 Sched ETF = 100 %ETF = 50 %ETF = 10 % median95 %maxmedian95 %maxmedian95 %max PTPS WCPS CRPS ( Response Time / Deadline ) for the Lowest Priority Domain PTPS: non work conservative, can not utilize slacks WCPS: consumes budget in parallel, still miss deadlines CRPS: ‘reclaim’ budget more aggressively, utilize slacks effectively

Evaluation – ARINC-653 Workload 18  7 harmonic workloads, each represent a set of domains scheduled on a single processor, with each domain consisting of a set of periodic tasks A. Easwaran, I. Lee, O. Sokolsky, and S. Vestal, A Compositional Framework for Avionics (ARINC-653) Systems, Tech Report MS-CIS-09-04, 2009, University of Pennsylvania  U PRM = U W  if using real number parameters  Overheads comes from rounding up the budget  period is fixed  CRPS > WCPS > PTPS Interface Overhead (8%) CDF Plot, Probability Response Time / Deadline

Conclusion  Compositional Scheduling Architecture (CSA)  Enhanced version of the Pure Time-driven Periodic Server (PTPS) WCPS: work conserving, consume budget in parallel CRPS: aggressively reclaiming budget  Extension of CSF for quantum-based platforms  Extensive evaluation on synthetic and avionics workloads  Open Source:  RT-Xen Website: 19

Questions? 20 RT-Xen or just Google RT-Xen *^_^*

Backup : Interface overhead  Interface considers the worst case: U PRM – U W ≥ 0  For example, a task T= (p = 3, e = 1) in a component Resource model (3, 1) cannot schedule T Resource model (3, 2) can schedule T 21 U PRM – U W =2/3 – 1/3 = 1/3 Interface Overhead Task Release Task Deadline Deadline miss Resource supply of resource model (3,1) Resource supply of resource model (3,2) 1 st period of the resource supply 2 nd period of the resource supply Supplied resource

Backup : Simple rounding up does not work  The minimum-bandwidth resource model  CSF allow real number in budget.  But, budget should be an integer multiple of the scheduling quantum in quantum-based platforms  Ex:  Optimal algorithm : (1,0.38)  rounding up  (1,1)  Only integer : (1,1), (2,1), (3,2), (4,2),… Among feasible resource models, (5,2) is minimum bandwidth for quantum- based platforms

Backup: Upper bound of the period P B/P infeasible bandwidth Non-decreasing Real-number-based resource model Quantum-based resource model Necessary condition for schedulability  We can easily find the upper bound of the period for a given bandwidth 23 A given bandwidth The upper bound of the period for a given bandwidth

Backup : Difference from reservation-based system  CSA on RT-Xen virtualization  Support different local scheduler for each domain ( by running different guest OS)  Clean separation between local scheduler and global scheduler Local OS does not know other task or other domain inside the system Global scheduler does not know task information inside domain  Reservation-based native system  Local scheduler is a part of the operating system We cannot provide a component with a local scheduler  No clean separation between local scheduler and global scheduler Malformed local scheduler can affect global scheduler or other local schedulers 24

Backup : Related Work  Crespo et al., “XtratuM”, EDDC ’10  A bare VMM with a fixed cyclic scheduling policy  Cucinota et al., “Respecting Temporal Isolation...”, COMSAC ’09  KVM with a hard reservation behavior  CSA is different from above two works  Only CSA support compositional scheduling  CSA is implemented on Xen, different architecture from KVM KVM is integrated into the manager domain 25

CSF Extension for Quantum-based Platforms 26