Cache space management method and apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorsChunhua Tan, Feng Xia
Life of this patent
Estimating the term…
Abstract
A cache space management method and apparatus are disclosed. In the method, first, a hit rate of the read cache of the storage system is obtained; and then, a size of the read cache and a size of the metadata cache are adjusted based on the hit rate of the read cache. In the foregoing technical solution, the size of the read cache and the size of the metadata cache are dynamically adjusted by using the hit rate of the read cache as a decision factor. For example, when the hit rate of the read cache is relatively high, the size of the read cache may be increased.
Claims18
A method for managing cache space, comprising:
- obtaining a hit rate of a read cache of a storage system;
- and
- adjusting a size of the read cache and a size of a metadata cache based on the hit rate of the read cache, wherein the storage system comprises the read cache and the metadata cache, the read cache is configured to cache data stored in the storage system, and the metadata cache is configured to cache metadata that is generated from one or more data read requests corresponding to the data stored in the storage system.
An apparatus for managing cache space, comprising:
- a communication interface configured to obtain a hit rate of a read cache of a storage system;
- and
- a processor configured to adjust a size of the read cache and a size of a metadata cache based on the hit rate of the read cache, wherein the storage system comprises the read cache and the metadata cache, the read cache is configured to cache data stored in the storage system, and the metadata cache is configured to cache metadata that is generated from one or more data read requests corresponding to the data stored in the storage system.
A non-transitory computer program product storing instructions, which when executed on a computer, cause the computer to perform operations of:
- obtaining a hit rate of a read cache of a storage system;
- and
- adjusting a size of the read cache and a size of a metadata cache based on the hit rate of the read cache, wherein the storage system comprises the read cache and the metadata cache, the read cache is configured to cache data stored in the storage system, and the metadata cache is configured to cache metadata that is generated from one or more data read requests corresponding to the data stored in the storage system.
Dependencies are inferred from the claim text.