Performing staging or destaging based on the number of waiting discard scans
AssigneeInternational Business Machines Corporation
InventorsMichael T. Benhase, Lokesh M. Gupta, Matthew J. Kalos
Life of this patent
Estimating the term…
Abstract
A controller receives a request to perform staging or destaging operations with respect to an area of a cache. A determination is made as to whether more than a threshold number of discard scans are waiting to be performed. The controller avoids satisfying the request to perform the staging or the destaging operations or a read hit with respect to the area of the cache, in response to determining that more than the threshold number of discard scans are waiting to be performed.
Claims12
A system coupled to a flash cache, the system comprising:
- a memory;
- and
- a processor coupled to the memory, wherein the processor performs operations, the operations comprising:
- receiving a request to perform staging or destaging operations with respect to an area of the flash cache, wherein an asynchronous discard scan scans a flash cache directory corresponding to the flash cache to determine tracks to discard from the flash cache, and wherein the staging or destaging operations with respect to the area of the flash cache occurs between the flash cache and disks;
- determining whether more than a threshold number of asynchronous discard scans are waiting to be performed;
- and
- in response to determining that more than the threshold number of asynchronous discard scans are waiting to be performed, avoiding satisfying the request to perform the staging or the destaging operations or a read hit with respect to the area of the flash cache.
A computer program product, the computer program product comprising:
- a non-transitory computer readable storage medium having computer readable program code embodied therewith, the computer readable program code configured to perform operations on a controller coupled to a flash cache, the operations comprising:
- receiving a request to perform staging or destaging operations with respect to an area of the flash cache, wherein an asynchronous discard scan scans a flash cache directory corresponding to the flash cache to determine tracks to discard from the flash cache, and wherein the staging or destaging operations with respect to the area of the flash cache occurs between the flash cache and disks;
- determining whether more than a threshold number of asynchronous discard scans are waiting to be performed;
- and
- in response to determining that more than the threshold number of asynchronous discard scans are waiting to be performed, avoiding satisfying the request to perform the staging or the destaging operations or a read hit with respect to the area of the flash cache.
A storage controller coupled to a host, the storage controller comprising:
- a processor;
- and
- a cache coupled to the processor, wherein the storage controller performs operations, the operations comprising:
- receiving a request from the host to perform staging or destaging operations with respect to an area of a flash cache, wherein an asynchronous discard scan scans a flash cache directory corresponding to the flash cache to determine tracks to discard from the flash cache, and wherein the staging or destaging operations with respect to the area of the flash cache occurs between the flash cache and disks;
- determining whether more than a threshold number of asynchronous discard scans are waiting to be performed;
- and
- in response to determining that more than the threshold number of asynchronous discard scans are waiting to be performed, avoiding satisfying the request to perform the staging or the destaging operations or a read hit with respect to the area of the flash cache.
Dependencies are inferred from the claim text.