An Energy-aware Scheduling Algorithm in DVFS...

34
An Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers CLOSER 2016 - TEEC Session Mohammad Shojafar, Claudia Canali, Riccardo Lancellotti, and Saeid Abolfazli Department of Engineering Enzo Ferrari, University of Modena and Reggio Emilia, Modena, Italy April 24, 2016 1 of 34

Transcript of An Energy-aware Scheduling Algorithm in DVFS...

Page 1: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

An Energy-aware Scheduling Algorithm in DVFS-enabledNetworked Data CentersCLOSER 2016 - TEEC Session

Mohammad Shojafar, Claudia Canali, RiccardoLancellotti, and Saeid Abolfazli

Department of Engineering Enzo Ferrari, University of Modena andReggio Emilia, Modena, Italy

April 24, 2016

1 of 34

Page 2: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

Agenda

� Introduction� Problem in data centers� Our contribution

� Model� Model Architecture� Computing Model� Frequency Reconfiguration Model� Channel/Communication Model

� Optimization problem and solution

� Performance Evaluation

� Conclusion

2 of 34

Page 3: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

Introduction

� Cloud Data Centers: Energy-saving computing is critical

� Our focus is in the Virtualized Networked Data center (VNetDC)supporting cloud

� Qualifying point of our approach, we consider:� Traffic exchange in VNetDCs� Load balancing for incoming request� DVFS (multi-frequency CPUs) hardware technology

� QoS: processing time + communication time → challengingconstraint

3 of 34

Page 4: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

Introduction

Our solution addresses:

� Minimize the overall energy for the computing-plus-communicationresources in VNetDCs

� Guaranteeing the time limit of each task and bandwidth limitationof each server jointly by changing the reconfiguration capability

Detail:

� Dynamic load balancing

� Job = chunk of data to process

� Online job decompositions and scheduling

� Distribute the workload among multiple VMs

� Solve nonlinear/nonconvex optimization problem

4 of 34

Page 5: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

Model Architecture

Server 1Jo

b

VM 1

VNIC DVFS

Server i

VM i

VNIC DVFS

Server M

VM M

VNIC DVFS

CPU

fre

quency

Data

tra

nsm

issi

on r

ate

Networkswitch

&VMM

VNetDC

ClientsC

onfigu

rati

on

info

VLAN

5 of 34

Page 6: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

Model

Assumptions:

1) Physical servers with DVFS

2) Each server hosts one heterogeneous VM (private cloud scenario)

3) VNetDC comprises M independent congestion-free half-duplexchannels

4) A VM on server i is capable to process F (i) bits per second

5) No queue is considered for incoming/outgoing workload into/fromthe system

6) Data centers utilize off-the-shelf rackmount physical servers, whichare interconnected by commodity Fast/Giga Ethernet switches

7) Each job has size of Ltot

8) Maximum processing (computation and communication) time foreach job is T (QoS constraints)

6 of 34

Page 7: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

Optimization Problem

Goal: minimize the overall resulting communication-plus-computingenergy, formally defined as:

Etot ,M∑

i=1

ECPU(i) +M∑

i=1

EReconf (i) +M∑

i=1

Enet(i) [Joule], (1)

� ECPU(i): Computation energy for server i

� EReconf (i): Reconfiguration energy for server i

� Enet(i): Channel/Communication energy for server i

7 of 34

Page 8: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

Computing Model

VM(i) attributes:

{Q, f(i), t(i), f maxi ,T , i = 1, . . . ,M} , (2)

� Q: number of CPU frequencies allowed for each VM (plus an idlestate)

� f(i) = {Fj (i)| j = 0, . . . ,Q}: discrete frequency set in VM(i)–usingDVFS

� f maxi , FQ(i): maximum available frequency in VM(i)

� t(i) = {tj (i)| j = 0, . . . ,Q}: discrete time set in VM(i)corresponding to fj (i) in VM(i)

�∑Q

j=0 tj (i) ≤ T : time allowed the VM(i) to fully process eachsubmitted task, computation only constraint

8 of 34

Page 9: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

Computing Model

Fig. 2 illustrates an example for Q = 5.

f0=fidle

f1

f2

f3

f4

f5=fQ

fj(i)

t0(i) t1(i) t2(i) t3(i) t4(i) t5(i)

ECPU(i) ,Q∑

