Bad growth block management in memory subsystem
By establishing a replacement block pool in the memory subsystem and replacing bad growth blocks with extra valid blocks or free blocks, the GBB management problem is solved, the system life is extended and the performance impact is reduced, ensuring the stability and reliability of the memory subsystem. .
Patent Information
- Application Number
- CN202110664635.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-06-16
- Filing Date
- 2021-06-16
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2041-06-16
AI Technical Summary
The existence of bad growing blocks (GBBs) in the memory subsystem leads to unstable data storage and retrieval, affecting system performance and lifespan. It is difficult to effectively detect and replace GBBs with existing technology.
Extend system life and reduce performance impact by establishing a pool of replacement blocks in the memory subsystem to replace poorly grown blocks with additional valid blocks or free blocks. The GBB management component is responsible for detecting GBB and selecting replacement blocks from the replacement block pool to ensure that the system continues to operate normally under the same data structure.
It effectively extends the life of the memory subsystem, reduces the impact on system performance, and ensures that the memory subsystem can still meet normal operation requirements in the event of GBB.
Smart Images

Figure CN113808656B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate generally to memory subsystems, and more particularly, to bad growing block (GBB) management in memory subsystems. Background Art
[0002] A memory subsystem may include one or more memory devices that store data. The memory devices may be, for example, non-volatile memory devices and volatile memory devices. Generally speaking, a host system may utilize a memory subsystem to store data at the memory devices and retrieve data from the memory devices. Summary of the invention
[0003] In one aspect, the present application provides a memory subsystem comprising: a memory device comprising a set of valid blocks; and a processing device operatively coupled to the memory device to perform operations, the operations comprising: establishing a replacement block pool, the replacement block pool comprising one or more valid blocks from the set of valid blocks determined based on a constraint defining a minimum number of valid blocks for the memory device; detecting a bad growth block in the set of valid blocks of the memory device; and in response to detecting the bad growth block, replacing the bad growth block with a replacement block from the replacement block pool.
[0004] In another aspect, the present application provides a method comprising: establishing a replacement block pool for a memory device, the replacement block pool comprising one or more valid blocks from a group of valid blocks of the memory device determined based on a constraint defining a minimum number of valid blocks for the memory device, the establishing the replacement block pool comprising reserving the one or more valid blocks for the replacement block pool; detecting a bad growth block in the group of valid blocks of the memory device; and in response to detecting the bad growth block, replacing the bad growth block with a replacement block from the replacement block pool.
[0005] In another aspect, the present application provides a non-transitory computer-readable storage medium comprising instructions that, when executed by a processing device, configure the processing device to perform operations comprising: reserving one or more valid blocks from a set of valid blocks of a memory device for a replacement block pool of the memory device, the one or more valid blocks being determined based on a constraint defining a minimum number of valid blocks for the memory device; detecting a bad growth block in the set of valid blocks of the memory device; and in response to detecting the bad growth block, replacing the bad growth block with a replacement block from the replacement block pool. BRIEF DESCRIPTION OF THE DRAWINGS
[0006] The present disclosure will be more fully understood from the detailed description provided below and the accompanying drawings of various embodiments of the present disclosure.
[0007] Figure 1 is an example computing system including a memory subsystem according to some embodiments of the present disclosure.
[0008] Figure 2A and 2B is a conceptual diagram illustrating example sources for populating a replacement block pool for replacing GBBs in a memory device according to some embodiments of the present disclosure.
[0009] Figures 3 to 5 is a flow chart illustrating an example method for managing GBB according to some embodiments of the present disclosure.
[0010] Figure 6 is a block diagram of an example computer system in which embodiments of the present disclosure may operate. DETAILED DESCRIPTION
[0011] Aspects of the present disclosure are directed to bad growing block (GBB) management in a memory subsystem. The memory subsystem may be a storage device (e.g., a solid state drive (SSD)), a memory module, or a combination of a storage device and a memory module. Figure 1 Examples of other storage devices and memory modules are described. In general, a host system may utilize a memory subsystem that includes one or more components (such as memory devices) that store data. The host system may provide data for storage at the memory subsystem and may request retrieval of data from the memory subsystem.
[0012] The memory device may be a non-volatile memory device. An example of a non-volatile memory device is a NAND memory device. Figure 1 Other examples of nonvolatile memory devices are described. Each of the nonvolatile memory devices may include one or more memory cell arrays. A memory cell ("cell") is an electronic circuit that stores information. Depending on the cell type, a cell may store one or more binary bits of information and have various logical states associated with the number of bits stored. The logical states may be represented by binary values (e.g., "0" and "1") or combinations of these values.
[0013] Various memory access operations can be performed on memory cells. Data can be written to, read from, and erased from memory cells. Memory cells can be grouped into write units (e.g., pages). For some types of memory devices, a page is the smallest write unit. The page size represents a specific number of cells of a page.
[0014] For some types of memory devices (e.g., NAND), memory cells can be grouped into erase units (e.g., physical blocks that are a group of pages). A physical block is a 2-dimensional memory array of pages (rows of cells) and strings (columns of cells). Data can be written to a block page by page. Data can be erased at the block level. However, portions of a block cannot be erased.
[0015] A bad block (also referred to herein as an "invalid block") hereinafter refers to a block that is no longer reliable for storing or retrieving data and may incorrectly store bit values, for example, due to a defect (e.g., a manufacturing defect) or due to wear. Incorrect bit values are referred to as invalid bits hereinafter. A bad growth block (GBB) hereinafter refers to a block that is unreliable due to wear. A bad growth block may be identified based on a threshold, for example, a bit error rate (BER) threshold.
[0016] Bad blocks may exist when the device is shipped, or bad blocks may appear over the life of the device. For example, during the manufacture of NAND, a certain number of memory blocks are bad blocks generated by the factory and are marked as "manufacturing bad blocks", which indicates that they are usually stored in a dedicated area of the memory block. Memory blocks that are initially "good" valid blocks (i.e., reliable blocks) may eventually become GBBs as they wear out during system use. Once the GBBs in the memory device are identified, the memory subsystem decides how to handle the GBBs to minimize system impact and maximize system life. Due to the data structure design, the GBBs need to be properly replaced by reliable blocks so that the memory subsystem can continue to operate based on the same data structure. However, due to other considerations, such as the availability of good blocks and system performance requirements, there are limits on how many GBBs can be replaced.
[0017] Aspects of the present disclosure are addressed by using a GBB management component to handle GBBs in a memory subsystem to detect and replace GBBs in a memory device. The GBB management component maintains a replacement block pool from which replacement blocks can be selected to replace GBBs in a memory device. The replacement blocks in the replacement block pool can be additional valid blocks or free valid blocks. The memory device is manufactured to include a set of blocks, and the design specification defines a constraint on the minimum number of valid blocks. As referred to herein, an "extra" valid block refers to a block that exceeds the minimum number of valid blocks. As referred to herein, a "free" valid block refers to an unused valid block that is empty and not currently allocated for use.
[0018] When replacing a GBB, the GBB management component evaluates whether the replacement pool contains at least one additional valid block, and if so, the GBB management component replaces the GBB with the additional valid block. If no additional valid blocks exist in the replacement block pool, the GBB management component replaces the GBB with a free block from the replacement block pool. Depending on the embodiment, the GBB management component may replace blocks in the replacement block pool while using replacement blocks from the pool or after emptying the replacement block pool. If no additional replacement blocks are available to add to the replacement block pool, the GBB management component places the memory device in read-only mode.
[0019] By replacing GBBs with replacement blocks from a replacement block pool having additional valid blocks and free blocks, the GBB management component extends the memory subsystem life while reducing the memory subsystem performance impact. The GBB management component extends the memory subsystem life by allowing the memory subsystem to continue to operate using the same data structure regardless of the occurrence of one or more GBBs in the memory devices of the memory subsystem. The GBB management component reduces the system performance impact by replacing GBBs with replacement blocks only when the memory devices can continue to operate according to system performance requirements (e.g., by maintaining a threshold number of valid blocks for normal operation).
[0020] Figure 1 An example computing system 100 is illustrated that includes a memory subsystem 110 in accordance with some embodiments of the present disclosure. Memory subsystem 110 may include media such as one or more volatile memory devices (e.g., memory device 140), one or more non-volatile memory devices (e.g., memory device 130), or a combination of the like.
[0021] The memory subsystem 110 may be a storage device, a memory module, or a mixture of storage devices and memory modules. Examples of storage devices include solid-state drives (SSDs), flash drives, universal serial bus (USB) flash drives, embedded multimedia controller (eMMC) drives, universal flash storage (UFS) drives, secure digital (SD) cards, and hard disk drives (HDDs). Examples of memory modules include dual in-line memory modules (DIMMs), small outline DIMMs (SO-DIMMs), and various types of non-volatile dual in-line memory modules (NVDIMMs).
[0022] The computing system 100 may be a computing device such as a desktop computer, a laptop computer, a network server, a mobile device, a vehicle (e.g., an airplane, drone, train, automobile, or other transportation vehicle), an Internet of Things (IoT) enabled device, an embedded computer (e.g., a computer included in a vehicle, industrial equipment, or a networked commercially available device), or such a computing device that includes a memory and a processing device.
[0023] The computing system 100 may include a host system 120 coupled to one or more memory subsystems 110. In some embodiments, the host system 120 is coupled to memory subsystems 110 of different types. Figure 1 An example of a host system 120 coupled to one memory subsystem 110 is illustrated. As used herein, "coupled to" or "coupled with" generally refers to a connection between components, which may be an indirect communication connection or a direct communication connection (e.g., without intervening components), whether wired or wireless, including connections such as electrical connections, optical connections, magnetic connections, etc.
[0024] The host system 120 may include a processor chipset and a software stack executed by the processor chipset. The processor chipset may include one or more cores, one or more caches, a memory controller (e.g., an NVDIMM controller), and a storage protocol controller (e.g., a PCIe controller, a SATA controller). The host system 120 uses the memory subsystem 110, for example, to write data to the memory subsystem 110 and read data from the memory subsystem 110.
[0025] The host system 120 may be coupled to the memory subsystem 110 via a host interface. Examples of the host interface include, but are not limited to, a Serial Advanced Technology Attachment (SATA) interface, a Peripheral Component Interconnect Express (PCIe) interface, a USB interface, a Fibre Channel, a Serial Attached SCSI (SAS), a Small Computer System Interface (SCSI), a Double Data Rate (DDR) memory bus, a Dual In-line Memory Module (DIMM) interface (e.g., a DIMM socket interface supporting Double Data Rate (DDR)), an Open NAND Flash Interface (ONFI), Double Data Rate (DDR), Low Power Double Data Rate (LPDDR), or any other interface. The host interface may be used to transmit data between the host system 120 and the memory subsystem 110. When the memory subsystem 110 is coupled to the host system 120 through a PCIe interface, the host system 120 may further utilize an NVM Express (NVMe) interface to access memory components (e.g., the memory device 130). The host interface may provide an interface for transferring control, address, data, and other signals between the memory subsystem 110 and the host system 120. Figure 1 Memory subsystem 110 is illustrated as an example. In general, host system 120 can access multiple memory subsystems via the same communication connection, multiple separate communication connections, and / or a combination of communication connections.
[0026] The memory devices 130, 140 may include any combination of different types of non-volatile memory devices and / or volatile memory devices. Volatile memory devices (e.g., memory device 140) may be, but are not limited to, random access memory (RAM), such as dynamic random access memory (DRAM) and synchronous dynamic random access memory (SDRAM).
[0027] Some examples of non-volatile memory devices (e.g., memory device 130) include NAND type flash memory and write-in-place memory, such as a three-dimensional cross-point ("3D cross-point") memory device, which is a cross-point array of non-volatile memory cells. The cross-point array of non-volatile memory can be combined with a stackable cross-grid data access array to perform bit storage based on changes in body resistance. In addition, in contrast to many flash-based memories, cross-point non-volatile memory can perform write-in-place operations, where non-volatile memory cells can be programmed without pre-erasing the non-volatile memory cells. NAND type flash memory includes, for example, two-dimensional NAND (2D NAND) and three-dimensional NAND (3D NAND)
[0028] Each of the memory devices 130 may include one or more memory cell arrays. One type of memory cell, such as a single-level cell (SLC), may store one bit per cell. Other types of memory cells, such as multi-level cells (MLC), three-level cells (TLC), four-level cells (QLC), and five-level cells (PLC) may store multiple bits per cell. In some embodiments, each of the memory devices 130 may include one or more memory cell arrays, such as SLC, MLC, TLC, QLC, or any combination of such memory cell arrays. In some embodiments, a particular memory device may include an SLC portion of a memory cell, as well as an MLC portion, a TLC portion, a QLC portion, or a PLC portion. The memory cells of the memory device 130 may be grouped into pages, which may refer to a logical unit of a memory device for storing data. For some types of memory (e.g., NAND), pages may be grouped to form blocks. For example, a memory device may include a group of blocks. Design specifications may define constraints on the minimum number of valid blocks of the memory device 130, which may be different from the number of blocks in the group of blocks on the device.
[0029] Although nonvolatile memory components such as NAND-type flash memory (e.g., 2D NAND, 3D NAND) and a 3D cross-point array of nonvolatile memory cells are described, the memory device 130 may be based on any other type of nonvolatile memory, such as read-only memory (ROM), phase-change memory (PCM), self-selected memory, other chalcogenide-based memories, ferroelectric transistor random access memory (FeTRAM), ferroelectric random access memory (FeRAM), magnetic random access memory (MRAM), spin transfer torque (STT)-MRAM, conductive bridge RAM (CBRAM), resistive random access memory (RRAM), oxide-based RRAM (OxRAM), NOR flash memory, and electrically erasable programmable read-only memory (EEPROM).
[0030] The memory subsystem controller 115 (or simply controller 115) can communicate with the memory device 130 to perform operations, such as reading data, writing data, or erasing data at the memory device 130, and other such operations. The memory subsystem controller 115 can include hardware, such as one or more integrated circuits and / or discrete components, buffer memory, or a combination thereof. The hardware can include digital circuits with dedicated (i.e., hard-coded) logic to perform the operations described herein. The memory subsystem controller 115 can be a microcontroller, dedicated logic circuitry (e.g., a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), etc.), or other suitable processor.
[0031] The memory subsystem controller 115 may include a processor 117 (processing device) configured to execute instructions stored in a local memory 119. In the illustrated example, the local memory 119 of the memory subsystem controller 115 includes an embedded memory configured to store instructions for executing various processes, operations, logic flows, and routines that control the operation of the memory subsystem 110, including handling communications between the memory subsystem 110 and the host system 120.
[0032] In some embodiments, local memory 119 may include memory registers that store memory pointers, fetched data, etc. Local memory 119 may also include ROM for storing microcode. Figure 1 The example memory subsystem 110 in FIG. 1 has been illustrated as including a memory subsystem controller 115, but in another embodiment of the present disclosure, the memory subsystem 110 does not include a memory subsystem controller 115 and may actually rely on external control (e.g., provided by an external host or by a processor or controller separate from the memory subsystem).
[0033] In general, the memory subsystem controller 115 may receive commands or operations from the host system 120, and may convert the commands or operations into instructions or appropriate commands to achieve the desired access to the memory device 130 and / or the memory device 140. The memory subsystem controller 115 may be responsible for other operations associated with the memory device 130, such as wear leveling operations, garbage collection operations, error detection and error correction code (ECC) operations, encryption operations, cache operations, and address conversion between logical addresses (e.g., logical block addresses (LBA), name space) and physical addresses (e.g., physical block addresses). The memory subsystem controller 115 may further include a host interface circuit system to communicate with the host system 120 via a physical host interface. The host interface circuit system may convert commands received from the host system 120 into command instructions to access the memory device 130 and / or the memory device 140, and convert responses associated with the memory device 130 and / or the memory device 140 into information for the host system 120.
[0034] In some embodiments, the memory device 130 includes a local media controller 135 that operates in conjunction with the memory subsystem controller 115 to perform operations on one or more memory cells of the memory device 130 .
[0035] As described above, either of the memory devices 130 or 140 may include an array of memory cells grouped into blocks. A properly functioning block storing valid data is referred to as a valid block. A bad growth block (GBB) may be detected in one of the memory devices 130 or 140 based on a fault or defect in the block causing one or more bits to be invalid. Thus, a GBB may be a faulty or defective block. A GBB does not affect the performance of a valid block because it is isolated from a common source line by a select transistor. However, the basic data stored by the block can still be recovered and used by copying the basic data stored by the block to a replacement block. The memory subsystem 110 also includes a GBB management component 113 responsible for managing and replacing GBBs in the memory subsystem 110.
[0036] To manage the GBB, the GBB management component 113 maintains one or more replacement block pools from which replacement blocks can be selected to replace the GBB in one of the memory devices 130 or 140. The replacement blocks in each replacement block pool correspond to additional valid blocks or free blocks. When replacing a GBB, the GBB management component 113 evaluates whether the corresponding replacement pool contains at least one additional valid block, and if so, the GBB management component 113 replaces the GBB with the additional valid block. If there are no additional valid blocks in the replacement block pool, the GBB management component 113 replaces the GBB with a free block from the replacement block pool. Depending on the embodiment, the GBB management component 113 may replace blocks in the replacement block pool when using replacement blocks from the pool or after emptying the replacement block pool. If there are no additional replacement blocks available to add to the replacement block pool, the GBB management component 113 places the memory device in read-only mode.
[0037] In some embodiments, the memory subsystem controller 115 includes at least a portion of the GBB management component 113. For example, the memory subsystem controller 115 may include a processor 117 (processing device) configured to execute instructions stored in the local memory 119 for performing the operations described herein. In some embodiments, the GBB management component 113 is part of the host system 120, an application, or an operating system. In some embodiments, the local media controller 135 includes at least a portion of the GBB management component 113.
[0038] Figure 2A and 2B 2 is a conceptual diagram illustrating an example source for populating a replacement block pool 200 for replacing GBBs in a memory device 202 according to some embodiments of the present disclosure. Figure 2A and 2B In the example illustrated in FIG. 2 , the memory device 202 is an example memory device 130 in the example form of a NAND memory device including a plurality of memory blocks 204. The NAND memory blocks 204 include a two-dimensional (2D) array including pages (rows) and strings (columns).
[0039] A three-dimensional (3D) NAND type flash memory device includes multiple planes, each of which includes one or more memory blocks 204. A string includes multiple memory cells connected in series. Each memory cell is used to represent one or more bit values (0 or 1). A single NAND flash cell includes a transistor that stores charge on a memory layer that is isolated by an oxide insulating layer above and below. Generally speaking, when there is a charge on the memory layer of a memory cell, the memory cell is programmed and recognized by the memory subsystem as a binary value of 0. When the memory layer of a memory cell does not have a charge, it is erased and recognized as a binary value of 1.
[0040] The memory device 202 includes a set of valid blocks 206. As an example, an area within each block may be dedicated to an indication of whether the block is valid. Each block in the set of valid blocks 206 may store an indication that the block is valid. When establishing the replacement block pool 200, the GBB management component 113 identifies free memory blocks 208 and additional valid memory blocks 210. The free memory blocks 208 include unallocated and unused memory blocks. Regarding the "extra" valid memory blocks 210, a specific number of the set of valid blocks 206 are reserved to support normal operation of the memory device according to the minimum valid block requirements of the design specification. The additional valid memory blocks 210 identified by the processing device correspond to valid blocks in the set of valid blocks 206 that exceed the minimum number of valid blocks reserved for normal operation.
[0041] To establish the replacement pool, the GBB management component 113 reserves additional valid memory blocks 210 and free memory blocks 208 for use in the replacement block pool 200. For example, the GBB management component 113 may maintain a table or other data structure to track the designation of memory blocks 204 in the memory device 202. To reserve the additional valid memory blocks 210 and free memory blocks 208 for use in the replacement pool, the GBB management component 113 updates the table (or other data structure) to indicate that the additional valid memory blocks 210 and free memory blocks 208 are designated as part of the replacement block pool 200.
[0042] As noted above, memory blocks 204 of memory device 202 may include SLC or MLC. In some embodiments, replacement blocks in replacement block pool 200 are shared between SLC and MLC memory blocks so that an MLC or SLC memory block may be replaced as needed with any replacement block in the replacement pool.
[0043] In some embodiments, a first set of replacement blocks may be designated to replace SLC blocks, and a second set of replacement blocks may be designated to replace MLC blocks. Figure 2B As shown in , according to some embodiments, replacement block pool 200 may include SLC pool 212 and MLC pool 214. Replacement blocks in SLC pool 212 may be used to replace only SLC blocks, and replacement blocks in MLC pool 214 may be used to replace only MLC blocks. In this example where replacement block pool 200 includes four replacement blocks, two replacement blocks may be allocated to SLC pool 212 and used to replace SLC GBBs, and two replacement blocks may be allocated to MLC pool 214 and used to replace MLC GBBs. In some cases, one or more blocks may be unallocated and used to replace SLC or MLC blocks (not shown). Following the example of a four-replacement block pool, two blocks may be allocated for SLC blocks, one block may be allocated for MLC blocks, and one block may remain unallocated.
[0044] Figures 3 to 51 is a flow chart of an example method 300 for managing GBBs on a memory device (e.g., memory device 130) according to some embodiments of the present disclosure. Method 300 may be performed by processing logic, which may include hardware (e.g., a processing device, a circuit system, specialized logic, programmable logic, microcode, hardware of a device, an integrated circuit, etc.), software (e.g., instructions running or executed on a processing device), or a combination thereof. In some embodiments, method 300 is performed by Figure 1 The GBB management component 113 of the embodiment of the present invention is executed. Although the processes are shown in a specific order or sequence, the order of the processes can be modified unless otherwise specified. Therefore, it should be understood that the illustrated embodiments are only examples, and the illustrated processes can be performed in a different order, and some processes can be performed in parallel. In addition, one or more processes can be omitted in various embodiments. Therefore, not all processes are required in every embodiment. Other process flows are also possible.
[0045] Method 300 begins at operation 305, where a processing device establishes a replacement block pool for a memory device of a memory subsystem. The memory device includes a set of valid blocks. Initially, the replacement block pool includes at least one or more additional valid blocks from the set of valid blocks, but one or more free blocks may be added to the replacement block pool. For example, Figure 4 As shown in , operations 405 , 410 , and 415 may be performed as part of operation 305 , where the processing device establishes a replacement block pool.
[0046] At operation 405, the processing device identifies additional valid blocks in the memory device. In one example, the memory device includes a set of valid memory blocks ("good" blocks). The processing device can identify whether a given memory block is valid based on an indicator stored by the memory block. According to design specifications, a minimum number of valid blocks is required for normal operation of the memory device. The additional valid blocks identified by the processing device correspond to valid blocks in the set of valid blocks that exceed the minimum number of valid blocks reserved for normal operation.
[0047] At operation 305, the processing device reserves additional valid blocks for use in the replacement block pool. For example, the processing device may store and maintain a table or other data structure to track memory block designations. When reserving additional valid blocks for use in the replacement pool, the processing device may update the table (or other data structure) to indicate that the additional valid blocks are dedicated for use in the replacement pool.
[0048] The processing device identifies one or more free blocks in the memory device (at operation 415). To identify the free blocks, the processing device identifies blocks that are not currently in use (eg, blocks that are empty and unallocated). The processing device may identify such blocks based on a lookup table or other data structure.
[0049] At operation 420, the processing device reserves free blocks in the memory device for the replacement block pool. As with the additional valid blocks, the processing device reserves free blocks for the replacement block pool by updating a table or other data structure to indicate that the free blocks are designated as part of the replacement block pool. According to some embodiments, operations 415 and 420 may be performed only upon determining that no additional valid blocks remain. That is, upon determining that the number of valid blocks in the memory device is the minimum number of valid blocks of the memory device, the processing device may add the free blocks to the replacement pool.
[0050] Back to Figure 3 At operation 310, the processing device detects a GBB in the memory device. As previously discussed, a GBB is an invalid block (e.g., a faulty block) in the memory device. The processing device may detect a GBB in the memory device based on an indicator stored by the GBB or an indication provided by a component of the memory block (e.g., the local media controller 135). For example, a GBB may be identified based on an error output to a status register in response to an attempt to program or erase data on the block. In another example, a GBB may be identified by reading data from a dedicated area on the GBB indicating that the GBB is invalid.
[0051] At operation 315, the processing device replaces the GBB with a replacement block from the replacement block pool. To replace the GBB with the replacement block, the processing device copies the data stored in the GBB into the replacement block and remaps the association between the logical addresses previously mapped to the physical addresses of the GBB. That is, the processing device remaps one or more logical addresses to one or more physical addresses of the replacement block. For example, the processing device may maintain a lookup table that includes address translations between LBAs and PBAs, and the processing device may update the lookup table to map the LBA corresponding to the data copied from the GBB to the PBA corresponding to the replacement block.
[0052] As noted above, a GBB may include an array of SLCs or MLCs.In some embodiments, replacement blocks in a replacement block pool are shared between SLC and MLC memory blocks, such that an MLC or SLC memory block may be replaced as needed with any replacement block in the replacement pool.
[0053] In some embodiments, a first group of replacement blocks may be designated to replace SLC blocks, and a second group of replacement blocks may be designated to replace MLC blocks. According to these embodiments, replacement blocks in a replacement pool may be assigned to SLC or MLC blocks, and replacement blocks may only replace memory blocks of the type (SLC or MLC) to which they are assigned. For example, for a replacement pool with five replacement blocks, two replacement blocks may be assigned to replace SLC GBBs, and three replacement blocks may be assigned to MLC GBBs. In some cases, one or more blocks may be unallocated and used to replace SLC or MLC blocks. Returning to the example of a five-block replacement block pool, two blocks may be allocated to SLC blocks, two blocks may be allocated to MLC blocks, and one block may remain unallocated. In some embodiments, two replacement pools may be maintained: a first replacement pool for SLC blocks and a second replacement pool for MLC blocks.
[0054] According to an embodiment in which a first set of replacement blocks is designated to replace SLC blocks and a second set of replacement blocks is designated to replace MLC blocks, the processing device may replace the GBB with a replacement block from the first set of replacement blocks if the GBB is an SLC block. If the GBB is an MLC block, the processing device replaces the GBB with a replacement block from the second set of replacement blocks.
[0055] At operation 320, the processing device optionally determines that the replacement pool is empty. It should be appreciated that in some embodiments, operation 320 may not be performed before operation 325, and may not be performed as part of method 300 at all.
[0056] At operation 325, the processing device determines whether there are any additional replacement blocks available in the memory device. When determining whether there are any additional replacement blocks, the processing device may determine whether there are any additional additional valid blocks remaining. If there are no additional additional valid blocks remaining, the processing device determines whether there are any additional free blocks in the processing device.
[0057] If the processing device identifies additional replacement blocks, the processing device adds the additional replacement blocks to the replacement block pool at operation 330. That is, if at least one additional valid block remains (i.e., there are one or more valid blocks exceeding the minimum number of valid blocks), the processing device adds the additional valid blocks to the replacement block pool. If there are no additional valid blocks, the processing device adds the free blocks to the replacement pool.
[0058] In response to determining that the replacement block pool is empty and there are no additional replacement blocks in the memory device, the processing device places the memory device in read-only mode (operation 335). When in read-only mode, only read operations are permitted for the memory device, while write, modify and delete operations are blocked.
[0059] like Figure 5As shown, in some embodiments, method 300 may include operations 505, 510, and 515. According to these embodiments, operations 505, 510, and 515 may be performed as part of operation 315, where the processing device replaces the GBB with the replacement block. At operation 505, the processing device determines whether there are additional valid blocks in the replacement block pool. If there are additional valid blocks, then at operation 510, the processing device replaces the GBB with the additional valid blocks. If no additional valid blocks remain in the replacement block pool, the processing device replaces the GBB with a free block in the replacement block pool.
[0060] Examples
[0061] Example 1 is a memory subsystem comprising: a memory device comprising a set of valid blocks; and a processing device operatively coupled to the memory device to perform operations, the operations comprising: establishing a replacement block pool, the replacement block pool comprising one or more valid blocks from the set of valid blocks determined based on a constraint defining a minimum number of valid blocks for the memory device; detecting a bad growth block in the set of valid blocks of the memory device; and in response to detecting the bad growth block, replacing the bad growth block with a replacement block from the replacement block pool.
[0062] Example 2 includes the memory subsystem of example 1, wherein the replacing the bad growth block comprises: determining whether the replacement block pool includes at least one additional valid block.
[0063] Example 3 includes the memory subsystem of any one or more of Examples 1 or 2, wherein replacing the bad growing block further comprises: replacing the bad growing block with an additional valid block in response to determining that the replacement block pool includes at least one additional valid block.
[0064] Example 4 includes the memory subsystem of any one or more of Examples 1-3, wherein replacing the bad growing block further comprises: in response to determining that the replacement block pool does not include any additional valid blocks, replacing the bad growing block with an unused block from the set of valid blocks.
[0065] Example 5 includes the memory subsystem of any one or more of Examples 1 to 4, wherein the operation further includes: determining that the replacement block pool is empty; determining that no additional replacement blocks are available in the memory device; and in response to determining that the replacement block pool is empty and no additional replacement blocks are available, placing the memory device in read-only mode.
[0066] Example 6 includes the memory subsystem of any one or more of Examples 1 to 5, wherein the operation further includes: determining that the replacement block pool is empty; in response to determining that the replacement block pool is empty, identifying additional replacement blocks in the memory device to add to the replacement block pool; and adding the additional replacement blocks to the replacement block pool.
[0067] Example 7 includes the memory subsystem of any one or more of Examples 1 to 6, wherein the operation further includes: identifying additional replacement blocks in the memory device to add to the replacement block pool based on replacing the bad growth block with a replacement block from the replacement block pool; and adding the additional replacement blocks to the replacement block pool.
[0068] Example 8 includes the memory subsystem of any one or more of Examples 1-7, wherein the replacement block pool includes: a first set of replacement blocks dedicated to replacing single-level cell (SLC) blocks; and a second set of replacement blocks dedicated to replacing multi-level cell (MLC) blocks.
[0069] Example 9 includes the memory subsystem of any one or more of Examples 1-8, wherein: the bad growth block is an SLC block; and the replacing the bad growth block with the replacement block from the replacement block pool includes: selecting the replacement block from the first set of replacement blocks.
[0070] Example 10 includes the memory subsystem of any one or more of Examples 1-9, wherein: the bad growth block is an MLC block; and the replacing the bad growth block with the replacement block from the replacement block pool comprises: selecting the replacement block from the second set of replacement blocks.
[0071] Example 11 includes the memory subsystem of any one or more of Examples 1 to 10, wherein the replacement block pool includes a third group of replacement blocks dedicated to replacing SLC or MLC blocks; and replacing the bad growth block with the replacement block from the replacement block pool includes: selecting the replacement block from the third group of replacement blocks.
[0072] Example 12 includes the memory subsystem of any one or more of Examples 1-11, wherein the one or more valid blocks are identified as exceeding the minimum number of valid blocks for the memory device.
[0073] Example 13 includes the memory subsystem of any one or more of Examples 1 to 12, wherein replacing the bad growth block with the replacement block includes: copying data from the bad growth block to the replacement block; and remapping one or more logical addresses corresponding to the data to one or more physical addresses corresponding to the replacement block.
[0074] Example 14 is a method comprising: establishing a replacement block pool for a memory device, the replacement block pool comprising one or more valid blocks from a set of valid blocks of the memory device determined based on a constraint defining a minimum number of valid blocks for the memory device, the establishing the replacement block pool comprising reserving the one or more valid blocks for the replacement block pool; detecting a bad growth block in the set of valid blocks of the memory device; and in response to detecting the bad growth block, replacing the bad growth block with a replacement block from the replacement block pool.
[0075] Example 15 includes the memory subsystem of any one or more of Examples 1-14, wherein the replacing the bad growth block comprises: determining whether the replacement block pool includes at least one additional valid block.
[0076] Example 16 includes the memory subsystem of any one or more of Examples 1-15, wherein the replacing the bad growing block further comprises: replacing the bad growing block with an additional valid block in response to determining that the replacement block pool includes at least one additional valid block.
[0077] Example 17 includes the memory subsystem of any one or more of Examples 1-16, wherein the replacing the bad growing block further comprises: in response to determining that the replacement block pool does not include any additional valid blocks, replacing the bad growing block with an unused block from the set of valid blocks.
[0078] Example 18 includes the memory subsystem of any one or more of Examples 1 to 17, the method of Example 14, and further includes: determining that the replacement block pool is empty; determining that no additional replacement blocks are available in the memory device; and in response to determining that the replacement block pool is empty and no additional replacement blocks are available, placing the memory device in read-only mode.
[0079] Example 19 includes the memory subsystem of any one or more of Examples 1-18, further comprising: identifying additional replacement blocks in the memory device to add to the replacement block pool; and adding the additional replacement blocks to the replacement block pool.
[0080] Example 20 is a non-transitory computer-readable storage medium comprising instructions that, when executed by a processing device, configure the processing device to perform operations, the operations comprising: reserving one or more valid blocks from a set of valid blocks of a memory device for a replacement block pool of the memory device, the one or more valid blocks being determined based on a constraint defining a minimum number of valid blocks for the memory device; detecting a bad growth block in the set of valid blocks of the memory device; and in response to detecting the bad growth block, replacing the bad growth block with a replacement block from the replacement block pool.
[0081] Figure 6 An example machine is illustrated in the form of a computer system 600 within which a set of instructions may be executed to cause the machine to perform any one or more of the methodologies discussed herein. Figure 6 An example machine illustrating a computer system 600 may be executed within which a set of instructions for causing the machine to perform any one or more of the methodologies discussed herein may be executed. In some embodiments, the computer system 600 may correspond to a host system (e.g., Figure 1 ) that includes, is coupled to, or utilizes a memory subsystem (e.g., Figure 1 The memory subsystem 110 of the controller may be used to execute the operation of the controller (for example, execute the operating system to execute the corresponding Figure 1 In some embodiments, the machine may be connected (e.g., using a network) to other machines in a peer-to-peer (or distributed) network environment, or in the capacity of a server or a client machine in a client-server network environment.
[0082] The machine may be a personal computer (PC), a tablet PC, a set-top box (STB), a personal digital assistant (PDA), a cellular phone, a network appliance, a server, a network router, a switch or a bridge, or any machine capable of executing (sequentially or otherwise) a set of instructions that specify actions to be taken by the machine. In addition, while a single machine is described, the term "machine" should also be construed to include any collection of machines that individually or collectively execute one (or more) sets of instructions to perform any one or more of the methodologies discussed herein.
[0083] The example computer system 600 includes a processing device 602, a main memory 604 (e.g., ROM, flash memory, DRAM such as SDRAM or RDRAM, etc.), a static memory 606 (e.g., flash memory, static random access memory (SRAM), etc.), and a data storage system 618, which communicate with each other via a bus 630.
[0084] Processing device 602 represents one or more general purpose processing devices, such as a microprocessor, a central processing unit, etc. More specifically, the processing device may be a complex instruction set computing (CISC) microprocessor, a reduced instruction set computing (RISC) microprocessor, a very long instruction word (VLIW) microprocessor, or a processor that implements other instruction sets, or a processor that implements a combination of instruction sets. Processing device 602 may also be one or more special purpose processing devices, such as an ASIC, an FPGA, a digital signal processor (DSP), a network processor, etc. Processing device 602 is configured to execute instructions 626 for performing the operations and steps discussed herein. Computer system 600 may further include a network interface device 608 to communicate over a network 620.
[0085] The data storage system 618 may include a machine-readable storage medium 624 (also referred to as a computer-readable medium) on which is stored one or more sets of instructions 626 or software embodying any one or more of the methods or functions described herein. The instructions 626 may also reside completely or at least partially within the main memory 604 and / or within the processing device 602 during execution thereof by the computer system 600, the main memory 604 and the processing device 602 also constituting machine-readable storage media. The machine-readable storage medium 624, the data storage system 618, and / or the main memory 604 may correspond to Figure 1 Memory subsystem 110.
[0086] In one embodiment, the instructions 626 include implementing a command corresponding to a data destruction component (e.g., Figure 1 The machine-readable storage medium 624 is shown as a single medium in the example embodiment, but the term "machine-readable storage medium" should be considered to include a single medium or multiple media storing one or more sets of instructions. The term "machine-readable storage medium" should also be considered to include any medium capable of storing or encoding a set of instructions for machine execution and causing the machine to perform any one or more of the methods of the present disclosure. Therefore, the term "machine-readable storage medium" should be considered to include, but not limited to, solid-state memory, optical media, and magnetic media.
[0087] Some portions of the previous detailed description have been presented in terms of algorithms and symbolic representations of operations on data bits within a computer memory. These algorithmic descriptions and representations are the means by which those skilled in the art of data processing can most effectively convey the substance of their work to others skilled in the art. In this article, and generally, an algorithm is conceived to be a self-consistent sequence of operations that produce a desired result. An operation is one that requires physical manipulation of physical quantities. Typically (but not necessarily), these quantities take the form of electrical or magnetic signals that can be stored, combined, compared, and otherwise manipulated. It has proven to be convenient at times, primarily for common reasons, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, and the like.
[0088] It should be borne in mind, however, that all of these and similar terms will be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. The present disclosure may refer to the actions and processes of a computer system or similar electronic computing device that manipulates and transforms data represented as physical (electronic) quantities within a computer system's registers and memories into other data similarly represented as physical quantities within the computer system's memories or registers or other such information storage systems.
[0089] The present disclosure also relates to an apparatus for performing the operations described herein. This apparatus may be specially constructed for the intended purpose, or it may comprise a general purpose computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program may be stored in a computer-readable storage medium, such as, but not limited to, any type of disk (including floppy disks, optical disks, CD-ROMs, and magnetic optical disks), ROM, RAM, EPROM, EEPROM, magnetic or optical cards, or any type of medium suitable for storing electronic instructions, each coupled to a computer system bus.
[0090] The algorithms and displays presented herein are not inherently related to any particular computer or other device. Various general purpose systems may be used with the program according to the teachings herein, or it may prove convenient to construct a more specialized device to perform the method. The structures of various such systems will be presented as set forth in the description below. In addition, the present disclosure is not described with reference to any particular programming language. It should be appreciated that the teachings of the present disclosure as described herein may be implemented using various programming languages.
[0091] The present disclosure may be provided as a computer program product or software, which may include a machine-readable medium having stored thereon instructions that can be used to program a computer system (or other electronic device) to perform a process according to the present disclosure. A machine-readable medium includes any mechanism for storing information in a form readable by a machine (e.g., a computer). In some embodiments, a machine-readable (e.g., computer-readable) medium includes a machine (e.g., computer) readable storage medium, such as ROM, RAM, magnetic disk storage media, optical storage media, flash memory components, etc.
[0092] In the foregoing description, embodiments of the present disclosure have been described with reference to specific example embodiments thereof. It will be apparent that various modifications may be made to the present disclosure without departing from the broader scope of embodiments of the present disclosure as set forth in the appended claims. Therefore, the description and drawings should be viewed in an illustrative sense rather than a restrictive sense.
Claims
1. A memory subsystem comprising: a memory device comprising a set of valid blocks; as well as a processing device operatively coupled to the memory device to perform operations comprising: establishing a replacement block pool comprising one or more valid blocks from the set of valid blocks determined based on a constraint defining a minimum number of valid blocks for the memory device; detecting a badly grown block in the set of valid blocks of the memory device; In response to detecting the bad growing block, replacing the bad growing block with a replacement block from the replacement block pool; identifying an additional replacement block from the set of valid blocks to add to the replacement block pool based on replacing the bad growing block with the replacement block; as well as Based on replacing the bad growing block with the replacement block, the additional replacement block from the set of valid blocks is added to the replacement block pool.
2. The memory subsystem of claim 1 , wherein the replacing the bad growth block comprises: A determination is made as to whether the replacement block pool includes at least one additional valid block.
3. The memory subsystem of claim 2, wherein the replacing the bad growth block further comprises: The bad growing block is replaced with an additional valid block in response to determining that the replacement block pool includes at least one additional valid block.
4. The memory subsystem of claim 2, wherein the replacing the bad growth block further comprises: In response to determining that the replacement block pool does not include any additional valid blocks, the bad growing block is replaced with an unused block from the set of valid blocks.
5. The memory subsystem of claim 1 , wherein the operations further comprise: Determining that the replacement block pool is empty; determining that no additional replacement blocks are available in the memory device; as well as In response to determining that the replacement block pool is empty and no additional replacement blocks are available, the memory device is placed in a read-only mode.
6. The memory subsystem of claim 1 , wherein establishing the replacement block pool comprises: identifying at least one unallocated and unused free block; as well as At least one additional block that exceeds a minimum number of valid blocks for the memory device is identified.
7. The memory subsystem of claim 1 , wherein replacing the bad growth block with the replacement block comprises: copying data from the bad growth block to the replacement block; as well as One or more logical addresses corresponding to the data are remapped to one or more physical addresses corresponding to the replacement block.
8. The memory subsystem of claim 1, wherein the replacement block pool comprises: A first set of replacement blocks dedicated to replacing single-level cell (SLC) blocks; as well as A second set of replacement blocks is dedicated to replacing multi-level cell (MLC) blocks.
9. The memory subsystem of claim 8, wherein: The bad growth block is an SLC block; and The replacing the bad growth block with the replacement block from the replacement block pool comprises: The replacement block is selected from the first set of replacement blocks.
10. The memory subsystem of claim 8, wherein: The poorly grown block is an MLC block; and The replacing the bad growth block with the replacement block from the replacement block pool comprises: The replacement block is selected from the second set of replacement blocks.
11. The memory subsystem of claim 8, wherein: The replacement block pool includes a third group of replacement blocks dedicated to replacing SLC or MLC blocks; and The replacing the bad growth block with the replacement block from the replacement block pool comprises: The replacement block is selected from the third set of replacement blocks.
12. The memory subsystem of claim 1, wherein the one or more valid blocks are identified as exceeding the minimum number of valid blocks for the memory device.
13. The memory subsystem of claim 1, wherein the poorly grown blocks comprise faulty or defective blocks.
14. A method comprising: establishing a replacement block pool for a memory device, the replacement block pool comprising one or more valid blocks from a set of valid blocks of the memory device determined based on a constraint defining a minimum number of valid blocks for the memory device, the establishing the replacement block pool comprising reserving the one or more valid blocks for the replacement block pool; detecting a badly grown block in the set of valid blocks of the memory device; In response to detecting the bad growing block, replacing the bad growing block with a replacement block from the replacement block pool; identifying an additional replacement block from the set of valid blocks to add to the replacement block pool based on replacing the bad growing block with the replacement block; as well as Based on replacing the bad growing block with the replacement block, the additional replacement block from the set of valid blocks is added to the replacement block pool.
15. The method according to claim 14, wherein the replacing the bad growth block comprises: A determination is made as to whether the replacement block pool includes at least one additional valid block.
16. The method of claim 15, wherein the replacing the bad growth block further comprises: The bad growing block is replaced with an additional valid block in response to determining that the replacement block pool includes at least one additional valid block.
17. The method according to claim 15, wherein the replacing the bad growth block further comprises: In response to determining that the replacement block pool does not include any additional valid blocks, the bad growing block is replaced with an unused block from the set of valid blocks.
18. The method of claim 14, further comprising: Determining that the replacement block pool is empty; determining that no additional replacement blocks are available in the memory device; as well as In response to determining that the replacement block pool is empty and no additional replacement blocks are available, the memory device is placed in a read-only mode.
19. The method of claim 14, wherein replacing the poorly grown block with the replacement block comprises: copying data from the bad growth block to the replacement block; as well as One or more logical addresses corresponding to the data are remapped to one or more physical addresses corresponding to the replacement block.
20. A non-transitory computer-readable storage medium comprising instructions that, when executed by a processing device, configure the processing device to perform operations comprising: reserving one or more valid blocks from a set of valid blocks of a memory device for a replacement block pool of the memory device, the one or more valid blocks being determined based on a constraint defining a minimum number of valid blocks for the memory device; detecting a badly grown block in the set of valid blocks of the memory device; In response to detecting the bad growing block, replacing the bad growing block with a replacement block from the replacement block pool; identifying an additional replacement block from the set of valid blocks to add to the replacement block pool based on replacing the bad growing block with the replacement block; as well as The additional replacement block from the set of valid blocks is added to the pool of replacement blocks.
