Server Virtualization Approaches

Similar documents
Virtualization. Pradipta De

Chapter 5 C. Virtual machines

Virtualization. Dr. Yingwu Zhu

Performance & Scalability Testing in Virtual Environment Hemant Gaidhani, Senior Technical Marketing Manager, VMware

references Virtualization services Topics Virtualization

CS370 Operating Systems

OS Virtualization. Why Virtualize? Introduction. Virtualization Basics 12/10/2012. Motivation. Types of Virtualization.

Operating Systems 4/27/2015

System Virtual Machines

Virtual Machines. Jinkyu Jeong Computer Systems Laboratory Sungkyunkwan University

System Virtual Machines

Module 1: Virtualization. Types of Interfaces

CSCE 410/611: Virtualization!

Cloud Computing Virtualization

COMPUTER ARCHITECTURE. Virtualization and Memory Hierarchy

CHAPTER 16 - VIRTUAL MACHINES

Architecture and Performance Implications

Virtualization. Michael Tsai 2018/4/16

VMware vsphere. Using vsphere VMware Inc. All rights reserved

Distributed Systems COMP 212. Lecture 18 Othon Michail

CSE 120 Principles of Operating Systems

Unit 5: Distributed, Real-Time, and Multimedia Systems

Spring 2017 :: CSE 506. Introduction to. Virtual Machines. Nima Honarmand

The Challenges of X86 Hardware Virtualization. GCC- Virtualization: Rajeev Wankar 36

Virtualization and memory hierarchy

CSCE 410/611: Virtualization

VMware Overview VMware Infrastructure 3: Install and Configure Rev C Copyright 2007 VMware, Inc. All rights reserved.

Virtualization. Operating Systems, 2016, Meni Adler, Danny Hendler & Amnon Meisels

Nested Virtualization and Server Consolidation

Multiprocessor Scheduling. Multiprocessor Scheduling

Virtualization. Virtualization

Introduction to Virtual Machines. Michael Jantz

Advanced Operating Systems (CS 202) Virtualization

CS370: Operating Systems [Spring 2017] Dept. Of Computer Science, Colorado State University

Virtual Machines. Part 2: starting 19 years ago. Operating Systems In Depth IX 1 Copyright 2018 Thomas W. Doeppner. All rights reserved.

CS 350 Winter 2011 Current Topics: Virtual Machines + Solid State Drives

Xen Project Status Ian Pratt 12/3/07 1

What is KVM? KVM patch. Modern hypervisors must do many things that are already done by OSs Scheduler, Memory management, I/O stacks

Lecture 5: February 3

Virtualization. Starting Point: A Physical Machine. What is a Virtual Machine? Virtualization Properties. Types of Virtualization

CSCI 8530 Advanced Operating Systems. Part 19 Virtualization

Virtualization. ! Physical Hardware Processors, memory, chipset, I/O devices, etc. Resources often grossly underutilized

VMWARE TUNING BEST PRACTICES FOR SANS, SERVER, AND NETWORKS

Multicore Computing and the Cloud Optimizing Systems with Virtualization

The vsphere 6.0 Advantages Over Hyper- V

Hypervisors & related technologies Arwed Tschoeke Client Center Böblingen

Virtual Virtual Memory

Roadmap for Challenging Times System Virtualiztion

Virtual Machine Systems

Increase KVM Performance/Density

Virtual Machine Monitors (VMMs) are a hot topic in

CHAPTER 16 - VIRTUAL MACHINES

An overview of virtual machine architecture

A Review On optimization technique in Server Virtualization

Virtual Machines. To do. q VM over time q Implementation methods q Hardware features supporting VM q Next time: Midterm?

How it can help your organisation

Cloud and Datacenter Networking

A Survey on Virtualization Technologies

VMware ESX Server 3i. December 2007

Taking a trip down vsphere memory lane

The Architecture of Virtual Machines Lecture for the Embedded Systems Course CSD, University of Crete (April 29, 2014)

Introduction to Virtual Machines. Carl Waldspurger (SB SM 89 PhD 95) VMware R&D

Virtual Machine Monitors!

Xen Summit Spring 2007

OPS-9: Fun With Virtualization. John Harlow. John Harlow. About John Harlow

