Ph. D. candidate Scuola Superiore S.Anna Pisa - Italy Designing Real-Time Software visiting prof. Baruah Univ. of North Carolina Chapel Hill - NC.

Slides:



Advertisements
Similar presentations
3.4 Linear Programming 10/31/2008. Optimization: finding the solution that is either a minimum or maximum.
Advertisements

CprE 458/558: Real-Time Systems
Linear Programming Problem
1 EE5900 Advanced Embedded System For Smart Infrastructure RMS and EDF Scheduling.
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.
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Fall, 2002 Lecture 8 Tuesday, 11/19/02 Linear Programming.
Real-time concepts Lin Zhong ELEC424, Fall Real time Correctness – Logical correctness – Timing Hard vs. Soft – Hard: lateness is intolerable Pass/Fail.
Ch 2. 6 – Solving Systems of Linear Inequalities & Ch 2
Real-Time Scheduling CIS700 Insup Lee October 3, 2005 CIS 700.
Task Allocation and Scheduling n Problem: How to assign tasks to processors and to schedule them in such a way that deadlines are met n Our initial focus:
Linear Programming Fundamentals Convexity Definition: Line segment joining any 2 pts lies inside shape convex NOT convex.
Convexity of Point Set Sandip Das Indian Statistical Institute.
Towards optimal priority assignments for real-time tasks with probabilistic arrivals and probabilistic execution times Dorin MAXIM INRIA Nancy Grand Est.
Soft Real-Time Semi-Partitioned Scheduling with Restricted Migrations on Uniform Heterogeneous Multiprocessors Kecheng Yang James H. Anderson Dept. of.
Linear Programming Unit 2, Lesson 4 10/13.
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Fall, 2006 Lecture 9 Wednesday, 11/15/06 Linear Programming.
ECEN 4623/5623 RT Embedded Systems Mid-Term Review Lecture.
Jean-Charles REGIN Michel RUEHER ILOG Sophia Antipolis Université de Nice – Sophia Antipolis A global constraint combining.
Linear Programming Computational Geometry, WS 2007/08 Lecture 7, Part II Prof. Dr. Thomas Ottmann Algorithmen & Datenstrukturen, Institut für Informatik.
Embedded Systems Exercise 3: Scheduling Real-Time Periodic and Mixed Task Sets 18. May 2005 Alexander Maxiaguine.
6. Linear Programming (Graphical Method) Objectives: 1.More than one solution 2.Unbounded feasible region 3.Examples Refs: B&Z 5.2.
Scheduling Algorithms for Multiprogramming in a Hard-Real-Time Environment Presented by Pete Perlegos C.L. Liu and James W. Layland.
Misconceptions About Real-time Computing : A Serious Problem for Next-generation Systems J. A. Stankovic, Misconceptions about Real-Time Computing: A Serious.
Technische Universität Dortmund Classical scheduling algorithms for periodic systems Peter Marwedel TU Dortmund, Informatik 12 Germany 2007/12/14.
October 3, 2005CIS 7001 Compositional Real-Time Scheduling Framework Insik Shin.
New Schedulability Tests for Real- Time task sets scheduled by Deadline Monotonic on Multiprocessors Marko Bertogna, Michele Cirinei, Giuseppe Lipari Scuola.
MM Process Management Karrie Karahalios Spring 2007 (based off slides created by Brian Bailey)
EE/Econ 458 Introduction to Linear Programming J. McCalley 1.
BFair: An Optimal Scheduler for Periodic Real-Time Tasks
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
The Global Limited Preemptive Earliest Deadline First Feasibility of Sporadic Real-time Tasks Abhilash Thekkilakattil, Sanjoy Baruah, Radu Dobrin and Sasikumar.
The 32nd IEEE Real-Time Systems Symposium Meeting End-to-End Deadlines through Distributed Local Deadline Assignment Shengyan Hong, Thidapat Chantem, X.
1 SYNTHESIS of PIPELINED SYSTEMS for the CONTEMPORANEOUS EXECUTION of PERIODIC and APERIODIC TASKS with HARD REAL-TIME CONSTRAINTS Paolo Palazzari Luca.
MER 160, Prof. Bruno1 Optimization The idea behind “optimization” is to find the “best” solution from a domain of “possible” solutions. Optimization methods.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems RMS and EDF Schedulers.
CSE 522 Real-Time Scheduling (2)
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 33: Worst Case Execution Time Steven Reiss, Fall 2015.
Multiprocessor Fixed Priority Scheduling with Limited Preemptions Abhilash Thekkilakattil, Rob Davis, Radu Dobrin, Sasikumar Punnekkat and Marko Bertogna.
EnricoBini Modeling event-driven real-time application using DAGs CarloVitucci GiuseppeLipari Scuola Superiore A.Anna Ericsson Lab Italy.
Part 3. Linear Programming 3.2 Algorithm. General Formulation Convex function Convex region.
Classical scheduling algorithms for periodic systems Peter Marwedel TU Dortmund, Informatik 12 Germany 2012 年 12 月 19 日 These slides use Microsoft clip.
Introduction to Optimization
1 JOB SEQUENCING WITH DEADLINES The problem is stated as below. There are n jobs to be processed on a machine. Each job i has a deadline d i ≥ 0 and profit.
WCET-Aware Dynamic Code Management on Scratchpads for Software-Managed Multicores Yooseong Kim 1,2, David Broman 2,3, Jian Cai 1, Aviral Shrivastava 1,2.
Section 15.2 Optimization. Recall from single variable calculus Let f be continuous on a closed, bounded interval, [a,b], then f(x) has both a global.
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.
Balanced Billing Cycles and Vehicle Routing of Meter Readers by Chris Groër, Bruce Golden, Edward Wasil University of Maryland, College Park American University,
Determining Optimal Processor Speeds for Periodic Real-Time Tasks with Different Power Characteristics H. Aydın, R. Melhem, D. Mossé, P.M. Alvarez University.
Ch03-Algorithms 1. Algorithms What is an algorithm? An algorithm is a finite set of precise instructions for performing a computation or for solving a.
Istituto di Tecnologie della Comunicazione dell’Informazione e della Percezione Explicit Preemption Point (EPP) placement for conditional code Marko Bertogna.
Improved Conditions for Bounded Tardiness under EPDF Fair Multiprocessor Scheduling UmaMaheswari Devi and Jim Anderson University of North Carolina at.
Distributed Process Scheduling- Real Time Scheduling Csc8320(Fall 2013)
1 2 Linear Programming Chapter 3 3 Chapter Objectives –Requirements for a linear programming model. –Graphical representation of linear models. –Linear.
Embedded System Scheduling
Linear Programming Many problems take the form of maximizing or minimizing an objective, given limited resources and competing constraints. specify the.
Scheduling and Resource Access Protocols: Basic Aspects
CSCI1600: Embedded and Real Time Software
Linear Programming.
Chapter 6. Large Scale Optimization
Extreme Values of Functions
Processes and operating systems
Linköping University, IDA, ESLAB
Linear Programming Problem
The End Of The Line For Static Cyclic Scheduling?
Ch 4. Periodic Task Scheduling
CSCI1600: Embedded and Real Time Software
Presentation transcript:

Ph. D. candidate Scuola Superiore S.Anna Pisa - Italy Designing Real-Time Software visiting prof. Baruah Univ. of North Carolina Chapel Hill - NC

Designing is optimizing where:  the application is represented by a tuple of design variables x ;  x is in a design space  ;  the reward function f express our goal. The designer has to find the application x, such that:

Application model  Application model: tasks set {  1,  2, …,  n }.   i = (C i, T i, D i ), where:  C i is the max computation time of  i (WCET).  T i is the min interarrival time (or period).  D i is the relative deadline.  U i = C i / T i is the utilization factor of  i. Di  Ti.Di  Ti.Di  Ti.Di  Ti. Task  x = (2, 4, 3) absolute deadlines activation instants

Design variables/Reward function  The designer of RT software can select among:  many implementations of an algorithm ( C i );  different periods on the programmable timers ( T i );  different task deadlines ( D i ).  The reward function f(x) typically:  pushes against the schedulability;  increases for: bigger C i (better algorithm), smaller T i (the task is run more often), smaller D i (greater responsiveness).

The design space   There may be some external constraint:  task activation periods depend on external events;  only a bunch of implementation is available. The selected tasks set needs to be schedulable! We need to define a schedulability condition/constraint

Una linea Attempt 1: Response Time An iterative algorithm applied to the task set/application x x YESNO It does not provide informative result:  distance to the boundary.

