Partition formation for partition namespace

By comparing the erasure block age of the die in the storage device, selecting the youngest block to form a partition and excluding older blocks, the problem of reduced durability caused by erase block wear is solved, extending the service life of the erase block and improving The overall performance of the storage device.

CN112148627BActive Publication Date: 2024-09-20SANDISK TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010215411.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-06-28
Filing Date
2020-03-24
Publication Date
2024-09-20
Estimated Expiration
2040-03-24

AI Technical Summary

Technical Problem

The wear age of erase blocks in storage devices increases, causing their retention capabilities and durability to decrease, and frequently used erase blocks become unavailable or unavailable for storing data.

Method used

By comparing the estimated age of the erase blocks of multiple dies in the storage device, the youngest erase blocks are selected to form the partition, and the older erase blocks are excluded from the partition and retained in the free pool to Extend its service life.

Benefits of technology

It effectively slows down the wear of erase blocks, extends their service life, avoids the situation where a large number of erase blocks become unavailable, and improves the overall garbage collection process of the storage device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112148627B_ABST
    Figure CN112148627B_ABST
Patent Text Reader

Abstract

The present invention is entitled "Partition Formation for Partition Namespaces". The present disclosure as a whole relates to a method of operating a storage device. The storage device includes a controller and a media unit. The capacity of the media unit is divided into a plurality of partitions. The media unit includes a plurality of dies, and each of the plurality of dies includes a plurality of erase blocks. The controller is configured to compare the estimated ages of the first available erase blocks in each of the plurality of dies with each other, and select one or more of the first available erase blocks from one or more of the plurality of dies based on the estimated ages to form a first partition. At least one first available erase block from at least one of the plurality of dies is excluded from the first partition.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims the benefit of U.S. Provisional Patent Application Serial No. 62 / 868,785, filed on June 28, 2019, which is incorporated herein by reference. Technical Field

[0003] Embodiments of the present disclosure relate generally to storage devices, such as solid-state drives (SSDs). Background Art

[0004] Description of Related Art

[0005] Storage devices such as SSDs can be used in computers in applications that require relatively low latency and high capacity storage. For example, an SSD can exhibit lower latency than a hard disk drive (HDD), especially for random reads and writes. Typically, a controller of an SSD receives a command to read or write data from a host device to a memory device. The data is read and written to one or more erase blocks in the memory device. Once the data is programmed to one or more erase blocks, the erase blocks can be erased or cleared, returned to a free pool of erase blocks, and then reprogrammed with data again.

[0006] However, each program erase cycle of an erase block increases the age and amount of wear on the erase block, potentially reducing the retention capacity and durability of the erase block and increasing the bit error rate of the data. One or more erase blocks may be selected more frequently than other erase blocks, which may cause heavily used erase blocks to become unusable, corrupted, and / or unusable for storing data.

[0007] Therefore, a new method of operating a storage device is needed that reduces the age and wear of erase blocks. Summary of the invention

[0008] The present disclosure as a whole relates to a method of operating a storage device. The storage device includes a controller and a media unit. The capacity of the media unit is divided into a plurality of partitions. The media unit includes a plurality of dies, and each of the plurality of dies includes a plurality of erase blocks. The controller is configured to compare estimated ages of first available erase blocks in each of the plurality of dies with each other, and select one or more first available erase blocks from one or more of the plurality of dies to form a first partition based on the estimated ages. At least one first available erase block from at least one of the plurality of dies is excluded from the first partition.

[0009] In one embodiment, a storage device includes a media unit. The capacity of the media unit is divided into a plurality of partitions. The media unit includes a plurality of dies, each of the plurality of dies including a plurality of erase blocks. The storage device also includes a controller coupled to the media unit, the controller being configured to compare estimated ages of first available erase blocks in each of the plurality of dies with each other, and to select one or more of the first available erase blocks from one or more of the plurality of dies based on the estimated ages to form a first partition. At least one first available erase block from at least one of the plurality of dies is excluded from the first partition.

[0010] In another embodiment, a storage device includes a media unit. The capacity of the media unit is divided into a plurality of partitions. The media unit includes a plurality of dies, each of the plurality of dies including a plurality of erase blocks. The storage device also includes a controller coupled to the media unit, the controller configured to switch a first partition from an empty state to an active state, compare the estimated ages of the first available erase blocks in the free pool of each of the plurality of dies with each other, and remove one or more of the compared first available erase blocks from the free pool of one or more of the plurality of dies based on the estimated ages to form the first partition. At least one first available erase block from at least one of the plurality of dies is excluded from the first partition to remain in the free pool of the at least one die. The storage device is further configured to switch a second partition from the empty state to the active state, compare the estimated ages of the first available erase blocks in each of the plurality of dies with each other, and remove one or more of the compared first available erase blocks from one or more of the plurality of dies based on the estimated ages to form the second partition. At least one first available erase block from at least one die of the plurality of dies is excluded from the second partition to remain in the free pool of the at least one die.

[0011] In another embodiment, a method of forming one or more partitions of a storage device includes switching a first partition from an empty state to an active state. The storage device includes a plurality of dies, and each of the plurality of dies includes a plurality of erase blocks. The method also includes comparing estimated ages of first usable erase blocks in each of the plurality of dies to each other, and selecting one or more of the first usable erase blocks from one or more of the plurality of dies based on the estimated ages to form the first partition. At least one first usable erase block from at least one of the plurality of dies is excluded from the first partition. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Thus, a detailed understanding of the manner in which the above-described features of the present disclosure are understood, a more particular description of the present disclosure, the above brief overview, may be obtained by reference to the embodiments, some of which are illustrated in the accompanying drawings. It should be noted, however, that the drawings illustrate only typical embodiments of the present disclosure and are therefore not to be considered limiting of its scope, as the present disclosure may admit to other equally effective embodiments.

[0013] Figure 1 is a schematic block diagram illustrating a storage system according to one embodiment.

[0014] Figure 2 A storage system including a storage device coupled to a host device according to another embodiment is shown.

[0015] Figure 3 is a block diagram illustrating a method of operating a memory device to execute a read or write command according to one embodiment.

[0016] Figure 4A A partition namespace view for use in a storage device is shown according to one embodiment.

[0017] Figure 4B According to one embodiment, Figure 4A A state diagram of the partition namespace of a storage device.

[0018] Figure 5 A partition consisting of multiple erase blocks selected from multiple dies is shown according to one embodiment.

