The invention discloses a write-friendly
flash memory solid-state disk
cache management method, which comprises the following steps of: managing clean data pages in a cache by taking pages as basic units, performing page cluster operation on
dirty data pages in the cache according to different
flash memory physical blocks to which the
dirty data pages belong, and organizing a plurality of data pages of the same
flash memory physical block into one page cluster; setting
system access time visit _ time to
record the number of times of accessing the
data page; recording a time stamp of accessingthe
data page by the cache; setting a latest
access time window; wherein the recent
access time window covers a plurality of recently accessed data pages in the cache; setting the size of the recent access time window value tw to be 10% of the size of the cache space; and when the target data of the I / O request is not hit in the cache, reading the target data of the I / O request from the flash memory, returning the target data to the upper-layer application, and inserting the target
data page into the corresponding management
linked list in the cache according to the read-write type of the I / Orequest. The cache replacement frequency and the flash memory
garbage collection overhead are reduced, and the overall performance of the flash memory is improved.