Comparison of the Three CPU Schedulers in Xen



Similar documents
When Virtual is Harder than Real: Resource Allocation Challenges in Virtual Machine Based IT Environments

Comparison of the Three CPU Schedulers in Xen

An Enhanced CPU Scheduler for XEN Hypervisor to Improve Performance in Virtualized Environment

XenMon: QoS Monitoring and Performance Profiling Tool

Full and Para Virtualization

GUEST OPERATING SYSTEM BASED PERFORMANCE COMPARISON OF VMWARE AND XEN HYPERVISOR

Performance tuning Xen

Basics of Virtualisation

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

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

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

Microkernels, virtualization, exokernels. Tutorial 1 CSC469

Application Performance Isolation in Virtualization

Performance Implications of Hosting Enterprise Telephony Applications on Virtualized Multi-Core Platforms

Cloud Computing CS

Virtualization. Types of Interfaces

Virtualization. Dr. Yingwu Zhu

Autonomic resource management for the Xen Hypervisor

COS 318: Operating Systems. Virtual Machine Monitors

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

Virtualization: Concepts, Applications, and Performance Modeling

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

Identify and control performance and capacity risks. Introduction... 2

Database Systems on Virtual Machines: How Much do You Lose?

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

Capacity and Performance Overhead in Dynamic Resource Allocation to Virtual Containers

Virtual Computing and VMWare. Module 4

2972 Linux Options and Best Practices for Scaleup Virtualization

Virtual Machine Monitors. Dr. Marc E. Fiuczynski Research Scholar Princeton University

Small is Better: Avoiding Latency Traps in Virtualized DataCenters

Adaptive Dynamic Priority Scheduling for Virtual Desktop Infrastructures

IOS110. Virtualization 5/27/2014 1

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

Scheduling in The Age of Virtualization

Performance Models for Virtualized Applications

Simplifying Storage Operations By David Strom (published 3.15 by VMware) Introduction

Oracle Database Scalability in VMware ESX VMware ESX 3.5

Performance brief for IBM WebSphere Application Server 7.0 with VMware ESX 4.0 on HP ProLiant DL380 G6 server

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

Virtual Machine Synchronization for High Availability Clusters

Profiling and Modeling Resource Usage of Virtualized Applications Timothy Wood 1, Ludmila Cherkasova 2, Kivanc Ozonat 2, and Prashant Shenoy 1

Performance Measurements and Analysis of Network I/O Applications in Virtualized Cloud

QuickSpecs. HP Integrity Virtual Machines (Integrity VM) Overview. Currently shipping versions:

Arwed Tschoeke, Systems Architect IBM Systems and Technology Group

Performance Analysis of Network I/O Workloads in Virtualized Data Centers

HRG Assessment: Stratus everrun Enterprise

Virtualization. Pradipta De

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

Monitoring Databases on VMware

Lecture 2 Cloud Computing & Virtualization. Cloud Application Development (SE808, School of Software, Sun Yat-Sen University) Yabo (Arber) Xu

Performance Evaluation of Virtualization Technologies for Server Consolidation

Enabling Technologies for Distributed Computing

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

CON9577 Performance Optimizations for Cloud Infrastructure as a Service

Big Data in the Background: Maximizing Productivity while Minimizing Virtual Machine Interference

HyperV_Mon 3.0. Hyper-V Overhead. Introduction. A Free tool from TMurgent Technologies. Version 3.0

Directions for VMware Ready Testing for Application Software

Figure 1. VMware architecture.

Scaling in a Hypervisor Environment

Chapter 5 Cloud Resource Virtualization

Database Virtualization

Virtualization for Cloud Computing

An Oracle White Paper August Oracle VM 3: Server Pool Deployment Planning Considerations for Scalability and Availability

Performance Evaluation of VMXNET3 Virtual Network Device VMware vsphere 4 build

A quantitative comparison between xen and kvm

Resource usage monitoring for KVM based virtual machines

Integrity Virtual Machines Technical Overview

Security Overview of the Integrity Virtual Machines Architecture

VIRTUALIZATION technology [19], [21] offers many advantages

