# US 10,956,322 B2 · Storage drive dependent track removal in a cache for storage

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

- Number: US 10,956,322 B2
- Document ID: US10956322B2
- Status: Granted
- Kind: B2
- Application number: 15/171,938
- Filed: 2016-06-02
- Published: 2017-12-07
- Granted: 2021-03-23
- Earliest claimed: 2016-06-02
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Kevin J. Ash; Matthew G. Borlick; Lokesh M. Gupta; Trung N. Nguyen
- Web page: https://patentgrep.com/patent/US10956322B2

## 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 12/121: using replacement algorithms
- G06F 2212/462: Track or segment
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In one embodiment, storage drive dependent track removal processing logic performs destage tasks for tracks cached in a cache as a function of whether the storage drive is classified as a fast class or as slow class of storage drives, for example. In one embodiment, a destage task configured for a slow class storage drive, transfers an entry for a track selected for destaging from a main cache list to a wait cache list to await destaging to the slow class drive. A destage task configured for a fast class storage drive allows the cache list entry for the selected track to remain on the main cache list while the selected track is being destaged to the fast class storage drive, thereby bypassing the transfer of the entry to a wait cache list. Other features and aspects may be realized, depending upon the particular application.

## Claims

### Claim 1

A method, comprising:
determining whether a first storage drive is one of a first class and a second class of storage drives wherein the second class of storage drives has an input/output speed performance characteristic which exceeds a corresponding input/output speed performance characteristic of the first class of storage drives; and
track removal processing tracks cached in a first cache as a function of whether the first storage drive is one of the first class and the second class of storage drives, said track removal processing including performing destage tasks, each destage task including:
selecting a first track for destaging from the first cache to the first storage drive wherein the selected first track is represented by a first entry of a first cache list of entries representing tracks cached in the first cache;
initiating destaging of the first track of the destage task;
in connection with initiation of destaging of the first track of the destage task, if the first storage drive is of the first class, removing the first entry from the first cache list and adding a representation of the selected first track as a second entry to a second cache list of entries wherein the second entry represents the selected first track;
continuing the destage task including destaging the first track from the first cache to the first storage drive; and
in response to successful completion of the destaging of the destage task, completing the destage task including:
removing the second entry from the second cache list if the first storage drive is of the first class; and
removing the first entry from the first cache list if the first storage drive is of the second class wherein transferring the first entry to the second cache list is bypassed if first storage drive is of the second class and wherein entries for a storage drive of the first class are removed from the first cache list sooner as compared to entries for a storage drive of the second class.

### Claim 2 (depends on 1)

The method of claim 1 wherein said determining includes determining whether the first storage drive has an input/output speed performance characteristic which exceeds a threshold.

### Claim 3 (depends on 2)

The method of claim 2 wherein said input/output speed performance characteristic of the first storage drive is a function of an average latency of destaging a track from the first cache to the first storage drive.

### Claim 4 (depends on 3)

The method of claim 3 wherein the threshold is a function of a duration of time taken to obtain a list lock to the first cache list.

### Claim 5 (depends on 1)

The method of claim 1 further comprising configuring destage tasks for the first cache list as a function of the determining whether the first storage drive is one of a first class and a second class of storage drives.

### Claim 6 (depends on 5)

The method of claim 5 wherein configuring destage tasks includes configuring each destage task for the first storage drive to remove an entry from the first cache list and add an entry to the second cache list of entries in connection with initiation of each destage task, if the first storage drive is determined to be of the first class, and configuring each destage task for the first storage drive to bypass both removing an entry from the first cache list and adding an entry to the second cache list of entries in connection with initiation of each destage task, if the first storage drive is determined to be of the second class.

### Claim 7

A device, comprising:
a plurality of storage drives including a first storage drive;
a storage control unit configured to control the plurality of storage drives, the storage control unit including:
a memory having a first cache configured to cache tracks for the first storage drive, and a first data structure including a first cache list and a second cache list, each list configured to have entries configured to represent tracks cached in the first cache including a first entry configured to represent a first track; and
drive dependent track removal processing logic implemented at least partially in hardware and configured to determine whether the first storage drive is one of a first class and a second class of storage drives wherein the second class of storage drives has an input/output speed performance characteristic which exceeds a corresponding input/output speed performance characteristic of the first class of storage drives, and to perform destage tasks for tracks cached in the first cache as a function of whether the first storage drive is one of the first class and the second class of storage drives, each destage task being configured to:
select a first track for destaging from the first cache to the first storage drive wherein the selected first track is represented by a first entry of a first cache list of entries representing tracks cached in the first cache;
initiate destaging of the first track of the destage task;
in connection with initiation of destaging of the first track of the destage task, if the first storage drive is of the first class, remove the first entry from the first cache list and add a representation of the selected first track as to a second entry of a second cache list of entries wherein the second entry is configured to represent the selected first track;
continue the destage task including destage the first track from the first cache to the first storage drive; and
in response to successful completion of the destaging of the destage task, complete the destage task including:
remove the second entry from the second cache list if the first storage drive is of the first class; and
remove the first entry from the first cache list if the first storage drive is of the second class wherein transferring the first entry to the second cache list is bypassed if first storage drive is of the second class and wherein entries for a storage drive of the first class are removed from the first cache list sooner as compared to entries for a storage drive of the second class.