j=0

ACeff fj (i)3tj (i), [Joule], ∀i = {1, . . . ,M}, (3)

A: active percentage of gates;Ceff : effective load capacitance9 of 34

Page 10: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

Frequency Reconfiguration ModelFrequency policy: Scale up/down VMs’ processing rates at the mini-mum cost.We define internal switching cost and external switching costInternal switching cost: fj (i)→ fj+k (i) (k steps movement to reachthe next active discrete frequency)External switching cost: the cost for external-switching from the finalactive discrete frequency of VM(i) at the end of a job to the first activediscrete frequency for the next incoming job of size Ltot

M∑i=1

EReconf (i) , ke

M∑i=1

K∑k=0

(∆fk (i))2 + Ext Cost (4)

ke (J/(Hz)2):an unit-size frequency switching∆fk (i) , fk+1(i)− fk (i)Ext Cost , ke M(f t

Q − f t−10 )2

10 of 34

Page 11: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

Channel/Communication Model

Shannon-Hartley exponential formula

Pnet(i) = ζi

(2R(i)/Wi − 1

)+ Pidle(i), [Watt], (5)

� ζi ,N (i)

0 Wi

gi, i = 1, . . . ,M–noise spectral power density

� N (i)0 (W /Hz)

� Wi (Hz) Transmission bandwidth� R(i): Transmission rate over link i� gi : gain of the i-th link

i) One-way transmission delay: D(i) =Q∑

j=1Fj (i)tj (i)/R(i)

ii) max1≤i≤M{2D(i)}+ T ≤ T . (Minimize the slowest VM)

Enet(i) , Pnet(i)

( Q∑j=1

Fj (i)tj (i)

R(i)

)[Joule]. (6)

11 of 34

Page 12: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

Optimization problem and solution

minM∑

i=1

ECPU (i) +M∑

i=1

EReconf (i) +M∑

i=1

Enet(i) (7.1)

s.t.:M∑

i=1

Q∑j=0

Fj (i)tj (i) = Ltot , (7.2)

M∑i=1

R(i) ≤ Rt , (7.3)

Q∑j=0

tj (i) ≤ T , i = 1, . . . ,M, (7.4)

Q∑j=0

2Fj (i)tj (i)

R(i)≤ T − T , i = 1, . . . ,M, (7.5)

0 ≤ tj (i) ≤ T , 0 ≤ R(i) ≤ Rt , i = 1, . . . ,M, j = 0, . . . ,Q, (7.6)

(7.7)12 of 34

Page 13: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

Optimization problem and solution

(6.1) Eq. (7.1) is the objective function which consists of the sum ofthree terms which accounts for the computing energy, thereconfiguration energy cost is the networking energy

(6.2) Eq. (7.2) is the (global) constraint which guarantees that theoverall job is decomposed into M parallel tasks Fj (i)tj (i) is theworkload processed for each discrete frequency fj which isprocessed by VM i during the interval tj (i)

(6.3) Eq. (7.3) ensures that the bandwidth summation of each VM mustbe less than the maximum available bandwidth of the globalnetwork

(6.4) Eq. (7.4) is the constraint on computation time

(6.5) Eq. (7.5) guarantees that the duration of each computing intervalis no negative and less than T

13 of 34

Page 14: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

Optimization problem and solution

1) We can simplify communication part as:

M∑i=1

Q∑j=0

2Pnet(i)

(Fj (i)tj (i)

R(i)

)= (T − T )

M∑i=1

Q∑j=0

Pnet(i)

(2Fj (i)tj (i)

T − T

).

(8)

2) The problem feasibility:

M∑i=1

Q∑j=0

Fj (i)tj (i) ≤ Rt(T − T )/2 (9)

M∑i=1

Q∑j=0

Fj (i)tj (i) ≤M∑

i=1

Tf maxi . (10)

14 of 34

Page 15: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

Performance Evaluation-Simulation setup

i) Comparison with� Standard (or Real) available DVFS-enabled technique (Kimura et al.,

2006),� Lyapunov (Urgaonkar et al., 2010)� IDEAL no-DVFS (Mathew et al., 2012) and NetDC (Cordeschi et al.,

2010) [Theoretical Lower bounds]

ii) CVX solver (Grant and Boyd, 2015) + MATLAB

iii) Three different scenarios: two synthetic workloads and areal-world workload trace

