Storage device performing atomic write, host controlling storage device, and operating method of storage device
Abstract
A storage device includes a non-volatile memory; a volatile memory; and a storage controller configured to: receive a new data and append data write command from a host, write new data and append data to at least one of the non-volatile memory and the volatile memory, receive, from the host, a remap command including mapping information between old data and the new data and a first identification (ID), based on the remap command, store in the volatile memory the mapping information between the old data and the new data and the first ID, receive, from the host, a metadata write command requesting writing meta data for the append data and including the first ID, and based on the metadata write command, update the mapping information between the old data and the new data, and write metadata related to the append data to the non-volatile memory.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 0.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
A storage device comprising: a non-volatile memory; a volatile memory; and a storage controller configured to: receive a new data and append data write command from a host, write new data and append data to at least one of the non-volatile memory and the volatile memory, receive, from the host, a remap command comprising mapping information between old data and the new data and a first identification (ID), based on the remap command, store in the volatile memory the mapping information between the old data and the new data and the first ID, receive, from the host, a metadata write command requesting writing metadata for the append data and comprising the first ID, and based on the metadata write command, update the mapping information between the old data and the new data, and write metadata related to the append data to the non-volatile memory.
- Claim 2Depends on #1
The storage device of claim 1, wherein the mapping information between the old data and the new data comprises first mapping information between a first logical address of the old data and a second logical address of the new data.
- Claim 3Depends on #2
The storage device of claim 2, wherein the storage controller is further configured to: based on receiving the remap command, check a first physical address of the old data and a second physical address of the new data; and store in the volatile memory: a mapping table comprising the first logical address and the first physical address of the old data and the second logical address and the second physical address of the new data, and a log table comprising the first ID and the first logical address of the old data and the second physical address of the new data.
- Claim 4Depends on #3
The storage device of claim 3, wherein the mapping information update matches the first logical address of the old data with the second physical address of the new data based on the log table.
- Claim 5Depends on #1
The storage device of claim 1, wherein the storage controller is further configured to: receive, from the host, a flush command to write data stored in the volatile memory to the non-volatile memory, and based on the flush command, when there is data stored in the volatile memory, write the data stored in the volatile memory to the non-volatile memory.
- Claim 6Depends on #1
The storage device of claim 1, wherein the storage controller is further configured to: receive, from the host, a flush command to write data stored in the volatile memory to the non-volatile memory and comprising the first ID, and based on the flush command, when there is data stored in the volatile memory, write the data stored in the volatile memory to the non-volatile memory.
- Claim 7Depends on #1
The storage device of claim 1, wherein the storage controller is further configured to: receive, from the host, a second remap command comprising a second ID that is different from the first ID, based on the second remap command comprising the second ID, store, in the volatile memory, second mapping information included in the second remap command comprising the second ID, and based on the metadata write command, not process the second mapping information related to the second ID.
- Claim 8Depends on #1
The storage device of claim 1, wherein the host comprises a log-structured file system (LFS), and the new data and the append data are entirely written to or not written at all to the storage device.
- Claim 9Depends on #8
The storage device of claim 8, wherein the LFS comprises a flash-friendly file system (F2FS).
- Claim 10Depends on #1
The storage device of claim 1, wherein the volatile memory comprises one of static random access memory (SRAM) and dynamic random access memory (DRAM).
- Claim 11Depends on #1
The storage device of claim 1, wherein the volatile memory comprises static random access memory (SRAM), and the storage controller comprises the volatile memory.
- Claim 12Depends on #11
The storage device of claim 11, wherein the volatile memory comprises dynamic random access memory (DRAM), and wherein the DRAM is located outside the storage controller and configured to communicate with the storage controller.
- Claim 13Independent Claim
An operating method of a storage device communicating with a host and comprising a non-volatile memory and a volatile memory, the operating method comprising: receiving a new data and append data write command from the host; writing new data and append data to at least one of the non-volatile memory and the volatile memory; receiving, from the host, a remap command comprising mapping information between old data and the new data and a first identification (ID); based on the remap command, storing, in the volatile memory, the mapping information between the old data and the new data and the first ID; receiving, from the host, a metadata write command requesting writing metadata, wherein the metadata is associated with the append data and the metadata write command comprises the first ID; and in response to the metadata write command, updating the mapping information between the old data and the new data, and writing the metadata.
- Claim 14Depends on #13
The operating method of claim 13, wherein the mapping information between the old data and the new data comprises first mapping information between a first logical address of the old data and a second logical address of the new data, and wherein the storing the mapping information between the old data and the new data and the first ID in the volatile memory comprises: checking a first physical address of the old data and a second physical address of the new data; and storing, in the volatile memory, a mapping table comprising the first logical address and the first physical address of the old data and the second logical address and the second physical address of the new data and a log table comprising the first ID and the first logical address of the old data and the second physical address of the new data.
- Claim 15Depends on #13
The operating method of claim 13, further comprising: receiving, from the host, a flush command to write data stored in the volatile memory to the non-volatile memory; and based on the flush command, when there is data stored in the volatile memory, writing the data stored in the volatile memory to the non-volatile memory.
- Claim 16Depends on #13
The operating method of claim 13, further comprising: receiving, from the host, a flush command to write data stored in the volatile memory to the non-volatile memory and comprising the first ID; and based on the flush command, when there is data stored in the volatile memory, writing the data stored in the volatile memory to the non-volatile memory.
- Claim 17Depends on #13
The operating method of claim 13, wherein the host comprises a log-structured file system (LFS), and wherein the new data and the append data are entirely written to or not written at all to the storage device.
- Claim 18Depends on #17
The operating method of claim 17, wherein the LFS comprises a flash-friendly file system (F2FS).
- Claim 19Independent Claim
A storage device comprising: a memory device; and a storage controller configured to: receive a new data and append data write command from a host, based on the write command, write new data and append data to the memory device, receive, from the host, a remap command comprising mapping information between old data and the new data and a first identification (ID), based on the remap command, store the mapping information between the old data and the new data and the first ID in a memory inside the storage controller, receive, from the host, a metadata write command requesting writing metadata, wherein the metadata is associated with the append data and the metadata write command comprises the first ID, and based on the metadata write command, update the mapping information between the old data and the new data, and write the metadata to the memory device.
- Claim 20Depends on #19
The storage device of claim 19, wherein the host comprises a log-structured file system (LFS), and wherein the new data and the append data are entirely written to or not written at all to the memory device.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATION This application is based on and claims priority under 35 U.S.C. § 119 to Korean Patent Application No. 10-2022-0179739, filed on Dec. 20, 2022, in the Korean Intellectual Property Office, the disclosure of which is incorporated by reference herein in its entirety. BACKGROUND The present disclosure relates to a storage device, and more particularly, to a storage device performing an atomic write process, a host controlling the storage device, and an operating method of the storage device. When updating data, a file system such as EXT4 and the like overwrites new data at the original position of the data. This is referred to as an in-place update method. In contrast, a log-structured file system (LFS) uses an out-of-place update method, in which past data is invalidated and new data is written to a different location. Accordingly, when old data is updated with new data in the LFS, a logical address of the old data may be different from a logical address of the new data. An atomic write may refer to a write that satisfies all or nothing. For example, when power supply to a storage is blocked during writing of data in the storage and then the power supply to the storage resumes, the storage satisfies a state of storing all data or a state before writing data, which may be referred to as an atomic write. When data is updated in the LFS, an efficient atomic write method is required. SUMMARY Example embodiments provide a storage device performing an atomic write process, a host controlling the storage device, and an operating method of the storage device. According to an aspect of an example embodiment, a storage device includes: a non-volatile memory: a volatile memory: and a storage controller configured to: receive a new data and append data write command from a host, write new data and append data to at least one of the non-volatile memory and the volatile memory, receive, from the host, a remap command including mapping informat
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (16)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Yongmyung Lee, et al.,
- “
- When F2FS Meets Address Remapping
- ”
- , HotStorage '22, Jun. 27, 2022, Virtual Event, pp. 31-36 (Total 6 pages).
- Hongwei Qin, et al.,
- “
- Better Atomic Writes by Exposing the Flash Out-of-Band Area to File Systems
- ”
- , LCTES '21, Jun. 22, 2021, Virtual Event, pp. 12-23.