Virtualization. Application Application Application. MCSN - N. Tonellotto - Distributed Enabling Platforms OPERATING SYSTEM OPERATING SYSTEM

Virtualization and Virtual Machines. CS522 Principles of Computer Systems Dr. Edouard Bugnion

CS-580K/480K Advanced Topics in Cloud Computing. VM Virtualization II

Xen and the Art of Virtualization. Nikola Gvozdiev Georgian Mihaila

COS 318: Operating Systems. Virtual Machine Monitors

Virtualization, Xen and Denali

By the end of the class, attendees will have learned the skills, and best practices of virtualization. Attendees

Introduction to Virtualization

FAQ FOR VMWARE SERVER 2 - AUGUST, 2008

Kemari: Virtual Machine Synchronization for Fault Tolerance using DomT

Chapter 3 Virtualization Model for Cloud Computing Environment

CS370 Operating Systems

VMware vsphere with ESX 4.1 and vcenter 4.1

Virtual Machines Disco and Xen (Lecture 10, cs262a) Ion Stoica & Ali Ghodsi UC Berkeley February 26, 2018

Hypervisors & related technologies Frank Heimes / Arwed Tschoeke Client Center Böblingen

Adobe Acrobat Connect Pro 7.5 and VMware ESX Server

Virtualization. Part 1 Concepts & XEN

SUSE Linux Enterprise Server: Supported Virtualization Technologies

Virtual Leverage: Server Consolidation in Open Source Environments. Margaret Lewis Commercial Software Strategist AMD

VMware vsphere 6.5 Boot Camp

Virtualization with VMware ESX and VirtualCenter SMB to Enterprise

CLOUD COMPUTING IT0530. G.JEYA BHARATHI Asst.Prof.(O.G) Department of IT SRM University

W H I T E P A P E R. What s New in VMware vsphere 4: Performance Enhancements

Lecture 7. Xen and the Art of Virtualization. Paul Braham, Boris Dragovic, Keir Fraser et al. 16 November, Advanced Operating Systems

HPVM & OpenVMS. Sandeep Ramavana OpenVMS Engineering Sep Germany Technical Update Days 2009

DISCO and Virtualization

VIRTUAL APPLIANCES. Frequently Asked Questions (FAQ)

The only open-source type-1 hypervisor

CSC 5930/9010 Cloud S & P: Virtualization

Virtualization Overview

Distributed File Systems Issues. NFS (Network File System) AFS: Namespace. The Andrew File System (AFS) Operating Systems 11/19/2012 CSC 256/456 1

I/O and virtualization

Virtual machine architecture and KVM analysis D 陳彥霖 B 郭宗倫

Introduction to Cloud Computing and Virtualization. Mayank Mishra Sujesha Sudevalayam PhD Students CSE, IIT Bombay

Running DME on VMware ESX

Transcription:

Server Virtualization Approaches

Virtual Machine Applications Emulation Replication Composition Emulation: Mix-and-match cross-platform portability Replication: Multiple VMs on single platform Composition: Form more complex flexible systems -2-

Our focus: Same ISA System VMs Process VMs same ISA Multi programmed Systems Dynamic Binary Optimizers -3- different ISA System VMs same ISA different ISA Dynamic Translators Classic OS VMs Whole System VMs HLL VMs Hosted VMs Co-Designed VMs

System VMs

Server Virtualization Approaches Hardware Partitioning Apps OS... Bare Metal Hypervisor Apps Apps OS OS Adjustable partitions Partition Controller... Apps Apps OS OS Hypervisor Type 1 SMP Server Hosted Hypervisor SMP Server... Apps OS Hypervisor Host OS Type 2 SMP Server Server is subdivided into fractions Hypervisor provides fine-grained Hypervisor uses OS services to each of which can run an OS timesharing of all resources do timesharing of all resources Hypervisor software/firmwarehypervisor software runs on runs directly on server a host operating system System z PR/SM and z/vm VMware Server POWER Hypervisor Microsoft Virtual Server Logical partitioning VMware ESX Server HP Integrity VM pseries LPAR, HP (PA) vpartitions Xen Hypervisor User Mode Linux Physical partitioning S/370 SI-to-PP and PP-to-SI, Sun Domains, HP npartitions -5-

Virtualization Overhead Guest OS Direct Execution Sensitive operations VMM Additional CPU time Hardware Time spent by the VMM Increases host CPU utilization Increases latency However, throughput can be acceptable if there is enough CPU power -6-

