energy-efficient system virtualization for mobile and embedded systems

40
Energy-Efficient System Virtualization for Mobile and Embedded Systems Final Review 2014/01/21

Upload: vida

Post on 23-Mar-2016

34 views

Category:

Documents


1 download

DESCRIPTION

Energy-Efficient System Virtualization for Mobile and Embedded Systems. Final Review 2014/01/21. Outline. Project overview big-LITTLE core architecture Models Resource-Guided scheduling Experimental results Conclusion. Outline. Project overview big-LITTLE core architecture Models - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Energy-Efficient System Virtualization for Mobile and Embedded Systems

Energy-Efficient System Virtualization for Mobile and Embedded SystemsFinal Review2014/01/21

Page 2: Energy-Efficient System Virtualization for Mobile and Embedded Systems

OutlineProject overviewbig-LITTLE core architectureModelsResource-Guided scheduling

◦Experimental resultsConclusion

Page 3: Energy-Efficient System Virtualization for Mobile and Embedded Systems

OutlineProject overviewbig-LITTLE core architectureModelsResource-Guided scheduling

◦Experimental resultsConclusion

Page 4: Energy-Efficient System Virtualization for Mobile and Embedded Systems

What Have Been DoneThe first-half year

◦Energy-efficient task scheduling for per-core DVFS architecture Offline energy-efficient task scheduling Online energy-efficient task scheduling

The last-half year◦Energy-efficient task scheduling for

big-LITTLE core architecture

Page 5: Energy-Efficient System Virtualization for Mobile and Embedded Systems

Goal of Our big-LITTLE Aware SchedulingDerive an energy-efficient

scheduler for big-LITTLE core architecture◦Satisfies the resource requirement of

each task.◦Minimizes the average power

consumption.

Page 6: Energy-Efficient System Virtualization for Mobile and Embedded Systems

OutlineProject overviewbig-LITTLE core architectureModelsResource-Guided scheduling

◦Experimental resultsConclusion

Page 7: Energy-Efficient System Virtualization for Mobile and Embedded Systems

Big-LITTLE Core ArchitectureDeveloped by ARM in 2011.Combines two kinds of

architecturally compatible processors with different power and performance characteristics.

Three different types◦1st Cluster migration◦2nd CPU migration/In-Kernel Switcher◦3rd Heterogeneous Multi-

Processing(HMP)

Page 8: Energy-Efficient System Virtualization for Mobile and Embedded Systems

Type 1: Cluster Migration

Either big or LITTLE cores are used simultaneously.

Page 9: Energy-Efficient System Virtualization for Mobile and Embedded Systems

Type 2: CPU Migration

Logical CPU: a pair of big and LITTLE core.

Only one of the two cores in a pair is powered up and processing tasks at a time.

Page 10: Energy-Efficient System Virtualization for Mobile and Embedded Systems

Type 3: HMP

All the big and LITTLE cores can be used at the same time.

Page 11: Energy-Efficient System Virtualization for Mobile and Embedded Systems

OutlineProject overviewbig-LITTLE core architectureModelsResource-Guided scheduling

◦Experimental resultsConclusion

Page 12: Energy-Efficient System Virtualization for Mobile and Embedded Systems

Building the Power ModelMeasure the average power

consumption of big and LITTLE core using different core frequency under different CPU load.

Platform: ODROID-XU◦1st type, Cluster migration.◦Cortex™-A15 and Cortex™-A7.◦Per-cluster DVFS.

Page 13: Energy-Efficient System Virtualization for Mobile and Embedded Systems

Average Power Consumption

Page 14: Energy-Efficient System Virtualization for Mobile and Embedded Systems

Power ModelThe power consumption Pt of an

interval t is:

nb and nL: the number of big and little cores Pb

i,t and PLj,t : the power consumption of big core i

and little core j during time t. Eb

f and ELf : the power consumption of big and

little core with frequency f under load 100%. loadingn,t : the load of the n-th core in interval t.