[0019] Fig. 6A A plurality of single plane dies are shown, each including a plurality of erase blocks used to form a plurality of partitions, according to one embodiment.

[0020] Figure 6B A table is shown which shows which erase blocks from which dies are used to form Fig. 6A Each partition of .

[0021] Figures 7A-7C An exemplary embodiment of a partition consisting of multiple erase blocks selected from multiple dies is shown.

[0022] 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

[0023] Hereinafter, reference is made to the embodiments of the present disclosure. However, it should be understood that the present disclosure is not limited to the embodiments specifically described. On the contrary, any combination of the following features and elements (whether or not related to different embodiments) is considered to realize 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 specific advantage is achieved by a given embodiment is not a limitation to 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 summary 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.

[0024] The present disclosure as a whole relates to a method of operating a storage device. The storage device includes a controller and a media unit. The capacity of the media unit is divided into a plurality of partitions. The media unit includes a plurality of dies, and each of the plurality of dies includes a plurality of erase blocks. The controller is configured to compare estimated ages of first available erase blocks in each of the plurality of dies with each other, and select one or more first available erase blocks from one or more of the plurality of dies to form a first partition based on the estimated ages. At least one first available erase block from at least one of the plurality of dies is excluded from the first partition.

[0025] 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 storage device 106 can be used as a storage device for a host device 104. For example, the host device 104 can utilize a non-volatile memory device 110 included in the 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 storage device 106, that can operate as a storage array. For example, the storage system 100 can include multiple storage devices 106 that are configured as a redundant array of inexpensive / independent disks (RAID) that are collectively used as a mass storage device for the host device 104.

[0026] 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 storage device 106. Figure 1As shown, host device 104 can communicate with storage device 106 via interface 114. Host device 104 can include any of a variety of devices, including a computer server, a network attached storage (NAS) unit, a desktop computer, a notebook (i.e., laptop) computer, a tablet computer, a set-top box, a telephone handset such as a so-called "smart" phone, a so-called "smart" tablet computer, a television, a camera, a display device, a digital media player, a video game console, a video streaming device, etc.

[0027] The storage device 106 includes a controller 108, a non-volatile memory 110 (NVM 110), a power supply 111, a volatile memory 112, and an interface 114. The controller 108 includes an internal memory 120 or a buffer. In some examples, for clarity, the storage device 106 may include Figure 1 , additional components not shown in the figure. For example, the storage device 106 may include a printed board (PB) to which the components of the storage device 106 are mechanically attached, and the printed board includes conductive traces that electrically interconnect the components of the storage device 106, etc. In some examples, the physical size and connector configuration of the storage device 106 may conform to one or more standard form factors. Some exemplary standard form factors include, but are not limited to, a 3.5" data storage device (e.g., an HDD or SSD), a 2.5" data storage device, a 1.8" data storage device, a peripheral component interconnect (PCI), a PCI extension (PCI-X), a PCI Express (PCIe) (e.g., PCIe x1, x4, x8, x16, PCIe Mini Card, MiniPCI, etc.). In some examples, the storage device 106 can be directly coupled (e.g., directly soldered) to a motherboard of the host device 104.

[0028] The interface 114 of the 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), etc. The electrical connection (e.g., data bus, control bus, or both) of the interface 114 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 the interface 114 may also allow the storage device 106 to receive power from the host device 104. For example, Figure 1 As shown, power supply 111 may receive power from host device 104 via interface 114 .

[0029] The storage device 106 includes an NVM 110, which may include multiple memory devices or media units. The NVM 110 may be configured to store and / or retrieve data. For example, the media unit of the NVM 110 may receive data and a message indicating that the media unit stores data from the controller 108. Similarly, the media unit of the NVM 110 may receive a message indicating that the media unit retrieves data from the controller 108. In some examples, each of the media units may be referred to as a die. In some examples, a single physical chip may include multiple dies (i.e., multiple media units). In some examples, each media unit 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.).

[0030] In some examples, each media unit 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.

[0031] NVM 110 may include multiple flash memory devices or media units. Flash memory devices may include NAND or NOR-based flash memory devices, and data may be stored 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 devices may be divided into multiple blocks, which may be divided into multiple pages. Each block in a plurality of 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 pages in a plurality of pages. The corresponding cells in each of the plurality of 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 a page level and read data from the NAND flash memory device, and erase data from the NAND flash memory device at a block level.

[0032] The storage device 106 includes a power supply 111 that can provide power to one or more components of the storage device 106. When operating in standard mode, the power supply 111 can use power provided by an external device such as a host device 104 to power one or more components. For example, the power supply 111 can use power received from the host device 104 via the interface 114 to power one or more components. In some examples, the power supply 111 may include one or more power storage components that are configured to supply power to one or more components when operating in a shutdown mode, such as when power is stopped from being received from an external device. In this way, the power supply 111 can be used as an onboard backup power supply. Some examples of 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 one or more power storage components can be a function of 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.

[0033] Storage device 106 also includes volatile memory 112, which can be used by controller 108 to store information. Volatile memory 112 can include one or more volatile memory devices. In some examples, controller 108 can use volatile memory 112 as a cache. For example, controller 108 can store cached information in volatile memory 112 until the cached information is written to non-volatile memory 110. Figure 1As shown, the volatile memory 112 may consume power received from the power supply 111. Examples of the 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, etc.)).

[0034] The storage device 106 includes a controller 108 that can manage one or more operations of the storage device 106. For example, the controller 108 can manage reading data from the NVM 110 and / or writing data to the NVM 110. In some embodiments, when the 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 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 the internal memory 120 before sending the data to the NVM 110.

[0035] Figure 2 2 shows a storage system 200 including a storage device 206 coupled to a host device 204 according to another embodiment. The storage system 200 may be Figure 1 A storage system 100, a host device 104 and a storage device 106.

[0036] Storage device 206 can send and receive commands and data from host device 204 and includes command processor 220. Command processor 220 may be Figure 1 The controller 108 in FIG. 10 is a schematic diagram of a controller 108 in FIG. 10. The command processor 220 can schedule memory device accesses (such as NAND accesses) and can perform reads of memory devices before a previously received command requires a write to the same memory device. The command processor 220 is coupled to one or more memory devices 228 and command fetch 222. The one or more memory devices 228 can be NAND non-volatile memory devices. The command fetch 222 is coupled to a submission queue arbitration 224. The submission queue arbitration 224 is coupled to one or more submission queue head and tail pointers 226.

