Scheduling multi-task applications on heterogeneous platforms Anne - - PowerPoint PPT Presentation

scheduling multi task applications on heterogeneous
SMART_READER_LITE
LIVE PREVIEW

Scheduling multi-task applications on heterogeneous platforms Anne - - PowerPoint PPT Presentation

Framework Theoretical study Experiments Conclusion Scheduling multi-task applications on heterogeneous platforms Anne Benoit, Jean-Fran cois Pineau, Yves Robert and Fr ed eric Vivien Laboratoire de lInformatique du Parall


slide-1
SLIDE 1

Framework Theoretical study Experiments Conclusion

Scheduling multi-task applications

  • n heterogeneous platforms

Anne Benoit, Jean-Fran¸ cois Pineau, Yves Robert and Fr´ ed´ eric Vivien

Laboratoire de l’Informatique du Parall´ elisme ´ Ecole Normale Sup´ erieure de Lyon, France Jean-Francois.Pineau@ens-lyon.fr http://graal.ens-lyon.fr/∼jfpineau

GDT GRAAL July 5, 2007

1/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-2
SLIDE 2

Framework Theoretical study Experiments Conclusion

Outline

1

Framework

2

Theoretical study Steady state scheduling Off-line study Extension

3

Experiments

4

Conclusion

2/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-3
SLIDE 3

Framework Theoretical study Experiments Conclusion

Bag-of-tasks Applications

Bag of tasks described by: the number of tasks the amount of computation of a task the amount of communication of a task their release date On-line scheduling.

3/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-4
SLIDE 4

Framework Theoretical study Experiments Conclusion

Bag-of-tasks Applications

Bag of tasks described by: the number of independent tasks the amount of computation of a task the amount of communication of a task their release date On-line scheduling.

3/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-5
SLIDE 5

Framework Theoretical study Experiments Conclusion

Bag-of-tasks Applications

Bag of tasks described by: the number of independent, identical tasks the amount of computation of a task the amount of communication of a task their release date On-line scheduling.

3/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-6
SLIDE 6

Framework Theoretical study Experiments Conclusion

Bag-of-tasks Applications

Bag of tasks described by: the number of independent, identical tasks the amount of computation of a task the amount of communication of a task their release date On-line scheduling.

3/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-7
SLIDE 7

Framework Theoretical study Experiments Conclusion

Platform model

Links Network Slaves

  • Master

Tasks

4/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-8
SLIDE 8

Framework Theoretical study Experiments Conclusion

Master-slaves platform

The master Receive the bags of tasks Send the tasks to the processors Bounded multi-port model The processors Parallels

Identical Uniform

Related

5/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-9
SLIDE 9

Framework Theoretical study Experiments Conclusion

Master-slaves platform

The master Receive the bags of tasks Send the tasks to the processors Bounded multi-port model The processors Parallels

Identical Uniform

Related

5/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-10
SLIDE 10

Framework Theoretical study Experiments Conclusion

Notations

Tasks n bags-of-tasks applications Ak Ai is composed of Π(i) tasks. w(i): amount of computation of a task of Ai δ(i): amount of communication of a task of Ai r(i): release date of Ai C(i): completion time of Ai

6/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-11
SLIDE 11

Framework Theoretical study Experiments Conclusion

Notations

Platform p processors, B: bound of the multi-port model. bu: bandwidth of the link between the master and Pu, su: computational speed of worker Pu,

6/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-12
SLIDE 12

Framework Theoretical study Experiments Conclusion

Notations

Platform p processors, B: bound of the multi-port model. bu: bandwidth of the link between the master and Pu, s(k)

u : computational speed of related worker Pu

with tasks of Ak,

6/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-13
SLIDE 13

Framework Theoretical study Experiments Conclusion

Objective

Scheduling the tasks to the processors in order to process this tasks according to the constraints,

  • f the processors
  • f the tasks
  • ptimizing an objective function

7/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-14
SLIDE 14

Framework Theoretical study Experiments Conclusion

Objective function

Objective function Makespan max C(i) or C(max)

8/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-15
SLIDE 15

Framework Theoretical study Experiments Conclusion

Objective function

Objective function Makespan max C(i) or C(max) Problem of satisfaction of the clients

8/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-16
SLIDE 16

Framework Theoretical study Experiments Conclusion

Objective function

