主权项 |
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 cache data for the non-volatile storage device, and wherein the method comprises:
determining, by the cache management apparatus, a first 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 comprises a set of pages that are not modified in the cache, and the dirty page subpool comprises a set of pages that have been modified in the cache, wherein the clean page subpool, the dirty page subpool and the cache are related via a capacity relationship; and increasing, by the cache management apparatus, a maximum capacity of the clean page subpool when the first to-be-accessed page is identified in a history list of clean pages and the capacity relationship indicates 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 identifies clean pages that are recently displaced from the cache. |