The Global Limited Preemptive Earliest Deadline First Feasibility of Sporadic Real-time Tasks Abhilash Thekkilakattil, Sanjoy Baruah, Radu Dobrin and Sasikumar.

Slides:



Advertisements
Similar presentations
Washington WASHINGTON UNIVERSITY IN ST LOUIS Real-Time: Periodic Tasks Fred Kuhns Applied Research Laboratory Computer Science Washington University.
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.
Courseware Scheduling of Distributed Real-Time Systems Jan Madsen Informatics and Mathematical Modelling Technical University of Denmark Richard Petersens.
Explicit Preemption Placement for Real- Time Conditional Code via Graph Grammars and Dynamic Programming Bo Peng, Nathan Fisher, and Marko Bertogna Department.
Harini Ramaprasad, Frank Mueller North Carolina State University Center for Embedded Systems Research Tightening the Bounds on Feasible Preemption Points.
THE UNIVERSITY of TEHRAN Mitra Nasri Sanjoy Baruah Gerhard Fohler Mehdi Kargahi October 2014.
Mehdi Kargahi School of ECE University of Tehran
Multi-core Real-Time Scheduling for Generalized Parallel Task Models Abusayeed Saifullah, Kunal Agrawal, Chenyang Lu, Christopher Gill.
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.
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.
Sporadic Server Scheduling in Linux Theory vs. Practice Mark Stanovich Theodore Baker Andy Wang.
Preemptive Behavior Analysis and Improvement of Priority Scheduling Algorithms Xiaoying Wang Northeastern University China.
EE 249, Fall Discussion: Scheduling Haibo Zeng Amit Mahajan.
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 –
Misconceptions About Real-time Computing : A Serious Problem for Next-generation Systems J. A. Stankovic, Misconceptions about Real-Time Computing: A Serious.
Embedded System Design Framework for Minimizing Code Size and Guaranteeing Real-Time Requirements Insik Shin, Insup Lee, & Sang Lyul Min CIS, Penn, USACSE,
New Schedulability Tests for Real- Time task sets scheduled by Deadline Monotonic on Multiprocessors Marko Bertogna, Michele Cirinei, Giuseppe Lipari Scuola.
A Categorization of Real-Time Multiprocessor Scheduling Problems and Algorithms Presentation by Tony DeLuce CS 537 Scheduling Algorithms Spring Quarter.
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.
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.
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.
Quantifying the Sub-optimality of Non-preemptive Real-time Scheduling 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.
Scheduling policies for real- time embedded systems.
Real-Time Systems Mark Stanovich. Introduction System with timing constraints (e.g., deadlines) What makes a real-time system different? – Meeting timing.
Abhilash Thekkilakattil, Radu Dobrin, Sasikumar Punnekkat Mälardalen Real-time Research Center, Mälardalen University Västerås, Sweden Towards Preemption.
BFair: An Optimal Scheduler for Periodic Real-Time Tasks
Welcome!. PhD Dissertation Defense PhD Candidate: Wenming Li Advisor: Dr. Krishna M. Kavi Committee: Dr. Krishna M. Kavi Dr. Robert Akl Dr. Phil Sweany.
Relaxing the Synchronous Approach for Mixed-Criticality Systems
NC STATE UNIVERSITY Center for Embedded Systems Research (CESR) Electrical & Computer Engineering North Carolina State University Ali El-Haj-Mahmoud and.
Scheduling Real-Time tasks on Symmetric Multiprocessor Platforms Real-Time Systems Laboratory RETIS Lab Marko Bertogna Research Area: Multiprocessor Systems.
Safely Exploiting Multithreaded Processors to Tolerate Memory Latency
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.
Fault Tolerant Scheduling of Mixed Criticality Real-Time Tasks under Error Bursts Abhilash Thekkilakattil, Radu Dobrin and Sasikumar Punnekkat.
Special Class on Real-Time Systems
CSE 522 Real-Time Scheduling (2)
Module 2 Overview of Real Time System Scheduling
Mixed Criticality Systems: Beyond Transient Faults Abhilash Thekkilakattil, Alan Burns, Radu Dobrin and Sasikumar Punnekkat.
CSCI1600: Embedded and Real Time Software Lecture 24: Real Time Scheduling II Steven Reiss, Fall 2015.
Static WCET Analysis vs. Measurement: What is the Right Way to Assess Real-Time Task Timing? Worst Case Execution Time Prediction by Static Program Analysis.
Multiprocessor Fixed Priority Scheduling with Limited Preemptions Abhilash Thekkilakattil, Rob Davis, Radu Dobrin, Sasikumar Punnekkat and Marko Bertogna.
CSCI1600: Embedded and Real Time Software Lecture 23: Real Time Scheduling I Steven Reiss, Fall 2015.
Dynamic Priority Driven Scheduling of Periodic Task
Harini Ramaprasad, Frank Mueller North Carolina State University Center for Embedded Systems Research Bounding Preemption Delay within Data Cache Reference.
Mok & friends. Resource partition for real- time systems (RTAS 2001)
CS333 Intro to Operating Systems Jonathan Walpole.
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.
Unit - I Real Time Operating System. Content : Operating System Concepts Real-Time Tasks Real-Time Systems Types of Real-Time Tasks Real-Time Operating.
Lecture 6: Real-Time Scheduling
Tardiness Bounds for Global EDF Scheduling on a Uniform Multiprocessor Kecheng Yang James H. Anderson Dept. of Computer Science UNC-Chapel Hill.
Embedded System Scheduling
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
EEE 6494 Embedded Systems Design
CSCI1600: Embedded and Real Time Software
Limited-Preemption Scheduling of Sporadic Tasks Systems
Real-Time Process Scheduling Concepts, Design and Implementations
Real-Time Process Scheduling Concepts, Design and Implementations
Presentation transcript:

