Workload Models for System-Level Timing Analysis: Expressiveness vs. Analysis Efficiency



Similar documents
Real-Time Scheduling (Part 1) (Working Draft) Real-Time System Example

Performance Analysis of Distributed Embedded Systems

Compositional Real-Time Scheduling Framework with Periodic Model

Real-Time Software. Basic Scheduling and Response-Time Analysis. René Rydhof Hansen. 21. september 2010

Sustainability in Real-time Scheduling

Predictable response times in event-driven real-time systems

Module 6. Embedded System Software. Version 2 EE IIT, Kharagpur 1

The simple case: Cyclic execution

Resource Reservation & Resource Servers. Problems to solve

3. Scheduling issues. Common approaches /1. Common approaches /2. Common approaches / /13 UniPD / T. Vardanega 23/01/2013. Real-Time Systems 1

Scheduling Real-time Tasks: Algorithms and Complexity

174: Scheduling Systems. Emil Michta University of Zielona Gora, Zielona Gora, Poland 1 TIMING ANALYSIS IN NETWORKED MEASUREMENT CONTROL SYSTEMS

A Survey of Fitting Device-Driver Implementations into Real-Time Theoretical Schedulability Analysis

Integrating job parallelism in real-time scheduling theory

Timing Analysis of Real-Time Software

4. Fixed-Priority Scheduling

Offline sorting buffers on Line

Operating System Aspects. Real-Time Systems. Resource Management Tasks

GameTime: A Toolkit for Timing Analysis of Software

Lecture 3 Theoretical Foundations of RTOS

Approximation Algorithms

On some Potential Research Contributions to the Multi-Core Enterprise

Earliest Due Date (EDD) [Ferrari] Delay EDD. Jitter EDD

Improved Handling of Soft Aperiodic Tasks in Offline Scheduled Real-Time Systems using Total Bandwidth Server

Why real-time scheduling theory still matters

Chapter Load Balancing. Approximation Algorithms. Load Balancing. Load Balancing on 2 Machines. Load Balancing: Greedy Scheduling

Optimal Scheduling. Kim G. Larsen DENMARK

INTERNATIONAL JOURNAL OF COMPUTER ENGINEERING & TECHNOLOGY (IJCET)

A Static Analyzer for Large Safety-Critical Software. Considered Programs and Semantics. Automatic Program Verification by Abstract Interpretation

Real-Time Component Software. slide credits: H. Kopetz, P. Puschner

Using semantic properties for real time scheduling

Aperiodic Task Scheduling

! Solve problem to optimality. ! Solve problem in poly-time. ! Solve arbitrary instances of the problem. !-approximation algorithm.

Multi-core real-time scheduling

5 INTEGER LINEAR PROGRAMMING (ILP) E. Amaldi Fondamenti di R.O. Politecnico di Milano 1

Extremal Wiener Index of Trees with All Degrees Odd

A Constant-Approximate Feasibility Test for Multiprocessor Real-Time Scheduling

Off-line Optimal Multiprocessor Scheduling of Dependent Periodic Tasks

Partitioned EDF Scheduling for Multiprocessors using a C=D Scheme

HVM TP : A Time Predictable and Portable Java Virtual Machine for Hard Real-Time Embedded Systems JTRES 2014

Real-time Scheduling of Periodic Tasks (1) Advanced Operating Systems Lecture 2

Branch-and-Price Approach to the Vehicle Routing Problem with Time Windows

Throughput constraint for Synchronous Data Flow Graphs

Aperiodic Task Scheduling

Attaining EDF Task Scheduling with O(1) Time Complexity

A Survey on Rendezvous Data Collection in Wireless Sensor Networks. Presented by Longfei Shangguan Supervisor:Dr.Yunhao Liu

Methods and Tools For Embedded Distributed System Scheduling and Schedulability Analysis

Partitioned real-time scheduling on heterogeneous shared-memory multiprocessors

Cache-Aware Compositional Analysis of Real-Time Multicore Virtualization Platforms

2. (a) Explain the strassen s matrix multiplication. (b) Write deletion algorithm, of Binary search tree. [8+8]

Fairness issues in new large scale parallel platforms.

Lec. 7: Real-Time Scheduling

CS/COE

An Efficient Non-Preemptive Real-Time Scheduling

Partition Scheduling in APEX Runtime Environment for Embedded Avionics Software

Embedded Systems. 6. Real-Time Operating Systems

Real Time Scheduling Basic Concepts. Radek Pelánek

6.852: Distributed Algorithms Fall, Class 2

TIME PREDICTABLE CPU AND DMA SHARED MEMORY ACCESS

