• No results found

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

N/A
N/A
Protected

Academic year: 2021

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

Copied!
68
0
0

Loading.... (view fulltext now)

Full text

(1)

Workload Models for System-Level Timing Analysis:

Expressiveness vs. Analysis Efficiency

Nan Guan, Martin Stigge and

Wang Yi

Uppsala University, Sweden

Uppsala University, China

(2)

2

Complex Real-Time Systems

I/O

I/O

DSP

Input Stream Input Stream BUS

ECU

I/O

FPGA

(3)

3

Complex Real-Time Systems

I/O

I/O

DSP

Input Stream Input Stream BUS

ECU

I/O

FPGA

Output Stream Output Stream
(4)

4

Timing Analysis

What’s the maximal delay at each component?

What’s the maximal end-to-end delay?

… …

I/O

I/O

DSP

Input Stream Input Stream BUS

ECU

I/O

FPGA

Output Stream Output Stream
(5)

Timing Analysis

Task-Level Timing Analysis

Find out the resource requirement for each task

WCET estimation

System-Level Timing Analysis

According to the WCET, budgeting the “CPU resource” for each task

Schedulability Analysis (Response Time Analysis)

5 I/O I/O DSP Input Stream Input Stream BUS ECU I/O FPGA Output Stream Output Stream

(6)

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]

“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]

p

q

x = 5 x:=0 x:= 0 x= 13 (p,0) (q,5) (p,18) (p,23) …

time

# jobs

6 I/O I/O DSP Input Stream Input Stream BUS ECU I/O FPGA Output Stream Output Stream
(7)

Expressiveness vs. Analysis Efficiency

(8)

Expressiveness vs. Analysis Efficiency vs. Analysis Precision

Task automata

Ab

st

rac

ti

o

n

Approximate Exact
(9)

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]

(10)

Modeling a system for analysis

System = a set of Tasks

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?

(11)
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(19)
(20)
(21)
(22)
(23)
(24)
(25)
(26)
(27)

Example: L&L tasks

(

e

i

, p

i

)

p

i

e

i

t

(28)

Example: Sporadic tasks:

(

e

i,

d

i,

p

i

)

d

i

e

i

(29)
(30)

There exists a

Bound

for systems where the Worst-case utilization

c

(31)

dbf(t) is bounded by

C

max + t*c

C

max

=

sum of WCETs for all jobs

c =

“the worst-case utilization”

(note:

C<1)
(32)
(33)
(34)
(35)
(36)
(37)
(38)
(39)
(40)
(41)
(42)

How about “synchronization among tasks”?

(43)

Task Automata

[Fersman/Yi et al, TACAS 2002/TIMES tool]

www.timestool.com

a

(44)

44

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 …

(45)
(46)
(47)

[Stigge/Wang, ECRTS 2012]

St

at

ic

-p

ri

o

ri

ty

Sc

h

edu

lab

ili

ty

Task automata
(48)

Summary

Models Analysis Complexity

Feasibility -- EDF-schedulability 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

(49)

Static priority schedulability is

Strongly NP-hard

for all except

L&L (and sporadic) model

(50)

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]

(51)
(52)
(53)
(54)
(55)
(56)
(57)
(58)
(59)

Every Request Function corresponds to an execution path in the graph

Overapproximation:

mrf

(maximum of rf’s)

(60)
(61)
(62)
(63)
(64)
(65)
(66)
(67)

Summary

Models Analysis Complexity

Feasibility -- EDF-schedulability 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

(68)

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

(EDF-schedulability)

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]

References

Related documents

In order to support the model-driven engineering of high-assurance adaptive systems, we need automated techniques to generate innovative software models that satisfy safety

Unless otherwise agreed, when the seller tenders delivery of goods to the buyer, he is bound, on request, to afford the buyer a reasonable opportunity of examining the goods for

THIS STUNNING, FIRST FLOOR APARTMENT Lounge Diner Kitchen Bedroom 1 Bedroom 2 Bathroom En-Suite 8.00 m x 2.80 m 4.70 m x 2.50 m 5.50 m x 4.00 m 2.50 m x 3.50 m 1.80 m

Although insufficient data exist to examine trends and cycles by major wine product, newly available data (Wittwer and Rothfield 2006) permit us to investigate some underlying causes

In black-box test context, XSS vulnerabilities arise when a tainted data (re- sulting of a partial copy of an input parameter value, a string of characters) appears in at least

Source captions from Flickr30k: Young, Lai, Hodosh, and Hockenmaier, TACL ‘14.. Entailment

if any NP problem can be reduced to X in polynomial time • A problem is NP- complete if it is both: • In NP • and

Decision problem polynomial-time (Karp) reduces to decision problem if given any instance of , we can construct an instance of in polynomial time s.t if and only