Energy-efficient scheduling on volatile platforms Guillaume Aupy - - PowerPoint PPT Presentation

energy efficient scheduling on volatile platforms
SMART_READER_LITE
LIVE PREVIEW

Energy-efficient scheduling on volatile platforms Guillaume Aupy - - PowerPoint PPT Presentation

Energy-efficient scheduling on volatile platforms Guillaume Aupy based on a work with Anne Benoit Energy, Energy: a crucial issue Reliability, Makespan G. Aupy Introduction Data centers Model 330 , 000 , 000 , 000 Watts hour in


slide-1
SLIDE 1

Energy-efficient scheduling

  • n volatile platforms

Guillaume Aupy

based on a work with Anne Benoit

slide-2
SLIDE 2

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

1.0

Energy: a crucial issue

  • Data centers
  • 330, 000, 000, 000 Watts hour in 2007: more than France
  • 533, 000, 000 tons of CO2: in the top ten countries
  • Exascale computers (1018 floating operations per second)
  • Need effort for feasibility
  • 1% of power saved 1 million dollar per year
  • Lambda user
  • 1 billion personal computers
  • 500, 000, 000, 000, 000 Watts hour per year
  • crucial for both environmental and economical reasons
slide-3
SLIDE 3

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

1.0

Energy: a crucial issue

  • Data centers
  • 330, 000, 000, 000 Watts hour in 2007: more than France
  • 533, 000, 000 tons of CO2: in the top ten countries
  • Exascale computers (1018 floating operations per second)
  • Need effort for feasibility
  • 1% of power saved 1 million dollar per year
  • Lambda user
  • 1 billion personal computers
  • 500, 000, 000, 000, 000 Watts hour per year
  • crucial for both environmental and economical reasons
slide-4
SLIDE 4

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

2.0

1 Model

Reliability Makespan Energy

2 Approximation for linear chains

Intractability FPTAS

3 Approximation for independent tasks

Inapproximability Approximation

4 Conclusion

slide-5
SLIDE 5

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

3.0

1 Model

Reliability Makespan Energy

2 Approximation for linear chains

Intractability FPTAS

3 Approximation for independent tasks

Inapproximability Approximation

4 Conclusion

slide-6
SLIDE 6

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

4.0

Architecture

p identical processors. Speed Scaling: one can modify the execution speed f of any task, f ∈ [fmin, fmax].

slide-7
SLIDE 7

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

5.0

Into details

Let Ti of weight wi executed on processor pj: time

pj

· · · · · · Exe(wi, fi) fi

slide-8
SLIDE 8

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

5.0

Into details

Let Ti of weight wi executed on processor pj: time

pj

· · · · · · Exe(wi, fi) fi

slide-9
SLIDE 9

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

6.0

Hypothesis

In this model, we further suppose that there is a speed frel, such that, for any Ti executed at speed fi: If fi < frel then we need to execute Ti a second time.

slide-10
SLIDE 10

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

6.0

Hypothesis

In this model, we further suppose that there is a speed frel, such that, for any Ti executed at speed fi: If fi < frel then we need to execute Ti a second time. How come?

slide-11
SLIDE 11

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

7.0

Reliability

Transient failure = local failure (no impact on the system, the processor impacted can restart to work immediately after the failure) The rate of transient failures follow a Poisson Law of parameter: λ(f ) = λ0ed

fmax−f fmax−fmin

The reliability of Ti executed at speed fi: Ri(fi) = e−λ(fi)Exe(wi,fi) ≈ 1 − λ(fi)Exe(wi, fi)

slide-12
SLIDE 12

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

7.0

Reliability

fi Ri(fi)

slide-13
SLIDE 13

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

7.0

Reliability

fi Ri(fi) frel Ri(frel)

slide-14
SLIDE 14

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

7.0

Reliability

fi Ri(fi) frel Ri(frel)

slide-15
SLIDE 15

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

7.0

Reliability

The reliability of Ti executed at speed fi: Ri(fi) = e−λ(fi)Exe(wi,fi) ≈ 1 − λ(fi)Exe(wi, fi)