Objective function Makespan Sum flow

  • {C(i) − r(i)}

8/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-17
SLIDE 17

Framework Theoretical study Experiments Conclusion

Objective function

Objective function Makespan Sum flow

  • {C(i) − r(i)}

Problem of starvation

8/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-18
SLIDE 18

Framework Theoretical study Experiments Conclusion

Objective function

Objective function Makespan Sum flow Max flow max {C(i) − r(i)}

8/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-19
SLIDE 19

Framework Theoretical study Experiments Conclusion

Objective function

Objective function Makespan Sum flow Max flow max {C(i) − r(i)} Small applications can wait a long time

8/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-20
SLIDE 20

Framework Theoretical study Experiments Conclusion

Objective function

Objective function Makespan Sum flow Max flow Max Stretch max C(i) − r(i) Size of Ai

8/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-21
SLIDE 21

Framework Theoretical study Experiments Conclusion

Objective function

Objective function Makespan Sum flow Max flow Max Stretch max C(i) − r(i) Size of Ai Size of Ai = Π(i) ?

8/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-22
SLIDE 22

Framework Theoretical study Experiments Conclusion

Objective function

Objective function Makespan Sum flow Max flow Max Stretch max C(i) − r(i) Size of Ai Size of Ai = w(i) ?

8/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-23
SLIDE 23

Framework Theoretical study Experiments Conclusion

Objective function

Objective function Makespan Sum flow Max flow Max Stretch max C(i) − r(i) Size of Ai Size of Ai = Π(i) ∗ w(i) ?

8/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-24
SLIDE 24

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Outline

1

Framework

2

Theoretical study Steady state scheduling Off-line study Extension

3

Experiments

4

Conclusion

9/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-25
SLIDE 25

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Simple problem

Problem Unique bag-of-tasks A0 Large Π(0)

10/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-26
SLIDE 26

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Simple problem

Problem Unique bag-of-tasks A0 Large Π(0) Objective Minimizing the makespan

10/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-27
SLIDE 27

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Simple problem

Problem Unique bag-of-tasks A0 Large Π(0) Objective Minimizing the makespan Maximizing the throughput

10/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-28
SLIDE 28

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Simple problem

Problem Unique bag-of-tasks A0 Large Π(0) Objective Minimizing the makespan Maximizing the throughput Throughput of worker Pu: ρ∗(0)

u

Total throughput ρ∗(0) =

p

  • u=1

ρ∗(0)

u

10/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-29
SLIDE 29

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Linear program

                         Maximize ρ∗(0) =

p

  • u=1

ρ∗(0)

u

subject to ρ∗(0)

u w(0) s(0)

u

≤ 1 ρ∗(0)

u δ(0) bu

≤ 1

p

  • u=1

ρ∗(0)

u

δ(0) B ≤ 1 (1) Rational solution

11/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-30
SLIDE 30

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Linear program

                         Maximize ρ∗(0) =

p

  • u=1

ρ∗(0)

u

subject to ρ∗(0)

u w(0) s(0)

u

≤ 1 ρ∗(0)

u δ(0) bu

≤ 1

p

  • u=1

ρ∗(0)

u

δ(0) B ≤ 1 (1) Rational solution

11/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-31
SLIDE 31

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Feasible schedule

Resource selection (ρ∗(0)

u

= 0) Master sends tasks to workers using the 1D-load balancing algorithm: the first worker to receive a task is the one with largest throughput each participating worker Pu has already received nu tasks, the next worker to receive a task is chosen as the one minimizing nu + 1 ρ∗(0)

u

12/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-32
SLIDE 32

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Feasible schedule

Resource selection (ρ∗(0)

u

= 0) Master sends tasks to workers using the 1D-load balancing algorithm: the first worker to receive a task is the one with largest throughput each participating worker Pu has already received nu tasks, the next worker to receive a task is chosen as the one minimizing nu + 1 ρ∗(0)

u

12/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-33
SLIDE 33

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Feasible schedule

Resource selection (ρ∗(0)

u

= 0) Master sends tasks to workers using the 1D-load balancing algorithm: the first worker to receive a task is the one with largest throughput each participating worker Pu has already received nu tasks, the next worker to receive a task is chosen as the one minimizing nu + 1 ρ∗(0)

u

12/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-34
SLIDE 34

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Feasible schedule