iv) Ltot : [Ltot − a, Ltot + a]

15 of 34

Page 16: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

Performance Evaluation-Simulation setup

Significant parameters and sensevity analysis:

� E tot , 1Max slot

∑Max sloti=1

∑Mi=1 Etot(i)

� ECPU , 1Max slot

∑Max sloti=1

∑Mi=1 ECPU(i)

� EReconf , 1Max slot

∑Max sloti=1

∑Mi=1 EReconf (i)

� Enet, 1

Max slot

∑Max sloti=1

∑Mi=1 Enet(i)

� ke , ζ

� T , T (QoS parameters)

� AET= average execution time

16 of 34

Page 17: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

First Scenario

Ltot ≡ 8 [Gbit] a = 2 [Gbit]DVFS: Intel Nehalem Quad-core Processor (Kimura et al., 2006) calledF1 = {0.15, 1.867, 2.133, 2.533, 2.668}

Table: Default values of the main system parameters for the first testscenario.

Parameter Value Parameter Value

PE=M [1, . . . , 10] T 7 [s]

T 5 [s] Rt 100 [Gbit/s]

Ceff 1 [µF ] ke 0.05 [Joule/(GHz)2]

F F1 [GHz ] Q 5

A 100% P idlei 0.5 [Watt]

ζi 0.5 [mWatt] f maxi 2.668 [GHz ]

17 of 34

Page 18: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

Second Scenario

Ltot ≡ 70 [Gbit] a = 10 [Gbit]DVFS: Crusoe cluster with TM-5800 CPU in (Almeida et al., 2010),e.g., F2 = {0.300, 0.533, 0.667, 0.800, 0.933}

Table: Default values of the main system parameters for the second testscenario.

Parameter Valueke 0.005 [Joule/(GHz)2]

Q 5

F F2 [GHz ]

Ltot 70 [Mbit]

M {20, 30, 40}f maxi 0.933 [GHz ]

18 of 34

Page 19: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

E tot-vs.-M� ↑ M ∝ E tot ↓� The average energy-saving of the proposed method is

approximately 50% and 60% compared to Lyapunov-basedand Standard schedulers, respectively

1 2 3 4 5 6 7 8 9 100

100

200

300

400

M

Etot[Jou

le]

IDEAL Standard NetDC Lyapunov Proposed Method

19 of 34

Page 20: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

ECPU-vs.-M� ↑ M ∝ ECPU ↓� The average energy-saving of the proposed method is

approximately 25% and 33% compared to Lyapunov-basedand Standard schedulers, respectively

1 2 3 4 5 6 7 8 9 100

20

40

60

80

100

M

ECPU[Jou

le]

IDEAL Standard NetDC Lyapunov Proposed Method

20 of 34

Page 21: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

EReconf -vs.-M

� ↑ M ∝ EReconf ↑ � ECPU or Enet

1 2 3 4 5 6 7 8 9 1010

−6

10−4

10−2

100

102

EReconf[Jou

le]

M

IDEAL Standard NetDC Lyapunov Proposed Method

21 of 34

Page 22: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

Enet-vs.-M� ↑ M ∝ Enet ↓� The proposed scheduler is about 10%, 50%, 65% better than

NetDC, Lyapunov, and Standard schedulers, respectively

1 2 3 4 5 6 7 8 9 100

100

200

300

400

M

Enet

[Jou

le]

IDEAL Standard NetDC Lyapunov Proposed Method

22 of 34

Page 23: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

E tot-vs.-M� ↑ M ∝ E tot ↓� ↑ ke ∝ EReconf ↑ ∝ E tot ↑

2 4 6 8 1045

50

55

60

65

70

75

M

Etot[Joule]

F1, ke = 0.005F1, ke = 0.05

23 of 34

Page 24: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

E tot-vs.-M-Second Scenario� ↑ M ∝ E tot ↓� The energy reduction of proposed method compared to

Standard and Lyapunov is about 20% and 15%,respectively

20 30 400

50

100

150

200

250

300

350

400

M

Etot[Joule]

IDEAL

NetDC

Standard

Lyapunov

Proposed Method

24 of 34

Page 25: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

Average execution time (AET) per-job� Workload ↑ ∝ AET ↓ per-job: proposed scheduler being able toadapt itself to the incoming traffic using optimization technique(see (7.1)), with a consequent reduction in the AET per job

