# US 9,436,614 B2 · Application-directed memory de-duplication

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

- Number: US 9,436,614 B2
- Document ID: US9436614B2
- Status: Granted
- Kind: B2
- Application number: 13/875,702
- Filed: 2013-05-02
- Published: 2014-11-06
- Granted: 2016-09-06
- Earliest claimed: 2013-05-02
- Assignees: Globalfoundries Inc.
- Applicants: Globalfoundries Inc.
- Inventors: Michael H. Dawson; Arun K. Iyengar; Graeme Johnson
- Web page: https://patentgrep.com/patent/US9436614B2

## CPC

- G06F 12/10: Address translation
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 12/08: in hierarchically structured memory systems, e.g. virtual memory systems
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2212/1016: Performance improvement
- G06F 2212/1044: Space efficiency improvement
- G06F 2212/152: Virtualized environment, e.g. logically partitioned system
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In a computing system including an application executing on top of a virtualization control layer, wherein the virtualization control layer maps portions of a virtual memory to portions of a physical memory, a method for managing memory including: identifying, by the application, a range of virtual memory whose probability of being replicated in the virtual memory exceeds a given threshold; obtaining, by the application, at least one memory address corresponding to the range of virtual memory; and passing, from the application to the virtualization control layer, an identifier for the range of virtual memory and the memory address corresponding to the range of virtual memory, wherein the identifier is useable by the virtualization control layer to identify similar ranges within the virtual memory.

## Claims

### Claim 1

In a computing system comprised of an application executing on top of a virtualization control layer, wherein the virtualization control layer maps portions of a virtual memory to portions of a physical memory, a method for managing memory comprising the steps of:
identifying, by the application, a range of the virtual memory whose probability of being replicated in the virtual memory exceeds a given threshold;
obtaining, by the application, at least one memory address corresponding to the range of virtual memory;
passing, from the application to the virtualization control layer, an identifier for the range of virtual memory and the memory address corresponding to the range of virtual memory, wherein the identifier is useable by the virtualization control layer to identify similar ranges within the virtual memory; and
providing an application programming interface configured to allow the identifier and the range of virtual memory to be passed down from the application to a guest operating system, and from the guest operating system to the virtualization control layer at runtime;
wherein the application executes on the guest operating system, and the guest operating system executes on the virtualization control layer; and
wherein the method further comprises the step of using at the virtualization control layer, based at least in part upon the identifier, delta encoding to reduce redundant information in the physical memory.

### Claim 2 (depends on 1)

The method of claim 1, wherein the application also obtains a size corresponding to the range of virtual memory and passes the size to the virtualization control layer along with the identifier and the memory address corresponding to the range of virtual memory.

### Claim 3 (depends on 2)

The method of claim 2, further comprising the step of searching, by the virtualization control layer, in a first mapping structure for a match with the identifier passed by the application.

### Claim 4 (depends on 3)

The method of claim 3, further comprising the step of creating, at the virtualization control layer, a new entry in the first mapping structure when no match is found for the identifier passed by the application.

### Claim 5 (depends on 4)

The method of claim 4, further comprising the step of validating, at the virtualization control layer, that the range of virtual memory has the same content as a matched entry in the first mapping structure.

### Claim 6 (depends on 5)

The method of claim 5, further comprising the step of configuring a second mapping structure such that the same portion of the physical memory is used to back the portion of the virtual memory corresponding to the range as is used to back portions of the virtual memory corresponding to the matched entry in the first mapping structure.

### Claim 7 (depends on 1)

The method of claim 1, wherein the range of virtual memory represents at least one virtual memory page.

### Claim 8 (depends on 1)

The method of claim 1, wherein the range of virtual memory is used to store at least one file read into memory.

### Claim 9 (depends on 1)

The method of claim 1, wherein the range of virtual memory is used to store at least one read only program artifact.

### Claim 10 (depends on 1)

The method of claim 1, wherein the virtualization control layer comprises a hypervisor.

### Claim 11 (depends on 1)

The method of claim 1, wherein the virtualization control layer comprises an operating system.

### Claim 12 (depends on 1)

The method of claim 1, wherein the identifier is useable by the virtualization control layer to limit comparison of memory pages to each other to particular memory pages.

### Claim 13 (depends on 1)

The method of claim 1, wherein the identifier is useable by the virtualization control layer to determine that the similar ranges within the virtual memory are likely to occur.

### Claim 14 (depends on 1)

The method of claim 1, further comprising the step of using at the virtualization control layer, based at least in part upon the identifier and the memory address corresponding to the range of virtual memory, delta encoding to reduce redundant information in the physical memory.

### Claim 15 (depends on 1)

The method of claim 1, wherein the delta encoding operates using an offset that represents a difference from a base memory page.

### Claim 16 (depends on 15)

The method of claim 15, wherein redundant information is reduced by de-duplicating a plurality of base memory pages.

### Claim 17 (depends on 1)

The method of claim 1, wherein the identifier passed by the application is selected by the application such that the identifier is the same as an identifier from another process in the guest operating system.

### Claim 18 (depends on 1)

The method of claim 1, further comprising the step of changing a page size of a portion of the physical memory that backs the identified range of virtual memory.

### Claim 19 (depends on 18)

The method of claim 18, wherein the page size of the portion of the physical memory that backs the identified range of virtual memory is reduced.

### Claim 20

In a computing system comprised of an application executing on top of a virtualization control layer, wherein the virtualization control layer maps portions of a virtual memory to portions of a physical memory, a method for managing memory comprising the steps of:
receiving, at the virtualization control layer from the application, an identifier for a range of virtual memory whose probability of being replicated in the virtual memory exceeds a given threshold and at least one memory address corresponding to the range of virtual memory;
using, by the virtualization control layer, the identifier to identify similar ranges within the virtual memory; and
providing an application programming interface configured to allow the identifier and the range of virtual memory to be passed down from the application to a guest operating system, and from the guest operating system to the virtualization control layer at runtime;
wherein the application executes on the guest operating system, and the guest operating system executes on the virtualization control layer; and
wherein the method further comprises the step of using at the virtualization control layer, based at least in part upon the identifier, delta encoding to reduce redundant information in the physical memory.
