Asynchronous power down handling in sequentially programmed memory subsystems

By introducing a high-frequency update table and a log data structure into the memory subsystem, the complexity and power consumption of restoring mapped data structures under asynchronous power failure are solved, achieving efficient and low-complexity data recovery.

CN115461727BActive Publication Date: 2026-11-24MICRON TECHNOLOGY INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202180031864.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-04-30
Filing Date
2021-04-29
Publication Date
2026-11-24
Estimated Expiration
2041-04-29

AI Technical Summary

Technical Problem

Existing memory subsystems have difficulty efficiently restoring mapped data structures in the event of asynchronous power failure, leading to data inconsistency and write amplification. Traditional technologies are complex and consume a lot of power.

Method used

A high-frequency update table (HFUT) and a log data structure are used. The high-frequency update table tracks changes in the mapping data structure, reduces the size of the mapping data structure, and allows for rapid recovery of the mapping data structure after an asynchronous power outage.

Benefits of technology

It improves the data recovery efficiency of the memory subsystem after asynchronous power failure, reduces the need for write amplification and power capacitors, and reduces complexity and power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115461727B_ABST
    Figure CN115461727B_ABST
Patent Text Reader

Abstract

A system includes an NVM memory and volatile memory storing: a Zone Mapping Data Structure (ZMDS) that maps zones in a Logical Block Address (LBA) space to zone states and to zone indices; a Journal Data Structure (JDS); and a High Frequency Update Table (HFUT). A processing device performs the following operations: writing a value corresponding to the zone index of a zone write pointer within an entry in the HFUT, wherein the zone write pointer contains a position in the LBA space; writing a table index value pointing to the entry in the HFUT within an entry in the ZMDS; updating the metadata of the entry in either the ZMDS or the JDS affected by a clear transition between the ZMDS and the HFUT within the JDS; and clearing the JDS and the HFUT to the NVM device in response to an asynchronous power-down event.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this disclosure generally relate to memory subsystems, and more specifically, to asynchronous power-down handling in sequentially programmed memory subsystems. Background Technology

[0002] A memory subsystem may include one or more memory devices for storing data. Memory devices may be, for example, non-volatile memory devices and volatile memory devices. Generally, a host system can utilize a memory subsystem to store data at memory devices and retrieve data from memory devices. Attached Figure Description

[0003] This disclosure will be more fully understood in light of the detailed description provided below and the accompanying drawings of various embodiments thereof.

[0004] Figure 1A This describes an example computing system including a memory subsystem according to an embodiment.

[0005] Figure 1B Description according to one embodiment Figure 1A Additional details about the memory subsystem.

[0006] Figure 2 This is a block diagram illustrating instances of data structures configured to support region-based mappings, according to various embodiments.

[0007] Figure 3 This is a block diagram of a mapped data structure indexed within a High Frequency Update Table (HFUT) according to one embodiment.

[0008] Figure 4 It is a block diagram of a mapped data structure that employs a log and a high-frequency update table according to various embodiments to reduce the size of the mapped data structure and allows for clearing in response to asynchronous power failure (APL).

[0009] Figure 5 This is a flowchart of a method for efficiently handling APLs within a sequentially programmed memory subsystem, according to one embodiment.

[0010] Figure 6 This is a flowchart of a method for efficiently handling APLs within a sequentially programmed memory subsystem, according to another embodiment.

[0011] Figure 7 This is a flowchart of a method for restoring a mapped data structure after a restart from APL, according to one embodiment.

[0012] Figure 8 This is a flowchart of a method for verifying a recovered mapped data structure after a restart from APL, according to one embodiment.

[0013] Figure 9 This is a block diagram of an example computer system in which embodiments of the present disclosure can be operated. Detailed Implementation

[0014] This disclosure relates to asynchronous power-off handling in a sequentially programmed memory subsystem. The memory subsystem may be a storage device, a memory module, or a mixture of both. The following is combined with… Figure 1A Describe examples of storage devices and memory modules. Generally, a host system may utilize a memory subsystem that includes one or more components, such as a memory device for storing data. The host system can provide data to be stored in the memory subsystem and can request to retrieve data from the memory subsystem.

[0015] Memory devices can be non-volatile memory devices. An example of a non-volatile memory device is a NAND flash memory device. The following section will discuss this further. Figure 1A Other examples of non-volatile memory devices are described. A non-volatile memory device is a package of one or more dies. The dies in the package may be assigned one or more channels for communication with a memory subsystem controller. Each die may consist of one or more planes. Planes may be divided into logical units (LUNs). For some types of non-volatile memory devices (e.g., NAND devices), each plane consists of a set of physical blocks. Each block consists of a set of pages. Each page consists of a set of memory cells (“cells”). A cell is an electronic circuit that stores information. In the following, a block refers to a cell of a memory device used to store data and may contain groups of memory cells, groups of word lines, word lines, or individual memory cells.

[0016] Data operations can be performed by the memory subsystem. These data operations can be initiated by the host system. For example, the host system can initiate data operations (such as write, read, erase, etc.) on the memory subsystem. The host system can send access requests (such as write commands, read commands) to the memory subsystem to store data in and read data from the memory devices located in the memory subsystem.

[0017] The data to be read or written, as specified in a host request, is referred to hereinafter as "host data". A host request may contain logical address information (e.g., logical block address (LBA), namespace) for the host data, which is the location associated with the host system and the host data. The logical address information (e.g., LBA, namespace) may be part of the metadata of the host data. The metadata may also include error handling data (e.g., ECC codeword, parity check), data version (e.g., information to distinguish new from old data being written), a validity bitmap (whose LBA or logical transfer unit contains valid data), and so on. For simplicity, when "data" is used hereinafter, it is understood to refer at least to host data, but may also refer to other data such as media management data and / or system data.

[0018] The cells (or simply "media") of a memory device can be organized hierarchically, from die (upper level) to plane, to block, to page (lower level). A block set (also called a block stripe) can be a set of blocks arranged in a plane across different dies so that blocks are grouped together for data storage. Writing to a block set allows more host data to be written and read simultaneously and in parallel across multiple dies. Multiple blocks of one or more block sets can be identified as data groups.

[0019] In various embodiments, the host file system can group host data using locality and write the host data sequentially to the memory subsystem. The file system can then write data with different localities as parallel sequential streams to the memory subsystem, each stream having its own locality, for example, where different host applications can each write to their own stream. "Locality" can refer to temporal locality or spatial locality. The memory subsystem controller (e.g., including processing means) typically writes to the media randomly in portions of host data (e.g., 4 KB) and then uses metadata to map the LBA space to the media's physical address space. However, when writing larger groups of host data (e.g., 100 MB or more) in groups with data locality, the "data group" can be written sequentially as larger chunks to one or more block sets across multiple dies. To simplify the mapping of such data groups, the LBAs of regions (e.g., the logical address space associated with the data group) can be sequentially ordered within the LBA space and mapped to sequentially ordered physical addresses within the physical address space. A memory subsystem capable of writing (e.g., programming) data areas and mapping those areas accordingly operates in a Zone Namespace (ZNS), where logical address areas are named / identified as groups. Advantageously, using a ZNS for logical-to-physical (LTP) address mapping significantly reduces the amount of metadata needed to track LTP mappings.

[0020] An asynchronous power failure (APL) occurs when a memory device is operational and unexpectedly loses power. Memory devices are designed to handle APL events so as not to lose data stored in volatile memory. Common techniques include taking snapshots of the data structure stored in volatile memory, journaling metadata to capture recent changes to the data structure, and immediately clearing the journal after an APL is detected so that the data structure can be reconstructed. The concept of journaling is to buffer metadata in a smaller data structure that can be used to reconstruct a larger data structure. Clearing is the action of writing data to non-volatile memory (NVM) immediately after a power failure to preserve the data.

[0021] Conventional memory devices handle APL (Abandoned Probability of Plug-in) in different ways to try to balance the various characteristics of APL, such as the amount of data wiped to the NVM, the number of power capacitors required to retain volatile memory data, startup and APL repair time, and write amplification involved in backing up data (e.g., taking snapshots and wiping data). Traditional memory devices rely on taking snapshots of the logical-to-physical (LTP) mapped data structure and continuously wiping numerous logs to ensure data consistency after an APL. This involves techniques such as scanning open block sets (e.g., block stripes) and repairing open block sets.

[0022] Given the sequential nature of writes to NVM devices, the mapping in ZNS-based memory subsystems can be simplified in a way that simplifies APL design and technology to ensure consistent recovery and repair of data structures as needed. For example, host write patterns are sequential within zones and atomic write units are used to guarantee sequential writing of block data. Additionally, the use of power capacitors allows for the flushing of a certain amount of host data after an APL event, depending on the number of power capacitors deployed. Furthermore, the mapped data structure stores the sequential mapping of sequentially written zones at a larger granularity, allowing for a smaller mapped data structure.

