Live Migration of Virtual Machines Authors: Christopher Clark, Keir Fraser, Steven Hand, Jacob Gorm Hansen, Eric Jul, Christian Limpach, Ian Pratt, Andrew.

Slides:



Advertisements
Similar presentations
Remus: High Availability via Asynchronous Virtual Machine Replication
Advertisements

Live migration of Virtual Machines Nour Stefan, SCPD.
IP Router Architectures. Outline Basic IP Router Functionalities IP Router Architectures.
Difference Engine: Harnessing Memory Redundancy in Virtual Machines by Diwaker Gupta et al. presented by Jonathan Berkhahn.
XEN AND THE ART OF VIRTUALIZATION Paul Barham, Boris Dragovic, Keir Fraser, Steven Hand, Tim Harris, Alex Ho, Rolf Neugebauer, lan Pratt, Andrew Warfield.
Live Migration of Virtual Machines Christopher Clark, Keir Fraser, Steven Hand, Jacob Gorm Hansen, Eric Jul, Christian Limpach, Ian Pratt, Andrew Warfield.
Virtual Memory Introduction to Operating Systems: Module 9.
Exploiting Data Deduplication to Accelerate Live Virtual Machine Migration Xiang Zhang 1,2, Zhigang Huo 1, Jie Ma 1, Dan Meng 1 1. National Research Center.
Live Migration of Virtual Machines Christopher Clark, Keir Fraser, Steven Hand, Jacob Gorm Hansen, Eric Jul, Christian Limpach, Ian Pratt, Andrew Warfield.
Xen Virtual Machine Monitor Performance Isolation E0397 Lecture 17/8/2010 Many slides based verbatim on “Xen Credit Scheduler Wiki”
1 Cheriton School of Computer Science 2 Department of Computer Science RemusDB: Transparent High Availability for Database Systems Umar Farooq Minhas 1,
COMMA: Coordinating the Migration of Multi-tier applications 1 Jie Zheng* T.S Eugene Ng* Kunwadee Sripanidkulchai† Zhaolei Liu* *Rice University, USA †NECTEC,
Post-Copy Live Migration of Virtual Machines Michael R. Hines, Umesh Deshpande, Kartik Gopalan Computer Science, Binghamton University(SUNY) SIGOPS 09’
Predicting The Performance Of Virtual Machine Migration Presented by : Eli Nazarov Sherif Akoush, Ripduman Sohan, Andrew W.Moore, Andy Hopper University.
1 Virtual Machine Resource Monitoring and Networking of Virtual Machines Ananth I. Sundararaj Department of Computer Science Northwestern University July.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
Translation Buffers (TLB’s)
16: Distributed Systems1 DISTRIBUTED SYSTEM STRUCTURES NETWORK OPERATING SYSTEMS The users are aware of the physical structure of the network. Each site.
1 Distributed Systems: Distributed Process Management – Process Migration.
Xen and the Art of Virtualization Paul Barham, Boris Dragovic, Keir Fraser, Steven Hand, Tim Harris, Alex Ho, Rolf Neugebauer, Ian Pratt, Andrew Warfield.
Virtualization Technology Prof D M Dhamdhere CSE Department IIT Bombay Moving towards Virtualization… Department of Computer Science and Engineering, IIT.
Yury Kissin Infrastructure Consultant Storage improvements Dynamic Memory Hyper-V Replica VM Mobility New and Improved Networking Capabilities.
Disco : Running commodity operating system on scalable multiprocessor Edouard et al. Presented by Jonathan Walpole (based on a slide set from Vidhya Sivasankaran)
CS533 Concepts of Operating Systems Jonathan Walpole.
Remus: VM Replication Jeff Chase Duke University.
Virtualization. Virtualization  In computing, virtualization is a broad term that refers to the abstraction of computer resources  It is "a technique.
1 Xen and the Art of Virtualization Paul Barham, Boris Dragovic, Keir Fraser, Steven Hand, Tim Harris, Alex Ho, Rolf Neugebauer, Ian Pratt, Andrew Warfield.
Computer Architecture Lecture 28 Fasih ur Rehman.
Virtualization Concepts Presented by: Mariano Diaz.
Penn State CSE “Optimizing Network Virtualization in Xen” Aravind Menon, Alan L. Cox, Willy Zwaenepoel Presented by : Arjun R. Nath.
Xen and The Art of Virtualization Paul Barham, Boris Dragovic, Keir Fraser, Steven Hand, Tim Harris, Alex Ho, Rolf Neugebauer, Ian Pratt & Andrew Warfield.
Hadi Salimi Distributed Systems Lab, School of Computer Engineering, Iran University of Science and Technology, Fall 2010 Performance.
From Virtualization Management to Private Cloud with SCVMM 2012 Dan Stolts Sr. IT Pro Evangelist Microsoft Corporation
Our work on virtualization Chen Haogang, Wang Xiaolin {hchen, Institute of Network and Information Systems School of Electrical Engineering.
Live Migration of Virtual Machines
Live Migration of Virtual Machines Christopher Clark, Keir Fraser, Steven Hand, Jacob Gorm Hansen†,Eric Jul†, Christian Limpach, Ian Pratt, Andrew Warfield.
Server Virtualization
Virtualization 3 Subtitle: “What can we do to a VM?” Learning Objectives: – To understand the VM-handling mechanisms of a hypervisor – To understand how.
Disco : Running commodity operating system on scalable multiprocessor Edouard et al. Presented by Vidhya Sivasankaran.
1 Virtual Machine Memory Access Tracing With Hypervisor Exclusive Cache USENIX ‘07 Pin Lu & Kai Shen Department of Computer Science University of Rochester.
Efficient Live Checkpointing Mechanisms for computation and memory-intensive VMs in a data center Kasidit Chanchio Vasabilab Dept of Computer Science,
Lecture Topics: 11/24 Sharing Pages Demand Paging (and alternative) Page Replacement –optimal algorithm –implementable algorithms.
Processes and Virtual Memory
Full and Para Virtualization
COMP25212: Virtualization 3 Subtitle: “What can we do to a VM?” Learning Objectives: –To understand the VM-handling mechanisms of a hypervisor –To understand.
Virtual cloud R 陳昌毅 R 顏昭恩 R 黃伯淳 2010/06/03.
EECS 262a Advanced Topics in Computer Systems Lecture 20 VM Migration/VM Cloning November 13 th, 2013 John Kubiatowicz and Anthony D. Joseph Electrical.
Memory Resource Management in VMware ESX Server By Carl A. Waldspurger Presented by Clyde Byrd III (some slides adapted from C. Waldspurger) EECS 582 –
Agile Paging: Exceeding the Best of Nested and Shadow Paging
CS 695 Topics in Virtualization and Cloud Computing, Autumn 2012 CS 695 Topics in Virtualization and Cloud Computing Live Migration of Virtual Machines.
Virtual Machine Monitors
IP: Addressing, ARP, Routing
Presented by Yoon-Soo Lee
VIRTUAL SERVERS Presented By: Ravi Joshi IV Year (IT)
Virtualization overview
Xen: The Art of Virtualization
Group 8 Virtualization of the Cloud
Introduction to Operating Systems
OS Virtualization.
O.S Lecture 13 Virtual Memory.
John Kubiatowicz Electrical Engineering and Computer Sciences
Translation Buffers (TLB’s)
Translation Buffers (TLB’s)
Translation Buffers (TLBs)
Xen and the Art of Virtualization
CSE 451: Operating Systems Autumn Module 24 Virtual Machine Monitors
Harrison Howell CSCE 824 Dr. Farkas
System Virtualization
Review What are the advantages/disadvantages of pages versus segments?
Presentation transcript:

Live Migration of Virtual Machines Authors: Christopher Clark, Keir Fraser, Steven Hand, Jacob Gorm Hansen, Eric Jul, Christian Limpach, Ian Pratt, Andrew Warfield University of Cambridge Computer Laboratory University of Copenhagen, Denmark Presenter: Juncheng Gu EECS 582 – W161

Outline Motivation Design Implementation Evaluation Conclusion Future Work EECS 582 – W162

Motivation What’s VM live migration? EECS 582 – W163  Move VM instances across distinct physical hosts with little or no downtime for running services. Services are unaware of the migration. Maintain network connections of the guest OS. VM is treaded as a black box.

Motivation EECS 582 – W164  VM live migration can be a extremely powerful tool for cluster administrators. Hardware / Software maintenance / upgrades Load balancing / resource management Distributed power management

Motivation Why OS-level migration, instead of process-level? EECS 582 – W165 Avoid ‘residual dependencies’ Original host can be power-off / sleep once migration completed. Can transfer in-memory state in a consistent and efficient fashion E.g. No reconnection for media streaming application Allow a separation of concerns between the users and operator of a cluster Users can fully control of the software and services within their VM. Operators don’t care about what’s occurring within the VM.

Motivation Related Work EECS 582 – W166 ApproachFeature Collective projectstop-and-copy Zapstop-and-copy VMotionsimilar with live migration Process migrationresidual dependencies

Design-challenges Minimize service downtime Minimize migration duration Avoid disrupting running service EECS 582 – W167.BI N.VS V.X ML.VH D Source Host Destination Host Storage

Design-memory migration EECS 582 – W168 Options Phaseservice downtimemigration duration push-- stop-and-copylongestshortest pull (demand)shortestlongest Pre-copy a bounded iterative push phase + a very short stop-and-copy phase Careful to avoid service degradation

Design-local resources EECS 582 – W169 Open network connections Migrating VM can keep IP and MAC address. Broadcasts ARP new routing information Some routers might ignore to prevent spoofing A guest OS aware of migration can avoid this problem Local storage Network Attached Storage

Design-local resources EECS 582 – W1610 Virtual Machine SourceDestination

Design-overview EECS 582 – W1611

Implementation-writable working sets Significant overhead: transferring memory pages that are subsequently modified.  Good candidates for push phase Pages are seldom or never modified.  Writeable working set (WWS) Pages are written often, and should best be transferred via stop-and-copy WWS behavior WWS varies significantly between the different sub-benchmarks Migration results depend on the workload and the precise moment when migration begins EECS 582 – W1612

Implementation-managed & self migration Managed migration Performed by a migration daemon running in the management VM Self migration Within the migratee OS, and a small stub required on the destination host EECS 582 – W1613 DifferenceManagedSelf Track WWSshadow page table + bitmapbitmap + a spare bit in PTE Stop-and-copy suspend OS to obtain a consistent checkpoint two-stage stop-and-copy, ignore page updates in last transfer

Implementation-track WWS (managed) EECS 582 – W1614 Using shadow page table to track dirty pages in each push round 1.Xen inserts shadow pages under the guest OS, populated using guest OS's page tables. 2.The shadow pages are marked read-only. 3.If OS tries to write to a page, the resulting page fault is trapped by Xen. 4.Xen checks the OS's original page table and forwards the appropriate write permission. 5.At the same time, Xen marks the page as dirty in bitmap. At the beginning of next push round Last round’s bitmap is copied to the control software, Xen’s bitmap is cleared. Shadow page tables are destroyed and recreated, all write permissions are lost

Implementation-dynamic rate limiting EECS 582 – W1615 More network bandwidth, less service downtime ! downtimeperformance Less network bandwidth, less impact on running service !

Implementation-paravirtualized optimizations Stunning rouge processes Rouge process: generate dirty page at a very high rate (write one word in every page) Forking a monitor process: monitor the WWS of individual processes If a process exceeds write fault limitation, then move it to wait queue Freeing page cache pages Typically, OS have a number of free pages Using ballooning mechanism to return free pages to VMM EECS 582 – W1616

Evaluation-simple web server EECS 582 – W1617 A highly loaded server with relative small WWS Controlled impact on live services Short downtime Migration starts

Evaluation-rapid page dirtying EECS 582 – W1618 In the third round, the transfer rate is scaled up to 500Mbit/s (max) Switch to stop-and-copy, resulting in 3.5s downtime Diabolical workload may suffer considerable service downtime Stop-and-copy

Conclusion OS-level live migration Pre-copy: iterative push and short stop-and-copy Dynamically adapting network-bandwidth  Balance service downtime and service performance degradation Paravirtualized optimizations Minimize service downtime and impact on running service EECS 582 – W1619

Future Work Cluster management  Make decisions for the placement and movement of virtual machines Wide Area Network Redirection  OS will have to obtain a new IP address, or some kind of indirection layer Storage Migration  Local disks are considerably larger than volatile memory EECS 582 – W1620

Q&A Thank You! EECS 582 – W1621