Probabilistic Real-Time Analysis Luca Santinelli and Liliana - - PowerPoint PPT Presentation

probabilistic real time analysis
SMART_READER_LITE
LIVE PREVIEW

Probabilistic Real-Time Analysis Luca Santinelli and Liliana - - PowerPoint PPT Presentation

Probabilistic Real-Time Analysis Luca Santinelli and Liliana Cucu-Grosjean Trio Team, INRIA Nancy Grand-Est France 1/17 Problem Statement Real-Time Systems: timing constraints to enforce and guarantee in all the conditions Task


slide-1
SLIDE 1

Probabilistic Real-Time Analysis

Luca Santinelli and Liliana Cucu-Grosjean

Trio Team, INRIA Nancy Grand-Est France

1/17

slide-2
SLIDE 2

Problem Statement

◮ Real-Time Systems: timing constraints to enforce and guarantee in all the conditions ◮ Task Scheduling: task execution through scheduling algorithms

2/17

slide-3
SLIDE 3

Problem Statement

◮ Real-Time Systems: timing constraints to enforce and guarantee in all the conditions ◮ Task Scheduling: task execution through scheduling algorithms Real-Time System: S = (A, R, Γ)

2/17

slide-4
SLIDE 4

Problem Statement

◮ Real-Time Systems: timing constraints to enforce and guarantee in all the conditions ◮ Task Scheduling: task execution through scheduling algorithms Real-Time System: S = (A, R, Γ) Scheduling Algorithms A ◮ Priority-based ◮ Static or Dynamic Timing constraints...

2/17

slide-5
SLIDE 5

Problem Statement

◮ Real-Time Systems: timing constraints to enforce and guarantee in all the conditions ◮ Task Scheduling: task execution through scheduling algorithms Real-Time System: S = (A, R, Γ) Resource R ◮ Computational resource ◮ Communication resource ◮ · · ·

2/17

slide-6
SLIDE 6

Problem Statement

◮ Real-Time Systems: timing constraints to enforce and guarantee in all the conditions ◮ Task Scheduling: task execution through scheduling algorithms Real-Time System: S = (A, R, Γ) Task set Γ Γ = {τ1, τ2, . . . , τn} τi = (Oi, Ci, Ti, Di) Timing constraints → Deadline Di

2/17

slide-7
SLIDE 7

Problem Statement

◮ Real-Time Systems: timing constraints to enforce and guarantee in all the conditions ◮ Task Scheduling: task execution through scheduling algorithms Real-Time System: S = (A, R, Γ) WORST-CASE SYSTEM and ANALYSIS

2/17

slide-8
SLIDE 8

Outline

1

Problem Statement

2

Real-Time Analysis

3

Motivations to Probabilities

4

Probabilities

3/17

slide-9
SLIDE 9

Real-Time Analysis: Abstractions

◮ Workload bound function wbf: the maximum amount of resource required by that task ◮ Demand bound function dbf: the minimum amount of resource demanded by that task in order to execute and meet its timing constraint ◮ supply bound function sbf: the minimum resource provisioning from a resource provisioning system element

4/17

slide-10
SLIDE 10

Real-Time Analysis: Abstractions

◮ Workload bound function wbf: the maximum amount of resource required by that task ◮ Demand bound function dbf: the minimum amount of resource demanded by that task in order to execute and meet its timing constraint ◮ supply bound function sbf: the minimum resource provisioning from a resource provisioning system element Functions

4/17

slide-11
SLIDE 11

Real-Time Analysis: Approximations

Approximating the resource supply sbf bdf(t) = max{0, α(t − ∆)} α = lim

t→∞

sbf(t) t ∆ = inf{q | α(t − q) ≤ sbf(t) ∀t}

5/17

slide-12
SLIDE 12

Real-Time Analysis: Approximations

Approximating the resource supply sbf bdf(t) = max{0, α(t − ∆)} α = lim

t→∞

sbf(t) t ∆ = inf{q | α(t − q) ≤ sbf(t) ∀t} Approximations applicable to workload and resource demand

5/17

slide-13
SLIDE 13

Real-Time Analysis: Approximations

Approximating the resource supply sbf bdf(t) = max{0, α(t − ∆)} α = lim

t→∞

sbf(t) t ∆ = inf{q | α(t − q) ≤ sbf(t) ∀t} Approximations applicable to workload and resource demand Approximations

5/17

slide-14
SLIDE 14

Real-Time Analysis: Schedulability

