The invention discloses a
cache management method for a
solid-state disc. The method comprises the following implement steps that a
page cache, a replace block module, a new page
linked list, a physical block chain
list and a physical page state
list are established; an input and output (IO) request from a host is received and is executed through the
page cache, when a writing request is executed, if the
page cache is missed, and the page cache has no spare space, a block replace process of the
solid-state disc is executed, namely an 'effective' page space in the page cache is preferential released; when the number of 'effective' pages in the page cache is zero, a candidate replace block with the largest failure ratio in a rear half physical block of the physical block chain
list is selected to serve as a replace block, and the replace block cache is utilized to execute a replace writing process. The
cache management method for the
solid-state disc can effectively use a limited cache space and increase
hit rate of the cache, enables a block written in a flash medium to comprise as many
dirty data pages as possible and as few effective data pages as possible to reduce erasure operation and page copy operations and sequential rubbish
recovery caused by the
dirty data pages. The
cache management method for the solid-state disc is easy to operate.