Paper Presentation. Amo Guangmo Tong. University of Taxes at Dallas January 24, 2014

Similar documents
Paper Presentation. Amo Guangmo Tong. University of Taxes at Dallas February 11, 2014

Tardiness Bounds under Global EDF Scheduling on a Multiprocessor

An O(m) Analysis Technique for Supporting Real-Time Self-Suspending Task Systems

On the Soft Real-Time Optimality of Global EDF on Multiprocessors: From Identical to Uniform Heterogeneous

Tardiness Bounds under Global EDF Scheduling on a. Multiprocessor

Lecture 13. Real-Time Scheduling. Daniel Kästner AbsInt GmbH 2013

Scheduling Stochastically-Executing Soft Real-Time Tasks: A Multiprocessor Approach Without Worst-Case Execution Times

Supporting Read/Write Applications in Embedded Real-time Systems via Suspension-aware Analysis

Tardiness Bounds for FIFO Scheduling on Multiprocessors

Task Models and Scheduling

Embedded Systems Development

Embedded Systems 15. REVIEW: Aperiodic scheduling. C i J i 0 a i s i f i d i

Andrew Morton University of Waterloo Canada

Non-Preemptive and Limited Preemptive Scheduling. LS 12, TU Dortmund

Schedulability analysis of global Deadline-Monotonic scheduling

Aperiodic Task Scheduling

Closing the Loop for the Selective Conversion Approach: A Utilization-based Test for Hard Real-Time Suspending Task Systems

A Note on Modeling Self-Suspending Time as Blocking Time in Real-Time Systems

Scheduling Lecture 1: Scheduling on One Machine

On the Soft Real-Time Optimality of Global EDF on Uniform Multiprocessors

Tardiness Bounds for EDF Scheduling on Multi-Speed Multicore Platforms

Scheduling Lecture 1: Scheduling on One Machine

The Concurrent Consideration of Uncertainty in WCETs and Processor Speeds in Mixed Criticality Systems

CPU SCHEDULING RONG ZHENG

The Partitioned Dynamic-priority Scheduling of Sporadic Task Systems

Rate-monotonic scheduling on uniform multiprocessors

Real-Time and Embedded Systems (M) Lecture 5

Real-time scheduling of sporadic task systems when the number of distinct task types is small

Real-time operating systems course. 6 Definitions Non real-time scheduling algorithms Real-time scheduling algorithm

Bursty-Interference Analysis Techniques for. Analyzing Complex Real-Time Task Models

System Model. Real-Time systems. Giuseppe Lipari. Scuola Superiore Sant Anna Pisa -Italy

Real-Time Systems. Lecture #14. Risat Pathan. Department of Computer Science and Engineering Chalmers University of Technology

An Optimal k-exclusion Real-Time Locking Protocol Motivated by Multi-GPU Systems

Optimal Utilization Bounds for the Fixed-priority Scheduling of Periodic Task Systems on Identical Multiprocessors. Sanjoy K.

Non-preemptive Fixed Priority Scheduling of Hard Real-Time Periodic Tasks

Multiprocessor Scheduling II: Global Scheduling. LS 12, TU Dortmund

arxiv: v3 [cs.ds] 23 Sep 2016

Networked Embedded Systems WS 2016/17

Embedded Systems 14. Overview of embedded systems design

Suspension-Aware Analysis for Hard Real-Time Multiprocessor Scheduling

EDF Scheduling. Giuseppe Lipari May 11, Scuola Superiore Sant Anna Pisa

2.1 Task and Scheduling Model. 2.2 Definitions and Schedulability Guarantees

An Optimal Real-Time Scheduling Algorithm for Multiprocessors

CIS 4930/6930: Principles of Cyber-Physical Systems

Module 5: CPU Scheduling

Chapter 6: CPU Scheduling

A New Sufficient Feasibility Test for Asynchronous Real-Time Periodic Task Sets

The FMLP + : An Asymptotically Optimal Real-Time Locking Protocol for Suspension-Aware Analysis

AS computer hardware technology advances, both

EDF Scheduling. Giuseppe Lipari CRIStAL - Université de Lille 1. October 4, 2015

Multiprocessor Real-Time Scheduling Considering Concurrency and Urgency