Resource selection (ρ∗(0)

u

= 0) Master sends tasks to workers using the 1D-load balancing algorithm: the first worker to receive a task is the one with largest throughput each participating worker Pu has already received nu tasks, the next worker to receive a task is chosen as the one minimizing nu + 1 ρ∗(0)

u

12/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-35
SLIDE 35

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Back on multi-applications problem

Approximation of the best execution time: MS∗(k) = Π(k) ρ∗(k) . Real execution time: C(k) = r(k) + MS(k) In general: MS(k) ≥ MS∗(k)

13/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-36
SLIDE 36

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Back on multi-applications problem

Approximation of the best execution time: MS∗(k) = Π(k) ρ∗(k) . Real execution time: C(k) = r(k) + MS(k) In general: MS(k) ≥ MS∗(k)

13/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-37
SLIDE 37

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Back on multi-applications problem

Approximation of the best execution time: MS∗(k) = Π(k) ρ∗(k) . Real execution time: C(k) = r(k) + MS(k) In general: MS(k) ≥ MS∗(k)

13/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-38
SLIDE 38

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Stretch

Stretch: Sk = MS(k) MS∗(k) Throughput ρ(k) defined by: MS(k) = Π(k) ρ(k) . Objective: max-stretch: S = max

1≤k≤n Sk

14/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-39
SLIDE 39

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Stretch

Stretch: Sk = MS(k) MS∗(k) = ρ∗(k) ρ(k) Throughput ρ(k) defined by: MS(k) = Π(k) ρ(k) . Objective: max-stretch: S = max

1≤k≤n Sk

14/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-40
SLIDE 40

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Stretch

Stretch: Sk = MS(k) MS∗(k) = ρ∗(k) ρ(k) Throughput ρ(k) defined by: MS(k) = Π(k) ρ(k) . Objective: max-stretch: S = max

1≤k≤n Sk

14/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-41
SLIDE 41

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Outline

1

Framework

2

Theoretical study Steady state scheduling Off-line study Extension

3

Experiments

4

Conclusion

15/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-42
SLIDE 42

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Off-line

Computing all the MS∗(k), ∀ 1 ≤ k ≤ n Binary search on the max-stretch For each candidate value S

′, we know that:

∀ 1 ≤ k ≤ n, MS(k) MS∗(k) ≤ S

∀ 1 ≤ k ≤ n, C(k) = r(k) + MS(k) ≤ r(k) + S

′ × MS∗(k) 16/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-43
SLIDE 43

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Off-line

Computing all the MS∗(k), ∀ 1 ≤ k ≤ n Binary search on the max-stretch For each candidate value S

′, we know that:

∀ 1 ≤ k ≤ n, MS(k) MS∗(k) ≤ S

∀ 1 ≤ k ≤ n, C(k) = r(k) + MS(k) ≤ r(k) + S

′ × MS∗(k) 16/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-44
SLIDE 44

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Off-line

Computing all the MS∗(k), ∀ 1 ≤ k ≤ n Binary search on the max-stretch For each candidate value S

′, we know that:

∀ 1 ≤ k ≤ n, MS(k) MS∗(k) ≤ S

∀ 1 ≤ k ≤ n, C(k) = r(k) + MS(k) ≤ r(k) + S

′ × MS∗(k) 16/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-45
SLIDE 45

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Off-line

Computing all the MS∗(k), ∀ 1 ≤ k ≤ n Binary search on the max-stretch For each candidate value S

′, we know that:

∀ 1 ≤ k ≤ n, MS(k) MS∗(k) ≤ S

∀ 1 ≤ k ≤ n, C(k) = r(k) + MS(k) ≤ r(k) + S

′ × MS∗(k) 16/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-46
SLIDE 46

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Deadlines

We set: d(k) = r(k) + S

′ × MS∗(k)

(2) Definition: Epochal times t(j) ∈ {r(1), ..., r(n)} ∪ {d(1), ..., d(n)} , such that t(j) ≤ t(j+1), 1 ≤ j ≤ 2n − 1 Divide the total execution time into intervals whose bounds are epochal times.

17/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-47
SLIDE 47

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Deadlines

We set: d(k) = r(k) + S

′ × MS∗(k)

(2) Definition: Epochal times t(j) ∈ {r(1), ..., r(n)} ∪ {d(1), ..., d(n)} , such that t(j) ≤ t(j+1), 1 ≤ j ≤ 2n − 1 Divide the total execution time into intervals whose bounds are epochal times.

