Abstract:
An invention is provided for recovering from an unexpected shutdown in a write-back caching environment. The invention includes storing a logical block address (LBA) mapping table on a caching device. The LBA mapping table maps logical block addresses of a target storage device to logical block addresses of the caching device. In addition, a LBA mapping table change log is maintained on the caching device. The LBA mapping table change log includes changes to the LBA mapping table since the LBA mapping table was last written to the caching device. During startup after an unexpected shutdown, the unexpected shutdown is detected using a header stored on a caching device. Among other data, the header includes an indicia indicating whether or not a clean shutdown occurred. When the unexpected shutdown is detected, a recovered LBA mapping table is generated based on the LBA mapping table, which is stored on the caching device, and the LBA mapping table change log.
Abstract:
An invention is provided for dynamic cache allocation in a solid state drive environment. The invention includes partitioning a cache memory into a reserved partition and a caching partition, wherein the reserved partition begins at a beginning of the cache memory and the caching partition begins after an end of the reserved partition. Data is cached starting at a beginning of the caching partition. Then, when the caching partition is fully utilized, data is cached the reserved partition. After receiving an indication of a power state change, such as when entering a sleep power state, marking data is written to the reserve partition. The marking data is examined after resuming the normal power state to determine whether a deep sleep power state was entered. When returning from a deep sleep power state, the beginning address of valid cache data within the reserve partition is determined after resuming a normal power state.
Abstract:
An invention is provided for handling target disk access requests during disk defragmentation in a solid state drive caching environment. The invention includes detecting a request to access a target storage device. In response, data associated with the request is written to the target storage device without writing the data to the caching device, with the proviso that the request is a write request. In addition, the invention includes reading data associated with the request and marking the data associated with the request stored in the caching device for discard, with the proviso that the request is a read request and the data associated with the request is stored on the caching device. Data marked for discard is discarded from the caching device when time permits, for example, upon completion of disk defragmentation.