Scheduling in The Age of Virtualization



Similar documents
Performance tuning Xen

Cloud Computing CS

Full and Para Virtualization

Real- Time Mul,- Core Virtual Machine Scheduling in Xen

Avoid Paying The Virtualization Tax: Deploying Virtualized BI 4.0 The Right Way. Ashish C. Morzaria, SAP

Real-Time Multi-Core Virtual Machine Scheduling in Xen

Microkernels, virtualization, exokernels. Tutorial 1 CSC469

Best Practices for Monitoring Databases on VMware. Dean Richards Senior DBA, Confio Software

CSE 501 Monday, September 09, 2013 Kevin Cleary

Comparison of the Three CPU Schedulers in Xen

CHOOSING THE RIGHT RED HAT ENTERPRISE LINUX SUBSCRIPTION. Gerry Riveros Senior Manager Server Solutions, Red Hat May 6, 2011

The Xen of Virtualization

A quantitative comparison between xen and kvm

Real-Time Multi-Core Virtual Machine Scheduling in Xen

A cure for Virtual Insanity: A vendor-neutral introduction to virtualization without the hype

Basics in Energy Information (& Communication) Systems Virtualization / Virtual Machines

How To Save Power On A Server With A Power Management System On A Vsphere Vsphee V (Vsphere) Vspheer (Vpower) (Vesphere) (Vmware

IOS110. Virtualization 5/27/2014 1

Networked I/O for Virtual Machines

Architecture of the Kernel-based Virtual Machine (KVM)

Virtualization. Types of Interfaces

Enabling Technologies for Distributed Computing

T Mobile Cloud Computing Private Cloud & Assignment

Chapter 16: Virtual Machines. Operating System Concepts 9 th Edition

Technical Paper. Moving SAS Applications from a Physical to a Virtual VMware Environment

Pros and Cons of HPC Cloud Computing

PERFORMANCE ANALYSIS OF KERNEL-BASED VIRTUAL MACHINE

Vocera Voice 4.3 and 4.4 Server Sizing Matrix

SUSE Linux Enterprise 10 SP2: Virtualization Technology Support

Cutting Costs with Red Hat Enterprise Virtualization. Chuck Dubuque Product Marketing Manager, Red Hat June 24, 2010

Virtualization Technologies and Blackboard: The Future of Blackboard Software on Multi-Core Technologies

Intro to Virtualization

Performance Management for Cloudbased STC 2012

RUNNING vtvax FOR WINDOWS

Enabling Technologies for Distributed and Cloud Computing

Squeezing The Most Performance from your VMware-based SQL Server

How To Make A Virtual Machine Aware Of A Network On A Physical Server

Regional SEE-GRID-SCI Training for Site Administrators Institute of Physics Belgrade March 5-6, 2009

2972 Linux Options and Best Practices for Scaleup Virtualization

The MIPS architecture and virtualization

Scaling in a Hypervisor Environment

Virtualization Technologies

Container-based operating system virtualization: a scalable, high-performance alternative to hypervisors

HP Virtualization Performance Viewer

Table of Contents. Server Virtualization Peer Review cameron : modified, cameron

CON9577 Performance Optimizations for Cloud Infrastructure as a Service

Avoiding Performance Bottlenecks in Hyper-V

CPET 581 Cloud Computing: Technologies and Enterprise IT Strategies. Virtualization of Clusters and Data Centers

S4726 VIRTUALIZATION AN INTRO TO VIRTUALIZATION. Luke Wignall & Jared Cowart Senior Solution Architects GRID

SAIVMM: SELF ADAPTIVE INTELLIGENT VMM SCHEDULER FOR SERVER CONSOLIDATION IN CLOUD ENVIRONMENT

Performance Testing in Virtualized Environments. Emily Apsey Product Engineer

Chapter 14 Virtual Machines

Installing & Using KVM with Virtual Machine Manager COSC 495

X86 Virtualization Technology Evolution to HP Virtualization Performance Viewer (HP vpv)

To join the audio portion of this webcast: meeting code

Operating Systems Virtualization mechanisms

Virtualization for Cloud Computing

RED HAT ENTERPRISE VIRTUALIZATION FOR SERVERS: COMPETITIVE FEATURES

Maximizing SQL Server Virtualization Performance

Virtualization Performance on SGI UV 2000 using Red Hat Enterprise Linux 6.3 KVM

Monitoring Databases on VMware

Large-scale performance monitoring framework for cloud monitoring. Live Trace Reading and Processing

IOmark Suite. Benchmarking Storage with Applica4on Workloads August, Evaluator Group, Inc.

Performance Comparison of VMware and Xen Hypervisor on Guest OS

A hypervisor approach with real-time support to the MIPS M5150 processor

Mobile Cloud Computing T Open Source IaaS

SCO Virtualization Presentation to Customers

KVM Virtualized I/O Performance

Virtualization. Pradipta De

PARALLELS CLOUD SERVER

Microsoft Hyper-V chose a Primary Server Virtualization Platform

Comparing Free Virtualization Products

Windows Server 2012 Hyper-V Virtual Switch Extension Software UNIVERGE PF1000 Overview. IT Network Global Solutions Division UNIVERGE Support Center

Hypervisors. Introduction. Introduction. Introduction. Introduction. Introduction. Credits:

Introduction to Virtualization & KVM

Leveraging Thin Hypervisors for Security on Embedded Systems

Altaro VM Backup vs. Microsoft s System Center DPM

Red Hat Enterprise Virtualization Performance. Mark Wagner Senior Principal Engineer, Red Hat June 13, 2013

CFS-v: I/O Demand-driven VM Scheduler in KVM

Cloud Operating Systems for Servers

GUEST OPERATING SYSTEM BASED PERFORMANCE COMPARISON OF VMWARE AND XEN HYPERVISOR

Windows Server 2012 R2 Hyper-V: Designing for the Real World

Resource usage monitoring for KVM based virtual machines

Deploying Extremely Latency-Sensitive Applications in VMware vsphere 5.5

Networking for Caribbean Development

Thomas Fahrig Senior Developer Hypervisor Team. Hypervisor Architecture Terminology Goals Basics Details

Distributed and Cloud Computing

Virtual Switching Without a Hypervisor for a More Secure Cloud

Intel s Virtualization Extensions (VT-x) So you want to build a hypervisor?

Virtualization. Jukka K. Nurminen

Stratusphere Solutions

Performance of Network Virtualization in Cloud Computing Infrastructures: The OpenStack Case.

Practical Applications of Virtualization. Mike Phillips IAP 2008 SIPB IAP Series

Transcription:

Scheduling in The Age of Virtualization Dario Faggioli dario.faggioli@citrix.com Bruxelles 30th of January, 2016

Welcome Hello, my name is Dario I m with Citrix since 2011 (in the Xen Platform Team) Bruxelles 30th of January, 2016 Scheduling in The Age of Virtualization 2 / 16

Outline CPU Scheduling in the Virtualization World: hypervisor and guest scheduler: same or different? hypervisor scheduler: what are the key features? hypervisor and guest scheduler: independent or interactive? Bruxelles 30th of January, 2016 Scheduling in The Age of Virtualization 3 / 16

Scheduling in The Virtualization World Virtualization means 2 schedulers always running: hypervisor level: schedules virtual CPUs over physical CPUs guest OS level: schedules processes over virtual CPUs Implemented by: two instances of the same scheduler (Linux/KVM) two different schedulers (Xen, VMWare, Hyper-V) Bruxelles 30th of January, 2016 Scheduling in The Age of Virtualization 4 / 16

Same or different: What s better? Opinions... Same scheduler approach (Linux/KVM): benefit from feature and tuning done by others for other reasons pro (virtualization) specific tweaks may not always be welcome contra Different schedulers approach (Xen): developing a good scheduler is entirely on you contra virtualization specific tricks could be added at leisure pro My opinion: I like the Xen way better Bruxelles 30th of January, 2016 Scheduling in The Age of Virtualization 5 / 16

Same or different: What s better? Opinions... Same scheduler approach (Linux/KVM): benefit from feature and tuning done by others for other reasons pro (virtualization) specific tweaks may not always be welcome contra Different schedulers approach (Xen): developing a good scheduler is entirely on you contra virtualization specific tricks could be added at leisure pro My opinion: I like the Xen way better would have you ever guessed? :-) Bruxelles 30th of January, 2016 Scheduling in The Age of Virtualization 5 / 16

