NVRAM data organization using self-describing entities for predictable recovery after power-loss
First Claim
1. A system comprising:
- a central processing unit (CPU) of a node coupled to storage devices of a storage array;
a non-volatile random access memory (NVRAM) coupled to the CPU, a portion of the NVRAM configured as one or more logs; and
a memory coupled to the CPU and configured to store a storage input/output (I/O) stack having a plurality of layers including a persistence layer executable by the CPU, the persistence layer cooperating with the NVRAM to employ the one or more logs to record in sequence write requests received from a host and to acknowledge successful receipt of the write requests to the host, the one or more logs having a set of entries, each entry including (i) write data of a write request, (ii) a previous offset referencing a previous entry of the log and (iii) and an outstanding enteries field indication a number of outstanding I/O operations in the log at the time that the respective entry is created, wherein after a power loss, the acknowledged write requests are recovered by replay of the one or more logs in reverse sequential order using the previous offset of each entry to traverse the log, wherein recovery of a last write request received from the host is enabled by the replay of the logs corresponding to write requests pending in the storage I/O stack at a time of creation of a tail entry of the log.
0 Assignments
0 Petitions
Accused Products
Abstract
In one embodiment, a node coupled to a plurality of storage devices executes a storage input/output (I/O) stack having a plurality of layers including a persistence layer. A portion of non-volatile random access memory (NVRAM) is configured as one or more logs. The persistence layer cooperates with the NVRAM to employ the log to record write requests received from a host and to acknowledge successful receipt of the write requests to the host. The log has a set of entries, each entry including (i) write data of a write request and (ii) a previous offset referencing a previous entry of the log. After a power loss, the acknowledged write requests are recovered by replay of the log in reverse sequential order using the previous record offset in each entry to traverse the log.
50 Citations
18 Claims
-
1. A system comprising:
-
a central processing unit (CPU) of a node coupled to storage devices of a storage array; a non-volatile random access memory (NVRAM) coupled to the CPU, a portion of the NVRAM configured as one or more logs; and a memory coupled to the CPU and configured to store a storage input/output (I/O) stack having a plurality of layers including a persistence layer executable by the CPU, the persistence layer cooperating with the NVRAM to employ the one or more logs to record in sequence write requests received from a host and to acknowledge successful receipt of the write requests to the host, the one or more logs having a set of entries, each entry including (i) write data of a write request, (ii) a previous offset referencing a previous entry of the log and (iii) and an outstanding enteries field indication a number of outstanding I/O operations in the log at the time that the respective entry is created, wherein after a power loss, the acknowledged write requests are recovered by replay of the one or more logs in reverse sequential order using the previous offset of each entry to traverse the log, wherein recovery of a last write request received from the host is enabled by the replay of the logs corresponding to write requests pending in the storage I/O stack at a time of creation of a tail entry of the log. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A method comprising:
-
executing, by a node coupled to a plurality of solid state drives (SSDs), a storage input/output (I/O) stack having a plurality of layers including a persistence layer for configuring a portion of a non-volatile random access memory (NVRAM) as a log to record in sequence write requests received from a host and to acknowledge successful receipt of the write requests to the host; organizing the log as a set of entries, each entry including (i) write data of a write request, (ii) a previous offset referencing a previous entry of the log and (iii) an outstanding entries field indicating a number of outstanding I/O operations in the log at the time that the respective entry is created; and after a power loss, replaying the log in reverse sequential order using the previous offset of each entry to traverse the log so as to recover the acknowledged write requests, wherein recovery of a last write request received from the host is enabled by the replay of log the logs corresponding to write requests pending in the storage I/O stack at a time of creation of a tail entry of the log. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17)
-
-
18. A non-transitory computer readable medium including program instructions for execution on one or more processors, the program instructions when executed operable to:
-
implement a storage input/output (I/O) stack having a plurality of layers including a persistence layer for configuring a portion of a non-volatile random access memory (NVRAM) as a log to record in sequence write requests received from a host and to acknowledge successful receipt of the write requests to the host; organize the log as a set of entries, each entry including (i) write data of a write request, (ii) a previous offset referencing a previous entry of the log and (iii) and an outstanding entries field indicating a number of outstanding I/O operations in the log at the time that the respective entry is created; and after a power loss, replay the log in reverse sequential order using the previous offset of each entry to traverse the log so as to recover the acknowledged write requests, wherein recovery of a last write request received from the host is enabled by the replay of the logs corresponding to write requests pending in the storage I/O stack at a time of creation of the tail entry of the log.
-
Specification