Cache management based on storage access
A method of cache management, the method comprising: identifying, among a plurality of storage items, storage items having an access count above a first threshold to generate a set of storage items; identifying, among the set of storage items, storage items having an updated access count above a second threshold to generate a subset of storage items, wherein, for each storage item, the updated access count is dependent upon a number of accesses subsequent to generating the set of storage items; and adding the storage items of the subset of storage items to a cache.
1 . A method comprising:
identifying a set of storage items whose access count satisfies a first threshold at a first time; and
adding a storage item of the set of storage items that were previously identified to a cache of a storage system in response to an access count for the storage item satisfying a second threshold at a second time.
2 . The method of claim 1 further comprising:
subsequent to identifying the set of storage items and prior to adding the storage item to the cache of the storage system, decaying the access count for at least one of the storage items of the set of storage items to generate a decayed access count for each of the storage items of the set of storage items; and
incrementing the decayed access count for each of the storage items of the set of storage items to generate an updated access count.
3 . The method of claim 2 wherein decaying the access count comprises zeroing the access count for at least one of the storage items.
4 . The method of claim 1 wherein identifying the set of storage items is performed at an interval independent of access to the storage items by the storage system.
5 . The method of claim 4 wherein the interval is a set time interval.
6 . The method of claim 4 wherein the interval is determined based on a cache pressure.
7 . The method of claim 1 wherein the first threshold and the second threshold are a same value.
8 . An apparatus comprising:
a memory; and
a processor, operatively coupled to the memory, configured to:
identify a set of storage items whose access count satisfies a first threshold at a first time; and
add a storage item of the set of storage items that were previously identified to a cache of a storage system in response to an access count for the storage item satisfying a second threshold at a second time.
9 . The apparatus of claim 8 , the processor further configured to:
subsequent to identifying the set of storage items and prior to adding the storage item to the cache of the storage system, decay the access count for at least one of the storage items of the set of storage items to generate a decayed access count for each of the storage items of the set of storage items; and
increment the decayed access count for each of the storage items of the set of storage items to generate an updated access count.
10 . The apparatus of claim 9 wherein to decay the access count the processor is configured to:
zero the access count for at least one of the storage items.
11 . The apparatus of claim 8 wherein the processor identifies the set of storage items at an interval independent of access to the storage items by the storage system.
12 . The apparatus of claim 11 wherein the interval is a set time interval.
13 . The apparatus of claim 11 wherein the interval is determined based on a cache pressure.
14 . The apparatus of claim 8 wherein the first threshold and the second threshold are a same value.
15 . A non-transitory computer readable storage medium storing instructions, which when executed, cause a processor to:
identify a set of storage items whose access count satisfies a first threshold at a first time; and
add a storage item of the set of storage items that were previously identified to a cache of a storage system in response to an access count for the storage item satisfying a second threshold at a second time.
16 . The non-transitory computer readable storage medium of claim 15 , the processor further configured to:
subsequent to identifying the set of storage items and prior to adding the storage item to the cache of the storage system, decay the access count for at least one of the storage items of the set of storage items to generate a decayed access count for each of the storage items of the set of storage items; and
increment the decayed access count for each of the storage items of the set of storage items to generate an updated access count.
17 . The non-transitory computer readable storage medium of claim 16 wherein to decay the access count the processor is configured to zero the access count for at least one storage item of the set of storage items.
18 . The non-transitory computer readable storage medium of claim 15 wherein the processor is configured to identify the set of storage items at an interval independent of access to the storage items by a storage system.
19 . The non-transitory computer readable storage medium of claim 18 wherein the interval is a set time interval.
20 . The non-transitory computer readable storage medium of claim 15 wherein the first threshold and the second threshold are a same value.