On the Tractability of Digraph-Based Task Models Martin Stigge - - PowerPoint PPT Presentation

on the tractability of digraph based task models
SMART_READER_LITE
LIVE PREVIEW

On the Tractability of Digraph-Based Task Models Martin Stigge - - PowerPoint PPT Presentation

On the Tractability of Digraph-Based Task Models Martin Stigge Uppsala University, Sweden Joint work with Pontus Ekberg, Nan Guan and Wang Yi Martin Stigge Tractability of Digraph-Based Models 1 Analysis of Abstract Models Model hard


slide-1
SLIDE 1

On the Tractability of Digraph-Based Task Models

Martin Stigge

Uppsala University, Sweden

Joint work with Pontus Ekberg, Nan Guan and Wang Yi

Martin Stigge Tractability of Digraph-Based Models 1

slide-2
SLIDE 2

Analysis of Abstract Models

Model hard real-time systems

◮ Analysis: Guarantee deadlines ◮ Expressiveness of models? ◮ Efficiency of analysis?

  • 4 5

B 2 2 C 2 2 D 1 2 E 1 2 5 2 2 3 7 2 2 9 6

Martin Stigge Tractability of Digraph-Based Models 2

Question

How expressive can a model be? ... with a tractable feasibility test?

slide-3
SLIDE 3

Context: Real-Time Task Models

System is composed of tasks, releasing jobs J = (r, e, d)

◮ Release time r ◮ Worst-case execution time e ◮ Deadline d

t r d e

Scheduling window

Feasibility: Can we schedule s.t. all jobs meet their deadlines? In this work:

◮ Preemptive schedules ◮ On uniprocessors ◮ Independent jobs

In this setting: EDF is optimal. Feasible ⇔ Schedulable with EDF

  • Martin Stigge

Tractability of Digraph-Based Models 3

slide-4
SLIDE 4

Context: Real-Time Task Models

System is composed of tasks, releasing jobs J = (r, e, d)

◮ Release time r ◮ Worst-case execution time e ◮ Deadline d

t r d e

Scheduling window

Feasibility: Can we schedule s.t. all jobs meet their deadlines? In this work:

◮ Preemptive schedules ◮ On uniprocessors ◮ Independent jobs

In this setting: EDF is optimal. Feasible ⇔ Schedulable with EDF

  • Martin Stigge

Tractability of Digraph-Based Models 3

slide-5
SLIDE 5

The Liu and Layland (L&L) Task Model

(Liu and Layland, 1973)

Tasks are periodic

◮ Job WCET e ◮ Minimum inter-release delay p (implicit deadline)

➋ ❀

(e, p)

t e e p p ... Advantages: Well-known model; efficient schedulability test Disadvantage: Very limited expressiveness

Martin Stigge Tractability of Digraph-Based Models 4

slide-6
SLIDE 6

Hierarchy of Models

L&L GMF RRT DRT

periodic different job types branching branching, loops, . . .

[Liu et al., 1973] [Mok et al., 1999] [Baruah, 2003] [S. et al., 2011]

two integers cycle graph DAG arbitrary graph

efficient Feasibility test difficult low Expressiveness high

Martin Stigge Tractability of Digraph-Based Models 5

slide-7
SLIDE 7

Hierarchy of Models

L&L GMF RRT DRT

periodic different job types branching branching, loops, . . .

[Liu et al., 1973] [Mok et al., 1999] [Baruah, 2003] [S. et al., 2011]

two integers cycle graph DAG arbitrary graph

Strongly (co)NP-hard Pseudo-Polynomial

efficient Feasibility test difficult low Expressiveness high

Martin Stigge Tractability of Digraph-Based Models 5

slide-8
SLIDE 8

Hierarchy of Models

L&L GMF RRT DRT

periodic different job types branching branching, loops, . . .

[Liu et al., 1973] [Mok et al., 1999] [Baruah, 2003] [S. et al., 2011]

two integers cycle graph DAG arbitrary graph

Strongly (co)NP-hard Pseudo-Polynomial

Question: How close to this border? efficient Feasibility test difficult low Expressiveness high

