Quantifying the Sub-optimality of Non-preemptive Real-time Scheduling Abhilash Thekkilakattil, Radu Dobrin and Sasikumar Punnekkat.

Slides:



Advertisements
Similar presentations
EE5900 Advanced Embedded System For Smart Infrastructure
Advertisements

Reducing the Number of Preemptions in Real-Time Systems Scheduling by CPU Frequency Scaling Abhilash Thekkilakattil, Anju S Pillai, Radu Dobrin, Sasikumar.
Real-Time Mutli-core Scheduling Moris Behnam. Introduction Single processor scheduling – E.g., t 1 (P=10,C=5), t 2 (10, 6) – U= >1 – Use a faster.
1 EE5900 Advanced Embedded System For Smart Infrastructure RMS and EDF Scheduling.
Courseware Scheduling of Distributed Real-Time Systems Jan Madsen Informatics and Mathematical Modelling Technical University of Denmark Richard Petersens.
THE UNIVERSITY of TEHRAN Mitra Nasri Sanjoy Baruah Gerhard Fohler Mehdi Kargahi October 2014.
Mehdi Kargahi School of ECE University of Tehran
RUN: Optimal Multiprocessor Real-Time Scheduling via Reduction to Uniprocessor Paul Regnier † George Lima † Ernesto Massa † Greg Levin ‡ Scott Brandt ‡
Tasks Periodic The period is the amount of time between each iteration of a regularly repeated task Time driven The task is automatically activated by.
Module 2 Priority Driven Scheduling of Periodic Task
Soft Real-Time Semi-Partitioned Scheduling with Restricted Migrations on Uniform Heterogeneous Multiprocessors Kecheng Yang James H. Anderson Dept. of.
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.
System-Wide Energy Minimization for Real-Time Tasks: Lower Bound and Approximation Xiliang Zhong and Cheng-Zhong Xu Dept. of Electrical & Computer Engg.
EE 249, Fall Discussion: Scheduling Haibo Zeng Amit Mahajan.
Aperiodic Task Scheduling
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.
Spring 2002Real-Time Systems (Shin) Rate Monotonic Analysis Assumptions – A1. No nonpreemptible parts in a task, and negligible preemption cost –
Chapter 4 – Periodic Task Scheduling In many real-time systems periodic tasks dominate the demand. Three classic periodic task scheduling algorithms: –
New Schedulability Tests for Real- Time task sets scheduled by Deadline Monotonic on Multiprocessors Marko Bertogna, Michele Cirinei, Giuseppe Lipari Scuola.
Reducing Noise and System Costs by Managing Switching Power Supplies as Real-Time Processes Subash Sachidananda & Dr. Alex Dean Dept. of ECE - NC State.
Towards a Contract-based Fault-tolerant Scheduling Framework for Distributed Real-time Systems Abhilash Thekkilakattil, Huseyin Aysan and Sasikumar Punnekkat.
Abhilash Thekkilakattil, Radu Dobrin, Sasikumar Punnekkat Mälardalen Real-time Research Center, Mälardalen University Västerås, Sweden Preemption Control.
Minimizing Cache Overhead via Loaded Cache Blocks and Preemption Placement John Cavicchio, Corey Tessler, and Nathan Fisher Department of Computer Science.
The Design of an EDF- Scheduled Resource-Sharing Open Environment Nathan Fisher Wayne State University Marko Bertogna Scuola Superiore Santa’Anna of Pisa.
Introductory Seminar on Research CIS5935 Fall 2009 Ted Baker.
Non-Preemptive Access to Shared Resources in Hierarchical Real-Time Systems Marko Bertogna, Fabio Checconi, Dario Faggioli CRTS workshop – Barcelona, November,
Quantifying the sub-optimality of uniprocessor fixed priority non-pre-emptive scheduling Robert Davis 1, Laurent George 2, Pierre Courbin 3 1 Real-Time.
Probabilistic Preemption Control using Frequency Scaling for Sporadic Real-time Tasks Abhilash Thekkilakattil, Radu Dobrin and Sasikumar Punnekkat.
1 Reducing Queue Lock Pessimism in Multiprocessor Schedulability Analysis Yang Chang, Robert Davis and Andy Wellings Real-time Systems Research Group University.
Multiprocessor Real-time Scheduling Jing Ma 马靖. Classification Partitioned Scheduling In the partitioned approach, the tasks are statically partitioned.
Abhilash Thekkilakattil, Radu Dobrin, Sasikumar Punnekkat Mälardalen Real-time Research Center, Mälardalen University Västerås, Sweden Towards Preemption.
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 Telvis Calhoun CSc Outline Introduction Real-Time Scheduling Overview Tasks, Jobs and Schedules Rate/Deadline Monotonic Deferrable.
Real-Time Scheduling CS 3204 – Operating Systems Lecture 20 3/3/2006 Shahrooz Feizabadi.
The Global Limited Preemptive Earliest Deadline First Feasibility of Sporadic Real-time Tasks Abhilash Thekkilakattil, Sanjoy Baruah, Radu Dobrin and Sasikumar.
CS244-Introduction to Embedded Systems and Ubiquitous Computing Instructor: Eli Bozorgzadeh Computer Science Department UC Irvine Winter 2010.
6. Application mapping 6.1 Problem definition
Scheduling Real-Time tasks on Symmetric Multiprocessor Platforms Real-Time Systems Laboratory RETIS Lab Marko Bertogna Research Area: Multiprocessor Systems.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems RMS and EDF Schedulers.
Resource Augmentation for Performance Guarantees in Embedded Real-time Systems Abhilash Thekkilakattil Licentiate Thesis Presentation Västerås, November.
Advanced Operating Systems - Spring 2009 Lecture 14 – February 25, 2009 Dan C. Marinescu Office: HEC 439 B. Office.
Fault Tolerant Scheduling of Mixed Criticality Real-Time Tasks under Error Bursts Abhilash Thekkilakattil, Radu Dobrin and Sasikumar Punnekkat.
CS244-Introduction to Embedded Systems and Ubiquitous Computing Instructor: Eli Bozorgzadeh Computer Science Department UC Irvine Winter 2010.
Mapping: Applications  Processors
Real-Time Scheduling CS 3204 – Operating Systems Lecture 13 10/3/2006 Shahrooz Feizabadi.
Mixed Criticality Systems: Beyond Transient Faults Abhilash Thekkilakattil, Alan Burns, Radu Dobrin and Sasikumar Punnekkat.
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.
Chapter 3: Real-Time Scheduling and Schedulability Analysis Albert M. K. Cheng.
Common Approaches to Real-Time Scheduling Clock-driven (time-driven) schedulers Priority-driven schedulers Examples of priority driven schedulers Effective.
ECE555 Topic Presentation Energy-efficient real-time scheduling Xing Fu 20 September 2008 Acknowledge Dr. Jian-Jia Chen from ETH providing PPT Slides for.
Rounding scheme if r * j  1 then r j := 1  When the number of processors assigned in the continuous solution is between 0 and 1 for each task, the speed.
Multiprocessor Fixed Priority Scheduling with Limited Preemptions Abhilash Thekkilakattil, Rob Davis, Radu Dobrin, Sasikumar Punnekkat and Marko Bertogna.
Multimedia Computing and Networking Jan Reduced Energy Decoding of MPEG Streams Malena Mesarina, HP Labs/UCLA CS Dept Yoshio Turner, HP Labs.
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.
Resource Augmentation for Fault-Tolerance Feasibility of Real-time Tasks under Error Bursts Abhilash Thekkilakattil, Radu Dobrin, Sasikumar Punnekkat and.
Undergraduate course on Real-time Systems Linköping University TDDD07 Real-time Systems Lecture 2: Scheduling II Simin Nadjm-Tehrani Real-time Systems.
Introductory Seminar on Research CIS5935 Fall 2008 Ted Baker.
Determining Optimal Processor Speeds for Periodic Real-Time Tasks with Different Power Characteristics H. Aydın, R. Melhem, D. Mossé, P.M. Alvarez University.
Tardiness Bounds for Global EDF Scheduling on a Uniform Multiprocessor Kecheng Yang James H. Anderson Dept. of Computer Science UNC-Chapel Hill.
Reducing the Number of Preemptions in Real-Time Systems Scheduling by CPU Frequency Scaling Abhilash Thekkilakattil, Anju S Pillai, Radu Dobrin, Sasikumar.
Multiprocessor Real-Time Scheduling
Unit OS9: Real-Time and Embedded Systems
CprE 458/558: Real-Time Systems
Limited-Preemption Scheduling of Sporadic Tasks Systems
Ch 4. Periodic Task Scheduling
Presentation transcript:

Quantifying the Sub-optimality of Non-preemptive Real-time Scheduling Abhilash Thekkilakattil, Radu Dobrin and Sasikumar Punnekkat

Research Agenda Quantify the goodness of non-preemptive scheduling ●Preemption behavior vs. processor speed ●Derive processor speed-up bound to enable non-preemptive feasibility Minimize preemption overheads using processor speed-up ●Preemption analysis for limited preemption schedulers ●Derive minimum processor speed that minimizes scheduler specific overheads

Preemptive vs. Non-preemptive Scheduling Preemptive EDF is uniprocessor optimal Strict domination of preemptive scheduling paradigm Fairly well investigated No algorithm is uniprocessor optimal under non-idling paradigm No online non-preemptive scheduler with inserted idle times exists Less investigated compared to preemptive scheduling Feasibility: Does a schedule exists that guarantees no deadline misses for a given real-time task set? Preemptive SchedulingNon-preemptive Scheduling

Set of uniprocessor feasible task sets Set of non-idling non-preemptive feasible task sets Set of limited preemptive feasible task sets Non-preemptive EDF Preemptive EDF Limited preemptive EDF Question: How good is non-preemptive scheduling when compared to uniprocessor optimal (preemptive) scheduling algorithms? Preemptive vs. Non-preemptive Scheduling

