# US 2021/0286723 A1 · Indicating extents of tracks in mirroring queues based on information gathered on tracks in extents in cache

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

- Number: US 2021/0286723 A1
- Document ID: US20210286723A1
- Status: Published application
- Kind: A1
- Application number: 16/819,038
- 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/US20210286723A1

## CPC

- G06F 12/0804: with main memory updating (G06F12/0806 takes precedence)
- G06F 12/0868: Data transfer between cache memory and other subsystems, e.g. storage devices or host systems
- G06F 3/061: {Improving I/O performance}
- G06F 3/065: {Replication mechanisms}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0683: {Plurality of storage devices}
- G06F 12/123: with age lists, e.g. queue, most recently used [MRU] list or least recently used [LRU] list
- G06F 2212/1044: Space efficiency improvement
- G06F 2212/286: Mirrored cache memory
- G06F 2212/312: In storage controller
- G06F 2212/462: Track or segment
- G06F 2212/608: Details relating to cache mapping
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Provided are a computer program product, system, and method for indicating extents of tracks in mirroring queues based on information gathered on tracks in extents in cache. Extent information on an extent of tracks in a cache indicated in an active cache list is processed in response to destaging a track from the active cache list to add to a demote list used to determine tracks to remove from the cache. The extent information is related to a number of modified tracks in an extent destaged from the active cache list. The extent information for the extent is used to determine one of a plurality of mirroring queues to indicate the extent including modified tracks. A mirroring queue having a higher priority than another mirroring queue is processed at a higher rate to determine extents of tracks to mirror from the cache to the secondary storage.

## Claims

### Claim 1

A computer program product for mirroring extents of tracks at a primary storage to a secondary storage, wherein the computer program product comprises a computer readable storage medium having program instructions executable by a processor to cause operations, the operations comprising:
processing extent information on an extent of tracks in a cache indicated in an active cache list in response to destaging a track from the active cache list to add to a demote list used to determine tracks to remove from the cache, wherein the extent information is related to a number of modified tracks in an extent destaged from the active cache list; and
using the extent information for the extent to determine one of a plurality of mirroring queues to indicate the extent including modified tracks, wherein a mirroring queue having a higher priority than another mirroring queue is processed at a higher rate to determine extents of tracks to mirror from the cache to the secondary storage.

### Claim 2 (depends on 1)

The computer program product of claim 1, wherein the extent information indicates a number of modified tracks in the extent destaged and additionally at least one of a total number of tracks destaged for the extent and a number of modified tracks in the extent destaged with temporal bits set to off, wherein a temporal bit indicates a duration of the track in the cache.

### Claim 3 (depends on 1)

The computer program product of claim 1, wherein a mirroring queue having a higher priority than another mirroring queue is for extents having a greater number of modified tracks than the mirroring queue having a lower priority.

### Claim 4 (depends on 1)

The computer program product of claim 1, wherein each of the mirroring queues is associated with a range of values related to modified tracks in the extent, wherein a mirroring queue has a higher range of values than a mirroring queue associated with a lower priority.

### Claim 5 (depends on 1)

The computer program product of claim 1, wherein the demote list comprises a least recently used (LRU) list having a most recently used (MRU) end, wherein the operations further comprise:
determining whether a track indicated at the LRU end of the demote list has modified data and has not been added back to the MRU end from the LRU end while in the demote list;
moving the track at the LRU end to the MRU end in response to determining that the track at the LRU end has modified data and has not been added back to the MRU end from the LRU end while in the demote list; and
removing the track at the LRU end in response to determining at least one of that the track does not have modified data and the track is modified and has been added back to the MRU end from the LRU end of the demote list.

### Claim 6 (depends on 1)

The computer program product of claim 1, wherein the operations further comprise:
indicating that tracks in an extent do not have modified data in response to processing the extent in one of the mirroring queues to transfer the modified data in the tracks in the extent to the secondary storage.