The Global Limited Preemptive Earliest Deadline First Feasibility of Sporadic Real-time Tasks Abhilash Thekkilakattil, Sanjoy Baruah, Radu Dobrin and Sasikumar Punnekkat

Motivation  Multi (-core) processors in real-time systems complicate the problems associated with fully preemptive schedulers Complex hardware, e.g., different levels of caches -Difficult to perform timing analysis Potentially large number of task migrations: implementation issues -Difficult to demonstrate predictability -Difficult to reason about safety  Non-preemptive scheduling can be infeasible at arbitrarily small utilization Long task problem: at least one task has execution time greater than the shortest deadline Solution: Limit preemptions

Combines best of preemptive and non-preemptive scheduling Control preemption related overheads -Context switch costs, cache related preemption delays, pipeline delaysand bus contention costs Improve processor utilization -Reduce preemption related costs while eliminating infeasibility due to blocking Anecdotal evidence: “limiting preemptions improves safety and makes it easier to certify software for safety-critical applications” Advantages of limiting preemptions high priority low priority Bounded non-preemptive region

Uniprocessor Limited preemptive FPS (Yao et al., RTSJ’11) Limited preemptive EDF (Baruah, ECRTS’05) Multiprocessor Global limited preemptive FPS (Marinho et al., RTSS’13) ? Limited preemptive scheduling landscape

G-LP-EDF scheduling model Processor 2 Processor 1 t L t’ Low priority job executionsHigh priority job executions high priority job release job with latest deadline t t’ L

1.Schedulability analysis for Global Limited Preemptive Earliest Deadline First (G-LP-EDF) scheduling of sporadic real-time tasks 2.Analysis of the effects of increasing the processor speed on G-LP-EDF feasibility Main contributions

Methodology overview Lower-bound on the work executed under any work conserving algorithm Upper-bound on the work generated under G-LP-EDF A necessary unschedulability condition: >≤ A sufficient schedulability condition:

≤ Methodology overview Lower-bound on the work executed under any work conserving algorithm Upper-bound on the work generated under G-LP-EDF A sufficient schedulability condition:

Lower bound on the work done titi t i-1 Processor 2 Processor 1 xixi Low priority job executions (blocking) High priority job executions J i ’s execution release time of job J i release time of job J i+1 work done(t i, t i-1 ) ≥

tktk t2t2 t1t1 Processor 2 Processor 1 deadline miss t0t0 tqtq L Job J 1 x1x1 x2x2 Job J 2 …….. Job J q Job J k xkxk Low priority job executions (blocking)High priority job executions work done(t k, t 0 ) > work done(t i, t i-1 ) ≥ Lower bound on the work done Unschedulability scenario:

≤ Methodology overview Lower-bound on the work executed under any work conserving algorithm Upper-bound on the work generated under G-LP-EDF A sufficient schedulability condition:

Upper bound on the work generated In [t k,t 0 ), we consider the duration for which: a.Low priority tasks block high priority tasks b.Higher priority tasks execute ….. under G-LP-EDF

Maximum duration of blocking Low priority job executions (blocking)High priority job executions blocking(t k, t 0 ) : mL tktk t2t2 t1t1 Processor 2 Processor 1 deadline miss t0t0 L Job J 1 x1x1 x2x2 Job J 2 …….. Job J k xkxk L

Interference from higher priority tasks tktk t0t0 (Forced-Forward Demand Bound Function) Executes on a speed ‘s’ processor R + Work done(t k,t 0 ) ≤ Upper bound on the work generated Task i

Methodology overview Lower-bound on the work executed under any work conserving algorithm Upper-bound on the work generated under G-LP-EDF ≤ A sufficient schedulability condition: ≤ ≤

1.Schedulability analysis for Global Limited Preemptive Earliest Deadline First (G-LP-EDF) scheduling of sporadic real-time tasks 2.Analysis of the effects of increasing the processor speed on G-LP-EDF feasibility Agenda

1.Schedulability analysis for Global Limited Preemptive Earliest Deadline First (G-LP-EDF) scheduling of sporadic real-time tasks 2.Analysis of the effects of increasing the processor speed on G-LP-EDF feasibility Agenda

Feasibility bucket Speed (slower) Speed (faster) Task sets feasible at speed s=x Task sets feasible at speed s=1

Processor speed vs. LP-EDF feasibility Bounds on Multiprocessors Bounds on Uniprocessors uniprocessor LP-EDF feasibility uniprocessor NP-EDF feasibility g-P-EDF feasibility g-LP-EDF feasibility g-NP-EDF feasibility m (and uni) processor feasibility Speed (slower) Speed (faster)

Non-preemptive infeasibility arising from at least one task having WCET greater than shortest deadline Long task problem Task B (lower priority) Task A (higher priority) A solution: code-refactoring at task level (Short, 2010, “The case for non-preemptive, deadline-driven scheduling in real-time embedded systems”) Our speed-up factor quantifies the extent to which code-refactoring must be done to enable non-preemptive feasibility

1.Schedulability analysis for Global Limited Preemptive Earliest Deadline First (G-LP-EDF) scheduling of sporadic real-time tasks 2.Analyze the effects of increasing the processor speed on G-LP-EDF feasibility Agenda

Conclusions Global limited preemptive EDF feasibility analysis –To control preemption related overheads –Enables better reasoning about predictability of multi (-core) processor real-time systems Processor speed vs. preemptive behavior –Quantifies the extent to which code-refactoring must be performed to address the long task problem –Sub-optimality of G-NP-EDF

Future work Compare G-LP-EDF and G-P-EDF in presence of overheads Perform trade-offs: number of extra processors vs. speed-up Partition tasks comprising of non-preemptive chunks Accounting for suspensions

Questions ? Thank you !