Invoking input/output (I/O) threads on processors to demote tracks from a cache
First Claim
1. A computer program product for managing tracks in a storage in a cache, the computer program product comprising a computer readable storage medium having computer readable program code embodied therein that when executed performs operations, the operations comprising:
- processing by an Input/Output (I/O) thread, executed by a processor, I/O requests directed to tracks in the storage by accessing the tracks in the cache;
after processing at least one I/O request, determining by the I/O thread whether a number of free cache segments in the cache is below a free cache segment threshold;
processing, by the I/O thread, a demote ready list, indicating tracks eligible to demote from the cache, to demote tracks from the cache in response to determining that the number of free cache segments is below the free cache segment threshold; and
continuing, by the I/O thread, to process I/O requests directed to tracks from the storage stored in the cache after processing the demote ready list to demote tracks in the cache.
1 Assignment
0 Petitions
Accused Products
Abstract
Provided are a computer program product, system, and method for invoking Input/Output (I/O) threads on processors to demote tracks from a cache. An Input/Output (I/O) thread, executed by a processor, processes I/O requests directed to tracks in the storage by accessing the tracks in the cache. After processing at least one I/O request, the I/O thread determines whether a number of free cache segments in the cache is below a free cache segment threshold. The I/O thread processes a demote ready list, indicating tracks eligible to demote from the cache, to demote tracks from the cache in response to determining that the number of free cache segments is below the free cache segment threshold. The I/O thread continues to process I/O requests directed to tracks from the storage stored in the cache after processing the demote ready list to demote tracks in the cache.
26 Citations
23 Claims
-
1. A computer program product for managing tracks in a storage in a cache, the computer program product comprising a computer readable storage medium having computer readable program code embodied therein that when executed performs operations, the operations comprising:
-
processing by an Input/Output (I/O) thread, executed by a processor, I/O requests directed to tracks in the storage by accessing the tracks in the cache; after processing at least one I/O request, determining by the I/O thread whether a number of free cache segments in the cache is below a free cache segment threshold; processing, by the I/O thread, a demote ready list, indicating tracks eligible to demote from the cache, to demote tracks from the cache in response to determining that the number of free cache segments is below the free cache segment threshold; and continuing, by the I/O thread, to process I/O requests directed to tracks from the storage stored in the cache after processing the demote ready list to demote tracks in the cache. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A system for managing tracks in a storage, comprising:
-
a plurality of processors; a memory including a cache storing tracks from the storage; wherein at least one of the processors executes an Input/Output (I/O) thread to perform; processing I/O requests directed to tracks in the storage by accessing the tracks in the cache; after processing at least one I/O request, determining whether a number of free cache segments in the cache is below a free cache segment threshold; processing a demote ready list, indicating tracks eligible to demote from the cache, to demote tracks from the cache in response to determining that the number of free cache segments is below the free cache segment threshold; and continuing to process I/O requests directed to tracks from the storage stored in the cache after processing the demote ready list to demote tracks in the cache. - View Dependent Claims (12, 13, 14, 15, 16, 17)
-
-
18. A method for managing tracks in a storage in a cache, comprising:
-
processing, by an Input/Output (I/O) thread, executed by a processor, I/O requests directed to tracks in the storage by accessing the tracks in the cache; after processing at least one I/O request, determining by the I/O thread whether a number of free cache segments in the cache is below a free cache segment threshold; processing, by the I/O thread, a demote ready list, indicating tracks eligible to demote from the cache, to demote tracks from the cache in response to determining that the number of free cache segments is below the free cache segment threshold; and continuing, by the I/O thread, to process I/O requests directed to tracks from the storage stored in the cache after processing the demote ready list to demote tracks in the cache. - View Dependent Claims (19, 20, 21, 22, 23)
-
Specification