# US 2021/0279174 A1 · Using multi-tiered cache to satisfy input/output requests

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

- Number: US 2021/0279174 A1
- Document ID: US20210279174A1
- Status: Published application
- Kind: A1
- Application number: 16/813,507
- Filed: 2020-03-09
- Published: 2021-09-09
- Earliest claimed: 2020-03-09
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Beth Ann Peterson; Kevin J. Ash; Lokesh Mohan Gupta; Warren Keith Stanley; Roger G. Hathorn
- Web page: https://patentgrep.com/patent/US20210279174A1

## CPC

- G06F 12/0811: with multilevel cache hierarchies
- G06F 9/505: {considering the load}
- G06F 11/3037: {where the computing system component is a memory, e.g. virtual memory, cache (accessing, addressing or allocating within memory systems or architectures G06F12/00; checking stores for correct operation G11C29/00)}
- G06F 11/3055: {Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available (error or fault processing without redundancy G06F11/0703; error detection or correction by redundancy in data representation G06F11/08; error detection or correction of the data by redundancy in operations G06F11/14; error detection or correction by redundancy in hardware G06F11/16)}
- G06F 11/3442: {for planning or managing the needed capacity}
- G06F 12/0866: for peripheral storage systems, e.g. disk cache
- G06F 12/0871: Allocation or management of cache space
- G06F 12/0888: using selective caching, e.g. bypass
- G06F 12/0891: using clearing, invalidating or resetting means
- G06F 12/0897: with two or more cache hierarchy levels (with multilevel cache hierarchies G06F12/0811)
- G11C 11/406: Management or control of the refreshing or charge-regeneration cycles
- G06F 2201/885: Monitoring specific for caches
- G06F 2209/5019: Workload prediction
- G06F 2212/1016: Performance improvement
- G06F 2212/214: Solid state disk
- G06F 2212/262: configured as RAID
- G06F 2212/283: Plural cache memories
- G06F 2212/502: using adaptive policy
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

A computer-implemented method, according to one approach, includes: receiving a stream of incoming I/O requests, all of which are satisfied using one or more buffers in a primary cache. However, in response to determining that the available capacity of the one or more buffers in the primary cache is outside a predetermined range: one or more buffers in the secondary cache are allocated. These one or more buffers in the secondary cache are used to satisfy at least some of the incoming I/O requests, while the one or more buffers in the primary cache are used to satisfy a remainder of the incoming I/O requests. Moreover, in response to determining that the available capacity of the one or more buffers in the primary cache is not outside the predetermined range: the one or more buffers in the primary cache are again used to satisfy all of the incoming I/O requests.

## Claims

### Claim 1

A computer-implemented method, comprising:
receiving a stream of incoming input/output (I/O) requests;
using one or more buffers in a primary cache to satisfy all of the incoming I/O requests, wherein the primary cache is coupled to a secondary cache and a data storage device;
monitoring an available capacity of the one or more buffers in the primary cache;
in response to determining that the available capacity of the one or more buffers in the primary cache is outside a predetermined range:
allocating one or more buffers in the secondary cache,
using the one or more buffers in the secondary cache to satisfy at least some of the incoming I/O requests, and
using the one or more buffers in the primary cache to satisfy a remainder of the incoming I/O requests; and
in response to determining that the available capacity of the one or more buffers in the primary cache is not outside the predetermined range:
using the one or more buffers in the primary cache to satisfy all of the incoming I/O requests.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the primary cache includes dynamic random access memory.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, comprising:
in response to determining that the available capacity of the one or more buffers in the primary cache is not outside the predetermined range:
transferring any remaining I/O requests in the one or more buffers in the secondary cache to the one or more buffers in the primary cache; and
releasing the one or more buffers in the secondary cache.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, comprising:
in response to determining that the available capacity of the one or more buffers in the primary cache is not outside the predetermined range:
using the secondary cache to satisfy any remaining I/O requests in the one or more buffers in the secondary cache; and
releasing the one or more buffers in the secondary cache.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, comprising:
anticipating a workload having a number of I/O requests;
determining whether the primary cache will be able to satisfy the number of I/O requests in the anticipated workload without causing the available capacity of the one or more buffers in the primary cache to fall outside the predetermined range;
in response to determining that the primary cache will not be able to satisfy the number of I/O requests in the anticipated workload without causing the available capacity of the one or more buffers in the primary cache to fall outside the predetermined range, allocating one or more buffers in the secondary cache;
using the one or more buffers in the secondary cache to satisfy the number of I/O requests in the anticipated workload; and
using the one or more buffers in the primary cache to satisfy a remainder of the incoming I/O requests.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, wherein determining whether the primary cache will be able to satisfy the number of I/O requests in the anticipated workload without causing the available capacity of the one or more buffers in the primary cache to fall outside the predetermined range includes:
evaluating one or more performance characteristics of the primary cache,
wherein the one or more performance characteristics are selected from the group consisting of: a number of the buffers in the primary cache that are in use, a turnover rate for the buffers in the primary cache, current I/O rates, and the types of I/O requests that are in the one or more buffers in the primary cache.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the secondary cache includes a first tier of storage class memory and a second tier of storage class memory, wherein performance characteristics of the first tier of storage class memory are greater than performance characteristics of the second tier of storage class memory.