[0023] Even with the advantages associated with ZNS, the number of active regions requested by ZNS clients further complicates APL design. Active regions are open and have sequentially increasing write pointers, while the remainder of the region (e.g., non-active regions) has non-moving write pointers. This makes handling APL particularly challenging when using traditional techniques such as snapshots, journaling, and scanning to determine the last write position of multiple active regions. Additionally, continuous snapshot and journal flushing increases write amplification for data blocks that are not currently being actively modified.

[0024] This disclosure addresses the above and other shortcomings by employing a High Frequency Update Table (HFUT) and a journal data structure to consistently track metadata indicating changes to the mapped data structure stored in volatile memory. The HFUT, and possibly the journal data structure, can be stored in tightly coupled memory (TCM) and thus can be updated quickly, improving performance. The HFUT can be used to track write pointers and optionally also the indices corresponding to write pointers in the active region being written to, regardless of whether it is in LBA space or physical address space. Because the HFUT is updated only for write pointers in the active region, it is made smaller than the additional storage space originally required to maintain all write pointers in the mapped data structure. Therefore, the use of the HFUT reduces the size of the mapped data structure, making it reasonable to flush the mapped data structure in response to APL events and minimizing its impact on power capacitors and write amplification.

[0025] For example, in one embodiment, the mapping data structure is a zone mapping data structure that maps zones in the LBA space to zone states and to zone indices within the LBA space. In this embodiment, write pointers may correspond to zone write pointer commit values ​​and zone write pointer complete values. In this embodiment, the HFUT may be a table of active zones that stores the zone write pointer commit values ​​and zone write pointer complete values ​​for each active zone.

[0026] In another embodiment, the mapping data structure is a Zone-to-Block Set (ZTBS) data structure that maps zone identifiers to block set identifiers. In this embodiment, the write pointer is a value associated with the location in the NVM device corresponding to a write operation within the active zone, and therefore points to the physical address space. The HFUT may be a Write Tracker Table (WTT) that stores the last written page (LWP) value of the NVM device corresponding to the write pointer.

[0027] In these embodiments, a state change in the active region and a state change in the write pointers pointing to the active region are cleared when a transition occurs between the mapped data structure and the HFUT. These changes cause updates within the journal data structure during the clear transition between the mapped data structure and the high-frequency update table. The journal data structure is cleared in response to an APL event. As discussed, the HFUT and the mapped data structure can also be cleared. In response to power-on after an APL event, the memory subsystem can perform recovery and reconstruction of the mapped data structure by accessing the journal data structure and the HFUT indexed by the mapped data structure. Different methods and algorithms for performing such recovery and reconstruction are discussed below.

[0028] The advantages of this disclosure include, but are not limited to, benefits in at least three categories: runtime benefits, setup time benefits (e.g., time to reoperability after power-on), and benefits in terms of the amount of data flushed in response to an APL event. Regarding runtime benefits, continuous journal flushing and snapshots of the mapped data structure (e.g., base table) are not required because data in the mapped data structure is not frequently updated. Regarding setup time benefits, rebuilding the mapped data structure does not require scanning, journal replay time is minimized, and write error detection can be performed via the data structure (containing the HFUT). Regarding the amount of data flushed, it is possible to flush the entire mapped data structure indexed into the HFUT. Furthermore, with the overall reduction in the amount of data flushed in response to an APL event, write amplification and the need for power capacitors are minimized. Those skilled in the art will appreciate other advantages of the memory allocation and APL design handling within the memory subsystem discussed below.

[0029] Figure 1A This description describes an example computing system 100 including a memory subsystem 110 according to some embodiments of the present disclosure. The memory subsystem 110 may include media, such as one or more volatile memory devices (e.g., storage device 140), one or more non-volatile memory devices (e.g., storage device 130), or a combination thereof. Each storage device 130 or 140 may be one or more memory components.

[0030] The memory subsystem 110 may be a storage device, a memory module, or a combination of both. Examples of storage devices include solid-state drives (SSDs), flash drives, universal serial bus (USB) flash drives, embedded multimedia controller (eMMC) drives, universal flash memory (UFS) drives, secure digital cards (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).

[0031] The computing system 100 may be a computing device, such as a desktop computer, laptop computer, web server, mobile device, vehicle (e.g., airplane, drone, train, car or other means of transport), Internet of Things (IoT) enabled device, embedded computer (e.g., computer contained in a vehicle, industrial equipment or networked commercially available device), or such computing device that includes memory and processing power.

[0032] 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 different types of memory subsystems 110. Figure 1A This describes an example of a host system 120 coupled to a memory subsystem 110. As used herein, “coupled to…” or “coupled with…” generally refers to a connection between components or devices, which can be an indirect or direct communication connection (e.g., without an intervening component or device), whether wired or wireless, including connections such as electrical, optical, and magnetic connections.

[0033] 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). Host system 120 uses, for example, memory subsystem 110 to write data to and read data from memory subsystem 110.

[0034] Host system 120 can be coupled to memory subsystem 110 via a physical host interface that can communicate on a system bus. Examples of physical host interfaces include, but are not limited to, Serial Advanced Technology Attachment (SATA) interfaces, Peripheral Component Interconnect High Speed ​​(PCIe) interfaces, Universal Serial Bus (USB) interfaces, Fibre Channel, Serial Attached SCSI (SAS), Dual Data Rate (DDR) memory bus, Small Computer System Interface (SCSI), Dual In-line Memory Module (DIMM) interfaces (e.g., DIMM socket interfaces supporting Dual Data Rate (DDR)), Open NAND Flash Interface (ONFI), Dual Data Rate (DDR), Low Power Dual Data Rate (LPDDR), or any other interface. The physical host interface can be used to transmit data between host system 120 and memory subsystem 110. When memory subsystem 110 is coupled to host system 120 via a PCIe interface, host system 120 can further utilize an NVM High Speed ​​(NVMe) interface to access memory components (e.g., memory device 130). The physical host interface provides an interface for transmitting control, address, data and other signals between the memory subsystem 110 and the host system 120. Figure 1A The memory subsystem 110 is described as an example. Generally, the host system 120 can access multiple memory subsystems via the same communication connection, multiple separate communication connections, and / or a combination of communication connections.

[0035] Memory devices 130 and 140 may comprise 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).

[0036] Some examples of non-volatile memory devices (e.g., memory device 130) include NAND flash memory and in-place write memory, such as three-dimensional crosspoint (“3D crosspoint”) memory. The crosspoint array of non-volatile memory can be combined with a stackable cross-grid data access array to perform bit storage based on changes in volume resistance. Furthermore, compared to many flash-based memories, crosspoint non-volatile memory can perform in-place write operations, where non-volatile memory cells can be programmed without pre-erasing them. NAND flash memory includes, for example, two-dimensional NAND (2D NAND) and three-dimensional NAND (3D NAND).

[0037] Each of the memory devices 130 may include one or more arrays of memory cells. 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 cell (MLC), three-level cell (TLC), and four-level cell (QLC), may store multiple bits per cell. In some embodiments, each of the memory devices 130 may include one or more arrays of memory cells, such as SLC, MLC, TLC, QLC, or any combination of such arrays. In some embodiments, a particular memory device may include an SLC portion of memory cells, as well as an MLC portion, a TLC portion, or a QLC portion. The memory cells of the memory device 130 may be grouped into pages, which may refer to logical cells of the memory device used to store data. For some types of memory (e.g., NAND), pages may be grouped to form blocks.

[0038] While non-volatile memory components, such as NAND flash memory (e.g., 2D NAND, 3D NAND) and 3D cross-point non-volatile memory cell arrays, are described, memory device 130 may be based on any other type of non-volatile memory, such as read-only memory (ROM), phase-change memory (PCM), select 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 bridged RAM (CBRAM), resistive random access memory (RRAM), oxide-based RRAM (OxRAM), NOR flash memory, and electrically erasable programmable read-only memory (EEPROM).

[0039] The memory subsystem controller 115 (for simplicity, controller 115) can communicate with the memory device 130 to perform operations, such as reading data, writing data, erasing data, and other such operations at the memory device 130. The memory subsystem controller 115 may include hardware, such as one or more integrated circuits and / or discrete components, buffer memories, or combinations thereof. The hardware may include a digital circuit system with dedicated (i.e., hard-decoded) logic to perform the operations described herein. The memory subsystem controller 115 may be a microcontroller, a dedicated logic circuit system (e.g., a field-programmable gate array (FPGA), an application-specific integrated circuit (ASIC), etc.), or other suitable processor.

[0040] The memory subsystem controller 115 may include a processor 117 (e.g., a processing device) configured to execute instructions stored in local memory 119. In the illustrated example, the local memory 119 of the memory subsystem controller 115 includes embedded memory configured to store instructions for performing various processes, operations, logic flows, and routines that control the operation of the memory subsystem 110, including handling communication between the memory subsystem 110 and the host system 120.

