Methods and devices for managing cache
AssigneeEMC IP Holding Company LLC
InventorsXinlei Xu, Jian Gao, Ruiyong Jia, Liam Xiongcheng Li, Jibing Dong
Life of this patent
Estimating the term…
Abstract
Embodiments of the present disclosure relate to methods and devices for managing cache. The method comprises in response to receiving a read request, determining whether data associated with the read request is present in a first cache, the first cache being a read-only cache. The method also comprises in response to a miss of the data in the first cache, determining whether the data is present in a second cache, the second cache being a readable and writable cache. The method further comprises: in response to hitting the data in the second cache, returning the data as a response to the read request; and reading the data into the first cache.
Claims11
A method of managing a cache, comprising:
- in response to receiving a read request, determining whether data associated with the read request is present in a first cache, the first cache being a read-only cache;
- in response to a miss of the data in the first cache, determining whether the data is present in a second cache, the second cache being a readable and writable cache;
- in response to hitting the data in the second cache:
- returning the data as a response to the read request;
- and
- reading the data into the first cache;
- in response to a miss of the data in the second cache:
- reading the data from a lower-layer storage device associated with the managed cache as a response to the read request;
- and
- storing the data into the first cache, the first cache being located in storage space within the lower-layer storage device reserved for one or more other data access services;
- and
- in response to determining that the one or more other data access services require use of the reserved storage space in which the first cache is located, releasing at least a portion of the reserved storage space for implementing the one or more other data access services.
A cache manager, the cache manager comprising:
- a processor;
- and
- a memory having computer program instructions stored thereon, the processor executing the computer program instructions in the memory to control the cache manager to perform acts comprising:
- in response to receiving a read request, determining whether data associated with the read request is present in a first cache, the first cache being a read-only cache;
- in response to a miss of the data in the first cache, determining whether the data is present in a second cache, the second cache being a readable and writable cache;
- in response to hitting the data in the second cache:
- returning the data as a response to the read request;
- and
- reading the data into the first cache;
- in response to a miss of the data in the second cache:
- reading the data from a lower-layer storage device as a response to the read request;
- and
- storing the data into the first cache, the first cache being located in storage space within the lower-layer storage device reserved for one or more other data access services;
- and
- in response to determining that the one or more other data access services require use of the reserved storage space in which the first cache is located, releasing at least a portion of the reserved storage space for implementing the one or more other data access services.
A computer program product for managing a cache, comprising:
- a non-transitory computer readable medium encoded with computer-executable code, the code configured for the execution of:
- in response to receiving a read request, determining whether data associated with the read request is present in a first cache, the first cache being a read-only cache;
- in response to a miss of the data in the first cache, determining whether the data is present in a second cache, the second cache being a readable and writable cache;
- in response to hitting the data in the second cache:
- returning the data as a response to the read request;
- and
- reading the data into the first cache;
- in response to a miss of the data in the second cache:
- reading the data from a lower-layer storage device associated with the managed cache as a response to the read request;
- and
- storing the data into the first cache, the first cache being located in storage space within the lower-layer storage device reserved for one or more other data access services;
- and
- in response to determining that the one or more other data access services require use of the reserved storage space in which the first cache is located, releasing at least a portion of the reserved storage space for implementing the one or more other data access services.
Dependencies are inferred from the claim text.