Virtualization Overhead Overhead is not fixed Varies with workload Varies with Hardware newer hardware has lower instruction latency Depends on how the application is tuned Depends on the hypervisor Examples SPEC CPU2006 - CPU intensive workload runs at near native speed. Real life workloads have varying mix -7-

Techniques Full virtualization: Transparent Virtualization: Classical x86 is not fully virtualizable it has sensitive instructions that don't trap in user mode. Some of VMM's overhead comes from trying to detect these instructions! Advantages:» Easy migration from physical to virtual systems (P2V). Disadvantages:» Performance penalty Paravirtualization Technique that presents a software interface to virtual machines that is similar but not identical to that of the underlying hardware. The guest OSs are aware that they are executing on a VM. -8- Advantages:» Lightweight and fast Disadvantages:» Requires porting Guest OS, to use hypercalls instead of sensitive instructions.

VMM Scheduler Core 1 First Clock Cycle Core 2 Server with 2 Cores 1 vcpu, 100% 2 vcpu, 200% 2 vcpu, 150% Third Clock Cycle 1 vcpu, 50% 1 vcpu, 100% Fourth Clock Cycle 4 vcpu, 400% -9- Latenc y Second Clock Cycle

VMM Scheduler Server with 4 Cores Core 1 Core 2 Core 3 Core 4 1 vcpu, 100% 2 vcpu, 200% 2 vcpu, 150% 1 vcpu, 50% 1 vcpu, 100% Second Clock Cycle 4 vcpu, 400% Third Clock Cycle -10- Latenc y First Clock Cycle

Memory Virtualization Virtual Memory in a VM Each guest OS maintains own set of page tables. Guest OS translates virtual memory locations to real memory locations ( physical memory of VM.) Guest OS has swap space on virtual disk. VMM Translates real memory to physical memory using MMU. VMM may have a swap space on physical disk. -11-

Memory management without Virtualization -12-

Memory management with Virtualization -13-

Nested Page Tables Issue: VM page table updates must be handled by the hypervisor. If done in software, VM page table updates can be very expensive. Solution: Nested Page Tables (NPT) provides hardware support for translating the VM's virtual page tables to physical page tables. The hypervisor configures the hardware so that it intercepts any attempt of a VM to update its own virtual page tables. When the hardware catches a write to the VM's page tables, the hypervisor determines the physical pages that will map the VM's virtual pages and sets the real hardware page tables to the physical mapping. NPT provides a significant performance boost for workloads that do a lot of paging, such as creating and destroying lots of processes. -14-

Nested Paging Application Application Application Application Guest OS Guest OS Virtual Machine Virtual Machine Hypervisor Host Page Table Guest OS Page Table Shadow Page Tables Guest OS Page Table Provides the guest OS with the illusion that it is managing memory Page tables are actually kept up by the hypervisor in software Requires more software intervention from the hypervisor -15- Guest OS Guest OS Virtual Machine Virtual Machine Nested Page Tables Hypervisor Host Page Table Guest OS Page Table Guest OS Page Table Guest OS Page Table Guest OS Page Table Each guest physically has their own world to manage Requires less intervention Memory look ups done in hardware which can be faster than software management

Nested Page Tables -16-

Advanced Topics: Memory Sharing -17-

Advanced Topics: Memory Ballooning Inflating a balloon When the server wants to reclaim memory Increase memory pressure in the guest OS, reclaim space to satisfy the driver allocation request Driver communicates the physical page number for each allocated page to VMM Deflating Frees up memory for general use within the guest OS -18-

I/O Virtualization A number of different types of I/O devices Construct a virtual version of the device I/O activity directed at the device is intercepted by VMM and converted to equivalent request for underlying physical device. -19-

Device Types Dedicated Device Display, keyboard, mouse etc. VMM routes, but does not interpret the I/O instructions Partitioned Devices E.g. A hard disk can host several virtual disks Shared Devices E.g. network adapter Nonexistent Physical Devices E.g. network adapter to communicate only among VMs -20-

Options For I/O Virtualization