State of the Art The efficiency of a scheduler is commonly measured by resource augmentation –how much extra resources (CPU) are required to reach optimality? Task modelPreemptive (EDF vs. FPS) Non-preemptive (EDF vs. FPS) Implicit deadline Constrained deadline Arbitrary deadline Davis et al EDF feasibilityFPS feasibility Preemptive EDF feasibility Non-preemptive EDF feasibility

System Model ● Constrained deadline sporadic task sets (deadline ≤ period) ● Worst Case Execution Time scales linearly with processor speed ● Limited-preemptive scheduler -Floating non-preemptive region (f-NPR) scheduler max. length of f-NPR = L i Task j (high priority) Task i (low priority)

Limited-Preemption Feasibility Analysis Task i Task j Task k LiLi Feasibility condition: DkDk DjDj S.Baruah, The limited-preemption uniprocessor scheduling of sporadic task systems, ECRTS’05 L i + DBF(D k ) ≤ D k DBF(D k ) L i + DBF(D j ) ≤ D j DBF(D j ) DiDi

Limited-Preemption Feasibility Analysis Task i Task j Task k LiLi Feasibility condition: DkDk DjDj S.Baruah, The limited-preemption uniprocessor scheduling of sporadic task systems, ECRTS’05 DBF(D j ) L i + DBF(D k ) ≤ D k DiDi

Task i Task j Task k LiLi Feasibility condition: DkDk DjDj DBF(D j ) speed-up DiDi Limited-Preemption Feasibility Analysis

Processor Speed-up Bound Proof in the paper ? Speed (S) The maximum S

1 4C max /D min 4L/D min Preemption Behavior vs. Processor Speed All feasible task sets are guaranteed a non-preemptive execution for L units All feasible task sets are guaranteed a fully non-preemptive schedule Slower Processor Speed Faster Set of uniprocessor feasible task sets Set of non-idling non- preemptive feasible task sets on a uniprocessor Set of limited-preemption feasible task sets Feasibility Bucket

Research Agenda Quantify the goodness of non-preemptive scheduling ●Preemption behavior vs. processor speed ●Derive processor speed-up bound to enable non-preemptive feasibility Minimize preemption overheads using processor speed-up ●Preemption analysis for limited preemption schedulers ●Derive minimum processor speed that minimizes scheduler specific overheads

Research Agenda Quantify the goodness of non-preemptive scheduling ●Preemption behavior vs. processor speed ●Derive processor speed-up bound to enable non-preemptive feasibility Minimize preemption overheads using processor speed-up ●Preemption analysis for limited preemption schedulers ●Derive minimum processor speed that minimizes scheduler specific overheads

Scheduler Specific Overheads Non-preemptive Scheduling Low runtime overhead: zero preemption costs Mutual exclusion by construction  Increased blocking: low utilization Preemptive Scheduling Zero blocking: high utilization  High runtime overhead: preemption costs  Need for costly synchronization protocols high priority low priority preemption cost high priority low priority blocking Limited-Preemption Scheduling Best of preemptive and non-preemptive: preempt only when necessary high priority low priority Bounded non-preemptive region preemption cost

Scheduler Specific Overheads high priority low priority Bounded max. length of f-NPR Limited-preemption scheduler Vary the bound on the max length of f-NPR  No control on the bound on number of preemptions Control the bound on the number of preemptions  Limited control on the preemption points Full control on the preemption points: possibility to minimize preemption overheads Bounded max. length of f-NPR high priority low priority Our method:

Minimizing Preemption Related Overheads Task attributes Largest non-preemptive regions Sensitivity analysis Minimum processor speed that guarantees feasibility Max. no. of preemptions Preferred preemption points Derivation of non- preemptive regions Step 1 Step 2

Step 1: Deriving f-NPRs Preferred preemption points ( ) Req. 1: Bound the number of preemptions Req. 2: Enable preemptions at optimal points Default max. length of f-NPR Max. length of the desirable f-NPR We use processor speed-up Task level requirements: Task i

Step 2: Sensitivity Analysis min = 1 optimal speed max = 1 4C max /D min 4L/D min Slower Processor Speed Faster Default max. length of f-NPR Max. length of the desirable f-NPR

Tightening the Augmentation Bound Speed (S) Less pessimistic unified result:

Conclusions ●Quantification of the sub-optimality of non-preemptive scheduling -Non-preemptive scheduling is not uniprocessor optimal under the work conserving paradigm -Optimal online non-preemptive scheduler with inserted idle times cannot exist -Our contribution allows to use processor speed-up to enable non-preemptive feasibility for arbitrary task sets ●Analysis of preemption behavior vs. processor speed: the feasibility bucket ●Method to minimize preemption overheads -Derivation of non-preemption requirements -Sensitivity analysis to calculate the optimal speed-up ●Future work: extension to multiprocessor scheduling

Thank you ! Questions ?