Compositional Real-Time Scheduling Framework Insik Shin 1 , Insup - - PowerPoint PPT Presentation

compositional real time scheduling framework
SMART_READER_LITE
LIVE PREVIEW

Compositional Real-Time Scheduling Framework Insik Shin 1 , Insup - - PowerPoint PPT Presentation

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion Compositional Real-Time Scheduling Framework Insik Shin 1 , Insup Lee 1 1 University of Pennsylvania 15 November


slide-1
SLIDE 1

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Compositional Real-Time Scheduling Framework

Insik Shin1, Insup Lee1

1University of Pennsylvania

15 November 2007

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-2
SLIDE 2

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Outline

1

Compositional Framework

2

Bounded Delay Resource Model

3

Schedulability Analysis

4

Utilization Bounds

5

Component Abstraction

6

Conclusion

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-3
SLIDE 3

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Problem Statement

develop a compositional real-time scheduling framework The two essential problems in developing such a framework are :

to abstract the collective real-time requirements of a component as a single real-time requirement - scheduling interface to compose the component demand abstraction results into the system-level real-time requirement - scheduling component composition.

Ideally... ...the single real-time requirement is satisfied if and only if the set of components are satisfied.

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-4
SLIDE 4

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Compositional Scheduling Framework

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-5
SLIDE 5

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Overview

Scheduling

Scheduling assigns resources to workloads by scheduling algorithms Scheduling Component Model : C(W, R, A)

W : workload model R : resource model A : scheduling algorithm

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-6
SLIDE 6

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Overview

Resource

Dedicated resource : always available at full capacity Shared resource : not a dedicated resource Non-time-sharing : available at fractional capacity

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-7
SLIDE 7

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Prerequisites

Resource demand of C(W, R, A) represents the collective resource requirements that W requests under A. Demand bound function dbfA(W, t, i) is the maximum possible resource demand that W requests to satisfy the timing requirements of task i under A within t. Resource supply of resource model R is the amount of resource allocations that R provides. Supply bound function sbfR(t) is the minimum possible resource supplies that R provides during t. A resource model R is said to satisfy a resource demand of W under A if dbfA(W, t, i) ≤ sbfR(t)

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-8
SLIDE 8

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Prerequisites

Schedulability A scheduling component C(W, R, A) is said to be schedulable if and only if ∀i ∈ W, ∀t = ⇒ dbfA(W, t, i) ≤ sbfR(t) Problem statement Given W and A such that C(W, Rp, A) is schedulable, where Rp is a dedicated resource, the problem is to find an optimal shared resource model R such that C(W, R, A) is schedulable. R is the scheduling interface of C.

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-9
SLIDE 9

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Formal problem statement

Given two scheduling components C(W1, R1, A1) and C(W2, R2, A2) such that C(W, Rp, A) is schedulable, where W = {R1, R2} and Rp is a dedicated resource, the problem is to find a optimal R such that C(W, R, A) is schedulable.

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-10
SLIDE 10

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Example

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-11
SLIDE 11

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Example

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-12
SLIDE 12

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Example

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-13
SLIDE 13

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Example

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-14
SLIDE 14

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Models

How do we define a scheduling interface model?

In previous work the periodic resource model is defined(that Harald presented) Γ(Π, Θ) specifies a periodic behavior of time-shared resource allocation and utilization bounds under EDF and RM. bounded-delay model(presented further in this paper) Φ(α, ∆)

Using the 2 models as scheduling interface models the goal is to abstract a set of tasks into a single periodic or bounded-delay task.

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-15
SLIDE 15

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Compositional Framework Models

Assumptions: periodic task model T(p, e), p is a period and e is an execution time requirement (e ≤ p). task utilization UT is e

p.

for a workload set W = {Ti}, a workload utilization UW is ΣTi∈WUTi. let Pmin be the smallest period in W, i.e. Pmin = minTi∈W{pi}. each task in independent and preemptive. as A we consider EDF and RM. as R we consider a time-shared resource model.

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-16
SLIDE 16

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

The Model

Bounded delay resource model : Maximum delay ∆ that a partition must wait to get its share α of the resource for any time interval starting at any point in time Φ(α, ∆) where α is an available factor(resource capacity) 0 ≤ α ≤ 1 and ∆ is a partition delay bound 0 ≤ ∆. Φ(α, ∆) is defined to characterize the property: ∀t1, ∀t2 ≥ t1, ∀d ≤ ∆ (t2 − t1 − d)α ≤ supplyΦ(t1, t2) ≤ (t2 − t1 + d)α sbfΦ(t) = α(t − ∆), t ≥ ∆ and 0 otherwise

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-17
SLIDE 17

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Example

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-18
SLIDE 18

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Periodic Workload Model

