Timed Simulation with Multiple Resource Schedulability Analysis Yang Zhao and Slobodan Matic University of California, BerkeleyDec 10, 2004.

Slides:



Advertisements
Similar presentations
Simulation of Feedback Scheduling Dan Henriksson, Anton Cervin and Karl-Erik Årzén Department of Automatic Control.
Advertisements

© 2004 Wayne Wolf Topics Task-level partitioning. Hardware/software partitioning.  Bus-based systems.
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.
Is It Time Yet? Wing On Chan. Distributed Systems – Chapter 18 - Scheduling Hermann Kopetz.
Generative Programming for a Component-based Framework of Distributed Embedded Software Systems Xu Ke, Krzysztof Sierszecki Mads Clausen Institute for.
Event Driven Real-Time Programming CHESS Review University of California, Berkeley, USA May 10, 2004 Arkadeb Ghosal Joint work with Marco A. Sanvido, Christoph.
Overview of PTIDES Project
Synthesis of Embedded Software Using Free-Choice Petri Nets.
Towards Feasibility Region Calculus: An End-to-end Schedulability Analysis of Real- Time Multistage Execution William Hawkins and Tarek Abdelzaher Presented.
2/11/2010 BEARS 2010 On PTIDES Programming Model John Eidson Jeff C. Jensen Edward A. Lee Slobodan Matic Jia Zou PtidyOS.
PTIDES: Programming Temporally Integrated Distributed Embedded Systems Yang Zhao, EECS, UC Berkeley Edward A. Lee, EECS, UC Berkeley Jie Liu, Microsoft.
April 16, 2009 Center for Hybrid and Embedded Software Systems PtidyOS: An Operating System based on the PTIDES Programming.
Scheduling for Embedded Real-Time Systems Amit Mahajan and Haibo.
Modified from Silberschatz, Galvin and Gagne Lecture 13 Chapter 7: Deadlocks.
Chess Review May 11, 2005 Berkeley, CA Composable Code Generation for Distributed Giotto Tom Henzinger Christoph Kirsch Slobodan Matic.
Scheduling Using Timed Automata Borzoo Bonakdarpour Wednesday, April 13, 2005 Selected Topics in Algorithms and Complexity (CSE960)
Mixing Models of Computation Jie Liu Palo Alto Research Center (PARC) 3333 Coyote Hill Rd., Palo Alto, CA joint work with Prof. Edward.
Design of Fault Tolerant Data Flow in Ptolemy II Mark McKelvin EE290 N, Fall 2004 Final Project.
Expressing Giotto in xGiotto and related schedulability problems Class Project Presentation Concurrent Models of Computation for Embedded Software University.
CSE 421 Algorithms Richard Anderson Lecture 6 Greedy Algorithms.
SEC PI Meeting Annapolis, May 8-9, 2001 Component-Based Design of Embedded Control Systems Edward A. Lee & Jie Liu UC Berkeley with thanks to the entire.
Mahapatra-Texas A&M-Fall'001 Partitioning - I Introduction to Partitioning.
7th Biennial Ptolemy Miniconference Berkeley, CA February 13, 2007 PTIDES: A Programming Model for Time- Synchronized Distributed Real-time Systems Yang.
On the Task Assignment Problem : Two New Efficient Heuristic Algorithms.
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
Problem Background Motivation Design a task and bus scheduling tool that works with the automotive design process and captures the constraints that the.
The Design and Performance of A Real-Time CORBA Scheduling Service Christopher Gill, David Levine, Douglas Schmidt.
Course Outline DayContents Day 1 Introduction Motivation, definitions, properties of embedded systems, outline of the current course How to specify embedded.
Software Pipelining for Stream Programs on Resource Constrained Multi-core Architectures IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEM 2012 Authors:
Benjamin Gamble. What is Time?  Can mean many different things to a computer Dynamic Equation Variable System State 2.
Scheduling policies for real- time embedded systems.
Hardware/Software Co-design Design of Hardware/Software Systems A Class Presentation for VLSI Course by : Akbar Sharifi Based on the work presented in.
Real-Time Systems Mark Stanovich. Introduction System with timing constraints (e.g., deadlines) What makes a real-time system different? – Meeting timing.
Timing Analysis of Embedded Software for Speculative Processors Tulika Mitra Abhik Roychoudhury Xianfeng Li School of Computing National University of.
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
Resource Mapping and Scheduling for Heterogeneous Network Processor Systems Liang Yang, Tushar Gohad, Pavel Ghosh, Devesh Sinha, Arunabha Sen and Andrea.
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.
5 May CmpE 516 Fault Tolerant Scheduling in Multiprocessor Systems Betül Demiröz.
6. Application mapping 6.1 Problem definition
6. A PPLICATION MAPPING 6.3 HW/SW partitioning 6.4 Mapping to heterogeneous multi-processors 1 6. Application mapping (part 2)
Real-Time Support for Mobile Robotics K. Ramamritham (+ Li Huan, Prashant Shenoy, Rod Grupen)
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.
12/19/2015COSC , Lecture 31 Real-Time Systems, COSC , Lecture 3 Stefan Andrei.
CSCI1600: Embedded and Real Time Software Lecture 33: Worst Case Execution Time Steven Reiss, Fall 2015.
Introduction to Embedded Systems Rabie A. Ramadan 5.
1 of 14 1/34 Embedded Systems Design: Optimization Challenges Paul Pop Embedded Systems Lab (ESLAB) Linköping University, Sweden.
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.
Static Process Scheduling
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.
1 Hardware-Software Co-Synthesis of Low Power Real-Time Distributed Embedded Systems with Dynamically Reconfigurable FPGAs Li Shang and Niraj K.Jha Proceedings.
1 G53SRP: Introduction to Real Time Scheduling Chris Greenhalgh School of Computer Science.
COMP7330/7336 Advanced Parallel and Distributed Computing Task Partitioning Dynamic Mapping Dr. Xiao Qin Auburn University
Pradeep Konduri Static Process Scheduling:  Proceedance process model  Communication system model  Application  Dicussion.
Real-Time Operating Systems RTOS For Embedded systems.
 Operating system.  Functions and components of OS.  Types of OS.  Process and a program.  Real time operating system (RTOS).