Network Architecture VM Virtual adapte r VMVirtual VMVirtual vswitch vswitch Virtual Vnic1 adapte r vswitch Vnic2 adapte r Vnic1 adapte r VM Virtual Vnic1 adapte r Service Console Virtual adapte eth0 r vswitch vswitch Nic 4 Nic 5 Virtualization Layer Nic 1 Production Storage Management -22- Nic 2 Nic 3

Virtualization - Storage Console OS VM1 VM2 Disk 1 Disk 2 Disk 1 Emulated SCSI driver VM1a.dsk VM2.dsk VM1b.dsk /, swap,... VMFS (Data1) VMFS (Data 2) Partition 1-4 Partition 1 Partition 2 Disk1 Disk 2 RAID 1 RAID 5 Disk 1 Disk 2 Disk 3 Disk 4 Disk 5 Disk 6 Disk 6-23-

Disk modes -24- Disk 1 append Disk 1 Boo t o Bo t Write undoable Boo t o Bo t Write Disk 1 Write Boo t Write Disk 1 Non-persistent Boo t persistent VM1.dsk VM1.dsk VM1.REDO VM1.dsk VM1.REDO VM1.dsk VM1.REDO Normal All changes are gone after reboot It can be decided, if It can be decided changes are kept several times, if or discarded changes are kept or discarded

Special storage states Suspend VM1-25- Resume Mem VM1 Mem Disk 1 Disk 1 VM1.dsk VM1.vmss VM1.dsk VM1.vmss

CPU Resource Settings: Percentages and Shares Minimum absolute percentage A percentage of a physical CPU reserved for this virtual machine The VMM chooses which CPU Maximum absolute percentage A cap on the consumption of CPU time by this virtual machine, as a proportion of a physical CPU Range is 0-100% for uni virtual machines Range is 0-200% for dual virtual machines Because VCPUs in the same virtual machine are always co-scheduled Proportional shares (relative) More shares means that this virtual machine will win competitions for CPU time -26-

Server Performance Optimization Virtual SMP Minimum Rate Maximum Rate Share Allocation CPU Load Balancing Processor Affinity Share Allocation -27- Minimum Size Maximum Size Share Allocation Dynamic Allocation Advanced Memory Management NIC Teaming Traffic Shaping

VM Migration - Step 1 VMotion: Technical Drill-Down ESX01 ESX02 VM A VM A Shared Storage -28-1) Provision new virtual machine on target host

VM Migration - Step 2 VMotion: Technical Drill-Down ESX01 ESX02 VM A Memory VM A Memory Bitmap Shared Storage -29-1) Provision new virtual machine on target host 2) Pre-copy memory from source to target, with ongoing changes logged to a bitmap

VM Migration - Step 3 VMotion: Technical Drill-Down ESX01 ESX02 VM A Memory Bitmap VM A Memory Bitmap Shared Storage -30-1) Provision new virtual machine on target host 2) Pre-copy memory from source to target, with ongoing changes logged to a bitmap 3) Suspend the virtual machine on the source host and copy memory bitmap to target host

VM Migration - Step 4 VMotion: Technical Drill-Down ESX01 ESX02 VM A VM A Memory Bitmap 1) Provision new virtual machine on target host 2) Pre-copy memory from source to target, with ongoing changes logged to a bitmap 3) Suspend the virtual machine on the source host and copy memory bitmap to target host 4) Resume virtual machine on target host Shared Storage -31-

VM Migration - Step 5 VMotion: Technical Drill-Down ESX01 VM A Demand Page ESX02 VM A Background Page Memory Bitmap Shared Storage -32-1) Provision new virtual machineon target host 2) Pre-copy memory from source to target, with ongoing changes logged to a bitmap 3) Suspend the virtual machine on the source host and copy memory bitmap to target host 4) Resume virtual machine on target host 5) Demand page from the source virtual machine when system accesses modified memory Background page the source virtual machine until all memory has been successfully copied

VM Migration - Step 6 VMotion: Technical Drill-Down ESX01 ESX02 VM A Shared Storage -33-1) Provision new virtual machine on target host 2) Pre-copy memory from source to target, with ongoing changes logged to a bitmap 3) Suspend the virtual machine on the source host and copy memory bitmap to target host 4) Resume virtual machine on target host 5) Demand page from the source virtual machine when system accesses modified memory Background page the source virtual machine until all memory has been successfully copied 6) Delete virtual machine from source host

Virtual Appliances