摘要 |
In some embodiments, a method for controlling a cache having a volatile memory and a non-volatile memory during a power up sequence is provided. The method includes receiving, at a controller configured to control the cache and a storage device associated with the cache, a signal indicating whether the non-volatile memory includes dirty data copied from the volatile memory to the non-volatile memory during a power down sequence, the dirty data including data that has not been stored in the storage device. In response to the received signal, the dirty data is restored from the non-volatile memory to the volatile memory, and flushed from the volatile memory to the storage device. |
主权项 |
1. A method for controlling a cache, the method comprising:
detecting a power loss to the cache, the cache comprising a volatile memory, a non-volatile memory, a buffer, and a data transfer controller that controls data transfer between the volatile memory and the non-volatile memory; in response to the power loss detection, automatically enabling a backup power supply associated only with the cache and providing, via the buffer of the cache, a first control signal that indicates the power loss detection to the data transfer controller; detecting restoration of power to the cache; in response to the power restoration detection, automatically providing, via the buffer of the cache, a second control signal that indicates the power restoration detection to the data transfer controller; and upon restoration of power to the cache, receiving, at a controller configured to control the cache, a flag communicated from the non-volatile memory indicating that the non-volatile memory includes dirty data, the dirty data comprising data that has not been stored in a storage device associated with the cache. |