### Claim 7 (depends on 1)

The computer program product of claim 1, wherein the extent information comprises destage extent information for extents destaged from the cache, wherein the operations further comprise:
maintaining demote extent information that indicates for extents indicated in the demote list a number of modified tracks in the extent; and
using the demote extent information for an extent to determine whether to move indication of an extent in one of the mirroring queues to a higher priority mirroring queue associated with extents having a greater number of modified tracks.

### Claim 8 (depends on 7)

The computer program product of claim 7, wherein the using the demote extent information for the extent to determine one of the mirroring queues in which to indicate the extent comprises:
calculating a priority factor based on the demote extent information; and
moving indication of the extent to a higher priority queue in response to determining that the priority factor exceeds a threshold.

### Claim 9 (depends on 8)

The computer program product of claim 8, wherein the demote extent information indicates for each extent a number of modified tracks in the extent demoted from the demote list and a number of modified tracks moved from a least recently used (LRU) end of the demote list to a most recently end (MRU) of the demote list, wherein the priority factor is calculated as a function of the number of modified tracks in the extent demoted and the number of modified tracks moved from the LRU end to the MRU end.

### Claim 10

A computer program product for mirroring extents at a primary storage to a secondary storage, wherein the computer program product comprises a computer readable storage medium having program instructions executable by a processor to cause operations, the operations comprising:
receiving extent information on an extent of tracks in cache that are indicated in a demote list indicating tracks to remove from the cache, wherein the extent information is related to a number of modified tracks in the extent; and
using the extent information for the extent to determine one of a plurality of mirroring queues to indicate the extent including modified tracks, wherein mirroring queues having a higher priority than other queues are processed at a greater rate to determine extents of tracks to mirror from the cache to the secondary storage.

### Claim 11 (depends on 10)

The computer program product of claim 10, wherein the operations further comprise:
processing a plurality of tracks in extents in the demote list to remove from the cache, wherein the extent information is gathered for extents based on a status of the tracks in the extents when processed in the demote list to remove from the cache.

### Claim 12

A system for mirroring extents of tracks at a primary storage to a secondary storage, comprising:
a processor; and
a computer readable storage medium having program instructions that when executed by the processor causes operations, the operations comprising:
processing extent information on an extent of tracks in a cache indicated in an active cache list in response to destaging a track from the active cache list to add to a demote list used to determine tracks to remove from the cache, wherein the extent information is related to a number of modified tracks in an extent destaged from the active cache list; and
using the extent information for the extent to determine one of a plurality of mirroring queues to indicate the extent including modified tracks, wherein a mirroring queue having a higher priority than another mirroring queue is processed at a higher rate to determine extents of tracks to mirror from the cache to the secondary storage.

### Claim 13 (depends on 12)

The system of claim 12, wherein the extent information indicates a number of modified tracks in the extent destaged and additionally at least one of a total number of tracks destaged for the extent and a number of modified tracks in the extent destaged with temporal bits set to off, wherein a temporal bit indicates a duration of the track in the cache.

### Claim 14 (depends on 12)

The system of claim 12, wherein a mirroring queue having a higher priority than another mirroring queue is for extents having a greater number of modified tracks than the mirroring queue having a lower priority.

### Claim 15 (depends on 12)

The system of claim 12, wherein the demote list comprises a least recently used (LRU) list having a most recently used (MRU) end, wherein the operations further comprise:
determining whether a track indicated at the LRU end of the demote list has modified data and has not been added back to the MRU end from the LRU end while in the demote list;
moving the track at the LRU end to the MRU end in response to determining that the track at the LRU end has modified data and has not been added back to the MRU end from the LRU end while in the demote list; and
removing the track at the LRU end in response to determining at least one of that the track does not have modified data and the track is modified and has been added back to the MRU end from the LRU end of the demote list.

### Claim 16 (depends on 12)

