Data storage device and method for host-assisted deferred defragmentation and system handling
Abstract
A data storage device and method for host-assisted deferred defragmentation and system handling are provided. In one embodiment, the data storage device comprises a memory and a controller. The controller is configured to receive, from a host, a plurality of write commands and a grouping identifier associated with the plurality of write commands, wherein the plurality of write commands comprise a plurality of non-sequential logical block addresses and a plurality of sequential segments of a file; and in response to the grouping identifier being associated with the plurality of write commands, execute the plurality of write commands by storing the plurality of sequential segments of the file sequentially in the memory even though the logical block addresses associated with the segments of the file are non-sequential. Other embodiments are possible, and each of the embodiments can be used alone or together in combination.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 14 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A data storage device comprising: a memory; and a processor configured to communicate with the memory and further configured to: receive, from a host, a plurality of write commands and a grouping identifier associated with the plurality of write commands, wherein the plurality of write commands comprise a plurality of non-sequential logical block addresses and a plurality of sequential segments of a file; and in response to the grouping identifier being associated with the plurality of write commands, execute the plurality of write commands by storing the plurality of sequential segments of the file sequentially in the memory even though the logical block addresses associated with the segments of the file are non-sequential; wherein the plurality of sequential segments of the file are stored sequentially in the memory without moving the plurality of sequential segments of the file in the memory after execution of the plurality of write commands.
- Claim 2Depends on #1
The data storage device of claim 1, wherein the processor is further configured to: group together logical-to-physical address translation entries for the plurality of non-sequential logical block addresses.
- Claim 3Depends on #1
The data storage device of claim 1, wherein the processor is further configured to: receive an additional write command from the host; and determine whether a logical block address in the additional write command is associated with a previously-received grouping identifier.
- Claim 4Depends on #3
The data storage device of claim 3, wherein the processor is further configured to: in response to determining that the logical block address in the additional write command is associated with the previously-received grouping identifier, determine whether there is an open sequential stream for the previously-received grouping identifier.
- Claim 5Depends on #4
The data storage device of claim 4, wherein the processor is further configured to: in response to determining that there is an open sequential stream for the previously-received grouping identifier, route data in the additional write command to the open sequential stream.
- Claim 6Depends on #4
The data storage device of claim 4, wherein the processor is further configured to: in response to determining that there is not an open sequential stream for the previously-received grouping identifier, open a new stream and route data in the additional write command to the opened new stream.
- Claim 7Depends on #1
The data storage device of claim 1, wherein the processor is further configured to: receive a read command from the host; and determine whether a logical block address in the read command is associated with the grouping identifier.
- Claim 8Depends on #7
The data storage device of claim 7, wherein the processor is further configured to: in response to determining that the logical block address in the read command is associated with the grouping identifier, retrieve a grouped logical-to-physical address translation entry corresponding to the grouping identifier.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATION This application claims priority to U.S. provisional patent application No. 63/442,564, filed Feb. 1, 2023, which is hereby incorporated by reference. BACKGROUND If the memory of a data storage device is heavily fragmented, a host file system can opt for defragmentation of the memory to ensure that a large file can be written in contiguous logical block addresses (LBAs), which will eventually result in good sequential read performance. However, defragmentation can lead to a lot of data movement inside the memory, which can reduce performance at the time of defragmentation. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 A is a block diagram of a data storage device of an embodiment. FIG. 1 B is a block diagram illustrating a storage module of an embodiment. FIG. 1 C is a block diagram illustrating a hierarchical storage system of an embodiment. FIG. 2 A is a block diagram illustrating components of the controller of the data storage device illustrated in FIG. 1 A according to an embodiment. FIG. 2 B is a block diagram illustrating components of the memory data storage device illustrated in FIG. 1 A according to an embodiment. FIG. 3 is a block diagram of a host and data storage device of an embodiment. FIG. 4 is a flow chart illustrating a system flow of an embodiment. FIG.
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 (14)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (3)
- NVM Express
- ®
- Base Specification, Revision 2.0c; NVM Express; Oct. 4, 2022; 458 pages.