[0037] The host device 204 includes one or more host software applications 232 coupled to one or more processing units or CPU applications 234. In one embodiment, the software application 232 has a limited solid-state drive queue depth to derive a latency QoS for each user of the system 200. The host device 204 also includes an operating system (OS) or software application 240 that has no associated QoS. The CPU 234 is coupled to an interconnect 236 and a host DRAM 238. The host DRAM 238 can store submission queue data. The interconnect 236 is coupled to the storage device 206. The interconnect 236 can communicate with both the submission queue head and tail pointers 226 and the command fetch 222.

[0038] The CPU 234 generates one or more commands 216 to send to the storage device 206, and can send and receive commands from the storage device 206 via a command get signal 244. The CPU 234 can also send an interrupt or doorbell 218 to the storage device 206 to notify the storage device 206 of the one or more commands 216. The CPU 234 can limit the depth of the data queue submitted to the storage device 206. The queue depth (QD) is the maximum number of commands queued to the storage device 206, and the data-QD is the amount of data associated with the commands queued with the QD. In one embodiment, the data-QD 242 of the storage device 206 is equal to the bandwidth of the storage device 206. The data-QD 242 is limited to the highest level at which the storage device 206 can still maintain the desired latency QoS. The command processor 220 then processes the command received from the host device 204.

[0039] Figure 3 is a block diagram illustrating a method 300 of operating a storage device to execute a read or write command according to one embodiment. The method 300 may be used with a storage system 100 having a host device 104 and a storage device 106 including a controller 108. The method 300 may be used with a storage system 200 having a host device 204 and a storage device 206 including a command processor 220.

[0040] Method 300 begins at operation 350, where the host device writes a command as an entry into a submission queue. At operation 350, the host device may write one or more commands into the submission queue. The command may be a read command or a write command. The host device may include one or more submission queues.

[0041] In operation 352, the host device writes one or more updated submission queue tail pointers and rings a doorbell or sends an interrupt signal to notify or signal the storage device that a new command is ready for execution. The doorbell signal may be Figure 2The host may write an updated submission queue tail pointer and send a doorbell or interrupt signal for each of the submission queues if there is more than one submission queue. In operation 354, in response to receiving the doorbell or interrupt signal, the controller of the storage device obtains the command from one or more submission queues, and the controller receives the command.

[0042] In operation 356, the controller processes the command and writes or transfers data associated with the command to the host device memory. The controller may process more than one command at a time. The controller may process one or more commands in a submission order or in sequence. Processing a write command may include identifying a partition to write data associated with the command, writing the data to one or more LBAs of the partition, and advancing a write pointer of the partition to identify the next available LBA within the partition.

[0043] In operation 358, once the command has been fully processed, the controller writes a completion entry corresponding to the executed command to the completion queue of the host device and moves or updates the CQ head pointer to point to the newly written completion entry.

[0044] In operation 360, the controller generates an interrupt signal or doorbell and sends it to the host device. The interrupt signal indicates that the command has been executed and the data associated with the command is available in the memory device. The interrupt signal further notifies the host device that the completion queue is ready to be read or processed.

[0045] In operation 362, the host device processes the completion entry. In operation 364, the host device writes the updated CQ head pointer to the storage device and rings a doorbell or sends an interrupt signal to the storage device to release the completion entry.

[0046] Figure 4A A zoned name space (ZNS) 402 view is shown for use in a storage device 400, according to one embodiment. The storage device 400 can present the ZNS 402 view to a host device. Figure 4B A state diagram 450 of a ZNS 402 for a storage device 400 is shown according to one embodiment. The storage device 400 may be Figure 1 The storage device 106 of the storage system 100 or Figure 2 The storage device 400 may include one or more ZNS 402, and each ZNS 402 may have a different size. In addition to the one or more partition namespaces 402, the storage device 400 may also include one or more regular namespaces. In addition, the ZNS 402 may be a zone block command (ZBC) for SAS and / or a zone device ATA command set (ZAC) for SATA.

[0047] In storage device 400, ZNS 402 is a quantity of NVM that can be formatted into logical blocks such that the capacity is divided into multiple partitions 406a-406n (collectively referred to as partitions 406). Each of partitions 406 includes multiple physical blocks or erase blocks (now shown) of media units or NVM 404, and each of the erase blocks is associated with multiple logical blocks (not shown). When controller 408 receives commands from, such as from a host device (not shown) or a submission queue of the host device, controller 408 can read data from and write data to the multiple logical blocks associated with the multiple erase blocks of ZNS 402. Each of the logical blocks is associated with a unique LBA or sector.

[0048] In one embodiment, NVM 404 is a NAND device. The NAND device includes one or more dies. Each of the one or more dies includes one or more planes. Each of the one or more planes includes one or more erase blocks. Each erase block in the one or more erase blocks includes one or more word lines (e.g., 256 word lines). Each word line in the one or more word lines can be addressed in one or more pages. For example, an MLC NAND die can use an upper page and a lower page to reach two bits in each cell of the entire word line (e.g., 16kB per page). In addition, each page can be accessed with a granularity equal to or less than a full page. The controller can frequently access a NAND with a user data granularity LBA size of 512 bytes. Therefore, as mentioned throughout, a NAND position equals a granularity of 512 bytes. Therefore, the LBA size of two pages of an MCL NAND is 512 bytes and the page size is 16kB, which will result in approximately 16 NAND positions per word line. However, the NAND position size is not intended to be restrictive and is only used as a non-limiting example.

[0049] When data is written to an erase block, one or more logical blocks are correspondingly updated within a partition 406 to track the location of the data within the NVM 404. Data may be written one partition 406 at a time until the partition 406 is full, or written to multiple partitions 406 such that multiple partitions 406 may be partially full. Similarly, when data is written to a particular partition 406, the data may be written to multiple erase blocks one block at a time in the order of NAND locations, page by page, or word line by word line, until moving to an adjacent block (i.e., writing to a first erase block until the first erase block is full before moving to a second erase block), or may be written to multiple erase blocks multiple blocks at a time in the order of NAND locations, page by page, or word line by word line to partially fill each block in a more parallel manner (i.e., writing to the first NAND location or page of each erase block before writing to the second NAND location or page of each erase block).

