# US 2012/0254545 A1 · Systems and methods for background destaging storage tracks

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

- Number: US 2012/0254545 A1
- Document ID: US20120254545A1
- Status: Published application
- Kind: A1
- Application number: 13/493,799
- Filed: 2012-06-11
- Published: 2012-10-04
- Earliest claimed: 2010-12-10
- Assignees: International Business Machines Corporation
- Inventors: Brent C. BEARDSLEY; Michael T. BENHASE; Binny S. GILL; Lokesh M. GUPTA; Sonny E. WILLIAMS
- Web page: https://patentgrep.com/patent/US20120254545A1

## CPC

- G06F 12/12: Replacement control
- G06F 12/0804: with main memory updating (G06F12/0806 takes precedence)
- G06F 12/0831: using a bus scheme, e.g. with bus monitoring or watching means
- G06F 12/0848: {Partitioned cache, e.g. separate instruction and operand caches}
- G06F 12/0866: for peripheral storage systems, e.g. disk cache
- 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/128: adapted to multidimensional cache systems, e.g. set-associative, multicache, multiset or multilevel
- G06F 2212/1041: Resource optimization
- G06F 2212/282: Partitioned cache
- G06F 2212/313: In storage device
- G06F 2212/314: In storage network, e.g. network attached cache
- G06F 2212/604: Details relating to cache allocation
- G06F 2212/621: Coherency control relating to peripheral accessing, e.g. from DMA or I/O device
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system includes a write cache configured to store a plurality of storage tracks and configured to be coupled to one or more hosts, and a processor coupled to the write cache. The processor includes code that, when executed by the processor, causes the processor to perform the method below. One method includes monitoring the write cache for write operations from the host(s) and determining if the host(s) is/are idle based on monitoring the write cache for write operations from the host(s). The storage tracks are destaged from the write cache if the host(s) is/are idle and are not destaged from the write cache if one or more of the hosts is/are not idle.

## Claims

### Claim 1

A method for background destaging storage tracks from a write cache configured to store a plurality of storage tracks when at least one host is idle, the method comprising:
monitoring, by a processor coupled to the write cache, the write cache for write operations from the at least one host;
determining if the at least one host is idle based on monitoring the write cache for write operations from the at least one host;
destaging storage tracks from the write cache if the at least one host is idle; and
refraining from destaging storage tracks from the write cache if the at least one host is not idle.

### Claim 2 (depends on 1)

The method of claim 1, wherein the write cache is partitioned into a plurality ranks each comprising a portion of the plurality of storage tracks, the method further comprising:
monitoring each rank for write operations from the at least one host; and
determining if the at least one host is idle with respect to each respective rank based on monitoring each rank for write operations from the at least one host such that the at least one host may be determined to be idle with respect to a first rank and not idle with respect to a second rank.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
destaging storage tracks from each respective rank when it is determined that the at least one host is idle with respect to a first set of ranks; and
refraining from destaging storage tracks from each rank when it is determined that the at least one host is not idle with respect to a second set of ranks such that storage tracks in the first set of ranks may be destaged while storage tracks in the second set of ranks are not being destaged.

### Claim 4 (depends on 3)

The method of claim 3, further comprising destaging four (4) tracks per second from each respective rank in which the at least one host is determined to be idle with respect to.

### Claim 5 (depends on 3)

The method of claim 3, further comprising:
determining that the at least one host is idle with respect to the first particular rank when the at least one host does not write to at least one storage track in the first particular rank within a predetermined amount of time when determining if the at least one host is idle with respect to each rank; and
determining that the at least one host is not idle with respect to the second particular rank when the at least one host writes to at least one storage track in the second particular rank within the predetermined amount of time when determining if the at least one host is idle with respect to each rank.

### Claim 6 (depends on 5)

The method of claim 5, further comprising setting a flag to a predetermined count on each respective rank every time one of the at least one host writes to at least one storage track on each rank.

### Claim 7 (depends on 6)

The method of claim 6, further comprising decrementing the flag on each respective rank for every predetermined unit of time in which the at least one host does not write data to each rank.
