Write data delivery scheduling in a zoned namespace (ZNS) driver
By scheduling data transfer based on storage device page chunks in a partitioned name space (ZNS) environment, the problem of inefficient zone additional command management is solved, efficient data transfer and performance improvement are achieved, and the cost and power consumption of the storage device are reduced. .
Patent Information
- Application Number
- CN202110366821.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-05-29
- Filing Date
- 2021-04-06
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2041-04-06
AI Technical Summary
In a partitioned name space (ZNS) environment, existing technologies have difficulty in efficiently managing zone append commands, resulting in an increase in write cache buffer size, high cost, and impact on memory device parallelism and performance.
By scheduling data transfers based on memory device page chunks, rather than zone append command sizes, each zone append command is associated with the memory device die and the next data chunk is fetched after a timer expires, the timer value is less than the write time required to input data chunks to achieve interleaved data transmission.
Reducing write cache buffer size increases memory device parallelism and performance, reduces cost and power consumption, and extends SSD life.
Smart Images

Figure CN113744783B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure generally relate to efficient data transfer management for zone attach commands for zoned namespace (ZNS). Background Art
[0002] Zoned Name Space (ZNS) is a new storage orientation in which data storage devices restrict writes to sequential regions. ZNS hopes to reduce device-side write amplification and over-provisioning by aligning host write patterns with internal device geometry and reducing the need for device-side writes that are not directly associated with host writes.
[0003] ZNS provides many benefits, including: reduced cost due to minimal DRAM requirements per solid-state drive (SSD); potential savings due to reduced need for over-provisioning of NAND media; better SSD lifespan through reduced write amplification; significantly reduced latency; significantly improved throughput; and standardized interfaces that enable a strong software and hardware ecosystem.
[0004] Typically, in a ZNS environment, the data transfer size associated with each zone attach command is a block size (e.g., a NAND block size) or a multiple of a full block size (i.e., not less than the size of an entire block). Blocks, such as NAND blocks, reside in a single NAND die. Memory device parallelism involves accessing multiple NAND dies in parallel. To increase parallelism, more NAND dies need to be accessed in parallel. To efficiently use memory device parallelism, many zone attach commands should be executed in parallel while having interleaved data transfers. Otherwise, the write cache buffer will be significantly increased in order to utilize the memory device.
[0005] Therefore, there is a need in the art for a ZNS device with more efficient management of zone attach commands. Summary of the invention
[0006] The present disclosure is generally related to scheduling zone attach commands for a zone name space (ZNS). Rather than scheduling data transfers based on zone attach command size, data transfer scheduling is based on memory device page chunks. Each zone attach command is first associated with a memory device die and queued in a related die queue. A data chunk having the size of a page is retrieved from a host device for each pending die. When a data chunk is retrieved, a timer is activated, and retrieval of the next data chunk for a particular die is allowed only once the timer expires. The value of the timer is set to be less than the time necessary to write the data chunk to the die.
[0007] In one embodiment, a data storage device includes: a memory device having multiple memory dies; and a controller coupled to the memory device, wherein the controller is configured to: receive multiple zone append commands; obtain data for each zone append command from a host device, wherein the obtained data for each zone append command is less than all data associated with an individual zone append command in the multiple zone append commands; and write the obtained data to the memory device.
[0008] In another embodiment, a data storage device includes: a memory device comprising a plurality of dies; and a controller coupled to the memory device, wherein the controller is configured to: receive a first zone append command associated with a first die among the plurality of dies; receive a second zone append command associated with a second die among the plurality of dies; obtain a first block of first zone append command data; obtain a first block of second zone append command data; write the first block of first zone append command data to the first die; write the first block of second zone append command data to the second die; and obtain a second block of first zone append command data, wherein the second block of first zone append command data is obtained after a predetermined time period; and wherein the predetermined time period is less than a time period required to write the first block of first zone data to the first die.
[0009] In another embodiment, a data storage device includes: a memory device; a controller coupled to the memory device; and a component for obtaining data associated with a region append command, wherein the component for obtaining data associated with the region append command is coupled to the memory device, wherein the obtained data has a size equal to a page size of a die of the memory device, and wherein the data associated with the region append command has a size greater than the page size of the die of the memory device. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to understand the above-mentioned features of the present invention in detail, the present invention briefly summarized above can be described in more detail with reference to embodiments, some of which are illustrated in the accompanying drawings. However, it should be noted that the accompanying drawings only illustrate typical embodiments of the present invention and therefore should not be considered to limit the scope of the present invention, because the present invention may admit that other equally effective embodiments exist.
[0011] Figure 1 is a schematic block diagram illustrating a storage system having a storage device that can function as a storage device for a host device, in accordance with one or more techniques of this disclosure.
[0012] Figure 2A is a schematic diagram of device control of a conventional SSD.
[0013] Figure 2Bis a schematic diagram of device control of a ZNS SSD according to an embodiment.
[0014] Figure 3 is a schematic illustration of a zone attach command.
[0015] Figure 4 is a schematic illustration of a state diagram for a ZNS SSD according to one embodiment.
[0016] Figure 5 is a schematic illustration of a zone namespace structure according to one embodiment.
[0017] Figure 6 is a schematic illustration of ZNS non-interleaved data transmission.
[0018] Figure 7 is a schematic illustration of ZNS interleaving and optimized data delivery according to one embodiment.
[0019] Figure 8 is a schematic illustration of a profiling region append command according to one embodiment.
[0020] Fig. 9 is a flow chart illustrating a method of staggering and optimizing data transmission in a ZNS device according to one embodiment.
[0021] To facilitate understanding, identical reference numerals have been used, where possible, to designate identical elements that are common to the figures. It is contemplated that elements disclosed in one embodiment may be beneficially utilized on other embodiments without specific recitation. DETAILED DESCRIPTION
[0022] Hereinafter, reference is made to embodiments of the present disclosure. However, it should be understood that the present disclosure is not limited to the specific embodiments described. In fact, any combination of the following features and elements (whether or not related to different embodiments) is encompassed to implement and practice the present disclosure. In addition, although the embodiments of the present disclosure can achieve advantages that are superior to other possible solutions and / or superior to the prior art, whether a particular advantage is achieved by a given embodiment does not limit the present disclosure. Therefore, the following aspects, features, embodiments and advantages are merely illustrative and are not considered to be elements or limitations of the appended claims unless explicitly stated in the claims. Similarly, reference to "the present disclosure" should not be interpreted as a generalization of any inventive subject matter disclosed herein, and should not be considered to be elements or limitations of the appended claims unless explicitly stated in the claims.
[0023] The present disclosure is generally related to scheduling zone attach commands for a zone name space (ZNS). Rather than scheduling data transfers based on zone attach command size, data transfer scheduling is based on memory device page chunks. Each zone attach command is first associated with a memory device die and queued in a related die queue. A data chunk having the size of a page is retrieved from a host device for each pending die. When a data chunk is retrieved, a timer is activated, and retrieval of the next data chunk for a particular die is allowed only once the timer expires. The value of the timer is set to be less than the time necessary to write the data chunk to the die.
[0024] Figure 1 1 is a schematic block diagram illustrating a storage system 100 in accordance with one or more techniques of this disclosure, wherein a data storage device 106 can act as a storage device for a host device 104. For example, the host device 104 can utilize an NVM 110 included in the data storage device 106 to store and retrieve data. The host device 104 includes a host DRAM 138. In some examples, the storage system 100 can include multiple storage devices, such as the data storage device 106, that can operate as a storage array. For example, the storage system 100 can include multiple data storage devices 106 configured as an inexpensive / redundant array of independent disks (RAID), which together act as a large-capacity storage device for the host device 104.
[0025] The storage system 100 includes a host device 104 that can store data to and / or retrieve data from one or more storage devices, such as data storage device 106. Figure 1 , host device 104 may communicate with data storage device 106 via interface 114. Host device 104 may include any of a wide range of devices, including computer servers, network attached storage (NAS) units, desktop computers, notebook (i.e., laptop) computers, tablet computers, set-top boxes, telephone handsets such as so-called "smart" phones, so-called "smart" tablets, televisions, cameras, display devices, digital media players, video game consoles, video streaming devices, and the like.
[0026] The data storage device 106 includes a controller 108, a non-volatile memory 110 (NVM 110), a power supply 111, a volatile memory 112, an interface 114, and a write buffer 116. In some examples, the data storage device 106 may include Figure 1106 for clarity. For example, the data storage device 106 may include a printed circuit board (PCB) to which the components of the data storage device 106 are mechanically attached and the printed circuit board includes conductive traces or the like that electrically interconnect the components of the data storage device 106. In some examples, the physical size and connector configuration of the data storage device 106 may conform to one or more standard form factors. Some example standard form factors include (but are not limited to) 3.5" data storage device (e.g., HDD or SSD), 2.5" data storage device, 1.8" data storage device, peripheral component interconnect (PCI), PCI extension (PCI-X), PCI Express (PCIe) (e.g., PCIe x1, x4, x8, x16, PCIe Mini Card, MiniPCI, etc.). In some examples, the data storage device 106 may be directly coupled (e.g., directly soldered) to a motherboard of the host device 104.
[0027] The interface 114 of the data storage device 106 may include one or both of a data bus for exchanging data with the host device 104 and a control bus for exchanging commands with the host device 104. The interface 114 may operate according to any suitable protocol. For example, the interface 114 may operate according to one or more of the following protocols: Advanced Technology Attachment (ATA) (e.g., Serial ATA (SATA) and Parallel ATA (PATA)), Fibre Channel Protocol (FCP), Small Computer System Interface (SCSI), Serial Attached SCSI (SAS), PCI and PCIe, Non-Volatile Memory Express (NVMe), OpenCAPI, GenZ, Cache Coherent Interface Accelerator (CCIX), Open Channel SSD (OCSSD), or the like. The electrical connection of the interface 114 (e.g., a data bus, a control bus, or both) is electrically connected to the controller 108, thereby providing an electrical connection between the host device 104 and the controller 108, allowing data to be exchanged between the host device 104 and the controller 108. In some examples, the electrical connection of interface 114 may also permit data storage device 106 to receive power from host device 104. Figure 1 As shown in , power supply 111 may receive power from host device 104 via interface 114 .
[0028] The data storage device 106 includes an NVM 110, which may include a plurality of memory devices or memory cells. The NVM 110 may be configured to store and / or retrieve data. For example, a memory cell of the NVM 110 may receive data and a message indicating that the memory cell stores data from the controller 108. Similarly, a memory cell of the NVM 110 may receive a message indicating that the memory cell retrieves data from the controller 108. In some instances, each of the memory cells may be referred to as a die. In some instances, a single physical chip may include a plurality of dies (i.e., a plurality of memory cells). In some instances, each memory cell may be configured to store a relatively large amount of data (e.g., 128MB, 256MB, 512MB, 1GB, 2GB, 4GB, 8GB, 16GB, 32GB, 64GB, 128GB, 256GB, 512GB, 1TB, etc.).
[0029] In some examples, each memory cell of NVM 110 may include any type of nonvolatile memory device, such as a flash memory device, a phase change memory (PCM) device, a resistive random access memory (ReRAM) device, a magnetoresistive random access memory (MRAM) device, a ferroelectric random access memory (F-RAM), a holographic memory device, and any other type of nonvolatile memory device.
[0030] NVM 110 may include multiple flash memory devices or memory cells. Flash memory devices may include NAND or NOR-based flash memory devices, and may store data based on the charge contained in the floating gate of the transistor for each flash memory cell. In NAND flash memory devices, the flash memory device may be divided into multiple blocks that may be divided into multiple pages. Each of the multiple blocks within a particular memory device may include multiple NAND cells. The rows of NAND cells may be electrically connected using word lines to define one page of multiple pages. The corresponding cells in each of the multiple pages may be electrically connected to the corresponding bit lines. In addition, the NAND flash memory device may be a 2D or 3D device, and may be a single level cell (SLC), a multi-level cell (MLC), a three-level cell (TLC), or a four-level cell (QLC). The controller 108 may write data to the NAND flash memory device at the page level and read data from the NAND flash memory device at the page level, and erase data from the NAND flash memory device at the block level.
[0031] The data storage device 106 includes a power supply 111, which can provide power to one or more components of the data storage device 106. When operating in standard mode, the power supply 111 can use power provided by an external device such as the host device 104 to provide power to the one or more components. For example, the power supply 111 can use power received from the host device 104 via the interface 114 to provide power to the one or more components. In some examples, the power supply 111 may include one or more power storage components configured to provide power to the one or more components when operating in the shutdown mode, in which, for example, power is stopped from being received from the external device. In this way, the power supply 111 can act as an onboard backup power supply. Some examples of the one or more power storage components include (but are not limited to) capacitors, supercapacitors, batteries, and the like. In some examples, the amount of power that can be stored by the one or more power storage components can vary with the cost and / or size (e.g., area / volume) of the one or more power storage components. In other words, as the amount of power stored by the one or more power storage components increases, the cost and / or size of the one or more power storage components also increases.
[0032] The data storage device 106 also includes a volatile memory 112 that can be used by the controller 108 to store information. The volatile memory 112 may include one or more volatile memory devices. In some examples, the controller 108 may use the volatile memory 112 as a cache memory. For example, the controller 108 may store the cached information in the volatile memory 112 until the cached information is written to the non-volatile memory 110. Figure 1 As shown in , volatile memory 112 can consume power received from power supply 111. Examples of volatile memory 112 include, but are not limited to, random access memory (RAM), dynamic random access memory (DRAM), static RAM (SRAM), and synchronous dynamic RAM (SDRAM (e.g., DDR1, DDR2, DDR3, DDR3L, LPDDR3, DDR4, LPDDR4, and the like)).
[0033] The data storage device 106 includes a controller 108 that can manage one or more operations of the data storage device 106. For example, the controller 108 can manage data reading from and / or data writing to the NVM 110. In some embodiments, when the data storage device 106 receives a write command from the host device 104, the controller 108 can initiate a data storage command to store data to the NVM 110 and monitor the progress of the data storage command. The controller 108 can determine at least one operating characteristic of the storage system 100 and store the at least one operating characteristic to the NVM 110. In some embodiments, when the data storage device 106 receives a write command from the host device 104, the controller 108 temporarily stores the data associated with the write command in an internal memory or write buffer 116 before sending the data to the NVM 110.
[0034] Figure 2A and 2B is a schematic diagram of device control of an SSD according to various embodiments. In one embodiment, Figure 2A and Figure 2B The flash memory device can be Figure 1 In addition, according to various embodiments, Figure 2A and Figure 2B The flash memory devices may be multi-level cells, such as SLC, MLC, TLC, QLC, or any other iteration of multi-level cells not listed. Figure 2A and Figure 2B Each square of a block storage device represents a block that can be used for data storage. A shaded square or block indicates that the block includes data. The data can be user data, XOR or parity data, device metadata, or any other suitable data to be stored in the flash memory of the SSD.
[0035] Figure 2A is a schematic illustration of device control of a conventional SSD. The SSD receives data from multiple applications, such as Application 1, Application 2, and Application 3. The data is stored in the flash memory of the SSD. In the SSD, the storage device controls the data placement. The data is written sequentially to the flash memory so that the data from each application can be written in the order in which the data is received. Because the data from each application may be random throughout the sequential write, latency may increase and throughput may be hindered.
[0036] Figure 2B is a schematic diagram of the device control of ZNS SSD. Figure 2A , the SSD receives data from multiple applications such as Application 1, Application 2, and Application 3. The data is stored in the flash memory of the SSD. In the SSD, the application or application such as Figure 1 The data placement in the host controlled zone of the host device 104 of the SSD is shown in FIG. 1 . The flash memory of the SSD is partitioned into various equal capacity zones. The zones can be viewed as units of parallelism, where the host device 104 can direct the workload or data to a particular unit of parallelism (i.e., the host has block access to the flash memory). For example, data associated with application 1 is located in a first zone, while data associated with application 2 is located in a second zone, and data associated with application 3 is located in a third zone. Due to zone provisioning, latency is reduced compared to latency of conventional SSD device control and throughput is improved compared to throughput of conventional SSD device control.
[0037] Figure 3 is a schematic diagram of the zone additional command. Figure 1 The host device 104 of the host device 104 implicitly or explicitly opens the region. The host device 104 issues several region add commands to the same address. For example Figure 1 The storage device of the data storage device 106 is responsible for filling the data from the host device 104 and notifying the host device 104 exactly where the data is written within the area for each command. Figure 1 The location of the NVM data of NVM 110 is stored in, for example Figure 1 The volatile memory 112 of the NVM 110 and the logical-to-physical (L2P) table in the NVM 110. The L2P table includes pointers to one or more logical block addresses (LBAs) where data, such as user data, is stored.
[0038] like Figure 3 As illustrated in , each block in a zone is 4K in size. The term "block" is used for exemplary purposes and is not limited to a 4K size. The data storage device 106 receives three write commands (i.e., three zone append commands) in the order of 4K Write0, 8K Write1, and 16K Write2. In addition, the write pointer (WP) of the zone corresponds to the next available position for the write command. Figure 3, a 4K Write0 is written to the first block, and the new write pointer position is the beginning of the second block (i.e., at the 4K size position in the zone). After Write0 is written to the first block, an 8K Write1 is written to the next available block, occupying the next two blocks (i.e., two 4K size blocks). The write pointer is updated to reflect the 16K size position of the zone for the next write command. Finally, the 16K Write2 command is written to the next four blocks (i.e., four 4K size blocks). The write pointer is updated to reflect the total zone size of 28K, where the next write command will be written to the 28K size position. At each location, the host is updated with the exact location of the write data in the zone via the completion message associated with each zone append command. Although illustrated in the order above, the write commands received simultaneously can be written sequentially in any order (i.e., out of order), so that Write2 can be written before Write0 in the zone due to the ZNS environment.
[0039] Figure 4 is a schematic illustration of a state diagram for a ZNS SSD according to one embodiment. Figure 4 In the , the various zone states (ZS) are empty (i.e., ZSE: empty), implicitly opened (i.e., ZSIO: implicitly opened), explicitly opened (i.e., ZSEO: explicitly opened), closed (i.e., ZSC: closed), full (i.e., ZSF: full), read-only (i.e., ZSRO: read-only), and offline (i.e., ZSO: offline). A common flow path for a zone can be from an empty state to an open state, which can be implicitly opened or explicitly opened. From the open state, the zone can be at a capacity that makes the ZNS full. After the full state, the zone contents can be erased, which resets the ZNS to empty.
[0040] In e.g. Figure 1 The initial state of each zone after a controller power-on or reset event of the controller 108 is determined by the zone characteristics of each zone. For example, the zone state ZSE: Empty is represented by a valid write pointer (WP) pointing to the lowest LBA in the zone (i.e., the zone start LBA). The zone state ZSC: Closed is represented by a WP that does not point to the lowest LBA in the zone. The zone state ZSF: Full is the initial state when the most recent zone condition is Full. The zone state ZSRO: Read Only is the initial state when the most recent zone condition is Read Only. The zone state ZSO: Offline is the initial state when the most recent zone condition is Offline.
[0041] Zones can have any total capacity or total size, such as 256MiB or 512MiB. However, small portions of each zone may not be writable but may still be readable, such as portions of each zone that store XOR data, metadata, and one or more excluded erase blocks. For example, if the total capacity of a zone is 512MiB, then the zone capacity (ZCAP) may be 470MiB, which is the capacity available for writing data, while 42MiB is not available for writing data. The ZCAP of a zone is equal to or less than the total zone storage capacity or total zone storage size. For example Figure 1 The data storage device 106 or Figure 2B The storage device of the SSD can determine the ZCAP of each zone immediately after the zone is reset. For example, Figure 1 The controller of the controller 108 may determine the ZCAP of each zone. The storage device may determine the ZCAP of a zone when the zone is reset.
[0042] When a zone is empty (i.e., ZSE: Empty), the zone contains no data (i.e., no erase blocks in the zone currently store data) and the write pointer (WP) is located at the zone start LBA (ZSLBA) (i.e., WP=0). ZSLBA refers to the start of the zone (i.e., the first NAND location of the zone). The write pointer indicates the location in the zone of the storage device where data is written. Once a write is scheduled to an empty zone or if the host issues a zone open command (i.e., ZSIO: Implicitly Open or ZSEO: Explicitly Open), the zone switches to an open and active zone. Zone management (ZM) commands can be used to move a zone between a zone open state and a zone closed state, both of which are active states. If a zone is active, then the zone includes open blocks that can be written to, and a description of the recommended time in the active state can be provided to the host. The controller 108 includes the ZM (not shown). Zone metadata can be stored in the ZM and / or the controller 108.
[0043] The term "write to" includes programming user data on 0 or more NAND locations in an erase block and / or partially filled NAND locations in an erase block when the user data has not yet filled all available NAND locations. The NAND locations may be such as Figure 2A and 2B The term "write to" may also include moving a zone to full (i.e., ZSF: full) due to internal drive handling needs (open block data retention issues because erroneous bits accumulate more quickly on open erase blocks), the data storage device 106 closing or filling a zone due to resource constraints, such as too many open zones to track or a defective state being discovered, etc., or, for example Figure 1 The host device 104 of the host device shuts down the zone due to problems such as no more data to send to the drive, the computer being turned off, error handling on the host, limited host resources for tracking, etc.
[0044] An active zone may be open (i.e., ZSIO: implicitly open or ZSEO: explicitly open) or closed (i.e., ZSC: closed). An open zone is an empty or partially full zone that is ready to be written to and currently has resources allocated. Data received from a host device via a write command or a zone append command may be programmed into an open erase block that is not currently filled with previous data. A closed zone is an empty or partially full zone that is not currently receiving writes from the host on an ongoing basis. Moving a zone from an open state to a closed state allows the controller 108 to reallocate resources to other tasks. These tasks may include, but are not limited to, other zones that are open, other conventional non-zone areas, or other controller needs.
[0045] In both open and closed zones, the write pointer points to a location in the zone somewhere between the ZSLBA and the end of the last LBA of the zone (i.e., WP>0). An active zone can be switched between open and closed states as specified by the ZM or if a write is scheduled for the zone. In addition, the ZM can reset the active zone to clear or erase the data stored in the zone, causing the zone to switch back to an empty zone. Once the active zone is full, the zone switches to a full state. A full zone is a zone that is completely filled with data and there are no more available blocks to write data (i.e., WP=Zone Capacity (ZCAP)). In a full zone, the write pointer points to the end of the writable capacity of the zone. Read commands for data stored in a full zone can still be executed.
[0046] The ZM may reset a full zone (i.e., ZSF: Full), schedule the erasure of data stored in the zone so that the zone switches back to an empty zone (i.e., ZSE: Empty). When a full zone is reset, the zone may not be cleared of data immediately, but the zone may be marked as an empty zone ready for writing. However, the reset zone must be erased before switching to an open and active zone. A zone may be erased at any time between a ZM reset and a ZM open. After resetting a zone, the data storage device 106 may immediately determine a new ZCAP for the reset zone and update the writable ZCAP attribute in the zone metadata. An offline zone is a zone that is not available for writing data. An offline zone may be in a full state, an empty state, or a partially full state without being active.
[0047] Since the reset area clears or schedules the erasure of all data stored in the area, the need for garbage collection of individual erase blocks is avoided, thereby improving the overall garbage collection process of the data storage device 106. The data storage device 106 can mark one or more erase blocks for erasure. When the new area is to be formed and the data storage device 106 expects the ZM to open, the one or more erase blocks marked for erasure can be erased subsequently. The data storage device 106 can further immediately determine and create a physical backup of the area after the erasure of the erase block. Therefore, once the new area is opened and the erase block is selected to form the area, the erase block will have been erased. In addition, whenever the area is reset, a new order for LBA and a write pointer for the area can be selected, so that the area can allow receiving commands that are not in a sequential order. The write pointer can be optionally disconnected so that the command can be written to any starting LBA indicated for the command.
[0048] The controller 108 provides T per zone 区作用中限制 (ZAL) value. In various embodiments, ZAL may also be applicable to blocks and / or streams. Each zone is assigned a ZAL value, which indicates how long an open zone can remain open. In a standard storage device, the ZAL value is fixed throughout the time that the relevant zone is used by the host device 104 (i.e., the storage device receives a write or read command for the relevant zone from the host). The ZAL value is shared by each zone in the namespace (i.e., a global ZAL value). The time to which the ZAL value corresponds is the maximum value of the time before an unacceptable amount of bit errors has accumulated in the zone. The host device 104 or the data storage device 106 may close the zone before the ZAL value is reached to avoid accumulating an unacceptable amount of bit errors.
[0049] If the zone in-action limit is a non-zero value, the controller may transition a zone in the ZSIO: Implicitly On, ZSEO: Explicitly On, or ZSC: Off state to the ZSF: Full state. When a zone transitions to the ZSIO: Implicitly On state or the ZSEO: Explicitly On state, an internal timer in seconds is started so that the host device 104 or the data storage device 106 recognizes when the ZAL value is exceeded. If the ZAL value or time limit is exceeded, the controller 108 may alert the host device 104 that the zone needs to be completed (i.e., the zone needs to be at capacity) or cause the zone to transition to the ZSF: Full state. When the host device 104 is alerted that a zone needs to be completed, the Zone Completed Advice field is set to 1 and a Zone Information Change event is reported to the host device 104. When a zone transitions to the ZSF: Full state, the Zone Completed by Controller field is set to 1 and a Zone Information Change event is reported to the host device 104. Because the ZAL value is a global parameter for each zone of the storage device, a zone may be shut down prematurely resulting in suboptimal storage drive operation or shut down late resulting in an unacceptable amount of bit error accumulation, which may result in reduced integrity of the data storage device. Unacceptable accumulation of bit errors may also result in reduced performance of the data storage device. The global ZAL parameter is a static parameter and may be based on a worst-case estimate of conditions that the host may face.
[0050] Figure 5 5 is a schematic illustration of a zone namespace structure 500 according to one embodiment. The zone namespace structure 500 includes a plurality of NAND channels 502a-502n, wherein each NAND channel 502a-502n includes one or more dies 504a-504n. Each NAND channel 502a-502n may have a dedicated hardware (HW) interface so that each NAND channel 502a-502n is independent of another NAND channel 502a-502n. Each of the one or more dies 504a-504n includes one or more erase blocks 508a-508n. The zone namespace structure 500 also includes one or more zones 506a-506n, wherein each zone 506a-506n includes one or more erase blocks 508a-508n from each of the plurality of dies. In one embodiment, the size of each of the plurality of zones is equal. In another embodiment, the size of each of the plurality of zones is unequal. In yet another embodiment, one or more regions are equal in size and the remaining one or more regions are unequal in size.
[0051] For example, the first area 506a includes a first erase block 508a and a second erase block 508b from each die 504a-504n of each NAND channel 502a-502n. The area 506a-506n may include two erase blocks 508a-508n from each die 504a-504n, so that the two erase blocks 508a-508n increase parallelism when reading or writing data to the die 504a-504n and / or the area 506a-506n. In one embodiment, the area may include an even number of erase blocks from each die. In another embodiment, the area may include an odd number of erase blocks from each die. In yet another embodiment, the area may include one or more erase blocks from one or more die, wherein the one or more erase blocks may not be selected from one or more die.
[0052] Furthermore, the data transfer size associated with each zone append command to zones 506a-506n may be the size of an erase block to take advantage of NAND parallelism and optimize the zone append command to NAND characteristics. If the data transfer size (e.g., write size) associated with a zone append command is less than a minimum transfer size (e.g., write size), such as the size of an erase block, then the zone append command may be held at a buffer, such as Figure 1 The write buffer 116 of the high-speed memory is written to the high-speed memory until the one or more region append commands held at the buffer are aggregated to a minimum transfer size. When the one or more region append commands are executed in parallel, data transfers are interleaved with each region append command to minimize the size of the write cache buffer (e.g., the write buffer 116).
[0053] Figure 6 is a schematic illustration of ZNS non-interleaved data transmission. ZNS non-interleaved data transmission is shown as data transmission within a time period. Figure 6 In the embodiment of the present invention, four zone append commands are sent to the storage device to write to the zone. The size of the data associated with each of the four zone append commands is 1MB. For example, the size of the data associated with the first zone append command is 1MB, the size of the data associated with the second zone append command is 1MB, and so on.
[0054] The data for each of the zone attach commands is transmitted on a data bus such as a PCIe bus, where for example Figure 1The controller of the controller 108 queues the zone append commands to be written to the corresponding locations in the die of the corresponding zones. The transmission of 1MB of first data for the first zone append command on the data bus may take about 0.14 milliseconds. The time values listed are not intended to be limiting, but rather to provide examples of embodiments. After the transmission of the first data for the first zone append command has been completed, the second data associated with the second zone append command may be transmitted, and the same for the third data for the third zone append command, and so on.
[0055] After the data for the zone attach command is transmitted on the data bus, the data is transmitted and programmed to the NAND interface. The programming of the data to the NAND interface occurs at a NAND page granularity, such as about 32KB, about 64KB, about 96KB, or any other suitable size not listed. Each data programming operation can take about 2 milliseconds, where writing 1MB of data can take about 20 milliseconds. For example, consider that the time to write 1MB of data is much greater than the time to obtain the data to be written (i.e., 0.14 milliseconds). Before writing, all the acquired data is cached internally. Since the time to obtain data is much smaller than the time to write data, a large amount of data will be cached, thereby requiring a very large cache memory size. In order to start the execution of the next command in parallel with the previously acquired command, the cache memory will be sufficiently large to ensure that the cache memory will not become full when all the data associated with the first acquisition command is cached. If the cache memory is not full, the second command can be obtained in parallel and programmed to different dies. Due to the large time difference between acquisition and writing, a very large internal cache memory will be required to program different dies in parallel.
[0056] exist Figure 6 , a controller receives four zone attach commands, each to a different die. For example, a first zone attach command is for first data to a first die 0, a second zone attach command is for second data to a second die 1, a third zone attach command is for third data to a third die 2, and a fourth zone attach command is for fourth data to a fourth die 3. In the current embodiment, the controller has four available write buffers so that each command can be executed after receiving data associated with the four zone attach commands. If a fifth zone attach command associated with fifth data is received, the fifth zone attach command is queued in a controller buffer (e.g., a write cache buffer) until the write buffer is released. However, since the data size for each zone attach command is 1MB, many zone attach commands can be stored in the controller buffer, thereby increasing the size required for the write cache buffer. The additional size of the write cache buffer increases cost and requires more power for operation.
[0057] Figure 7 FIG. 1 is a schematic diagram of ZNS staggered and optimized data transmission according to one embodiment. ZNS staggered and optimized data transmission shows data transmission within a time period. Figure 7 In the example of FIG. 1 , four zone append commands are sent to a storage device to write to a zone. The size of the data associated with each of the four zone append commands is 1MB. For example, the size of the data associated with the first zone append command is 1MB, the size of the data associated with the second zone append command is 1MB, and so on. However, the data associated with each of the four zone append commands is divided into smaller sizes, such as a NAND page size of 96KB. The listed sizes are not intended to be restrictive, but rather to provide examples of embodiments. Because the data is divided into sizes of 96KB, the cache buffer size (assuming four available buffers) is 4*96KB=384KB. However, if the data is not divided into smaller data chunks, the total size of the cache buffer is 4MB or 4,096KB.
[0058] Each 96KB data chunk is retrieved from the host for each pending die associated with a region attach command. When a data chunk, such as a 96KB data chunk associated with a first region attach command, is retrieved, a timer is activated. The timer counts down from a predetermined value so that when the timer expires, the next data chunk for the same region attach command can be retrieved.
[0059] For example, the first data for the first region append command has a first timer, the second data for the second region append command has a second timer, the third data for the third region append command has a third timer, and the fourth data for the fourth region append command has a fourth timer. The next 96KB data chunk from the command associated with the same die may be acquired only after the timer associated with the die expires. For example, when the timer for the first 96KB data chunk for the first region append command expires, the second 96KB data chunk for the first region append command may be acquired and programmed to die 0. Because the data transfer size is programmed in smaller segments, high performance and NAND utilization may be achieved without increasing the write cache buffer size within the storage device.
[0060] Figure 8 is a schematic illustration of a block diagram 800 for parsing a region attach command according to one embodiment. The block diagram 800 for parsing a region attach command includes a region attach command parsing 802, a die association 804, one or more dies 806a-806n, and a data transfer scheduler 812.
[0061] Region attach command parsing 802 may split the data associated with a region attach command into smaller data chunks, such as Figure 7For example Figure 1 The controller of the controller 108 may include a die association 804, where the controller writes data to the respective dies 806a-806n. For example, if a first region attach command for a first die and a second region attach command for a second die are received, the controller die association 804 distributes the allocated data to each respective die.
[0062] The one or more dies 806a-806n each have a program timer 808 and an additional command FIFO 810. When a first data chunk is written to the first die 806a, the program timer 808 for the first die 806a begins counting down. In one embodiment, the timer is initialized to about 2.2 milliseconds, which may be the NAND programming time. When the program timer 808 expires, the next data chunk in the additional command FIFO 810 queue, such as the second data chunk for the first die 806a, may be written to the same die, such as the first die 806a. During this time, the storage device has enough time to program the data to the NAND die so that the next data chunk will be available in the internal cache buffer while the data is being programmed to the NAND die. The region additional data transfer scheduler 812 writes data to each NAND die using a round-robin scheduling scheme. However, the round-robin scheduling scheme is applicable to data chunks with pending region additional commands in the queue and a program timer value of 0.
[0063] After the data chunk passes through the region append data transfer scheduler 812, the data chunk is passed to the read DMA 814. The data may be transferred to the host memory 816 or to the write cache buffer 818 after the read DMA 814. When the data passes through the write cache buffer 818, the data chunk passes through the encryption engine 820 and the encoder and XOR generator 822, and then is written to the associated NAND die 824.
[0064] Fig. 9 9 is a flow chart illustrating a method 900 of interleaving and optimizing data transfer in a ZNS device according to one embodiment. At block 902, a storage device receives a zone attach command. The storage device associates the zone attach command with an associated die and queues the zone attach command to an associated die queue at block 904. At block 906, a controller determines whether a die program timer value is 0, wherein a die program timer value of 0 corresponds to an expired timer. If the die program timer is not equal to 0, the zone attach command remains in the die queue.
[0065] However, if the die programming timer is 0, the controller sends a request to the arbiter at block 908 to obtain the page size from the host memory. After the request is granted at block 910, the timer is activated, where the controller determines the remaining size of the data associated with the zone append command that has not yet been obtained from the host memory at block 912. However, if the request is not granted at block 910, the method 900 restarts at block 906 with respect to the remaining data. At block 914, if the size of the data associated with the zone append command is 0, the method 900 is completed. However, if the size of the data associated with the zone append command is not 0, the method 900 restarts at block 906 with respect to the remaining data.
[0066] By interleaving the data transfer of region attach commands in chunks of data equivalent to a page size instead of full blocks, high performance memory device utilization is achieved without increasing the write cache buffer size.
[0067] In one embodiment, a data storage device includes: a memory device having a plurality of memory dies; and a controller coupled to the memory device, wherein the controller is configured to: receive a plurality of zone append commands; retrieve data for each zone append command from a host device, wherein the retrieved data for each zone append command is less than all data associated with an individual zone append command in the plurality of zone append commands; and write the retrieved data to the memory device. The retrieved data for each zone append command is a data chunk having a size equal to a page. The controller is also configured to retrieve additional data for each zone append command from the host device and write the additional data to the memory device. Retrieving the additional data for each zone append command occurs approximately 5 microseconds before completion of writing the retrieved data for each zone append command. The controller is also configured to activate a timer immediately after retrieving the data for each zone append command from the host device. Each zone append command is associated with a different die in the plurality of dies. The additional data for the zone append command associated with a particular die in the plurality of dies is retrieved approximately 5 microseconds before completion of writing the original retrieved data to the particular die. The controller is also configured to activate a timer for each die of the plurality of die for which data is to be retrieved.
[0068] In another embodiment, a data storage device includes: a memory device including a plurality of dies; and a controller coupled to the memory device, wherein the controller is configured to: receive a first region append command associated with a first die of the plurality of dies; receive a second region append command associated with a second die of the plurality of dies; retrieve a first block of first region append command data; retrieve a first block of second region append command data; write the first block of first region append command data to the first die; write the first block of second region append command data to the second die; and retrieve a second block of first region append command data, wherein the second block of first region append command data is retrieved after a predetermined time period; and wherein the predetermined time period is less than a time period necessary to write the first block of first region data to the first die. The controller is further configured to activate a timer associated with the first die upon retrieval of the first block of first region append command data, wherein the timer is configured to run during the predetermined time period. The first block of first region append command data has a size equal to a page size of the first die. The data storage device also includes a write buffer, wherein the write buffer is configured to store data for the plurality of dies. The write buffer is configured to store data of a size equivalent to the value of a data page for each of the plurality of dies. The controller is configured to sequentially retrieve a first block of first region additional command data and retrieve a first block of second region additional command data. The controller is configured to retrieve a second block of first region additional command data after retrieving the first block of second region additional command data.
[0069] In another embodiment, a data storage device includes: a memory device; a controller coupled to the memory device; and a means for obtaining data associated with a zone append command, the means for obtaining data associated with the zone append command coupled to the memory device, wherein the obtained data has a size equal to a page size of a die of the memory device, and wherein the data associated with the zone append command has a size greater than the page size of a die of the memory device. The data storage device also includes a timing means, wherein the timing means is coupled to the memory device. The data storage device also includes a means for waiting to obtain additional data associated with the zone append command, wherein the means for waiting is coupled to the memory device. The data storage device also includes a write buffer coupled between the memory device and the controller. The write buffer is sized to store data of a size equal to one page size for each die of the memory device.
[0070] While the foregoing is directed to embodiments of the present disclosure, other and further embodiments of the disclosure may be devised without departing from the basic scope of the disclosure, which is determined by the claims that follow.
Claims
1. A data storage device, comprising: a memory device having a plurality of memory dies; as well as a controller coupled to the memory device, wherein the controller is configured to: receiving a plurality of zone append commands for a partition name space (ZNS) for programming data for an open block; fetching data for each zone append command from a host device, wherein the fetched data for each zone append command is less than all of the data associated with an individual zone append command of the plurality of zone append commands; and The acquired data is written to the memory device, wherein the acquired data for each region append command is acquired after a predetermined time period, and wherein the predetermined time period is less than a time period necessary to write the acquired data. 2 . The data storage device according to claim 1 , wherein the acquired data for each region add command is a data chunk having a size equal to a page. 3 . The data storage device of claim 1 , wherein the controller is further configured to obtain additional data for each region append command from the host device and write the additional data to the memory device.
4. The data storage device of claim 3, wherein acquiring additional data for each zone append command occurs approximately 5 microseconds prior to completion of writing the acquired data for each zone append command. 5 . The data storage device of claim 1 , wherein the controller is further configured to activate a timer upon acquiring data for each region append command from the host device.
6. The data storage device of claim 1, wherein each region attach command is associated with a different die among the plurality of dies.
7. The data storage device of claim 6, wherein additional data for a region attach command associated with a particular die of the plurality of dies is acquired approximately 5 microseconds prior to completion of writing originally acquired data to the particular die. 8 . The data storage device of claim 7 , wherein the controller is further configured to activate a timer for each die of the plurality of dies for which data is retrieved.
9. A data storage device, comprising: a memory device comprising a plurality of dies; as well as a controller coupled to the memory device, wherein the controller is configured to: receiving a first zone append command for a zone name space (ZNS) associated with a first die of the plurality of dies for programming data of an open block; receiving a second zone append command for the partition name space (ZNS) associated with a second die of the plurality of die for programming data of an open block; Obtaining a first block of additional command data in the first zone; Obtaining a first block of additional command data in the second area; writing the first group of blocks of first region additional command data to the first die; writing the first block of second region additional command data to the second die; and A second block of first region append command data is acquired, wherein the second block of first region append command data is acquired after a predetermined time period; and wherein the predetermined time period is less than a time period necessary to write the first block of first region data to the first die.
10. The data storage device of claim 9, wherein the controller is further configured to activate a timer associated with the first die upon acquiring the first block of first region append command data, wherein the timer is configured to run for the predetermined time period. 11 . The data storage device of claim 9 , wherein the first group of blocks of first region append command data has a size equal to a page size of the first die. 12 . The data storage device of claim 9 , further comprising a write buffer, wherein the write buffer is configured to store data for the plurality of dies. 13 . The data storage device of claim 12 , wherein the write buffer is configured to store data of a size equivalent to the value of a page of data for each die of the plurality of dies. 14 . The data storage device of claim 9 , wherein the controller is configured to sequentially acquire the first group block of first area append command data and acquire the first group block of second area append command data. 15 . The data storage device of claim 14 , wherein the controller is configured to acquire the second group of blocks of first area append command data after acquiring the first group of blocks of second area append command data.
16. A data storage device, comprising: a memory component; as well as a controller coupled to the memory component, wherein the controller is configured to: Retrieving data associated with a zone attach command, the zone attach command being for a zone name space (ZNS) for programming data to an open block of the memory component, wherein the retrieved data has a size equal to a page size of a die of the memory component, and wherein the data associated with the zone attach command has a size greater than the page size of the die of the memory component, wherein the retrieved data is retrieved after a predetermined time period, and wherein the predetermined time period is less than a time period necessary to write the retrieved data to the die.
17. The data storage device of claim 16, further comprising a timing component, wherein the timing component is coupled to the memory component.
18. The data storage device of claim 16, further comprising means for waiting to obtain additional data associated with the region attach command, wherein the means for waiting is coupled to the memory means.
19. The data storage device of claim 16, further comprising a write buffer coupled between the memory component and the controller.
20. The data storage device of claim 19, wherein the write buffer is sized to store data of a size equal to one page size for each die of the memory component.