Static priority scheduling

Non-Work-Conserving Non-Preemptive Scheduling: Motivations, Challenges, and Potential Solutions

Scheduling Algorithms for Multiprogramming in a Hard Realtime Environment

Segment-Fixed Priority Scheduling for Self-Suspending Real-Time Tasks

Uniprocessor Mixed-Criticality Scheduling with Graceful Degradation by Completion Rate

Task Reweighting under Global Scheduling on Multiprocessors

A 2-Approximation Algorithm for Scheduling Parallel and Time-Sensitive Applications to Maximize Total Accrued Utility Value

Multiprocessor Scheduling I: Partitioned Scheduling. LS 12, TU Dortmund

The preemptive uniprocessor scheduling of mixed-criticality implicit-deadline sporadic task systems

TDDI04, K. Arvidsson, IDA, Linköpings universitet CPU Scheduling. Overview: CPU Scheduling. [SGG7] Chapter 5. Basic Concepts.

Load Regulating Algorithm for Static-Priority Task Scheduling on Multiprocessors

Clock-driven scheduling

Analysis Techniques for Supporting Harmonic Real-Time Tasks with Suspensions

RUN-TIME EFFICIENT FEASIBILITY ANALYSIS OF UNI-PROCESSOR SYSTEMS WITH STATIC PRIORITIES

arxiv: v1 [cs.os] 6 Jun 2013

EFFICIENT DESIGN, ANALYSIS, AND IMPLEMENTATION OF COMPLEX MULTIPROCESSOR REAL-TIME SYSTEMS

A New Task Model and Utilization Bound for Uniform Multiprocessors

Predictability of Least Laxity First Scheduling Algorithm on Multiprocessor Real-Time Systems

An EDF-based Scheduling Algorithm for Multiprocessor Soft Real-Time Systems

EDF and RM Multiprocessor Scheduling Algorithms: Survey and Performance Evaluation

Compositional Analysis Techniques For Multiprocessor Soft Real-Time Scheduling

EDF Feasibility and Hardware Accelerators

Real-time Scheduling of Periodic Tasks (1) Advanced Operating Systems Lecture 2

Scheduling Periodic Real-Time Tasks on Uniprocessor Systems. LS 12, TU Dortmund

Multiprocessor EDF and Deadline Monotonic Schedulability Analysis

Optimal Semi-Partitioned Scheduling in Soft Real-Time Systems

Lecture 6. Real-Time Systems. Dynamic Priority Scheduling

Partitioned scheduling of sporadic task systems: an ILP-based approach

CSE 380 Computer Operating Systems

Controlling Preemption for Better Schedulability in Multi-Core Systems

Real-Time Systems. Event-Driven Scheduling

There are three priority driven approaches that we will look at

Schedulability and Optimization Analysis for Non-Preemptive Static Priority Scheduling Based on Task Utilization and Blocking Factors

Real-Time Systems. LS 12, TU Dortmund

NATCOR: Stochastic Modelling

Multi-core Real-Time Scheduling for Generalized Parallel Task Models

Real-Time Systems. Event-Driven Scheduling

Reducing Tardiness Under Global Scheduling by Splitting Jobs

Mitra Nasri* Morteza Mohaqeqi Gerhard Fohler

Response Time Analysis for Tasks Scheduled under EDF within Fixed Priorities

Global mixed-criticality scheduling on multiprocessors

the currently active 1 job whose deadline parameter is the smallest, is an optimal scheduling algorithm in the sense that if a system can be scheduled

An Overview of Interrupt Accounting Techniques for Multiprocessor Real-Time Systems

Schedulability of Periodic and Sporadic Task Sets on Uniprocessor Systems

Supporting Intra-Task Parallelism in Real- Time Multiprocessor Systems José Fonseca

A Theory of Rate-Based Execution. A Theory of Rate-Based Execution

CycleTandem: Energy-Saving Scheduling for Real-Time Systems with Hardware Accelerators

Heterogeneous multiprocessor compositional real-time scheduling

An Improved Schedulability Test for Uniprocessor. Periodic Task Systems

Transcription:

Paper Presentation Amo Guangmo Tong University of Taxes at Dallas gxt140030@utdallas.edu January 24, 2014 Amo Guangmo Tong (UTD) January 24, 2014 1 / 30

Overview 1 Tardiness Bounds under Global EDF Scheduling on a Multiprocessor 2 An O(m) Analysis Technique for Supporting Real-Time Self-Suspending Task Systems Amo Guangmo Tong (UTD) January 24, 2014 2 / 30

Tardiness Bounds under Global EDF Scheduling on a Multiprocessor Tardiness Bounds under Global EDF Scheduling on a Multiprocessor UmaMaheswari C. Devi and James H. Anderson Amo Guangmo Tong (UTD) January 24, 2014 3 / 30

Tardiness Bounds under Global EDF Scheduling on a Multiprocessor Abstact The major topic in this paper is the scheduling of soft real-time sporadic task systems on a multiprocessor. This paper derives the tardiness bound under preemptive or non-preemptive global earliest-deadline-first (EDF) schedule when the total utilization is less than or even equal to the number of processors. Amo Guangmo Tong (UTD) January 24, 2014 4 / 30

System Model Soft real-time system T n sporadic tasks T n m identical processors,m > 1 minimum inter-arrival time or period, p i > 0 execution cost e i < p i relative deadline D i = p i utilization u i = e i /p i U sum = u i m U max (k) denotes the subset of k tasks with highest utilizations in T E max (k) denotes the subset of k tasks with highest executions in T Amo Guangmo Tong (UTD) January 24, 2014 5 / 30

Schedule Algorithms Processor Sharing(PS) schedule In a PS schedule, each job of T i is allocated a fraction u i of a processor at each instant. Every job will complete executing exactly at its deadline. As long as U sum = u i m, a valid PS schedule exists. Earliest-Deadline-First(EDF) schedule In a EDF schedule, the job with earlier deadline has higher priority. Non-preemptive Earliest-Deadline-First(NP-EDF) schedule In a NP-EDF schedule, the job with earlier deadline has higher priority and a job cannot be paused until its completion. Amo Guangmo Tong (UTD) January 24, 2014 6 / 30

LAG(T, t) For any given soft real-time system T A(PS, T i, t) denotes the allocation of resource to task T i within the interval [0, t] under PS schedule; A(EDF, T i, t) denotes the allocation of resource to task T i within interval [0, t] under EDF schedule. lag(t i, t) = A(PS, T i, t) A(EDF, T i, t) LAG(T, t) = i n lag(t i, t) Amo Guangmo Tong (UTD) January 24, 2014 7 / 30

How to derive the tardiness bound of job T i,j Step 1 Let t d = d i,j denotes the deadline of T i,j. Notice that jobs with lower priority have no influence on the schedule of jobs with higher priority. We ignore the jobs with priority lower than T i,j. In this case, LAG(T, t d ) represents the workload remaining to be done after t d in order to finish all the execution. Intuitively, the tardiness bound of T i,j is directly related to LAG(T, t d ) Amo Guangmo Tong (UTD) January 24, 2014 8 / 30

How to derive the tardiness bound of job T i,j Step 2 Lemma 1 Let the tardiness of T k with a deadline less than t d be at most x + e k, where x 0, for all 1 i n under the EDF schedule for system T on m processors. If LAG(T, t d ) mx + e i. Then, the tardiness of T i,j is at most x + e i. We denote mx + e i as Lower Bound. Amo Guangmo Tong (UTD) January 24, 2014 9 / 30

How to derive the tardiness bound of job T i,j Step 3 Lemma 2 Let the tardiness of T k with a deadline less than t d be at most x + e k, where x 0, for all 1 i n under the EDF schedule for system T on m processors. And U sum m. Then LAG(T, t d ) x T i U max (m 1) u i + T i E max (m 1) e i We denote x T i U max (m 1) u i + T i E max (m 1) e i as Upper Bound. Amo Guangmo Tong (UTD) January 24, 2014 10 / 30