Using Response Time for optimizing NO designVar2 designVar1 reward function Initial solution ? ? ? ? ? ? ? ? ? ? ? Where? A “YES/NO” test is not well suited for optimization algorithms!!

Attempt 2: Simpler Formulation The RT literature offers many simpler only sufficient test: Liu & Layland test Hyperbolic Bound More restrictive Only a suboptimum is found Opt. methods may be applied Closed Formulation

Attempt 3 * : Closed formulation + iff * the good one a closed (OK for optimization) necessary and sufficient (no suboptimum) formulation of the schedulable application domain  The goal To make it easier, we consider:  is a domain of C i, function of T i, D i.

First little break

The time demand Y i (t) It occurs when all the task are simultaneously activated at t 0, they require the maximum possible C i, every T i. It is: Time Demand Y i (t 0, t 1 ) “Max computation time required by the first i higher priority tasks in the interval [t 0, t 1 ] ”

iff schedulability condition  When the tasks from 1 to i-1 are running, the task  i is schedulable iff :  Is  3 schedulable? 1111 2222 3333

Shrinking the points set Checking the: on the infinity of points in [0, D i ] is not feasible! By arbitrarily eliminating points in the set, results in more stringent condition: By arbitrarily eliminating points in the set, results in more stringent condition: ONLY SUFFICIENT! What is the smallest set of points, such that the condition keeps being necessary and sufficient?

Previous result ? [1989. Lehoczky, Sha, Ding] 1111 2222 3333

Our result [2002. Bini, Buttazzo] 1111 2222 3333

Comparing the results 1111 2222 3333 LSD BB [0,D i ] infinity of points LSD finite number unbounded, grow for large D i / T j BB bounded by 2 i-1 ProsCons

Schedulability of  1 Schedulability of  C1C1C1C1 C2C2C2C2 Task periods are: T 1 = 3, T 2 =8, T 3 =20, D i = T i. Applying BB

Schedulability of  Applying BB (cont’d)

C1C1 C2C2 C3C3  1 condition  2 condition  3 condition Drawing the Schedulability Region

Second little break

Given the tasks set Build the schedulabilityregion YESNO WCETs C i T i and D i Check C i in the region the the Hyperplanes Hyperplanes Exact Exact Test Test Hyperplanes Exact Test

We compared the number of steps of the test with respect to: Response Time Analysis (by Audsley et al., Dec. 1993) Response Time analysis Improved (by Sjödin, Hansson, Dec. 1995) Performance of the HET

number of steps density n tasks average steps number RTA=Response Time Analysis RTI=Response Time analysis Improved HET=Hyperplanes Exact Test Performance of the HET

Putting everything together When the design variables are: The design problem is so formulated: The design domain is NOT convex! BAD NEWS

Max performance on C i : the 2 tasks case C1C1C1C1 C2C2C2C

Future work  Implementing the optimization algorithm by Branch & Bound.  To find the schedulability region in the periods/deadlines domain.  Developing a complete tool for the tuning of RT systems.

The End