发明名称 Cache management method and apparatus for non-volatile storage device
摘要 Embodiments of the present invention disclose a method and apparatus of cache management for a non-volatile storage device. The method embodiment includes: determining a size relationship between a capacity sum of a clean page subpool and a dirty page subpool and a cache capacity; determining, when the capacity sum is equal to the cache capacity, whether identification information of a to-be-accessed page is in a history list of clean pages or a history list of dirty pages; and when it is determined that the identification information of the to-be-accessed page is in the history list of clean pages, adding a first adjustment value to a clean page subpool capacity threshold; and when the identification information of the to-be-accessed page is in the history list of dirty pages, subtracting a second adjustment value from the clean page subpool capacity threshold.
申请公布号 US9524245(B2) 申请公布日期 2016.12.20
申请号 US201414546797 申请日期 2014.11.18
申请人 Huawei Technologies Co., Ltd. 发明人 Zhu Junhua
分类号 G06F12/08;G06F12/02;G06F12/12 主分类号 G06F12/08
代理机构 Slater Matsil, LLP 代理人 Slater Matsil, LLP
主权项 1. A cache management method, applied to a storage system comprising a cache, a non-volatile storage device, and a cache management apparatus, wherein the cache is configured to store data read from the non-volatile storage device and data to be written into the non-volatile storage device wherein the method comprises: determining, by the cache management apparatus, a to-be-accessed page is neither in a clean page subpool of the cache nor in a dirty page subpool of the cache, wherein the clean page subpool is a set of pages that are not modified in the cache, and the dirty page subpool is a set of pages that have been modified in the cache; determining, by the cache management apparatus, a capacity relationship among the clean page subpool, the dirty page subpool and the cache; determining, by the cache management apparatus, whether identification information of the to-be-accessed page is in a history list of clean pages or a history list of dirty pages in response to the capacity relationship indicating that a capacity of the dirty page subpool and the clean page subpool corresponds to a capacity of the cache, wherein the history list of clean pages is configured to store identification information of clean pages that are recently displaced from the cache, and wherein the history list of dirty page is configured to store identification information of dirty pages that are recently displaced from the cache; increasing, by the cache management apparatus, a maximum capacity of the clean page subpool in response to the identification information of the to-be-accessed page being in the history list of clean pages; and decreasing, by the cache management apparatus, the maximum capacity of the clean page subpool in response to the identification information of the to-be-accessed page being in the history list of dirty pages.
地址 Shenzhen CN