How to derive the tardiness bound of job T i,j Step 4 Let the UpperBound not more than LowerBound (x T i U max (m 1) u i + T i E max (m 1) e i) (mx + e i ) Solve this inequation. Then, x [ ( T i E max (m 1) e i) e min m T i U max (m 1) u ], i in which case the condition in Lemma 1 can be satisfied. According to the Lemma 1, the tardiness of job T i,j in task T i is at most [ ( T i E max (m 1) e i) e min m T i U max (m 1) u ] + e i. By induction, the tardiness i bound of all of the jobs in task T i is [ ( T i E max (m 1) e i) e min m T i U max (m 1) u ] + e i. i Amo Guangmo Tong (UTD) January 24, 2014 11 / 30

Conclusion The tardiness bounds under global EDF for task T i in a sporadic real-time systems on multiprocessors is [ ( T i E max (m 1) e i) e min m T i U max (m 1) u ] + e i, when the total utilization of a task i system is not more than the number of processors, m, which means the resource can be fully utilized in the long run. The tardiness bound under non-preemptive global EDF can be derived by the similar framework with slight difference in the prove of UpperBound. Amo Guangmo Tong (UTD) January 24, 2014 12 / 30

Strength Multiprocessor Multiprocessor-based design has been used widely in the present-day applications. For example, virtual-reality systems, systems that track people and machines, and signal-processing systems such as synthetic-aperture. In this case, the previous theories on uniprocessor are insufficient. Soft real-time system Then, not all real-time systems require that the deadline of job has to be met. In other words, such as in multimedia and gaming systems, we can tolerant tardiness as long as it is bounded with limitation. Non-preemptive Finally, this paper derives a tardiness bound under non-preemptive global EDF, which provides a theory foundation for the case in practice that tasks cannot be paused before completion. Amo Guangmo Tong (UTD) January 24, 2014 13 / 30

An O(m) Analysis Technique for Supporting Real-Time Self-Suspending Task Systems An O(m) Analysis Technique for Supporting Real-Time Self-Suspending Task Systems Liu Cong and James H. Anderson Amo Guangmo Tong (UTD) January 24, 2014 14 / 30

An O(m) Analysis Technique for Supporting Real-Time Self-Suspending Task Systems Abstact This paper considers soft real-time self-suspending task systems under the preemptive global EDF and derives a new schedulability test with O(m) suspension-related utilization loss. Similar to the first paper, this paper also analyze the tardiness bound by using the allocation difference between PS schedule and EDF schedule Amo Guangmo Tong (UTD) January 24, 2014 15 / 30

System Model Soft real-time Self-Suspending system T Self-suspending: jobs alternate between computation and suspension phase n sporadic tasks T n m identical processors,m > 1 minimum inter-arrival time or period, p i > 0 execution cost e i ; suspension costs i ; e i + s i < p i relative deadline D i = p i utilization u i = e i /p i ; suspension ratio v i = s i /p i ; u = u i + v i U sum = u i m Amo Guangmo Tong (UTD) January 24, 2014 16 / 30

Schedule Algorithms Processor Sharing(PS) schedule In a PS schedule, each job of T i is allocated a fraction u i of a processor at each instant. Every job will complete executing exactly at its deadline. As long as U sum = u i m, a valid PS schedule exists. Earliest-Deadline-First(EDF) schedule In a EDF schedule, the job with earlier deadline has higher priority. Amo Guangmo Tong (UTD) January 24, 2014 17 / 30

How to deal with suspension In the first paper, the critical point is if t is non-busy time instant there are at most m-1, tasks have tardy jobs at t. Otherwise, t cannot be non-busy. However, when it comes to self-suspending system, there could be at most n tasks have tardy jobs at a non-busy instant t. Amo Guangmo Tong (UTD) January 24, 2014 18 / 30

How to deal with suspension Convert all the suspension into execution? Then, e i = e i + s i. To guarantee a valid PS schedule, we need U sum = U sum + i n s i p i m It works but pessimistic, because resource will be wasted severely Amo Guangmo Tong (UTD) January 24, 2014 19 / 30

How to deal with suspension If,by converting at most m tasks suspensions into execution at any instant t in PS, we can guarantee that any non-busy instant t in EDF there are at most m 1 tasks have tardy jobs. In this case, to guarantee a valid PS schedule, we need U sum + V max(m) v i m It works better but how to convert the suspension into execution? Amo Guangmo Tong (UTD) January 24, 2014 20 / 30