Reliability for two executions

Ri = 1 − (1 − Ri(f (1)

i

))(1 − Ri(f (2)

i

))

slide-16
SLIDE 16

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

7.0

Reliability

The reliability of Ti executed at speed fi: Ri(fi) = e−λ(fi)Exe(wi,fi) ≈ 1 − λ(fi)Exe(wi, fi)

Reliability for two executions

Ri = 1 − (1 − Ri(f (1)

i

))(1 − Ri(f (2)

i

)) 1 − (1 − Ri(fmin))2 ≥ Ri(frel) ֒ → Let’s suppose that two execution are enough to match the reliability constraint.

slide-17
SLIDE 17

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

8.0

Makespan

The execution time for Ti at speed fi is: Exe(wi, fi) = wi fi If we call ti the end of the last execution of Ti: time

p1 p2 T (1)

i

f (1)

i T (2)

i

f (2)

i

ti

slide-18
SLIDE 18

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

8.0

Makespan

The execution time for Ti at speed fi is: Exe(wi, fi) = wi fi If we call ti the end of the last execution of Ti: time

p1 p2 T (1)

i

f (1)

i T (2)

i

f (2)

i

ti

slide-19
SLIDE 19

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

8.0

Makespan

Constraint on the makespan:

We ask ∀i, ti ≤ D (the deadline D is fixed by the user)

slide-20
SLIDE 20

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

9.0

Why should we decrease the speed then?

  • Loss in reliability
  • Loss on the makespan
slide-21
SLIDE 21

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

10.0

Energy

The execution of task Ti at speed fi: Ei(fi) = Exe(wi, fi)f 3

i = wif 2 i

→ (Dynamic part of the classical energy model)

Energy consumption with two executions:

Ei = wi

  • f (1)

i

2 + wi

  • f (2)

i

2

slide-22
SLIDE 22

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

10.0

Energy

The execution of task Ti at speed fi: Ei(fi) = Exe(wi, fi)f 3

i = wif 2 i

→ (Dynamic part of the classical energy model)

Energy consumption with two executions:

Ei = wi

  • f (1)

i

2 + wi

  • f (2)

i

2

slide-23
SLIDE 23

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

10.0

Energy

fi Ei(fi) frel Ei(frel)

slide-24
SLIDE 24

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

10.0

Energy

fi Ei(fi)

wif 2

i + wif 2 i = 2Ei(fi)

frel Ei(frel)

slide-25
SLIDE 25

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

10.0

Energy

fi Ei(fi)

wif 2

i + wif 2 i = 2Ei(fi)

frel Ei(frel)

frel √ 2

slide-26
SLIDE 26

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

10.0

Energy

fi Ei(fi)

wif 2

i + wif 2 i = 2Ei(fi)

frel Ei(frel)

frel √ 2

slide-27
SLIDE 27

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

11.0

To sum up

We need to find for each task:

  • the number of execution (one or two)
  • the speed of those executions
  • the mapping (processor) of those executions

In order to minimize the energy consumption under the constraints:

  • ∀i, ti ≤ D (bounded makespan)
  • ∀i, fi ≥ frel or the task needs to be executed twice

(minimum reliability)

slide-28
SLIDE 28

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

12.0

1 Model

Reliability Makespan Energy

2 Approximation for linear chains

Intractability FPTAS

3 Approximation for independent tasks

Inapproximability Approximation

4 Conclusion

slide-29
SLIDE 29

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

13.0

A chain of tasks

Let n tasks T1, . . . , Tn of weight w1, . . . , wn with the constraint that for all i, Ti should be executed before Ti+1 time

p1 T1 T2 T3 T4 T5

slide-30
SLIDE 30

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

13.0

A chain of tasks

Let n tasks T1, . . . , Tn of weight w1, . . . , wn with the constraint that for all i, Ti should be executed before Ti+1 time

p1 T1 T2 T3 T4 T5

We focus here on the case p = 1

slide-31
SLIDE 31

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

14.0

Lemma (Without re-execution (folklore))