### Claim 8 (depends on 7)

The device of claim 7 wherein the drive dependent track removal processing logic has drive classification logic implemented at least partially in hardware and configured to determine whether the first storage drive has an input/output speed performance characteristic which exceeds a threshold.

### Claim 9 (depends on 8)

The device of claim 8 wherein said input/output speed performance characteristic of the first storage drive is a function of an average latency of destaging a track from the first cache to the first storage drive.

### Claim 10 (depends on 9)

The device of claim 9 wherein the threshold is a function of a duration of time taken to obtain a list lock to the first cache list.

### Claim 11 (depends on 7)

The device of claim 7 wherein the drive dependent track removal processing logic has destage task configuration logic implemented at least partially in hardware and configured to configure destage tasks for the first cache list as a function of whether the first storage drive is one of a first class and a second class of storage drives.

### Claim 12 (depends on 11)

The device of claim 11 wherein the destage task configuration logic is further configured to configure each destage task for the first storage drive to remove an entry from the first cache list and add an entry to the second cache list of entries in connection with initiation of each destage task, if the first storage drive is determined to be of the first class, and to configure each destage task for the first storage drive to bypass both removing an entry from the first cache list and adding an entry to the second cache list of entries in connection with initiation of each destage task, if the first storage drive is determined to be of the second class.

### Claim 13

A computer program product for use in a computer system having a plurality of storage drives and a storage control unit having a cache and configured to control read operations from and write operations to the storage drives, wherein the computer program product comprises a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor of the computer system to cause processor operations, the processor operations comprising:
determining whether a first storage drive is one of a first class and a second class of storage drives wherein the second class of storage drives has an input/output speed performance characteristic which exceeds a corresponding input/output speed performance characteristic of the first class of storage drives; and
track removal processing tracks cached in a first cache as a function of whether the first storage drive is one of the first class and the second class of storage drives, said track removal processing including performing destage tasks, each destage task including:
selecting a first track for destaging from the first cache to the first storage drive wherein the selected first track is represented by a first entry of a first cache list of entries representing tracks cached in the first cache;
initiating destaging of the first track of the destage task;
in connection with initiation of destaging of the first track of the destage task, if the first storage drive is of the first class, removing the first entry from the first cache list and adding a representation of the selected first track as a second entry to a second cache list of entries wherein the second entry represents the selected first track;
continuing the destage task including destaging the first track from the first cache to the first storage drive; and
in response to successful completion of the destaging of the destage task, completing the destage task including:
removing the second entry from the second cache list if the first storage drive is of the first class; and
removing the first entry from the first cache list if the first storage drive is of the second class wherein transferring the first entry is bypassed if first storage drive is of the second class and wherein entries for a storage drive of the first class are removed from the first cache list sooner as compared to entries for a storage drive of the second class.

### Claim 14 (depends on 13)

The computer program product of claim 13 wherein said determining includes determining whether the first storage drive has an input/output speed performance characteristic which exceeds a threshold.

### Claim 15 (depends on 14)

The computer program product of claim 14 wherein said input/output speed performance characteristic of the first storage drive is a function of an average latency of destaging a track from the first cache to the first storage drive.

### Claim 16 (depends on 15)

The computer program product of claim 15 wherein the threshold is a function of a duration of time taken to obtain a list lock to the first cache list.

### Claim 17 (depends on 13)

The computer program product of claim 13 wherein the processor operations further comprise configuring destage tasks for the first cache list as a function of the determining whether the first storage drive is one of a first class and a second class of storage drives.

### Claim 18 (depends on 17)

The computer program product of claim 17 wherein configuring destage tasks includes configuring each destage task for the first drive to remove an entry from the first cache list and add an entry to the second cache list of entries in connection with initiation of each destage task, if the first storage drive is determined to be of the first class, and configuring each destage task for the first storage drive to bypass both removing an entry from the first cache list and adding an entry to the second cache list of entries in connection with initiation of each destage task, if the first storage drive is determined to be of the second class.