[0041] In some embodiments, local memory 119 may include memory registers storing memory pointers, fetched data, etc. Local memory 119 may also include read-only memory (ROM) for storing microcode. Although in Figure 1A The instance memory subsystem 110 has been described as including a memory subsystem controller 115, but in another embodiment of this disclosure, the memory subsystem 110 does not include a memory subsystem controller 115, but instead may rely on external control (e.g., provided by an external host or by a processor or controller separate from the memory subsystem).

[0042] Typically, the memory subsystem controller 115 receives commands or operations from the host system 120 and translates these commands or operations into instructions or appropriate commands to perform the desired access to the memory device 130. The memory subsystem controller 115 may handle other operations such as wear leveling, garbage collection, error detection and error correction (ECC) operations, encryption, caching, and address translation between logical addresses (e.g., logical block addresses, namespaces) and physical addresses (e.g., physical block addresses) associated with the memory device 130. The memory subsystem controller 115 may additionally include a host interface circuitry for communicating with the host system 120 via a physical host interface. The host interface circuitry can translate commands received from the host system into instructions for accessing the memory device 130, and translate responses associated with the memory device 130 into information for the host system 120.

[0043] The memory subsystem 110 may also include additional circuitry or components not described. In some embodiments, the memory subsystem 110 may include caches or buffers (e.g., DRAM) and address circuitry (e.g., row decoders and column decoders) that can receive addresses from the memory subsystem controller 115 and decode the addresses to access the memory device 130.

[0044] In some embodiments, memory device 130 includes a local media controller 135, which operates in conjunction with memory subsystem controller 115 to perform operations on one or more memory cells of memory device 130. An external controller (e.g., memory system controller 115) may externally manage memory device 130 (e.g., perform media management operations on memory device 130). In some embodiments, memory device 130 is a managed memory device, which is a raw memory device combined with a local controller (e.g., local media controller 135) for memory management within the same memory device package or memory die. An example of a managed memory device is a managed NAND (MNAND) device.

[0045] In some embodiments, controller 115 includes an error correction code (ECC) encoder / decoder 111. The ECC encoder / decoder 111 can perform ECC encoding on data written to memory device 130 and ECC decoding on data read from memory device 130. ECC decoding can be performed to decode ECC codewords to correct errors in the original read data, and in many cases, it also reports the number of bit errors in the original read data.

[0046] Figure 1B An embodiment is shown. Figure 1A Additional details of the memory subsystem 110 are provided. In embodiments, the memory subsystem 110 also includes different types of volatile memory 118 to accelerate memory management and facilitate access to host data stored in memory devices 130 and 140. In various embodiments, the volatile memory includes memory device 140A, tightly coupled memory (TCM) 160, and volatile memory device 125. In some embodiments, the controller 115 includes multiple portions (or multiple separate processing devices) of a processing device within the processor 117, including a command generation processor 112, a translation processor 113, and a command execution processor 114.

[0047] In various embodiments, memory device 140A is volatile memory, such as DRAM or other main memory, storing region descriptor data structure 121 and block set mapping data structure 123, because these data structures are typically too large to be stored on controller 115. Processor 117 may additionally include TCM 160, which is a volatile memory that can be used as a cache and resides on the die of processor 117. TCM 160 may store each high-frequency update table (HFUT) 162 and also stores each journal data structure 166. Controller 115 may additionally include volatile memory device 125, such as static random access memory (SRAM) device, which is a separate memory die located on controller 115. Volatile memory device 125 may store logic-to-physical (LTP) mapped data structures, such as mapped data structure 126, and optionally also stores one or more journal data structures 166 if they are too large to be stored in TCM 160 in a particular design. In various embodiments, processor 117 may determine the location of high-frequency update table 162 in volatile memory based on identifiers stored in association with the corresponding mapped data structure 126. (See reference...) Figure 2 Some mapping data structures are discussed in more detail 126, including block set mapping data structures 123.

[0048] Furthermore, as previously discussed with reference to one or more memory devices 130, 140, the physical address spaces of multiple dies (e.g., die A and die B) can be organized hierarchically by planes, blocks, and pages. Thus, for example, each of die A and die B may contain plane A and plane B, and each of plane A and plane B may contain block A and block B. A block set (or block stripe) may be defined as a group of blocks arranged in a plane across multiple dies of the memory device. As illustrated, block set 144 is arranged to contain block A of plane A of die A, block A of plane B of die B, and so on, down to plane C of die C and blocks of planes of other dies (if present and online).

[0049] In various embodiments, the translation processor 113 (and / or a dynamic data placer of the controller 115 coupled to the translation processor 113) dynamically determines the media layout to place data associated with logical addresses in the media cells or memory components (also referred to as "IC dies" or "media") of the memory devices 130, 140. The media layout specifies the mapping between logical addresses used in commands received in the memory subsystem 110 (e.g., from the host system 120) and physical memory locations in the media of the memory subsystem 110.

[0050] Translation processor 113 may, for example, determine a portion of the logical address space for the LBA space based on the availability of media for writing, programming, storing, and committing data during input / output scheduling in memory subsystem 110, to place data at logical addresses associated with the physical addresses of the media in memory devices 130 or 140. When the IC die (containing media cells within the IC die) is available for committing / programming data, a write command is scheduled for execution in memory subsystem 110; and translation processor 113 generates a portion of the media layout for the write command and maps the logical addresses used in the write command to memory locations within the IC die. Execution of the write command causes memory subsystem 110 to commit / program the data associated with the write command to the IC die.

[0051] Depending on the availability of IC dies for the media and / or application across the sequential mapping scheme, controller 115 may sequentially write data groups (e.g., provided in sequential data stream locality) to fill one IC die at a time, or may sequentially write to multiple IC dies in parallel at once, such as to fill IC dies for the media simultaneously. Mapping within regions of the LBA space can also be performed sequentially to simplify the calculations used to perform the mapping, as will be discussed in more detail with reference to mapping data structure 126. When multiple IC dies are available, logical addresses (e.g., LBAs) used in commands from multiple write streams can be mapped to the multiple IC dies respectively through dynamically generated portions of the media layout, ensuring no media access conflicts occur during the execution of commands from multiple write streams.

[0052] In various embodiments, command generation processor 112 performs command processing, including processing memory commands received from host system 120, and also generating read commands and write commands based on read and write requests received respectively from host system 120 or another request agent. Translation processor 113 uses mapping data structure 126 to translate LBAs (or sequential groups of LBAs, referred to as Logical Transfer Units (LTUs)) to physical addresses in the physical address space. This translation facilitates the generation of commands by command generation processor 112 to command execution processor 114, which executes the commands via media accessing memory devices 130 and 140. The commands may include command tags, also referred to as system tags (e.g., Systags), which contain an LTU identifier (associated with the LTU) and a buffer address identifying a buffer (e.g., a slot in memory device 140A) where data associated with the translation unit is stored, as in a cache. Command execution processor 114 can retrieve data associated with a command tag from memory device 130 or 140 and store the data in an identified buffer.

[0053] In this manner, the translation processor 113 acts as an intermediary between the command generation processor 112 and the command execution processor 114, where the command execution processor 114 needs to know the physical address of the physical layer's implementation command. In this disclosure, metadata associated with writing to the active area (e.g., write pointers and / or corresponding index information) can be updated within the HFUT 162 and recorded in a journal data structure 166 to facilitate response to APL events.

[0054] Figure 2 This is a block diagram illustrating instances of data structures configured to support region-based mappings, according to various embodiments. Controller 115 can... Figure 2 Some of the mapped data structures 126 described herein are stored in TCM 160, volatile memory device 125, and / or memory device 140A, as shown in the reference. Figure 1B As mentioned. Controller 115 can also be used. Figure 2 The data structure configuration or implementation of media layout (e.g., the layout in which data groups of a region will reside within the physical address space). In Figure 2 In this context, the zone mapping data structure 201 is configured to provide media layout information for zones in a namespace, such as an LBA space used for ZNS operations. The zone mapping data structure 201 may have multiple entries. Each zone mapping entry in the zone mapping data structure 201 identifies information about the zone, such as the zone's starting LBA address 211, the zone's block set identifier 213, the zone's zone cursor value 215, the zone's state 217, etc.

[0055] Host system 120 begins writing data into the region at the LBA of the region's starting LBA address 211. Host system 120 sequentially writes data into the region within the LBA space. After a certain amount of data has been written into the region, the region cursor value 215 identifies the current starting LBA address for writing subsequent data. For each write command to the region, the region cursor value 215 is moved to a new starting LBA address for the next write command to the region. State 217 may have values ​​indicating whether the region is empty, full, implicitly open, explicitly open, closed, etc., to track the progress of writing to the region.

