6. Application mapping 6.1 Problem definition

Slides:



Advertisements
Similar presentations
Fakultät für informatik informatik 12 technische universität dortmund Classical scheduling algorithms for periodic systems Peter Marwedel TU Dortmund,
Advertisements

Washington WASHINGTON UNIVERSITY IN ST LOUIS Real-Time: Periodic Tasks Fred Kuhns Applied Research Laboratory Computer Science Washington University.
Real Time Scheduling.
Chapter 7 - Resource Access Protocols (Critical Sections) Protocols: No Preemptions During Critical Sections Once a job enters a critical section, it cannot.
1 EE5900 Advanced Embedded System For Smart Infrastructure RMS and EDF Scheduling.
CS5270 Lecture 31 Uppaal, and Scheduling, and Resource Access Protocols CS 5270 Lecture 3.
CPE555A: Real-Time Embedded Systems
An Introduction to Real Time Systems
Mapping of Applications to Platforms Peter Marwedel TU Dortmund, Informatik 12 Germany Graphics: © Alexandra Nolte, Gesine Marwedel, 2003 These slides.
1 Swiss Federal Institute of Technology Computer Engineering and Networks Laboratory Embedded Systems Exercise 2: Scheduling Real-Time Aperiodic Tasks.
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
Mapping of Applications to Platforms Peter Marwedel TU Dortmund, Informatik 12 Germany Graphics: © Alexandra Nolte, Gesine Marwedel, 2003 These slides.
Preemptive Behavior Analysis and Improvement of Priority Scheduling Algorithms Xiaoying Wang Northeastern University China.
Periodic Task Scheduling
Deterministic Scheduling
Fakultät für informatik informatik 12 technische universität dortmund Classical scheduling algorithms for periodic systems Peter Marwedel TU Dortmund,
Embedded Systems Exercise 3: Scheduling Real-Time Periodic and Mixed Task Sets 18. May 2005 Alexander Maxiaguine.
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.
Misconceptions About Real-time Computing : A Serious Problem for Next-generation Systems J. A. Stankovic, Misconceptions about Real-Time Computing: A Serious.
Real-Time Operating System Chapter – 8 Embedded System: An integrated approach.
Chapter 4 – Periodic Task Scheduling In many real-time systems periodic tasks dominate the demand. Three classic periodic task scheduling algorithms: –
Technische Universität Dortmund Classical scheduling algorithms for periodic systems Peter Marwedel TU Dortmund, Informatik 12 Germany 2007/12/14.
New Schedulability Tests for Real- Time task sets scheduled by Deadline Monotonic on Multiprocessors Marko Bertogna, Michele Cirinei, Giuseppe Lipari Scuola.
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
Scheduling policies for real- time embedded systems.
Multiprocessor Real-time Scheduling Jing Ma 马靖. Classification Partitioned Scheduling In the partitioned approach, the tasks are statically partitioned.
Real Time Scheduling Telvis Calhoun CSc Outline Introduction Real-Time Scheduling Overview Tasks, Jobs and Schedules Rate/Deadline Monotonic Deferrable.
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
Real-Time Scheduling CS 3204 – Operating Systems Lecture 20 3/3/2006 Shahrooz Feizabadi.
Static Process Scheduling Section 5.2 CSc 8320 Alex De Ruiter
CS244-Introduction to Embedded Systems and Ubiquitous Computing Instructor: Eli Bozorgzadeh Computer Science Department UC Irvine Winter 2010.
Summary :-Distributed Process Scheduling Prepared By:- Monika Patel.
6. A PPLICATION MAPPING 6.3 HW/SW partitioning 6.4 Mapping to heterogeneous multi-processors 1 6. Application mapping (part 2)
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems RMS and EDF Schedulers.
CS244-Introduction to Embedded Systems and Ubiquitous Computing Instructor: Eli Bozorgzadeh Computer Science Department UC Irvine Winter 2010.
Mapping: Applications  Processors
Special Class on Real-Time Systems
CSE 522 Real-Time Scheduling (2)
Module 2 Overview of Real Time System Scheduling
Real-Time Scheduling CS 3204 – Operating Systems Lecture 13 10/3/2006 Shahrooz Feizabadi.
1 Real-Time Scheduling. 2Today Operating System task scheduling –Traditional (non-real-time) scheduling –Real-time scheduling.
CSCI1600: Embedded and Real Time Software Lecture 24: Real Time Scheduling II Steven Reiss, Fall 2015.
Introduction to Embedded Systems Rabie A. Ramadan 5.
CSCI1600: Embedded and Real Time Software Lecture 23: Real Time Scheduling I Steven Reiss, Fall 2015.
Lecture 2, CS52701 The Real Time Computing Environment I CS 5270 Lecture 2.
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.
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.
Pradeep Konduri Static Process Scheduling:  Proceedance process model  Communication system model  Application  Dicussion.
Lecture 6: Real-Time Scheduling
Distributed Process Scheduling- Real Time Scheduling Csc8320(Fall 2013)
Embedded System Scheduling
Wayne Wolf Dept. of EE Princeton University
EEE 6494 Embedded Systems Design
Lecture 4 Schedulability and Tasks
Lecture 24: Process Scheduling Examples and for Real-time Systems
CprE 458/558: Real-Time Systems
Realtime Scheduling Algorithms
Chapter 6 Dynamic Priority Servers
Real Time Scheduling Mrs. K.M. Sanghavi.
CSCI1600: Embedded and Real Time Software
CSCI1600: Embedded and Real Time Software
Real-Time Process Scheduling Concepts, Design and Implementations
The End Of The Line For Static Cyclic Scheduling?
Ch 4. Periodic Task Scheduling
Real-Time Process Scheduling Concepts, Design and Implementations
Presentation transcript:

