IP Library › Granted Patent US 9,223,616
Granted Patent B2
US 9,223,616 · App. 13/036,732 · Granted Dec 29, 2015

Virtual machine resource reduction for live migration optimization

Inventor: Michael S. Tsirkin (Yokneam, IE)
Assignee: Red Hat Israel, Ltd.
G06F9/4856G06F9/5077
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,223,616
App. No.
13/036,732
Granted
Dec 29, 2015
Kind
B2
Abstract

A mechanism for virtual machine resource reduction for live migration optimization is disclosed. A method of the invention includes monitoring a rate of state change of a virtual machine (VM) undergoing a live migration, determining that the rate of state change of the VM exceeds a rate of state transfer of the VM during the live migration process, and adjusting one or more resources of the VM to decrease the rate of state change of the VM to be less than the rate of state transfer of the VM.

Claims (22)

1. A method, comprising:

monitoring, by a processing device of a host machine managing a virtual machine (VM), a rate of modification of memory pages of the VM during a live migration of the VM;

comparing, by the processing device of the host machine, the rate of modification to a rate of migration of the memory pages during the live migration; and

when the rate of modification exceeds the rate of migration, adjusting, by the host machine, one or more resources of the VM to decrease the rate of modification to be less than the rate of migration, wherein the adjusting comprises at least one of dividing the one or more resources by a first constant factor or multiplying a delay by a second constant factor, and wherein the adjusting is in view of the rate of migration and the rate of modification, and wherein the adjusting adjusts a speed of a first virtual CPU and a speed of a second virtual CPU separately.

2. The method of claim 1 , wherein the one or more resources of the VM comprises memory.

3. The method of claim 1 , wherein the speed of the first virtual CPU is adjusted in view of performance of the first virtual CPU, and wherein the speed of the second virtual CPU is adjusted in view of performance of the second virtual CPU.

4. The method of claim 1 , wherein the delay is in view of a pagefault on the VM.

5. A system, comprising:

a memory to store a virtual machine (VM); and

a processing device, operatively coupled to the memory, to:

the processing to:

monitor a rate of modification of memory pages of the VM during a live migration of the VM,

compare the rate of modification to a rate of migration of the memory pages during the live migration, and

when the rate of modification exceeds the rate of migration, adjust one or more resources of the VM to decrease the rate of modification to be less than the rate of migration, wherein the adjusting comprises at least one of dividing the one or more resources by a first constant factor or multiplying a delay by a second constant factor, and wherein the adjusting is in view of the rate of migration and the rate of modification, and wherein the adjusting adjusts a speed of a first virtual CPU and a speed of a second virtual CPU separately.

6. The system of claim 5 , wherein the speed of the first virtual CPU is adjusted in view of performance of the first virtual CPU, and wherein the speed of the second virtual CPU is adjusted in view of performance of the second virtual CPU.

7. The system of claim 5 , wherein the delay is in view of a pagefault on the VM.

8. A non-transitory machine-readable storage medium including instructions that, when accessed by a processing device, cause the processing device to:

monitor, by the processing device of a host machine managing a virtual machine (VM), a rate of modification of memory pages of the VM during a live migration of the VM;

compare, by the processing device, the rate of modification to a rate of migration of the memory pages during the live migration; and

when the rate of modification exceeds the rate of migration, adjust one or more resources of the VM to decrease the rate of modification to be less than the rate of migration, wherein the adjusting comprises at least one of dividing the one or more resources by a first constant factor or multiplying a delay by a second constant factor, and wherein the adjusting is in view of the rate of migration and the rate of modification, and wherein the adjusting adjusts a speed of a first virtual CPU and a speed of a second virtual CPU separately.

9. The non-transitory machine-readable storage medium of claim 8 , wherein the speed of the first virtual CPU is adjusted in view of performance of the first virtual CPU, and wherein the speed of the second virtual CPU is adjusted in view of performance of the second virtual CPU.

10. The non-transitory machine-readable storage medium of claim 8 , wherein the delay is in view of a pagefault on the VM.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 28, 2011
From: TSIRKIN, MICHAEL S.
To: RED HAT ISRAEL, LTD.
Reel/Frame 025873/0312 →
Continuity (1)
Related Publication 20120221710A1 · Aug 30, 2012