# US 2021/0286691 A1 · Using a mirroring cache list to mirror modified tracks

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

- Number: US 2021/0286691 A1
- Document ID: US20210286691A1
- Status: Published application
- Kind: A1
- Application number: 16/818,521
- Filed: 2020-03-13
- Published: 2021-09-16
- Earliest claimed: 2020-03-13
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Lokesh Mohan Gupta; Kevin J. Ash; Kyler A. Anderson; Matthew J. Kalos
- Web page: https://patentgrep.com/patent/US20210286691A1

## CPC

- G06F 11/2056: {by mirroring}
- G06F 11/076: {by exceeding a count or rate limit, e.g. word- or bit count limit}
- 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 12/0811: with multilevel cache hierarchies
- G06F 12/0868: Data transfer between cache memory and other subsystems, e.g. storage devices or host systems
- G06F 12/0891: using clearing, invalidating or resetting means
- G06F 12/123: with age lists, e.g. queue, most recently used [MRU] list or least recently used [LRU] list
- G06F 2201/81: Threshold
- G06F 2212/1041: Resource optimization
- G06F 2212/154: Networked environment
- G06F 2212/286: Mirrored cache memory
- G06F 2212/462: Track or segment
- G06F 2212/502: using adaptive policy
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Provided are a computer program product, system, and method for using a mirroring cache list to mirror modified tracks for a primary storage in a cache to a secondary storage. Indication is made of a modified track for the primary storage stored in the cache in a mirroring cache list. The mirroring cache list is processed to select modified tracks in the cache to transfer to the secondary storage that have not yet been transferred. The selected modified tracks are transferred to the secondary storage. Indication of a modified track is removed from the mirroring cache list in response to demoting the modified track from the cache.

## Claims

### Claim 1

A computer program product for mirroring modified tracks for a primary storage in a cache to mirror to a secondary storage, wherein the computer program product comprises a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause operations, the operations comprising:
indicating a modified track for the primary storage stored in the cache in a mirroring cache list;
processing the mirroring cache list to select modified tracks in the cache to transfer to the secondary storage that have not yet been transferred;
transferring the selected modified tracks to the secondary storage; and
removing indication of a modified track from the mirroring cache list in response to demoting the modified track from the cache.

### Claim 2 (depends on 1)

The computer program product of claim 1, wherein the mirroring cache list comprises a least recently used (LRU) list, wherein the operations further comprise:
maintaining a cursor pointing to a track indicated in the mirroring cache list;
selecting a modified track indicated in the mirroring cache list pointed to by the cursor to transfer to the secondary storage; and
moving the cursor to point to indication of a next modified track closer to a most recently used (MRU) end of the mirroring cache list, wherein indication of the selected modified track is maintained in the mirroring cache list after moving the cursor.

### Claim 3 (depends on 1)

The computer program product of claim 1, wherein the mirroring cache list comprises a first mirroring cache list to indicate a first type of modified track, wherein the operations further comprise:
indicating a modified track for the primary storage in the cache of a second type of modified track in a second mirroring cache list;
alternating selecting modified tracks indicated in the first mirroring cache list and the second mirroring cache list to transfer to the secondary storage; and
removing indication of a modified track from the second mirroring cache list in response to demoting the modified track from the cache.

### Claim 4 (depends on 3)

The computer program product of claim 3, wherein the alternating selecting modified tracks from the first and the second mirroring cache lists comprises:
transferring a first number of modified tracks indicated in the first mirroring cache list to the secondary storage; and
transferring a second number of modified tracks indicated in the second mirroring cache list to the secondary storage, wherein the first number is greater than the second number.

### Claim 5 (depends on 4)

The computer program product of claim 4, wherein the operations further comprise:
determining whether a ratio of the first mirroring cache list to the second mirroring cache list exceeds a threshold; and
increasing the first number of modified tracks in response to determining that the ratio exceeds the threshold.

### Claim 6 (depends on 3)

The computer program product of claim 3, wherein the first type of modified track results from a sequential write process and wherein the second type of modified track results from a random write process.

### Claim 7 (depends on 1)

The computer program product of claim 1, wherein the operations further comprise:
maintaining a data structure indicating for each track in the primary storage whether the track is modified and needs to be transferred to the secondary storage or is unmodified and does not need to be transferred to the secondary storage; and
in response to selecting a modified track to transfer to the secondary storage, processing the data structure to determine consecutive modified tracks to the selected modified track not yet transferred to the secondary storage to transfer to the secondary storage with the selected modified track.

### Claim 8 (depends on 1)

The computer program product of claim 1, wherein the operations further comprise:
determining whether a modified track is to be copied to the secondary storage, wherein the modified track is indicated in the mirroring cache list in response to determining that the modified track is to be copied to the secondary storage; and
indicating the modified track in a demote cache list in response to determining that the modified track is not to be copied to the secondary storage, wherein modified tracks are selected from the demote cache list to demote from the cache to the primary storage.

### Claim 9