[0056] exist Figure 2In this context, the Logical-to-Physical (LTP) block mapping data structure 203 is configured to facilitate the translation of LBA addresses to physical addresses in the media. The LTP block mapping data structure 203 may have multiple entries. An LBA can be used as or converted into an index (e.g., an LTU identifier) ​​for entries in the LTP block mapping data structure 203. The index can be used to look up entries for the LBA. Each entry in the LTP block mapping data structure 203 identifies the physical address of a memory block in the media for the LBA. For example, the physical address of a memory block in the media may include a die identifier 233, a block identifier 235, a page mapping entry identifier 237, a page identifier 251, and so on. The die identifier 233 identifies a specific IC die (e.g., die A or die B) in the memory devices 130, 140 of the memory subsystem 110. The block identifier 235 identifies a specific memory block (e.g., NAND flash memory) within the IC die identified using the die identifier 233. Page mapping entry identifier 237 identifies entries in page mapping data structure 205.

[0057] Page mapping data structure 205 may have multiple entries. Each entry in the page mapping may contain a page identifier 251 that identifies a memory cell page within a memory cell block (e.g., a NAND memory cell). For example, page identifier 251 may contain the page's word line number and the page's sub-block number within the NAND memory cell block. Furthermore, the page entry may contain the page's programming mode 253. For example, the page may be programmed in SLC mode, MLC mode, TLC mode, or QLC mode. When configured in SLC mode, each memory cell in the page stores one data bit. When configured in MLC mode, each memory cell in the page stores two data bits. When configured in TLC mode, each memory cell in the page stores three data bits. When configured in QLC mode, each memory cell in the page stores four data bits. Different pages in an integrated circuit die may have different modes for data programming.

[0058] exist Figure 2 In this context, the block set mapping data structure 123 represents the data control aspect of the dynamic media layout of the storage area. In one embodiment, the block set mapping data structure 123, which may be a table, may have multiple entries. Each block set entry in the block set mapping data structure 123 identifies the number / count 271 of the integrated circuit dies (e.g., dies A and dies B) where data for the area is stored. For each of the integrated circuit dies used for the area, the block set entry of the block set mapping data structure 123 has a die identifier 273, a block identifier 275, a page mapping entry identifier 277, a page mapping offset value, and so on.

[0059] Die identifier 273 identifies a specific IC die (e.g., die A or die B) in the media of memory subsystem 110, on which subsequent data of the IC die area can be stored. Block identifier 275 identifies a specific memory block (e.g., NAND flash memory or other media) within the IC die identified using die identifier 273, in which subsequent data of the area can be stored. Page mapping entry identifier 277 identifies page mapping entries in page mapping data structure 205, which identify pages that can be used to store subsequent data of the area.

[0060] For example, memory subsystem 110 receives multiple write command streams. In one embodiment, each corresponding stream of the multiple streams is configured to sequentially write data in a logical address space in one embodiment; and in another embodiment, the streams of the multiple streams are configured to pseudo-sequentially or randomly write data in a logical address space in one embodiment. Each write stream contains a set of commands annotated to group datasets together for writing, fine-tuning, or rewriting. Within the group, data may be written sequentially, randomly, or pseudo-sequentially in the logical space. Preferably, data in the group is written to an erase block set, wherein memory cells in the erase block set store data for the stream but not data from other streams. The erase block set can be erased to remove data from the stream without erasing data from other streams.

[0061] For example, each element in the write stream is allowed to be written sequentially to an LBA in a region of the namespace allocated in the media of the memory devices 130, 140 of the memory subsystem 110, but writing data out of order in the LBA (or logical address) space is prohibited. The translation processor 113 of the memory subsystem 110 identifies multiple media units in the memory subsystem 110 that can be used to write data simultaneously.

[0062] Translation processor 113 can select a first command from multiple streams for simultaneous execution in multiple media units available for writing data. Translation processor 113 can dynamically generate and store a portion of a media layout in response to the selection of the first command for simultaneous execution in multiple media units, which maps a logical address identified by the first command in the logical address space to the physical address of a memory unit in the multiple memory units.

[0063] The command execution processor 124 can simultaneously execute the first command by storing data into memory cells according to physical addresses. For example, while scheduling the execution of the first command, execution of the second command may be in progress within a subset of the memory cells of the media in the memory subsystem 110. Therefore, the subset of memory cells used to execute the second command is unavailable for the first command. After scheduling the first command and determining a portion of the media layout containing the logical addresses used in the first command, the first command can be executed concurrently across multiple media cells and / or concurrently with the execution progress of the second command in the remaining media cells of the memory subsystem 110.

[0064] For example, after identifying multiple memory cells (e.g., IC dies) that can be used to execute the next command, the translation processor 113 can identify the physical address from the block set mapping data structure 123 that can be used to store data for the next command. The physical address can be used to update the corresponding entry in the LTP block mapping data structure 203 for the LBA address 231 used in the next command.

[0065] For example, when the IC die is available for writing data, the translation processor 113 can determine the command for a region that can be written to / programmed into the memory cell of the IC die. Based on the block set mapping data structure 123, the translation processor 113 locates the entry for the region, locates the block identifier 275 and page mapping entry identifier 277 associated with the IC die identifier 273, and uses the die identifier 273, block identifier 275, and page mapping entry identifier 277 to update the corresponding fields of the LBA entries used in the region-specific command in the LTP block mapping data structure 203.

[0066] Figure 3 This is a block diagram of a mapping data structure 326 indexed within a high-frequency update table (HFUT) 362 according to one embodiment. The mapping data structure 326 (e.g., a base table) may be one of the mapping data structures 126, and the HFUT 362 may be... Figure 1B One of the HFUTs 162. In various embodiments, the mapping data structure 326 contains multiple entries, each containing entry data associated with some aspect of the logical-to-physical translation between the physical address space of the LBA (or LTU) and the NVM device. Each entry may also contain an index value (IDX) pointing to a warp-indexed entry in the HFUT 362, such that metadata within the HFUT entry is associated with the entry in the mapping data structure 326. For example, the index value may be a hash-based value. In some embodiments, the mapping data structure includes a first-in-first-out (FIFO) buffer 332 to maintain those table index values ​​that have been released for assignment to the HFUT 362.