Generalize the schedulability conditions for use in any partitioned resource model. The resource model must calculate its supply bound function accurately. dbfEDF(W, t) = ΣTi∈W(⌊ t−Di

pi ⌋ + 1) · ei (Baruah et al. [2])

dbfRM(W, t, i) = ei + ΣTi∈HPW (i)⌈ t

pk ⌉ · ek (Lehoczky et al.

[8])

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-19
SLIDE 19

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Periodic Workload Model

C(W, R, A) is schedulable under EDF if and only if ∀0 < t ≤ 2 · LCMW + Dmax, dbfEDF(w, t) ≤ sbfR(t) where LCMW is the least common multiple of pi for all Ti ∈ W and Dmax is the maximum relative deadline Di for all Ti ∈ W C(W, R, A) is schedulable under RM if and only if ∀Ti ∈ W, ∃0 < t ≤ pi, dbfRM(W, t, i) ≤ sbfR(t)

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-20
SLIDE 20

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Bounded Delay Workload Model

Transform each bounded-delay workload model into a periodic workload model and analyze schedulability under EDF and RM. Minimum acceptable resource demand for an interval t is dbf(Φ, t) = α · (t − ∆) ≤ demandΦ(t) For a periodic workload model T(p, e) we have dbf(T, t) To transform Φ(α, ∆) in T(p, e) we must ensure that dbf(Φ, t) ≤ dbf(T, t) for all t.

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-21
SLIDE 21

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Bounded Delay Workload Model

Feasibility and schedulability

We take an extended bounded-delay workload model Φ(α, ∆, Q) (see Feng and Mok [5]) Theorem A component C(W, R, A) is feasible, where W = {Φi(αi, ∆i, Q)}, 1 ≤ i ≤ n and R = Φ(α, ∆, Q) if and only if ∀t > 0, Σn

i=1dbf(Φi, t) ≤ sbfΦ(t)

Proof in the paper.

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-22
SLIDE 22

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Schedulable utilization bound of partitioned resource models Computing the utilization bound takes a constant amount

  • f time, less than computing dbf

The paper introduces utilization bounds for bounded-delay resource model

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-23
SLIDE 23

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Theorem A component C(W, R, A) is schedulable, where W = {Ti(pi, ei)}, R = Φ(α, ∆), under EDF if UW ≤ α(1 − ∆ Pmin ), Pmin = minTi∈W{pi} Theorem A component C(W, R, A) is schedulable, where W = {Ti(pi, ei)}, R = Φ(α, ∆), under RM if UW ≤ α(n(

n

√ 2 − 1) − ∆ 2(n−1)/n · Pmin ), Pmin = minTi∈W{pi}

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-24
SLIDE 24

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

As k increases the utilization bounds converge to their limits α under EDF and log2 · α under RM.

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-25
SLIDE 25

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Given a workload set W and a scheduling algorithm A such that the scheduling component C(W, Rp, A) is schedulable the problem is to find an optimal resource model R such that C(W, R, A) is schedulable. We define the optimality criteria as minimizing the resource capacity requirement of a solution when a resource period bound is given.

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-26
SLIDE 26

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-27
SLIDE 27

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Simulation

Workload size(number of tasks in W) : 2, 4, 8, 16, 32, 64, 128 Workload utilization : 0.1, 0.2, . . . , 0.7 Task model : Each task has a period p randomly generated in the range [5, 100] and an execution time e in [1, 40] Scheduling algorithm : EDF or RM Delay Bound (∆) : is determined such that k = 2, 4, 8, 16, 32, 64 where k = Pmin

∆ and Pmin is the

smallest task period.

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-28
SLIDE 28

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Simulation

For a scheduling component C(W, R, A), its abstraction

  • verhead (OΓ) is UΓ

UW − 1

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-29
SLIDE 29

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Simulation

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-30
SLIDE 30

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Simulation

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-31
SLIDE 31

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Conclusion

a bounded-delay model can be used as scheduling interface model for compositional scheduling frameworks defined and provided solutions to the problem of developing a compositional real-time scheduling framework Drawback : limitation to the tasks, we assume that they are independent

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-32
SLIDE 32

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Thank you

Thank you! Any questions?

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007

slide-33
SLIDE 33

Compositional Framework Bounded Delay Resource Model Schedulability Analysis Utilization Bounds Component Abstraction Conclusion

Supply bound function

sbfΦ∼(t) = t − t∗

k + (k − 1) · Q if t ∈ [t∗ k , t∗ k + Q] , and k · Q if

t ∈ [t∗

k + Q, t∗ k+1] where Q is the minimum scheduling

quantum, t∗

k = tk − ⌊ tk Q⌋Q such that

tk = (k − 1)Q

α + ∆, k = 1, 2, . . .

presented by Silviu Craciunas University of Salzburg, Austria Compositionality Seminar, Winter 2007