# US 2010/0169536 A1 · Dynamic virtual machine memory management

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

- Number: US 2010/0169536 A1
- Document ID: US20100169536A1
- Status: Published application
- Kind: A1
- Application number: 12/345,469
- Filed: 2008-12-29
- Published: 2010-07-01
- Earliest claimed: 2008-12-29
- Assignees: Microsoft Corporation
- Inventors: Andrey Shedel; Mohamed Bouchet; Eric Traut; Osama M. Salem; Kevin Broas
- Web page: https://patentgrep.com/patent/US20100169536A1

## CPC

- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques for adjusting memory in virtual machines are disclosed.

## Claims

### Claim 1

A computer readable storage medium, comprising:
instructions for obtaining memory status for a guest operating system; and
instructions for adjusting, based on the obtained memory status, an amount of guest physical addresses reported to a memory manager of the guest operating system.

### Claim 2 (depends on 1)

The computer readable storage medium of claim 1, further comprising:
instructions for dissociating at least one memory block of guest physical addresses from system physical addresses.

### Claim 3 (depends on 1)

The computer readable storage medium of claim 1, further comprising:
instructions for determining that at least one memory block of guest physical addresses is dissociated with system physical addresses; and
instructions for associating the at least one memory block of guest physical addresses with at least one memory block of system physical addresses.

### Claim 4 (depends on 1)

The computer readable storage medium of claim 1, wherein the instructions for adjusting, based on the obtained memory status, an amount of guest physical addresses reported to a memory manager of the guest operating system further comprise:
instructions for adjusting the amount of memory available to the guest operating system based on a priority level of a virtual machine associated with the guest operating system.

### Claim 5 (depends on 1)

The computer readable storage medium of claim 1, wherein the instructions for adjusting, based on the obtained memory status, an amount of guest physical addresses reported to a memory manager of the guest operating system further comprise:
instructions for adjusting, based on the obtained memory status and a target memory status value of a virtual machine associated with the guest operating system, an amount of guest physical addresses reported to a memory manager of the guest operating system.

### Claim 6 (depends on 1)

The computer readable storage medium of claim 1, wherein the instructions for adjusting, based on the obtained memory status, an amount of guest physical addresses reported to a memory manager of the guest operating system further comprise:
instructions for adjusting, based on the obtained memory status and a minimum memory status value of a virtual machine associated with the guest operating system, an amount of guest physical addresses reported to a memory manager of the guest operating system.

### Claim 7 (depends on 1)

The computer readable storage medium of claim 1, wherein the instructions for adjusting, based on the obtained memory status, the amount of memory available to the guest operating system further comprise:
instructions for de-committing memory from a second guest operating system;
instructions for committing the de-committed memory to the guest operating system.

### Claim 8 (depends on 1)

The computer readable storage medium of claim 1, further comprising:
instructions for receiving physical memory notifications from a memory manager of the guest operating system; and
instructions for calculating the memory status from at least the physical memory notifications.

### Claim 9 (depends on 1)

The computer readable storage medium of claim 1, further comprising:
instructions for receiving guest operating system paging information from a memory manager of the guest operating system; and
instructions for calculating the memory status from at least the guest operating system paging information.

### Claim 10 (depends on 1)

The computer readable storage medium of claim 1, further comprising:
instructions for setting a polling rate for calculating the memory status information; and
instructions for adjusting the polling rate based on changes to the memory status information detected over time.

### Claim 11

A method, comprising:
calculating memory status of a guest operating system from at least physical memory notifications and guest operating system paging information; and
adjusting, during the runtime operation of the guest operating system, an amount of memory available to the guest operating system based on at least the memory status of the guest operating system.

### Claim 12 (depends on 11)

The method of claim 11, wherein adjusting the amount of memory available to the guest operating system further comprises:
adjusting memory from the guest operating system based on a determination that current memory status of the guest operating system is different than a target threshold.

### Claim 13 (depends on 11)

The method of claim 11, wherein adjusting the amount of memory available to the guest operating system further comprises:
committing memory to the guest operating system based on a determination that current memory status of the guest operating system is greater than a minimum threshold.

### Claim 14 (depends on 11)

The method of claim 11, wherein adjusting the amount of memory available to the guest operating system further comprises:
de-committing memory from a second guest operating system based on a determination that current memory status of the guest operating system is lower than a target threshold; and
committing the de-committed memory to the guest operating system.

### Claim 15 (depends on 11)

The method of claim 11, further comprising:
de-committing memory from the guest operating system; and
committing the de-committed memory to a host operating system.

### Claim 16

A computer system comprising:
circuitry for effectuating a guest operating system within a child partition, the guest operating system having a priority level;
circuitry for obtaining memory status from the guest operating system; and
circuitry for adjusting an amount of guest physical addresses reported to a memory manager of the guest operating system based on the obtained memory status and the priority level of the guest operating system.

### Claim 17 (depends on 16)

The computer system of claim 16, wherein the circuitry for adjusting the amount of guest physical addresses reported to the memory manager further comprises:
circuitry for committing an amount of memory to the guest operating system based on a determination that the memory status associated with the guest operating system is greater than a target threshold.

### Claim 18 (depends on 16)

The computer system of claim 16, wherein the circuitry for adjusting the amount of guest physical addresses reported to the memory manager further comprises:
circuitry for committing an amount of memory to the guest operating system based on a determination that the memory status associated with the guest operating system is greater than a minimum threshold.

### Claim 19 (depends on 16)

The computer system of claim 16, wherein the circuitry for adjusting the amount of guest physical addresses reported to the memory manager further comprises:
circuitry for de-committing memory committed to a second guest operating system based on a determination that the current memory status of the guest operating system is greater than a target threshold.
circuitry for committing the de-committed memory to the guest operating system.

### Claim 20 (depends on 16)

The computer system of claim 16, wherein the circuitry for adjusting the amount of guest physical addresses reported to a memory manager further comprises:
circuitry for de-committing memory from the guest operating system; and
circuitry for committing the de-committed memory to a host operating system.
