Using persistent byte-addressable memory in compute high speed link (CXL) memory devices for efficient power down recovery
By using the persistent byte-addressable memory of the computing high-speed link memory device in the memory subsystem, the problem of data loss during power outage events is solved, efficient recovery and fast access are achieved, and system performance is improved.
Patent Information
- Application Number
- CN202410285893.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2024-02-26
- Filing Date
- 2024-03-13
- Publication Date
- 2024-09-17
AI Technical Summary
It is difficult for existing memory subsystems to effectively save in-flight data during power outages, resulting in data loss, and the recovery process is time-consuming and resource-wasting.
Adopts Persistent Byte Addressable Memory (PBAM) in the Computational Express Link (CXL) memory device to store and transmit user data with small data granularity and automatically resume data transmission after a power outage event, reducing power maintenance time and Recovery time.
It achieves efficient power outage recovery, reduces the impact of data loss, improves the performance of the last good page search algorithm, and provides the ability to quickly access data.
Smart Images

Figure CN118656017A_ABST
Abstract
Description
Technical Field
[0001] This application claims the benefit of U.S. Provisional Patent Application No. 63 / 452,070, filed on March 14, 2023, the entire contents of which are incorporated herein by reference.
[0002] Embodiments of the present disclosure relate generally to memory subsystems, and more particularly to using persistent byte-addressable memory in compute express (CXL) memory devices for efficient power loss recovery. Background Art
[0003] The memory subsystem may include one or more memory devices that store data. The memory devices may be, for example, non-volatile memory devices and volatile memory devices. In general, the host system may utilize the memory subsystem to store data at the memory devices and retrieve data from the memory devices. Summary of the invention
[0004] In one aspect, the present disclosure provides a system comprising: a first memory device comprising a persistent byte-addressable memory; a second memory device; and a processing device operatively coupled to the first memory device and the second memory device to perform operations comprising: receiving a first host command to write or read user data; storing the user data in the persistent byte-addressable memory at a first data granularity; and transferring the user data stored in the persistent byte-addressable memory to the second memory device.
[0005] In another aspect, the present disclosure provides a method, comprising: receiving, by a processing device, a first host command for writing or reading user data; storing the user data in a persistent byte-addressable memory at a first data granularity; transferring the user data stored in the persistent byte-addressable memory to a second memory device; and in response to transferring the user data stored in the persistent byte-addressable memory to the second memory device, releasing memory space in the persistent byte-addressable memory for storing the user data.
[0006] In another aspect, the present disclosure provides a non-transitory computer-readable storage medium comprising instructions that, when executed by a processing device, cause the processing device to perform operations comprising: receiving a first host command to write or read user data; storing the user data in a persistent byte-addressable memory at a first data granularity, wherein the first data granularity is smaller than a data granularity associated with a non-AND (NAND) type flash memory; transferring the user data stored in the persistent byte-addressable memory to a second memory device; and in response to transferring the user data stored in the persistent byte-addressable memory to the second memory device, releasing memory space in the persistent byte-addressable memory for storing the user data. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] The present disclosure will be more fully understood from the detailed description given below and the accompanying drawings of various embodiments of the present disclosure. However, the drawings should not be considered to limit the present disclosure to specific embodiments, but are only for explanation and understanding.
[0008] Figure 1 An exemplary computing system including a memory subsystem according to some embodiments of the present disclosure is shown.
[0009] Figure 2 is a block diagram of an exemplary system for using persistent byte addressable memory (PBAM) in a compute express-link solid-state drive (CXL-SSD) device for efficient power outage recovery according to some embodiments of the present disclosure.
[0010] Figure 3 An example of using persistent byte addressable memory (PBAM) in a compute express link solid-state drive (CXL-SSD) device for non-volatile memory express (NVMe) commands according to some embodiments of the present disclosure is shown.
[0011] Figure 4 An example of using a persistent byte addressable memory (PBAM) in a compute express-link solid-state drive (CXL-SSD) device for a CXL.mem command is shown according to some embodiments of the present disclosure.
[0012] Figure 5 A flowchart of an exemplary method of using persistent byte addressable memory (PBAM) in a compute express link solid-state drive (CXL-SSD) device according to some embodiments of the present disclosure.
[0013] Figure 6 is a block diagram of an exemplary computer system in which embodiments of the present disclosure may operate. DETAILED DESCRIPTION
[0014] Aspects of the present disclosure relate to using persistent byte-addressable memory in a compute express link (CXL) memory device for efficient power-off recovery. The memory subsystem may be a storage device, a memory module, or a combination of a storage device and a memory module. Figure 1 Examples of storage devices and memory modules are described. In general, a host system may utilize a memory subsystem that includes one or more components, such as memory devices, that store data. The host system may provide data for storage at the memory subsystem and may request retrieval of data from the memory subsystem.
[0015] The memory subsystem may include a high density non-volatile memory device where data needs to be retained when no power is supplied to the memory device. An example of a non-volatile memory device is a NAND memory device. Figure 1 Other examples of nonvolatile memory devices are described. A nonvolatile memory device is a package of one or more dies. Each die may include one or more planes. For some types of nonvolatile memory devices (e.g., NAND devices), each plane includes a set of physical blocks. Each block includes a set of pages. Each page includes a set of memory cells ("cells"). A cell is an electronic circuit that stores information. Depending on the cell type, a cell may store one or more binary bits of information and have various logical states associated with the number of bits stored. The logical state may be represented by a binary value such as "0" and "1" or a combination of such values.
[0016] A memory device may include a two-dimensional or three-dimensional grid of memory cells formed onto a silicon wafer in an array of columns and rows. A block hereinafter refers to a cell of a memory device for storing data, and may include a group of memory cells electrically coupled to one or more conductive lines referred to as access lines or "word lines". One or more blocks may be grouped together to form a plane of a memory device to allow concurrent operations on each plane. A memory device may include a circuit system that performs concurrent memory page accesses of two or more memory planes. For example, a memory device may include corresponding access line driver circuits and power circuits for each plane of the memory device to facilitate concurrent access to pages of two or more memory planes containing different page types.
[0017] In a system utilizing a memory device, there may be a delay between the time when data is sent to be stored and the time when the data is actually recorded on the medium of the memory device. Similarly, there may be a delay between the time when a request is made to retrieve data from a memory device and the time when the data is actually received by the requesting component. This occurs because the data must be transmitted through other components of the system before reaching its destination and because of the latency of read and write operations being performed on the medium of the memory device. Due to this delay, it is possible for a system or a memory device in the system to experience a power outage event, such as an asynchronous power-off (APL) event, and when the power outage occurs, there is still data that has been requested or transmitted through components of the system or to be processed in components to be written or retrieved. Some approaches simply assume that this so-called "in-flight" data will be lost and unavoidable in many cases. However, a memory device comprising non-volatile media allows the possibility of saving in-flight data before the computing system is completely powered off.
[0018] In the event of a power outage, the memory device may perform emergency system operations, in which components of the system detect a sharp drop in power supply voltage and send a notification to the entire system before the power supply is completely damaged due to an APL event. In this case, some systems with non-volatile media devices may include capacitors that can provide power to components of the system when the main power supply is lost. However, in many cases, capacitor size and energy storage capacity are very limited. In addition, it may often be necessary to distribute and share the power provided by the capacitor among many components to provide power for their operations when such a power outage event occurs. Because capacitors typically have a very limited power duration, some components of the system and some of their corresponding operations may need to be prioritized during a power outage event to efficiently use the available power duration.
[0019] It is worth noting that if a power outage event occurs while there is in-flight data and the data is not saved in non-volatile media or securely retrieved by another component before the complete power outage, the data may be lost. Saving such data may require a sufficient power duration to permit the system to complete pending operations. In addition, when the host system writes certain data to the memory device, such as to open a block configured as a single-level cell (SLC) memory when a power outage event occurs, the size of the data that requires error correction or recovery is typically large. Power outage recovery of such a large amount of data may be very time consuming and wasteful of computing resources.
[0020] Aspects of the present disclosure address the above and other deficiencies by using a persistent byte addressable memory (PBAM) in a compute express link (CXL) memory device for efficient power-off recovery. The PBAM is a non-volatile memory that can be exposed to a host system, i.e., the address of the PBAM can be directly accessed by the host system. The data granularity of the PBAM can be smaller than that of a conventional non-volatile memory, i.e., data written to or read from the PBAM can be encapsulated in a small size (e.g., 64-byte) packet, and data writing or reading is performed packet by packet, the packet being smaller than the packet size (e.g., 16KB) of a conventional non-volatile memory. The PBAM will act as an intermediate layer for storing user data in a CXL memory device, where the user data can be transferred from the PBAM to a recipient memory or used by the host system as directed by the host system. A CXL memory device is a memory device (e.g., a type 3 CXL memory device) that a host system can use as a memory buffer for memory bandwidth expansion, memory capacity expansion, and persistent memory applications. CXL is an interface standard that can support multiple protocols that can run on Peripheral Component Interconnect Express (PCIe), including the CXL.io protocol and the CXL.mem protocol. The CXL.io protocol is a PCIe-like protocol that can be considered an "enhanced" PCIe protocol that can partition managed memory and can provide an interface for I / O devices. The CXL.mem protocol can enable a host to access the memory of an attached device using memory semantics (e.g., load and store commands) and can support both volatile memory architectures and persistent memory architectures. A CXL memory device can provide support for at least the CXL.io protocol and the CXL.mem protocol.
[0021] In some embodiments, a CXL memory device provides a non-volatile memory device next to a PBAM. A host system may send a non-volatile memory express (NVMe) write command to the CXL memory device via the CXL.io protocol. A controller of the CXL memory device may store user data associated with the NVMe write command to the PBAM at a small data granularity. Specifically, the user data is encapsulated in a small size (e.g., 64-byte) packet, and the controller of the CXL memory device stores the user data packet by packet. When a power failure event occurs during the storage of the user data in the PBAM, the controller of the CXL memory device may end the data transfer by using a capacitor due to the small size of the data packet in flight, or the controller of the CXL memory device may receive the data packet again from the host system after power-on because the host system has not received a notification of the successful storage of the data packet, and thus resend the small size data packet. When the controller of the CXL memory device stores the user data in the PBAM, the controller of the CXL memory device may start moving the user data stored in the PBAM to the non-volatile memory device specified in the NVMe write command. A power outage event that occurs during the movement of user data from the PBAM to the non-volatile memory will not affect the interaction with the host system because the PBAM is a non-volatile memory, and the controller of the CXL memory device can resume the movement of the user data when power is restored without losing any data. Once the controller of the CXL memory device has moved all user data associated with the NVMe command to the non-volatile memory, the controller of the CXL memory device can free up the memory space in the PBAM used to store the user data for other uses.
[0022] In some embodiments, the CXL memory device provides non-volatile memory alongside the PBAM. The host system may send a non-volatile memory express (NVMe) read command to the CXL memory device via the CXL.io protocol. The controller of the CXL memory device may obtain the user data from the non-volatile memory specified in the NVMe read command and send the user data to the host system. Alternatively, the controller of the CXL memory device may obtain the user data from the non-volatile memory specified in the NVMe read command and store the user data to the PBAM at the small data granularity described above. The host system may then read the user data from the PBAM, which is faster than reading the same data from the non-volatile memory.
[0023] In some embodiments, the host system may send a CXL.mem write command to the CXL memory device via the CXL.mem protocol. The controller of the CXL memory device may store user data associated with the CXL.mem write command to the PBAM at a small data granularity. Specifically, the user data is encapsulated in a small-size (e.g., 64-byte) packet, and the controller of the CXL memory device stores the user data packet by packet. When a power-off event occurs during the storage of the user data in the PBAM, the controller of the CXL memory device may end the data transfer by using a capacitor due to the small size of the data packet in flight, or the controller of the CXL memory device may receive the data packet again from the host system after power-on because the host system has not received a notification of the successful storage of the data packet, and thus resend the small-size data packet. When the controller of the CXL memory device stores the user data in the PBAM, the controller of the CXL memory device may receive another host command to use the user data stored in the PBAM. In some embodiments, after the user data has been stored in the PBAM, the host system may send a CXL.mem read command to the CXL memory device via the CXL.mem protocol. The controller of the CXL memory device can read user data associated with a CXL.mem read command from the PBAM faster than reading the same data from non-volatile memory.
[0024] Thus, the PBAM may be used as a transition-oriented nonvolatile memory that has a smaller data granularity for writing than that of a conventional nonvolatile memory and may provide faster data reading than the conventional nonvolatile memory.
[0025] Advantages of the present disclosure include, but are not limited to, efficient power failure recovery by using a small data granularity for writing to reduce the time required to maintain power (e.g., through a capacitor) during a power failure event and / or reduce the time required to initiate efficient recovery of the system upon power-up after a power failure event. Specifically, the system significantly improves the performance of the find last good page (FLGP) algorithm because the system only needs to scan the small size last page of the PBAM instead of all open SLC blocks on the NAND flash memory. The system also significantly reduces the impact of data loss due to the small data granularity of the PBAM. In addition, using the PBAM in the CXL memory device provides fast access to data stored in the PBAM.
[0026] Figure 1An exemplary computing system 100 is shown that includes a memory subsystem 110 according to some embodiments of the present disclosure. Memory subsystem 110 may include media such as one or more volatile memory devices (e.g., memory device 140), one or more non-volatile memory devices (e.g., memory device 130), or a combination of these.
[0027] The memory subsystem 110 may be a storage device, a memory module, or a combination of a storage device and a memory module. Examples of storage devices include solid state drives (SSDs), flash drives, universal serial bus (USB) flash drives, embedded multimedia controller (eMMC) drives, universal flash storage (UFS) drives, secure digital (SD) cards, and hard disk drives (HDDs). Examples of memory modules include dual inline memory modules (DIMMs), small outline DIMMs (SO-DIMMs), and various types of non-volatile dual inline memory modules (NVDIMMs).
[0028] The computing system 100 can be a computing device, such as a desktop computer, a laptop computer, a network server, a mobile device, a vehicle (e.g., an airplane, drone, train, car, or other transportation vehicle), an Internet of Things (IoT)-enabled device, an embedded computer (e.g., an embedded computer included in a vehicle, industrial equipment, or a networked commercial device), or such a computing device that includes a memory and a processing device.
[0029] 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 multiple memory subsystems 110 of different types. Figure 1 An example of a host system 120 coupled to one memory subsystem 110 is shown. As used herein, "coupled to" or "coupled with" generally refers to a connection between components, which can be an indirect communication connection or a direct communication connection (e.g., without intervening components), whether wired or wireless, including connections such as electrical connections, optical connections, magnetic connections, etc.
[0030] The host system 120 may include a processor chipset and a software stack executed by the processor chipset. The processor chipset may include one or more cores, one or more cache memories, a memory controller (e.g., an NVDIMM controller), and a storage protocol controller (e.g., a PCIe controller, a SATA controller). The host system 120 uses the memory subsystem 110 to, for example, write data to the memory subsystem 110 and read data from the memory subsystem 110.
[0031] The host system 120 may be coupled to the memory subsystem 110 via a physical host interface. Examples of the physical host interface include, but are not limited to, a Serial Advanced Technology Attachment (SATA) interface, a Peripheral Component Interconnect Express (PCIe) interface, a Universal Serial Bus (USB) interface, a Fibre Channel, a Serial Attached SCSI (SAS), a Double Data Rate (DDR) memory bus, a Small Computer System Interface (SCSI), a Dual In-line Memory Module (DIMM) interface (e.g., a DIMM socket interface supporting Double Data Rate (DDR)), etc. The physical host interface may be used to transfer data between the host system 120 and the memory subsystem 110. When the memory subsystem 110 is coupled to the host system 120 through a physical host interface (e.g., a PCIe bus), the host system 120 may further utilize an NVM Express (NVMe) interface to access components (e.g., the memory device 130). The physical host interface may provide an interface for transferring control, address, data, and other signals between the memory subsystem 110 and the host system 120. Figure 1 Memory subsystem 110 is shown as an example. In general, host system 120 can access multiple memory subsystems via the same communication connection, multiple separate communication connections, and / or a combination of communication connections.
[0032] The NVMe interface is a communication interface / protocol developed for SSDs to operate on a host and memory device linked via a PCIe interface. The NVMe protocol provides a command queue and completion path for the host system 220 to access data stored in the memory device. In some embodiments, the interface between the host system and the memory device may implement one or more alternative protocols supported by another interface standard. For example, the interface may implement one or more alternative protocols supported by PCIe (e.g., non-PCIe protocols). In some embodiments, the interface may be represented by a compute express link (CXL) interface or any communication link that allows cache line granularity updates and shares coherency control with a processing device.
[0033] The CXL system is a cache-coherent interconnect for processors, memory extensions, and accelerators. The CXL system maintains memory coherence between the CPU memory space and the memory on the attached device, which allows resource sharing to achieve higher performance, reduce software stack complexity, and reduce overall system cost. In general, CXL is an interface standard that can support multiple protocols that can run on top of PCIe, including the CXL.io protocol, the CXL.mem protocol, and the CXL.cache protocol. The CXL.io protocol is a PCIe-like protocol that can be considered an "enhanced" PCIe protocol that can partition managed memory. CXL.io can be used for initialization, connection, device discovery and enumeration, register access, and can provide an interface for I / O devices. The CXL.mem protocol can enable the host to access the memory of the attached device using memory semantics (e.g., load and store commands). This approach can support both volatile and persistent memory architectures. The CXL.cache protocol can define host-device interactions to achieve efficient caching of host memory with low latency using a request and response approach. Traffic (e.g., NVMe traffic) can run over the CXL.io protocol, and the CXL.mem and CXL.cache protocols can share a common link layer and transaction layer. Thus, the CXL protocol can be multiplexed and transmitted over the PCIe physical layer.
[0034] The memory devices 130, 140 may include any combination of different types of non-volatile memory devices and / or volatile memory devices. Volatile memory devices (e.g., memory device 140) may be, but are not limited to, random access memory (RAM), such as dynamic random access memory (DRAM) and synchronous dynamic random access memory (SDRAM).
[0035] Some examples of non-volatile memory devices (e.g., memory device 130) include NAND type flash memory and write-in-place memory, such as a three-dimensional cross-point ("3D cross-point") memory device, which is a cross-point array of non-volatile memory cells. The cross-point array of non-volatile memory cells can be combined with a stackable cross-grid data access array to perform bit storage based on changes in body resistance. In addition, in contrast to many flash-based memories, cross-point non-volatile memories can perform write-in-place operations, where non-volatile memory cells can be programmed without pre-erasing the non-volatile memory cells. NAND type flash memory includes, for example, two-dimensional NAND (2D NAND) and three-dimensional NAND (3D NAND).
[0036] Each of the memory devices 130 may include one or more memory cell arrays. One type of memory cell, for example, a single-level cell (SLC), may store one bit per cell. Other types of memory cells, such as multi-level cells (MLC), three-level cells (TLC), four-level cells (QLC), and five-level cells (PLC) may store multiple bits per cell. In some embodiments, each memory device 130 may include one or more memory cell arrays, such as SLC, MLC, TLC, QLC, PLC, or any combination thereof. In some embodiments, a particular memory device may include an SLC portion, an MLC portion, a TLC portion, a QLC portion, or a PLC portion of a memory cell. The memory cells of the memory device 130 may be grouped into pages, which may refer to a logical unit of a memory device for storing data. For some types of memory (e.g., NAND), pages may be grouped to form blocks. Some types of memory (e.g., 3D crosspoints) may group pages across dies and channels to form management units (MUs).
[0037] Although non-volatile memory components such as a 3D cross-point non-volatile memory cell array and NAND-type flash memory (e.g., 2D NAND, 3D NAND) are described, the memory device 130 may be based on any other type of non-volatile memory, such as read-only memory (ROM), phase-change memory (PCM), self-selected memory, other chalcogenide-based memories, ferroelectric transistor random access memory (FeTRAM), ferroelectric random access memory (FeRAM), magnetic random access memory (MRAM), spin transfer torque (STT)-MRAM, conductive bridging RAM (CBRAM), resistive random access memory (RRAM), oxide-based RRAM (OxRAM), or non-(NOR) flash memory or electrically erasable programmable read-only memory (EEPROM).
[0038] 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, or 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 memory, or a combination thereof. The hardware may include digital circuitry with dedicated (i.e., hard-coded) logic to perform the operations described herein. The memory subsystem controller 115 may be a microcontroller, dedicated logic circuitry (e.g., a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), etc.), or other suitable processor.
[0039] The memory subsystem controller 115 may include a processing device including one or more processors (e.g., processor 117) configured to execute instructions stored in a local memory 119. In the illustrated example, the local memory 119 of the memory subsystem controller 115 includes an embedded memory configured to store instructions for executing various processes, operations, logic flows, and routines that control the operation of the memory subsystem 110, including handling communications between the memory subsystem 110 and the host system 120.
[0040] In some embodiments, local memory 119 may include memory registers that store memory pointers, retrieved data, etc. Local memory 119 may also include read-only memory (ROM) for storing microcode. Figure 1 The exemplary memory subsystem 110 in FIG. 1 has been shown as including a memory subsystem controller 115, but in another embodiment of the present disclosure, the memory subsystem 110 does not include a memory subsystem controller 115, but may rely on external control (e.g., provided by an external host or by a processor or controller separate from the memory subsystem).
[0041] In general, the memory subsystem controller 115 may receive commands or operations from the host system 120, and may convert the commands or operations into instructions or appropriate commands to achieve the desired access to the memory device 130. The memory subsystem controller 115 may be responsible for other operations, such as wear leveling operations, garbage collection operations, error detection and error correction code (ECC) operations, encryption operations, cache operations, and address translation between logical addresses (e.g., logical block addresses (LBA), name space) and physical addresses (e.g., physical MU addresses, physical block addresses) associated with the memory device 130. The memory subsystem controller 115 may further include a host interface circuit system to communicate with the host system 120 via a physical host interface. The host interface circuit system may convert commands received from the host system into command instructions to access the memory device 130, and convert responses associated with the memory device 130 into information for the host system 120.
[0042] The memory subsystem 110 may also include additional circuitry or components not illustrated. In some embodiments, the memory subsystem 110 may include a cache or buffer (e.g., DRAM) and address circuitry (e.g., row decoder and column decoder) that may receive addresses from the memory subsystem controller 115 and decode the addresses to access the memory device 130.
[0043] In some embodiments, the memory device 130 includes a local media controller 135 that operates in conjunction with the memory subsystem controller 115 to perform operations on one or more memory cells of the memory device 130. An external controller (e.g., the memory subsystem controller 115) can manage the memory device 130 externally (e.g., perform media management operations on the memory device 130). In some embodiments, the memory subsystem 110 is a managed memory device, which is a raw memory device 130 with control logic (e.g., the local media controller 135) on the die and a controller (e.g., the memory subsystem controller 115) for media management within the same memory device package. An example of a managed memory device is a managed NAND (MNAND) device.
[0044] In some embodiments, the memory subsystem 110 includes the PBAM manager 113. In some embodiments, the memory subsystem controller 115 includes at least a portion of the PBAM manager 113. In some embodiments, the PBAM manager 113 is part of the host system 110, an application, or an operating system. In other embodiments, the local media controller 135 includes at least a portion of the PBAM manager 113 and is configured to perform the functionality described herein. Figures 2 to 6 Additional details regarding the operation of PBAM manager 113 are described.
[0045] It will be appreciated by those skilled in the art that additional circuitry and signals may be provided and simplified. Figure 1 It should be recognized that the reference Figure 1 The functionality of the various block components described may not necessarily be separated into different components or component portions of an integrated circuit device. For example, a single component or component portion of an integrated circuit device may be adapted to perform Figure 1 Alternatively, one or more components or component parts of an integrated circuit device may be combined to perform Figure 1 The functionality of a single block component.
[0046] Figure 2A schematic block diagram of a system 200 for implementing persistent byte addressable memory (PBAM) in a compute express link (CXL) memory device. In various embodiments, the system 200 includes a host system 220 (e.g., host system 120), a CXL-SSD device 210 (e.g., memory subsystem 110) including a controller 215 (e.g., controller 115), a NAND array 224 (e.g., memory device 130), a persistent byte addressable memory (PBAM) array 226, and a DRAM 222 (e.g., memory device 140). In some embodiments, aspects of the controller 215 (including hardware and / or firmware functionality) are included in the local media controller 135.
[0047] In some embodiments, host system 220 includes a central processing unit (CPU) 209 connected to host memory 205 , such as DRAM or other main memory. Host system 220 includes a bus 207 , such as a memory device interface, that interacts with host interface 218 via CXL connection 255 .
[0048] CXL connection 255 may include a collection of data transmission channels ("channels") for implementing CXL protocols, including CXL.io protocol, CXL.mem protocol, and CXL.cache protocol. CXL connection 255 may include any suitable number of channels according to embodiments described herein. For example, CXL connection 255 may include 16 channels (ie, CXL x16).
[0049] Host interface 218 may include media access control (MAC) and physical layer (PHY) components of CXL-SSD device 210 for input communications from host system 220 to CXL-SSD device 210 and output communications from CXL-SSD device 210 to host system 220. Bus 207 and host interface 218 operate under a communication protocol, such as a CXL serial communication protocol over PCIe or other suitable communication protocols. Other suitable communication protocols include Ethernet, Serial Attached SCSI (SAS), Serial AT Attachment (SATA), any protocol related to Remote Direct Memory Access (RDMA), such as InfiniBand, iWARP, or RDMA over Converged Ethernet (RoCE), and other suitable serial communication protocols.
[0050] The CXL-SSD device 210 is a CXL-enabled NVMe SSD device. The CXL-enabled NVMe SSD device is a memory device that allows the host system 220 to be used as a memory buffer for memory bandwidth expansion, memory capacity expansion, and persistent memory applications. The CXL-SSD device 210 may provide support for at least the CXL.io protocol and the CXL.mem protocol. More specifically, the PBAM 226 may be accessed via the CXL.mem protocol, and the NAND 224 may be accessed via the CXL.io protocol. By using, for example, the CXL.io protocol for the NAND 224 and using, for example, the CXL.mem protocol for the PBAM 226, a single device may be obtained that supports both the cacheable and coherent NAND 224 and the PBAM 226. Since CXL is designed to be low latency, there is a negligible additional latency (e.g., 25ns) for the NAND 224. Assuming the memory is at double data rate (DDR) speed, the target for the CXL.mem latency is about 80ns. In embodiments where PBAM 226 is visible via the CXL.mem protocol, CXL-SSD device 210 may be implemented within a memory buffer to execute one or more persistent memory applications. In embodiments where NAND 224 is visible via the CXL.io protocol, CXL-SSD device 210 may be implemented within a memory buffer to execute one or more persistent memory applications via PBAM 226.
[0051] The CXL-SSD device 210 includes a controller 215 (e.g., a processing device) that manages the operation of the CXL-SSD device 210, such as writing to and reading from the NAND 224 and / or PBAM 226. The controller 215 may include one or more processors 217, which may be multi-core processors. The processors 217 may typically handle or interact with the components of the memory device 130 through firmware code. The controller 215 may operate under the NVM Express (NVMe) or CXL protocol, but other protocols may be applicable.
[0052] The controller 215 executes computer readable program code (e.g., software or firmware) executable instructions (referred to herein as "instructions"). The instructions may be executed by various components of the controller 215, such as the processor 217, logic gates, switches, application specific integrated circuits (ASICs), programmable logic controllers, embedded microcontrollers, and other components of the controller 215. The instructions executable by the controller 215 for carrying out the embodiments described herein are stored in a non-transitory computer readable storage medium. In certain embodiments, the instructions are stored in a non-transitory computer readable storage medium of the CXL-SSD device 210, such as in a read-only memory (ROM), NAND 224, or PBAM 226. The instructions stored in the CXL-SSD device 210 may be executed without added input or direction from the host system 220. In other embodiments, the instructions are transmitted from the host system 220. The controller 215 is configured with hardware and instructions to perform the various functions described herein and shown in the figures.
[0053] The controller 215 may interact with the NAND 224 for read and write operations. The controller 215 may perform direct memory access (DMA) for data transfer between the host system 220 and the NAND 224 without the involvement of the CPU 209. The controller 215 may control the data transfer while activating the control path for fetching commands, issuing completions and interrupts, and activating the DMA for the actual data transfer between the host system 220 and the NAND 224. The controller 215 may have an error correction module to correct the data fetched from the memory array in the NAND 224.
[0054] In some embodiments, the controller 215 further includes a controller memory buffer (CMB) 212. The CMB 212 is a controller memory space that may span one or more of the DRAM 222, NAND 224, and / or PBAM 226. The contents in the CMB 212 typically do not persist across power cycles, so the controller 215 may rebuild the CMB 212 after the system 200 is powered on.
[0055] One or more types of data structures defined by the NVMe protocol may be stored in the CMB 212 or may be stored in the host memory 205. For example, the CXL-SSD device 210 may store one or more of the NVMe data structures in the CMB 212, the CMB including queues 304, such as submission queues (SQs), completion queues (CQs), physical page region (PRP) lists, scatter-gather list (SGL) segments, write data, read data, and combinations thereof.
[0056] The NVMe protocol standard is based on a paired submission queue and completion queue mechanism. The host system 220 places the command in a submission queue (SQ), and the controller 215 places the completion command in an associated completion queue (CQ). The host system 220 may have multiple pairs of submission queues and completion queues for different types of commands. In response to a notification from the host system 220, the controller 215 retrieves the command from the submission queue. Thereafter, the controller 215 processes the command, for example, performs internal command selection, executes the command (e.g., performs write or read), and the like. After processing the command, the controller 215 places an entry in the completion queue, wherein the entry indicates that the execution of the command has been completed. The controller 215 then generates an interrupt to the host device, indicating that the entry has been placed on the completion queue. The host system 220 checks the entry of the completion queue, and then notifies the controller 215 that the entry of the completion queue has been checked.
[0057] Generally, submission queues and completion queues are allocated within host memory 205, where each queue may be physically located contiguously or non-contiguously in host memory. However, the CXL-SSD device 210 supported in the NVMe standard enables the host system 220 to place submission queues, completion queues, physical page region (PRP) lists, scatter-gather lists (SGLs), and data buffers in CMB 212 instead of in host memory 205.
[0058] The controller 215 may include a CMB manager to sort received host write transactions to the CMB 212. A host write or read transaction to the CMB 212 may be associated with a host write or read command. In certain embodiments, the controller 215 may sort the host write transaction into one of three NVM data structure groups of NVMe queues 214, pointers 216, and data buffers 218. The NVMe queues 214 include a host submission queue (SQ) and a host completion queue (CQ).
[0059] The Submission Queue (SQ) is a circular buffer with a fixed slot size that the host system 220 uses to submit commands for execution by the controller 215. When there are one or more new commands to be executed, the host system 220 updates the appropriate SQ Tail doorbell register. When there is a new doorbell register write, the previous SQ Tail value is overwritten in the controller 215. The controller 215 takes SQ entries from the SQ in order, however, it can then execute those commands in any order. Each SQ entry is a command. The size of a command is 64 bytes. The command specifies the physical memory location in the host memory 205 for data transfer via a physical region page (PRP) entry.
[0060] The Completion Queue (CQ) is a circular buffer with a fixed slot size that is used to publish the status of completed commands. Completed commands are uniquely identified by the combination of the associated SQ identifier and the command identifier assigned by the host system 220. Multiple SQs can be associated with a single CQ. The CQ head pointer is updated by the host software after the completion entry indicating the last free CQ entry has been processed. The phase (P) bit is defined in the completion entry to indicate whether the entry has been recently published without querying the register. This enables the host software to determine whether the new entry was published as part of the previous round or the current round of completion notifications. Specifically, the controller toggles the phase bit in each round through the completion queue positions.
[0061] Pointers 216 may include a list of physical region pages (PRPs) and a scatter-gather list (SGL). The PRP list contains pointers indicating physical memory pages that are populated or to be populated with user data, such as for a read or write command in NVMe queue 214. The SGL contains pointers indicating the physical address of host memory 205 from which data should be transferred for a write command and to which data should be transferred for a read command. In some embodiments, the SGL contains pointers indicating the physical address of PBAM 226 from which data should be transferred for a write command and to which data should be transferred for a read command. Data buffer 218 may contain user data to be written to CXL-SSD device 210 associated with a write command and / or user data to be read from CXL-SSD device 210 associated with a read command.
[0062] In certain embodiments, the controller 215 allows certain commands associated with the NVMe queue 214, the pointer 216, and the data buffer 218 to be stored in the CMB 212 to reduce command execution latency for the CXL-SSD device 210. For example, if the SQ is located in the host memory 205, then the host command entry written to the CMB 212 implemented by the SQ avoids fetching the host command entry through the PCIe fabric that may include multiple switches. If the PRP list and SGL are located in the host memory 205, then the PRP list and SGL written to the CMB 212 of the CXL-SSD device 210 avoids fetching the PRP list and SGL separately through the PCIe fabric. User data written to the CMB 212 of the CXL-SSD device 210 avoids causing the CXL-SSD device 210 to fetch the user data from the host memory 205.
[0063] Controller 215 may communicate with host system 220 and components of CXL-SSD device 210 through host interface 218. Controller 215 may retrieve commands from the SQ, process the commands, and submit completion notifications to the CQ of host system 220.
[0064] CXL-SSD device 210 includes DRAM 222 for storing firmware control data (e.g., firmware control tables). DRAM 222 is a volatile memory or cache buffer used for short-term storage or temporary memory during operation of CXL-SSD device 210. Volatile memory does not retain stored data if power is lost. DRAM typically requires periodic refresh of stored data. In some implementations, DRAM 222 does not store user data. In some implementations, DRAM 222 is not byte-addressable by host system 220, i.e., the addresses of DRAM 222 are not accessible by host system 220.
[0065] CXL-SSD device 210 includes NAND array 224. NAND 224 is a non-volatile memory for storing user data provided by host system 220. NAND 224 may include SLC blocks and other types of blocks, such as TLC blocks. For example, user data may be first written in an SLC block, and when enough data has been written in an SLC block, such as three SLC blocks, the user data in the SLC block may be folded into a TLC block, such as one TLC block.
[0066] The CXL-SSD device 210 includes a PBAM array 226. For various implementations or use cases that may utilize transaction-oriented persistent memory, the PBAM 226 is a system-exposed byte-addressable persistent memory next to the block memory (e.g., NAND array 224). The PBAM 226 is a non-volatile memory used as an intermediate layer for storing user data, where the user data will be transferred from and ultimately stored in the receiving memory (e.g., NAND 224). The PBAM 226 is byte-addressable by the host system 220, that is, the address of the PBAM 226 is directly accessible by the host system 220. The host system 220 can write to or read from the PBAM 226 directly. The granularity of bytes that can be written to or read from the PBAM 226 is 64 bytes, which is much smaller than the 16KB granularity of the NAND 224.
[0067] In some embodiments, the controller 215 further includes a PBAM manager 113 coupled or integrated with the processor 217 and the host interface 218, as will be discussed in greater detail. The PBAM manager 113 may be processing logic that may include hardware (e.g., a processing device, circuitry, dedicated logic, programmable logic, microcode, hardware of a device, integrated circuit, etc.), firmware (e.g., instructions running or executed on the processor 217), or a combination thereof.
[0068] The PBAM manager 113 may retrieve the command from the SQ, process the command using the PBAM 226, and submit a completion notification to the CQ of the host system 220. The command may be of different types, including NVMe write / read commands, or CXL.mem write / read commands. As described below, Figure 3 Describes the operation of the PBAM manager 113 (and / or controller 215) for NVMe write / read commands, while Figure 4 The operation of the PBAM manager 113 (and / or controller 215) for CXL.mem write / read commands is described below. In some embodiments, the PBAM manager 113 may determine whether a received command is an NVMe command or a CXL.mem command. In response to determining that the received command is an NVMe command, the PBAM manager 113 may perform Figure 3 In response to determining that the received command is a CXL.mem command, PBAM manager 113 may perform Figure 4 The operation described.
[0069] refer to Figure 3, the host system 220 may send an NVMe write command 315A to write user data in the NAND 224. The host system 220 may send the NVMe write command 315A to the controller 215 by placing the NVMe write command 315A in the SQ 314A. The controller 215 (e.g., via the PBAM manager 113) obtains the NVMe write command 315A from the SQ 314A and executes the NVMe write command 315A by writing the user data 318A (“write data”) specified in the NVMe write command in the PBAM 226. Writing data in the PBAM 226 may involve writing a portion of the data contiguously or non-contiguously in any available space in the PBAM 226. Writing data in the PBAM 226 is performed at a data granularity of a small size (e.g., 64 bytes). The granularity of the data size for writing in the PBAM 226 is smaller than the granularity of the data size for writing in the NAND 224. Specifically, the user data 318A is packaged in X-byte (e.g., 64-byte) packets (i.e., blocks), and the controller 215 writes the packets one by one in the PBAM 226. In some embodiments, the host system 220 may send a message including the physical memory address of the user data 318A stored in the host memory 205 to the controller 215, and the controller 215 may access the user data 318A through the physical memory address and store the user data 318A in the PBAM 226. In some embodiments, when the user data 318A is written in the PBAM 226, for example, when a specific data block is being transferred, a power outage may occur. In such a case, the specific data block will not be stored in the PBAM 226, however, since the size of the data block is small, system recovery after power-on may be efficient because only the small-sized data block needs to be rewritten.
[0070] In some embodiments, after writing the data in the PBAM 226, the controller 215 (e.g., via the PBAM manager 113) may update the SGL 316B for the PBAM 226 so that the user data 318A may point to the corresponding address of the PBAM 226. After a certain amount of data has been stored in the PBAM 226 for the NVMe write command 315A, the controller 215 may write the data already stored in the PBAM 226 to the NAND 224. In some implementations, the controller 215 may use the SGL 316B to access the user data 318B stored in the PBAM 226 and store it in the NAND 224. Writing the data in the NAND 224 is performed at a granularity of a large size (e.g., 16KB). For example, 256 blocks of data (e.g., pages) stored in the PBAM 226 may be written to one block of data (e.g., page) in the NAND 224. In some embodiments, a power outage may occur while the user data 318A is being written to the NAND 224. In such a case, because the user data 318A is stored in persistent memory, the controller 215 can retransmit the affected user data 318A from the PBAM 226 to the NAND 224 after power-up without interacting with the host system 220.
[0071] The controller 215 (e.g., via the PBAM manager 113) may continue to write data in the PBAM array 326 and then transfer the PBAM array 326 to the NVM array 324 until the process of writing the user data 316A specified in the NVMe write command 315A is completed. The controller may write an entry in the CQ 314B indicating that the NVMe write command 315A has been executed.
[0072] refer to Figure 3, the host system 220 may send an NVMe read command 315B to read data from the NAND 224. The host system 220 may send the NVMe read command 315B to the controller 215 by placing the NVMe read command 315B in the SQ 314A. The controller 215 (e.g., via the PBAM manager 113) obtains the NVMe read command 315B from the SQ 314A and executes the NVMe read command 315B by reading the user data 318B (“read data”) specified in the NVMe write command from the NAND 224. In some embodiments, reading data from the NAND 224 may involve writing a portion of the data, either continuously or non-contiguously, in any available space in the host storage 205. In some embodiments, reading data from the NAND array 224 may involve writing a portion of the data, either continuously or non-contiguously, in any available space in the PBAM 226 so that the user data 318B may be used by the host system 220 for other operations. As described above, writing data in the PBAM 226 is performed with a small-sized (e.g., 64-byte) data granularity. Specifically, the user data 318B is encapsulated in Y-byte (e.g., 64-byte) packets (i.e., blocks), and the controller 215 writes the packets one by one in the PBAM 226. In some implementations, while the user data 318B is being written in the PBAM 226, for example, when a particular data block is being transferred, a power outage may occur. In such a case, the particular data block will not be stored in the PBAM 226, however, due to the small size of the data block, system recovery after power-on may be efficient because only the small-sized data blocks need to be rewritten.
[0073] The controller 215 may continue to write data in the host memory 205 or the PBAM array 326 until the process of reading the user data 316B specified in the NVMe read command 315B is completed. The controller may write an entry in the CQ 314B indicating that the NVMe read command 315B has been executed.
[0074] refer to Figure 4, the host system 220 may send a CXL.mem write command 415A to write user data in the PBAM 326. The host system 220 may send the CXL.mem write command 415A to the controller 215 by placing the CXL.mem write command 415A in the SQ 414A. The controller 215 obtains the CXL.mem write command 315A from the SQ 414A and executes the CXL.mem write command 415A by writing the user data 418A (“write data”) specified in the CXL.mem write command in the PBAM 226. Writing data in the PBAM 226 may involve writing a portion of the data contiguously or non-contiguously in any available space in the PBAM 226. Writing data in the PBAM 226 is performed at a granularity of a small size (e.g., 64 bytes). The granularity of the size of data written in the PBAM 226 is smaller than the granularity of the size of data written in the NAND 224. Specifically, the user data 418A is encapsulated in M-byte (e.g., 64-byte) packets (i.e., blocks), and the controller 215 writes the packets one by one in the PBAM 226. In some embodiments, a power outage may occur while the user data 418A is being written in the PBAM 226, for example, when a particular data block is being transferred. In such a case, the particular data block will not be stored in the PBAM 226, however, due to the small size of the data blocks, system recovery after power-on may be efficient because only the small-sized data blocks need to be rewritten. The controller 215 (e.g., via the PBAM manager 113) may continue to write data in the PBAM array 226 until the process of writing the user data 416A specified in the CXL.mem write command 415A is completed. The controller may write an entry in the CQ 414B indicating that the CXL.mem write command 415A has been executed.
[0075] refer to Figure 4, the host system 220 may send a CXL.mem read command 415B to read data from the PBAM 226. The host system 220 may send the CXL.mem read command 415B to the controller 215 by placing the CXL.mem read command 415B in the SQ 314A. The controller 215 (e.g., via the PBAM manager 113) obtains the CXL.mem read command 415B from the SQ 314A and executes the CXL.mem read command 415B by reading the user data 318B (“read data”) specified in the CXL.mem read command from the PBAM array 226. Reading data from the PBAM 226 is performed at a data granularity of a small size (e.g., 64 bytes). Specifically, the user data 418B is packaged in N-byte (e.g., 64-byte) packets (i.e., blocks), and the controller 215 reads the packets one by one from the PBAM 226. In some embodiments, a power outage may occur while reading user data 418B from the PBAM 226, for example, while a particular data block is in transit. In such a case, the particular data block will not be received by the host system 220, however, due to the small size of the data blocks, system recovery after power-up may be efficient because only the small size data blocks need to be re-read. The controller 215 may continue to read data from the PBAM array 226 until the process of reading the user data 316B specified in the CXL.mem read command 415B is completed. The controller may write an entry in the CQ 414B indicating that the NVMe read command 315B has been executed.
[0076] exist Figure 3 and 4 In the above situation described in , after the host system 220 has used the user data stored in the PBAM 226 (for example, transferred to the recipient memory indicated by the host system 220), the PBAM manager 113 can release the memory space in the PBAM used to store the user data, so that the memory space in the PBAM can be used for other operations.
[0077] Figure 5 Flowchart of an exemplary method 500 for using persistent byte-addressable memory in a compute express link (CXL) memory device for efficient power-off recovery according to some embodiments of the present disclosure. The method 500 may be performed by processing logic, which may include hardware (e.g., a processing device, a circuit system, dedicated logic, programmable logic, microcode, hardware of a device, an integrated circuit, etc.), software (e.g., instructions running or executed on a processing device), or a combination thereof. In some embodiments, the method 500 is performed by Figure 1 PBAM Manager 113 or Figure 2215. Although shown in a particular 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.
[0078] At operation 510, processing logic may receive a host command to write or read user data. In some embodiments, processing logic may receive a first host command via a CXL.mem protocol. In some embodiments, processing logic may receive a first host command via a CXL.io protocol.
[0079] The processing logic may be part of a compute express link (CXL) enabled non-volatile memory express solid state drive (NVMe SSD) that supports a first protocol and a second protocol of an interface standard. The first protocol of the interface standard exposes a non-volatile memory of a second memory device to a host system, and the second protocol of the interface standard exposes a persistent byte-addressable memory of the first memory device to the host system. The first protocol and the second protocol are alternative protocols supported by a peripheral component interconnect express (PCIe), wherein the interface standard is a compute express link (CXL), wherein the first protocol is a CXL.io protocol, and wherein the second protocol is a CXL.mem protocol.
[0080] At operation 520, processing logic may determine whether the host command is an NVMe command or a CXL.mem command.
[0081] At operation 530A, in response to determining that the processing logic is an NVMe command, the processing logic may store the user data in the PBAM (or a first memory device including the PBAM) at a small data granularity. At operation 540A, the processing logic may transfer the user data from the PBAM to a second memory device, where the first host command specifies the second memory device to write or read the user data. In some embodiments, for the data transfer, the processing logic may use a scatter-gather list to obtain the physical address of the user data in the first memory device.
[0082] At operation 530B, in response to determining that the processing logic is a CXL.mem command, the processing logic may store the user data in the PBAM (or a first memory device including the PBAM) at a small data granularity. At operation 540B, the processing logic may transfer the user data from the PBAM to the second memory device in response to receiving the second host command, wherein the transfer of the user data stored in the first memory device to the second memory device is performed in response to the second host command. In some embodiments, for the data transfer, the processing logic may use a scatter-gather list to obtain a physical address of the user data in the first memory device.
[0083] In some embodiments, in response to determining that a power outage occurred during storage of a particular data packet in a first memory device at a first data granularity, processing logic may determine whether a first host command associated with the particular data packet was completely executed; and in response to determining that the first host command was not completely executed, processing logic may recover the particular data packet in the first memory device.
[0084] At operation 550 , in response to transferring the user data stored in the first memory device to the second memory device, the processing logic may release memory space in the PBAM (or the first memory device including the PBAM) for storing the user data.
[0085] Figure 6 An exemplary machine of a computer system 600 is shown within which a set of instructions for causing the machine to perform any one or more of the methodologies discussed herein may be executed. In some embodiments, the computer system 600 may correspond to a host system (e.g., Figure 1 ) that includes, is coupled to, or utilizes a memory subsystem (e.g., Figure 1 The memory subsystem 110 of the controller, or the computer system can be used to perform the operation of the controller (for example, to execute the operating system to execute the corresponding Figure 1 PBAR Manager 113 or Figure 2 In some embodiments, the machine may be connected (e.g., using a network) to other machines in a peer-to-peer (or distributed) network environment, or in the capacity of a server or a client machine in a client-server network environment.
[0086] The machine may be a personal computer (PC), a tablet PC, a set-top box (STB), a personal digital assistant (PDA), a cellular phone, a network appliance, a server, a network router, a switch or a bridge, or any machine capable of executing (sequentially or otherwise) a set of instructions that specify actions to be taken by the machine. Furthermore, while a single machine is described, the term "machine" should also be construed to include any collection of machines that individually or collectively execute a set (or multiple sets of instructions) to perform any one or more of the methodologies discussed herein.
[0087] The exemplary computer system 600 includes a processing device 602, a main memory 604 (e.g., read-only memory (ROM), flash memory, dynamic random access memory (DRAM), such as synchronous DRAM (SDRAM) or RDRAM, etc.), a static memory 606 (e.g., flash memory, static random access memory (SRAM), etc.), and a data storage system 618, which communicate with each other via a bus 630.
[0088] The processing device 602 represents one or more general-purpose processing devices, such as a microprocessor, a central processing unit, and the like. More specifically, the processing device may be a complex instruction set computing (CISC) microprocessor, a reduced instruction set computing (RISC) microprocessor, a very long instruction word (VLIW) microprocessor, or a processor that implements other instruction sets, or a processor that implements a combination of instruction sets. The processing device 602 may also be one or more special-purpose processing devices, such as an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a digital signal processor (DSP), a network processor, and the like. The processing device 602 is configured to execute instructions 626 for performing the operations and steps discussed herein. The computer system 600 may further include a network interface device 608 for communicating via a network 620.
[0089] The data storage system 618 may include a machine-readable storage medium 624 (also referred to as a computer-readable medium) having stored thereon one or more sets of instructions 626 or software embodying any one or more of the methodologies or functions described herein. The instructions 626 may also reside, completely or at least partially, within the main memory 604 and / or within the processing device 602 during execution thereof by the computer system 600, the main memory 604 and the processing device 602 also constituting machine-readable storage media. The machine-readable storage medium 624, the data storage system 618, and / or the main memory 604 may correspond to Figure 1 Memory subsystem 110.
[0090] In one embodiment, instructions 626 include instructions for implementing instructions corresponding to an APL management component (e.g., Figure 1 PBAR Manager 113 or Figure 2 215). Although the machine-readable storage medium 624 is shown as a single medium in the exemplary embodiment, the term "machine-readable storage medium" should be considered to include a single medium or multiple media storing one or more sets of instructions. The term "machine-readable storage medium" should also be considered to include any medium capable of storing or encoding a set of instructions for execution by a machine and causing the machine to perform any one or more of the methods of the present disclosure. The term "machine-readable storage medium" should therefore be considered to include, but not be limited to, solid-state memory, optical media, and magnetic media.
[0091] Some portions of the previous detailed description have been presented in terms of algorithms and symbolic representations of operations on data bits within a computer memory. These algorithmic descriptions and representations are the means by which those skilled in the art of data processing can most effectively convey the substance of their work to other skilled in the art. In this article, and generally, an algorithm is conceived as a self-consistent sequence of operations that produce a desired result. An operation is one that requires physical manipulation of physical quantities. Typically (but not necessarily), these quantities take the form of electrical or magnetic signals that can be stored, combined, compared, and otherwise manipulated. It has been demonstrated that it is sometimes convenient, primarily for common reasons, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, and the like.
[0092] It should be borne in mind, however, that all of these and similar terms will be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. The present disclosure may refer to the actions and processes of a computer system or similar electronic computing device that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system's memories or registers or other such information storage systems.
[0093] The present disclosure also relates to an apparatus for performing the operations described herein. This apparatus may be specially constructed for the desired purpose, or it may comprise a general purpose computer selectively activated or reconfigured by a computer program stored in the computer. This computer program may be stored in a computer-readable storage medium, such as any type of disk (including floppy disks, optical disks, CD-ROMs, and magnetic optical disks), read-only memory (ROM), random access memory (RAM), EPROM, EEPROM, magnetic or optical cards, or any type of medium suitable for storing electronic instructions, each coupled to a computer system bus.
[0094] The algorithms and displays presented herein are not inherently related to any particular computer or other device. Various general purpose systems may be used with programs according to the teachings herein, or it may prove convenient to construct a more specialized device to perform the method. The structures of various these systems will be presented as set forth in the description below. In addition, the present disclosure is described without reference to any particular programming language. It should be appreciated that the teachings of the present disclosure described herein may be implemented using various programming languages.
[0095] The present disclosure may be provided as a computer program product or software, which may include a machine-readable medium having stored thereon instructions that can be used to program a computer system (or other electronic device) to perform a process according to the present disclosure. A machine-readable medium includes any mechanism for storing information in a form readable by a machine (e.g., a computer). In some embodiments, a machine-readable (e.g., computer-readable) medium includes a machine (e.g., computer) readable storage medium, such as a read-only memory ("ROM"), a random access memory ("RAM"), a magnetic disk storage medium, an optical storage medium, a flash memory component, etc.
[0096] In the foregoing description, embodiments of the present disclosure have been described with reference to specific exemplary embodiments thereof. It will be apparent that various modifications may be made to the present disclosure without departing from the broader spirit and scope of the embodiments of the present disclosure as set forth in the appended claims. Therefore, the description and drawings should be viewed in an illustrative sense rather than a restrictive sense.
Claims
1. A system comprising: a first memory device comprising a persistent byte-addressable memory; a second memory device; and a processing device operatively coupled to the first memory device and the second memory device to perform operations including: receiving a first host command for writing or reading user data; storing the user data in the persistent byte-addressable memory at a first data granularity; and The user data stored in the persistent byte-addressable memory is transferred to the second memory device.
2. The system of claim 1, wherein the processing device is to perform operations further comprising: In response to determining that a power failure event occurred during operation of a particular data packet of the first data granularity size in the persistent byte-addressable memory, determining whether the first host command associated with the particular data packet is fully executed; and In response to determining that the first host command was not completely executed, restoring the particular data packet in the persistent byte-addressable memory.
3. The system of claim 1, wherein the first data granularity is smaller than a data granularity associated with a non-NAND type flash memory.
4. The system of claim 1, wherein the processing device is associated with a non-volatile memory express solid-state drive (NVMe) SSD enabled with a compute express link (CXL).
5. The system of claim 1 , wherein the system supports a first protocol and a second protocol of an interface standard, wherein the first protocol of the interface standard exposes the non-volatile memory of the second memory device to a host system, and the second protocol of the interface standard exposes the persistent byte-addressable memory of the first memory device to the host system.
6. The system of claim 5, wherein the first protocol and the second protocol are alternative protocols supported by Peripheral Component Interconnect Express (PCIe), wherein the interface standard is Compute Express (CXL), wherein the first protocol is the CXL.io protocol, and wherein the second protocol is the CXL.mem protocol.
7. The system of claim 6, wherein receiving the first host command is performed via the CXL.mem protocol, and wherein transferring the user data stored in the first memory device to the second memory device is performed in response to a second host command.
8. The system of claim 6, wherein receiving the first host command is performed via the CXL.io protocol, and wherein the first host command specifies the second memory device to write or read the user data.
9. The system of claim 6, wherein the processing device is to perform operations further comprising: Determine whether the first host command is a non-volatile memory express NVMe command or a computing express link CXL.mem command.
10. The system of claim 1, wherein the processing device is to perform operations further comprising: In response to transferring the user data stored in the persistent byte-addressable memory to the second memory device, memory space in the persistent byte-addressable memory for storing the user data is released.
11. The system of claim 1 , wherein transferring the user data stored in the persistent byte-addressable memory to the second memory device comprises: A scatter-gather list is used to obtain a physical address of the user data in the persistent byte-addressable memory.
12. A method comprising: receiving, by the processing device, a first host command for writing or reading user data; storing the user data in a persistent byte-addressable memory at a first data granularity; transferring said user data stored in said persistent byte-addressable memory to a second memory device; and In response to transferring the user data stored in the persistent byte-addressable memory to the second memory device, memory space in the persistent byte-addressable memory for storing the user data is released.
13. The method according to claim 12, further comprising: In response to determining that a power failure event occurred during operation of a particular data packet of the first data granularity size in the persistent byte-addressable memory, determining whether the first host command associated with the particular data packet is fully executed; and In response to determining that the first host command was not completely executed, restoring the particular data packet in the persistent byte-addressable memory.
14. The method of claim 12, wherein the first data granularity is smaller than a data granularity associated with non-NAND type flash memory.
15. The method of claim 12, wherein the processing device comprises a non-volatile memory express solid state drive (NVMe) SSD (Compute Express Link) enabled.
16. The method of claim 15, wherein the processing device supports a first protocol and a second protocol of an interface standard, wherein the first protocol of the interface standard exposes the non-volatile memory of the second memory device to a host system, and the second protocol of the interface standard exposes the persistent byte-addressable memory of the first memory device to the host system.
17. The method of claim 16, wherein the first protocol and the second protocol are alternative protocols supported by Peripheral Component Interconnect Express (PCIe), wherein the interface standard is Compute Express (CXL), wherein the first protocol is the CXL.io protocol, and wherein the second protocol is the CXL.mem protocol.
18. The method of claim 17, wherein receiving the first host command is performed via the CXL.mem protocol, and wherein transferring the user data stored in the persistent byte-addressable memory to the second memory device is performed in response to a second host command.
19. The method of claim 17, wherein receiving the first host command is performed via the CXL.io protocol, and wherein the first host command specifies the second memory device to write or read the user data.
20. A non-transitory computer-readable storage medium comprising instructions that, when executed by a processing device, cause the processing device to perform operations comprising: receiving a first host command for writing or reading user data; storing the user data in a persistent byte-addressable memory at a first data granularity, wherein the first data granularity is smaller than a data granularity associated with a non-NAND type flash memory; transferring said user data stored in said persistent byte-addressable memory to a second memory device; and In response to transferring the user data stored in the persistent byte-addressable memory to the second memory device, memory space in the persistent byte-addressable memory for storing the user data is released.
Citation Information
Cited By
Memory device and control method based on computational fast link protocol
CN119225985A
Memory device and control method based on computing fast link protocol
CN119225985B
Storage device for rapid data exchange
CN120780624A