Global Multiprocessor Real-Time Scheduling as a Constraint Satisfaction Problem

Real-Time Scheduling of Energy Harvesting Embedded Systems with Timed Automata

Power-Aware Real-Time Scheduling upon Identical Multiprocessor Platforms

Distributed and Scalable QoS Optimization for Dynamic Web Service Composition

HARD REAL-TIME SCHEDULING: THE DEADLINE-MONOTONIC APPROACH 1. Department of Computer Science, University of York, York, YO1 5DD, England.

Multicore scheduling in automotive ECUs

Advanced Operating Systems (M) Dr Colin Perkins School of Computing Science University of Glasgow

MANY complex distributed embedded systems with time

MapReduce and Distributed Data Analysis. Sergei Vassilvitskii Google Research

A Branch and Bound Algorithm for Solving the Binary Bi-level Linear Programming Problem

Worst-Case Execution Time Prediction by Static Program Analysis

MultiPARTES. Virtualization on Heterogeneous Multicore Platforms. 2012/7/18 Slides by TU Wien, UPV, fentiss, UPM

Mutation-based Testing Criteria for Timeliness

Reliability Guarantees in Automata Based Scheduling for Embedded Control Software

REAL TIME OPERATING SYSTEMS. Lesson-18:

Chapter 1. Introduction

SIGNAL FLOW GRAPHS. Prof. S. C.Pilli, Principal, Session: XI, 19/09/06 K.L.E.S. College of Engineering and Technology, Belgaum

Lecture 5/6. Enrico Bini

The Temporal Firewall--A Standardized Interface in the Time-Triggered Architecture

Research Paper Business Analytics. Applications for the Vehicle Routing Problem. Jelmer Blok

Scheduling. Monday, November 22, 2004

Grant Agreement FP7-ICT

ON THE COMPLEXITY OF THE GAME OF SET.

Scheduling Shop Scheduling. Tim Nieberg

Dynamic programming formulation

Real-Time Task Scheduling for Energy-Aware Embedded Systems 1

Making Dynamic Memory Allocation Static To Support WCET Analyses

On-line scheduling algorithm for real-time multiprocessor systems with ACO

Research on the UHF RFID Channel Coding Technology based on Simulink

Sporadic Server Revisited

Dynamic programming. Doctoral course Optimization on graphs - Lecture 4.1. Giovanni Righini. January 17 th, 2013

Nan Kong, Andrew J. Schaefer. Department of Industrial Engineering, Univeristy of Pittsburgh, PA 15261, USA

Delay Impulsive Systems: A Model For NCSs. Motivation

Effective Scheduling Algorithm and Scheduler Implementation for use with Time-Triggered Co-operative Architecture

Max Flow, Min Cut, and Matchings (Solution)

SOFT 437. Software Performance Analysis. Chapter 4: Software Execution Model

Real-Time Systems Hermann Härtig Real-Time Communication (following Kopetz, Liu, Schönberg, Löser)

A Comparative Study of Scheduling Algorithms for Real Time Task

Operating Systems. III. Scheduling.

Sustainable Multiprocessor Real-Time Scheduling with Exact Preemption Cost

Why? A central concept in Computer Science. Algorithms are ubiquitous.

Transcription:

Workload Models for System-Level Timing Analysis: Expressiveness vs. Analysis Efficiency Nan Guan, Martin Stigge and Wang Yi Uppsala University, Sweden Uppsala University, China

Complex Real-Time Systems Input Stream I/O DSP I/O BUS Input Stream ECU FPGA I/O 2

Complex Real-Time Systems Input Stream I/O DSP I/O Output Stream BUS Input Stream ECU FPGA I/O Output Stream 3

Timing Analysis What s the maximal delay at each component? What s the maximal end-to-end delay? Input Stream I/O DSP BUS I/O Output Stream Input Stream ECU FPGA I/O Output Stream 4

Timing Analysis Input Stream I/O DSP I/O Output Stream BUS Input Stream ECU FPGA I/O Output Stream Task-Level Timing Analysis Find out the resource requirement for each task WCET estimation 5 System-Level Timing Analysis According to the WCET, budgeting the CPU resource for each task Schedulability Analysis (Response Time Analysis)

Workload models Operational Models: release patterns/executions Periodic/sporadic models [Liu & Layland, 1973] Tree/Graph-based models [Baruah, Stigge et al RTSS 2013] Timed automata [Alur, 1990 Fersman et al 2002, UPPAAL & TIMES] x = 5 x:=0 p q x:= 0 x= 13 (p,0) (q,5) (p,18) (p,23) Denotational Models: resource requirement over time Demand (Request) Bound Functions (DBF) [Baruah et al, 1990s] Real-Time Calculus (with origin from Network calculus) [Thiele/Samarjit 2000 Guan et al RTSS 2013] # jobs Input Stream I/O DSP BUS I/O Output Stream time ECU FPGA I/O Input Stream Output Stream 6