[0050] Each partition in the partitions 406 is associated with a partition start logical block address (ZSLBA). The ZSLBA is the first available LBA in the partitions 406. For example, the first partition 406a is associated with Z a SLBA is associated with the second partition 406b and Z b SLBA is associated with the third partition 406c and Z c SLBA is associated with the fourth partition 406d and Z d SLBA is associated, and the nth partition 406n (ie, the last partition) is associated with Z n Each partition 406 is identified by its ZSLBA and is configured to receive sequential writes (ie, data is written to NVM 110 in the order in which the write commands are received).

[0051] When data is written to a partition 406, a write pointer 410 is advanced or updated to point to or indicate the next available block in the partition 406 to which the data is written, so as to track the next write start point (i.e., the completion point of the previous write is equal to the start point of the subsequent write). Thus, the write pointer 410 indicates where the subsequent write to the partition 406 will begin. Subsequent write commands are "partition append" commands, in which the data associated with the subsequent write command is appended to the partition 406 at the location indicated by the write pointer 410 as the next start point. An ordered list of LBAs within the partition 406 may be stored for write ordering. Each partition 406 may have its own write pointer 410. Thus, when a write command is received, the partition 406 is identified by its ZSLBA, and the write pointer 410 determines the location at which the writing of the data begins within the identified partition 406.

[0052] Figure 4B Shown for Figure 4A 4. State diagram 450 of ZNS 402. In state diagram 450, each partition may be in a different state, such as empty, active, full, or offline. When a partition is empty, the partition contains no data (i.e., no erase blocks in the partition currently store data) and the write pointer is located at ZSLBA (i.e., WP=0). Once a write is scheduled to the partition or a partition open command is issued by the host, the empty partition will switch to an open and active partition. Partition management (ZM) commands may be used to move partitions between partition open and partition closed states (both are active states). If a partition is active, the partition includes open blocks that can be written to, and a description of the recommended time in the active state may be provided to the host by the ZM or controller. The controller may include the ZM.

[0053] The term "write" includes programming user data on 0 or more word lines in an erase block, erasing, and / or partially filled word lines in an erase block when the user data does not fill all available word lines. The term "write" may also include closing a partition due to internal drive processing needs (open block data retention issues because bit errors accumulate faster on open erase blocks), the storage device 400 closing a partition due to resource limitations (like too many open partitions to track or defective conditions that have been discovered, etc.), or the host device closing a partition due to issues such as no more data to send to the drive, computer shutdown, error handling on the host, limited host resources for tracking, etc.

[0054] Active partitions can be open or closed. An open partition is an empty partition or partially filled partition that is ready to be written and has currently allocated resources. Data received from a host device using a write command or a partition attach command can be programmed into an open erase block that is not currently filled with previous data. New data pulled in from a host device or valid data being relocated can be written to an open partition. Valid data can be moved from one partition (e.g., the first partition 402a) to another partition (e.g., the third partition 402c) for garbage collection purposes. A closed partition is an empty partition or partially filled partition that is not currently receiving writes from the host continuously. The partition moving from an open state to a closed state allows the controller 408 to reallocate resources to other tasks. These tasks may include, but are not limited to, other open partitions, other conventional non-partitioned areas, or other controller needs.

[0055] In both open and closed partitions, the write pointer points to a location in the partition between the ZSLBA and the end of the last LBA of the partition (i.e., WP>0). An active partition can switch between open and closed states as specified by the ZM, or when a write is scheduled to the partition. In addition, the ZM can reset the active partition to clear or erase the data stored in the partition, causing the partition to switch back to an empty partition. Once the active partition is full, the partition switches to a full state. A full partition is a partition that is completely filled with data and has no more available blocks for writing data (i.e., WP=partition capacity (ZCAP)). Read commands for data stored in a full partition can still be executed.

[0056] The ZM can reset a full partition, thereby scheduling the erasure of the data stored in the partition so that the partition switches back to an empty partition. If a full partition is reset, the data of the partition may not be immediately cleared, although the partition may be marked as an empty partition available for writing. However, the reset partition must be erased before switching to the active partition. The partition can be erased at any time between the ZM reset and the ZM open. An offline partition is a partition to which data cannot be written. An offline partition can be in a full state, an empty state, or a partially full state without being in an active state.

[0057] Since resetting the partition can clear the data stored in the partition or schedule the erasure of the data stored in the partition, the need for garbage collection of each erase block is eliminated, thereby improving the overall garbage collection process of the storage device 400. Storage device 400 can mark one or more erase blocks for erasure. When a new partition is to be formed and storage device 400 estimates that ZM is open, then one or more erase blocks marked for erasure can be erased. Storage device 400 can also determine and create the physical support of the partition when erasing the erase block. Therefore, once the new partition is opened and the erase block is selected to form the partition, the erase block will be erased. In addition, each time the partition is reset, the LBA of the partition 406 and the new order of the write pointer 410 can be selected, so that the partition 406 can tolerate receiving commands in a sequential manner. Optionally, the write pointer 410 can be closed so that the command can be written as any starting LBA indicated by the command.

[0058] See again Figure 4A , when the controller 408 initiates or pulls in a write command, the controller 408 may select an empty partition 406 to write the data associated with the command, and the empty partition 406 switches to the active partition 406. As used herein, the controller 408 initiates, receives, or pulls in a write command including receiving a write command or directly accessing (DMA) the write command. The write command may be a command to write new data, or a command to move valid data to another partition for garbage collection purposes. The controller 408 is configured to DMA read or pull in new commands from a submission queue populated by a host device.

[0059] In the empty partition 406 that has just been switched to the active partition 406, data is written to the partition 406 starting at ZSLBA because the write pointer 410 indicates the logical block associated with ZSLBA as the first available logical block. The data can be written to one or more erase blocks or NAND locations that have been allocated for the physical location of the partition 406. After the data associated with the write command is written to the partition 406, the write pointer 410 is updated to point to the next available block in the partition 406 to track the next write start point (i.e., the completion point of the first write). Alternatively, the controller 408 can select an active partition for writing data. In the active partition, the data is written to the logical block indicated by the write pointer 410 as the next available block.

[0060] For example, the controller 408 may receive a first write command or a first partition append command or pull the first write command into the third partition 406c. The host sequentially identifies which logical block of the partition 406 is used to write the data associated with the first command. The data associated with the first command is then written to the first or next one or more available LBAs in the third partition 406c as indicated by the write pointer 410, and the write pointer 410 is advanced or updated to point to the next available LBA (i.e., WP>0) available for host writing. If the controller 408 receives a second write command or pulls the second write command into the third partition 406c, the data associated with the second write command is written to the next one or more available LBAs of the third partition 406c identified by the write pointer 410. Once the data associated with the second command is written to the third partition 406c, the write pointer 410 is advanced or updated again to point to the next available LBA available for host writing. Resetting the partition 406c moves the write pointer 410 back to Z c SLBA (ie, WP=0), and partition 406c switches to an empty partition.

