Response time analysis in real-time distributed automotive systems

Slides:



Advertisements
Similar presentations
Minimum Clique Partition Problem with Constrained Weight for Interval Graphs Jianping Li Department of Mathematics Yunnan University Jointed by M.X. Chen.
Advertisements

Overload Scheduling in Real-Time Systems
Hardware/ Software Partitioning 2011 年 12 月 09 日 Peter Marwedel TU Dortmund, Informatik 12 Germany Graphics: © Alexandra Nolte, Gesine Marwedel, 2003 These.
Linear Programming (LP) (Chap.29)
CPE555A: Real-Time Embedded Systems
GRAPH BALANCING. Scheduling on Unrelated Machines J1 J2 J3 J4 J5 M1 M2 M3.
CSE 522 Real-Time Scheduling (4)
REAL-TIME COMMUNICATION ANALYSIS FOR NOCS WITH WORMHOLE SWITCHING Presented by Sina Gholamian, 1 09/11/2011.
1 EE5900 Advanced Embedded System For Smart Infrastructure Static Scheduling.
ISE480 Sequencing and Scheduling Izmir University of Economics ISE Fall Semestre.
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.
Abhijit Davare 1, Qi Zhu 1, Marco Di Natale 2, Claudio Pinello 3, Sri Kanajan 2, Alberto Sangiovanni-Vincentelli 1 1 University of California, Berkeley.
Conditional scheduling with varying deadlines Ben Horowitz
Investigating the Effect of Voltage- Switching on Low-Energy Task Scheduling in Hard Real-Time Systems Paper review Presented by Chung-Fu Kao.
Implicit Hitting Set Problems Richard M. Karp Harvard University August 29, 2011.
1 of 14 1/15 Schedulability Analysis and Optimization for the Synthesis of Multi-Cluster Distributed Embedded Systems Paul Pop, Petru Eles, Zebo Peng Embedded.
2-Layer Crossing Minimisation Johan van Rooij. Overview Problem definitions NP-Hardness proof Heuristics & Performance Practical Computation One layer:
Backtracking Reading Material: Chapter 13, Sections 1, 2, 4, and 5.
On the Task Assignment Problem : Two New Efficient Heuristic Algorithms.
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
Real-Time Operating System Chapter – 8 Embedded System: An integrated approach.
Problem Background Motivation Design a task and bus scheduling tool that works with the automotive design process and captures the constraints that the.
DATE Optimizations of an Application- Level Protocol for Enhanced Dependability in FlexRay Wenchao Li 1, Marco Di Natale 2, Wei Zheng 1, Paolo Giusto.
Universität Dortmund  P. Marwedel, Univ. Dortmund, Informatik 12, 2003 Hardware/software partitioning  Functionality to be implemented in software.
VOLTAGE SCHEDULING HEURISTIC for REAL-TIME TASK GRAPHS D. Roychowdhury, I. Koren, C. M. Krishna University of Massachusetts, Amherst Y.-H. Lee Arizona.
系統晶片設計 - 論文報告 指導老師:陳朝烈老師 學生: 陳宗廷 向崇羽 Monot, A.; Navet, N.; Bavoux, B.; Simonot-Lion, F.,” Multisource Software on Multicore Automotive.
Quality of Service Karrie Karahalios Spring 2007.
A Graph Based Algorithm for Data Path Optimization in Custom Processors J. Trajkovic, M. Reshadi, B. Gorjiara, D. Gajski Center for Embedded Computer Systems.
1 Short Term Scheduling. 2  Planning horizon is short  Multiple unique jobs (tasks) with varying processing times and due dates  Multiple unique jobs.
Resource Mapping and Scheduling for Heterogeneous Network Processor Systems Liang Yang, Tushar Gohad, Pavel Ghosh, Devesh Sinha, Arunabha Sen and Andrea.
6. Application mapping 6.1 Problem definition
CSC 8420 Advanced Operating Systems Georgia State University Yi Pan.
1 SYNTHESIS of PIPELINED SYSTEMS for the CONTEMPORANEOUS EXECUTION of PERIODIC and APERIODIC TASKS with HARD REAL-TIME CONSTRAINTS Paolo Palazzari Luca.
6. A PPLICATION MAPPING 6.3 HW/SW partitioning 6.4 Mapping to heterogeneous multi-processors 1 6. Application mapping (part 2)
Modeling and Analysis of Printer Data Paths using Synchronous Data Flow Graphs in Octopus Ashwini Moily Under the supervision of Dr. Lou Somers, Prof.
Computer Science & Engineering, ASU1/17 Pfair Scheduling of Periodic Tasks with Allocation Constraints on Multiple Processors Deming Liu and Yann-Hang.
Operational Research & ManagementOperations Scheduling Economic Lot Scheduling 1.Summary Machine Scheduling 2.ELSP (one item, multiple items) 3.Arbitrary.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
CSCI1600: Embedded and Real Time Software Lecture 23: Real Time Scheduling I Steven Reiss, Fall 2015.
Pipelined and Parallel Computing Partition for 1 Hongtao Du AICIP Research Nov 3, 2005.
1 EE5900 Advanced Embedded System For Smart Infrastructure Static Scheduling.
ICS 353: Design and Analysis of Algorithms Backtracking King Fahd University of Petroleum & Minerals Information & Computer Science Department.
Embedded System Scheduling
Classification of Scheduling Problems
Scheduling with Constraint Programming
Optimizing Distributed Actor Systems for Dynamic Interactive Services
ECE 720T5 Fall 2012 Cyber-Physical Systems
Scheduling Determines the precise start time of each task.
OPERATING SYSTEMS CS 3502 Fall 2017
REAL-TIME OPERATING SYSTEMS
Some Topics in OR.
Andrea Acquaviva, Luca Benini, Bruno Riccò
Dynamic Graph Partitioning Algorithm
Paul Pop, Petru Eles, Zebo Peng
Abstract Major Cloud computing companies have started to integrate frameworks for parallel data processing in their product portfolio, making it easy for.
Design and Analysis of Algorithm
Imprecise Computation September 7, 2006
ME 521 Computer Aided Design 15-Optimization
Babak Sorkhpour, Prof. Roman Obermaisser, Ayman Murshed
Lecture 24: Process Scheduling Examples and for Real-time Systems
Period Optimization for Hard Real-time Distributed Automotive Systems
Operating Systems CPU Scheduling.
The basics of scheduling
Brian Babcock, Shivnath Babu, Mayur Datar, and Rajeev Motwani
Networked Real-Time Systems: Routing and Scheduling
Algorithms for Budget-Constrained Survivable Topology Design
Algorithm Design Methods
EE5900 Advanced Embedded System For Smart Infrastructure
Guaranteeing Message Latencies on Controller Area Network (CAN)
Ch 4. Periodic Task Scheduling
Presentation transcript:

Response time analysis in real-time distributed automotive systems Kecheng Yang

Reference Papers Synthesis of task and message activation models in real-time distributed automotive systems. W. Zheng, M. Di Natale, C. Pinello, P. Giusto, and A. S. Vincentelli. In DATE'07. Optimizing end-to-end latencies by adaptation of the activation events in distributed automotive systems. M. Di Natale, W. Zheng, C. Pinello, P. Giusto, and A. S. Vincentelli. In RTAS'07. Period optimization for hard real-time distributed automotive systems. A. Davare, Q. Zhu, M. Di Natale, C. Pinello, S. Kanajan, and A. S. Vincentelli. In DAC'07.

Motivation Distributed architectures supporting the execution of real-time applications are common in automotive, avionic, and industrial control systems. Different design and scheduling methodologies are used.

Scheduling methodologies Avionic systems: static, time-driven schedules. Automotive systems: many of them are designed based on run-time priority-based scheduling of tasks and messages

Automotive systems scheduling run-time priority-based Why: resource efficiency and ultimately price concerns Examples: OSEK operating system standard* the CAN bus arbitration model** *OSEK. Osek os version 2.2.3 specification. available at http://www.osek-vdx.org, 2006. ** R. Bosch. Can specification, version 2.0. Stuttgart, 1991.