Expressiveness vs. Analysis Efficiency Task automata

Abstraction Expressiveness vs. Analysis Efficiency vs. Analysis Precision Task automata Exact Approximate

OUTLINE An Overview on RT workload models from the simplest to the most complex from Liu & Layland classic periodic model to timed automata Recent Results the graph-based model [RTAS 2011, RTSS 2013, Stigge & Yi] Combinatorial Abstraction for Schedulability Analysis

Modeling a system for analysis System = a set of Tasks Task 1 Task 2 Task n Tasks releasing jobs, J = (e, d) -- basic unit of workload Release time r Worst-case execution time e Deadline d Job release patterns: periodicity, branching structures, loop Feasibility/Schedulability: Can we check s.t. all jobs meet their deadlines?

1973

Task automata

(upto RTSS 2011)

[Baruah et al 2003, RTSS 2010]

Restrictions of DAG/RRT model

Restrictions of DAG/RRT model

Restrictions of DAG/RRT model

[Stigge et al RTAS 2011]

How to check the feasibility?

[Baruah et al]

Example: L&L tasks (ei, pi) ei pi t t

Example: Sporadic tasks: (ei, di, pi) ei pi di

There exists a Bound for systems where the Worst-case utilization c (long-term rate) is less than 1

dbf(t) is bounded by Cmax + t*c Cmax= sum of WCETs for all jobs c = the worst-case utilization (note: C<1)

Calculating demand pairs for graph models

[Stigge et al, RTAS 2011]

[Stigge et al, RTAS 2011]

How about synchronization among tasks? How about general constraints on job releases?

www.timestool.com Task Automata [Fersman/Yi et al, TACAS 2002/TIMES tool] a b

States/Configurations of automata A state is a triple: (m, u, q) Location (node) clock assignment (valuation) job queue Feasibility/schedulability is a reachability problem for timed automata Code the problem and use UPPAAL 44

Timed automata

How about static priority scheduling?

Static-priority Schedulability [Stigge/Wang, ECRTS 2012] Task automata

Summary Models Feasibility -- EDF-schedulability Analysis Complexity Static-priority Schedulability Timed Automata Strongly NP-hard General graphs (Di-graph) Pseudo-P Strongly NP-hard Trees/DAGs (RRT) Pseudo-P Strongly NP-hard Cyclic graphs (GMF) Pseudo-P Strongly NP-hard Sporadic, D<T Pseudo-P Pseudo-P Sporadic, D=T (Layland & Liu) Linear Pseudo-P [Stigge/Wang, ECRTS 2012]

Static priority schedulability is Strongly NP-hard for all except L&L (and sporadic) model What to do?

OUTLINE An Overview on RT workload models from the simplest to the most complex from Liu & Layland classic periodic model to timed automata Recent Results the graph-based model [RTAS 2011, RTSS 2013, Stigge & Yi] Combinatorial Abstraction Refinement for Schedulability Analysis

Problem setting

Problem setting

Problem setting

Problem setting

Every Request Function corresponds to an execution path in the graph

Every Request Function corresponds to an execution path in the graph

Every Request Function corresponds to an execution path in the graph

Overapproximation: mrf (maximum of rf s) mrf Every Request Function corresponds to an execution path in the graph

Timed automata

Summary Models Feasibility -- EDF-schedulability Analysis Complexity Static-priority Schedulability Timed Automata Strongly NP-hard (or impossible) Original RTC @ ETH Strongly NP-hard Strongly NP-hard General graphs (Di-graph) Pseudo-P Strongly NP-hard Trees/DAGs (RRT) Pseudo-P Strongly NP-hard Cyclic graphs (GMF) Pseudo-P Strongly NP-hard Finitary RTC Pseudo-P Pseudo-P Sporadic, D<T Pseudo-P Pseudo-P Sporadic, D=T (Layland & Liu) Linear Pseudo-P

Conclusion Analysis is often easier for models with no urgency/synchrony e.g. job releases with minimal separation distance, no upper bound no synchronization between tasks Analysis related static priority is more difficult than feasibility (EDFschedulability) It is strongly conp-hard for all models more expressive than GMF Efficient techniques exist: Combinatorial Abstraction [RTSS 2013, Stigge/Yi] Finitary RTC [RTSS 2013, Guan/Yi] Current/future work: making a tool integrating all these!