Let S = wi. The optimal solution without re-execution is to execute all tasks at speed max(frel, S

D ).

Lemma (Speeds of re-executions)

If a task is executed twice, then both execution are at the same speed.

slide-32
SLIDE 32

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

15.0

Lemma (Speed of the tasks executed once)

D

T1 T2 T3 T4 T5

slide-33
SLIDE 33

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

15.0

Lemma (Speed of the tasks executed once)

D

T1 T2 T3 T4 T5

frel

slide-34
SLIDE 34

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

15.0

Lemma (Speed of the tasks executed once)

D

T1 T2 T3 T4

frel

T (1)

5

T (2)

5

slide-35
SLIDE 35

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

15.0

Lemma (Speed of the tasks executed once)

D

T1 T2 T3 T4

frel

T (1)

5

T (2)

5

slide-36
SLIDE 36

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

15.0

Lemma (Speed of the tasks executed once)

D

T1 T2 T3 T4 T5

slide-37
SLIDE 37

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

15.0

Lemma (Speed of the tasks executed once)

D

T1 T2 T3 T4 T (1)

5

T (2)

5

slide-38
SLIDE 38

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

15.0

Lemma (Speed of the tasks executed once)

D

T1 T2 T3 T4

f > frel

T (1)

5

T (2)

5

slide-39
SLIDE 39

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

15.0

Lemma (Speed of the tasks executed once)

D

T1 T2 T3 T4

f > frel

T (1)

5

T (2)

5

slide-40
SLIDE 40

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

15.0

Lemma (Speed of the tasks executed once)

The speed of the tasks executed once should be frel (whenever it is possible).

slide-41
SLIDE 41

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

16.0

Intractability

We have seen:

  • the tasks executed once, should be at speed frel;
  • the tasks executed twice are executed at the same speed.

We show the intractability by reducing this issue to the matter

  • f selecting the tasks that should be executed twice.
slide-42
SLIDE 42

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

16.0

Intractability

⇐ ⇒

slide-43
SLIDE 43

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

16.0

Intractability

Actually, the set of tasks that should be executed twice caracterize the solution:

  • the set X of tasks executed once are executed at frel;
  • the set {T1, . . . , Tn} \ X is executed by taking as much

time as possible.

slide-44
SLIDE 44

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

16.0

Intractability

We reduce this problem using Subset-Sum Subset-Sum Let {a1, . . . , an}, X. Does there exist a subset I of {1, . . . , n} such that

i∈I ai = X?

slide-45
SLIDE 45

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

16.0

Intractability

We reduce this problem using Subset-Sum We simply need to call:                ∀i, wi = ai frel = fmax D0 =

S frel + X c frel

E0 = 2X 2c 1 + c frel 2 + (S − X) f 2

rel

where c = 4

  • 2

7 cos 1 3(π − tan−1 1 √ 7) − 1 and the result follows

slide-46
SLIDE 46

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

16.0

Intractability

We reduce this problem using Subset-Sum We simply need to call:                ∀i, wi = ai frel = fmax D0 =

S frel + X c frel

E0 = 2X 2c 1 + c frel 2 + (S − X) f 2

rel

where c = 4

  • 2

7 cos 1 3(π − tan−1 1 √ 7) − 1 and the result follows

c is the only positive root

  • f the polynomial 7y3 + 21y2 − 3y − 1
slide-47
SLIDE 47

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

17.0

Quick reminder

Approximation Algorithm: an algorithm such that the result is guaranteed to be “not too far” from the optimal solution. Formally A is a λ-approximation if ∀I, Opt(I) ≤ A(I) ≤ λ · Opt(I) FPTAS: is a family of (1 + ε)-approximation algorithms for any ε > 0, that runs in polynomial time in the size of the problem and in 1

ε.

slide-48
SLIDE 48

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

17.0

Quick reminder

Approximation Algorithm: an algorithm such that the result is guaranteed to be “not too far” from the optimal solution. Formally A is a λ-approximation if ∀I, Opt(I) ≤ A(I) ≤ λ · Opt(I) FPTAS: is a family of (1 + ε)-approximation algorithms for any ε > 0, that runs in polynomial time in the size of the problem and in 1

