Presentation is loading. Please wait.

Presentation is loading. Please wait.

An Energy-Efficient Hypervisor Scheduler for Asymmetric Multi- core 1 Ching-Chi Lin Institute of Information Science, Academia Sinica Department of Computer.

Similar presentations


Presentation on theme: "An Energy-Efficient Hypervisor Scheduler for Asymmetric Multi- core 1 Ching-Chi Lin Institute of Information Science, Academia Sinica Department of Computer."— Presentation transcript:

1 An Energy-Efficient Hypervisor Scheduler for Asymmetric Multi- core 1 Ching-Chi Lin Institute of Information Science, Academia Sinica Department of Computer Science and Information Engineering, National Taiwan University You-Cheng Syu, Pangfeng Liu Department of Computer Science and Information Engineering, National Taiwan University Graduate Institute of Networking and Multimedia, Nation Taiwan University Chao-Jui Chang, Jan-Jan Wu Institute of Information Science, Academia Sinica Research Center for Information Technology Innovation, Academia Sinica Po-Wen Cheng, Wei-Te Hsu Information and Communications Research Laboratories, Industrial Technology Research Institute

2 Agenda Introduction Virtual Core Scheduling Problem Simulation Conclusion

3 Background Asymmetric multi-core architecture. ◦ Consists of cores with different capabilities.  ARM: big.LITTLE architecture.  Qualcomm: asynchronous Symmetrical Multi- Processing (aSMP)  Nvidia: variable Symmetric Multiprocessing (vSMP)  …etc. ◦ Aim to achieve both performance and energy- efficient.  CPU-intensive v.s. non-CPU-intensive 3

4 Motivation Different scheduling goals between homogenous and asymmetric multi-core platforms. ◦ Homogeneous multi-core: load-balancing.  Distributes workloads evenly to obtain maximum performance. ◦ Asymmetric multi-core: maximize power efficiency with modest performance sacrifices. 4

5 Hypervisor Scheduler Assigns the virtual cores to physical cores for execution. ◦ Determines the execution order and amount of time assigned to each virtual core according to a scheduling policy. ◦ Current solutions  Xen - credit-based scheduler  KVM - completely fair scheduler 5

6 OS Kernel GUEST2 Scheduler VCPU OS Kernel GUEST2 Scheduler VCPU 6 ARM Cortex-A15 ARM Cortex-A7 OS Kernel GUEST1 Scheduler VCPU Hypervisor vCPU Scheduler Performance Power- saving Low computing resource requirement High computing resource requirement If Guest OS scheduler is not asymmetric-aware, it will assign tasks to vCPUs evenly in order to achieve load balancing. Task 1 Task 2 Task 3 Task 4 Hypervisor vCPU scheduler will assign vCPUs evenly to physical ARM cores since it is not asymmetric-aware. Cannot take advantage on big.LITTLE core architeture Current Hypervisor Architecture and Problem

7 OS Kernel GUEST2 Scheduler VCPU 7 ARM Cortex-A15 ARM Cortex-A7 OS Kernel GUEST1 Scheduler VCPU Hypervisor vCPU Scheduler Performance Power- saving Assume that the scheduler in the Guest OS is asymmetric-aware. Hypervisor vCPU scheduler will assign vCPUs evenly to physical ARM cores in order to achieve load-balancing. Cannot take advantage on big.LITTLE core architeture Current Hypervisor Architecture and Problem(Cont.) VCPU Waste energy Performance Degradation Performance Degradation

8 Goal Design a new hypervisor scheduling mechanism for asymmetric multi-core platform. ◦ Periodically generates an energy-efficient scheduling plan.  the amount of time each virtual core should run on each physical core. 8

9 Assumptions The scheduling mechanism in the guest OS is already asymmetry-aware. The hypervisor is aware of the frequency of each virtual core. 9

10 Virtual Core Scheduling Problem For every time period, given the operating frequency of each virtual core, the scheduler has to generate a scheduling plan such that ◦ The power consumption is minimized. ◦ Guarantee performance. Scheduling plan ◦ the amount of time each virtual core should run on each physical core. 10

11 Model Two types of cores – virtual cores and physical cores. Power consumption of a physical core ◦ a function of core type, core frequency, and the load of the core.  Load: the percentage of time a core is executing virtual cores. 11

12 Performance A ratio between the computing resource assigned, to the computing resource requested. ◦ Ex: request 800 CPU cycles, assign to 720 CPU cycles, the performance is 720/800 = 0.9. 12

13 Optimization Problem Objective function:  n: number of physical core Generate a scheduling plan ◦ a i,j :the amount of time executing virtual core j on physical core i. ◦ Some constraints. 13

14 Constraints Equal performance of each virtual core. ◦ Resource sufficient: all virtual core with performance = 1. ◦ Resource insufficient: all virtual core with equal performance less than 1. Time assign to a virtual core should be less than a time interval. 14

15 Constraints(Cont.) A physical core has a fixed amount of computing resources in a time interval. ◦ Load of a physical core ≦ 100%. 15

16 Our Solution Given the objective function and constraints. Apply linear programming to generate a feasible scheduling plan. ◦ Can find solution in a short time since the number of virtual and physical cores are small constants. 16

17 Simulation Compare the power consumption of our asymmetry-aware scheduler with that of a credit-based scheduler. 17

18 Simulation Environment Two types of physical cores ◦ power-hunger “big” cores  frequency: 1600MHz ◦ power-efficient “little” cores  frequency: 600MHz ◦ The DVFS mechanism is disabled. 18

19 Scenario Two “big” and two “little’’ cores. Dual-core VM. Two sets of input: ◦ Case 1: Both VMs with light workloads.  250MHz for each virtual core. ◦ Case 2: One VM with heavy workloads, the other with modest workloads.  Heavy:1200MHz for each virtual core  Modest:600MHz for each virtual core. 19

20 Simulation Results ◦ Case 1: asymmetry-aware method is about 43.2% of that of credit-based method. ◦ Case 2:asymmetry-aware method uses 95.6% of energy used by the credit-base method. 20 Power(Watt) Case 1 Light-load VMs Asymmetry-aware0.295 Credit-based0.683 Case 2 Heavy-load VM + Modest-load VM Asymmetry-aware2.382 Credit-based2.491

21 Summary We develop an energy-efficient asymmetry-aware scheduling mechanism for asymmetric multi-core platforms. ◦ Generate energy-efficient scheduling plans with performance guarantee. Simulation results show that the asymmetry-aware strategy saves up to 57.2% energy against credit-based method. 21

22 Thank you!


Download ppt "An Energy-Efficient Hypervisor Scheduler for Asymmetric Multi- core 1 Ching-Chi Lin Institute of Information Science, Academia Sinica Department of Computer."

Similar presentations


Ads by Google