Martin Stigge Tractability of Digraph-Based Models 5

slide-9
SLIDE 9

Hierarchy of Models

L&L GMF RRT DRT

periodic different job types branching branching, loops, . . .

[Liu et al., 1973] [Mok et al., 1999] [Baruah, 2003] [S. et al., 2011]

two integers cycle graph DAG arbitrary graph

Strongly (co)NP-hard Pseudo-Polynomial

Question: How close to this border?

k-EDRT EDRT

efficient Feasibility test difficult low Expressiveness high

Martin Stigge Tractability of Digraph-Based Models 5

slide-10
SLIDE 10

The Digraph Real-Time (DRT) Task Model

Branching, cycles (loops), ... Directed graph for each task

◮ Vertices J: jobs to be released (with WCET and deadline) ◮ Edges (Ji, Jj): minimum inter-release delays p(Ji, Jj)

J1 J2 J3 J4 J5

10 15 20 20 20 11 10

Theorem (S. et al., RTAS 2011)

For DRT task systems τ with a utilization bounded by any c < 1, feasibility can be decided in pseudo-polynomial time.

Martin Stigge Tractability of Digraph-Based Models 6

slide-11
SLIDE 11

The Digraph Real-Time (DRT) Task Model

Branching, cycles (loops), ... Directed graph for each task

◮ Vertices J: jobs to be released (with WCET and deadline) ◮ Edges (Ji, Jj): minimum inter-release delays p(Ji, Jj)

J1 J2 J3 J4 J5

10 15 20 20 20 11 10

Theorem (S. et al., RTAS 2011)

For DRT task systems τ with a utilization bounded by any c < 1, feasibility can be decided in pseudo-polynomial time.

Martin Stigge Tractability of Digraph-Based Models 6

slide-12
SLIDE 12

Hierarchy of Models

L&L GMF RRT DRT

periodic different job types branching branching, loops, . . .

[Liu et al., 1973] [Mok et al., 1999] [Baruah, 2003] [S. et al., 2011]

two integers cycle graph DAG arbitrary graph

Strongly (co)NP-hard Pseudo-Polynomial k-EDRT EDRT

efficient Feasibility test difficult low Expressiveness high

Martin Stigge Tractability of Digraph-Based Models 7

slide-13
SLIDE 13

Hierarchy of Models

L&L GMF RRT DRT

periodic different job types branching branching, loops, . . .

[Liu et al., 1973] [Mok et al., 1999] [Baruah, 2003] [S. et al., 2011]

two integers cycle graph DAG arbitrary graph

Strongly (co)NP-hard Pseudo-Polynomial k-EDRT EDRT

efficient Feasibility test difficult low Expressiveness high

Martin Stigge Tractability of Digraph-Based Models 7

slide-14
SLIDE 14

Extending DRT: Global Timing Constraints – This Work

Delays in DRT only for adjacent jobs What about adding global delay constraints?

J1 J2 J3

2 2 5

J1 J2 J3 J4 J5

5 2 2 3 7 2 2 9 6

Motivation:

◮ Mode sub-structures ◮ Burstiness ◮ ... Martin Stigge Tractability of Digraph-Based Models 8

slide-15
SLIDE 15

Extended DRT (EDRT) – This Work

Extends DRT with global delay constraints Directed graph for each task

◮ Vertices J: jobs to be released (with WCET and deadline) ◮ Edges (Ji, Jj): minimum inter-release delays p(Ji, Jj) ◮ k global constraints (Ji, Jj, γ)

J1 J2 J3 J4 J5

5 2 2 3 7 2 2 9 6

Theorem (Our technical result)

For k-EDRT task systems with bounded utilization, feasibility is

1

decidable in pseudo-polynomial time if k is constant, and

2

strongly coNP-hard in general.

Martin Stigge Tractability of Digraph-Based Models 9

slide-16
SLIDE 16

Extended DRT (EDRT) – This Work

Extends DRT with global delay constraints Directed graph for each task

