17
IIS Progress Report 2015/10/12

IIS Progress Report 2015/10/12. Problem Revisit Given a set of virtual machines, each contains some virtual cores with resource requirements. Decides

Embed Size (px)

Citation preview

Page 1: IIS Progress Report 2015/10/12. Problem Revisit Given a set of virtual machines, each contains some virtual cores with resource requirements. Decides

IIS Progress Report2015/10/12

Page 2: IIS Progress Report 2015/10/12. Problem Revisit Given a set of virtual machines, each contains some virtual cores with resource requirements. Decides

Problem RevisitGiven a set of virtual machines,

each contains some virtual cores with resource requirements.

Decides the amount of time and execution order of these virtual cores on heterogeneous multi-cores, such that the power consumption is minimized while the resource requirement is satisfied.

Page 3: IIS Progress Report 2015/10/12. Problem Revisit Given a set of virtual machines, each contains some virtual cores with resource requirements. Decides

Model RevisitFor every time interval

◦Virtual core i with resource requirement vi.

◦Physical core j with frequency fj.

◦The power consumption of a core with given fj is linear to its load Lj.

Some constraints:◦vCPU can not run on two cores

simultaneously.◦A core cannot execute two vCPUs

simultaneously

Page 4: IIS Progress Report 2015/10/12. Problem Revisit Given a set of virtual machines, each contains some virtual cores with resource requirements. Decides

The Reviewer Said …Not practical.

◦The 3-phase solution we proposed is too complex.

◦The computation for generating a scheduling plan is to heavy. A scheduling plan per second.

Page 5: IIS Progress Report 2015/10/12. Problem Revisit Given a set of virtual machines, each contains some virtual cores with resource requirements. Decides

ImprovementInstead of general workload,

focus on scenarios that our model/solution is applicable.◦Less work load fluctuation. ◦Instead of generating scheduling

plan periodically, compute a new plan on workload changing.

Page 6: IIS Progress Report 2015/10/12. Problem Revisit Given a set of virtual machines, each contains some virtual cores with resource requirements. Decides

Target ScenarioStable workloads.

◦Computation-intensive◦Generate new scheduling plan

during (drastic) workload changing. Reduce overhead

◦Continuously ◦Medium amount of workload

Single (ARM) server

Virtualized environment◦Or not(?)

Page 7: IIS Progress Report 2015/10/12. Problem Revisit Given a set of virtual machines, each contains some virtual cores with resource requirements. Decides

Target Scenario(Cont.)Current target: streaming data

processing◦Continuous data input◦Pre-processing before storing or send

to the next stage Computation-intensive

◦Example: Monitoring data, such as smart

homes/building. VOD decoding on multi-user NAS …etc.

Page 8: IIS Progress Report 2015/10/12. Problem Revisit Given a set of virtual machines, each contains some virtual cores with resource requirements. Decides

Three-phases SolutionStill too complex.Since the new scenario does not

require responsiveness.◦Remove the concept of “time slot”,

therefore we don’t need the 2nd and 3rd phase.

Focus on the 1st phase.

Page 9: IIS Progress Report 2015/10/12. Problem Revisit Given a set of virtual machines, each contains some virtual cores with resource requirements. Decides

First-phase RevisitDecide the amount of time each

virtual core should run on the physical cores.◦Meet the requirement of each virtual

core.◦The frequencies of physical cores are

given.◦Can be solved using Linear/Integer

Programming.

Page 10: IIS Progress Report 2015/10/12. Problem Revisit Given a set of virtual machines, each contains some virtual cores with resource requirements. Decides

First-phase RevisitDecide the amount of time each

virtual core should run on the physical cores.◦Meet the requirement of each virtual

core.◦The frequencies of physical cores are

given.◦Can be solved using Linear/Integer

Programming.

Generate the allocation along with the core frequencies.

Page 11: IIS Progress Report 2015/10/12. Problem Revisit Given a set of virtual machines, each contains some virtual cores with resource requirements. Decides

The New ProblemGenerate the amount of time

each virtual core should run on the physical cores along with the core frequencies.◦Not sure if it is a NP-C problem, still

working on this.◦Notice that the constraints still hold.

The total time allocates to a virtual core must be less or equal to the length of a time interval. How to guarantee?

Page 12: IIS Progress Report 2015/10/12. Problem Revisit Given a set of virtual machines, each contains some virtual cores with resource requirements. Decides

ObservationGiven a vCPU with requirement

vi.◦The physical cores hosting this vCPU

must provide frequency fj where fj ≧ vi. Ex: vi = 1200M

1200M

800M

1600M

1200M

40%

60%

40%

70%

Page 13: IIS Progress Report 2015/10/12. Problem Revisit Given a set of virtual machines, each contains some virtual cores with resource requirements. Decides

Heuristic #1Given a set of virtual core with

resource requirement vi.Group two vCPUs with the smallest

vi into a new vCPU, where is v’i the sum of the two vCPU.

Repeat this process until the number of vCPU (group) is less or equal than the number of cores.

Decide the frequencies of cores according to v’i of each vCPU group.

Page 14: IIS Progress Report 2015/10/12. Problem Revisit Given a set of virtual machines, each contains some virtual cores with resource requirements. Decides

Heuristic #2B= {}, L = {vi}, i = 0, …, n-1Compute ∑ vi , ∑ Fj

◦Fj is the largest available frequency of an energy-efficient core.

while(∑ vi > ∑ Fj )remove the largest vi from L,

add to B

Page 15: IIS Progress Report 2015/10/12. Problem Revisit Given a set of virtual machines, each contains some virtual cores with resource requirements. Decides

Heuristic #2(Cont.)while(∑ vi > ∑ fj)

In crease the smallest fj by 1 level.◦// vi ∈ L, fj = max(vi) initially

Foreach vi ∈ L◦Start from the smallest vi, assign it to

the smallest fj with spare resource.

◦If(vi > sj) // sj : spare resource on core jassign (vi - sj) to core j+1, which is the second smallest core with spare resource.

Page 16: IIS Progress Report 2015/10/12. Problem Revisit Given a set of virtual machines, each contains some virtual cores with resource requirements. Decides

Example

900M 900M 900M 1800M

Page 17: IIS Progress Report 2015/10/12. Problem Revisit Given a set of virtual machines, each contains some virtual cores with resource requirements. Decides

Discussion