CPC G06F 12/0891 (2013.01) | 17 Claims |
1. A computer-implemented method for managing a storage system, the storage system comprising a storage device, and a cache, wherein the storage device comprises a first compression ratio, a second compression ratio, and a set of storage blocks comprising a first storage block and a second storage block, the first compression ratio higher than the second compression ratio, the method comprising:
analyzing an access request for the first storage block of the set of storage blocks;
in response to the access request comprising a read request:
in response to the first storage block residing in the cache:
processing the read request from the cache;
promoting the first storage block within the cache; and
destaging the first storage block to the storage device with the first compression ratio; and
in response to the first storage block not residing in the cache:
processing the read request from the storage device; and
copying the first storage block to the cache;
in response to the access request comprising a write request:
writing the first storage block to the cache; and
destaging the first storage block to the storage device using the first compression ratio;
synchronizing the cache entries with the set of storage blocks;
deleting one copy of the cache entry on the set of storage blocks; and
in response to the deletion,
hydrating the second storage block from the first compression ratio to the second compression ratio.
|