Power-safe data management system
AssigneeWestern Digital Technologies, Inc.
InventorsLyndon S. Chiu, Frederick H. Adi
Life of this patent
Estimating the term…
Abstract
Embodiments of the invention include systems and methods for recovering the system status and maintaining drive coherency after an unexpected power loss. In particular, these systems and methods reduce overhead for maintaining drive coherency by providing for pre-allocation of groups of write addresses and recording the pre-allocated groups of addresses to the non-volatile memory. Write processes can write to the pre-allocated group of addresses while the next group of addresses are pre-allocated and recorded to non-volatile memory.
Claims19
A method performed by a controller of a solid-state storage subsystem for protecting against power loss, comprising:
- maintaining a record of drive status in a volatile memory of the storage subsystem, the record including, for a write process, data related to a first group of write addresses and a second group of write addresses, the first group of write addresses designated as a current group of addresses to which the write process is writing, wherein the write addresses designate address locations in a non-volatile solid-state storage array;
- writing to the first group of write addresses;
- upon writing to a last write address in the first group of write addresses, designating the second group of write addresses as the current group of write addresses to be written by the write process, the designation being reflected in the record of drive status;
- initiating a flush of the record to non-volatile memory of the solid-state storage subsystem after the designating, the flush including saving the record to a portion of the non-volatile solid-state storage array;
- and
- writing to the second group of write addresses prior to the completion of the flush of the record, whereby the write process is not delayed by the flush of the record,
- said method performed by a controller of the storage subsystem.
A solid-state storage system configured to preserve system status information in anticipation of power loss, comprising:
- a solid-state memory array, including a plurality of memory units, each memory unit comprising a plurality of physical write addresses;
- a controller configured to control a plurality of write processes for writing data to the solid-state memory array, the plurality of write processes including a user data write process and an internal system write process, each of the write processes writing to portions of the solid-state memory array according to a memory unit assigned to the write process;
- and
- an interface to a host system through which the system receives memory commands to be executed by the user data write process;
- wherein the controller is configured to:
- maintain a record comprising data indicative of drive activity status and, for each of the plurality of write processes, data related to the assigned memory unit and a next memory unit, the next memory unit indicating a memory unit to which the write process will write after the physical write addresses in the assigned memory unit are exhausted;
- and
- flush the record to the solid-state memory array, the flushing being performed independent of any write process of the plurality of write processes completing writing to its assigned memory unit and beginning to write to the next memory unit, so that the writing to a next memory unit by a write process of the write processes is not contingent on a completion of a flushing of the record to the solid-state memory array.
A method of recording the status of a solid-state storage system, comprising:
- modifying, by a process executed by the controller of the solid-state storage system, data at a first subset of addresses in a solid-state storage array;
- allocating, for the process, a second subset of addresses in the solid-state storage array, such that the second subset is not modified by the process until the process has completed modifying data at the first subset of addresses;
- storing, in the solid-state storage array, a record including data reflective of the second subsets of addresses;
- modifying, by the process, data at the second subset of addresses, wherein the modifying of data at the second subset of addresses begins prior to completion of the storing step so that the modification to the data at the second subset of addresses is not reflected in the record stored in the solid-state storage media array;
- retrieving the record stored on the solid-state storage array;
- and
- scanning the first and second subset of addresses reflected by the data in the retrieved record, whereby the modifications performed by the process at the second subset of addresses after the storage of the record can be determined.
Dependencies are inferred from the claim text.