Schedulability A real-time system is schedulable if all the tasks composing the system meet their deadline while executing Scheduling conditions are defined by comparing the resource request (workload or resource demand) and the resource provisioning

6/17

slide-15
SLIDE 15

Real-Time Analysis: Schedulability

Schedulability A real-time system is schedulable if all the tasks composing the system meet their deadline while executing Scheduling conditions are defined by comparing the resource request (workload or resource demand) and the resource provisioning Comparison: timing guarantees (hard or soft)

6/17

slide-16
SLIDE 16

Real-Time Analysis: an Example of Schedulability

i.e. Earliest Deadline First (EDF) scheduling paradigm, a task set Γ, receiving an amount of resource sbf can be guaranteed schedulable (its deadline can be guaranteed) if and only if ∀t dbfΓ(t) ≤ sbf(t) With the bounded-delay linear approximation, the feasibility condition becomes a sufficient condition ∀ t bdf(t) ≤ sbf(t) i.e. with α, ∆ approximation ∀t ∈ D : dbf(t) ≤ α(t − ∆) D is the set of deadlines the application schedulability has to be checked

7/17

slide-17
SLIDE 17

Real-Time Analysis: Feasibility Space

Schedulability conditions also relate to schedulability regions in representation space Example: the (α, ∆)-space - possible to define feasibility regions where the task set is schedulable with the (α, ∆) resource assignment i.e. EDF, the application feasibility region is defined by ∀t ∈ D : dbf(t) ≤ α(t − ∆) ∀t ∈ D : ∆ ≤ t − dbf(t) α ∆ ≤ min

t∈D

  • t − dbf(t)

α

  • 8/17
slide-18
SLIDE 18

Real-Time Analysis: Feasibility Space

1 2 3 4 5 0.2 0.4 0.6 0.8 1 Earliest Deadline First

8/17

slide-19
SLIDE 19

Outline

1

Problem Statement

2

Real-Time Analysis

3

Motivations to Probabilities

4

Probabilities

9/17

slide-20
SLIDE 20

Motivations to Probabilities

◮ Worst-case timing analysis to validate the system

10/17

slide-21
SLIDE 21

Motivations to Probabilities

◮ Worst-case timing analysis to validate the system HOWEVER, a worst-case analysis provides pessimistic results (WCET ≡ pessimism) that not all real-time systemsems can afford

10/17

slide-22
SLIDE 22

Motivations to Probabilities

◮ Worst-case timing analysis to validate the system HOWEVER, a worst-case analysis provides pessimistic results (WCET ≡ pessimism) that not all real-time systemsems can afford The pessimism can be decreased by using probabilistic approaches.

10/17

slide-23
SLIDE 23

Motivations to Probabilities

◮ Worst-case timing analysis to validate the system HOWEVER, a worst-case analysis provides pessimistic results (WCET ≡ pessimism) that not all real-time systemsems can afford The pessimism can be decreased by using probabilistic approaches. What else? ◮ Reliability analysis, used to estimate the imperfection of reality ◮ Unreliable nature of the system environment and the system elements

10/17

slide-24
SLIDE 24

Motivations to Probabilities

◮ Worst-case timing analysis to validate the system HOWEVER, a worst-case analysis provides pessimistic results (WCET ≡ pessimism) that not all real-time systemsems can afford The pessimism can be decreased by using probabilistic approaches. What else? ◮ Reliability analysis, used to estimate the imperfection of reality ◮ Unreliable nature of the system environment and the system elements Guarantee timing constraints needed for hard and soft real-time systems/applications

10/17

slide-25
SLIDE 25

Outline

1

Problem Statement

2

Real-Time Analysis

3

Motivations to Probabilities

4

Probabilities

11/17

slide-26
SLIDE 26

A Probabilistic Model

Γ = {τ1, τ2, . . . , τn} τi = (Ci, Di, Ti) Ci - random variable on the execution time with a known probability function fCi(·) (fCi(C) = P(Ci = C)) Ci = C max

i

= C 0

i

C 1

i

· · · C min

i

= C m

i

fCi(C max

i

) fCi(C 1

i )

· · · fCi(C min

i

)

  • j

fCi(C j

i ) = 1

12/17

slide-27
SLIDE 27

Probabilistic Analysis

Probabilistic functions and probabilistic approximation results in probabilistic bounds to the system behaviour

13/17

slide-28
SLIDE 28

Probabilistic Analysis

