Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks - - PowerPoint PPT Presentation

bounding and shaping the demand of mixed criticality
SMART_READER_LITE
LIVE PREVIEW

Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks - - PowerPoint PPT Presentation

Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks Pontus Ekberg & Wang Yi Uppsala University, Sweden ECRTS 2012 Mixed-criticality sporadic tasks D i : Relative deadline T i : Period L i : Criticality (lo or hi) Pontus


slide-1
SLIDE 1

Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks

Pontus Ekberg & Wang Yi

Uppsala University, Sweden

ECRTS 2012

slide-2
SLIDE 2

Mixed-criticality sporadic tasks

(Ci(lo) ⩽ Ci(hi)) Ci(lo): WCET at low-criticality Ci(hi): WCET at high-criticality Di: Relative deadline Ti: Period Li: Criticality (lo or hi) Task τi

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 2

slide-3
SLIDE 3

Mixed-criticality sporadic tasks

τ1 (L1 = lo): τ2 (L2 = hi): τ3 (L3 = hi):

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 3

slide-4
SLIDE 4

Mixed-criticality sporadic tasks

τ1 (L1 = lo): τ2 (L2 = hi): τ3 (L3 = hi):

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 4

slide-5
SLIDE 5

Mixed-criticality sporadic tasks

τ1 (L1 = lo): τ2 (L2 = hi): τ3 (L3 = hi):

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 5

slide-6
SLIDE 6

Schedulability analysis

A task set τ is schedulable if ∀ℓ ⩾ 0 : ∑

τi∈τ

dbf(τi, ℓ) ⩽ sbf(ℓ). Classic EDF analysis Low-criticality mode High-criticality mode Time

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 6

slide-7
SLIDE 7

Schedulability analysis

A task set τ is schedulable if both A and B hold: A : ∀ℓ ⩾ 0 : ∑

τi∈τ

dbflo(τi, ℓ) ⩽ sbflo(ℓ) B : ∀ℓ ⩾ 0 : ∑

τi∈hi(τ)

dbfhi(τi, ℓ) ⩽ sbfhi(ℓ) Mixed-criticality EDF analysis Low-criticality mode High-criticality mode Time

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 7

slide-8
SLIDE 8

Demand-bound functions

Half-fjnished jobs are carried over to high-criticality mode. Low-criticality mode High-criticality mode Time Each τi behaves exactly like a standard sporadic task with WCET Ci(lo). Use dbfs from Baruah et al., 1990! Each

i behaves similar to a standard

sporadic task with WCET Ci hi .

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 8

slide-9
SLIDE 9

Demand-bound functions

Half-fjnished jobs are carried over to high-criticality mode. Low-criticality mode High-criticality mode Time Each τi behaves exactly like a standard sporadic task with WCET Ci(lo). Use dbfs from Baruah et al., 1990! Each

i behaves similar to a standard

sporadic task with WCET Ci hi .

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 9

slide-10
SLIDE 10

Demand-bound functions

Half-fjnished jobs are carried over to high-criticality mode. Low-criticality mode High-criticality mode Time Each τi behaves exactly like a standard sporadic task with WCET Ci(lo). Use dbfs from Baruah et al., 1990! Each τi behaves similar to a standard sporadic task with WCET Ci(hi).

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 10

slide-11
SLIDE 11

Demand-bound functions

Half-fjnished jobs are carried over to high-criticality mode. Low-criticality mode High-criticality mode Time Each τi behaves exactly like a standard sporadic task with WCET Ci(lo). Use dbfs from Baruah et al., 1990! Each τi behaves similar to a standard sporadic task with WCET Ci(hi).

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 11

slide-12
SLIDE 12

Carry-over jobs

Half-fjnished jobs are carried over to high-criticality mode. Low-criticality mode High-criticality mode Time To show A ∧ B, we show A ∧ (A → B). Restricting to the interesting cases

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 12

slide-13
SLIDE 13

Carry-over jobs

t t + Di Release of τi Absolute deadline Switch to high-criticality mode Remaining scheduling window Ci hi Ci lo … Time

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 13

slide-14
SLIDE 14

Carry-over jobs

t t + Di Release of τi Absolute deadline Switch to high-criticality mode Remaining scheduling window Ci hi Ci lo … Time

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 14

slide-15
SLIDE 15

Carry-over jobs

t t + Di Release of τi Absolute deadline Switch to high-criticality mode Remaining scheduling window Ci hi Ci lo … Time

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 15

slide-16
SLIDE 16

Carry-over jobs

t t + Di Release of τi Absolute deadline Switch to high-criticality mode Remaining scheduling window Ci(hi)−Ci(lo) … Time

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 16

slide-17
SLIDE 17

Adjusting the demand of carry-over jobs

t t + Di(lo) t + Di(hi) Release of τi Deadlines in low- and high-criticality mode … Time … Time Switch to high-criticality mode … Time Switch to high-criticality mode Remaining scheduling window

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 17

slide-18
SLIDE 18

Adjusting the demand of carry-over jobs

t t + Di(lo) t + Di(hi) Release of τi Deadlines in low- and high-criticality mode … Time … Time Switch to high-criticality mode … Time Switch to high-criticality mode Remaining scheduling window

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 18

slide-19
SLIDE 19

Adjusting the demand of carry-over jobs

t t + Di(lo) t + Di(hi) Release of τi Deadlines in low- and high-criticality mode … Time … Time Switch to high-criticality mode … Time Switch to high-criticality mode Remaining scheduling window

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 19

slide-20
SLIDE 20