Same or different: What s better? (cont.) There s a story that could be an interesting example. It talks about co-scheduling, but not right now... Bruxelles 30th of January, 2016 Scheduling in The Age of Virtualization 6 / 16

What Makes a Good Hypervisor Scheduler? One thing is key: fairness: if the VMs are equal, they should get equal service in term physical CPU time. If they are not equal, weighted fairness. A couple of other wish list things: limit: this VM should not run more than XX% of physical CPU time. reservation: whatever the load is, this VM should never get less than YY% physical CPU time. Bruxelles 30th of January, 2016 Scheduling in The Age of Virtualization 7 / 16

Where do Linux/KVM and Xen Stand? Linux/KVM Xen Wght Fairness CFS (Linux 2.6.23) Forever Limit CFS BW Control (Linux 3.2) Credit (2006) Reservation No Planned for Credit2 Bruxelles 30th of January, 2016 Scheduling in The Age of Virtualization 8 / 16

Scheduler Example Wakeup latency test: measure difference between desired and actual wakeup time (min, avg, max). Min Avg Max no other load KVM 25.5 30.3 41.8 XEN 68.3 117.3 174.3 load on host/dom0 KVM 23.6 345.5 17785.3 Xen 28.3 81.3 1145.5 load on other VM KVM 36.5 336.8 7423.5 Xen 28.5 90.5 1131.5 Bruxelles 30th of January, 2016 Scheduling in The Age of Virtualization 9 / 16