How To Compare Performance Of A Router On A Hypervisor On A Linux Virtualbox 2.5 (Xen) To A Virtualbox (Xeen) Xen-Virtualization (X

Why Relative Share Does Not Work

Enabling Technologies for Distributed and Cloud Computing

The Truth Behind IBM AIX LPAR Performance

Understanding Linux on z/vm Steal Time

Performance Characteristics of VMFS and RDM VMware ESX Server 3.0.1

Deploying Microsoft Exchange Server 2007 mailbox roles on VMware Infrastructure 3 using HP ProLiant servers and HP StorageWorks

Introduction to the NI Real-Time Hypervisor

Today: Data Centers & Cloud Computing" Data Centers"

Virtualization and the U2 Databases

Migration of Virtual Machines for Better Performance in Cloud Computing Environment

Virtualizare sub Linux: avantaje si pericole. Dragos Manac

Microsoft Hyper-V chose a Primary Server Virtualization Platform

Avoiding Performance Bottlenecks in Hyper-V

HP Matrix Operating Environment Federated CMS Overview

W H I T E P A P E R. Performance and Scalability of Microsoft SQL Server on VMware vsphere 4

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

How to Add and Remove Virtual Hardware to a VMware ESXi Virtual Machine

Understanding Performance Interference of I/O Workload in Virtualized Cloud Environments

Cloud Computing through Virtualization and HPC technologies

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

Storage Challenges Created by a Virtualized Server Infrastructure. Agenda. State of server virtualization

Hardware Based Virtualization Technologies. Elsie Wahlig Platform Software Architect

SQL Clusters in Virtualized Environments April 10 th, 2013

Influence of Virtualization on Process of Grid Application Deployment

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

/14/$31.00 c 2014 IEEE

Virtualizing Exchange

Virtual Switching Without a Hypervisor for a More Secure Cloud

MODULE 3 VIRTUALIZED DATA CENTER COMPUTE

On the Performance Isolation Across Virtual Network Adapters in Xen

Transcription:

Comparison of the Three CPU Schedulers in Xen Lucy Cherkasova (HPLabs) Diwaker Gupta (UCSD) Amin Vahdat (UCSD) 2004 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice

Motivation Effective management of virtualized IT environments relies on dynamically resizing VMs migrating VMs to different nodes in response to changed conditions The capacity management methods should work in ensemble with underlying resource allocation mechanisms Three CPU schedulers in Xen: What are required features for management tools like VSE and gwlm? Application performance sensitivity to different CPU schedulers and their parameters April 20, 2007 2

History of three CPU schedulers in Xen BVT: Borrowed Virtual Time Lack of non-work-conserving mode SEDF: Simple Earliest Deadline First Lack of global load balancing Credit: a fair share proportional scheduler Is this an ideal scheduler? Understanding CPU scheduler features and scheduler performance is critical for efficient resource management in the consolidated environment April 20, 2007 3

BVT: Borrowed Virtual Time Proportional share via setting different domain weights Example: Dom1: weight 1 (20%) Dom2: weight 3 (80%) Work conserving: if only one domain has work to do it can get all the CPU (i.e. we can not limit the CPU usage to, say, 50% only) Low latency support for I/O intensive and real-time applications: analogy of priority. Fair-share scheduler based on the concept of virtual time Context-switch allowance C: real time, flexible (default: 5 ms period). Optimally-fair April 20, 2007 4

SEDF: Simple Earliest Deadline First Support for both work-conserving and non workconserving modes now we can allocate, say, 50% of CPU to the domain and not more. Real-time apps support: based on the notions of slice and period (flexible) CPU allocation: 20 ms slice in each 100 ms period; CPU allocation: 2 ms slice in each 10 ms period. Preemptive Limited fairness within the period. Per CPU scheduler: no global load balancing CPU1: dom1 80% CPU usage CPU2: dom2 --- 80% CPU usage dom3 with 30% CPU usage can not be allocated and served, each CPU has only 20% of available CPU share. April 20, 2007 5

Credit scheduler Fair-share scheduler Support for both work-conserving and non work-conserving modes using weights Global load balancing Now we can allocate dom1 (80%), dom2 (80%) and dom3 (30%) on 2-way CPU machine. Scheduling period is 30 ms (hard coded). Non-preemptive April 20, 2007 6

Two Popular I/O models Device drivers are hosted and executed within a hypervisor (VMM), e.g., the first Xen implementation, the VMware model Unmodified device drivers are hosted and executed in the privileged management domain: Domain0, e.g., the current Xen implementation. I/O processing is done by two components: Domain0 and the guest domain. Performance of I/O intensive applications depends on CPU allocation to Domain0 and the guest domain. April 20, 2007 7

Challenges How does one estimate the application CPU requirements and project them into two components: Dom0 and the guest domain s shares? How sensitive are I/O intensive applications to the amount of CPU allocated to Dom0? How significant is the impact of scheduler parameters? Does allocation of a larger CPU share to Dom0 mean a better performance for I/O intensive apps? April 20, 2007 8

Application Performance Sensitivity to Scheduler Parameters and Dom0 Weights I/O intensive applications are highly sensitive to Dom0 CPU share Scheduler parameters significantly change the scheduler behavior and application performance Analysis with XenMon: Dom0 is scheduled much more often but it performs mush less useful work It leads to a high context switch overhead and worse application performance April 20, 2007 9

Application Performance Sensitivity to Different Schedulers: Web Server Application performance can be significantly different under the different schedulers (with the same CPU allocation share!) These results vote in favor of more homogeneous environment when considering VM migration Optimizing Xen scheduler performance for nwc-mode: this mode is equired by HP management tools April 20, 2007 10

Iperf Relatively flat iperf performance under SEDF and Credit in wc-mode iperf performance is very sensitive to Dom0 weight under SEDF and Credit in nwc-mode. April 20, 2007 11

Disk Similar disk throughput under all the three schedulers in wcmode disk performance is very sensitive to Dom0 weight under SEDF and Credit in nwc-mode. April 20, 2007 12

CPU Allocation Error ALERT: ALlocation ERror Test Dom0 is allocated 6% (using cap mechanism) Dom1 is allocated 1%, 2%, 3%,,10%, 20%,.,90% Dom1 executes the slurp program (tight CPU loop). Expectations for Dom1: If X% CPU is allocated then X% of CPU should be measured during the test Credit scheduler shows high CPU allocation errors Even longer time averages (3min) had 10% error Such high errors complicate the management Can lead to unstable controller behavior in gwlm April 20, 2007 13

Credit Scheduler Improvement Current Credit implementation has lower allocation errors. For CPU allocation <30% the Credit errors are still high, more improvement is needed Credit still has a much higher error compared to SEDF Longer time averages are significantly improved April 20, 2007 14

SMP case: Web Server Each domain (Dom0 too) is configured with 2 VCPUs Better load-balancing features of Credit can not overwrite its basic behavior for processing I/O intensive workloads Web server throughput increase compared to 1 CPU case: BVT: 45% SEDF: 30% Credit:24% Web server performance is less sensitive to Dom0 weight in wc-mode Web server performance is very sensitive to Dom0 weight in nwcmode April 20, 2007 15

Multiple Web Servers Small scaling experiment with multiple VMs: each is running a web server Small drop in aggregate throughput with 2 VMs Credit shows an improved performance for aggregate throughput with higher number of VMs (due to global load balancing?..) April 20, 2007 16

BVT: SMP case Experiments with slurp (single process) weights: 1:2:2 All the domains (including Dom0) run Slurp (tight CPU loop). Current BVT implementation does not support global load balancing VMs (VCPUs) are randomly assigned to physical machines and CPU allocation Is computed after that for each CPU. Equal weights: 1:1:1 weights: 1:2:2 April 20, 2007 17

SEDF: SMP case SEDF has a lack of global load balancing It is especially apparent under nwc-mode (capped). Similar to BVT, it assigns VCPUs randomly to physical CPUs and tries to support CPU allocation at the CPU level. NWC: 50%:50%:50% NWC: 66%:66%:66% Clearly, 2 processes can not get 66% each at a single CPU. April 20, 2007 18

Credit: SMP case Credit is a true winner among the three schedulers for supporting global balancing capabilities NWC: 66%:66%:66% Still relatively high CPU allocation error Dom0 is under-provisioned (not clear why) NWC: 66%:66%:66% These errors mostly introduced by the global load balancing when we ran a similar experiment on 1 CPU machine the allocation error is much smaller. April 20, 2007 19

Summary CPU schedulers should be tested and augmented with ALERT results for different configuration Many enterprise management solution rely on the accurate CPU allocation by underlying virtualization layer. Challenges: how do we tune Dom0 CPU allocation for optimal application performance? How do we project application resource demands to a virtual world? L. Cherkasova, D. Gupta, A. Vahdat: When Virtual is Harder than Real: Resource Allocation Challenges in Virtual Machine Based IT Environments. HPL-2007-25, February, 2007. April 20, 2007 20

Acknowledgements: Stephan Diestelhorst and Timothy Roscoe (SEDF) Emmanuel Ackaouy (Credit) April 20, 2007 21

Questions? April 20, 2007 22

Credit (cont) A few more examples of CPU allocation error under Credit Dom0 is consistently underprovisioned when Credit is in nwc-mode (capped). NWC: 20%:40%:50%:70% Distribution of CPU allocation errors in wc-mode is more symmetric. WC: 20%:40%:50%:70% April 20, 2007 23

Credit (1CPU case) NWC: 10%:20%:25%:35% CPU allocation error with multiple domains show much better results Why for a single domain tested with ALERT the CPU allocation errors are much higher? April 20, 2007 24