Embedded System Scheduling
CHaRy Software Synthesis for Hard Real-Time Systems
ECE 720T5 Fall 2012 Cyber-Physical Systems
Elaine Cheong Yang Zhao December 8, 2001
CSCI1600: Embedded and Real Time Software
Real Time Scheduling Mrs. K.M. Sanghavi.
Estimating Timing Profiles for Simulation of Embedded Systems
Major Design Strategies
CSCI1600: Embedded and Real Time Software
Modeling Event-Based Systems in Ptolemy II EE249 Project Status Report
Major Design Strategies
Presentation transcript:

Timed Simulation with Multiple Resource Schedulability Analysis Yang Zhao and Slobodan Matic University of California, BerkeleyDec 10, 2004

Introduction  Embedded software for control  determinism both in value and time  multiple resources  Simulation environment  timing constraints  resource utilization  component interactions  Multi-domain timed simulation  Discreteness of software in CT domain  Timed Multitasking Ptolemy domain [LL03]  Simulink RTWorkshop  Model: periodic multi-rate patterns no fast reaction to external triggers  Code: rate-monotonic schedule (almost) no specification and analysis of timing constraints

Motivating Example [KHM03] Advanced automotive control applications with end-to-end deadlines

TM Software Architecture  Concurrent interaction in TM actors  Atomic actors (tasks): Task execution times (estimates) Resource(s)  Composite actors: Task graph Deadline Invocation trigger condition (pattern)  set of TM composite actors in other domain  Schedulers  Static table-based Schedulability analysis schedule generation off-, dispatching on-line  Dynamic priority EDF-based No schedulability analysis scheduling and dispatching on-line

Schedulability Analysis [CCLL95]  Mixed-integer programming techniques  Branch and Bound global scheduling multiple processors + no intertask communication single processor + intertask communication multiple processors + intertask communication topological order in linear time    NP-complete [BKS99]

 set of periodic events A 8 a 2 A. p(a)=T  time function  : A ! [0,T)  span constraint S: interval D=[d -,d + ], integer k event pair (a 1,a 2 ) satisfies S if d - ·  (a 2 ) -  (a 1 ) + kT · d + T=12, D=[5,7]  PESP instance T 2 R, (A,E), d +,d - :E ! [0,T)  PESP algorithm [SU89]  find minimum spanning tree of (A,E)  successively satisfy constraints on each chord of the tree otherwise find blocking cycle with tight constraints Periodic Event Scheduling Problem (PESP) PESP solution  : A ! [0,T), k:E ! Z k=0 k=1

Static TM Model Scheduling  Invocation pattern known  All release times known and periodic t(a) execution time, r(a) resource !  (a) start time in [0,T)  two types of span constraints  mutual exclusion: 8 a 1,a 2. 8 r 2 R. r(a 1 )=r(a 2 ) t(a 1 ) ·  (a 2 )-  (a 1 )+k(a 1,a 2 )T · T-t(a 2 )  precedence constraint for each path of task graph t(a i ) ·  (a i+1 )-  (a i )+k(a i,a i+1 )T · t(a i )+D, D=T-  i=1: n t(a i ) t(a n ) ·  (a 1 )-  (a n )+(1-  i=1: n-1 k(a i,a i+1 ))T · t(a n )+D  Multi-rate solution:  Deadline less than period:D=deadline -  i=1:n t(a i )  Multiple (exclusive) resources

Static TM Demo This demo uses a TMController to control a Car model to drive at the Cruise Speed. The TM model contains tasks periodically execute on a set of computing resources (processes). A PESPScheduler is used to statically check whether the TM model is schedulable for a given period and schedule the execution of these tasks.

 Invocation pattern unknown  task release times determined by model execution  task execution order dynamic and suboptimal deadline miss detection  Composite end-to-end deadline  Deadline assignment (distribution) for intermediate tasks  Maximize minimal laxity: L i = [D i -  j=1:n t(a j )]/n  Assign deadlines whenever composite actor is triggered Use Earliest Deadline First strategy on each resource Dynamic TM Model Scheduling

Some tasks are preempted Compare to the periodic demo, the TM model here is not periodically executed: some input happens randomlly. The TM model is executed when it is triggered by an event. When it is triggered, it calcultes deadlines for related tasks. In this case, a task is released when it receives an event and an EDF scheduler is used to schedule the released tasks on the computing resource. Dynamic TM Demo

TM with Multi-Resources in Ptolemy  Several scheduling algorithm is implemented.  Support modeling and simulation with multi-resources (processes).  Refactor the Director to several modules: Director Scheduler Resource ExecutionTime Estimator XXX

> Sceduler +GenerateSchedule() +Schedule() PESPScheduler SimpleScheduler TMDirector EDFScheduler > Resource +available() ComputingResource TM with Multi-Resources in Ptolemy +execute() AtomicActor