6. Application mapping 6.1 Problem definition 6.2 Scheduling in real-time systems 6.3 Hardware/software partitioning 6.4 Mapping to heterogeneous multi-processors

6.1 Problem definition Find: Objectives: A mapping of applications to processors, Appropriate scheduling techniques (if not fixed), and A target architecture (if not fixed) Objectives: Keeping deadlines and/or maximizing performance, as well as Minimizing cost, energy consumption, and possibly other objectives. The application mapping problem is a very difficult one and currently only approximated for an automated mapping are available. Standard scheduling techniques, Hardware/software partitioning, and Advanced techniques for mapping sets of applications onto multi-processor systems. 6. Application Mapping

6.2 Scheduling in real-time systems Scheduling is one of the key issues in implementing embedded systems. Scheduling defines start times for each task and therefore defines a mapping  from nodes of a task graph G=(V, E) to time domain Dt: : V  Dt (6.1) 6.2.1 Classification of scheduling algorithms Classes of scheduling algorithms real-time scheduling hard deadlines soft deadlines periodic aperiodic preemptive Non-preemptive static dynamic 6. Application Mapping

6.2.2 Aperiodic scheduling without precedence constraints 6.2.2.1 Definitions {Ti}, a set of tasks ci be the execution time of Ti, di be the deadline-interval, li be the laxity or slack, defined as 6.2.2.2 Earliest Due Date (EDD) – Algorithm Jackson’s rule: Given a set of a independent tasks, any algorithm that executes the tasks in order of non-decreasing deadlines is optimal with respect to minimizing the maximum lateness. Availability of Task di ci li t 6. Application Mapping

6.2.2.3 Earliest Deadline First (EDF) – Algorithm The Earliest Deadline First (EDF) algorithm is optimal with respect to minimizing the maximum lateness. Given a set of n independent tasks with arbitrary arrival times, any algorithm that at any instant executes the task with the earliest absolute deadline among all the ready tasks is optimal with respect to minimizing the maximum lateness. EDF is a dynamic scheduling algorithm. Fig. 6.6 shows a schedule derived with the EDF algorithm. Vertical arrows indicate the arrival of tasks. 6. Application Mapping

6.2.2.4 Least Laxity (LL) algorithm Priorities = decreasing function of the laxity (lower laxity  higher priority); changing priority; preemptive. Fig. 6.6 shows an example of an LL schedule, together with the computations of the laxity. 6. Application Mapping

6.2.2.5 Scheduling without preemption T1: periodic, c1 = 2, p1 = 4, d1 = 4 T2: occasionally available at times 4*n+1, c2= 1, d2= 1 T1 has to start at t =0  deadline missed, but schedule is possible (start T2 first)  scheduler is not optimal  contradiction! q.e.d. 6. Application Mapping

6.2.3 Aperiodic scheduling with precedence constraints 6.2.3.1 Latest Deadline First (LDF) algorithm In a task graph reflecting tasks dependences (Fig. 6.11). Task T3 can be executed only after tasks T1 and T2 have completed and sent message to T1. 6.2.3.2 As-soon-as-possible (ASAP) scheduling Consider a 33 matrix. 6. Application Mapping

The determinant det(A) of this matrix can be computed as ASAP schedule for the example of det(A) e i a f h b g d c  - + =1 =3 =4 =6 =7 6. Application Mapping

6.2.4 Periodic scheduling without precedence constraints 6.2.4.1 Notation Let {Ti } be a set of tasks. Let: pi be the period of task Ti, ci be the execution time of Ti , di be the deadline interval, that is, the time between Ti becoming available and the time until which Ti has to finish execution. li be the laxity or slack, defined as li = di - ci fi be the finishing time. Let  denote the utilization for a set of n processes, that is, the accumulated execution times of these processes divided by their period: 6. Application Mapping li pi ci di t i

6.2.4.2 Rate monotonic scheduling Necessary condition for schedulability (with m=number of processors): 6.2.4.2 Rate monotonic scheduling RM policy: The priority of a task is a monotonically decreasing function of its period. At any time, a highest priority task among all those that are ready for execution is allocated. 6. Application Mapping T1 preempts T2 and T3. T2 and T3 do not preempt each other.

6.2.4.3 Earliest deadline first scheduling EDF can also be applied to periodic scheduling. EDF optimal for every hyper-period (= least common multiple of all periods) Optimal for periodic scheduling EDF must be able to schedule the example in which RMS failed. At time 5, T2 not preempted, due to its earlier deadline. 6. Application Mapping