tnLf

Ltn

tnbf

btn

n

j

Ltj

n

i

btit

loadingEP

loadingEP

PPPLb

,,

,,

1,

1,

Page 15: Energy-Efficient System Virtualization for Mobile and Embedded Systems

Task ModelFor every Taski in a scheduling

interval, we define:

◦loadingi :the percentage of time that task Ti is running on a core in a period of time.

◦CoreFreqi :the current frequency of the core cluster this task is running on.

iii loadingCoreFreqresource

Page 16: Energy-Efficient System Virtualization for Mobile and Embedded Systems

Task Model(Cont.)We also define the minimum

resource required for Taski as:

◦QoSFreqi :the minimum core frequency that can satisfies the QoS requirement of Taski.

◦QoSLoadingi :the CPU load of Taski while the core frequency is QoSFreqi.

iii QoSLoadingQoSFreqreqres _

Page 17: Energy-Efficient System Virtualization for Mobile and Embedded Systems

ObjectiveFind a scheduling plan for an

interval t according to task loadings, such that Pt is minimum while satisfying task resource requirements.◦Recall that

Lb n

j

Ltj

n

i

btit PPP

1,

1,

Page 18: Energy-Efficient System Virtualization for Mobile and Embedded Systems

OutlineProject overviewbig-LITTLE core architectureModelsResource-Guided scheduling

◦Experimental resultsConclusion

Page 19: Energy-Efficient System Virtualization for Mobile and Embedded Systems

Resource-Guided schedulingConsist of three phases:

◦TaskInfo phase◦LittleCore phase◦bigCore phase

Activates every scheduling interval, and makes decisions for the next interval.

Page 20: Energy-Efficient System Virtualization for Mobile and Embedded Systems

TaskInfo PhaseGathers the loading information

of each task.Collects the load and current

frequency of each core.

Page 21: Energy-Efficient System Virtualization for Mobile and Embedded Systems

LittleCore PhaseIf LITTLE core cluster is powered-

off, skip this phase.Compares resourcei of each Taski

in little core cluster with their res_reqi.◦If any task gets less resources than

its minimum requirement, adjusts core settings.

Page 22: Energy-Efficient System Virtualization for Mobile and Embedded Systems

Core AdjustmentFirst, try to provide more

resources to tasks by increasing LITTLE core frequency.

If increasing frequency cannot provide enough resources, add one LITTLE core.

Still, if add core cannot provide enough resources, migrate the task to big core cluster.

Page 23: Energy-Efficient System Virtualization for Mobile and Embedded Systems

bigCore PhaseIf big core cluster is powered-off,

skip this phase.Compares resourcei of each Taski

in big core cluster with their res_reqi.◦Similar to LittleCore phase, without

“migrate to bigger/powerful cores”.If every task requirements are

satisfied, try to migrate task back to LITTLE.◦By estimating if task requirements

can be satisfied in LITTLE cores.

Page 24: Energy-Efficient System Virtualization for Mobile and Embedded Systems

Flowchart

Page 25: Energy-Efficient System Virtualization for Mobile and Embedded Systems

OutlineProject overviewbig-LITTLE core architectureModelsResource-Guided scheduling

◦Experimental resultsConclusion

Page 26: Energy-Efficient System Virtualization for Mobile and Embedded Systems

PlatformPlatform: ODROID-XU

◦1st type, Cluster migration◦Cortex™-A15 and Cortex™-A7◦Per-cluster DVFS

Page 27: Energy-Efficient System Virtualization for Mobile and Embedded Systems

BenchmarkThree applications

◦TTpod: MP3 palyer◦Candy Crush: Game◦Chrome: Web browser

Benchmark QoS requirementTTpod Play music without interruptsCandy Crush At least 24 FPS during gameplayChrome Jump to next page within one second after clicking a link

Page 28: Energy-Efficient System Virtualization for Mobile and Embedded Systems

SimulationSimulate the execution of the