Probabilistic functions and probabilistic approximation results in probabilistic bounds to the system behaviour Probabilistic dbf dbfi,j(t) = max

  • 0,

t − Di Ti + 1

  • C j

i

  • Each dbfi,j has a bounding probability

pi,j = 1 −

k : C k

i ≤C j i fCi(C k

i ).

Probabilities: probability of bounding the resource demand

13/17

slide-29
SLIDE 29

Probabilistic Analysis

Probabilistic functions and probabilistic approximation results in probabilistic bounds to the system behaviour Probabilistic dbf dbfi,j(t) = max

  • 0,

t − Di Ti + 1

  • C j

i

  • Each dbfi,j has a bounding probability

pi,j = 1 −

k : C k

i ≤C j i fCi(C k

i ).

Probabilities: probability of bounding the resource demand Probabilistic functions: dbfi,j, pi,j

13/17

slide-30
SLIDE 30

Probabilistic Analysis

Probabilistic functions and probabilistic approximation results in probabilistic bounds to the system behaviour Probabilistic sbf Periodic service provisioning (Q, P), the worst-case/minimum resource supply [0, t) sbf(t) = max{0, (k − 1)Q, t − (k + 1)(P − Q)} k = ⌈t − (P − Q) P ⌉ Probabilities: probability of bounding the resource provisioning

13/17

slide-31
SLIDE 31

Probabilistic Analysis

Probabilistic functions and probabilistic approximation results in probabilistic bounds to the system behaviour Probabilistic sbf Periodic service provisioning (Q, P), the worst-case/minimum resource supply [0, t) sbf(t) = max{0, (k − 1)Q, t − (k + 1)(P − Q)} k = ⌈t − (P − Q) P ⌉ Probabilities: probability of bounding the resource provisioning Probabilistic functions:sbfk, pk

13/17

slide-32
SLIDE 32

Probabilistic Feasibility Space: an Example

Test Case Given a probabilistic task τ = (0,

  • 1

2 3 0.6 0.3 0.1

  • , 10, 10), The

possible probabilistic demand bound curves are dbf1 = t − 10 10 + 1

  • 1

→ (α1, ∆1) dbf2 = t − 10 10 + 1

  • 2

→ (α2, ∆2) dbf3 = t − 10 10 + 1

  • 3

→ (α3, ∆3)

14/17

slide-33
SLIDE 33

Probabilistic Feasibility Space: an Example

5 10 15 20 25 30 35 40 0.2 0.4 0.6 0.8 1

∆ α

EDF probabilistic feasibility region

14/17

slide-34
SLIDE 34

Remarks

Flexibility of the probabilistic model and analysis allows to: ◮ tackle with hard real-time ◮ easily extend to the common soft real-time case ◮ efficiently face many source of pessimism of the real-time analysis (WCET, approximations, etc.)

15/17

slide-35
SLIDE 35

Increase the Complexity

With a complete probabilistic task model: τi = (Ci, Di, Ti) ◮ Ci - random variable on the execution time with a known probability function fCi(·) (fCi(c) = P(Ci = c)) ◮ Ti - random variable on the period with a known probability function fTi(·) (fTi(T) = P(Ti = T))

16/17

slide-36
SLIDE 36

Increase the Complexity

With a complete probabilistic task model: τi = (Ci, Di, Ti) ◮ Ci - random variable on the execution time with a known probability function fCi(·) (fCi(c) = P(Ci = c)) ◮ Ti - random variable on the period with a known probability function fTi(·) (fTi(T) = P(Ti = T)) Ci =

  • C max

i

= C 0

i

C 1

i

· · · C min

i

= C m

i

fCi (C max

i

) fCi (C 1

i )

· · · fCi (C min

i

)

  • ;
  • j

fCi(C j

i ) = 1

Ti =

  • T max

i

= T 0

i

T 1

i

· · · T min

i

= T m

i

fTi (T max

i

) fTi (T 1

i )

· · · fTi (T min

i

)

  • ;
  • j

fTi(T j

i ) = 1

16/17

slide-37
SLIDE 37

Some Questions

1 How to derive conclusions from the probabilistic (α, ∆)-space? 2 What are other possible conclusions from the analysis of the

α, ∆)-space?

3 How to study the probabilistic (α, ∆)-space in the general

case? How to derive conclusions from the general case of probabilistic (α, ∆)-space?

4 Extend the model to other aspects of the real-time analysis? 5 A new model for probabilistic real-time?

17/17