[0067] In various embodiments, HFUT 362 is designed to store (e.g., buffer) frequently updated data, such as write pointers (WPs) for mapping to smaller areas, which can be flushed during APL events that cause a power failure. For example, to maintain 2048 open cursor values ​​at 4 bytes per entry, HFUT 362 corresponds to a metadata size of 8 KB. This is much smaller than containing write pointer metadata in a single large table (e.g., mapping data structure 326). Calculating this memory savings demonstrates nearly half the size of mapping data structure 326, for example, the nearly half size could be a region mapping data structure 201 or a region-to-block set data structure ( Figure 4 (referring to 409 in the original text). This is possible because items such as write pointers or last written pages (LWPs) are not updated when a region or block set is closed. In other words, there is no need to update static metadata values ​​within HFUT 362, which makes the table much smaller. As an example, in a system with 30K regions in a 16-gigabyte drive, the memory savings are significant. Only about seven percent of the time is actively written to this drive.

[0068] To prevent scans other than those performed during abnormal recovery work following an APL event, a clear transition between the journal data structure and the mapping data structure 326 and HFUT 362 is used, referencing... Figure 4 This will be discussed in more detail. This is accomplished by assigning index values ​​(IDX) to entries in the mapping data structure 326, so that the journal entries can also be indexed against the metadata in the entries of HFUT 362. The performance impact of performing this index is minimal compared to the benefits of entering and journaling much smaller amounts of data related to the active zone.

[0069] Figure 4This is a block diagram of a mapping data structure 126 that employs journaling and a high-frequency update table according to various embodiments to reduce the size of the mapping data structure 126 and allow for flushing in response to an asynchronous power failure (APL). For example, the mapping data structure 126 may include a zone descriptor data structure 121 and a zone mapping data structure 201 managed by a command-generating processor 112. A zone mapping journaling data structure 166A may be a journal entry based on updates to the zone descriptor data structure 121 and based on a flush transition between the zone mapping data structure 201 and an active zone table 162A, which is a high-frequency update table (HFUT) associated with the zone mapping data structure 201. The processor 117 may determine the location of the high-frequency update table 162 (e.g., active zone table 162A) in the TCM 160 based on an identifier stored in volatile memory device 125 in association with the zone mapping data structure 201. In one embodiment, the zone mapping journaling data structure is flushed only in response to an APL event. The data can be cleared during and in response to an APL event by writing the data retained using power capacitors to the non-volatile memory (NVM) devices of memory devices 130 and 140.

[0070] In one embodiment, the zone descriptor data structure 121 is a flat indexed mapping table hashed by a zone ID (e.g., a hash value of the zone ID), where the zone ID is a value much larger than the LTU identifier. The zone ID can be calculated from the LTU identifier and the zone size value, for example, by partitioning the LTU identifier value by the zone size value. The term "flat" refers to a two-dimensional hashed index table, such as a tree or linked list. The zone descriptor data structure 121 may store zone descriptor data sent from the host system 120 to the controller 115.

[0071] In one embodiment, the zone mapping data structure 201 is a flat indexed mapping table indexed based on a hash zone ID (e.g., a value much larger than the LTU identifier). Each entry in the zone mapping data structure 201 may contain metadata containing the zone status and zone index within the LBA space. In one embodiment, the metadata includes a zone write pointer commit value and a zone write pointer complete value. These values ​​may be written simultaneously and after the operation to write to the zone identified by the zone ID is completed. The zone mapping data structure 201 may be small enough, especially when using the active zone table 162A, so that it can be cleared during APL events if the data in the zone mapping data structure 201 does not change frequently.

[0072] In various embodiments, the active zone table 162A stores the zone write pointer commit value and zone write pointer complete value for open zones. The zone mapping journal data structure 166A can therefore record (e.g., in journal form) the clearing transitions of these values ​​between the zone mapping data structure 201 and the active zone table 162A. In this way, each write is updated in the active zone table 162A for zones in an active state. After an APL event, the active zone table 162A is immediately cleared, and therefore its information (on the current write operation) does not need to be logged in the zone mapping journal data structure 166A until the write operation is complete. This design allows for a manageable journal size so that the zone mapping journal data structure 166A can be cleared only in the event of a power failure, rather than being cleared continuously.

[0073] In some embodiments, after the write operation to the zone is completed, the controller 115 may immediately populate the entry of the zone mapping data structure 201 with the mapping between the zone identifier and the zone index upon a write request to the zone. The controller 115 may also deactivate the zone in the zone mapping data structure 201 to indicate that the zone is closed.

[0074] Controller 115 may additionally perform recovery and rebuild after a reboot, including reading journal data structures (e.g., zone mapping journal 166A) from the NVM device back into volatile memory (e.g., TCM 160). Controller 115 may additionally read high-frequency update tables (e.g., active zone table 162A) from the NVM device back into volatile memory (e.g., TCM 160). Controller 115 may additionally update entries in zone mapping data structure 201 based on metadata in the journal data structures and the zone write pointer of the last record in the high-frequency update tables.

[0075] Short-term replays of entries in the zone mapping journal data structure 166A can be controlled via version or timestamp. Replaying an entry means reading it back into volatile memory, such as reading it back into TCM 160 in this embodiment. These updates can also be applied to snapshots of the zone descriptor data structure 121, for example, updating the zone mapping journal data structure 166A using zone descriptors stored in the zone descriptor data structure 121. Thus, the active zone table 162A can be restored from the NVM device to volatile memory at the exact values ​​up to the time the APL event occurred. The zone mapping journal data structure 166A can check for errors requiring repair operations by simply going through each HFUT entry (of the active zone table 162A) and comparing the commit pointer value and the completion pointer value.

[0076] Therefore, in one embodiment, controller 115 may identify errors in the region mapping data structure 201 during rebuilding after a reboot, including reading the active region table 162A back from the NVM device to volatile memory. Controller 115 may additionally compare the region write pointer commit values ​​in entries of region mapping data structure 201 with corresponding values ​​in entries of active region table 162A and compare the region write pointer complete values ​​in entries of region mapping data structure 201 with corresponding values ​​in entries of active region table 162A. Any errors may be corrected with reference to active region table 162A, and if errors still occur, controller 115 may initiate a full scan.

[0077] Mapping data structure 126 may additionally include a zone-to-block set (ZBTS) data structure 409, a block set mapping data structure 123, and a write order data structure 410, all managed by command execution processor 113. Translation mapping journal data structure 166B may journal entries based on updates to block set mapping data structure 123 and based on a flush transition between ZTBS data structure 409 and write tracker table 162B, which is a high-frequency update table (HFUT) associated with ZTBS data structure 409. Z2BT data structure 409 may be small enough, especially when using write tracker table 162B, to be flushed during APL events, but the ability to flush using power capacitors depends on the specific design of the write granularity.

[0078] In one embodiment, the block set mapping data structure 123 is a flat indexed mapping table indexed based on block set IDs (e.g., block stripe IDs). The block set mapping data structure 123 can map from block set IDs to physical blocks (e.g., physical block addresses or identifiers) within each die of the media. In one embodiment, the ZTBS data structure 409 is a flat indexed mapping table indexed based on hash region ID values ​​(e.g., values ​​much larger than the LTU identifier value). In one embodiment, the translation processor 113 manages the ZTBS data structure 409. The ZTBS data structure 409 can map region IDs to block set identifiers (IDs) (e.g., block stripe numbers) of the block set where the identification data resides.

[0079] In one embodiment, the write order data structure 210 is a flat index mapping table indexed based on hash LTU identifiers or LBA values. The write order data structure 210 can track the location of writes to the physical addresses of memory devices 130 and 140 to ensure that writes are made sequentially to the physical addresses in accordance with the ZNS protocol.

[0080] In various embodiments, the write tracker table 162B stores the last written page (LWP) in the NVM device and can be cleared only in response to an APL event. The translation-mapped journal data structure 166B can therefore record (e.g., in journal form) the clearing transitions of these LWP values ​​between the ZTBS data structure 409 and the write tracker table 162B. In this way, each write is updated in the write tracker table 162B for the active region. After an APL event, the write tracker table 162B is immediately cleared, and therefore its information (on the current write operation) does not need to be logged in the translation-mapped journal data structure 166B until the write operation is complete. This design allows for a manageable journal size so that the journal-mapped journal data structure 166B can be cleared only in the event of a power failure, rather than continuously.

[0081] In some embodiments, after the write operation to the region is completed, the controller 115 may immediately, upon a write request to the active region, fill an entry in a mapping data structure (e.g., ZTBS data structure 409) with the mapping between the corresponding LBA space and the corresponding physical address space. The controller may also, in the mapping data structure, deactivate the active region to close it.

[0082] Controller 115 may additionally perform recovery and reconstruction after a reboot, including reading the journal data structure (e.g., translating the mapped journal data structure 166B) from the NVM device back into volatile memory (e.g., TCM 160). Controller 115 may additionally read the high-frequency update table (e.g., write tracker table 162B) from the NVM device back into volatile memory (e.g., TCM 160). Controller 115 may additionally update entries in the mapped data structure based on metadata in the journal data structure and the write pointer of the last record in the high-frequency update table.

[0083] Short-term replays of entries in the translation mapping journal data structure 166B can be controlled via versioning or timestamps. Replaying an entry means reading it back into volatile memory, such as reading it back into TCM 160 in this embodiment. These updates can also be targeted at snapshots of the block set mapping data structure 123, for example, updating the translation mapping journal data structure 166B by updating the block set mapping data structure 123. Thus, the write tracker table 162B can be restored from the NVM device to volatile memory at the exact values ​​up to the time the APL event occurred. The translation mapping journal data structure 166B can check for errors requiring repair operations by only going through each HFUT entry (of the write tracker table 162B) and ensuring that the LWP values ​​are in the expected order determined by the write order data structure 410.

[0084] Therefore, in one embodiment, controller 115 can perform post-power-on recovery and reconstruction after an APL event by first reading the write tracker table 162B from the NVM device back into volatile memory. Controller 115 can additionally read the ZTBS data structure 409 and the write order data structure 410 from the NVM device back into volatile memory. Controller 115 can additionally determine whether the LWP values ​​contained in the write tracker table 162B are in the order ordered in the write order data structure 410. Controller 115 can additionally update the ZTBS data structure according to the LWP values ​​in response to a detected error.

[0085] Figure 5 This is a flowchart of a method 500 for efficiently handling APL within a sequentially programmed memory subsystem according to an embodiment. Method 500 can be executed by processing logic, which may include hardware (e.g., processing device, circuit system, dedicated logic, programmable logic, microcode, device hardware, integrated circuit, etc.), software (e.g., instructions that run or execute on the processing device), or a combination thereof. In some embodiments, method 500 is performed by… Figure 1A-1B The controller 115 (e.g., processor 117) executes the process. Although shown in a specific order or sequence, the order of the processes may be modified unless otherwise specified. Therefore, it should be understood that the illustrated embodiments are merely examples, and the illustrated processes may be performed in different orders, and some processes may be performed in parallel. In addition, one or more processes may be omitted in various embodiments. Therefore, not all processes are required in every embodiment. Other process flows are also possible.

[0086] The processing logic can store a mapped data structure in volatile memory communicatively coupled to a non-volatile memory (NVM) device. This mapped data structure maps each region of the Logical Block Address (LBA) space to a corresponding physical address space of the NVM device. Each region may contain multiple sequential LBAs mapped to multiple sequential physical addresses. The processing logic can also store a log data structure and a high-frequency update table (HFUT) in volatile memory. The volatile memory may be a combination of a TCM 160 and a volatile memory device 125, as referenced. Figure 1B The journal data structure may be one of the following: a zone-mapped journal data structure 166A, a translation-mapped journal data structure 166B, or another journaling device. The HFUT may be one of the following: an active zone table 162A, a write tracker table 162B, or another HFUT structure.

[0087] At operation 520, the processing logic responds to a write request by writing to a scoped region in the LBA space, which is mapped within a mapped data structure to the corresponding physical address space of the non-volatile memory (NVM) device. As discussed, command generation processor 112 may generate a command containing a command tag with a physical address to which command execution processor 114 will begin writing. This physical address will be associated with a write pointer that can be tracked as the scoped region is written sequentially.

[0088] At operation 530, the processing logic writes a write pointer value into an entry in a high-frequency update table stored in volatile memory. This write pointer is for a location in the NVM device corresponding to a write within the active region. If the write pointer is stored in the active region table 162A, it can be a region write pointer associated with the LBA space. If the write pointer is stored in the write tracker table 162B, it can be a physical write pointer pointing to the physical address space of the NVM device.

[0089] At operation 540, the processing logic writes the table index value, which points to the entry in the frequently updated table, into the entry of the mapped data structure. (See reference) Figure 3 This paper discusses how this index is implemented, and how this method enables the journal data structure to track the flush transitions between the mapping data structure and the HFUT.

[0090] At operation 550, the processing logic updates the metadata of at least one entry in the mapping data structure or the high-frequency update table that is affected by the clear transition between the mapping data structure and the high-frequency update table, within the journal data structure stored in volatile memory. This clear transition can occur after the write operation is complete, and therefore, it is not necessary to record the write pointer in journal form before such a write operation is completed.

[0091] At operation 560, in response to an Asynchronous Power-Down (APL) event, the processing logic flushes the journal data structure and the high-frequency update table to the NVM device. In one embodiment, the processing logic may also flush the mapping data structure to the NVM device. Because these data structures and the HFUT have been flushed, they can be replayed and made available for reference immediately after the memory device restarts. Figure 4 The discussed mapping data structure is used during recovery and reconstruction, and will be referenced. Figure 7 and Figure 8 To elaborate further.

[0092] Figure 6This is a flowchart of a method 600 for efficiently handling APL within a sequentially programmed memory subsystem according to another embodiment. Method 600 can be executed by processing logic, which may include hardware (e.g., processing device, circuit system, dedicated logic, programmable logic, microcode, device hardware, integrated circuit, etc.), software (e.g., instructions that run or execute on the processing device), or a combination thereof. In some embodiments, method 600 is performed by… Figure 1A-1B The controller 115 (e.g., processor 117) executes the process. Although shown in a specific order or sequence, the order of the processes may be modified unless otherwise specified. Therefore, it should be understood that the illustrated embodiments are merely examples, and the illustrated processes may be performed in different orders, and some processes may be performed in parallel. In addition, one or more processes may be omitted in various embodiments. Therefore, not all processes are required in every embodiment. Other process flows are also possible.

[0093] The processing logic may store a zone mapping data structure 201 in volatile memory communicatively coupled to a non-volatile memory (NVM) device. The zone mapping data structure 201 maps zones in a logical block address (LBA) space to zone states within the LBA space and to zone indices. For example, a zone may be multiple sequential LBAs mapped to multiple sequential physical addresses. The processing logic may also store a log data structure and a high-frequency update table in volatile memory. The volatile memory may be a combination of a TCM 160 and a volatile memory device 125, as referenced. Figure 1B The diary data structure can be a zone-mapped diary data structure 166A or one of other diary devices. The HFUT can be an active zone table 162A or one of other HFUT structures.

[0094] refer to Figure 6 At operation 620, the processing logic responds to a write request by writing to a periodic area in the LBA space, which is mapped within the region mapping data structure 201 to region states and region indices within the LBA space. The periodic area may contain multiple sequential LBAs mapped to multiple sequential physical addresses of a non-volatile memory (NVM) device. As discussed, command generation processor 112 may generate a command containing a command tag with a physical address to which command execution processor 114 will begin writing. This physical address may be associated with a write pointer that can be tracked during sequential writing to the periodic area.

[0095] At operation 630, the processing logic writes the value of the region write pointer corresponding to the region index into an entry of a high-frequency update table stored in volatile memory, where the region write pointer is for a location in the LBA space where the processing device is writing to the region upon a write request. If the write pointer is to be stored in the active region table 162A, then the write pointer can be a pointer to an allocated region write pointer within the LBA space.

[0096] At operation 640, the processing logic writes the table index value pointing to the entry of the High Frequency Update Table (HFUT) into the entry of the zone mapping data structure 201. In one embodiment, the HFUT is the active zone table 162A. (See reference...) Figure 3 This paper discusses the implementation of this index, and how this implementation enables the zone mapping journal data structure 166A to track the clearing transitions between the zone mapping data structure 201 and the active zone table 162A.

[0097] At operation 650, the processing logic updates the metadata of at least one entry in either the zone mapping data structure 201 or the journal data structure, which is affected by the clear transition between the zone mapping data structure 201 and the high-frequency update table, within the journal data structure stored in volatile memory. This clear transition can occur after the write operation is completed, and therefore, it is not necessary to record the write pointer (or corresponding information) in journal form before such a write operation is completed.

[0098] At operation 660, the processing logic, in response to an asynchronous power failure (APL) event, flushes the journal data structure and the high-frequency update table to the NVM device. In one embodiment, the processing logic may also flush the region mapping data structure 201 to the NVM device. Because these data structures and the HFUT have been flushed, they can be replayed and made available for reference immediately after the memory device restarts. Figure 4 The discussed mapping data structure is used during recovery and reconstruction, and will be referenced. Figure 7 and Figure 8 To elaborate further.

[0099] Figure 7 This is a flowchart of a method for restoring a mapped data structure after a restart from APL, according to one embodiment. Method 700 can be executed by processing logic, which may include hardware (e.g., processing device, circuit system, dedicated logic, programmable logic, microcode, device hardware, integrated circuit, etc.), software (e.g., instructions that run or execute on the processing device), or a combination thereof. In some embodiments, method 700 is performed by… Figure 1A-1BThe controller 115 (e.g., processor 117) executes the process. Although shown in a specific order or sequence, the order of the processes may be modified unless otherwise specified. Therefore, it should be understood that the illustrated embodiments are merely examples, and the illustrated processes may be performed in different orders, and some processes may be performed in parallel. In addition, one or more processes may be omitted in various embodiments. Therefore, not all processes are required in every embodiment. Other process flows are also possible.

[0100] refer to Figure 7 At operation 705, the processing logic loads the mapped data structure 126, HFUT 162, and log data structure 166 from the NVM device back into volatile memory. The volatile memory may be a combination of TCM 160 and volatile memory device 125, as referenced. Figure 1B The journal data structure may be one of the following: a zone-mapped journal data structure 166A, a translation-mapped journal data structure 166B, or another journaling device. The HFUT may be one of the following: an active zone table 162A, a write tracker table 162B, or another HFUT structure.

[0101] At operation 710, the processing logic determines whether an APL event has occurred, and therefore, the memory subsystem 110 is powered on (e.g., started) after the APL event. If not, then at operation 712, the processing logic notifies the command-generating processor 112 that startup is complete. If yes, then at operation 715, the processing logic reads the journal information page associated with the journal data structure 166, such as the journal information page about the last written entry.

[0102] At operation 720, the last version marker in the Logical Retrieval Root Information Page (RIP) is processed. A version marker is a forward counter that allows controller 115 to sequentially arrange events. A version marker with a later value (considering rollover) means that the marked event occurred later, similar to a timestamp. The time difference is continuously rolled over, but the version marker can be updated only at critical points, such as when a migration is complete. This allows controller 115 to determine events preceding a specific version marker without needing to replay them.

[0103] Continue to refer to Figure 7 At operation 725, the processing logic determines whether the log data structure 166 is available. If not, the processing logic jumps to the step described in the reference. Figure 8The data structure described is validated. If yes, then at operation 730, the processing logic positions the version marker in the journal data structure 166. At operation 735, the processing logic determines whether the journal entry (marked by the version marker) is valid. If no, then the processing logic loops back to operation 725. If yes, then at operation 740, the processing logic updates the data structure with the journal entry. For example, these data structures may include mapping data structure 126 and HFUT 162.

[0104] At operation 745, the processing logic determines whether another journal entry marked with the last version flag exists in the journal data structure. If yes, the processing logic loops back to operation 735 to continue checking the validity of the journal entry, and at operation 740, updates the data structure with any valid journal entry. If no, then there are no more such journal entries, and the processing logic moves to the reference... Figure 8 The data structure discussed is validated.

[0105] Figure 8 This is a flowchart of a method 800 for verifying a recovered mapped data structure after a restart from APL, according to one embodiment. Method 800 may be executed by processing logic, which may include hardware (e.g., processing device, circuit system, dedicated logic, programmable logic, microcode, device hardware, integrated circuit, etc.), software (e.g., instructions that run or execute on the processing device), or a combination thereof. In some embodiments, method 800 is performed by… Figure 1A-1B The controller 115 (e.g., processor 117) performs the verification. Verification of the recovered mapping data allows for verification that the data has been properly recovered and is therefore usable for testing, but this is not a prerequisite for the computing system to function. At each level, method 800 can compare the contents of the active zone table 162A (with a state) to the zone mapping data structure 201. Further checks can be performed on the indexes of the active zone table 162A pointing to the correct zone ID or LBA identifier. Method 800 can also verify the absence of duplicate entries used for the indexes and other such checks, as will be discussed in more detail.

[0106] Although shown in a specific order or sequence, the order of processes may be modified unless otherwise specified. Therefore, it should be understood that the illustrated embodiments are merely examples, and the illustrated processes may be performed in different orders, and some processes may be performed in parallel. Furthermore, one or more processes may be omitted in various embodiments. Therefore, not all processes are required in every embodiment. Other process flows are also possible.

[0107] refer to Figure 8Before initiating the depicted flow (not shown), a check can be performed to determine whether all data comparisons should be skipped, and thus, verification is typically skipped as well. If so, the processing logic can jump down to operation 870 and start complete. This allows for a faster start-up of the loop, where there may not be any issues with data verification. Otherwise, assuming verification continues, at operation 802, the processing logic compares each Complete Write Pointer (CWP) value and each Commit Write Pointer (SWP) value in the zone mapping data structure 201 with the corresponding values ​​of the entries in the active zone table 162A. At operation 810, the processing logic determines whether to verify the active zone table 162A based on the comparison. If not, then at operation 805, the processing logic performs minor repairs and, if necessary, scans the active zone to correct the active zone table 162A.

[0108] If the active zone table 162A is verified, then at operation 815, the processing logic verifies the zone status and index value (IDX) of the active zone table 162A. At operation 820, based on the verification of the zone status and index value, the processing logic determines whether to verify the zone mapping data structure 201. If not verified, then at operation 805, the processing logic performs minor repairs and, if necessary, scans the active zones to correct the zone mapping data structure 201. Minor repairs may fix vulnerabilities or inconsistent data. Performing a scan of the active zones may take a long time, but can be performed as a last resort to rebuild the data structure and tables.

[0109] If the verification area mapping data structure 201 is used, then at operation 825, the processing logic compares the value of the write pointer in the write tracker table 162B with the value of the write pointer in the active area table 162A. This comparison can be performed to identify any incorrect positions of the write pointer. The write pointer may be incorrect due to an incomplete write operation or in which the CWP value in the active area table 162A does not match the value of the pointer in the write tracker table 162B. At operation 830, the processing logic determines whether to verify the write tracker table 162B based on this comparison. If not verified, then at operation 805, the processing logic performs minor repairs and scans the active area as needed to correct the write tracker table 162B.

[0110] If the write tracker table 162B is verified, then at operation 835, the processing logic verifies the counts in the block pool, such as the counts in the block set of the region. The maintenance of the block set can be done within the pool based on its state. This verifies the state of the block set against the pool in which the block set resides. The pool allows for fast access to block sets in certain states for purposes such as garbage collection, wear leveling, etc. Depending on what happens during APL, some blocks in the block set may need to be moved between different pools, such as from the write pool to the pass-through pool. At operation 840, the processing logic determines whether to verify the block set information. If not, then at operation 805, the processing logic performs minor repairs and, if necessary, scans the active region to correct the block set information.

[0111] If the block set information is verified, then at operation 845, the processing logic verifies that the block set identifier (ID) and index value (IDX) of the ZTBS data structure 409 match the block set information and index of the active zone table 162A, respectively. At operation 850, the processing logic determines whether to verify the ZTBS data structure 409. If not, then at operation 805, the processing logic performs minor repairs and, if necessary, scans the active zone to correct the ZTBS data structure 409.

[0112] If ZTBS data structure 409 is verified, then at operation 855, the processing logic checks whether the block is valid and whether any errors are detected in the block set mapping data structure 123. For example, blocks without vulnerabilities or defects are still mapped. This could be a block set mapping, which can be scanned to find blocks added to the defect list or whether vulnerabilities caused by defective blocks exist; the block set mapping scan will then check for such incorrect mappings.

[0113] At operation 860, the processing logic determines whether to verify the block set mapping data structure 123. If not, at operation 805, the processing logic performs minor repairs and, if necessary, scans the active region to correct the block set mapping data structure 123. If the block set mapping data structure 123 is verified, at operation 870, the processing logic notifies the command generator 112 that startup has been completed.

[0114] Figure 9 An example machine is described as a computer system 900, within which a set of instructions is executable for causing the machine to perform any or more of the methods discussed herein. In some embodiments, the computer system 900 may correspond to a host system (e.g., Figure 1A The host system 120 includes, is coupled to, or utilizes a memory subsystem (e.g., Figure 1A(Memory subsystem 110). In alternative embodiments, the machine may be connected (e.g., networked) to other machines in a LAN, intranet, extranet, and / or the Internet. The machine may operate as a peer machine in a peer-to-peer (or distributed) network environment or as a server or client machine in a cloud computing infrastructure or environment, operating at the capacity of a server or client machine in a client-server network environment.

[0115] The machine may be a personal computer (PC), tablet PC, set-top box (STB), personal digital assistant (PDA), cellular phone, network appliance, server, network router, switch, or bridge, or any machine capable of executing (sequentially or otherwise) a set of instructions specifying actions to be taken by the machine. Furthermore, although a single machine is described, the term "machine" should also be understood to include any set of machines that individually or collectively execute one or more sets of instructions to perform any one or more of the methods discussed herein.

[0116] The example computer system 900 includes a processing device 902, a main memory 904 (e.g., read-only memory (ROM), flash memory, dynamic random access memory (DRAM) such as synchronous DRAM (SDRAM) or Rambus DRAM (RDRAM), etc.), a static memory 906 (e.g., flash memory, static random access memory (SRAM), etc.), and a data storage system 918, which communicate with each other via a bus 930.

[0117] Processing device 902 represents one or more general-purpose processing devices, such as microprocessors, central processing units, 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 implementing other instruction sets, or a combination of instruction sets. Processing device 902 may also be one or more special-purpose processing devices, such as application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), network processors, etc. Processing device 902 is configured to execute instructions 926 for performing the operations and steps discussed herein. Computer system 900 may additionally include a network interface device 908 for communication on network 920.

[0118] Data storage system 918 may include machine-readable storage medium 924 (also called computer-readable medium) storing one or more instruction sets or software embodying any or more of the methods or functions described herein. Instructions 926 may also reside wholly or at least partially in main memory 904 and / or processing device 902 during execution by computer system 900, which also constitute machine-readable storage medium. Machine-readable storage medium 924, data storage system 918, and / or main memory 904 may correspond to... Figure 1A-1B The memory subsystem 110.

[0119] In one embodiment, instruction 926 includes implementations that can be made by Figure 1B The processor 117 executes functional instructions. Although the machine-readable storage medium 924 is shown as a single medium in the exemplary embodiment, the term "non-transitory 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 executable by a machine and causing the machine to perform any one or more of the methods of this disclosure. The term "machine-readable storage medium" should therefore be considered to include, but is not limited to, solid-state memory, optical media, and magnetic media.

[0120] Some parts of the previously described algorithms and symbolic representations of operations on data bits within computer memory have been presented. These algorithmic descriptions and representations are the means by which those skilled in the art of data processing most effectively communicate the essence of their work to others skilled in the art. In this document, and generally in general, an algorithm is conceived as a self-consistent sequence of operations that produce a desired result. An operation is an operation that requires physical manipulation of a physical quantity. Typically (but not always), these quantities take the form of electrical or magnetic signals that can be stored, combined, compared, and otherwise manipulated. It has been shown that it is sometimes convenient to refer to these signals as bits, values, elements, symbols, characters, items, numbers, etc., primarily for common use.

[0121] However, it should be remembered that all these and similar terms will be associated with appropriate physical quantities and are merely convenient notations for application to those quantities. This disclosure can refer to the actions and processes of a computer system or similar electronic computing device that manipulate and transform data represented as physical (electronic) quantities in the registers and memories of a computer system into other data similarly represented as physical quantities in the computer system's memory or registers or other such information storage systems.

[0122] This disclosure also relates to apparatus for performing the operations described herein. Such apparatus may be specifically constructed for the desired purpose, or may comprise a general-purpose computer selectively activated or reconfigured by a computer program stored in a computer. Such computer programs may be stored in computer-readable storage media, such as, but not limited to, any type of disk (including floppy disks, optical disks, CD-ROMs, and magneto-optical disks), read-only memory (ROM), random access memory (RAM), EPROM, EEPROM, magnetic cards, or optical cards, or any type of media suitable for storing electronic instructions, each coupled to a computer system bus.

[0123] The algorithms and displays presented herein are not inherently related to any particular computer or other device. Various general-purpose systems can be used with the programs taught herein, or it may prove convenient to construct more specialized devices to perform the methods described herein. The structures of various such systems will be presented as illustrated in the description below. Furthermore, this disclosure is described without reference to any particular programming language. It should be understood that the teachings of this disclosure as described herein can be implemented using various programming languages.

[0124] This disclosure may be provided as a computer program product or software, which may include a machine-readable medium having instructions stored thereon for programming a computer system (or other electronic device) to perform processes according to this disclosure. A machine-readable medium includes any mechanism for storing information in a machine-readable (e.g., computer-readable) form. In some embodiments, machine-readable (e.g., computer-readable) media includes machine-readable (e.g., computer-readable) storage media, such as read-only memory (“ROM”), random access memory (“RAM”), disk storage media, optical storage media, flash memory components, etc.

[0125] In the foregoing description, embodiments of this disclosure have been described with reference to specific example embodiments thereof. It will be apparent that various modifications may be made to this disclosure without departing from the broader spirit and scope of the embodiments set forth in the appended claims. Therefore, the description and drawings should be viewed in an illustrative rather than restrictive sense.

Claims

1. A system comprising: Non-volatile memory (NVM) devices; A volatile memory coupled to the NVM device, the volatile memory storing: A zone mapping data structure that maps zones in the logical block address (LBA) space to zone states within the LBA space and to zone indexes, wherein the zones include multiple sequential LBAs mapped to multiple sequential physical addresses; Diary data structure; and The table is updated frequently; and A processing device coupled to the volatile memory and the NVM device, wherein the processing device performs the following operations: The value corresponding to the zone index of the zone write pointer is written within the entry of the high-frequency update table, wherein the zone write pointer includes a position in the LBA space where the processing device is writing to the zone upon a write request; Write the table index value pointing to the entry of the high-frequency update table into the entry of the zone mapping data structure; Within the journal data structure, update the metadata of the entry in at least one of the zone mapping data structure or the journal data structure that is affected by the clear transition between the zone mapping data structure and the high-frequency update table; and In response to the Asynchronous Power-Off (APL) event, the log data structure and the high-frequency update table are cleared to the NVM device.

2. The system of claim 1, wherein in response to the APL event, the processing device further clears the region mapping data structure to the NVM device.

3. The system of claim 1, wherein the zone mapping data structure is stored in a static random access memory (SRAM) device, and the journal data structure and the high-frequency update table are stored in a tightly coupled memory (TCM), and wherein the processing device further determines the location of the high-frequency update table in the TCM based on an identifier stored in the volatile memory device in association with the zone mapping data structure.

4. The system of claim 1, wherein after the operation of writing to the area is completed, the processing device immediately performs the following further operation: Upon the write request to the region, the entry in the region mapping data structure is filled with the mapping between the region identifier and the region index; and In the area mapping data structure, the area is deactivated to indicate that the area is closed.

5. The system of claim 1, wherein the processing device further performs recovery and reconstruction after a restart, comprising: The log data structure is read from the NVM device back into the volatile memory; The high-frequency update table is read back from the NVM device to the volatile memory; and The entries in the zone mapping data structure are updated based on the metadata in the diary data structure and the zone write pointer of the last record in the high-frequency update table.

6. The system according to claim 1, wherein the zone mapping data structure maps a zone identifier to a zone state, a zone write pointer commit value, and a zone write pointer complete value, and wherein the high-frequency update table is an active zone table, storing the zone write pointer commit value and the zone write pointer complete value of the zone write pointer in the entries of the active zone table.

7. The system of claim 6, wherein the processing means further identifies errors in the region mapping data structure during reconstruction after a reboot, comprising: The active zone table is read back from the NVM device to the volatile memory; The region mapping data structure is read from the NVM device back into the volatile memory; The commit value of the zone write pointer in the entry of the zone mapping data structure is compared with the corresponding value in the entry of the zone table in action; and The complete value of the write pointer of the entry in the zone mapping data structure is compared with the corresponding value in the entry of the active zone table.

8. The system of claim 6, wherein the volatile memory further stores a region descriptor data structure, and wherein the processing means further updates the log data structure with region descriptors stored in the region descriptor data structure.

9. The system of claim 1, wherein the processing means further includes a first-in-first-out (FIFO) buffer to maintain table index values ​​that have been released for assignment to the high-frequency update table.

10. A method comprising: In response to a write request, the processing device writes to the active region of the logical block address (LBA) space, which is mapped to the corresponding physical address space of the non-volatile memory (NVM) device within the mapped data structure. The processing device writes the value of a write pointer into an entry in a high-frequency update table stored in volatile memory, the write pointer including the position in the NVM device corresponding to the write in the active area; The processing device writes the table index value pointing to the entry of the high-frequency update table into the entry of the mapped data structure. The processing device updates the metadata of at least one entry in the mapping data structure or the high-frequency update table that is affected by the clear transition between the mapping data structure and the high-frequency update table within the log data structure stored in the volatile memory. and In response to the Asynchronous Power-Off (APL) event, the log data structure and the high-frequency update table are cleared to the NVM device.

11. The method of claim 10, wherein in response to the APL event, the method further includes clearing the mapping data structure to the NVM device.

12. The method of claim 10, further comprising determining the location of the high-frequency update table in the volatile memory based on an identifier stored in association with the mapped data structure.

13. The method of claim 10, wherein after the operation of writing to the active region is completed, the method further includes immediately performing the following operations: Upon a write request to the active region, the entry of the mapping data structure is filled with the mapping between the corresponding LBA space and the corresponding physical address space; and In the mapping data structure, the active region is deactivated to close the active region.

14. The method of claim 10, further comprising performing recovery and reconstruction after restart, including: The log data structure is read from the NVM device back into the volatile memory; The high-frequency update table is read back from the NVM device to the volatile memory; and The entries in the zone mapping data structure are updated based on the metadata in the diary data structure and the write pointer of the last record in the high-frequency update table.

15. The method of claim 10, wherein the mapping data structure is a region-to-block set (ZTBS) data structure that maps region identifiers to block set identifiers, and wherein the high-frequency update table is a write tracker table, the method further comprising storing the last written page (LWP) value of the NVM device corresponding to the write pointer in the write tracker table.

16. The method of claim 15, further comprising: A write-order data structure is stored in the volatile memory, the write-order data structure tracking the location of the physical address written to the NVM device; and Perform recovery and reconstruction using the following steps: The write tracker table is read back from the NVM device to the volatile memory; The ZTBS data structure and the write-order data structure are read back from the NVM device to the volatile memory; Determine whether the LWP value contained in the write tracker table is in the order arranged in the write order data structure; and In response to a detected error, the ZTBS data structure is updated in the order of the LWP values.

17. The method of claim 15, further comprising: The volatile memory stores a block set mapping data structure that maps block set identifiers to physical blocks in the corresponding physical address space; and The log data structure is updated by updating the block set mapping data structure.

18. The method of claim 10, further comprising a first-in-first-out (FIFO) buffer to maintain table index values ​​that have been released for assignment to entries of the frequently updated table.

19. A non-transitory computer-readable medium storing instructions that, when executed by a processing means of a memory subsystem controller, cause the processing means to perform a plurality of operations, including: In response to a write request, a working region is written to the logical block address (LBA) space, the working region being mapped to the region state and the region index within the mapped data structure, wherein the working region includes multiple sequential LBAs mapped to multiple sequential physical addresses of a non-volatile memory (NVM) device. Write the value corresponding to the area index of the area write pointer in the entry of the high-frequency update table stored in volatile memory, wherein the area write pointer includes the position in the active area; Write the table index value pointing to the entry of the high-frequency update table into the entry of the zone mapping data structure; Within the diary data structure stored in the volatile memory, update the metadata of the entry in at least one of the zone mapping data structure or the diary data structure that is affected by the clear transition between the zone mapping data structure and the high-frequency update table; and In response to the Asynchronous Power-Off (APL) event, the log data structure and the high-frequency update table are cleared to the NVM device.

20. The non-transitory computer-readable medium of claim 19, wherein in response to the APL event, the plurality of operations further include clearing the zone mapping data structure to the NVM device.

Citation Information

Patent Citations

  • Methods, devices and systems for two stage power-on map rebuild with free space accounting in a solid state drive

    US20140258588A1

  • Zone based reconstruction of logical to physical address translation map

    US20200104251A1