three applications separately, and measure their average power consumption on the three types of big-LITTLE core architectures.

Compare the average power consumption with Linaro’s strategies.

Page 29: Energy-Efficient System Virtualization for Mobile and Embedded Systems

Simulation Results

Linaro’s strategies increase core frequency while encountering high CPU load, and eventually uses the highest frequency of big core to run Candy Crush and Chrome.

Our method use LITTLE core for Candy Crush, and big core with lower frequency for Chrome, thus reduce power consumption while keeping the QoS.

Resource-Guided Scheduler LinaroModel I II III I II III

TTpod 0.019 0.019 0.019 0.019 0.019 0.019Candy Crush 0.371 0.371 0.371 1.49 1.49 1.49Chrome 0.916 0.916 0.916 1.88 1.73 1.73

Page 30: Energy-Efficient System Virtualization for Mobile and Embedded Systems

ExperimentExecute the three applications

together, and measure the average power consumption during execution.

Scenario◦ A user first starts TTpod to play some music. A

minute later, this user starts to play the game, Candy Crush, while keeping the music playing. After playing the game for three minutes, this user finishes the game and opens Chrome to search for a solution on how to conquer a certain stage of Candy Crush.

Page 31: Energy-Efficient System Virtualization for Mobile and Embedded Systems

Results – Linaro’s Strategy

Page 32: Energy-Efficient System Virtualization for Mobile and Embedded Systems

Results – Resource-Guided

Page 33: Energy-Efficient System Virtualization for Mobile and Embedded Systems

Experimental SummaryAverage power consumptions

◦Linaro’s strategy: 0.843 Watt◦Resource-guided: 0.089 Watt

The main reason is that some applications over-use resources.◦For example: Candy Crush ◦Linaro’s strategy is unaware of such

condition, thus keep increasing the core frequency.

Page 34: Energy-Efficient System Virtualization for Mobile and Embedded Systems

OutlineProject overviewbig-LITTLE core architectureModelsResource-Guided scheduling

◦Experimental resultsConclusion

Page 35: Energy-Efficient System Virtualization for Mobile and Embedded Systems

ConclusionBuild an energy-efficient scheduler for

big-LITTLE core architecture that satisfies the resource requirement of each task and minimizes the energy consumption.

Propose a scheduling policy which decides the resource use for the tasks in a dynamic fashion.

The experimental results demonstrate that compared to Linaro’s scheduling strategies, our resource-guided scheduling method is more power-efficient.

Page 36: Energy-Efficient System Virtualization for Mobile and Embedded Systems

Realizing Power-aware big-LITTLE scheduler on ICL Hypervisor2014/01/21

Page 37: Energy-Efficient System Virtualization for Mobile and Embedded Systems

Project GoalEnabling power-aware big-LITTLE

scheduler design on ICL Hypervisor

Target hardware platform◦ODROID-XU+"E" with power meter

Page 38: Energy-Efficient System Virtualization for Mobile and Embedded Systems

Further DetailsSchedule vCPU between host CPU.Hypervisor scheduler may not interfere

Guest OS process scheduler. Two conditions:

◦Guest OS has big-LITTLE-aware scheduler Hypervisor assign host CPU to guest according

to Guest OS requirements.◦Guest OS does not have big-LITTLE-aware

scheduler Hypervisor scheduler assign vCPU according to

guest condition.

Page 39: Energy-Efficient System Virtualization for Mobile and Embedded Systems

Preliminary ThoughtSchedules vCPU to host CPU.Guest OS should provide

information to hypervisor◦Information such as “x big and y

little” or “vCore 2 require at least z processing speed”.

◦What information can ICL hypervisor get from guest OS?

Page 40: Energy-Efficient System Virtualization for Mobile and Embedded Systems

VM IntrospectionSince our scheduler needs QoS

information from tasks, we need to know what applications a Guest OS is running.◦To maintain QoS and save energy.

Thus we need hypervisor to support VM introspection.