# US 2015/0178222 A1 · Asynchronous swap mechanism and page eviction from memory

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

- Number: US 2015/0178222 A1
- Document ID: US20150178222A1
- Status: Published application
- Kind: A1
- Application number: 14/134,365
- Filed: 2013-12-19
- Published: 2015-06-25
- Earliest claimed: 2013-12-19
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Jenifer Hopper; Mark A. Peloquin; Steven L. Pratt; Karl M. Rister
- Web page: https://patentgrep.com/patent/US20150178222A1

## CPC

- G06F 12/121: using replacement algorithms
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/065: {Replication mechanisms}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 2212/401: Compressed data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of the invention relate to mitigating page eviction from cache memory. Pages of data in the cache are compressed, and are periodically swapped to a physical storage device to create space in the cache for additional pages. To avoid the impact of eviction latencies, an asynchronous thread scanning process scans the cache for any pages that are not committed to the storage device, decompresses a selected one of the pages, and asynchronously writes the decompressed page copy to the physical storage device. The compressed copy of the selected page remains in the cache during the asynchronous write with an indicator for the page set to convey that a replica of the page has been written to physical storage, allowing for efficient eviction from the in-memory pool at a later time.

## Claims

### Claim 1

A method comprising:
scanning a memory device for one or more pages of memory uncommitted to a physical storage device;
selecting a copy of at least one uncommitted page from the memory device;
decompressing the selected page copy;
asynchronously writing the decompressed page copy to the physical storage device; and
with the compressed copy of the selected page remaining in the memory device, indicating that a replica of the page has been written to physical storage.

### Claim 2 (depends on 1)

The method of claim 1, further comprising the compressed page remaining in the memory device during writing of the decompressed page copy to the physical storage device.

### Claim 3 (depends on 2)

The method of claim 2, further comprising in response to the memory device reaching capacity, scanning the memory device for at least one page having a replica indicator.

### Claim 4 (depends on 3)

The method of claim 3, further comprising removing the compressed page having the replica indicator from the memory device.

### Claim 5 (depends on 3)

The method of claim 3, wherein the replica indicator is a flag indicating a copy of the page is on the physical storage.

### Claim 6

A computer program product for managing a memory device, the computer program product comprising a computer readable storage device having program code embodied therewith, the program code executable by a processor to:
scan the memory device for one or more pages of memory uncommitted to a physical storage device;
select a copy of at least one uncommitted page from the memory device;
decompress the selected page copy;
asynchronously write the decompressed page copy to the physical storage device; and
with the compressed copy of the selected page remaining in the memory device, indicate that a replica of the page has been written to physical storage.

### Claim 7 (depends on 6)

The computer program product of claim 6, further comprising program code for the compressed page to remain in the memory device during writing of the decompressed page copy to the physical storage device.

### Claim 8 (depends on 7)

The computer program product of claim 7, further comprising in response to the memory device reaching capacity, program code to scan the memory device for at least one page having a replica indicator.

### Claim 9 (depends on 8)

The computer program product of claim 8, further comprising program code to remove the compressed page having the replica indicator from the memory device.

### Claim 10 (depends on 8)

The computer program product of claim 8, wherein the replica indicator is a flag indicating a copy of the page is on the physical storage.

### Claim 11

A computer system comprising:
a processing unit operatively coupled to a memory device;
the memory device in communication with a physical storage device;
tools in communication with the processing unit to manage the memory device, including:
a scanner to scan the memory device for one or more pages of memory uncommitted to the physical storage device;
a selector in communication with the scanner, the selector to select a copy of at least one uncommitted page from the memory device;
a manager in communication with the selector, the manager to asynchronously write a decompressed page copy to the physical storage device with a compressed copy of the selected page to remain in the memory device as an indicator that a replica of the page has been written to the physical storage device.

### Claim 12 (depends on 11)

The system of claim 11, further comprising the manager to write the decompressed page copy to the physical storage device while the compressed page remains in the memory device.

### Claim 13 (depends on 12)

The system of claim 12, further comprising the manager to scan the memory device for at least one page having a replica indicator in response to the memory device reaching capacity.

### Claim 14 (depends on 13)

The system of claim 13, further comprising the manager to remove the compressed page with the replica indicator form the memory device.

### Claim 15 (depends on 13)

The system of claim 13, wherein the replica indicator is a flag to indicate a copy of the page is on the physical storage device.
