• 沒有找到結果。

Live Migration of Virtual Machines

N/A
N/A
Protected

Academic year: 2022

Share "Live Migration of Virtual Machines"

Copied!
15
0
0

加載中.... (立即查看全文)

全文

(1)

Live Migration of Virtual Machines

Christopher Clark, Keir Fraser, Steven Hand, Jacob Gorm Hanseny,

Eric July, Christian Limpach, Ian Pratt, Andrew Wareld

(2)

Index

• Motivation

• Migration

• Pre-copy migration

• Challenge in Pre-copy

• Implementation

• Managed Migration(Xen)

• Self Migration

• Experiment

• Optimization

(3)

Motivation

• Why we need live migration?

We want to move VM without interrupting V M service.

Products:

• Xen 2.0 : live migration

• VMware:VMotion

(4)

Migration

• Two important consideration:

1. Downtime

2. Total migration time

• All migrations mechanism can be divided into three phases.

1. Push phase

2. Stop-and-copy phase 3. Pull phase

(5)

Migration

Example:

• Stop-and-copy

=> Only stop-and-copy phase

• Pure demand-migration

=> Stop-and-copy phase and Pull phase

• Pre-copy

=> Push phase and Stop-and-copy phase

(6)

Pre-copy migration

(7)

Challenge in Pre-copy

• Every VM have some set of pages which updat es very frequently.

• And the Sets size would influence downtime o f the migration.

ÞWritable Working Sets

• The bandwidth of network also impact the mi gration time.

(8)

Implementation

• There are two kinds of implementation of migration.

– Managed Migration

The physical machine has a management VM. (Xen)

– Self Migration

• There are three conditions to change into stop-and-c opy phase.

– The dirty rate is bigger than the upper bound.

– The size if working set is small enough.

– The limit of the rounds.

pages dirty

Current

#

pages dirty

Privious rate #

Dirty

(9)

Managed Migration(Xen)

1. 1st round:

– Copy all memory pages to destination machine.

– Replace original page table with shadow page table whose all pages are marked read-only .

– Create a dirty bit map for the VM.

2. 2nd-(n-1)th round:

– During the pages transferring, if VM want to modify a page, it will invoke Xen to set the appropriate bit in the dirty bit map.

– Dirty pages will be resend again.

– Reset dirty bit map for the next round.

3. nth round:

– When the Dirty rate is bigger than up bound, begin to do stop-and-copy.

(10)

Self Migration

1. 1st round:

– Copy all memory pages to destination machine.

– Mark all virtual address as write-protect.

– The OS create a dirty bit map(used to tracking physical pages) to memory the modified pag es.

2. 2nd-(n-1)th round:

– During the pages transferring, if write faults occur, OS will set the appropriate bit in the dirt y map.

– Dirty pages will resend again.

– Reset dirty bit map for the next round.

3. nth round:

– When the dirty rate is bigger than the upper bound, OS would disable all activities.

4. Copy all dirty pages to shadow buffer.

5. Transfer the buffer and ignore new page updates.

(11)

Web Server migration

(12)

SPECweb99 benchmark

(13)
(14)

A worst case example

(15)

Optimization

• Dynamic Rate-Limiting

• Rapid Page Dirtying

• Para-virtualized Optimization 1. Ballooning mechanism

2. Stunning rogue Process

參考文獻

相關文件

When all of the pages in a replacement block in the coarse- grained AddrTM are used, the valid pages in the replace- ment block are identified, and the mapping

EQUIPAMENTO SOCIAL A CARGO DO INSTITUTO DE ACÇÃO SOCIAL, Nº DE UTENTES E PESSOAL SOCIAL SERVICE FACILITIES OF SOCIAL WELFARE BUREAU, NUMBER OF USERS AND STAFF. ᑇؾ N

Television companies sell time in their commercial slots to people and companies who want to advertise their products.. If a program is really popular, it will be more expensive to

172, Zhongzheng Rd., Luzhou Dist., New Taipei City (5F International Conference Room, Teaching Building, National Open University)... 172, Zhongzheng Rd., Luzhou Dist., New

In this project, I will study the relation be- tween “the product of any two numbers that belong to a set of natural numbers” and.

On the course content page, click the function module to switch to different learning activities pages for learning; you can also directly click the "learning activity" in

Now, nearly all of the current flows through wire S since it has a much lower resistance than the light bulb. The light bulb does not glow because the current flowing through it

01/2019 Annually Senior Secondary Subject Information (Number and percentage of (a) schools' offering; and (b) students' taking of senior secondary subjects) is provided in CSV