A system, for mirroring modified tracks for a primary storage to a secondary storage, further comprises:
a processor;
a cache accessible to the processor; and
a computer readable storage medium having program instructions embodied therewith, the program instructions that when executed by the processor cause operations, the operations comprising:
indicating a modified track for the primary storage stored in the cache in a mirroring cache list;
processing the mirroring cache list to select modified tracks in the cache to transfer to the secondary storage that have not yet been transferred;
transferring the selected modified tracks to the secondary storage; and
removing indication of a modified track from the mirroring cache list in response to demoting the modified track from the cache.

### Claim 10 (depends on 9)

The system of claim 9, wherein the mirroring cache list comprises a least recently used (LRU) list, wherein the operations further comprise:
maintaining a cursor pointing to a track indicated in the mirroring cache list;
selecting a modified track indicated in the mirroring cache list pointed to by the cursor to transfer to the secondary storage; and
moving the cursor to point to indication of a next modified track closer to a most recently used (MRU) end of the mirroring cache list, wherein indication of the selected modified track is maintained in the mirroring cache list after moving the cursor.

### Claim 11 (depends on 9)

The system of claim 9, wherein the mirroring cache list comprises a first mirroring cache list to indicate a first type of modified track, wherein the operations further comprise:
indicating a modified track for the primary storage in the cache of a second type of modified track in a second mirroring cache list;
alternating selecting modified tracks indicated in the first mirroring cache list and the second mirroring cache list to transfer to the secondary storage; and
removing indication of a modified track from the second mirroring cache list in response to demoting the modified track from the cache.

### Claim 12 (depends on 11)

The system of claim 11, wherein the first type of modified track results from a sequential write process and wherein the second type of modified track results from a random write process.

### Claim 13 (depends on 9)

The system of claim 9, wherein the operations further comprise:
maintaining a data structure indicating for each track in the primary storage whether the track is modified and needs to be transferred to the secondary storage or is unmodified and does not need to be transferred to the secondary storage; and
in response to selecting a modified track to transfer to the secondary storage, processing the data structure to determine consecutive modified tracks to the selected modified track not yet transferred to the secondary storage to transfer to the secondary storage with the selected modified track.

### Claim 14 (depends on 9)

The system of claim 9, wherein the operations further comprise:
determining whether a modified track is to be copied to the secondary storage, wherein the modified track is indicated in the mirroring cache list in response to determining that the modified track is to be copied to the secondary storage; and
indicating the modified track in a demote cache list in response to determining that the modified track is not to be copied to the secondary storage, wherein modified tracks are selected from the demote cache list to demote from the cache to the primary storage.

### Claim 15

A method for mirroring modified tracks for a primary storage in a cache to mirror to a secondary storage, comprising:
indicating a modified track for the primary storage stored in the cache in a mirroring cache list;
processing the mirroring cache list to select modified tracks in the cache to transfer to the secondary storage that have not yet been transferred;
transferring the selected modified tracks to the secondary storage; and
removing indication of a modified track from the mirroring cache list in response to demoting the modified track from the cache.

### Claim 16 (depends on 15)

The method of claim 15, wherein the mirroring cache list comprises a least recently used (LRU) list, further comprising:
maintaining a cursor pointing to a track indicated in the mirroring cache list;
selecting a modified track indicated in the mirroring cache list pointed to by the cursor to transfer to the secondary storage; and
moving the cursor to point to indication of a next modified track closer to a most recently used (MRU) end of the mirroring cache list, wherein indication of the selected modified track is maintained in the mirroring cache list after moving the cursor.

### Claim 17 (depends on 15)

The method of claim 15, wherein the mirroring cache list comprises a first mirroring cache list to indicate a first type of modified track, further comprising:
indicating a modified track for the primary storage in the cache of a second type of modified track in a second mirroring cache list;
alternating selecting modified tracks indicated in the first mirroring cache list and the second mirroring cache list to transfer to the secondary storage; and
removing indication of a modified track from the second mirroring cache list in response to demoting the modified track from the cache.

### Claim 18 (depends on 17)

The method of claim 17, wherein the first type of modified track results from a sequential write process and wherein the second type of modified track results from a random write process.

### Claim 19 (depends on 15)

The method of claim 15, further comprising:
maintaining a data structure indicating for each track in the primary storage whether the track is modified and needs to be transferred to the secondary storage or is unmodified and does not need to be transferred to the secondary storage; and
in response to selecting a modified track to transfer to the secondary storage, processing the data structure to determine consecutive modified tracks to the selected modified track not yet transferred to the secondary storage to transfer to the secondary storage with the selected modified track.

### Claim 20 (depends on 15)

The method of claim 15, further comprising:
determining whether a modified track is to be copied to the secondary storage, wherein the modified track is indicated in the mirroring cache list in response to determining that the modified track is to be copied to the secondary storage; and
indicating the modified track in a demote cache list in response to determining that the modified track is not to be copied to the secondary storage, wherein modified tracks are selected from the demote cache list to demote from the cache to the primary storage.
