# US 2024/0004683 A1 · Scheduling page migrations using latency tolerance

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0004683 A1
- Document ID: US20240004683A1
- Status: Published application
- Kind: A1
- Application number: 17/853,655
- Filed: 2022-06-29
- Published: 2024-01-04
- Earliest claimed: 2022-06-29
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Shachar RAINDEL; Daniel Sebastian BERGER
- Web page: https://patentgrep.com/patent/US20240004683A1

## CPC

- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 12/1009: using page tables, e.g. page table structures
- G06F 12/1036: for multiple virtual address spaces, e.g. segmentation (G06F12/1045 takes precedence)
- G06F 2009/4557: {Distribution of virtual machine instances; Migration and load balancing}
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2212/657: Virtual address space management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Solutions for scheduling page migrations use latency tolerance of coupled devices, such as external peripheral devices (e.g., network adapters), to prevent buffer overflows or other negative performance. A latency tolerance of a device coupled to a virtual object, such as a virtual machine (VM) is determined. This may include the device exposing its latency tolerance using latency tolerance reporting (LTR). When a page migration for the virtual object is pending, a determination is made whether sufficient time exists to perform the page migration, based on at least the latency tolerance of the device. The page migration is performed if sufficient time exists. Otherwise, the page migration is delayed. In some examples, latency tolerances of multiple devices are considered. In some examples, multiple page migrations are performed contemporaneously, based on latency tolerances. Various options are disclosed, such as the page migration being performed by the virtual object software or the device.

## Claims

### Claim 1

A system comprising:
a processor; and
a computer-readable medium storing instructions that are operative upon execution by the processor to:
determine a latency tolerance of a first device coupled to a virtual object;
determine a pendency of a page migration of a memory page for the virtual object;
based on at least the latency tolerance of the first device, determine that sufficient time exists to perform the page migration; and
based on at least determining that sufficient time exists to perform the page migration, perform the page migration.

### Claim 2 (depends on 1)

The system of claim 1, wherein determining the latency tolerance of the first device comprises:
determining the latency tolerance by the first device; or
determining the latency tolerance based on at least a report by the first device.

### Claim 3 (depends on 1)

The system of claim 1, wherein the instructions are further operative to:
determine a latency tolerance of a second device; and
based on at least the latency tolerance of the first device and the latency tolerance of the second device, determine whether sufficient time exists to perform the page migration.

### Claim 4 (depends on 1)

The system of claim 1, wherein the instructions are further operative to:
based on at least a prior page migration, estimate an amount of time required for the page migration.

### Claim 5 (depends on 1)

The system of claim 1, wherein the instructions are further operative to:
determine whether sufficient time exists to perform the page migration;
based on at least determining that sufficient time does not exist to perform the page migration, start a timer; and
based on a lapse of the timer, determine whether sufficient time exists to perform the page migration.

### Claim 6 (depends on 1)

The system of claim 1, wherein the instructions are further operative to:
instruct the first device to perform the page migration subject to sufficient time existing to perform the page migration.

### Claim 7 (depends on 1)

The system of claim 1, wherein the instructions are further operative to:
instruct the first device to provide an alert when sufficient time exists to perform the page migration.

### Claim 8

A computerized method comprising:
determining a latency tolerance of a first device coupled to a virtual object;
determining a pendency of a page migration of a memory page for the virtual object;
based on at least the latency tolerance of the first device, determining that sufficient time exists to perform the page migration; and
based on at least determining that sufficient time exists to perform the page migration, performing the page migration.

### Claim 9 (depends on 8)

The method of claim 8, wherein determining the latency tolerance of the first device comprises:
determining the latency tolerance by the first device; or
determining the latency tolerance based on at least a report by the first device.

### Claim 10 (depends on 8)

The method of claim 8, further comprising:
determining a latency tolerance of a second device; and
based on at least the latency tolerance of the first device and the latency tolerance of the second device, determining whether sufficient time exists to perform the page migration.

### Claim 11 (depends on 8)

The method of claim 8, further comprising:
based on at least a prior page migration, estimating an amount of time required for the page migration.

### Claim 12 (depends on 8)

The method of claim 8, further comprising:
determining whether sufficient time exists to perform the page migration;
based on at least determining that sufficient time does not exist to perform the page migration, starting a timer; and
based on a lapse of the timer, determining whether sufficient time exists to perform the page migration.

### Claim 13 (depends on 8)

The method of claim 8, further comprising:
instructing the first device to perform the page migration subject to sufficient time existing to perform the page migration.

### Claim 14 (depends on 8)

The method of claim 8, further comprising:
instructing the first device to provide an alert when sufficient time exists to perform the page migration.

### Claim 15

One or more computer storage devices having computer-executable instructions stored thereon, which, on execution by a computer, cause the computer to perform operations comprising:
determining a latency tolerance of a first device coupled to a virtual object;
determining a pendency of a page migration of a memory page for the virtual object;
based on at least the latency tolerance of the first device, determining that sufficient time exists to perform the page migration; and
based on at least determining that sufficient time exists to perform the page migration, performing the page migration.

### Claim 16 (depends on 15)

The one or more computer storage devices of claim 15, wherein determining the latency tolerance of the first device comprises:
determining the latency tolerance by the first device; or
determining the latency tolerance based on at least a report by the first device.

### Claim 17 (depends on 15)

The one or more computer storage devices of claim 15, wherein the operations further comprise:
determining a latency tolerance of a second device; and
based on at least the latency tolerance of the first device and the latency tolerance of the second device, determining whether sufficient time exists to perform the page migration.

### Claim 18 (depends on 15)

The one or more computer storage devices of claim 15, wherein the operations further comprise:
based on at least a prior page migration, estimating an amount of time required for the page migration.

### Claim 19 (depends on 15)

The one or more computer storage devices of claim 15, wherein the operations further comprise:
determining whether sufficient time exists to perform the page migration;
based on at least determining that sufficient time does not exist to perform the page migration, starting a timer; and
based on a lapse of the timer, determining whether sufficient time exists to perform the page migration.

### Claim 20 (depends on 15)

The one or more computer storage devices of claim 15, wherein the operations further comprise:
instructing the first device to perform the page migration subject to sufficient time existing to perform the page migration.