◮ Vertices J: jobs to be released (with WCET and deadline) ◮ Edges (Ji, Jj): minimum inter-release delays p(Ji, Jj) ◮ k global constraints (Ji, Jj, γ)

J1 J2 J3 J4 J5

5 2 2 3 7 2 2 9 6

Theorem (Our technical result)

For k-EDRT task systems with bounded utilization, feasibility is

1

decidable in pseudo-polynomial time if k is constant, and

2

strongly coNP-hard in general.

Martin Stigge Tractability of Digraph-Based Models 9

slide-17
SLIDE 17

Hierarchy of Models

L&L GMF RRT DRT

periodic different job types branching branching, loops, . . .

[Liu et al., 1973] [Mok et al., 1999] [Baruah, 2003] [S. et al., 2011]

two integers cycle graph DAG arbitrary graph

Strongly (co)NP-hard Pseudo-Polynomial k-EDRT EDRT

efficient Feasibility test difficult low Expressiveness high

Martin Stigge Tractability of Digraph-Based Models 10

slide-18
SLIDE 18

Fahrplan

Martin Stigge Tractability of Digraph-Based Models 11

slide-19
SLIDE 19

Fahrplan

Martin Stigge Tractability of Digraph-Based Models 11

slide-20
SLIDE 20

Hardness for EDRT

Number of constraints now not constant Reduction from Hamiltonian Path Problem (strongly NP-hard)

J′

1

1, 6

T1

J1 1, 1 J2 1, 1 J3 1, 1 J4 1, 1 J5 1, 1 J6 1, 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12

T2

Martin Stigge Tractability of Digraph-Based Models 12

slide-21
SLIDE 21

Hardness for EDRT

Number of constraints now not constant Reduction from Hamiltonian Path Problem (strongly NP-hard)

J′

1

1, 6

T1

J1 1, 1 J2 1, 1 J3 1, 1 J4 1, 1 J5 1, 1 J6 1, 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12

T2

Martin Stigge Tractability of Digraph-Based Models 12

slide-22
SLIDE 22

Hardness for EDRT

Number of constraints now not constant Reduction from Hamiltonian Path Problem (strongly NP-hard)

J′

1

1, 6

T1

J1 1, 1 J2 1, 1 J3 1, 1 J4 1, 1 J5 1, 1 J6 1, 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12

T2

Martin Stigge Tractability of Digraph-Based Models 12

slide-23
SLIDE 23

Analysing k-EDRT: The Problem

Detour: Analyzing DRT

◮ Using demand bound functions ◮ Compute exec. demand and deadline for all paths in G(T)

J1 J3 J4 J5

2

J2

3 5 2 2 7 2 2, 2 1, 2 1, 2

Problem: Constraints ignored during path exploration

◮ 2, 4 is lacking constraint information ◮ ... about the active constraint Martin Stigge Tractability of Digraph-Based Models 13

slide-24
SLIDE 24

Analysing k-EDRT: The Problem

Detour: Analyzing DRT

◮ Using demand bound functions ◮ Compute exec. demand and deadline for all paths in G(T)

J1 J3 J2

3 5 2 2 7 2

J4 J5

2 2, 2 1, 2 1, 2

Demand pair: 2, 4

Problem: Constraints ignored during path exploration

◮ 2, 4 is lacking constraint information ◮ ... about the active constraint Martin Stigge Tractability of Digraph-Based Models 13

slide-25
SLIDE 25

Analysing k-EDRT: The Problem

Detour: Analyzing DRT

◮ Using demand bound functions ◮ Compute exec. demand and deadline for all paths in G(T)

J1 J3

5 2 2 7 2

J4 J5

2

J2

3 2, 2 1, 2 1, 2

Demand pair: 2, 4 New demand pair: 4, 7

Problem: Constraints ignored during path exploration

◮ 2, 4 is lacking constraint information ◮ ... about the active constraint Martin Stigge Tractability of Digraph-Based Models 13

slide-26
SLIDE 26

Analysing k-EDRT: The Problem

Detour: Analyzing DRT

◮ Using demand bound functions ◮ Compute exec. demand and deadline for all paths in G(T)