The system of claim 12, wherein the extent information comprises destage extent information for extents destaged from the cache, wherein the operations further comprise:
maintaining demote extent information that indicates for extents indicated in the demote list a number of modified tracks in the extent; and
using the demote extent information for an extent to determine whether to move indication of an extent in one of the mirroring queues to a higher priority mirroring queue associated with extents having a greater number of modified tracks.

### Claim 17 (depends on 16)

The system of claim 16, wherein the using the demote extent information for the extent to determine one of the mirroring queues in which to indicate the extent comprises:
calculating a priority factor based on the demote extent information; and
moving indication of the extent to a higher priority queue in response to determining that the priority factor exceeds a threshold.

### Claim 18

A system for mirroring extents of tracks at a primary storage to a secondary storage, comprising:
a processor; and
a computer readable storage medium having program instructions that when executed by the processor causes operations, the operations comprising:
receiving extent information on an extent of tracks in cache that are indicated in a demote list indicating tracks to remove from the cache, wherein the extent information is related to a number of modified tracks in the extent; and
using the extent information for the extent to determine one of a plurality of mirroring queues to indicate the extent including modified tracks, wherein mirroring queues having a higher priority than other queues are processed at a greater rate to determine extents of tracks to mirror from the cache to the secondary storage.

### Claim 19 (depends on 18)

The system of claim 18, wherein the operations further comprise:
processing a plurality of tracks in extents in the demote list to remove from the cache, wherein the extent information is gathered for extents based on a status of the tracks in the extents when processed in the demote list to remove from the cache.

### Claim 20

A method for mirroring extents of tracks at a primary storage to a secondary storage, comprising:
processing extent information on an extent of tracks in a cache indicated in an active cache list in response to destaging a track from the active cache list to add to a demote list used to determine tracks to remove from the cache, wherein the extent information is related to a number of modified tracks in an extent destaged from the active cache list; and
using the extent information for the extent to determine one of a plurality of mirroring queues to indicate the extent including modified tracks, wherein a mirroring queue having a higher priority than another mirroring queue is processed at a higher rate to determine extents of tracks to mirror from the cache to the secondary storage.

### Claim 21 (depends on 20)

The method of claim 20, wherein the extent information indicates a number of modified tracks in the extent destaged and additionally at least one of a total number of tracks destaged for the extent and a number of modified tracks in the extent destaged with temporal bits set to off, wherein a temporal bit indicates a duration of the track in the cache.

### Claim 22 (depends on 20)

The method of claim 20, wherein a mirroring queue having a higher priority than another mirroring queue is for extents having a greater number of modified tracks than the mirroring queue having a lower priority.

### Claim 23 (depends on 20)

The method of claim 20, wherein the demote list comprises a least recently used (LRU) list having a most recently used (MRU) end, further comprising:
determining whether a track indicated at the LRU end of the demote list has modified data and has not been added back to the MRU end from the LRU end while in the demote list;
moving the track at the LRU end to the MRU end in response to determining that the track at the LRU end has modified data and has not been added back to the MRU end from the LRU end while in the demote list; and
removing the track at the LRU end in response to determining at least one of that the track does not have modified data and the track is modified and has been added back to the MRU end from the LRU end of the demote list.

### Claim 24 (depends on 20)

The method of claim 20, wherein the extent information comprises destage extent information for extents destaged from the cache, further comprising:
maintaining demote extent information that indicates for extents indicated in the demote list a number of modified tracks in the extent; and
using the demote extent information for an extent to determine whether to move indication of an extent in one of the mirroring queues to a higher priority mirroring queue associated with extents having a greater number of modified tracks.

### Claim 25 (depends on 24)

The method of claim 24, wherein the using the demote extent information for the extent to determine one of the mirroring queues in which to indicate the extent comprises:
calculating a priority factor based on the demote extent information; and
moving indication of the extent to a higher priority queue in response to determining that the priority factor exceeds a threshold.