### Claim 8 (depends on 7)

The computer-implemented method of claim 7, wherein the primary cache includes dynamic random access memory.

### Claim 9

A computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions readable and/or executable by a processor to cause the processor to:
receive, by the processor, a stream of incoming input/output (I/O) requests;
use, by the processor, one or more buffers in a primary cache to satisfy all of the incoming I/O requests, wherein the primary cache is coupled to a secondary cache and a data storage device;
monitor, by the processor, an available capacity of the one or more buffers in the primary cache;
in response to determining that the available capacity of the one or more buffers in the primary cache is outside a predetermined range:
allocate, by the processor, one or more buffers in the secondary cache,
use, by the processor, the one or more buffers in the secondary cache to satisfy at least some of the incoming I/O requests, and
use, by the processor, the one or more buffers in the primary cache to satisfy a remainder of the incoming I/O requests; and
in response to determining that the available capacity of the one or more buffers in the primary cache is not outside the predetermined range:
use, by the processor, the one or more buffers in the primary cache to satisfy all of the incoming I/O requests.

### Claim 10 (depends on 9)

The computer program product of claim 9, wherein the primary cache includes dynamic random access memory.

### Claim 11 (depends on 9)

The computer program product of claim 9, wherein the program instructions are readable and/or executable by the processor to cause the processor to:
in response to determining that the available capacity of the one or more buffers in the primary cache is not outside the predetermined range:
transfer, by the processor, any remaining I/O requests in the one or more buffers in the secondary cache to the one or more buffers in the primary cache; and
release, by the processor, the one or more buffers in the secondary cache.

### Claim 12 (depends on 9)

The computer program product of claim 9, wherein the program instructions are readable and/or executable by the processor to cause the processor to:
in response to determining that the available capacity of the one or more buffers in the primary cache is not outside the predetermined range:
use, by the processor, the secondary cache to satisfy any remaining I/O requests in the one or more buffers in the secondary cache; and
release, by the processor, the one or more buffers in the secondary cache.

### Claim 13 (depends on 9)

The computer program product of claim 9, wherein the program instructions are readable and/or executable by the processor to cause the processor to:
anticipate, by the processor, a workload having a number of I/O requests;
determine, by the processor, whether the primary cache will be able to satisfy the number of I/O requests in the anticipated workload without causing the available capacity of the one or more buffers in the primary cache to fall outside the predetermined range;
in response to determining that the primary cache will not be able to satisfy the number of I/O requests in the anticipated workload without causing the available capacity of the one or more buffers in the primary cache to fall outside the predetermined range, allocate, by the processor, one or more buffers in the secondary cache;
use, by the processor, the one or more buffers in the secondary cache to satisfy the number of I/O requests in the anticipated workload; and
use, by the processor, the one or more buffers in the primary cache to satisfy a remainder of the incoming I/O requests.

### Claim 14 (depends on 13)