Should Hypervisor and Guest OS Talk to Each Other? There is a word: Paravirtualization let s not go that far (today!) maybe just some enlightenment Bruxelles 30th of January, 2016 Scheduling in The Age of Virtualization 10 / 16

Example 1: Topology Based Scheduler Load Balancing Linux scheduler (in a guest) takes topology into account when load balancing. vcpus wander around among pcpus: the hypervisor scheduler moves them! at time t 1 vcpu 1 and vcpu 3 run on pcpus that are SMT-siblings at time t 2! = t 1... Not anymore! Hey, you re virtualized, please do not make assumptions on topology! Bruxelles 30th of January, 2016 Scheduling in The Age of Virtualization 11 / 16

Example 1: Topology Based Scheduler Load Balancing (cont.) We re down at doing at, and it looks promising... Iperf (VMs to host) % incr. thput. Sequential host load (1 VM) +3.976608% Small host load +3.903162% Medium host load +7.753479% Large host load +2.152059% Full host load +6.830207% Overloaded host +5.257887% Overwhelmed host +3.502063% Bruxelles 30th of January, 2016 Scheduling in The Age of Virtualization 12 / 16

Example 2: Generic Load Balancing Behaviour When does Linux s scheduler s load balancer triggers? configurable (scheduling domains flags) each architecture benchmarks and tune behaviour for best perf. virtualized guests (Xen/KVM)? Just what x86 does... execl benchmark from UnixBench. Default vs customised set of flags (removed SD BALANCE EXEC): Table: My caption DEFAULT CUSTOM KVM 675.3 1051.6 XEN 779.9 1009.8 Bruxelles 30th of January, 2016 Scheduling in The Age of Virtualization 13 / 16

Example 2: Generic Load Balancing Behaviour (cont.) Why? Traces (Xen): - CPU is idle, CPU is doing something, x event happening on CPU Bruxelles 30th of January, 2016 Scheduling in The Age of Virtualization 14 / 16

Example 2: Generic Load Balancing Behaviour (cont.ii) Why? Traces (Linux): Bruxelles 30th of January, 2016 Scheduling in The Age of Virtualization 15 / 16

Q&A Thanks again, Paravirtualization! Questions? Bruxelles 30th of January, 2016 Scheduling in The Age of Virtualization 16 / 16