[0061] Figure 5 5 shows a partition 500 consisting of a plurality of erase blocks 504 selected from a plurality of dies 502 according to one embodiment. The partition 500 may be Figure 4A The partition 406 of the ZNS 402. The partition 500 may be Figure 1 A partition of NVM 110 coupled to controller 108 .

[0062] Storage devices such as Figure 1 The storage device 106 or Figure 2 The storage device 206 is coupled to a memory device such as Figure 1 The NVM 110 includes a plurality of dies 502. Although 32 dies 502 are shown, any number of dies may be included. Each die 502 is composed of a pair of planes 506, and each plane 506 is composed of a plurality of erase blocks 504.

[0063] The partition 500 is formed by selecting an erase block 504 from each plane 506 of 30 of the 32 dies 502 and assigning or associating a logical block address corresponding to the erase block 504 to the partition 500. Of the total 32 dies 502, 30 dies 502 can be used to store data, one XOR die 502a can be used to store XOR data, and one excluded or skipped die 502b is composed of the least desirable erase block 504 that is not used in the partition 500. The XOR die 502a is optional and provides die failure protection and maximizes leverage when used. The excluded erase block 504 of the skipped die 502b remains in the available free pool of blocks so that the excluded erase block can be selected to form another partition, thereby eliminating the optimization problem.

[0064] Partition 500 may have any capacity (ZCAP), such as 256 MiB or 512 MiB. However, a small portion of partition 500 may be inaccessible to write data, but still readable, such as the portion of partition 500 storing XOR data and one or more excluded erase blocks 504 of the skipped die 502b. For example, if the total capacity of partition 500 is 512 MiB, then the ZCAP may be 470 MiB, which is the capacity available to write data, while 42 MiB is not available to write data.