The computer program product of claim 13, wherein determining whether the primary cache will be able to satisfy the number of I/O requests in the anticipated workload without causing the available capacity of the one or more buffers in the primary cache to fall outside the predetermined range includes:
evaluating one or more performance characteristics of the primary cache,
wherein the one or more performance characteristics are selected from the group consisting of: a number of the buffers in the primary cache that are in use, a turnover rate for the buffers in the primary cache, current I/O rates, and the types of I/O requests that are in the one or more buffers in the primary cache.

### Claim 15 (depends on 9)

The computer program product of claim 9, wherein the secondary cache includes a first tier of storage class memory and a second tier of storage class memory, wherein performance characteristics of the first tier of storage class memory are greater than performance characteristics of the second tier of storage class memory.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the primary cache includes dynamic random access memory.

### Claim 17

A system, comprising:
a processor, wherein the processor is coupled to a primary cache and a secondary cache; and
logic integrated with the processor, executable by the processor, or integrated with and executable by the processor, the logic being configured to:
receive, by the processor, a stream of incoming input/output (I/O) requests;
use, by the processor, one or more buffers in a primary cache to satisfy all of the incoming I/O requests, wherein the primary cache is coupled to a secondary cache and a data storage device;
monitor, by the processor, an available capacity of the one or more buffers in the primary cache;
in response to determining that the available capacity of the one or more buffers in the primary cache is outside a predetermined range:
allocate, by the processor, one or more buffers in the secondary cache,
use, by the processor, the one or more buffers in the secondary cache to satisfy at least some of the incoming I/O requests, and
use, by the processor, the one or more buffers in the primary cache to satisfy a remainder of the incoming I/O requests; and
in response to determining that the available capacity of the one or more buffers in the primary cache is not outside the predetermined range:
use, by the processor, the one or more buffers in the primary cache to satisfy all of the incoming I/O requests.

### Claim 18 (depends on 17)

The system of claim 17, wherein the primary cache includes dynamic random access memory.

### Claim 19 (depends on 17)

The system of claim 17, the logic being configured to:
in response to determining that the available capacity of the one or more buffers in the primary cache is not outside the predetermined range:
transfer, by the processor, any remaining I/O requests in the one or more buffers in the secondary cache to the one or more buffers in the primary cache; and
release, by the processor, the one or more buffers in the secondary cache.

### Claim 20 (depends on 17)

The system of claim 17, the logic being configured to:
in response to determining that the available capacity of the one or more buffers in the primary cache is not outside the predetermined range:
use, by the processor, the secondary cache to satisfy any remaining I/O requests in the one or more buffers in the secondary cache; and
release, by the processor, the one or more buffers in the secondary cache.

### Claim 21 (depends on 17)

The system of claim 17, the logic being configured to:
anticipate, by the processor, a workload having a number of I/O requests;
determine, by the processor, whether the primary cache will be able to satisfy the number of I/O requests in the anticipated workload without causing the available capacity of the one or more buffers in the primary cache to fall outside the predetermined range;
in response to determining that the primary cache will not be able to satisfy the number of I/O requests in the anticipated workload without causing the available capacity of the one or more buffers in the primary cache to fall outside the predetermined range, allocate, by the processor, one or more buffers in the secondary cache;
use, by the processor, the one or more buffers in the secondary cache to satisfy the number of I/O requests in the anticipated workload; and
use, by the processor, the one or more buffers in the primary cache to satisfy a remainder of the incoming I/O requests.

### Claim 22 (depends on 21)

The system of claim 21, wherein determining whether the primary cache will be able to satisfy the number of I/O requests in the anticipated workload without causing the available capacity of the one or more buffers in the primary cache to fall outside the predetermined range includes:
evaluating one or more performance characteristics of the primary cache,
wherein the one or more performance characteristics are selected from the group consisting of: a number of the buffers in the primary cache that are in use, a turnover rate for the buffers in the primary cache, current I/O rates, and the types of I/O requests that are in the one or more buffers in the primary cache.

### Claim 23 (depends on 17)

The system of claim 17, wherein the secondary cache includes a first tier of storage class memory and a second tier of storage class memory, wherein performance characteristics of the first tier of storage class memory are greater than performance characteristics of the second tier of storage class memory.

### Claim 24 (depends on 23)

The system of claim 23, wherein the primary cache includes dynamic random access memory.