Task model Dataflow, represented with a Directed Acyclic Graph, denoted {V,E,R} The set of vertices V={o1,...,on} is the set of objects. Each object oi can be a task or a message. The set of edges E={l1,...,lm} is the set of links. A link li =(oh,ok) connects the output port of oh(the source) to the input port of ok(the sink). R={R1,...,Rz}is the set of shared resources supporting the execution of the tasks (CPUs, ECUs) and the transmission of the messages (bus, CAN).

Task model example A functional chain or Path from oi to oj,or Pi,j,is an ordered sequence P =[l1,...,ln] of links that, starting from oi =src(l1), reach oj =snk(ln) crossing a unique sequence of n+1 objects such that snk(lk)=src(lk+1). oi is the chain’s source and oj its sink.

Notations oi is characterized by a maximum time requirement Ci and a resource Roi that it needs to execute or for its transmission. All objects are scheduled according to their priority πi and indexes are assigned by decreasing priority levels. hp(i) denote the set of objects that have higher priorities than oi. ri is the worst case response time of oi. wi is defined as the worst case time spent from the instant the job is released with maximum jitter Ji. ri = Ji + wi

Activation models Periodic activation model: tasks are activated periodically, message transmission is triggered periodically. better schedulability, worse end-to-end latency Data driven activation model: task executions and message transmissions are triggered, respectively, by the arrival of the input data and by the availability of the signal data. better end-to-end latency, worse schedulability (due to potential bursty activations)

Periodic activation model end-to end latency

Data driven activation model end-to end latency

An example

The problem Deadlines may miss, applying either of the activation models. E.g., deadlines of the three dataflows are 80, 120, 260

Hybrid A subset of tasks and messages is periodic, and the remaining is event-driven. Synthesis of task and message activation models in real-time distributed automotive systems. W. Zheng, M. Di Natale, C. Pinello, P. Giusto, and A. S. Vincentelli. In DATE'07. Optimizing end-to-end latencies by adaptation of the activation events in distributed automotive systems. M. Di Natale, W. Zheng, C. Pinello, P. Giusto, and A. S. Vincentelli. In RTAS'07.

RTAS'07 proposed a search algorithm

DATE'07 mixed integer linear programming (MILP) a set of linear constraints different objective functions for various purposes of optimizing. F1=minimization of the number of event buffers F2 =minimization of the sum of the path latencies F3 =minimization of the sum of weighted lateness for all the paths exceeding the deadline F4 =minimization of the lowestpriority path latency

Result for the example system (DATE'07)

The problem (revisit) Deadlines may miss, applying either of the activation models. E.g., deadlines of the three dataflows are 80, 120, 260

Result for the example system (DATE'07)

Another optimization direction Period optimization for hard real- time distributed automotive systems. A. Davare, Q. Zhu, M. Di Natale, C. Pinello, S. Kanajan, and A. S. Vincentelli. In DAC'07. Best paper award in DAC'07

Design flow

Activation model the periodic activation model end-to-end latency

Response Times Task Message

Geometric Programming (GP) If x contains both integral and real-valued decision variables, the resulting problem is a mixed-integer geometric program (MIGP).

The MIGP Integers

MIGP to GP MIGP is difficulty to solve So approximate the MIGP to a GP by introducing a set of parameters αi,j the lager αi,j, the more pessimistic approximation pessimistic approximation is safe, but may result in infeasibility GP instance.

Iterative procedure Let si denote the approximated response time. Let ei denote the approximation error Iteratively compute αi,j based on ei until max{|ei|} satisfies the input threshold

Just by designer’s intuition A case study Just by designer’s intuition The GP problem takes 24 seconds to solve on a 1.6 GHz Pentium M processor with 768 MB of RAM. The average period increases by 90%.

Effectiveness of the iterative procedure log scaled

Thank you!