• No results found

Lecture 5/6. Enrico Bini

N/A
N/A
Protected

Academic year: 2021

Share "Lecture 5/6. Enrico Bini"

Copied!
22
0
0

Loading.... (view fulltext now)

Full text

(1)

Real-Time Systems Enrico Bini EDF: space of comp times EDF: space of deadlines, periods EDF: optimal design

Advanced Real-Time Systems

Lecture 5/6

Enrico Bini

(2)

Real-Time Systems Enrico Bini EDF: space of comp times EDF: space of deadlines, periods EDF: optimal design

Outline

1 EDF: space of comp times

2 EDF: space of deadlines, periods

(3)

Real-Time Systems Enrico Bini EDF: space of comp times EDF: space of deadlines, periods EDF: optimal design

Space of feasible

C

i Theorem (Lemma 3 in [?])

N is EDF-schedulable if and only ifP

iUi≤1 and: ∀t∈ D n X i=1 max 0, t+Ti−Di Ti Ci≤t with

D={di,k:di,k=kTi+Di, i∈ N, k∈N, di,k≤D∗}

andD∗=lcm(T

1, . . . , Tn) + maxi{Di}.

H=lcm(T1, . . . , Tn) is often called thehyperperiod.

• Since we are investigating the space of Ci, no smaller D∗

can be considered.

• For given Ti andDi, the space of EDF-schedulableCi is

(4)

Real-Time Systems Enrico Bini EDF: space of comp times EDF: space of deadlines, periods EDF: optimal design

An example

Let us assumeT1 = 4, D1 = 5 andT2= 6, D2 = 5. D={5,9,11,13,17}

Hence equations are             4 6 8 6 8 12 12 12 16 18 1 1 −1 0 0 −1             U1 U2 ≤             5 9 11 13 17 1 0 0            

(5)

Real-Time Systems Enrico Bini EDF: space of comp times EDF: space of deadlines, periods EDF: optimal design

An example: viewing the

C

i

1 1

(6)

Real-Time Systems Enrico Bini EDF: space of comp times EDF: space of deadlines, periods EDF: optimal design

Reducing the set of deadlines

Hence only the equations       4 6 16 18 1 1 −1 0 0 −1       U1 U2 ≤       5 17 1 0 0      

are needed to be checked, corresponding toD={5,17}

• Finding a general method to reduce D without losing sufficiency would be an interesting contribution.

(7)

Real-Time Systems Enrico Bini EDF: space of comp times EDF: space of deadlines, periods EDF: optimal design

Optimal comp time

• Being the exact region convex the optimal assignment of computation times Ci does not present big difficulties.

(8)

Real-Time Systems Enrico Bini EDF: space of comp times EDF: space of deadlines, periods EDF: optimal design

Outline

1 EDF: space of comp times

2 EDF: space of deadlines, periods

(9)

Real-Time Systems Enrico Bini EDF: space of comp times EDF: space of deadlines, periods EDF: optimal design

Deadline space: qualitative

analysis

• Example: n= 2,T1 =T2,U1+U2 ≤1

• We can reduce D1 toC1, but then D2=C1+C2, or

• D2=C2, but thenD1 =C1+C2

• convex comb of these two points are not EDF-sched

• Let us assume T1 =T2 =. . .=Tn, and PiU1≤1.

• For any permutation p:N → N, a “vertex” has coordinates Dp(i)= i X j=1 Cp(j)

(10)

Real-Time Systems Enrico Bini EDF: space of comp times EDF: space of deadlines, periods EDF: optimal design

Another exact test

Being the periods and deadlines into the setDand into the ⌊·⌋, dbf condition is unfit to show the space of feasible periods/deadline.

Theorem

The task setN is EDF-schedulable if and only if:

∀kNn\ {0} ∃iIk n X j=1 Cjkj ≤(ki−1)Ti+Di where Ik={j:kj 6= 0}

(11)

Real-Time Systems Enrico Bini EDF: space of comp times EDF: space of deadlines, periods EDF: optimal design

EDF-schedulablity as covering

problem

∀kNn\ {0} ∃i:ki 6= 0 n X j=1 Cjkj ≤(ki−1)Ti+Di

can be seen as the problem of finding a cover toNn\ {0} with halfspaces of equations (Ci−Ti)ki+ X j6=i Cjkj ≤ −Ti+Di considering(k1, . . . , kn) as variables.

• Remember: ∃i:ki6= 0, not just∃i∈ N

(12)

Real-Time Systems Enrico Bini EDF: space of comp times EDF: space of deadlines, periods EDF: optimal design

Viewing the covering problem

IfT1 =D1= 4,C1 = 2, and T2 =D2= 8,C2 = 3, then −2k1+ 3k2 ≤0 2k1−5k2 ≤0 have to coverN2\ {(0,0)} 1 2 3 4 5 1 2 3 4 5 6 7 8 0 k1 k2 i= 1 i= 2

(13)

Real-Time Systems Enrico Bini EDF: space of comp times EDF: space of deadlines, periods EDF: optimal design

Changing deadlines

• DeadlineDi appears at the RHS of thei-th inequality only

• Changing Di means to translate boundary of thei-th

halfspace 1 2 3 4 5 1 2 3 4 5 6 7 8 0 k1 k2 Dmin 1 = 2 (=C1) 1 2 3 4 5 1 2 3 4 5 6 7 8 0 k1 k2 D2= 5