J1 J3

5 2 2 7 2

J4 J5

2

J2

3 2, 2 1, 2 1, 2

Demand pair: 2, 4 New demand pair: 4, 7

9 6

Problem: Constraints ignored during path exploration

◮ 2, 4 is lacking constraint information ◮ ... about the active constraint Martin Stigge Tractability of Digraph-Based Models 13

slide-27
SLIDE 27

Analysing k-EDRT: The Problem

Detour: Analyzing DRT

◮ Using demand bound functions ◮ Compute exec. demand and deadline for all paths in G(T)

J1 J3

5 2 2 7 2

J4 J5

2

J2

3 2, 2 1, 2 1, 2

Demand pair: 2, 4 New demand pair:

9 6

4, 7 4, 8

Problem: Constraints ignored during path exploration

◮ 2, 4 is lacking constraint information ◮ ... about the active constraint Martin Stigge Tractability of Digraph-Based Models 13

slide-28
SLIDE 28

Analysing k-EDRT: Solution

Translate k-EDRT into plain DRT

◮ Represent active constraints as countdowns ◮ Store countdown values in DRT vertices ◮ Preserve demand bound function

J1 J2 J3

2 2 5

1-EDRT task ❀ J1, 5 J2, 3

2

J3, 0

3

J2, 0

2

Translated DRT task

Optimizations: Efficient on-the-fly translation

Martin Stigge Tractability of Digraph-Based Models 14

slide-29
SLIDE 29

Analysing k-EDRT: Solution

Translate k-EDRT into plain DRT

◮ Represent active constraints as countdowns ◮ Store countdown values in DRT vertices ◮ Preserve demand bound function

J1 J2 J3

2 2 5

1-EDRT task ❀ J1, 5 J2, 3

2

J3, 0

3

J2, 0

2

Translated DRT task

Optimizations: Efficient on-the-fly translation

Martin Stigge Tractability of Digraph-Based Models 14

slide-30
SLIDE 30

Analysing k-EDRT: Solution

Translate k-EDRT into plain DRT

◮ Represent active constraints as countdowns ◮ Store countdown values in DRT vertices ◮ Preserve demand bound function

J1 J2 J3

2 2 5

1-EDRT task ❀ J1, 5 J2, 3

2

J3, 0

3

J2, 0

2

Translated DRT task

Optimizations: Efficient on-the-fly translation

Martin Stigge Tractability of Digraph-Based Models 14

slide-31
SLIDE 31

Analysing k-EDRT: Solution

Translate k-EDRT into plain DRT

◮ Represent active constraints as countdowns ◮ Store countdown values in DRT vertices ◮ Preserve demand bound function

J1 J2 J3

2 2 5

1-EDRT task ❀ J1, 5 J2, 3

2

J3, 0

3

J2, 0

2

Translated DRT task

Optimizations: Efficient on-the-fly translation

Martin Stigge Tractability of Digraph-Based Models 14

slide-32
SLIDE 32

Analysing k-EDRT: Solution

Translate k-EDRT into plain DRT

◮ Represent active constraints as countdowns ◮ Store countdown values in DRT vertices ◮ Preserve demand bound function

J1 J2 J3

2 2 5

1-EDRT task ❀ J1, 5 J2, 3

2

J3, 0

3

J2, 0

2

Translated DRT task

Optimizations: Efficient on-the-fly translation

Martin Stigge Tractability of Digraph-Based Models 14

slide-33
SLIDE 33

Summary and Outlook

Introduced Extension to DRT Task Model

◮ Global delay constraints

Establishes tractability borderline for feasibility test

◮ Constant number of constraints: tractable ◮ Unbounded number of constraints: intractable

Ongoing work:

◮ Global constraints for simpler models (RRT, GMF) ◮ Interaction with Resource Sharing Protocols

(cf. talk tomorrow)

L&L GMF RRT DRT k-EDRT EDRT

Martin Stigge Tractability of Digraph-Based Models 15

slide-34
SLIDE 34

Q & A Thanks!

Martin Stigge Tractability of Digraph-Based Models 16