Live Migration of Virtual Machines Christopher Clark, Keir Fraser, Steven Hand, Jacob Gorm Hansen†,Eric Jul†, Christian Limpach, Ian Pratt, Andrew Warfield University of Cambridge Computer Laboratory † Department of Computer Science ,University of Copenhagen, Denmark USENIX NSDI ‘05
Live Migration of Virtual Machines. Christopher Clark, Keir Fraser, Steven Hand, Jacob Gorm Hansen†,Eric Jul†, Christian Limpach , Ian Pratt, Andrew Warfield University of Cambridge Computer Laboratory † Department of Computer Science ,University of Copenhagen, Denmark. - PowerPoint PPT Presentation
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Live Migration of Virtual
MachinesChristopher Clark, Keir Fraser, Steven Hand, Jacob Gorm Hansen†,Eric Jul†, Christian Limpach, Ian Pratt, Andrew Warfield
University of Cambridge Computer Laboratory† Department of Computer Science ,University of Copenhagen, Denmark
USENIX NSDI ‘05
IntroductionOperating system virtualization has
attracted considerable interest in recent years-In data Centers, cluster computing communities
allows many OS instances to run concurrently on a single physical machine
Migrating an entire OS and all of its applications as one unit◦ Compared to the process migration (residual
dependencies)
IntroductionLive Migration
Without interfering the network connection
Allows a separation of concerns between the users and operator of a datacenter or cluster.
Allowing separation of hardware and software considerations
IntroductionDowntime
◦services are entirely unavailableTotal migration time
during which state on both machines is synchronized and which hence may affect reliability
This paper use the “pre-copy” approach to achieve live migration and target on decreasing the downtime (implemented on Xen)
DesignNetwork
Generate an ARP reply from the migrated host, advertising that the IP has moved to a new location.
StorageUse a network-attached storage (NAS) deviceDo not need to migrate disk storage
DesignMemory Transfer
◦ Push phase◦ Stop-and-copy phase◦ Pull phase
most practical solutions select one or two of the three phases ◦ pure stop-and-copy, pure demand
This paper uses iterative push phase with a typically very short stop-and-copy phase.
Related WorkShutdown the VMPre-CopyVMware
Related WorkPost-Copy Live Migration of
Virtual Machines Michael R. Hines, Umesh Deshpande, and Kartik
GopalanComputer Science, Binghamton University (SUNY)
ACM SIGPLAN/SIGOPS VEE’09
Design Overview
WritableWorking SetsSome pages will seldom or never be
modified and hence are good candidates for pre-copy
Some will be written often and so should best be transferred via stop-and-copy
=> WritableWorking Sets
WritableWorking Sets
WritableWorking Sets
Dynamic Rate-LimitingDynamically adapt the bandwidth limit
during each pre-copying round
The administrator selects a minimum(m) and a maximum(M) bandwidth limit
The first pre-copy round transfers pages at the minimum bandwidth m
Dynamic Rate-LimitingDirtying rate =
(the number of pages dirtied in the previous round)/ (duration of the previous round)
Bandwidth rate for next round = Dirtying rate + 50 Mbits/sec
Stop pre-copy when◦ Calculated rate > M◦ Less than 256KB remains to be tranferred
Some implementation issuesRapid Page Dirtying
◦Do not need to always transfer hot pages
Freeing Page Cache Pages◦In the first round
Stunning Rogue Processes◦ Limit each process to 40 write faults each time