摘要 |
Disclosed are a method and apparatus for realizing a non-volatile cache. The method for realizing a non-volatile cache being: firstly virtualizing physical flash memory storage resources as a flash memory storage pool, and then creating three kinds of logical storage units, i.e., a big cache unit, a small cache unit and a mirror image writing unit, on the storage pool, wherein the big cache unit is used for providing a conventional caching service, the small cache unit is used for providing an acceleration service for a random write operation and a temporary data storage service for a read operation, and the mirror image writing unit is used for providing a redundant backup protection function for dirty data in a big cache and a small cache. The method for realizing a non-volatile cache of the present invention avoids the problem of creating a huge cache state table, and also prevents a redundant backup method from seriously affecting the writing performance, and can achieve an ultra-large capacity and ultra-high performance, thereby significantly improving the read and write performance of a centralized control device. |