Transformation Consider processor M k. Let t f be the finish time of the system. From t f to the left, let t h denote the first encountered non-busy time instant on M k where at least one task T i has an tardy job T i,v suspending at t h. Let v c denote the minimum job index of T i such that all job from T i,v c to T i,v are tardy. Then [A 1 k, B1 k ] = [r i,v c, t h + 1]. In this way, from r i,v c we can get [A 2 k, B2 k ]. Until time 0, we will get [Aq k, Bq k ] transformation intervals respect to M k. Note that each job in a transformation interval has its release time and deadline time within the interval. Move Switch Convert Do the same things to all processors. Amo Guangmo Tong (UTD) January 24, 2014 21 / 30

Transformation Check At any non-busy time instant t [0, t f ] in the transformed schedule, at most m 1 tasks can have enabled tardy jobs with deadlines at or before t. A valid PS schedule exists when U sum + V max(m) v i m. We denote the new schedule as PS and EDF Amo Guangmo Tong (UTD) January 24, 2014 22 / 30

LAG(T, t) For any given soft real-time system T A(PS, T i, t) denotes the allocation of resource to task T i within the interval [0, t] under PS schedule; A(EDF, T i, t) denotes the allocation of resource to task T i within interval [0, t] under EDF schedule. lag(t i, t) = A(PS, T i, t) A(EDF, T i, t) LAG(T, t) = i n lag(t i, t) Amo Guangmo Tong (UTD) January 24, 2014 23 / 30

How to derive the tardiness bound of job T i,j Step 1 Let t d = d i,j denotes the deadline of T i,j. Notice that jobs with lower priority have no influence on the schedule of jobs with higher priority. We ignore the jobs with priority lower than T i,j. In this case, LAG(T, t d ) represents the workload remaining to be done after t d in order to finish all the execution. Intuitively, the tardiness bound of T i,j is directly related to LAG(T, t d ) Amo Guangmo Tong (UTD) January 24, 2014 24 / 30

How to derive the tardiness bound of job T i,j Step 2 Lemma 1 Let the tardiness of T k with a deadline less than t d be at most x + e k + s k, where x 0, for all 1 i n under the EDF schedule for system T on m processors. If LAG(T, t d ) mx. Then, the tardiness of T i,j is at most x + e i + s i. We denote mx as Lower Bound. Amo Guangmo Tong (UTD) January 24, 2014 25 / 30

How to derive the tardiness bound of job T i,j Step 3 Lemma 2 Let the tardiness of T k with a deadline less than t d be at most x + e k + s k, where x 0, for all 1 i n under the EDF schedule for system T on m processors. And U sum m. Let E denotes the largest value of the expression τ i τ (e i + s i ) + τ i ψ u e i, where ψ denotes any set of m 1 tasks. Let U m 1 be the sum of the m 1 largest u i Then LAG(T, t d ) x U m 1 + E We denote x U m 1 + E as Upper Bound. Amo Guangmo Tong (UTD) January 24, 2014 26 / 30

How to derive the tardiness bound of job T i,j Step 4 Let the UpperBound not more than LowerBound x U m 1 + E (mx + e i + s i ). Solve this inequation. Then, x [ E e i s i m U m 1 ], in which case, the condition in Lemma 1 can be satisfied. Amo Guangmo Tong (UTD) January 24, 2014 27 / 30

Conclusion The tardiness bounds under global EDF for task T i in a sporadic real-time systems on multiprocessors is [ E e i s i m U m 1 ] + e i, when the total utilization of a task system is not more than the number of processors, m, which means the resource can be fully utilized in the long run. The tardiness bound under non-preemptive global EDF can be derived by the similar framework with slight difference in the prove of UpperBound. Amo Guangmo Tong (UTD) January 24, 2014 28 / 30

Strength Suspension As the paper says, suspension delays may occur in many systems due to the cases such as the interaction with external devices and resource sharing. Then this paper derives an tardiness bound with O(m) utilization loss. This result is much better than the previous result in that when the number of tasks is very large then the O(n) utilization loss can be highly significant. Amo Guangmo Tong (UTD) January 24, 2014 29 / 30

The End Amo Guangmo Tong (UTD) January 24, 2014 30 / 30