� M ↑ ∝ AET ↓

0 20 40 60 80 1000.2

0.4

0.6

0.8

1

1.2

1.4

Workload

AET

[s]

M = 2M = 10

25 of 34

Page 26: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

Third Scenario- Real traces� Real-world workload trace (Urgaonkar et al., 2007)

0 10 20 30 40 50 602

4

6

8

10

12

14

16

Slot index

Num

ber

of arr

ivals

per

slo

t

26 of 34

Page 27: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

Third Scenario- Real traces� Average energy reduction of the proposed scheduler with

NetDC, Lyapunov and Standard is 19%, 85%, and 82%,respectively.

27 of 34

Page 28: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

Performance Evaluation-achievements

According to the simulations we understand:

+ The scheduler is a scalable and adaptive. It can save energy andmeet QoS demands better than alternatives

+ Our scheduler outperforms Lyapunov, because Lyapunov is unableto manage the online/instantaneous job fluctuations which ishandled in our approach

+ Our scheduler outperforms NetDC and IDEAL no-DVFStechniques, because these methods work with the continue rangesof frequencies, which is unrealistic and not feasible in real scenarios

- Our method needs some estimations for applying in the real system(open issue)

28 of 34

Page 29: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

Conclusion

1. We propose a novel scheduler to:� Minimize the overall energy for the computing-plus-communication

resources in VNetDCs� Guaranteeing the time limit of each task, bandwidth limitation of each

server by changing the reconfiguration capability

2. Our proposed scheduler manages online workloads, andinter-switching costs among active discrete frequencies for eachVM

3. Our method is able to approach the IDEAL algorithm significantlyfaster than Lyapunov, Standard and NetDC models, respectively

4. Future research: The energy saving using workload estimatingand management of WAN TCP/IP mobile connections

29 of 34

Page 30: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

Thanks for the attention andready for the questions!!!

30 of 34

Page 31: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

Performance Evaluation-Scenario 2Total average consumed energy for 20, 30, and 40 VMs and high volume ofincoming jobs with respect to Rt (maximum network data transfer rate) andthe communication coefficient ζ in order to evaluate the energy consumptionof the proposed method while facing various SLA ranges:

20 30 40100

200

300

400

M

Etot[Joule]

T = 5

Rt = 100, ζi = 0.5Rt = 10, ζi = 0.5

Figure: E tot-vs.-M-vs.-Rt31 of 34

Page 32: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

E tot-vs.-M-Second Scenario� ↑ M ∝ E tot ↓� ↑ T ∝ (ECPU , E tot) ↓� ↑ ζ ∝ (Enet

, E tot) ↑� The scheduler can save energy depending on the assigned

communication boundary

Figure: E tot-vs.-M-vs.-T -vs.-ζ

32 of 34

Page 33: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

Problem Solution-detailProof: Let R(i)∗ be the optimal solution of the eq. (7.1), and let

C ,(−−−−−−→Fj (i)t

j (i))∈ (R+

0 )M :

Q∑j=0

Fj (i)tj (i)/R(i)∗

(−−−−−−→Fj (i)t

j (i)) ≤

(T − T )/2, i = {1, . . . ,M}, j = {0, . . . ,Q};M∑

i=1

Q∑j=0

R(i)∗(−−−−−−→Fj (i)t

j (i)

)≤ Rt

Q∑j=0

2Fj (i)tj (i)

R(i)≤ T − T →

Q∑j=0

Fj (i)tj (i)

R(i)

≤ (T − T )

2. (11)

Q∑j=0

2Fj (i)tj (i)

R(i)≤ T − T → R(i) ≥

Q∑j=0

(2Fj (i)t

j (i)

T − T

). (12)

33 of 34

Page 34: An Energy-aware Scheduling Algorithm in DVFS …web.ing.unimo.it/sammclouds/slides/shojafar-closer2016.pdfAn Energy-aware Scheduling Algorithm in DVFS-enabled Networked Data Centers

Why Shanon for channel model?

i) The theoretical relation of the transmission rate R(i) and power ofthe channel for each server is more critical, so, we use one of themost complex relations to evaluate

ii) We already used easier model (linear or quadratic model) and theresults are more appealing

iii) This model uses for the inside of data center on a physical wiredconnections

34 of 34