Period Optimization for Hard Real-time Distributed Automotive Systems

Slides:



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

ECE 667 Synthesis and Verification of Digital Circuits
VSMC MIMO: A Spectral Efficient Scheme for Cooperative Relay in Cognitive Radio Networks 1.
Approximation Algorithms Chapter 14: Rounding Applied to Set Cover.
1 IIES 2008 Thomas Heinz (Saarland University, CR/AEA3) | 22/03/2008 | © Robert Bosch GmbH All rights reserved, also regarding any disposal, exploitation,
REAL-TIME COMMUNICATION ANALYSIS FOR NOCS WITH WORMHOLE SWITCHING Presented by Sina Gholamian, 1 09/11/2011.
Meeting Service Level Objectives of Pig Programs Zhuoyao Zhang, Ludmila Cherkasova, Abhishek Verma, Boon Thau Loo University of Pennsylvania Hewlett-Packard.
Towards Feasibility Region Calculus: An End-to-end Schedulability Analysis of Real- Time Multistage Execution William Hawkins and Tarek Abdelzaher Presented.
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.
Placement of Integration Points in Multi-hop Community Networks Ranveer Chandra (Cornell University) Lili Qiu, Kamal Jain and Mohammad Mahdian (Microsoft.
Bogdan Tanasa, Unmesh D. Bordoloi, Petru Eles, Zebo Peng Department of Computer and Information Science, Linkoping University, Sweden December 3, 2010.
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.
Reliability-Aware Frame Packing for the Static Segment of FlexRay Bogdan Tanasa, Unmesh Bordoloi, Petru Eles, Zebo Peng Linkoping University, Sweden 1.
1 of 12 May 3, 2000 Performance Estimation for Embedded Systems with Data and Control Dependencies Paul Pop, Petru Eles, Zebo Peng Department of Computer.
1 of 14 1 Analysis and Synthesis of Communication-Intensive Heterogeneous Real-Time Systems Paul Pop Computer and Information Science Dept. Linköpings.
Holistic Scheduling and Analysis of Mixed Time/Event-Triggered Distributed Embedded System Traian Pop, Petru Eles, Zebo Peng EE249 Discussion Paper Review.
On the Task Assignment Problem : Two New Efficient Heuristic Algorithms.
1 of 16 June 21, 2000 Schedulability Analysis for Systems with Data and Control Dependencies Paul Pop, Petru Eles, Zebo Peng Department of Computer and.
1 of 14 1 / 18 An Approach to Incremental Design of Distributed Embedded Systems Paul Pop, Petru Eles, Traian Pop, Zebo Peng Department of Computer and.
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.
Iterative Flattening in Cumulative Scheduling. Cumulative Scheduling Problem Set of Jobs Each job consists of a sequence of activities Each activity has.
Resource Allocation for E-healthcare Applications
Escape Routing For Dense Pin Clusters In Integrated Circuits Mustafa Ozdal, Design Automation Conference, 2007 Mustafa Ozdal, IEEE Trans. on CAD, 2009.
Software Pipelining for Stream Programs on Resource Constrained Multi-core Architectures IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEM 2012 Authors:
June 21, 2007 Minimum Interference Channel Assignment in Multi-Radio Wireless Mesh Networks Anand Prabhu Subramanian, Himanshu Gupta.
ANTs PI Meeting, Nov. 29, 2000W. Zhang, Washington University1 Flexible Methods for Multi-agent distributed resource Allocation by Exploiting Phase Transitions.
Dependable communication synthesis for distributed embedded systems Nagarajan Kandasamy, John P. Hayes, Brian T. Murray Presented by John David Eriksen.
A Faster Approximation Scheme for Timing Driven Minimum Cost Layer Assignment Shiyan Hu*, Zhuo Li**, and Charles J. Alpert** *Dept of ECE, Michigan Technological.
Resource Mapping and Scheduling for Heterogeneous Network Processor Systems Liang Yang, Tushar Gohad, Pavel Ghosh, Devesh Sinha, Arunabha Sen and Andrea.
Mobile Agent Migration Problem Yingyue Xu. Energy efficiency requirement of sensor networks Mobile agent computing paradigm Data fusion, distributed processing.
Real-Time Support for Mobile Robotics K. Ramamritham (+ Li Huan, Prashant Shenoy, Rod Grupen)
DISTIN: Distributed Inference and Optimization in WSNs A Message-Passing Perspective SCOM Team
Introduction to Real-Time Systems
1 of 14 1/15 Schedulability-Driven Frame Packing for Multi-Cluster Distributed Embedded Systems Paul Pop, Petru Eles, Zebo Peng Embedded Systems Lab (ESLAB)
Retiming EECS 290A Sequential Logic Synthesis and Verification.
1 Chapter 5 Branch-and-bound Framework and Its Applications.
9/30/2016 Distributed System Exploration Mirabilis Design Inc.
Impact of Interference on Multi-hop Wireless Network Performance
P & NP.
Operations Research Chapter one.
ECE 720T5 Fall 2012 Cyber-Physical Systems
EMERALDS Landon Cox March 22, 2017.
Distributed Vehicle Routing Approximation
Response time analysis in real-time distributed automotive systems
Prabhat Kumar Saraswat Paul Pop Jan Madsen
Solver & Optimization Problems
A paper on Join Synopses for Approximate Query Answering
Paul Pop, Petru Eles, Zebo Peng
Ying Zhang&Krishnendu Chakrabarty Presenter Kasım Sert
EEE 6494 Embedded Systems Design
Imprecise Computation September 7, 2006
Fault and Energy Aware Communication Mapping with Guaranteed Latency for Applications Implemented on NoC Sorin Manolache, Petru Eles, Zebo Peng {sorma,
Effective Social Network Quarantine with Minimal Isolation Costs
Standard-Cell Mapping Revisited
Graph Partitioning Problems
Technical University of Cluj-Napoca
1.206J/16.77J/ESD.215J Airline Schedule Planning
Richard Anderson Lecture 28 Coping with NP-Completeness
Department of Information Management National Taiwan University
Networked Real-Time Systems: Routing and Scheduling
An On-line Approach to Reduce Delay Variations on Real-Time Operating Systems Shengyan Hong.
Algorithms for Budget-Constrained Survivable Topology Design
ADVISOR : Professor Yeong-Sung Lin STUDENT : Hung-Shi Wang
Linköping University, IDA, ESLAB
Modifying Theorem 2 Theorem 4 (The synchronous completion time theorem) In the above theorem, a task i will meet its completion deadline Di if it satisfies.
Optimization of Real-Time Systems with Deadline Miss Ratio Constraints
Guaranteeing Message Latencies on Controller Area Network (CAN)
Fast Min-Register Retiming Through Binary Max-Flow
Anand Bhat*, Soheil Samii†, Raj Rajkumar* *Carnegie Mellon University
Presentation transcript:

Period Optimization for Hard Real-time Distributed Automotive Systems Abhijit Davare1, Qi Zhu1, Marco Di Natale2, Claudio Pinello3, Sri Kanajan2, Alberto Sangiovanni-Vincentelli1 1 EECS, UC Berkeley 2 General Motors Research 3 Cadence Research Labs

Motivation: Active Safety Applications [Source: G. Leen, D. Heffernan, “Expanding Automotive Electronic Systems”, IEEE Computer, 35(1), 1/02, pg. 88-93]

Design Flow Allocation Priorities Mapping Periods Implementation Application Architecture IR Sensor Wheel Fusion Task Object ID Task Brake Actuator Throttle Nav. 150 ms 225 ms (Messages) ECU1 ECU2 ECU3 ECU4 CAN1 CAN2 Allocation Priorities Periods Mapping Implementation

Contributions In industry today, all stages in mapping are typically carried out manually Capture the period assignment problem with mathematical programming Flexibility to add additional constraints for system-specific situations Construct an approximation to efficiently solve the problem Iterative approach to reduce approx. error

System Model Tasks allocated to ECUs Messages allocated to buses … ECU Message 1 2 Bus Tasks allocated to ECUs Preemptive execution Scheduling: static priorities Messages allocated to buses Non-preemptive transmission Periodic task/message activation No synchronization between ECUs/buses Communication Read latest data value from buffer Overwrite old data values Task Message 1-place Buffer

Problem Inputs System: Directed Graph ECU1 CAN1 ECU2 ECU3 T1 M1 T2 M2 Nodes are objects (EITHER tasks or messages) Edges are communication links (1-place buffers) Resource assignment Worst case processing time (not shown) Priority Utilization bounds End-to-End latency constraints ECU1 CAN1 ECU2 ECU3 100 ms 280 ms T1 M1 T2 M2 T3 2 1 3 4 5 T5 M3 T4 [0.7] [0.6] [0.8] [0.5] T6 M4 T7 M5 T8

Assign activation periods for all tasks and messages Problem Statement Assign activation periods for all tasks and messages such that: 1. Set of objects must be schedulable 2. Stay within utilization bounds 3. Satisfy end-to-end latency constraints

1. Object Schedulability Ensure that all objects are processed before their subsequent activations oi Period (ti) Response Time (ri) Interference from other objects on the same resource

2. Utilization Bounds Resource utilization Fraction of time the resource (either ECU or bus) spends processing its objects (either tasks or messages) Utilization bounds less than 100% To allow for future extensibility Intuition: Larger periods  lower utilization

3. End-to-End Latency For each object in the path, add … … … End-to-End Latency t1 r1 o1 t2 r2 o2 t3 r3 o3 For each object in the path, add Period (ti) Worst case response time (ri)

Worst Case Response Times Pre-emption (pi) Blocking (bi) + Pre-emption (pi) Response time (ri) = Processing time (ci) + Interference time (wi) Tasks Messages

Periods and Response Times Tasks: Messages: Intuition: decreasing the period of an object Decreases its own contribution to path latency Increases the response times of lower priority objects on the same resource

Approach: Mathematical Programming What? Problem represented with: Set of decision variables Constraints Objective function Why? Modifying an object period affects: Schedulability of the object Utilization of the resource Latencies of other paths passing through same resource Additional constraints due to legacy tasks and messages Challenge: Capture the problem and obtain efficient runtimes

Geometric Programming Standard Form: x = (x1, x2, …, xn) are positive g is a set of monomial functions f is a set of posynomial functions Sum of monomials Variables: Integer & real-valued  Intractable Real-valued  Efficiently solvable (convex programming)

Approximation Rationale Approximate the ceiling function Exact formulation needs integer variables (ceiling function) MIGP gives no solution even after 6 hours for case study Approximate the ceiling function Constant parameter: 0 ≤ αi ≤ 1 Approximated worst case response time: si

Approximation Example Task Priority c t T1 1 3 t1 T2 2 8 T3 20 Impact on r3 as t1 changes Lower bound:  = 0 Upper bound:  = 1 If all αi = 1, si ≥ ri r3 t1

Geometric Programming Formulation Sets Paths: Objects: Resources: Parameters Computation time: c Variables Periods: t Approx. response times: s  = Minimize the sum of approx. response times Meet end-to-end latency deadlines Transformed equations for approx. response times Ensure schedulability Meet utilization bounds Lower and upper bounds for periods

Iterative Procedure to Reduce Error Iteratively change αi Parameters maxIt – max. # iterations errLim – max. permissible relative error between r and s Start all αi = 1; ItCount = 0; ItCount++; (s, t) = GP(α); Calculate r; ei = (si – ri)/ri; αi = αi - ei No  = 1 max(|ei|) < errLim OR ItCount > maxIt End Yes  = 0.6 (GP) t s r (Fixpoint)

Case Study: GM Experimental Vehicle Functionality 92 tasks 196 messages Architecture 38 ECUs 4 buses . - End-to-end latency constraints 12 source-sink task pairs 222 total paths Deadlines range from 100ms to 300ms

Experiments: Manual vs. Period Opt. GP feasible with all α = 1 in 1st iteration Solution time: 24s

Experiments: Iterative Procedure Max. error reduced from 58% to 0.56% in 15 iterations Avg. error (not shown) reduced from 6.98% to 0.009%

Conclusions Problem Approach Results for industrial case studies Period assignment for the design of distributed automotive applications Approach Flexible: Approximate period assignment with GP Effective: Iterate to reduce approximation error Results for industrial case studies Experimental vehicle: 0.56% max. error after 6 minutes Fault tolerant vehicle: 45% reduction in average path latency

Questions?