(14)

Real-Time Systems Enrico Bini EDF: space of comp times EDF: space of deadlines, periods EDF: optimal design

Space of feasible

D

i 0 1 2 3 4 5 6 7 −1 1 2 3 4 5 6 7 8 D1 D2

(15)

Real-Time Systems Enrico Bini EDF: space of comp times EDF: space of deadlines, periods EDF: optimal design

Changing the periods

• The i-th period has an effect only on the i-th equation

• however Ti appears in the coefficients and at the RHS

• changingTi is a rotation of thei-th halfspace

• the points in common between two equations with T′ i and Ti′′ are (Ci−Ti′)ki+ X j6=i Cjkj =−Ti′+Di (Ci−Ti′′)ki+ X j6=i Cjkj =−Ti′′+Di ki= 1 X j6=i Cjkj =Di−Ci

(16)

Real-Time Systems Enrico Bini EDF: space of comp times EDF: space of deadlines, periods EDF: optimal design

Changing periods (

n

= 2

)

• As T1 changes, the 1st boundary rotates around

k1= 1, k2 =

D1−C1

C2

• As T2 changes, the 2nd boundary rotates around

k1=

D2−C2

C1

(17)

Real-Time Systems Enrico Bini EDF: space of comp times EDF: space of deadlines, periods EDF: optimal design

Changing periods: example

• C1 = 2,D1= 4, andC2= 5,D2 = 8

• changingT1 rotates around(1,0.4)

• changingT2 rotates around(1.5,1)

1 2 3 4 5 1 2 3 4 5 6 7 8 0 k1 k2 • T1= 27 • T2=27/5 1 2 3 4 5 1 2 3 4 5 6 7 8 0 k1 k2 • T1 = 8 • T2 =20/3 1 2 3 4 5 1 2 3 4 5 6 7 8 0 k1 k2 • T1 = 6 • T2 =15/2

(18)

Real-Time Systems Enrico Bini EDF: space of comp times EDF: space of deadlines, periods EDF: optimal design

Space of deadlines: sufficient test

By making some more restrictive hypothesis, we can derive the following sufficient EDF-test

Theorem (Chantem et al. [?])

A task set is EDF-schedulable if: (

∀i, Di ≤Ti+Dmin Pn

i=1UiDi ≥Pni=1Ci−Dmin(1−Pni=1Ui).

withDmin= miniDi.

This condition has the advantage of being convex in the space of deadlines.

(19)

Real-Time Systems Enrico Bini EDF: space of comp times EDF: space of deadlines, periods EDF: optimal design

Viewing sufficient cond

IfC1 = 2,T1= 4 and C2 = 4,T2 = 7, we have D2 D1 0 2 4 6 8 10 12 0 2 4 6 8 10 12 14 16 18

(20)

Real-Time Systems Enrico Bini EDF: space of comp times EDF: space of deadlines, periods EDF: optimal design

Outline

1 EDF: space of comp times

2 EDF: space of deadlines, periods

(21)

Real-Time Systems Enrico Bini EDF: space of comp times EDF: space of deadlines, periods EDF: optimal design

Optimal

T

i

,

D

i

assignment

• X ={T1, D1, . . . , Tn, Dn}

• Typical problem in control systems:

• given the execution times{C1, . . . , Cn}

• choose the sampling periods and deadlines (=delays) of all

controllers

• such that a control cost (LQG?) is minimized

min

T1,D1,...,Tn,Dn

J(T1, D1, . . . , Tn, Dn)

(22)

Real-Time Systems Enrico Bini EDF: space of comp times EDF: space of deadlines, periods EDF: optimal design

Difficulty of the problem

We could try to find optimalTi and then Di 1 SupposeC1 =C2= 1

2 Suppose that the optimal Ti areT1 = 2.1,T2= 1.91 3 How much can we reduce the deadlines?

• very little.

4 However by choosing non-optimal periods T1=T2 = 2,

we can actually reduce one of the two deadlines by 1, possibly making the cost J smaller

• To best of my knowledge it is still unsolved

• (due to bizarre shape of the feasible region)

• solving this problem optimally would be a decent contribution

References

Related documents

Direct Bisulfite Sequencing and Methylation Specific PCR to Detect Methylation of p15INK4b and F7 genes in Coronary Artery Disease Patients..

In 2005, the predecessor of this Committee, Scientific Committee on AIDS, published its set of recommended principles of antiretroviral therapy to provide general guidance for the

„ Member states shall grant the right to every person to not be subject to a decision which (…) is solely based on automatic processing of data intended to evaluate certain personal

This has been a consistent pattern, demonstrating that Arts Corps provides students with a high quality class experience led by excellent Teaching Artists.. Arts Corps uses the

Comparing two periods with a different coagulation management, we found no evidence of increased thromboembolic risk due to a goal-directed, factor-based coagulation algorithm

Coming to be the member to always see what up-to-date from this book Beauty Pearls For Chemo Girls By Marybeth Maida, Debbie Kiederer website will make you really feel appropriate

The major findings from this study could be summarized as fol- lows: (1) Physical inactivity was significantly associated with the presences of abnormal TG and HDL-C in non-diabetic

Canon law, Moral Theology, School of Salamanca, Legal Humanism, Usus modernus Pandectarum , Natural law, Historical School, Pandectenwissenschaft.. 1