17/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-48
SLIDE 48

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Deadlines

We set: d(k) = r(k) + S

′ × MS∗(k)

(2) Definition: Epochal times t(j) ∈ {r(1), ..., r(n)} ∪ {d(1), ..., d(n)} , such that t(j) ≤ t(j+1), 1 ≤ j ≤ 2n − 1 Divide the total execution time into intervals whose bounds are epochal times.

17/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-49
SLIDE 49

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Intervals

run each application Ak during its whole execution window [r(k), d(k)], use a different throughput on each interval [t(j), t(j+1)], r(k) ≤ t(j) and t(j+1) ≤ d(k). Notation: ρ(k)

u (j): throughput achieved by Ak during interval

[t(j), t(j+1)] on processor Pu ρ(k)(j): global throughput of Ak during this period.

18/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-50
SLIDE 50

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Intervals

run each application Ak during its whole execution window [r(k), d(k)], use a different throughput on each interval [t(j), t(j+1)], r(k) ≤ t(j) and t(j+1) ≤ d(k). Notation: ρ(k)

u (j): throughput achieved by Ak during interval

[t(j), t(j+1)] on processor Pu ρ(k)(j): global throughput of Ak during this period.

18/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-51
SLIDE 51

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Intervals

run each application Ak during its whole execution window [r(k), d(k)], use a different throughput on each interval [t(j), t(j+1)], r(k) ≤ t(j) and t(j+1) ≤ d(k). Notation: ρ(k)

u (j): throughput achieved by Ak during interval

[t(j), t(j+1)] on processor Pu ρ(k)(j): global throughput of Ak during this period.

18/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-52
SLIDE 52

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Intervals

run each application Ak during its whole execution window [r(k), d(k)], use a different throughput on each interval [t(j), t(j+1)], r(k) ≤ t(j) and t(j+1) ≤ d(k). Notation: ρ(k)

u (j): throughput achieved by Ak during interval

[t(j), t(j+1)] on processor Pu ρ(k)(j): global throughput of Ak during this period.

18/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-53
SLIDE 53

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Linear program

                                               ∀ 1 ≤ k ≤ n,

  • [t(j), t(j+1)]

t(j) ≥ r(k) t(j+1) ≤ d(k)

ρ(k)(j) × (t(j+1) − t(j)) = Π(k) ∀ 1 ≤ k ≤ n, ∀ 1 ≤ j ≤ 2n − 1, ρ(k)(j) =

p

  • u=1

ρ(k)

u (j)

∀ 1 ≤ j ≤ 2n − 1, ∀ 1 ≤ u ≤ p,

n

  • k=1

ρ(k)

u (j)w(k)

s(k)

u

≤ 1 ∀ 1 ≤ j ≤ 2n − 1, ∀ 1 ≤ u ≤ p,

n

  • k=1

ρ(k)

u (j)δ(k)

bu ≤ 1 ∀ 1 ≤ j ≤ 2n − 1,

p

  • u=1

n

  • k=1

ρ(k)

u (j)δ(k)

B ≤ 1 (3)

19/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-54
SLIDE 54

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Algorithm

Algorithm Computing all the MS∗(k), ∀ 1 ≤ k ≤ n Binary search on the max-stretch For each candidate stretch

compute the t(j) resolve the linear program

Theorem The previous scheduling algorithm finds the optimal max-stretch in polynomial time.

20/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-55
SLIDE 55

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Algorithm

Algorithm Computing all the MS∗(k), ∀ 1 ≤ k ≤ n Binary search on the max-stretch For each candidate stretch

compute the t(j) resolve the linear program

Theorem The previous scheduling algorithm finds the optimal max-stretch in polynomial time.

20/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-56
SLIDE 56

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Proof (1/3)

Part 1 A given max-stretch S

′ is achievable if and only if the linear

program has a solution Consider an arbitrary solution that achieves S

′.

nb(j, k, u) = number of tasks for Ak on Pu during the interval [t(j), t(j+1)], Averaged throughput: ρ(k)

u (j) = nb(j, k, u)

t(j+1) − t(j) , ρ(k)(j) =

p

  • u=1

ρ(k)

u (j).

21/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-57
SLIDE 57

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Proof (1/3)

Part 1 A given max-stretch S