[0065] Fig. 6A A plurality of single-plane dies 602 are shown that each include a plurality of erase blocks 604 used to form a plurality of partitions 600 according to one embodiment. Figure 6B A table 650 is shown which shows which erase blocks 604 from which die 602 are used to form each partition 600. Each partition 600 may be Figure 4A Partition 406 of ZNS 402 or Figure 5 Each partition 600 can be Figure 1 600 is a partition of NVM 110 coupled to controller 108, and NVM 110 may include multiple die 602. In addition, partition 600 may have any capacity, such as 256 MiB or 512 MiB. However, a small portion of partition 600 may be inaccessible and data cannot be written, but can still be read, such as a portion of partition 600 storing XOR data and one or more skipped dies (such as Figure 5 For example, if the total capacity of partition 600 is 512MiB, 470MiB, then ZCAP may be 470MiB, which is the capacity available for writing data, while 42MiB is not available for writing data.

[0066] exist Figure 6A-6B In the embodiment of FIG. 6 , each partition 6000-6003 (collectively referred to as partition 600) includes three erase blocks 604 selected from three different dies 602 of the total four dies 602, and an optional XOR die (not shown). Although only four dies 602 are shown, any number of dies 602 may be utilized. In addition, although each die 602 is shown as including only four erase blocks 604, the die 602 may include any number of erase blocks 604. In addition, dual-plane dies 602, such as Figure 5 502 rather than a single planar die 602.

[0067] exist Fig. 6A In the embodiment of the present invention, each die 6020-6023 (collectively referred to as die 602) includes a plurality of erase blocks (EB) 604. For example, the first die 6020 includes EB3, EB7, EB11, and EB15, the second die 6021 includes EB4, EB8, EB12, and EB16, the third die 6022 includes EB5, EB9, EB13, and EB17, and the fourth die 6023 includes EB6, EB10, EB14, and EB18. Each erase block in the erase block 604 is located in a free pool (not shown) of erase blocks 604 until the erase block is selected for partition formation. The free pool of erase blocks 604 is a pool of all unselected or available erase blocks 604 that are not currently used in the partition 600.

[0068] Each erase block 604 is shown as having a number estimating the age of a particular erase block 604. For example, the estimated age of EB3 is 0, while the estimated age of EB6 is 2. When selecting erase blocks 604 to form partitions 600, the erase block 604 with the lowest estimated age (i.e., the youngest erase block) is first selected. The youngest erase block 604 may be the erase block 604 that currently has the fewest program erase cycles, has the greatest estimated endurance, and / or has the greatest estimated retention. Other factors that may indicate a young erase block 604 include the current bit error rate (BER) of the data, the read speed, the programming speed, the data retention ration, the read / program disturbance, the most recently used, and the least recently used. One or more age factors of erase blocks 604 may be combined or aggregated to determine the estimated age. Similarly, when selecting erase blocks 604 to form partitions 600, the age of the die 602 may be estimated, and the erase block 604 may be selected from the youngest die 602. Each time an erase block 604 is selected for a partition 600, the erase block 604 is removed from the free pool.

[0069] Table 650 shows multiple partitions 6000-6003. Each of the partitions 600 can be an empty partition formed for switching to an active partition. To form each partition 600, the controller or ZM is configured to compare the estimated age of the first available erase block 604 within each tube core 602 so as to select the youngest erase block 604. The controller or ZM selects the three youngest erase blocks 604 for the partition 600 while excluding the oldest erase block, thereby allowing the wear level of each erase block in the erase block 604 to be mitigated and evenly distributed between the blocks.

[0070] To form the first partition 6000, the estimated age of each of the first usable erase blocks 604 in each of the dies 602 is compared to one another, and the erase block 604 with the largest estimated age is skipped. Thus, the first partition 6000 is composed of the following erase blocks: EB3 from the first die 6020 with an estimated age of 0, EB4 from the second die 6021 with an estimated age of 0, and EB5 from the third die 6022 with an estimated age of 1. Since the first usable erase block 604 (EB6) of the fourth die 6023 has an estimated age of 2, which is greater than the estimated ages of the first usable erase blocks 604 (e.g., EB3, EB4, EB5) in the first, second, and third dies 6020-6022, EB6 is excluded or skipped, and no erase block 604 is selected from the fourth die 6023 for the first partition 6000. Therefore, the fourth tube core 6023 is excluded from providing erase blocks to the first partition 6000. EB6 is retained in the free pool of erase blocks for the fourth core 6023 and can be selected to form another partition 600 to eliminate the optimization problem. Leaving EB6 in the free pool enables EB6 to recover and also enables the wear level of each erase block 604 in each tube core 602 to be mitigated or distributed as evenly as possible.

[0071] Since EB3, EB4, and EB5 are selected to form the first partition 6000, EB3, EB4, and EB5 are no longer available in the free pool of blocks for the first, second, and third die 6020-6022. Thus, EB7 with an estimated age of 0 is the first available erase block 604 from the first die 6020, EB8 with an estimated age of 0 is the first available erase block 604 from the second die 6021, EB9 with an estimated age of 1 is the first available erase block 604 from the third die 6022, and EB6 with an estimated age of 2 is the first available erase block 604 from the fourth die 6023. The three youngest first available erase blocks 604 are again selected to form the second partition 6001, while the oldest erase block 604 is skipped.

[0072] Therefore, the second partition 6001 is composed of EB7 from the first die 6020, EB8 from the second die 6021, and EB9 from the third die 6022. Since the first available erase block 604 (EB6) of the fourth die 6023 has an estimated age of 2, which is greater than the estimated ages of the first available erase blocks 604 (e.g., EB7, EB8, EB9) in the first, second, and third dies 6020-6022, EB6 is again excluded or skipped, and no erase block 604 is selected from the fourth die 6023 for the second partition 6001. Therefore, the fourth die 6023 is excluded from providing erase blocks to the second partition 6001. Likewise, EB6 remains in the free pool of erase blocks for the fourth die 6023 and can be selected to form another partition 600 to eliminate the optimization problem.

[0073] Similarly, the third partition 6002 is composed of the following erase blocks: EB11 from the first die 6020 with an estimated age of 0, EB13 from the third die 6022 with an estimated age of 2, and EB6 from the fourth die 6023 with an estimated age of 2. Since the first available erase block 604 (EB12) of the second die 6021 has an estimated age of 3, which is greater than the estimated ages of the first available erase blocks 604 (e.g., EB11, EB13, EB6) in the first, third, and fourth dies 6020, 6022, 6023, EB12 is excluded or skipped, and no erase block 604 is selected from the second die 6021 for the third partition 6002. Therefore, the second die 6021 is excluded from providing erase blocks to the third partition 6002. EB12 remains in the free pool of erase blocks for the second die 6021 and can be selected to form another partition 600 to eliminate the optimization problem.

[0074] After forming the third partition 6002, EB15 with an estimated age of 1 is the first usable erase block 604 from the first die 6020, EB12 with an estimated age of 3 is the first usable erase block 604 from the second die 6021, EB17 with an estimated age of 2 is the first usable erase block 604 from the third die 6022, and EB10 with an estimated age of 3 is the first usable erase block 604 from the fourth die 6023. To form the fourth partition 6003, EB15 is selected from the first die 6020, EB17 is selected from the third die 6022, and either EB12 from the second die 6021 or EB10 from the fourth die 6023 is selected. Since the first usable erase block 604 (EB12) of the second die 6021 and the first usable erase block (EB10) of the fourth die 6023 have the same estimated age of 3, EB12 or EB10 may be selected to form the fourth partition 6003.

[0075] However, in embodiments where the first available erase blocks 604 of one or more dies 602 have the same estimated age (e.g., EB12 and EB10), the erase blocks 604 are selected from the die 602 having the larger available free pool of erase blocks 604. Thus, in the example of the fourth partition 6003, the second die 6021 has two erase blocks 604 in the free pool (e.g., EB12 and EB16), while the fourth die 6023 has three erase blocks 604 in the free pool (e.g., EB10, EB14, and EB18). Thus, the second die 6021 is excluded from providing erase blocks to the fourth partition 6003. Likewise, EB12 remains in the free pool of erase blocks for the second die 6021 and may be selected to form another partition 600 to eliminate the optimization problem.

[0076] Additionally, when the first available erase blocks 604 of one or more dies 602 have the same estimated age, other factors may be considered to prevent always selecting the first encountered die 602 (e.g., the second die 6021). For example, the erase block 604 with the largest estimated reserve may be selected, a limit may be placed on the increment of the least picked die 602 for the most picked die 602, or the starting point of partition formation may be changed (i.e., starting with a different die 602 than the first die 6020).

[0077] Each time partition 600 is erased, switched to the erased state, and then switched to the active state, partition 600 may be re-formed according to the above method with new erase blocks 604. When partition 600 is erased and switched to the erased state, erase blocks 604 of partition 600 are returned to the free pool of erase blocks 604 in each die 602. When returned to the free pool, the age of each erase block in erase blocks 604 may be re-estimated.

[0078] Figures 7A-7C 700, 750, 770 are shown, each consisting of a plurality of erase blocks 704 selected from a plurality of dies 702, according to embodiments disclosed herein. Each of the partitions 700, 750, 770 may be individually Figure 4A Partition 406 of ZNS 402 or Figure 6A-6B Each partition 700, 750, 770 can be Figure 1 The NVM 110 may be coupled to the controller 108 and may include multiple dies 702. Figure 6A-6B Each of the partitions 700, 750, 770 is formed as described in , where a controller or partition management (ZM) is configured to compare the estimated age of the first available erase block 704 within each die 702 in order to select the youngest erase block 704.

[0079] Although each of the dies 702 is shown as having two planes 706, the dies 702 may include one or more planes 706. The controller is configured to compare the estimated ages of the first available erase blocks 704 in each plane 706 of each of the plurality of dies 702 with each other, select one or more planes 706 from the one or more dies 702, and select one or more erase blocks 704 from the one or more planes 706 based on the estimated ages to form a partition 700, 750, 770. At least one erase block 704 from at least one plane 706 of a die (i.e., the skipped die 702b) is excluded from providing the one or more erase blocks 704 to the partition.

[0080] Furthermore, each partition 700, 750, 770 may have any capacity, such as 256 MiB or 512 MiB. However, a small portion of each partition 700, 750, 770 may be inaccessible for writing data, but may still be read, such as the portion of the partition 700, 750, 770 storing XOR data and the excluded erase blocks 704 from the skipped die 702b. For example, if the total capacity of the partition 700, 750, 770 is 512 MiB, then 470 MiB may be available for writing data, while 42 MiB may not be available for writing data.

[0081] Fig. 7A An exemplary partition 700 is shown formed by a memory device including 16 dies 702. Of the 16 dies 702, 14 dies 702 are used to store data, one XOR die 702a is used to XOR data, and one skipped die 702b including the oldest or worst erase blocks is not included in the partition 700. One or more excluded erase blocks 704 of the skipped die 702b remain in the free pool and may be selected to form another partition to eliminate the optimization problem.

[0082] Figure 7B Another exemplary partition 750 is shown formed by a memory device including eight dies 702. Of the eight dies 702, six dies 702 are used to store data, one XOR die 702a is used to XOR data, and one skipped die 702b including the oldest or worst erase blocks is not included in the partition 750. One or more excluded erase blocks 704 of the skipped die 702b remain in the free pool and may be selected to form another partition to eliminate the optimization problem.

[0083] Figure 7CStill another exemplary partition 770 is shown formed by a memory device including 16 die 702. Of the 16 die 702, 11 die 702 are used to store data, one XOR die 702a is used to XOR data, and four skipped dies 702b including the oldest or worst erase blocks are not included in the partition 770. Figure 6A-6B It is described that only one erase block 704 from one die 702 is skipped, but multiple erase blocks 704 from multiple dies 702 may be skipped. One or more excluded erase blocks 704 of the skipped die 702b remain in the free pool and may be selected to form another partition to eliminate optimization issues.

[0084] By excluding the erase blocks with the largest estimated age, the largest number of program erase cycles, or the smallest estimated reserve amount when forming a partition, the wear level of all erase blocks can be distributed as evenly as possible while eliminating optimization problems. One or more erase blocks that are excluded or skipped can be restored when the youngest erase blocks are used, thereby minimizing the age gap between each erase block and preventing one or more erase blocks from experiencing a disproportionate amount of program erase cycles. In this way, the wear level of each erase block in the erase block will be mitigated, thereby minimizing the number of erase blocks that become unusable or damaged.

[0085] In one embodiment, a storage device includes a media unit. The capacity of the media unit is divided into a plurality of partitions. The media unit includes a plurality of dies, each of the plurality of dies including a plurality of erase blocks. The storage device also includes a controller coupled to the media unit, the controller being configured to compare estimated ages of first available erase blocks in each of the plurality of dies with each other, and to select one or more of the first available erase blocks from one or more of the plurality of dies based on the estimated ages to form a first partition. At least one first available erase block from at least one of the plurality of dies is excluded from the first partition.

[0086] The controller may also be configured to repeatedly compare the estimated ages of the first available erase blocks in each of the plurality of dies with each other, and select one or more of the first available erase blocks from one or more of the plurality of dies to form a second partition, wherein at least one first available erase block from at least one of the plurality of dies is excluded from the second partition. The at least one first available erase block excluded from the first partition may be the same as the at least one first available erase block excluded from the second partition. The at least one first available erase block excluded from the first partition may be a different erase block from the at least one first available erase block excluded from the second partition. The at least one first available erase block of the at least one die excluded from the first partition may have an estimated age greater than one or more erase blocks selected to form the first partition. The first partition may also include at least one XOR erase block for storing XOR data. The at least one first available erase block of the at least one die excluded from the first partition may be retained in a free pool of the at least one die.

[0087] In another embodiment, a storage device includes a media unit. The capacity of the media unit is divided into a plurality of partitions. The media unit includes a plurality of dies, each of the plurality of dies including a plurality of erase blocks. The storage device also includes a controller coupled to the media unit, the controller configured to switch a first partition from an empty state to an active state, compare the estimated ages of the first available erase blocks in the free pool of each of the plurality of dies with each other, and remove one or more of the compared first available erase blocks from the free pool of one or more of the plurality of dies based on the estimated ages to form the first partition. At least one first available erase block from at least one of the plurality of dies is excluded from the first partition to remain in the free pool of the at least one die. The storage device is further configured to switch a second partition from the empty state to the active state, compare the estimated ages of the first available erase blocks in each of the plurality of dies with each other, and remove one or more of the compared first available erase blocks from one or more of the plurality of dies based on the estimated ages to form the second partition. At least one first available erase block from at least one die of the plurality of dies is excluded from the second partition to remain in the free pool of the at least one die.

[0088] The at least one first usable erase block excluded from the first partition may be a different erase block than the at least one first usable erase block excluded from the second partition. The at least one first usable erase block of the at least one die excluded from the first partition may have an estimated age greater than one or more first erase blocks removed to form the first partition. The at least one first usable erase block of the at least one die excluded from the first partition may have experienced a greater estimated number of program erase cycles than the one or more first erase blocks removed to form the first partition. The at least one first usable erase block of the at least one die excluded from the second partition may have experienced a greater estimated number of program erase cycles than the one or more second erase blocks removed to form the second partition.

[0089] The controller may also be configured to determine that one or more of the first usable erase blocks have the same estimated age, compare the size of the free pool of each of the dies including the one or more first usable erase blocks having the same estimated age, and exclude erase blocks of the one or more first usable erase blocks having the same estimated age based on the size of the free pool. The excluded erase blocks may be disposed in the die having the smallest size of the free pool.

[0090] In another embodiment, a method of forming one or more partitions of a storage device includes switching a first partition from an empty state to an active state. The storage device includes a plurality of dies, and each of the plurality of dies includes a plurality of erase blocks. The method also includes comparing estimated ages of first usable erase blocks in each of the plurality of dies to each other, and selecting one or more of the first usable erase blocks from one or more of the plurality of dies based on the estimated ages to form the first partition. At least one first usable erase block from at least one of the plurality of dies is excluded from the first partition.

[0091] The method may also include determining that one or more of the first available erase blocks have the same estimated age, and excluding erase blocks of the one or more first available erase blocks having the same estimated age based on estimated retention or bit error rate of the erase blocks. One or more of the first available erase blocks selected to form the first partition may be removed from the free pool of the one or more die. At least one first available erase block of the at least one die excluded from the first partition may be retained in the free pool of erase blocks of the at least one die. The at least one first available erase block of the at least one die excluded from the first partition may have a greater estimated age or a greater estimated number of program erase cycles than the one or more first available erase blocks selected to form the first partition. Comparing the estimated ages of the first available erase blocks in each of the plurality of dies with one another may also include comparing the size of the free pool or erase blocks of each of the plurality of dies with one another.

[0092] While the foregoing is directed to embodiments of the present disclosure, other and further embodiments of the present disclosure may be envisaged without departing from the basic scope of the present disclosure, and the scope of the present disclosure is determined by the appended claims.

Claims

1. A storage device, comprising: a media unit, wherein a capacity of the media unit is divided into a plurality of partitions, wherein the media unit includes a plurality of dies, each of the plurality of dies includes a plurality of erase blocks, and wherein each of the plurality of partitions includes two or more of the plurality of erase blocks, the two or more erase blocks being selected from a free pool of erase blocks of the plurality of dies; and A controller is coupled to the media unit, the controller being configured to: comparing the estimated age of the first usable erase blocks in each of the plurality of dies to one another; as well as Two or more of the first usable erase blocks are selected from two or more of the plurality of die based on the estimated age to form a first partition, wherein at least one first usable erase block from at least one of the plurality of die is excluded from the first partition, the at least one first usable erase block excluded from the first partition is retained in the free pool of erase blocks, wherein after excluding the at least one first usable erase block from the first partition, wear levels of the first usable erase blocks are evenly distributed.

2. The storage device according to claim 1, wherein the controller is further configured to: repeatedly comparing the estimated ages of the first usable erase blocks in each of the plurality of dies to one another; and Two or more of the first usable erase blocks are selected from two or more of the plurality of die based on the estimated age to form a second partition, wherein at least one first usable erase block from at least one of the plurality of die is excluded from the second partition, the at least one first usable erase block excluded from the second partition remains in the free pool of erase blocks, wherein the wear levels of the first usable erase blocks are evenly distributed after the at least one first usable erase block is excluded from the second partition. 3 . The storage device of claim 2 , wherein the at least one first usable erase block excluded from the first partition is the same erase block as the at least one first usable erase block excluded from the second partition. 4 . The storage device of claim 2 , wherein the at least one first usable erase block excluded from the first partition is an erase block different from the at least one first usable erase block excluded from the second partition.

5. The storage device of claim 1, wherein the at least one first usable erase block of the at least one die excluded from the first partition has a greater estimated age than the two or more first usable erase blocks selected to form the first partition.

6. The storage device of claim 1, wherein the first partition further comprises at least one XOR erase block for storing XOR data.

7. A storage device comprising: a media unit, wherein a capacity of the media unit is divided into a plurality of partitions, wherein the media unit includes a plurality of dies, each of the plurality of dies includes a plurality of erase blocks, and wherein each of the plurality of partitions includes two or more of the plurality of erase blocks, the two or more erase blocks being selected from a free pool of erase blocks of the plurality of dies; and A controller is coupled to the media unit, the controller being configured to: Switch the first partition from the empty state to the active state; comparing the estimated ages of first available erase blocks in a free pool of each die in the plurality of dies to one another; removing two or more of the compared first usable erase blocks from the free pool of two or more of the plurality of dies based on the estimated age to form the first partition, wherein at least one first usable erase block from at least one of the plurality of dies is excluded from the first partition to remain in the free pool of the at least one die, the at least one first usable erase block excluded from the first partition remains in the free pool of erase blocks, wherein wear levels of the first usable erase blocks are evenly distributed after excluding the at least one first usable erase block from the first partition; switching a second partition from the empty state to the active state; comparing the estimated ages of the first usable erase blocks in each of the plurality of dies to one another; as well as Two or more second erase blocks of the compared first usable erase blocks are removed from two or more of the plurality of dies based on the estimated age to form the second partition, wherein at least one first usable erase block from at least one of the plurality of dies is excluded from the second partition to remain in the free pool of the at least one die, the at least one first usable erase block excluded from the second partition remains in the free pool of erase blocks, wherein the wear levels of the first usable erase blocks are evenly distributed after the at least one first usable erase block is excluded from the second partition.

8. The storage device of claim 7, wherein the at least one first usable erase block excluded from the first partition is an erase block different from the at least one first usable erase block excluded from the second partition.

9. The storage device of claim 7, wherein the at least one first usable erase block of the at least one die excluded from the first partition has a greater estimated age than the two or more first erase blocks removed to form the first partition.

10. The memory device of claim 7, wherein the at least one first usable erase block of the at least one die excluded from the first partition has experienced a greater estimated number of program erase cycles than the two or more first erase blocks removed to form the first partition.

11. The memory device of claim 7, wherein the at least one first usable erase block of the at least one die excluded from the second partition has experienced a greater estimated number of program erase cycles than the two or more second erase blocks removed to form the second partition.

12. The storage device according to claim 7, wherein the controller is further configured to: determining that two or more of the first usable erase blocks have a same estimated age; comparing the size of the free pool for each of the dies including the two or more first usable erase blocks having the same estimated age; and Erase blocks of the two or more first available erase blocks having the same estimated age are excluded from the first partition based on the size of the free pool.

13. The storage device of claim 12, wherein the excluded erase blocks are disposed in a die having a free pool of a smallest size.

14. A method of forming one or more partitions of a storage device, comprising: Switch the first partition from the empty state to the active state, where: The capacity of the storage device is divided into a plurality of partitions, The memory device comprises a plurality of dies, each of the plurality of dies comprising a plurality of erase blocks, and each partition of the plurality of partitions includes two or more erase blocks of the plurality of erase blocks, the two or more erase blocks being selected from a free pool of erase blocks of the plurality of dies; comparing the estimated ages of the first usable erase blocks in each of the plurality of dies to one another; and Two or more of the first usable erase blocks are selected from two or more of the plurality of die based on the estimated age to form the first partition, wherein at least one first usable erase block from at least one of the plurality of die is excluded from the first partition, the at least one first usable erase block excluded from the first partition remains in the free pool of erase blocks, wherein after excluding the at least one first usable erase block, wear levels of the first usable erase blocks are evenly distributed.

15. The method according to claim 14, further comprising: determining that two or more of the first usable erase blocks have a same estimated age; as well as Erasure blocks of the two or more first available erase blocks having the same estimated age are excluded from the first partition based on an estimated retention of the excluded erase blocks or a bit error rate of the excluded erase blocks.

16. The method of claim 14, wherein the two or more of the first available erase blocks selected to form the first partition are removed from a free pool of the two or more dies.

17. The method of claim 14, wherein the at least one first usable erase block of the at least one die excluded from the first partition has a greater estimated age or a greater estimated program erase cycle amount than the two or more first usable erase blocks selected to form the first partition.

18. The method of claim 14, wherein comparing the estimated ages of the first usable erase blocks in each of the plurality of dies to one another further comprises comparing the sizes of the free pools or erase blocks of each of the plurality of dies to one another.