# US 2017/0364430 A1 · Optimization of operating system and virtual machine monitor memory management

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

- Number: US 2017/0364430 A1
- Document ID: US20170364430A1
- Status: Published application
- Kind: A1
- Application number: 15/692,198
- Filed: 2017-08-31
- Published: 2017-12-21
- Earliest claimed: 2012-05-30
- Assignees: Red Hat Israel, Ltd.
- Applicants: Red Hat Israel, Inc.
- Inventors: Avi Kivity
- Web page: https://patentgrep.com/patent/US20170364430A1

## CPC

- G06F 11/3433: {for load management (allocation of a server based on load conditions G06F9/505; load rebalancing G06F9/5083; redistributing the load in a network by a load balancer H04L67/1029)}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/5016: {the resource being the memory}
- G06F 9/5022: {Mechanisms to release resources}
- G06F 11/348: {Circuit details, i.e. tracer hardware}
- G06F 12/10: Address translation
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2201/81: Threshold
- G06F 2201/815: Virtual
- G06F 2201/885: Monitoring specific for caches
- G06F 2212/151: Emulated environment, e.g. virtual machine
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method and system for collecting statistics associated with multiple memory nodes to determine if a read-only page is read accessed in aggregate by multiple processing devices of the multiple memory nodes at or above a first threshold value. If so, the read-only page may be replicated to an additional memory node. If a determination is made that the read-only page is read accessed in aggregate by the multiple processing devices below the first threshold value, the read-only page may be de-replicated upon receipt of a write request associated with the read-only page.

## Claims

### Claim 1

A method comprising:
determining, by a processing device, in view of memory statistics associated with a plurality of memory nodes, a read-only page is read accessed in aggregate by a plurality of processing devices of the plurality of memory nodes at or above a first threshold value;
replicating, by the processing device, the read-only page to an additional memory node;
determining the read-only page is read accessed in aggregate by the plurality of processing devices of the plurality of memory nodes below the first threshold value; and
de-replicating, by the processing device, the read-only page upon receipt of a write request associated with the read-only page.

### Claim 2 (depends on 1)

The method of claim 1, further comprising nominating the read-only page for replication via a communication to a scheduler.

### Claim 3 (depends on 2)

The method of claim 2, wherein the scheduler executes the replicating of the read-only page in response to determining an availability of resources.

### Claim 4 (depends on 1)

The method of claim 1, wherein the memory statistics comprise at least one of information relating to one or more cache misses, information relating to cross node references, or information relating to memory access time.

### Claim 5 (depends on 1)

The method of claim 1, further comprising nominating the read-only page for replication via a communication to a memory manager component, the memory manager component to receive a memory request and perform memory allocation according to at least one of a memory allocation policy or an availability of resources.

### Claim 6 (depends on 1)

The method of claim 1, wherein the plurality of memory nodes comprises a first memory node comprising a performance monitoring unit (PMU).

### Claim 7 (depends on 6)

The method of claim 6, wherein the PMU generates an interrupt in response to a at least one of a collection of at least a portion of the memory statistics or a filling of a memory buffer at or above a threshold buffer size.

### Claim 8

A non-transitory computer readable storage medium having instructions that, when executed by a processing device, cause the processing device to perform operations comprising:
collecting memory statistics associated with a local memory of a first memory node;
detecting, in view of the memory statistics, a first region of the local memory of the first memory node comprises a first page accessed at or above a first threshold value and a second page accessed at or above the first threshold value; and
nominating, by a processing device, the first region to be promoted to an updated region of the local memory.

### Claim 10 (depends on 9)

The non-transitory computer readable storage medium of claim 9, the operations further comprising promoting the first region to the updated region.

### Claim 11 (depends on 9)

The non-transitory computer readable storage medium of claim 9, wherein the updated region comprises a plurality of large pages.

### Claim 12 (depends on 11)

The non-transitory computer readable storage medium of claim 11, wherein at least one of the plurality of large pages is greater than or equal to 2 megabytes (MB).

### Claim 13 (depends on 11)

The non-transitory computer readable storage medium of claim 11, wherein the memory statistics comprise at least one of information relating to one or more cache misses, information relating to cross node references, or information relating to memory access time.

### Claim 14

A computing device comprising:
a memory; and
a processing device coupled to the memory, the processing device to:
determine, in view of memory statistics associated with a plurality of memory nodes, a read-only page is read accessed in aggregate by a plurality of processing devices of the plurality of memory nodes at or above a first threshold value;
replicate the read-only page to an additional memory node;
determine the read-only page is read accessed in aggregate by the plurality of processing devices of the plurality of memory nodes below the first threshold value; and
de-replicate the read-only page upon receipt of a write request associated with the read-only page.

### Claim 15 (depends on 14)

The computing device of claim 14, the processing device further to nominate the read-only page for replication via a communication to a scheduler.

### Claim 16 (depends on 15)

The computing device of claim 15, wherein the scheduler executes the replicating of the read-only page in response to determining an availability of resources.

### Claim 17 (depends on 14)

The computing device of claim 14, wherein the memory statistics comprise at least one of information relating to one or more cache misses, information relating to cross node references, or information relating to memory access time.

### Claim 18 (depends on 14)

The computing device of claim 14, the processing device further to nominate the read-only page for replication via a communication to a memory manager component, the memory manager component to receive a memory request and perform memory allocation according to at least one of a memory allocation policy or an availability of resources.

### Claim 19 (depends on 14)

The computing device of claim 14, wherein the plurality of memory nodes comprises a first memory node comprising a performance monitoring unit (PMU).

### Claim 20 (depends on 14)

The computing device of claim 14, wherein the PMU generates an interrupt in response to a at least one of a collection of at least a portion of the memory statistics or a filling of a memory buffer at or above a threshold buffer size.