′ is achievable if and only if the linear

program has a solution Consider an arbitrary solution that achieves S

′.

nb(j, k, u) = number of tasks for Ak on Pu during the interval [t(j), t(j+1)], Averaged throughput: ρ(k)

u (j) = nb(j, k, u)

t(j+1) − t(j) , ρ(k)(j) =

p

  • u=1

ρ(k)

u (j).

21/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-58
SLIDE 58

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Proof (1/3)

Part 1 A given max-stretch S

′ is achievable if and only if the linear

program has a solution Consider an arbitrary solution that achieves S

′.

nb(j, k, u) = number of tasks for Ak on Pu during the interval [t(j), t(j+1)], Averaged throughput: ρ(k)

u (j) = nb(j, k, u)

t(j+1) − t(j) , ρ(k)(j) =

p

  • u=1

ρ(k)

u (j).

21/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-59
SLIDE 59

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Proof (1/3)

Part 1 A given max-stretch S

′ is achievable if and only if the linear

program has a solution Consider an arbitrary solution that achieves S

′.

nb(j, k, u) = number of tasks for Ak on Pu during the interval [t(j), t(j+1)], Averaged throughput: ρ(k)

u (j) = nb(j, k, u)

t(j+1) − t(j) , ρ(k)(j) =

p

  • u=1

ρ(k)

u (j).

21/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-60
SLIDE 60

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Proof (1/3)

Part 1 A given max-stretch S

′ is achievable if and only if the linear

program has a solution {ρ(k)

u (j), ρ(k)(j)} are a valid solution of the linear program:

21/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-61
SLIDE 61

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Proof (1/3)

Part 1 A given max-stretch S

′ is achievable if and only if the linear

program has a solution The first equation is satisfied:

  • [t(j), t(j+1)]

t(j) ≥ r(k) t(j+1) ≤ d(k)

ρ(k)(j) × (t(j+1) − t(j)) =

  • [t(j), t(j+1)]

t(j) ≥ r(k) t(j+1) ≤ d(k) p

  • u=1

ρ(k)

u (j) × (t(j+1) − t(j))

21/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-62
SLIDE 62

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Proof (1/3)

Part 1 A given max-stretch S

′ is achievable if and only if the linear

program has a solution The first equation is satisfied:

  • [t(j), t(j+1)]

t(j) ≥ r(k) t(j+1) ≤ d(k)

ρ(k)(j) × (t(j+1) − t(j)) =

  • [t(j), t(j+1)]

t(j) ≥ r(k) t(j+1) ≤ d(k)

nb(j, k, u)

21/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-63
SLIDE 63

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Proof (1/3)

Part 1 A given max-stretch S

′ is achievable if and only if the linear

program has a solution The first equation is satisfied:

  • [t(j), t(j+1)]

t(j) ≥ r(k) t(j+1) ≤ d(k)

ρ(k)(j) × (t(j+1) − t(j)) = Π(k)

21/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-64
SLIDE 64

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Proof (1/3)

Part 1 A given max-stretch S

′ is achievable if and only if the linear

program has a solution The second equation is satisfied by definition.

21/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-65
SLIDE 65

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Proof (1/3)

Part 1 A given max-stretch S

′ is achievable if and only if the linear

program has a solution The third equation is satisfied:

n

  • k=1

ρ(k)

u (j)w(k)

s(k)

u

=

n

  • k=1

nb(j, k, u) t(j+1) − t(j) · w(k) s(k)

u

But we have

n

  • k=1

nb(j, k, u)w(k) s(k)

u

≤ t(j+1) − t(j)

21/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-66
SLIDE 66

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Proof (1/3)

Part 1 A given max-stretch S

′ is achievable if and only if the linear

program has a solution The third equation is satisfied:

n

  • k=1

ρ(k)

u (j)w(k)

s(k)

u

=

n

  • k=1

nb(j, k, u) t(j+1) − t(j) · w(k) s(k)

u

But we have

n

  • k=1

nb(j, k, u)w(k) s(k)

u

≤ t(j+1) − t(j)

21/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-67
SLIDE 67

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Proof (1/3)

Part 1 A given max-stretch S

′ is achievable if and only if the linear

program has a solution The fourth and fifth equations are satisfied as well. Intuitively, the result comes from the linearity of linear programs!