ε.

slide-49
SLIDE 49

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

18.0

FPTAS for the chain problem

Reminder:

⇐ ⇒

slide-50
SLIDE 50

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

18.0

FPTAS for the chain problem

We are looking for the set I of tasks to execute twice. What we know:

  • i∈I wi

E

XD ED

We know how to compute ED, a lower bound on the energy, however we do not know where E0 the actual optimal solution is.

slide-51
SLIDE 51

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

18.0

FPTAS for the chain problem

We are looking for the set I of tasks to execute twice. What we know:

  • i∈I wi

E

XD ED X0 E0

We know how to compute ED, a lower bound on the energy, however we do not know where E0 the actual optimal solution is.

slide-52
SLIDE 52

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

18.0

FPTAS for the chain problem

We are looking for the set I of tasks to execute twice. What we know:

  • i∈I wi

E

XD ED X0 E0

We know how to compute ED, a lower bound on the energy, however we do not know where E0 the actual optimal solution is.

slide-53
SLIDE 53

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

18.0

FPTAS for the chain problem

Using an algorithm very similar to the FPTAS to solve SubsetSum, called on the value XD, we show that we can find a subset of tasks Ia satisfying

  • i∈Ia

wi = Xa ≤ X0 ≤ Xa(1 + ε)

slide-54
SLIDE 54

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

18.0

FPTAS for the chain problem

Then we show that Ea ≤ (1 + 28ε)E0

slide-55
SLIDE 55

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

19.0

p ≥ 2

When p ≥ 2, we obtain the same results using a similar technique.

slide-56
SLIDE 56

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

20.0

1 Model

Reliability Makespan Energy

2 Approximation for linear chains

Intractability FPTAS

3 Approximation for independent tasks

Inapproximability Approximation

4 Conclusion

slide-57
SLIDE 57

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

21.0

Independent tasks

Let n tasks T1, . . . , Tn of weight w1, . . . , wn. Let us assume that there are no precedence constraints between the tasks.

slide-58
SLIDE 58

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

22.0

Intractability

With one processor we can reduce this problem to the chain

  • problem. This problem is then NP-complete.
slide-59
SLIDE 59

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

23.0

Inapproximation

Theorem

There does not exist any approximation algorithm that runs in polynomial time for this problem, unless P=NP.

slide-60
SLIDE 60

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

23.0

Inapproximation

Theorem

There does not exist any approximation algorithm that runs in polynomial time for this problem, unless P=NP.

  • p processors
  • fmin = frel = fmax = 1

Then, any solution is the optimal solution! Finding an approximation algorithm for the energy problem is equivalent to solving (P||Cmax)

slide-61
SLIDE 61

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

24.0

Relaxation

We now assume that we can relax the makespan constraint.

slide-62
SLIDE 62

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

24.0

Relaxation

We now assume that we can relax the makespan constraint. An (α, β)-approximation is such that, if Eopt is the minimum energy for the problem under a maximal makespan of D,

  • Ealgo ≤ α × Eopt (Ealgo is the energy of our algorithm)
  • Talgo ≤ β × D (Talgo is the makespan of our algorithm)
slide-63
SLIDE 63

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

24.0

Relaxation

We now assume that we can relax the makespan constraint.

Theorem

There exist

  • 1 + 1

β2 , β

  • approximation algorithms, for all

β ≥ max

  • 2 −

3 2p+1, 2 − p+2 4p+2

  • .
slide-64
SLIDE 64

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

25.0

p1 D p2 p3 p4 p5 p6 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11

  • 1. At first we sort the tasks by increasing order.
slide-65
SLIDE 65

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

25.0

p1 D w1 p2 p3 p4 p5 p6 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11

  • 2. The “big” tasks are scheduled on one processor each
slide-66
SLIDE 66

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

25.0

p1 D w1 p2 w2 p3 p4 p5 p6 w3 w4 w5 w6 w7 w8 w9 w10 w11

  • 2. The “big” tasks are scheduled on one processor each
