Hybrid volatile / non-volatile write cache
The hybrid write cache architecture addresses bottlenecks in conventional systems by combining non-volatile and volatile caches to efficiently handle bursty writes, improving write performance and maintaining low read latency in machine learning inference scenarios.
Patent Information
- Application Number
- PCT/US2026/027539
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-20
- Filing Date
- 2026-05-11
- Publication Date
- 2026-11-26
AI Technical Summary
Conventional storage systems face inefficiencies in handling modern workloads, particularly in machine learning inference scenarios, due to the limited size of non-volatile write caches protected by power loss protection, which create bottlenecks during bursty write operations and force systems to wait for writes to complete, underutilizing resources and creating artificial performance ceilings.
A hybrid write cache architecture combining a non-volatile write cache with power loss protection and a larger volatile write cache leveraging unused DRAM capacity, allowing quick absorption of large bursts of sequential writes while maintaining data coherency, with intelligent management of data flow between caches.
This approach enhances write performance by quickly absorbing bursty writes without blocking read operations, optimizing write handling, and maintaining low read latency, particularly beneficial for machine learning inference workloads.
Smart Images

Figure US2026027539_26112026_PF_FP_ABST
Abstract
Description
HYBRID VOLATILE / NON-VOLATILE WRITE CACHEPRIORITY APPLICATION
[0001] This application claims the benefit of priority to U.S. Application Serial Number 19 / 213,433, filed May 20, 2025, which is incorporated herein by reference in its entirety.TECHNICAL FIELD
[0002] Examples of the disclosure relate generally to a memory sub-system and, more specifically, to managing a write cache in the memory sub-system.BACKGROUND
[0003] A memory sub-system can include one or more memory devices that store data. The memory devices can be, for example, non-volatile memory devices and volatile memory devices. In general, a host system can utilize a memory sub-system to store data at the memory devices and to retrieve data from the memory devices.BRIEF DESCRIPTION OF THE DRAWINGS
[0004] The disclosure will be understood more fully from the detailed description given below and from the accompanying drawings of various examples of the disclosure. The drawings, however, should not be taken to limit the disclosure to the specific examples, but are for explanation and understanding only.
[0005] FIG. 1 is a block diagram illustrating an example computing system that includes a memory sub-system, in accordance with some examples.
[0006] FIG. 2 illustrates a diagram of operations performed using a write cache management component, in accordance with some examples.
[0007] FIG. 3 illustrates a diagram of operations performed using a write cache management component, in accordance with some examples.
[0008] FIG. 4 is a block diagram of an example computer system, in accordance with some examples.DETAILED DESCRIPTION
[0009] The present disclosure is directed to a memory system including a memory device with a hybrid write cache architecture that includes both a non-volatile write cache (e.g., a first write cache) protected by power loss protection and a volatile write cache (e.g., a second write cache) that excludes power loss protection. The memory system includes a processing device programmed to selectively store write data (e.g., data received from a host system) in either write cache while maintaining coherency between them based on whether a hybrid write cache mode is enabled or disabled for the memory system. When receiving write commands during operations like machine learning inference, the memory system can quickly absorb large bursts of sequential writes by utilizing both write caches (with the hybrid write cache mode enabled), with the volatile cache providing additional write bandwidth without blocking read operations. The memory system maintains data coherency by either reading data directly from the volatile write cache and / or flushing the write cache to NAND memory when needed. This approach significantly improves write performance during latency-sensitive operations by allowing writes to be quickly absorbed and then slowly drained to the memory device (e.g., the NAND) in the background. The host system maintains control over the hybrid cache usage through features like enabling overflow between write caches and controlling which writes use the protected non-volatile write cache. This architecture enhances overall memory system performance by optimizing write handling while maintaining low read latency during intensive operations like machine learning inference.
[0010] A memory sub-system can be a storage device, a memory module, or a hybrid of a storage device and memory module. Examples of storage devices and memory modules are described below in conjunction with FIG. 1. In general, a host system can utilize a memory subsystem that includes one or more components, such as memory devices that store data. The host system can send access requests to the memory sub-system, such as to store data at the memory sub-system and to read data from the memory sub-system.
[0011] The host system can send access requests (e.g., write command, read command, erase command) to the memory sub-system, such as to store data on a memory device at the memory sub-system, read data from the memory device on the memory sub-system, or write / read constructs (e.g., such as submission and completion queues) with respect to a memory device on the memory sub-system. The data to be read or written, as specified by a host request, is hereinafter referred to as “host data” or “user data.”
[0012] A host request can include logical address information (e.g., logical block address (LBA), namespace) for the host data, which is the location the host system associates with the host data and a particular zone in which to store or access the host data. The logical address information (e.g., LBA, namespace) can be part of metadata for the host data. Metadata can also include error handling data (e.g., error-correcting code (ECC) code word, parity code), data version (e.g., used to distinguish age of data written), valid bitmap (which LBAs or logical transfer units contain valid data), and so forth.
[0013] The memory sub-system can initiate media management operations, such as a write operation, on host data that is stored on a memory device. For example, firmware of the memory sub-system may rewrite previously written host data from a location of a memory device to a new location as part of garbage collection (GC) management operations. The data that is rewritten, for example as initiated by the firmware, is hereinafter referred to as “GC data.” Examples of system data include, but are not limited to, system tables (e.g., logical-to-physical memory address mapping table, also referred to herein as a logical-to-physical (L2P) mapping table (referred to as an L2P table), data from logging, scratch pad data, and so forth).
[0014] A memory device can be a non-volatile memory device. A non-volatile memory device is a package of one or more die. Each die can be comprised of one or more planes. For some types of non-volatile memory devices (e.g., AND-type devices), each plane is comprised of a set of physical blocks. For some memory devices, blocks are the smallest area that can be erased. Each block is comprised of a set of pages. Each page is comprised of a set of memory cells, which store bits of data. The memory devices can be raw memory devices (e.g., NAND), which are managed externally, for example, by an external controller. The memory devices can be managed memory devices (e.g., managed NAND), which are raw memory devices combined with a local embedded controller for memory management within the same memory device package. The memory device can be divided into one or more zones where each zone is associated with a different set of host data or user data or application.
[0015] Certain memory devices, such as NAND-type memory devices, include one or more blocks, (e.g., multiple blocks), with each of those blocks including multiple memory cells. For instance, a memory device can include multiple pages (stored across one or more word lines (WLs)), with each page including a subset of memory cells of the memory device. A threshold voltage (VT) of a memory cell (of a block) can be the voltage at which the floating gate (e.g., NAND transistor) implementing the memory cell turns on and conducts (e.g., to a bit line coupledto the memory cell). Generally, writing data to such memory devices involves programming (by way of a program operation) the memory devices at the page level of a block, and erasing data from such memory devices involves erasing the memory devices at the block level (e.g., page level erasure of data is not possible).
[0016] Conventional storage systems face significant challenges in handling modern workloads, particularly in machine learning inference scenarios. Current enterprise SSDs typically employ only a small non-volatile write cache protected by power loss protection capacitors to stage writes before committing them to flash storage (e.g., the NAND). While this architecture ensures data persistence, it creates a significant bottleneck for handling the large bursts of sequential writes that are increasingly common in modern applications, such as machine learning inference applications. The limited size of these protected write caches means they quickly fill up during burst write operations, forcing the system to wait for writes to complete before accepting new data.
[0017] While machine learning inference is traditionally considered a read-intensive operation where a trained model processes input data to generate predictions or recommendations, modern inference architectures have evolved to incorporate significant write operations in specific scenarios. For example, in recommendation systems, the paradigm has shifted from static feature-based models to dynamic sequence-based learning approaches that capture user interactions over time. These sequence-based models may require recording and updating interaction data during the inference process itself.
[0018] In such sequence-based recommendation systems, when a user performs a sequence of actions (such as watching a video trailer and subsequently purchasing the movie), the system may quickly record these interactions to inform future recommendations. These write operations occur alongside the primary read operations of inference, creating a mixed readwrite workload that conventional storage architectures struggle to handle efficiently. The ability to quickly absorb these writes without blocking the latency-sensitive read operations becomes important for maintaining responsive user experiences.
[0019] Other examples of write-intensive inference operations include online learning systems that incrementally update model parameters based on new observations, personalization engines that record user preferences during interactions, and federated learning implementations where model updates are aggregated during inference. In all these cases, thestorage system may need to efficiently handle bursts of write operations while maintaining low latency for the predominant read operations.
[0020] This conventional architecture leads to several inefficiencies and resource wastage in modern storage systems. First, the small non-volatile write cache creates an artificial performance ceiling. Additionally, the current approach forces unnecessary write serialization and blocking behavior. When the small protected cache fills up during burst write operations, the conventional memory system pauses and waits for writes to complete before accepting new data. This creates artificial bottlenecks and idle periods during which both the storage media and system processor are underutilized while waiting for the write cache to drain. The situation is particularly inefficient for modern workloads like machine learning inference, where the ability to quickly absorb bursty writes while maintaining low read latency is important for overall system performance.
[0021] The present disclosure addresses these inefficiencies by implementing a hybrid write cache architecture that combines a non-volatile write cache protected by power loss protection with a larger volatile write cache that leverages otherwise unused DRAM capacity. This innovative approach allows the disclosed system to quickly absorb large bursts of sequential writes by utilizing both write caches while maintaining data coherency when the hybrid write cache mode is enabled. The disclosed system intelligently manages write operations by allowing data to overflow from the protected non-volatile cache into the volatile cache when needed, with the ability to notify the host system when such overflow occurs. Write data is then slowly drained to the flash storage in the background while maintaining low read latency, which is particularly beneficial for machine learning inference workloads where quick write absorption without blocking reads is important. The architecture provides host system control through features like enabling cache overflow and hint fields to specify which writes need power loss protection, while maintaining data coherency by either reading directly from the volatile cache or flushing to NAND when necessary.
[0022] In some examples, a memory system is provided that implements a hybrid write cache architecture that combines protected and unprotected write caches to optimize write handling during intensive operations. The memory system includes a memory device with two distinct write caches, such as a non-volatile write cache protected by power loss protection capacitors, and a volatile write cache that leverages otherwise unused DRAM capacity without power loss protection. The volatile write cache can be of a significantly larger size (and optionally slower)than the non-volatile write cache. A processing device manages data flow between these caches and the memory device based on whether a hybrid write cache mode is enabled for the memory system. When the hybrid write cache mode is disabled, the processing device only stores and uses the non-volatile write cache for buffering requests to program or write data without utilizing the volatile write cache.
[0023] When receiving write commands, the processing device can selectively store data in either write cache while maintaining coherency between them when the hybrid write cache mode is enathe caches. The host system maintains the selective control through features like enabling cache overflow and specifying which writes require protection through hint fields. For data stored in the volatile write cache, the processing device either returns the data directly or transfers it to the memory device before returning it, depending on the specific circumstances.
[0024] The architecture supports efficient handling of bursty writes by exposing unused DRAM space as additional cache capacity. This allows quick absorption of large sequential write bursts using both write caches, with data being slowly drained to the memory device (e.g., the NAND) in the background. In some cases, the processing device maintains different write bandwidths, such as a higher bandwidth for storing data in the volatile cache and a lower bandwidth for transferring to the memory device.
[0025] During machine learning inference operations, the processing device enables use of the volatile cache to handle bursty writes while maintaining low read latency. The processing device monitors cache status and can automatically enable overflow when needed, notify the host of cache conditions, and / or manage power loss events by preserving protected cache data while accepting potential loss of volatile cache contents. For read operations, the processing device can prioritize servicing reads while continuing to handle writes through the cache hierarchy.
[0026] The implementation includes features for cache management like configuring cache sizes based on available DRAM capacity, handling flush commands, and maintaining coherency during read operations. The architecture can be implemented in various memory devices, including three-dimensional (3D) NAND devices, with the processing device managing all operations through non-transitory machine-readable storage media containing the operational instructions.
[0027] Though various examples are described herein as being implemented with respect to a memory sub-system (e.g., a controller of the memory sub-system), some or all of the portions ofan example can be implemented with respect to a host system, such as a software application or an operating system of the host system.
[0028] FIG. 1 illustrates an example computing system 100 that includes a memory sub-system 110, in accordance with some examples. The memory sub-system 110 can 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 such.
[0029] A memory sub-system 110 can be a storage device, a memory module, or a hybrid of a storage device and memory module. Examples of a storage device include a solid-state drive (SSD), a flash drive, a universal serial bus (USB) flash drive, a secure digital (SD) card, an embedded Multi-Media Controller (eMMC) drive, a Universal Flash Storage (UFS) drive, and a hard disk drive (HDD). Examples of memory modules include a dual in-line memory module (DIMM), a small outline DIMM (SO-DIMM), and various types of non-volatile dual in-line memory module (NVDIMM).
[0030] The computing system 100 can be a computing device such as a desktop computer, laptop computer, network server, mobile device, a vehicle (e.g., airplane, drone, train, automobile, or other conveyance), Internet of Things (loT) enabled device, embedded computer (e.g., one included in a vehicle, industrial equipment, or a networked commercial device), or such computing device that includes memory and a processing device.
[0031] The computing system 100 can include a host system 120 that is coupled to one or more memory sub-systems 110. In some examples, the host system 120 is coupled to different types of memory sub-systems 110. FIG. 1 illustrates one example of a host system 120 coupled to one memory sub-system 110. The host system 120 can include a processor chipset and a software stack executed by the processor chipset. The processor chipset can include one or more cores, one or more caches, a memory controller (e.g., NVDIMM controller), and a storage protocol controller (e.g., a peripheral component interconnect express (PCIe) controller, serial advanced technology attachment (SATA) controller). The host system 120 uses the memory sub-system 110, for example, to write data to the memory sub-system 110 and read data from the memory sub-system 110.
[0032] The host system 120 can include or be coupled to the memory sub-system 110 so that the host system 120 can read data from or write data to the memory sub-system 110. The host system 120 can be coupled to the memory sub-system 110 via a physical host interface. Examples of a physical host interface include, but are not limited to, a serial advanced technologyattachment (SATA) interface, a peripheral component interconnect express (PCIe) interface, a compute express link (CXL) interface, a universal serial bus (USB) interface, a Fibre Channel interface, a Serial Attached SCSI (SAS) interface, etc. The physical host interface can be used to transmit data between the host system 120 and the memory sub-system 110. The host system 120 can further utilize an NVM Express (NVMe) interface to access the memory devices 130, 140 when the memory sub-system 110 is coupled with the host system 120 by the PCIe or CXL interface. The physical host interface can provide an interface for passing control, address, data, and other signals between the memory sub-system 110 and the host system 120.
[0033] The memory devices 130, 140 can include any combination of the different types of nonvolatile memory devices and / or volatile memory devices. The volatile memory devices (e.g., memory device 140) can be, but are not limited to, random access memory (RAM), such as dynamic random access memory (DRAM) and synchronous dynamic random access memory (SDRAM).
[0034] Some examples of non-volatile memory devices (e.g., memory device 130) include a NAND type flash memory and write-in-place memory, such as a 3D cross-point memory device, which is a cross-point array of non-volatile memory cells. A cross-point array of non-volatile memory can perform bit storage based on a change of bulk resistance, in conjunction with a stackable cross-gridded data access array. Additionally, in contrast to many flash-based memories, cross-point non-volatile memory can perform a write in-place operation, where a nonvolatile memory cell can be programmed without the non-volatile memory cell being previously erased. NAND type flash memory includes, for example, two-dimensional (2D) NAND and 3D NAND.
[0035] Each of the memory devices 130, 140 can include one or more arrays of memory cells. One type of memory cell, for example, single level cells (SLCs), can store one bit per cell. Other types of memory cells, such as multi-level cells (MLCs), tri-level cells (TLCs), quad-level cells (QLCs), and penta-level cells (PLCs), can store multiple bits per cell. In some examples, each of the memory devices 130, 140 can include one or more arrays of memory cells such as SLCs, MLCs, TLCs, QLCs, or any combination of such. In some examples, a particular memory device can include an SLC portion, and an MLC portion, a TLC portion, or a QLC portion of memory cells. The memory cells of the memory devices 130, 140 can be grouped as pages that can refer to a logical unit of the memory device used to store data. With some types of memory (e.g., NAND), pages can be grouped to form blocks or superblocks. As used herein, a block includingSLCs can be referred to as a SLC block, a block including MLCs can be referred to as a MLC block, a block including TLCs can be referred to as a TLC block, and a block including QLCs can be referred to as a QLC block.
[0036] Although non-volatile memory components such as NAND type flash memory (e.g., 2D NAND, 3D NAND) and 3D cross-point array of non-volatile memory cells are described, the memory device 130 can be based on any other type of non-volatile memory, such as read-only memory (ROM), phase change memory (PCM), self-selecting memory, other chalcogenide-based memories, ferroelectric transistor random-access memory (FeTRAM), ferroelectric random access memory (FeRAM), magneto random access memory (MRAM), Spin Transfer Torque (STT)-MRAM, conductive bridging RAM (CBRAM), resistive random access memory (RRAM), oxide -based RRAM (OxRAM), negative-or (NOR) flash memory, and electrically erasable programmable read-only memory (EEPROM).
[0037] A memory sub-system controller 115 (or controller 115 for simplicity) can communicate with the memory devices 130, 140 to perform operations such as reading data, writing data, or erasing data (e.g., performing GC operations) at the memory devices 130, 140 and other such operations. The memory sub-system controller 115 can include hardware such as one or more integrated circuits and / or discrete components, a buffer memory, or a combination thereof. The hardware can include digital circuitry with dedicated (e.g., hard-coded) logic to perform the operations described herein. The memory sub-system controller 115 can be a microcontroller, special purpose logic circuitry (e.g., a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), and so forth), or other suitable processor.
[0038] The memory sub-system controller 115 can include a processor (processing device) 117 configured to execute instructions stored in local memory 119. In the illustrated example, the local memory 119 of the memory sub-system controller 115 includes an embedded memory configured to store instructions for performing various processes, operations, logic flows, and routines that control operation of the memory sub-system 110, including handling communications between the memory sub-system 110 and the host system 120.
[0039] In some examples, the local memory 119 can include memory registers storing memory pointers, fetched data, and so forth. The local memory 119 can also include ROM for storing micro-code. While the example memory sub-system 110 in FIG. 1 has been illustrated as including the memory sub-system controller 115, in another example, a memory sub-system 110 does not include a memory sub-system controller 115, and can instead rely upon external control(e.g., provided by an external host, or by a processor or controller separate from the memory subsystem).
[0040] The local memory 119 can be coupled to a write cache management component 113 that manages two distinct write caches, which can be implemented as part of the local memory 119. The write caches can include a first write cache 142 having power loss protection and a second write cache 144 that excludes power loss protection. The second write cache 144 can be of a larger size and / or of a different type than the first write cache 142. For example, the first write cache 142 can be implemented in SRAM and protected by power loss protection capacitors to ensure data persistence (e.g., during a power loss event). The second write cache 144 can leverage otherwise unused DRAM capacity without power loss protection.
[0041] Namely, in the event of a power loss (e.g., when the memory sub-system 110 loses power), data stored in the first write cache 142 is transferred to the memory device 130 using the power loss protection capacitors, while data stored in the second write cache 144 is discarded since it lacks power loss protection. This approach allows the memory sub-system 110 to maintain critical data integrity through the protected first write cache 142 while accepting potential data loss in the volatile second write cache 144 as an acceptable trade-off for improved write performance during normal operation. The write cache management component 113 handles this power loss scenario by prioritizing the transfer of protected data to non-volatile storage (e.g., the memory device 130) while efficiently managing system resources during the power loss event.
[0042] The write cache management component 113 can control data flow between the first write cache 142 and the second write cache 144 and the memory devices 130 / 140, maintaining coherency by either reading data directly from the volatile second write cache 144 or transferring it to memory device 130 (e.g., NAND) when needed. This can be performed based on enabling or disabling configuration of the memory sub-system 110 to operate using a hybrid write cache. This hybrid architecture allows the write cache management component 113 to quickly absorb large bursts of sequential writes using both write caches, with the second write cache 144 providing additional write bandwidth without blocking read operations. The write data is then slowly drained to the memory devices 130, 140 in the background while maintaining low read latency. In some cases, the memory sub-system 110 can be configured and enabled to operate using the hybrid write cache in response to a specific command or request from the host system 120. In some cases, the memory sub-system 110 can automaticallytransition into and transition out of operating in the hybrid write cache implementation based on different uses or scenarios or workloads. The memory sub-system 110 can optionally be programmed to always operate with the hybrid write cache enabled.
[0043] In machine learning inference implementations, the memory sub-system 110 depicted in FIG. 1 offers significant advantages when handling operation-specific write patterns. While machine learning inference may be viewed as read-intensive, certain recommendation systems and sequence-based learning approaches generate substantial write operations during inference as they capture and record user interactions. For example, when a user interacts with content (such as watching video trailers and subsequently purchasing movies), these sequential interactions may need to be rapidly recorded to improve future recommendation accuracy. The hybrid write cache architecture shown in FIG. 1 is particularly well-suited for this workload pattern.
[0044] As illustrated in FIG. 1, the write cache management component 113 coordinates between the first write cache 142 and second write cache 144 to efficiently handle these bursty writes during inference operations. The first write cache 142 provides power loss protection for important data, while the larger second write cache 144 serves as an overflow buffer during intensive write bursts. This architecture enables the memory sub-system 110 to quickly absorb large volumes of interaction data during inference operations without blocking the read operations that are simultaneously occurring as the model generates recommendations. The segregation of critical and non-critical write data across the two cache types allows optimization of both performance and data protection based on application requirements.
[0045] The memory sub-system controller 115 can detect when the host system 120 is performing machine learning inference operations, either through specialized commands or by recognizing characteristic access patterns. Upon such detection, the write cache management component 113 can automatically adjust its policies to favor rapid write absorption through the second write cache 144, ensuring that sequential user interaction data is captured with minimal latency impact on the primary recommendation model operations.
[0046] In general, the memory sub-system controller 115 can receive commands or operations from the host system 120 and can convert the commands or operations into instructions or appropriate commands to achieve the desired access to the memory device 130 and / or the memory device 140. The memory sub-system controller 115 can be responsible for other operations such as wear leveling operations, GC operations, error detection and ECC operations,encryption operations, caching operations, and address translations between a logical address (e.g., LBA, namespace) and a physical memory address (e.g., physical block address in a physical address space of the memory device 130 or memory device 140) that are associated with the memory devices 130, 140. The memory sub-system controller 115 can further include host interface circuitry to communicate with the host system 120 via the physical host interface. The host interface circuitry can convert the commands received from the host system 120 into command instructions to access the memory device 130 and / or the memory device 140 as well as convert responses associated with the memory device 130 and / or the memory device 140 into information for the host system 120.
[0047] The memory sub-system 110 can also include additional circuitry or components that are not illustrated. In some examples, the memory sub-system 110 can include a cache or buffer (e.g., DRAM) and address circuitry (e.g., a row decoder and a column decoder) that can receive an address from the memory sub-system controller 115 and decode the address to access the memory devices 130, 140.
[0048] In some examples, the memory device 130 includes local media controllers 135 that operate in conjunction with memory sub-system controller 115 to execute operations on one or more memory cells of the memory device 130. An external controller (e.g., memory sub-system controller 115) can externally manage the memory device 130 (e.g., perform media management operations on the memory device 130). In some examples, the 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 media management within the same memory device package. An example of a managed memory device is a managed NAND (mNAND) device. Any operation discussed as being performed by the memory sub-system controller 115 can be similarly performed by the local media controllers 135 and vice versa.
[0049] As mentioned above, the memory sub-system controller 115 includes a write cache management component 113 that manages data flow between two distinct write caches (e.g., the first write cache 142 and the second write cache 144) and the memory device 130. When receiving write commands from the host system 120, the write cache management component 113 first checks the status of the non-volatile write cache (e.g., the first write cache 142) to determine if space is available. If the non-volatile cache is not full and / or if the hybrid write cache mode is disabled for the memory sub-system 110, write data is stored directly in the protected first write cache 142. If the non-volatile cache is full, the write cache managementcomponent 113 checks whether the hybrid feature is enabled (e.g., whether the hybrid write cache mode is enabled for the memory sub-system 110). If enabled, data received from the host system 120 can overflow into the volatile second write cache 144. If disabled, the write cache management component 113 waits for space to become available in the non-volatile cache (e.g., the first write cache 142).
[0050] In sequence-based learning applications, the memory devices 130, 140 store both the trained machine learning models and the interaction data collected during inference operations. The local media controllers 135 work in concert with the write cache management component 113 to efficiently transfer write data from both caches to persistent storage, prioritizing background draining operations to minimize interference with latency-sensitive read operations. This coordinated operation between the components enables the memory subsystem 110 to maintain optimal performance during mixed read-write workloads characteristic of modern recommendation systems, where the system may need to simultaneously generate recommendations (read-intensive) while recording new user interactions (write-intensive) to improve future inference accuracy.
[0051] In some examples, before determining which write cache to use, the write cache management component 113 can examine hint fields in the write commands received from the host system 120 that indicate whether the associated write data needs to be stored in protected space or can be stored in non-protected space first. Based on these hint fields, the write cache management component 113 can selectively store the data received from the host system 120 in either the first write cache 142 or second write cache 144, allowing the host system 120 to control which writes require power loss protection. The write cache management component 113 can also receive explicit indications from the host system 120 that certain write operations do not require data persistence and that data loss is acceptable. For these operations, the write cache management component 113 can preferentially store the write data in the second write cache 144 even when space is available in the first write cache 142, optimizing the use of write cache resources based on the data protection requirements.
[0052] This selective caching approach allows the write cache management component 113 to efficiently handle different types of write data based on their persistence requirements. Critical data that needs to be protected can be stored in the first write cache 142 with power loss protection, while data that can tolerate loss is directed to the larger but unprotected second write cache 144. The host system 120 can maintain control through both hint fields and explicitindicators, ensuring proper handling of data based on application needs and / or based on selectively enabling / disabling the hybrid write cache mode or feature of the memory subsystem 110.
[0053] For data stored in the second write cache 144, the write cache management component 113 maintains coherency. This can be done by either returning data directly from the volatile cache in response to read requests from the host system 120, or first transferring it to NAND memory if needed. For example, when the host system 120 issues a read command for data that was recently written and is still stored in the second write cache 144, the write cache management component 113 can return that data directly from the volatile cache (e.g., the second write cache 144) without first transferring the data to the memory device 130, improving read latency performance. In another scenario, if the write cache management component 113 receives a read command for data in the second write cache 144 but determines the data needs to be persisted, the write cache management component 113 can first (or in parallel) transfer the data to the memory device 130 before / during returning the data to the host system 120. This ensures data consistency while still maintaining efficient operation.Additionally, when handling sequential read operations, the write cache management component 113 can check if requested data spans both write caches and coordinates returning data from either the volatile cache or memory device 130 as appropriate. For example, if part of a read request corresponds to data in the second write cache 144 while another part requires reading from the memory device 130, the write cache management component 113 manages returning the complete data set while maintaining coherency.
[0054] The write cache management component 113 implements background draining of write data from both write caches to NAND memory at a controlled rate to avoid impacting read performance. A higher bandwidth is maintained for storing data in the volatile cache compared to the transfer rate to NAND. For example, during machine learning inference operations performed by the host system 120 (as indicated by a specialized command provided from the host system 120 to the memory sub-system 110), the write cache management component 113 can maintain a significantly higher write bandwidth (e.g., 6.7 GB / s with a 32-bit DRAM interface) for storing data in the volatile second write cache 144 compared to the slower background transfer rate to NAND memory device 130. This allows the write cache management component 113 to quickly absorb large bursts of writes without creating bottlenecks. In another scenario, when handling sequential write operations, the write cachemanagement component 113 can implement intelligent background draining by monitoring write patterns and adjusting the transfer rate accordingly. If the write cache management component 113 detects that write operations are becoming more intensive (e.g., the number of write operations received within a specified period transgresses a threshold value), the write cache management component 113 can increase the drain rate to ensure sufficient cache space remains available while still maintaining optimal read performance.
[0055] Additionally, during periods of lower write activity, the write cache management component 113 can reduce the background drain rate to minimize impact on other operations. This adaptive approach ensures efficient use of system resources by matching the drain rate to actual workload demands while maintaining the ability to quickly absorb sudden bursts of writes through the higher-bandwidth volatile cache path.
[0056] In some examples, the write cache management component 113 can receive flush or shutdown commands from the host system 120. In such cases, the write cache management component 113 ensures all cached data is properly transferred to NAND memory devices 130, 140 (e.g., starting with the first write cache 142, such as if the hybrid write cache mode is enabled). For the non-volatile write cache (e.g., the first write cache 142), data can be preserved using power loss protection, while volatile cache data (e.g., in the second write cache 144) may be discarded during power loss events. The write cache management component 113 monitors write patterns and cache utilization to dynamically adjust draining rates and overflow policies. The write cache management component 113 can automatically enable overflow to the volatile cache when the non-volatile cache fills up.
[0057] Specifically, when the non-volatile cache "fills up," it means the cache has reached its maximum storage capacity (e.g., implemented in SRAM) for staging write data. For example, when receiving sequential write commands in a burst that exceeds the small non-volatile cache size (which may only be tens of megabytes), the write cache management component 113 detects that no more write data can be stored without first draining some data to NAND. At this point, the write cache management component 113 checks if the hybrid write cache mode or feature is enabled to allow overflow to the larger volatile cache (which can be hundreds of megabytes of unused DRAM). If enabled, new write data is directed to the volatile cache while the non-volatile cache continues draining to NAND in the background at a controlled rate (e.g., 6.7 GB / s with a 32-bit DRAM interface). The write cache management component 113 maintains separate bandwidth rates, a higher rate for storing data in the volatile cache versus alower rate for transferring data to NAND. This allows the write cache management component 113 to quickly absorb large bursts of writes by utilizing the full bandwidth of the DRAM interface (up to 17 GB / s with 64-bit bus) while gradually moving data to permanent storage without creating bottlenecks
[0058] For machine learning inference workloads performed by the host system 120, the write cache management component 113 can be optimized for quick absorption of bursty writes while maintaining low read latency. The write cache management component 113 can prioritize servicing reads while allowing writes to be handled through the cache hierarchy.
[0059] The write cache management component 113 supports host control through features like enabling / disabling overflow between caches and hint fields to specify which writes require power loss protection. The write cache management component 113 can provide cache status information and notifications to the host system 120 when data overflows to the volatile cache.
[0060] For example, when receiving write commands with hint fields, the write cache management component 113 examines these fields to determine whether the associated write data requires power loss protection. Based on these hints, the write cache management component 113 selectively stores critical data in the protected first write cache while allowing non-critical data to use the unprotected second write cache, giving the host system 120 finegrained control over data persistence requirements. For example, when receiving write commands with hint fields indicating data can be stored in unprotected space, the write cache management component 113 can directly store that write data in the second write cache 144 even when space is available in the first write cache 142. This allows the write cache management component 113 to optimize cache usage by reserving the protected first write cache for data that requires power loss protection. In another scenario, when the host system 120 indicates through a feature enable command that data loss is acceptable for certain write operations, the write cache management component 113 can preferentially use the larger volatile second write cache 144 to handle those writes. This maximizes the available write bandwidth (up to 17 GB / s with 64-bit bus) while accepting the trade-off of potential data loss during power events. Additionally, during machine learning inference operations where quick write absorption is important but data persistence is not required, the write cache management component 113 can be configured to store write data directly in the second write cache 144 to maintain low read latency. The write cache management component 113 can still maintaincoherency by either returning data directly from the volatile cache or transferring it to NAND when needed.
[0061] In another scenario, the write cache management component 113 supports host control through a feature enable command that allows overflow between caches. When this feature is enabled and the first write cache 142 becomes full, the write cache management component 113 can automatically begin storing write data in the second write cache 144 while notifying the host system 120 through an asynchronous event notification (AEN) that data is now being stored without power loss protection. Specifically, when the non-volatile first write cache 142 reaches a configurable threshold (e.g., 80% capacity), the write cache management component 113 monitors this threshold and sends an AEN to the host system 120 indicating that overflow to the volatile second write cache 144 is imminent. This early notification allows the host system 120 to prepare for potential data being stored without power loss protection.
[0062] In some examples, in addition to the AEN mechanism, the hybrid cache architecture can also support a polling-based notification method. In this implementation, when the nonvolatile first write cache 142 approaches its configurable threshold (e.g., 80% capacity), rather than sending an AEN, the write cache management component 113 can set a status flag in a register that is accessible to the host system 120. The host system 120 can periodically poll this status register to check whether overflow to the volatile second write cache 144 is imminent. While this polling mechanism requires more active monitoring by the host system compared to the push-based AEN approach, it provides a reliable alternative that may be used in systems where AEN handling is complex or unavailable. The write cache management component 113 maintains the status flag until the non-volatile cache utilization drops below the threshold or until the host system acknowledges the flag. This polling-based approach ensures that even in host environments with limited support for asynchronous notifications, the system can still provide early warning about potential data storage without power loss protection, allowing the host to prepare accordingly .
[0063] When the first write cache 142 actually becomes full and begins overflowing data to the second write cache 144, the write cache management component 113 sends another AEN to notify the host system 120 that write data is now being stored in the volatile cache (e.g., the second write cache 144). The write cache management component 113 can also set status bits that the host system 120 can poll to monitor the overflow condition. Additionally, the write cache management component 113 maintains counters tracking the amount of data that hasoverflowed to the volatile cache. When these counters reach certain thresholds (e.g., 25%, 50%, 75% of volatile cache capacity), the write cache management component 113 sends corresponding AEN notifications to keep the host system 120 informed of the increasing volatile cache utilization. This allows the host system 120 to make informed decisions about issuing flush commands or adjusting its write patterns based on how much data is being stored without power loss protection.
[0064] Additionally, the write cache management component 113 provides cache status monitoring capabilities to the host system 120. When the host queries or polls the write cache management component 113 for the cache status, the write cache management component 113 can report whether and / or how much write data is currently stored in the volatile second write cache 144, allowing the host system 120 to make informed decisions about issuing flush commands or adjusting its write patterns. This status reporting, combined with the overflow notifications and hint field controls, gives the host system 120 comprehensive visibility and control over how its data is cached.
[0065] The component's operations are implemented through machine-readable instructions stored in memory and executed by the processing device. This allows flexible configuration and updates to the cache management policies as needed.
[0066] Any discussion with respect to the memory device 130 can similarly be applied to the memory device 140.
[0067] FIG. 2 illustrates a flow diagram 200 showing operations performed by the write cache management component 113. The process can be implemented through various forms of processing logic, including hardware components (such as processing devices, dedicated logic circuits, programmable logic, microcode, or integrated circuits), software instructions executed on a processing device, or combinations thereof. The memory sub-system controller 115 or its subcomponents can perform these operations, with the write cache management component 113 handling key aspects of the process.
[0068] The flow diagram 200 begins at operation 202, where the write cache management component 113 receives a request from a host system 120 to program a set of data. This represents the initial write command being sent from the host system 120 to the memory subsystem 110.
[0069] At operation 204, in response to receiving the request, the write cache management component 113 determines whether a hybrid write cache mode is enabled for the memory sub-system 110 to improve write bandwidth. If so, the write cache management component 113 selectively stores the set of data in either a first write cache 142 having power loss protection or a second write cache 144 that excludes power loss protection but that is larger in size than the first write cache 142. At operation 214, the write cache management component 113 stores the set of data in only the first write cache 142 in response to determining that the hybrid write cache mode is disabled. The write cache management component 113 determines which cache to use to selectively write the data in the first write cache 142 or the second write cache 144 based on factors like hint fields from the host, cache status, and whether the hybrid feature is enabled.
[0070] At operation 216, the write cache management component 113 transfers the data stored in both write caches to a memory device 130. This transfer occurs in the background at a controlled rate to avoid impacting read performance, with data from the volatile second write cache 144 being drained slowly while maintaining coherency. The write cache management component 113 ensures proper handling of the data transfer process while maintaining system performance and data integrity.
[0071] FIG. 3 illustrates a diagram of operations performed using a write cache management component, in accordance with some examples. The process can be implemented through various forms of processing logic, including hardware components (such as processing devices, dedicated logic circuits, programmable logic, microcode, or integrated circuits), software instructions executed on a processing device, or combinations thereof. The memory sub-system controller 115 or its subcomponents can perform these operations, with the write cache management component 113 handling key aspects of the process.
[0072] The flow diagram of FIG. 3 begins at operation 302, where the write cache management component 113 receives a write command from the host system 120. At operation 304, the write cache management component 113 checks the write cache status to determine if the non-volatile cache (e.g., the first write cache 142) is full. Based on this check, the flow branches in two directions. If the non-volatile cache is not full, the write cache management component 113 moves to operation 306 where data is stored in the non-volatile write cache (e.g., the first write cache 142). The write cache management component 113 then proceeds to operation 308 where the data is drained from the first write cache 142 to NAND memory (e.g., memory device 130) in the background.
[0073] If the non-volatile cache is full, the write cache management component 113 moves to operation 316 to check if the hybrid feature of the memory sub-system 110 is enabled. If not enabled, the write cache management component 113 performs operation 318 where the write cache management component 113 waits for non-volatile cache space to become available. If enabled, the write cache management component 113 stores data in the volatile write cache (e.g., the second write cache 144) at operation 320.
[0074] For data in the volatile cache, the write cache management component 113, at operation 322, checks if a read request is received. If yes, the write cache management component 113 performs operation 324 to determine if the requested data is in the volatile cache. If the data is in the volatile cache, the write cache management component 113 performs operation 326 where the write cache management component 113 returns the data directly to the host system 120. If the write cache management component 113 determines at operation 324 that the data is not in the volatile cache, the write cache management component 113 reads the data from the NAND memory at operation 328.
[0075] The process also includes operation 310 which checks for shutdown / flush commands. If the write cache management component 113 receives a shutdown / flush command from the host system 120, at operation 312 the write cache management component 113 flushes all write caches to NAND, starting with the first write cache 142 and then moving to transfer data from the second write cache 144 after depleting the first write cache 142. If no shutdown / flush command is received, at operation 314 the write cache management component 113 continues normal operations.
[0076] In some examples, in addition to the binary flush operation described in operation 310, the system could be enhanced to support host-controlled variable flush rates. In such cases, the host system 120 can specify a dedicated percentage of NAND bandwidth allocated specifically for flushing the volatile write cache. This granular control enables the host system 120 to balance system performance needs with data protection requirements by setting an appropriate flush rate (e.g., dedicating 30% of NAND bandwidth to background flushing while maintaining 70% for other operations). The write cache management component 113 can implement this partial flush capability by throttling the rate at which data is transferred from the second write cache 144 to the memory device 130, allowing important operations to continue with minimal performance impact while still gradually reducing the volume of at-risk data in the volatilecache. This approach provides the host system 120 with more nuanced control over the performance- versus-protection tradeoff.
[0077] For example, in a machine learning inference scenario processing high-priority requests, the write cache management component 113 can implement this variable flush capability through a token bucket algorithm that controls I / O operations per second (IOPS) allocation. When the host system 120 sets a 25% NAND bandwidth allocation for background flushing, the write cache management component 113 can configure internal flush queues with appropriate QoS parameters. A 1TB SSD with 2GB / s maximum write bandwidth may allocate 500MB / s specifically for background volatile cache flushing while preserving 1.5GB / s for direct host operations.
[0078] The implementation involves the write cache management component 113 maintaining separate command queues for host operations and background flushes, with the controller firmware continuously monitoring NAND channel utilization. If actual flush operations begin consuming more than the allocated 25%, the write cache management component 113 can dynamically pause flush operations until averaged bandwidth utilization returns to the specified threshold. This ensures precise bandwidth control while preventing flush operations from negatively impacting host workloads. Additionally, if the host determines that a temporary spike in read performance is needed for an inference operation, the host system 120 can temporarily reduce the flush rate to 10%, then increase it to 40% during subsequent idle periods, maintaining the same average data protection timeline while optimizing for workloadspecific performance requirements .
[0079] FIG. 4 illustrates an example machine in the form of a computer system 400 within which a set of instructions can be executed for causing the machine to perform any one or more of the methodologies discussed herein. In some examples, the computer system 400 can correspond to a host system (e.g., the host system 120 of FIG. 1) that includes, is coupled to, or utilizes a memory sub-system (e.g., the memory sub-system 110 of FIG. 1) or can be used to perform the operations described herein. In alternative examples, the machine can be connected (e.g., networked) to other machines in a local area network (LAN), an intranet, an extranet, and / or the Internet. The machine can operate in the capacity of a server or a client machine in a clientserver network environment, as a peer machine in a peer-to-peer (or distributed) network environment, or as a server or a client machine in a cloud computing infrastructure or environment.
[0080] The machine can be a personal computer (PC), a tablet PC, a set-top box (STB), a Personal Digital Assistant (PDA), a cellular telephone, a web appliance, a server, a network router, a switch or bridge, or any machine capable of executing a set of instructions (sequential or otherwise) that specify actions to be taken by that machine. Further, while a single machine is illustrated, the term “machine” shall also be taken to include any collection of machines that individually or jointly execute a set (or multiple sets) of instructions to perform any one or more of the methodologies discussed herein.
[0081] The example computer system 400 includes a processing device 402, a main memory 404 (e.g., ROM, flash memory, DRAM such as SDRAM or Rambus DRAM (RDRAM), etc.), a static memory 406 (e.g., flash memory, static random access memory (SRAM), etc.), and a data storage device 410, which communicate with each other via a bus 418.
[0082] The processing device 402 represents one or more general-purpose processing devices such as a microprocessor, a central processing unit, or the like. More particularly, the processing device 402 can be a complex instruction set computing (CISC) microprocessor, a reduced instruction set computing (RISC) microprocessor, a very long instruction word (VLIW) microprocessor, a processor implementing other instruction sets, or processors implementing a combination of instruction sets. The processing device 402 can also be one or more specialpurpose processing devices such as an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a digital signal processor (DSP), a network processor, or the like. The processing device 402 is configured to execute instructions 416 for performing the operations and steps discussed herein. The computer system 400 can further include a network interface device 408 to communicate over a network 412.
[0083] The data storage device 410 can include a machine-readable storage medium 414 (also known as a computer-readable medium) on which is stored one or more sets of instructions 416 or software embodying any one or more of the methodologies or functions described herein. The instructions 416 can also reside, completely or at least partially, within the main memory 404 and / or within the processing device 402 during execution thereof by the computer system 400, the main memory 404 and the processing device 402 also constituting machine-readable storage media. The machine-readable storage medium 414, data storage device 410, and / or main memory 404 can correspond to the memory sub-system 110 of FIG. 1.
[0084] In one example, the instructions 416 include instructions to implement functionality corresponding to providing block failure protection for a zone memory sub-system as describedherein (e.g., the write cache management component 113 of FIG. 1). While the machine-readable storage medium 414 is shown in an example to be a single medium, the term “machine-readable storage medium” should be taken to include a single medium or multiple media that store the one or more sets of instructions. The term “machine-readable storage medium” shall also be taken to include any medium that is capable of storing or encoding a set of instructions for execution by the machine and that cause the machine to perform any one or more of the methodologies of the present disclosure. The term “machine-readable storage medium” shall accordingly be taken to include, but not be limited to, solid-state memories, optical media, and magnetic media.
[0085] Described implementations of the subject matter can include one or more features, alone or in combination as illustrated below by way of examples.
[0086] Example 1. A memory system comprising: a memory device; a first write cache having power loss protection; a second write cache that excludes power loss protection, the second write cache being larger in size than the first write cache and being of a different type than the first write cache; and a processing device, operatively coupled to the memory device, the first write cache, and the second write cache, programmed to perform operations comprising: receiving, from a host system, a request to program a set of data; determining whether a hybrid write cache mode is enabled for the memory system; in response to determining that the hybrid write cache mode is enabled to improve write bandwidth, selectively storing the set of data in either the first write cache or the second write cache; in response to determining that the hybrid write cache mode is disabled, storing the set of data in the first write cache; and transferring data stored in the first and second write caches to the memory device.
[0087] Example 2. The memory system of Example 1, the selectively storing operations comprise: receiving a feature enable command to enable overflow from the first write cache to the second write cache; enabling the hybrid write cache mode for the memory system in response to receiving the feature enable command; and in response to the enabling the hybrid write cache mode, allowing data, received from the host system, to overflow from the first write cache to the second write cache when the first write cache is full.
[0088] Example 3. The memory system of Example 2, the operations comprising: receiving write commands with hint fields indicating whether to store host data in the first write cache or the second write cache; and storing the host data in either the first write cache or the second write cache based on the hint fields.
[0089] Example 4. The memory system of any one of Examples 1-3, the operations comprising: detecting that a portion of data has overflowed into the second write cache from the first write cache; and sending a notification to the host system indicating that the portion of data has overflowed into the second write cache in response to detecting that the portion of data has overflowed into the second write cache from the first write cache.
[0090] Example s. The memory system of any one of Examples 1-4, the operations comprising: receiving a flush command from the host system in response to determining that the hybrid write cache mode is enabled; and in response to the flush command, transferring a portion of data stored in the second write cache to the memory device.
[0091] Example 6. The memory system of any one of Examples 1-5, the operations comprising: receiving a read command for a portion of data stored in the second write cache in response to determining that the hybrid write cache mode is enabled; and returning the portion of data from the second write cache to the host system without accessing the memory device.
[0092] Example 7. The memory system of any one of Examples 1-6, the operations comprising: receiving sequential write commands in a burst from the host system; and in response to determining that the hybrid write cache mode is enabled, storing data associated with the sequential write commands from the burst of sequential writes using both the first write cache and second write cache.
[0093] Example 8. The memory system of any one of Examples 1-7, wherein the first write cache comprises SRAM and the second write cache comprises DRAM.
[0094] Example 9. The memory system of Example 8, the selectively storing operations comprise: exposing unused DRAM space as the second write cache in response to determining that the hybrid write cache mode is enabled; and using the exposed unused DRAM space to handle bursty writes.
[0095] Example 10. The memory system of any one of Examples 1-9, the selectively storing operations comprise: maintaining a first write bandwidth for storing data in the second write cache; and maintaining a second write bandwidth for transferring data from the second write cache to the memory device, the first write bandwidth being greater than the second write bandwidth.
[0096] Example 11. The memory system of any one of Examples 1-10, the operations comprising: detecting a power loss event; and in response to detecting the power loss event,storing data in the first write cache to the memory device while discarding data stored in the second write cache.
[0097] Example 12. The memory system of any one of Examples 1-11, the operations comprising: detecting that the host system is performing machine learning model inference operations; and in response to detecting the inference operations, enabling the hybrid write cache mode to use the second write cache to handle bursty writes during the inference operations while maintaining low latency for read operations.
[0098] Example 13. The memory system of any one of Examples 1-12, the operations comprising: detecting that the first write cache is full; and automatically enabling overflow of data to the second write cache in response to detecting that the first write cache is full and in response to determining that the hybrid write cache mode is enabled.
[0099] Example 14. The memory system of any one of Examples 1-13, the operations comprising: receiving a query for cache status from the host system; and providing an indication to the host system of whether write data is currently stored in the second write cache.
[0100] Example 15. The memory system of any one of Examples 1-14, the operations comprising: receiving write commands during read operations; and prioritizing servicing of read operations while storing write data in the second write cache.
[0101] Example 16. The memory system of any one of Examples 1-15, the operations comprising: receiving, from the the host system, a read command for data stored in the second write cache; and determining whether to return the data directly from the second write cache or transfer the data to the memory device before returning the data to host system.
[0102] Example 17. The memory system of Example 16, the operations comprising: in response to determining to transfer the data, transferring the data to the memory device before returning the data in response to the read command.
[0103] Example 18. The memory system of any one of Examples 1-17, wherein the memory device comprises a three-dimensional (3D) NAND device.
[0104] Example 19. At least one non-transitory machine-readable storage medium comprising instructions that, when executed by a processing device, cause the processing device to perform operations comprising: receiving, from a host system, a request to program a set of data; determining whether a hybrid write cache mode is enabled for a memory system; in response to determining that the hybrid write cache mode is enabled to improve write bandwidth, selectivelystoring the set of data in either a first write cache or a second write cache, the first write cache having power loss protection, and the second write cache being larger in size than the first write cache and being of a different type than the first write cache; in response to determining that the hybrid write cache mode is disabled, storing the set of data in the first write cache; and transferring data stored in the first and second write caches to a memory device.
[0105] Example 20. A method comprising: receiving, from a host system, a request to program a set of data; determining whether a hybrid write cache mode is enabled for a memory system; in response to determining that the hybrid write cache mode is enabled to improve write bandwidth, selectively storing the set of data in either a first write cache or a second write cache, the first write cache having power loss protection, and the second write cache being larger in size than the first write cache and being of a different type than the first write cache; in response to determining that the hybrid write cache mode is disabled, storing the set of data in the first write cache; and transferring data stored in the first and second write caches to a memory device.
[0106] The term “coupled with” generally refers to a connection between components, which can be an indirect communicative connection or direct communicative connection (e.g., without intervening components), whether wired or wireless, including connections such as electrical, optical, magnetic, and the like.
[0107] “System data” herein refers to data that is created and / or maintained by the memory sub-system for performing operations in response to host requests and for media management.
[0108] “User data” herein generally refers to host data and garbage collection data.
[0109] "Write cache" herein refers to a memory buffer used to temporarily store write data before it is transferred to the memory device (e.g., the NAND). Such a buffer can be either a non-volatile write cache that is protected by power loss protection capacitors and implemented in SRAM, or (2) a volatile write cache implemented in otherwise unused DRAM that does not include power loss protection. Write cache can sometimes be referred to as a write buffer and such references should carry the same meaning as the write cache.
[0110] Some portions of the preceding detailed descriptions 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 ways used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. An algorithm is here, and generally, conceived to be a self-consistent sequence of operations leading to a desired result. The operations are those requiring physical manipulations of physicalquantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, combined, compared, and otherwise manipulated. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like.
[0111] It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. The present disclosure can refer to the action 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 memories or registers or other such information storage systems.
[0112] The present disclosure also relates to an apparatus for performing the operations herein. This apparatus can be specially constructed for the intended purposes, or it can include a general purpose computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program can be stored in a computer-readable storage medium, such as, but not limited to, any type of disk including floppy disks, optical disks, CD-ROMs, and magnetic-optical disks, ROMs, RAMs, EPROMs, EEPROMs, magnetic or optical cards, or any type of media suitable for storing electronic instructions, each coupled to a computer system bus.
[0113] The algorithms and displays presented herein are not inherently related to any particular computer or other apparatus. Various general-purpose systems can be used with programs in accordance with the teachings herein, or it can prove convenient to construct a more specialized apparatus to perform the method. The structure for a variety of these systems will appear as set forth in the description below. In addition, the present disclosure is not described with reference to any particular programming language. It will be appreciated that a variety of programming languages can be used to implement the teachings of the disclosure as described herein.
[0114] The present disclosure can be provided as a computer program product, or software, that can include a machine-readable medium (such as a non-transitory machine-readable medium) having stored thereon instructions, which can be used to program a computer system (or other electronic devices) 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 examples, a machine-readable (e.g., computer-readable) medium includes a machine (e.g., a computer) readable storage medium such as a ROM, RAM, magnetic diskstorage media, optical storage media, flash memory components, and so forth. A machine-readable storage medium can be non-transitory (in other words, not having any transitory signals) in that it does not embody a propagating signal. However, labeling a machine-readable storage medium “non-transitory” should not be construed to mean that the machine-readable storage medium is incapable of movement; the machine-readable storage medium should be considered as being transportable from one physical location to another.
[0115] In the foregoing specification, examples of the disclosure have been described with reference to specific examples thereof. It will be evident that various modifications can be made thereto without departing from the broader scope of examples of the disclosure as set forth in the following claims. The specification and drawings are, accordingly, to be regarded in an illustrative sense rather than a restrictive sense.
Claims
1. CLAIMSWhat is claimed is:
1. A memory system comprising:a memory device;a first write cache having power loss protection;a second write cache that excludes power loss protection, the second write cache being larger in size than the first write cache and being of a different type than the first write cache; anda processing device, operatively coupled to the memory device, the first write cache, and the second write cache, programmed to perform operations comprising:receiving, from a host system, a request to program a set of data; determining whether a hybrid write cache mode is enabled for the memory system to improve write bandwidth;in response to determining that the hybrid write cache mode is enabled, selectively storing the set of data in either the first write cache or the second write cache;in response to determining that the hybrid write cache mode is disabled, storing the set of data in the first write cache; andtransferring data stored in the first and second write caches to the memory device.
2. The memory system of claim 1, the selectively storing operations comprise:receiving a feature enable command to enable overflow from the first write cache to the second write cache;enabling the hybrid write cache mode for the memory system in response to receiving the feature enable command; andin response to the enabling the hybrid write cache mode, allowing data, received from the host system, to overflow from the first write cache to the second write cache when the first write cache is full.
3. The memory system of claim 2, the operations comprising:receiving write commands with hint fields indicating whether to store host data in the first write cache or the second write cache; andstoring the host data in either the first write cache or the second write cache based on the hint fields.
4. The memory system of claim 1, the operations comprising:detecting that a portion of data has overflowed into the second write cache from the first write cache; andsending a notification to the host system indicating that the portion of data has overflowed into the second write cache in response to detecting that the portion of data has overflowed into the second write cache from the first write cache.
5. The memory system of claim 1, the operations comprising:receiving a flush command from the host system in response to determining that the hybrid write cache mode is enabled; andin response to the flush command, transferring a portion of data stored in the second write cache to the memory device.
6. The memory system of claim 1, the operations comprising:receiving a read command for a portion of data stored in the second write cache in response to determining that the hybrid write cache mode is enabled; andreturning the portion of data from the second write cache to the host system without accessing the memory device.
7. The memory system of claim 1, the operations comprising:receiving sequential write commands in a burst from the host system; andin response to determining that the hybrid write cache mode is enabled, storing data associated with the sequential write commands from the burst of sequential writes using both the first write cache and second write cache.
8. The memory system of claim 1, wherein the first write cache comprises SRAM and the second write cache comprises DRAM.
9. The memory system of claim 8, the selectively storing operations comprise:exposing unused DRAM space as the second write cache in response to determining that the hybrid write cache mode is enabled; andusing the exposed unused DRAM space to handle bursty writes.
10. The memory system of claim 1, the selectively storing operations comprise:maintaining a first write bandwidth for storing data in the second write cache; and maintaining a second write bandwidth for transferring data from the second write cache to the memory device, the first write bandwidth being greater than the second write bandwidth.
11. The memory system of claim 1, the operations comprising:detecting a power loss event; andin response to detecting the power loss event, storing data in the first write cache to the memory device while discarding data stored in the second write cache.
12. The memory system of claim 1, the operations comprising:detecting that the host system is performing machine learning model inference operations; andin response to detecting the inference operations, enabling the hybrid write cache mode to use the second write cache to handle bursty writes during the inference operations while maintaining low latency for read operations.
13. The memory system of claim 1, the operations comprising:detecting that the first write cache is full; andautomatically enabling overflow of data to the second write cache in response to detecting that the first write cache is full and in response to determining that the hybrid write cache mode is enabled.
14. The memory system of claim 1, the operations comprising:receiving a query for cache status from the host system; andproviding an indication to the host system of whether write data is currently stored in the second write cache.
15. The memory system of claim 1, the operations comprising:receiving write commands during read operations; andprioritizing servicing of read operations while storing write data in the second write cache.
16. The memory system of claim 1, the operations comprising:receiving, from the host system, a read command for data stored in the second write cache; anddetermining whether to return the data directly from the second write cache or transfer the data to the memory device before returning the data to host system.
17. The memory system of claim 16, the operations comprising:in response to determining to transfer the data, transferring the data to the memory device before returning the data in response to the read command.
18. The memory system of claim 1, wherein the memory device comprises a three-dimensional (3D) NAND device.
19. At least one non-transitory machine-readable storage medium comprising instructions that, when executed by a processing device, cause the processing device to perform operations comprising:receiving, from a host system, a request to program a set of data;determining whether a hybrid write cache mode is enabled for a memory system to improve write bandwidth;in response to determining that the hybrid write cache mode is enabled, selectively storing the set of data in either a first write cache or a second write cache, the first write cache having power loss protection, and the second write cache being larger in size than the first write cache and being of a different type than the first write cache;in response to determining that the hybrid write cache mode is disabled, storing the set of data in the first write cache; andtransferring data stored in the first and second write caches to a memory device.
20. A method comprising:receiving, from a host system, a request to program a set of data;determining whether a hybrid write cache mode is enabled for a memory system to improve write bandwidth;in response to determining that the hybrid write cache mode is enabled, selectively storing the set of data in either a first write cache or a second write cache, the first write cache having power loss protection, and the second write cache being larger in size than the first write cache and being of a different type than the first write cache;in response to determining that the hybrid write cache mode is disabled, storing the set of data in the first write cache; andtransferring data stored in the first and second write caches to a memory device.