21/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-68
SLIDE 68

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Proof (2/3)

Part 2 The linear program can be solved in polynomial time. 2n − 1 intervals, so O(n2 + np) equations linear program over rational numbers, in theory using the ellipsoid method, in practice using standard software packages (glpk).

22/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-69
SLIDE 69

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Proof (2/3)

Part 2 The linear program can be solved in polynomial time. 2n − 1 intervals, so O(n2 + np) equations linear program over rational numbers, in theory using the ellipsoid method, in practice using standard software packages (glpk).

22/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-70
SLIDE 70

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Proof (2/3)

Part 2 The linear program can be solved in polynomial time. 2n − 1 intervals, so O(n2 + np) equations linear program over rational numbers, in theory using the ellipsoid method, in practice using standard software packages (glpk).

22/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-71
SLIDE 71

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Proof (2/3)

Part 2 The linear program can be solved in polynomial time. 2n − 1 intervals, so O(n2 + np) equations linear program over rational numbers, in theory using the ellipsoid method, in practice using standard software packages (glpk).

22/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-72
SLIDE 72

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Proof (3/3)

Part 3 The binary search needs polynomial number of iterations.

23/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-73
SLIDE 73

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Proof (3/3)

Part 3 The binary search needs polynomial number of iterations. S1, S2 : given max-stretch ∀S

′ ∈ [S1, S2], the order of the t(i) does not change

t(i) ← t(i)(S

′) 23/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-74
SLIDE 74

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Proof (3/3)

Part 3 The binary search needs polynomial number of iterations. S1, S2 : given max-stretch ∀S

′ ∈ [S1, S2], the order of the t(i) does not change

t(i) ← t(i)(S

′) 23/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-75
SLIDE 75

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Proof (3/3)

Part 3 The binary search needs polynomial number of iterations. S1, S2 : given max-stretch ∀S

′ ∈ [S1, S2], the order of the t(i) does not change

t(i) ← t(i)(S

′) 23/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-76
SLIDE 76

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Proof (3/3)

Part 3 The binary search needs polynomial number of iterations. New linear program:                          Minimize S

subject to S1 ≤ S

′ ≤ S2

∀ 1 ≤ k ≤ n,

  • [t(j)(S

′), t(j+1)(S ′)]

t(j)(S

′) ≥ r(k)

t(j+1)(S

′) ≤ d(k)(S ′)

ρ(k)(j) × (t(j+1)(S

′) − t(j)(S ′)) = Π(k)

... (4)

23/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-77
SLIDE 77

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Proof (3/3)

Part 3 The binary search needs polynomial number of iterations. The modified linear program has a solution if and only if a max-stretch S

′ ∈ [S1, S2] is achievable.

At most n(n − 1) stretch intervals

23/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-78
SLIDE 78

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Proof (3/3)

Part 3 The binary search needs polynomial number of iterations. The modified linear program has a solution if and only if a max-stretch S

′ ∈ [S1, S2] is achievable.

At most n(n − 1) stretch intervals

23/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-79
SLIDE 79

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Outline

1

Framework

2

Theoretical study Steady state scheduling Off-line study Extension

3

Experiments

4

Conclusion

24/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-80
SLIDE 80

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

On-line

Off-line algorithm at each release dates: For each application Ak , count the number of tasks (if any) that have been executed update Π(k) update MS∗(k) determine the new optimal stretch that can be achieved as in the off-line case

25/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-81
SLIDE 81

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

On-line

Off-line algorithm at each release dates: For each application Ak , count the number of tasks (if any) that have been executed update Π(k) update MS∗(k) determine the new optimal stretch that can be achieved as in the off-line case

25/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-82
SLIDE 82

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

On-line

Off-line algorithm at each release dates: For each application Ak , count the number of tasks (if any) that have been executed update Π(k) update MS∗(k) determine the new optimal stretch that can be achieved as in the off-line case

25/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-83
SLIDE 83

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

On-line

Off-line algorithm at each release dates: For each application Ak , count the number of tasks (if any) that have been executed update Π(k) update MS∗(k) determine the new optimal stretch that can be achieved as in the off-line case

25/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-84
SLIDE 84

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Extension

Multi-level trees Resource constraints unchanged conservation law stating that for each application Ak for each internal node One-port model : previous constraint:

p

  • u=1

n

  • k=1

ρ(k)

u