slide-67
SLIDE 67

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

25.0

p1 w1 p2 w2 peq

1

D 2D 3D 4D w3 w4 w5 w6 w7 w8 w9 w10 w11

  • 3. We create a virtual processor, “equivalent” to the

remaining processors.

slide-68
SLIDE 68

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

25.0

p1 w1 p2 w2 peq

1

w3 D 2D 3D 4D w4 w5 w6 w7 w8 w9 w10 w11

  • 4. We apply the FPTAS for linear chains on this processor...
slide-69
SLIDE 69

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

25.0

p1 w1 p2 w2 peq

1

w3 w4 D 2D 3D 4D w5 w6 w7 w8 w9 w10 w11

  • 4. We apply the FPTAS for linear chains on this processor...
slide-70
SLIDE 70

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

25.0

p1 w1 p2 w2 peq

1

w3 w4 w5 D 2D 3D 4D w6 w7 w8 w9 w10 w11

  • 4. We apply the FPTAS for linear chains on this processor...
slide-71
SLIDE 71

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

25.0

p1 w1 p2 w2 peq

1

w3 w4 w5 w6 D 2D 3D 4D w7 w8 w9 w10 w11

  • 4. We apply the FPTAS for linear chains on this processor...
slide-72
SLIDE 72

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

25.0

p1 w1 p2 w2 peq

1

w3 w4 w5 w6 w7 D 2D 3D 4D w8 w9 w10 w11

  • 4. We apply the FPTAS for linear chains on this processor...
slide-73
SLIDE 73

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

25.0

p1 w1 p2 w2 peq

1

w3 w4 w5 w6 w7 w10 D 2D 3D 4D w8 w9 w11

  • 4. We apply the FPTAS for linear chains on this processor...
slide-74
SLIDE 74

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

25.0

p1 w1 p2 w2 peq

1

w3 w4 w5 w6 w7 w10 w11 D 2D 3D 4D w8 w9

  • 4. We apply the FPTAS for linear chains on this processor...
slide-75
SLIDE 75

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

25.0

p1 w1 p2 w2 peq

1

w3 w4 w5 w6 w7 w10 w11 w(1)

8

w(2)

8

D 2D 3D 4D w9

  • 4. We apply the FPTAS for linear chains on this processor...
slide-76
SLIDE 76

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

25.0

p1 w1 p2 w2 peq

1

w3 w4 w5 w6 w7 w10 w11 w(1)

8

w(2)

8

w(1)

9

w(2)

9

D 2D 3D 4D

  • 4. We apply the FPTAS for linear chains on this processor...

... which gives us a set of “new” tasks.

slide-77
SLIDE 77

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

25.0

p1 D βD w1 p2 w2 p3 w3 w(2)

9

w10 p4 w4 w(1)

9

w11 p5 w(1)

8

w5 p6 w(2)

8

w6 w7

  • 5. Finally, we sort greedily the “new” tasks on the remaining

processors.

slide-78
SLIDE 78

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

26.0

1 Model

Reliability Makespan Energy

2 Approximation for linear chains

Intractability FPTAS

3 Approximation for independent tasks

Inapproximability Approximation

4 Conclusion

slide-79
SLIDE 79

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

27.0

Conclusion

What we did:

  • FPTAS for linear chains;
  • Inapproximability for independent tasks;
  • With a relaxation on the makespan constraint, we can

approximate this result (we can improve it for large p to a (1 + Θ( 1

p), 2 − Θ( 1 p))-approximation).

slide-80
SLIDE 80

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

27.0

Conclusion

Next,

  • General graphs (we can start by forks, trees etc);
  • Other reliability models (global reliability, checkpoints...).
slide-81
SLIDE 81

Energy, Reliability, Makespan

  • G. Aupy

Introduction Model

Reliability Makespan Energy

Approximation for linear chains

Intractability FPTAS

Approximation for independent tasks

Inapproximability Approximation

Conclusion

What we had: What we aim at: Energy-efficient scheduling + frequency scaling