Adjusting the demand of carry-over jobs

t t + Di(lo) t + Di(hi) Release of τi Deadlines in low- and high-criticality mode … Time … Time Switch to high-criticality mode … Time Switch to high-criticality mode Remaining scheduling window

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 20

slide-21
SLIDE 21

Adjusting the demand of carry-over jobs

t t + Di(lo) t + Di(hi) Release of τi Deadlines in low- and high-criticality mode … Time … Time Switch to high-criticality mode … Time Switch to high-criticality mode Remaining scheduling window

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 21

slide-22
SLIDE 22

Demand-bound functions for high-criticality mode

5 10 15 20 25 30 Time interval length (ℓ) 5 10 15 20 25 30 Demand dbf HI(τi, ℓ)

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 22

slide-23
SLIDE 23

Demand-bound functions for high-criticality mode

5 10 15 20 25 30 Time interval length (ℓ) 5 10 15 20 25 30 Demand dbf HI(τi, ℓ) dbf LO(τi, ℓ)

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 23

slide-24
SLIDE 24

The effect of the low-criticality relative deadline

If Di(lo) is decreased by δ ∈ Z, then dbflo(τi, ℓ) ❀ dbflo(τi, ℓ + δ) dbfhi(τi, ℓ) ❀ dbfhi(τi, ℓ − δ) Shifuing lemma

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 24

slide-25
SLIDE 25

The effect of the low-criticality relative deadline

5 10 15 20 25 30 Time interval length (ℓ) 5 10 15 20 25 30 Demand

δ δ

dbf HI(τi, ℓ) dbf LO(τi, ℓ) dbf HI(τi, ℓ), Di(LO) decreased by δ dbf LO(τi, ℓ), Di(LO) decreased by δ

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 25

slide-26
SLIDE 26

Shaping the demand of the task set

A task set τ is schedulable if both A and B hold: A : ∀ℓ ⩾ 0 : ∑

τi∈τ

dbflo(τi, ℓ) ⩽ sbflo(ℓ) B : ∀ℓ ⩾ 0 : ∑

τi∈hi(τ)

dbfhi(τi, ℓ) ⩽ sbfhi(ℓ) Mixed-criticality EDF analysis Is there a valid assignment of Di(lo)s to each high-criticality task τi such that both A and B hold? A constraint satisfaction problem

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 26

slide-27
SLIDE 27

Shaping the demand of the task set

10 20 30 40 50 60 70 80 90 100 Time interval length (ℓ) 10 20 30 40 50 60 70 80 90 100 Demand

dbf HI dbf LO

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 27

slide-28
SLIDE 28

Shaping the demand of the task set

10 20 30 40 50 60 70 80 90 100 Time interval length (ℓ) 10 20 30 40 50 60 70 80 90 100 Demand

dbf HI dbf LO

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 28

slide-29
SLIDE 29

Shaping the demand of the task set

10 20 30 40 50 60 70 80 90 100 Time interval length (ℓ) 10 20 30 40 50 60 70 80 90 100 Demand

dbf HI dbf LO

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 29

slide-30
SLIDE 30

Shaping the demand of the task set

10 20 30 40 50 60 70 80 90 100 Time interval length (ℓ) 10 20 30 40 50 60 70 80 90 100 Demand

dbf HI dbf LO

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 30

slide-31
SLIDE 31

Shaping the demand of the task set

10 20 30 40 50 60 70 80 90 100 Time interval length (ℓ) 10 20 30 40 50 60 70 80 90 100 Demand

dbf HI dbf LO

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 31

slide-32
SLIDE 32

Shaping the demand of the task set

10 20 30 40 50 60 70 80 90 100 Time interval length (ℓ) 10 20 30 40 50 60 70 80 90 100 Demand

dbf HI dbf LO

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 32

slide-33
SLIDE 33

Shaping the demand of the task set

10 20 30 40 50 60 70 80 90 100 Time interval length (ℓ) 10 20 30 40 50 60 70 80 90 100 Demand

dbf HI dbf LO

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 33

slide-34
SLIDE 34

Shaping the demand of the task set

10 20 30 40 50 60 70 80 90 100 Time interval length (ℓ) 10 20 30 40 50 60 70 80 90 100 Demand

dbf HI dbf LO

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 34

slide-35
SLIDE 35

Evaluation

0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 Average utilization 10 20 30 40 50 60 70 80 90 100 Acceptance ratio (%)

Our OCBP-prio AMC-max Vestal EDF-VD OCBP-load Naive

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 35

slide-36
SLIDE 36

Evaluation

0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 Probability of high-criticality 10 20 30 40 50 60 70 80 90 100 Weighted acceptance ratio (%)

Our OCBP-prio AMC-max Vestal EDF-VD OCBP-load Naive

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 36

slide-37
SLIDE 37

Evaluation

1 3 5 7 9 11 13 15 17 19 Maximum ratio of high- to low-criticality WCET 10 20 30 40 50 60 70 80 90 100 Weighted acceptance ratio (%)

Our OCBP-prio AMC-max Vestal EDF-VD OCBP-load Naive

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 37

slide-38
SLIDE 38

Conclusions

1 Demand-bound functions are useful also for mixed-criticality systems. 2 Tie particulars of mixed-criticality demand-bound functions allow

us to easily shape the demand to the supply of the platform.

3 Experiments indicate that this approach performs well.

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 38

slide-39
SLIDE 39

Qvestions?

Pontus Ekberg Bounding and Shaping the Demand of Mixed-Criticality Sporadic Tasks 39