δ(k) B ≤ 1 Mixed-implementation of the two previous models Return messages : for each application Ak δ(k) ← δ(k) + return(k)

26/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-85
SLIDE 85

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Extension

Multi-level trees Resource constraints unchanged conservation law stating that for each application Ak for each internal node One-port model : previous constraint:

p

  • u=1

n

  • k=1

ρ(k)

u

δ(k) B ≤ 1 Mixed-implementation of the two previous models Return messages : for each application Ak δ(k) ← δ(k) + return(k)

26/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-86
SLIDE 86

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Extension

Multi-level trees Resource constraints unchanged conservation law stating that for each application Ak for each internal node One-port model : previous constraint:

p

  • u=1

n

  • k=1

ρ(k)

u

δ(k) B ≤ 1 Mixed-implementation of the two previous models Return messages : for each application Ak δ(k) ← δ(k) + return(k)

26/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-87
SLIDE 87

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Extension

Multi-level trees Resource constraints unchanged conservation law stating that for each application Ak for each internal node One-port model : new constraint:

p

  • u=1

n

  • k=1

ρ(k)

u

δ(k) bu ≤ 1. Mixed-implementation of the two previous models Return messages : for each application Ak δ(k) ← δ(k) + return(k)

26/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-88
SLIDE 88

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Extension

Multi-level trees Resource constraints unchanged conservation law stating that for each application Ak for each internal node One-port model : new constraint:

p

  • u=1

n

  • k=1

ρ(k)

u

δ(k) bu ≤ 1. Mixed-implementation of the two previous models Return messages : for each application Ak δ(k) ← δ(k) + return(k)

26/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-89
SLIDE 89

Framework Theoretical study Experiments Conclusion Steady state scheduling Off-line study Extension

Extension

Multi-level trees Resource constraints unchanged conservation law stating that for each application Ak for each internal node One-port model : new constraint:

p

  • u=1

n

  • k=1

ρ(k)

u

δ(k) bu ≤ 1. Mixed-implementation of the two previous models Return messages : for each application Ak δ(k) ← δ(k) + return(k)

26/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-90
SLIDE 90

Framework Theoretical study Experiments Conclusion

Outline

1

Framework

2

Theoretical study Steady state scheduling Off-line study Extension

3

Experiments

4

Conclusion

27/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-91
SLIDE 91

Framework Theoretical study Experiments Conclusion

The platform

Hardware Computers of the GDSDMI cluster: 8 SuperMicro servers 5013-GM, with processors P4 2.4 GHz; 5 SuperMicro servers 6013PI, with processors P4 Xeon 2.4 GHz; 7 SuperMicro servers 5013SI, with processors P4 Xeon 2.6 GHz; 7 SuperMicro servers IDE250W, with processors P4 2.8 GHz. 100Mbps Fast-Ethernet switch

28/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-92
SLIDE 92

Framework Theoretical study Experiments Conclusion

The tasks

Software MPI communications Modification of slave parameters Tasks Computation of matrices product The linear programs are solved using glpk.

29/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-93
SLIDE 93

Framework Theoretical study Experiments Conclusion

The studied algorithms

FIFO + Round-Robin FIFO + MCT S(R)PT + MCT S(R)PT + Demand-Driven Steady-state MWMA (Master Worker Multi-applications) on each time interval CBSSSM (Clever Burst Steady-State Stretch Minimizing)

30/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-94
SLIDE 94

Framework Theoretical study Experiments Conclusion

Results

31/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-95
SLIDE 95

Framework Theoretical study Experiments Conclusion

Results

Eh wait! You don’t have any result yet !!

31/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-96
SLIDE 96

Framework Theoretical study Experiments Conclusion

Outline

1

Framework

2

Theoretical study Steady state scheduling Off-line study Extension

3

Experiments

4

Conclusion

32/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-97
SLIDE 97

Framework Theoretical study Experiments Conclusion

Conclusion

Key points:

Realistic platform model Optimal off-line algorithm On-line algorithm

33/33 Jean-Fran¸ cois Pineau Bag of tasks

slide-98
SLIDE 98

Framework Theoretical study Experiments Conclusion

Conclusion

Key points:

Realistic platform model Optimal off-line algorithm On-line algorithm

Extensions:

Have some experimental results Consider other objective functions

33/33 Jean-Fran¸ cois Pineau Bag of tasks