Using warp context for grouping physical units of a memory device at which to write and retrieve warp-related data
By grouping warp-related I/O commands with context attributes, the memory sub-system efficiently handles data operations, reducing resource consumption and latency, and enhancing performance through sequential access to physical units.
Patent Information
- Application Number
- PCT/US2026/029345
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2026-04-23
- Filing Date
- 2026-05-21
- Publication Date
- 2026-11-26
AI Technical Summary
The sheer volume of submission and completion queues required for handling warp-related data operations in memory systems consumes significant memory and processing resources, leading to increased latency and inefficiencies.
Grouping I/O commands originating from a given warp together with context attributes, such as metadata, to inform the memory sub-system about the workload type, allowing the memory sub-system to handle these commands by accessing specific sequential groups of physical units in the memory device.
This approach reduces memory consumption, decreases power consumption, and improves performance by enabling more efficient write and read operations, including prefetching, while minimizing fragmentation and write amplification.
Smart Images

Figure US2026029345_26112026_PF_FP_ABST
Abstract
Description
Attorney Docket No.: 34300.3881 (L3281PCT)USING WARP CONTEXT FOR GROUPING PHYSICAL UNITS OF A MEMORY DEVICE AT WHICH TO WRITE AND RETRIEVE WARP-RELATED DATATECHNICAL FIELD
[0001] Embodiments of the disclosure relate generally to memory sub-systems, and more specifically, relate to using warp context for grouping physical units of a memory device at which to write and retrieve warp-related data.BACKGROUND
[0002] 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
[0003] The present disclosure will be understood more fully from the detailed description given below and from the accompanying drawings of various embodiments of the disclosure.
[0004] FIG. 1 illustrates an example computing system that includes a memory subsystem in accordance with some embodiments.
[0005] FIG. 2 is a block diagram illustrating the warp queue pairs stored in the host memory of a host system, in accordance with some embodiments of the present disclosure.
[0006] FIG. 3 is a schematic diagram illustrating an embodiment of the warp queue pairs stored in a controller memory buffer (CMB) of the memory sub-system, in accordance with some embodiments.
[0007] FIG. 4 is a block diagram showing a submission queue and a completion queue in detail, in accordance with some embodiments.
[0008] FIG. 5 schematically illustrates example queue metadata generated by a host system, in accordance with some embodiments.
[0009] FIG. 6A is a simplified block diagram depiction of related layer data being grouped into a separate warp, in according with some embodiments.
[0010] FIG. 6B is a block diagram depiction of various sequential groups of physical units organized within a memory device by workload type, in accordance with some embodiments.
[0011] FIG. 7A is a flow diagram of an example method of using warp context (such a related metadata) for handling warp workloads, in accordance with some embodiments.Attorney Docket No.: 34300.3881 (L3281PCT)
[0012] FIG 7B is a flow diagram of an example method of using warp context (such as a related opcode) for handling warp workloads, in accordance with some embodiments.
[0013] FIG. 8 is a block diagram of an example computer system in which embodiments of the present disclosure may operate.DETAILED DESCRIPTION
[0014] Aspects of the present disclosure are directed to using warp context for grouping physical units of a memory device at which to write and retrieve warp-related data. 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 sub-system that includes one or more components, such as memory devices that store data. The host system can provide data to be stored at the memory sub-system and can request data to be retrieved from the memory sub-system.
[0015] A memory sub-system can include high density non-volatile memory devices where retention of data is desired when no power is supplied to the memory device. One example of a non-volatile memory device is a NAND memory device, such as 3D flash NAND memory, which offers storage in the form of compact, high-density configurations. Other examples of non-volatile memory devices are described below in conjunction with FIG. 1. A non-volatile memory device is a package of one or more dice, each including one or more planes. For some types of non-volatile memory devices (e.g., NAND memory devices), each plane includes a set of physical blocks. Each block includes a set of pages. Each page includes of a set of memory cells (“cells”). A cell is an electronic circuit that stores information. Depending on the cell type, a cell can store one or more bits of binary information, and has various logic states that correlate to the number of bits being stored. The logic states can be represented by binary values, such as “0” and “1”, or combinations of such values.
[0016] A memory device can include multiple cells arranged in a two-dimensional or a three-dimensional grid. Memory cells are typically joined by wordlines (conducting lines electrically connected to the cells’ control gates) and programmed together as memory pages (e.g., 16 KB or 32KB pages) in one setting(by selecting consecutive bitlines connected to the cells’ source and drain electrodes). A wordline can have a row of associated memory cells in a memory device that are used with one or more bitlines to generate the address of each of the memory cells. The intersection of a bitline and wordline constitutes the address of theAttorney Docket No.: 34300.3881 (L3281PCT)memory cell. A block hereinafter refers to a unit of the memory device used to store data and can include a group of memory cells, a wordline group, a wordline, or individual memory cells. One or more blocks can be grouped together to form separate partitions (e.g., planes) of the memory device in order to allow concurrent operations to take place on each plane. The memory device can include circuitry that performs concurrent memory page accesses of two or more memory planes. For example, the memory device can include multiple access line driver circuits and power circuits that can be shared by the planes of the memory device to facilitate concurrent access of pages of two or more memory planes, including different page types.
[0017] One example of a memory sub-system is a solid-state drive (SSD) that includes one or more non-volatile memory devices and a memory sub-system controller to manage the non-volatile memory devices. Memory access commands, such as those sent by the host system, request the memory sub-system to perform memory access operations on the memory devices contained therein. Memory access commands can generally be classified into respective categories, such as read commands, write commands, erase commands, move commands, etc. A memory sub-system controller can receive the memory access commands from the host system connected externally to the memory sub-system, such as via a Non-Volatile Memory Express (NVMe) interface on a Peripheral Component Interconnect Express (PCIe) communication bus. The memory sub-system can execute the memory access commands to perform the memory access operations and can store the results of the memory access commands for retrieval by the host system after the memory sub-system reports completion of the execution of the memory access commands.
[0018] A host system can include one or more graphics processing units (GPUs). GPUs can implement an array of Streaming Multiprocessors (SMs) in a parallel architecture. Accordingly, the processing threads can be grouped into thread blocks that are distributed across the available SMs (e.g., each SM can be configured to execute one or more of the thread blocks). A thread block can be further divided into a set of warps, such that each warp includes a fixed number of processing threads (e.g., 16, 32, or 64 processing threads per warp). In particular, a warp is a group of processing threads that are scheduled together to synchronously execute the same stream of executable instructions. Within each SM, threads of a warp are executed in a Single-Instruction, Multiple-Thread (SIMT) manner. Specifically, a warp scheduler within each SM can fetch a single instruction and broadcast that instruction to all active processing threads within the warp. Each processing thread can have its own set of registers and can execute the instruction on different data elements (e.g., perform readAttorney Docket No.: 34300.3881 (L3281PCT)operations on different locations of a memory device). This allows certain SMs to be dedicated to performing specific workloads. For example, one SM can be dedicated to performing only read operations while another SM can be dedicated to performing only write operations. In handling read operations, a certain SM can be dedicated to performing on random reads and another SM can be dedicated to performing only sequential reads.Similarly, in handling write operations a certain SM can be dedicated to performing only random writes while another SM can be dedicated to performing only sequential writes. This parallel execution model can maximize throughput for data-parallel computations.
[0019] A host system can maintain a set of queues to track input / output (I / O) commands issued by the processing threads. An I / O command is an instruction sent by a host system to a peripheral device, such as a memory sub-system. This command directs the memory subsystem to perform a specific action related to the transfer of data into the host system (input) or out of the host system (output), or to control the operational state of the peripheral device. I / O commands can include memory access commands issued to the memory sub-system (e.g, read commands, write commands, erase commands, move commands, etc.), commands to perform arithmetic functions, to perform a restore operation, to perform a cache offload operation, etc. For example, the host system can maintain a set of submission queues, such that each submission queue entry can store a data structure representing a respective VO command issued to the memory sub-system. The host system can further maintain a set of completion queues, such that each completion queue entry can store information about the result of a completed command residing in the submission queue. The host system can maintain these queues in a volatile host memory, such as on a dynamic random-access memory (DRAM) device.
[0020] The submission and completion queues can be organized as circular buffers due to their efficiency in handling I / O command flow of the GPU. A circular submission queue allows the host system to post a sequence of I / O commands to the memory device without requiring the memory sub-system to process them immediately, while a corresponding circular completion queue enables the memory sub-system to report the status of completed commands back to the host system. The I / O commands are inserted at certain locations of each buffer as specified by a pointer. For example, a tail pointer indicates the position where new data is written, and is incremented with each new insertion, wrapping around to the beginning of the buffer once the end is reached. A head pointer is also used to track the location of the next entry to be processed, and advances as entries are retrieved and processed, similarly wrapping around when the end of the buffer is reached. The circularAttorney Docket No.: 34300.3881 (L3281PCT)structure of these submission queues and completion queues allows them to efficiently reuse space while preventing overwriting of data, with the buffers being considered full when the next position of the tail pointer would coincide with the head pointer. A host system can configure multiple circular buffers for linear workloads. By using multiple command queues and completion queues, the host system can prepare I / O commands for the next set of tasks while the memory sub-system is still processing a current set, effectively overlapping host system preparation with memory sub-system execution.
[0021] In some systems, when an SM of a GPU requires data operations (e.g., write commands, read commands, etc.) to be performed on a memory device, each thread within a warp, at the instruction of the GPU, can generate a responsive set of I / O commands. All I / O commands generated by the threads of the warp can then be organized and placed, by the respective threads, into multiple submission queues to be processed asynchronously and without a context (e.g., the host system would not have any information identifying the warp to which the I / O commands). For example, one or more I / O commands can be placed into a first submission queue, another one or more I / O commands can be placed into a second queue, and so forth. For each submission queue, the host system can alert the memory subsystem that the VO command(s) is ready for processing, by writing a value to a doorbell register assigned to that submission queue. A doorbell register is a special memory -mapped I / O (MMIO) register used as a notification mechanism between a host system and the memory sub-system controller. The write operation to the doorbell register triggers the memory sub-system to fetch newly buffered I / O commands from the corresponding submission queue and process these I / O commands.
[0022] Each submission queue can be paired with one or more completion queues. This pairing allows the host system to track the completion status of the VO commands submitted through a specific submission queue. Once an VO command is processed, the memory subsystem can write an entry into a corresponding completion queue. The completion queue entry serves as a notification to signal the successful or unsuccessful completion of the I / O command. For each entry, a write to a doorbell register corresponding to the completion queue is performed to inform the host system of the entry so the host system can rely on the completed memory operation.
[0023] In some implementations, I / O commands for a particular warp can be placed in different submission queues. Specifically, for a single instruction executed across a warp, a host system can use multiple submission queues to store the corresponding I / O commands. Since a GPU can implement dozens to hundreds of SMs, the sheer volume of queue pairs (aAttorney Docket No.: 34300.3881 (L3281PCT)submission queue and completion queue pair) needed for the host system to process warps can consume significant memory and processing resources, as well as cause increased latency.
[0024] Aspects of the present disclosure address the above and other deficiencies by enabling the host system to group together I / O commands originated by a given warp and submit such a group of commands to a memory sub-system, together with one or more context attributes (e.g., in the form of metadata) informing the memory sub-system that the grouped I / O commands have been originated by a certain warp. In some embodiments, certain context attributes can also communicate a workload type so that the memory subsystem controller can handle the grouped I / O commands by accessing a particular sequential (or contiguous) group of physical units of a memory device allocated to store data associated with that workload type. A physical unit can be understood as a co-located group of memory cells, such as one or more physical pages or one or more physical blocks of the memory device.
[0025] In at least some embodiments, the memory sub-system also reserves a subset of physical units, of the sequential group of physical units, at which to write the data for the sequence of I / O commands of a particular workload type. For example, the memory subsystem could reserve a next subset of physical units (of the sequential group) having enough memory space for the number of I / O commands. In some embodiments, the next subset is sequentially allocated from the last-written subset of physical units. The memory sub-system can then execute the I / O commands by performing the requested memory access operations (e.g., read operations or write operations) and notify the host via a completion queue upon processing all the grouped I / O commands.
[0026] In some embodiments, the context attributes or metadata can communicate workload types such as random read commands, sequential read commands, random write commands, or sequential read commands. In still further embodiments, the communicated workload type could include prefill commands (issued to prefetch related layer data from the memory sub-system expected to be used together), key-value (KV) cache offload commands (issued to direct storing KV cache data from the host to the memory sub-system, or to retrieve such KV cache data), or checkpoint write commands (issued for writing or reading checkpoint data to or from the memory sub-system). Other workload types are envisioned.
[0027] In some implementations, a pair of warp-specific submission queue and completion queue can be created in the host memory or in the memory sub-system. Each queue of the warp-specific queue pair can reside in a corresponding memory buffer. EntriesAttorney Docket No.: 34300.3881 (L3281PCT)of the submission queue can store the I / O commands for one or more warps. Entries of the completion queue can store notifications to signal the successful or unsuccessful completion of the VO commands, which can also be organized by warp.
[0028] In some embodiments, the memory sub-system controller retrieves, from a submission queue, a sequence of I / O commands associated with a warp. The controller can further retrieve, from a queue metadata structure for the submission queue, a workload type assigned to the warp. For example, the queue metadata structure can be stored at a memory location associated with a doorbell register used to alert the controller that the submission queue contains new I / O commands to be executed. In varying embodiments, the controller can detect the workload type in an operation code associated with the sequence of VO commands. For example, the operation code (or OPCODE) can indicate what kind of memory operation (type of read or write command) is to be performed to execute each of the sequence of I / O commands. The controller canthen identify a group of physical units of the memory device allocated to store data corresponding to the workload type. The controller can execute the sequence of I / O commands by performing a plurality of memory access operations at the group of physical units, e.g., at a reserved subset of physical units of the sequential group of physical units.
[0029] Thus, advantages of the present disclosure include enabling the host system to group together VO commands originated by a given warp and submit such a group of commands to a memory sub-system, along with one or more context attributes informing the memory sub-system that the grouped I / O commands have been originated by a certain warp. This can result in an improvement in the performance and speed of the memory sub-system, a reduction of memory consumption, and a decrease in power consumption by the memory sub -system. Further, by grouping data within a sequential group of physical units for a particular workload type, write and read accesses can be sped up, to include prefetching operations that retrieve data likely to be stored together. In this way, GPU hosts can provide context to the memory sub-system based on I / O commands within a warp. This context helps more efficiently write and read data within physically co-located (e.g., contiguous) memory locations. Additionally, a memory device of the memory sub-system will not experience the level of fragmentation (and corresponding write amplification to resolve such fragmentation) that would otherwise be experienced when write VO commands are executed at randomly allocated physical units of memory throughout the memory device. These and additional advantages will be apparent to those skilled in the art from the description of the following Figures.Attorney Docket No.: 34300.3881 (L3281PCT)
[0030] FIG. 1 illustrates an example computing system 100 that includes a memory subsystem 110 in accordance with some embodiments. 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., one or more memory device(s) 130), or a combination of such.
[0031] 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, an embedded MultiMedia Controller (eMMC) drive, a Universal Flash Storage (UFS) drive, a secure digital (SD) card, 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 nonvolatile dual in-line memory modules (NVDIMMs).
[0032] 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.
[0033] The computing system 100 can include a host system 120 that is coupled to one or more memory sub-systems 110. In some embodiments, the host system 120 is coupled to differenttypes of memory sub-system 110. FIG. 1 illustrates one example of a host system 120 coupled to one memory sub-system 110. As usedherein, “coupled to” or “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, etc.
[0034] 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., PCIe controller, SATA controller, CXL 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.
[0035] 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 technology attachment (SATA) interface, a compute express link (CXL) interface,Attorney Docket No.: 34300.3881 (L3281PCT)a peripheral component interconnect express (PCIe) interface, universal serial bus (USB) interface, Fibre Channel, Serial Attached SCSI (SAS), a double data rate (DDR) memory bus, Small Computer System Interface (SCSI), a dual in-line memory module (DIMM) interface (e.g., DIMM socket interface that supports Double Data Rate (DDR)), etc. The physical host interface can be used to transmit data between the host system 120 and the memory subsystem 110. The host system 120 can further utilize an NVM Express (NVMe) interface to access the memory components (e.g., the one or more memory device(s) 130) when the memory sub-system 110 is coupled with the host system 120 by the physical host interface (e.g., PCIe or CXL bus). 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. FIG. 1 illustrates a memory sub-system 110 as an example. In general, the host system 120 can access multiple memory sub-systems via a same communication connection, multiple separate communication connections, and / or a combination of communication connections.
[0036] The memory devices 130, 140 can include any combination of the different types of non-volatile 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).
[0037] Some examples of non-volatile memory devices (e.g., memory device(s) 130) include negative-and (NAND) type flash memory and write-in-place memory, such as three-dimensional cross-point (“3D cross-point”) memory. 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 non-volatile memory cell can be programmed without the non-volatile memory cell being previously erased. NAND type flash memory includes, for example, two-dimensional NAND (2D NAND) and three-dimensional NAND (3D NAND).
[0038] Each of the memory device(s) 130 can include one or more arrays of memory cells. One type of memory cell, for example, single level cells (SLC) can store one bit per cell. Other types of memory cells, such as multi-level cells (MLCs), triple level cells (TLCs), and quad-level cells (QLCs), can store multiple bits per cell. In some embodiments, each of the memory devices 130 can include one or more arrays of memory cells such as SLCs, MLCs, TLCs, QLCs, or any combination of such. In some embodiments, a particular memoryAttorney Docket No.: 34300.3881 (L3281PCT)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 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.
[0039] Although non-volatile memory components such as a 3D cross-point array of nonvolatile memory cells and NAND type flash memory (e.g., 2D NAND, 3D NAND) 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, electrically erasable programmable read-only memory (EEPROM).
[0040] A memory sub-system controller 115 (or controller 115 for simplicity) can communicate with the memory device(s) 130 to perform operations such as reading data, writing data, or erasing data at the memory devices 130 and other such operations. The 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 a digital circuitry with dedicated (i.e., 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), etc.), or other suitable processor.
[0041] The memory sub-system controller 115 can include a processor 117 (e.g., a processing device) configured to execute instructions stored in a 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.
[0042] In some embodiments, the local memory 119 can include memory registers storing memory pointers, fetched data, etc. The local memory 119 can also include read-only memory (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 embodiment of the present disclosure, a memory sub-system 110 does not include a memoryAttorney Docket No.: 34300.3881 (L3281PCT)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 sub-system).
[0043] In various embodiments, the memory sub-system controller 115 receives commands or operations from the host system 120 and converts the commands or operations into instructions or appropriate commands to achieve the desired access to the memory device(s) 130. The controller 115 can be responsible for other operations such as wear leveling operations, garbage collection operations, error detection and error-correcting code (ECC) operations, encryption operations, caching operations, and address translations between a logical address (e.g., logical block address (LBA), namespace) and a physical address (e.g., physical block address) that are associated with the memory device(s) 130. The 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 into command instructions to access the memory device(s) 130 as well as convert responses associated with the memory device(s) 130 into information for the host system 120.
[0044] The memory sub-system 110 can also include additional circuitry or components that are not illustrated. In some embodiments, 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 device(s) 130.
[0045] In some embodiments, the memory device(s) 130 include 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(s) 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(s) 130). In some embodiments, a memory device 130 is a managed memory device, which is a raw memory device (e.g., memory array 104) having control logic (e.g., local controller 135) for media management within the same memory device package. An example of a managed memory device is a managed NAND (MNAND) device. Memory device(s) 130, for example, can each represent a single die having some control logic (e.g., local media controller 135) embodied thereon. In some embodiments, one or more components of memory sub-system 110 can be omitted.
[0046] In some embodiments, the host system 120 can run one or more applications 150 (e.g., programs, virtual machines, etc.). The applications 150 can be executed by multiple processing cores (e.g., central processing units, graphics processing units) which can processAttorney Docket No.: 34300.3881 (L3281PCT)many threads / streams in parallel. For example, host system 120 can include hundreds of parallel processing threads that can generate respective host-initiated I / O commands (e.g., read command, write commands, arithmetic commands, offload commands, prefill commands, etc.) directed to memory sub-system 110 concurrently. In some embodiments, the host system 120 utilizes a set of queues to track the I / O commands issued to the memory subsystem 110. For example, the host system 120 can include multiple submission queues 124, storing submission queue entries representing the I / O commands issued to the memory subsystem 110, multiple completion queues 126, storing completion queue entries representing I / O command completion statuses received from the memory sub-system 110, and multiple pointers 125 that identify particular locations associated with the queues and warps, as will be explained.
[0047] In some embodiments, the host system 120 can maintain these queues in a host memory 122, such as a dynamic random access memory (DRAM) device or other memory device, or in the memory sub-system 110, as will be discussed with reference to FIG. 3. A submission queue and its corresponding completion queue can be referred to as a “queue pair.” Submission queues 124 and completion queues 126 can include circular buffers, linear buffers, stream buffers, etc., each with a fixed slot size and / or a variable slot size. In some embodiments, there can be some other number of queues or queue pairs in host memory 122.
[0048] In some embodiments, memory sub-system controller 115 provides host system 120 with the ability to group I / O commands, for a warp, together in the same submission queue. In particular, memory sub-system controller 115 can configure one or more warp queue pairs (in the host memory 122) such that the submission queue 124 of the warp queue pairs can store all of the I / O commands for one or more warps.
[0049] In some embodiments, host system 120 includes storage driver 128. Storage driver 128 can request the memory sub-system to generate one or more queue pairs (e.g., one or more submission queue 124 and one or more corresponding completion queues 126). In some embodiments, storage driver 128 can request one or more queue pairs that support GPU based parallelization. To generate these queue pairs, referred to as a warp queue pairs, storage driver 128 can allocate memory, in the host memory 122, for the creation of the warp queue pairs. In some implementations, the allocated memory can be contiguous memory (e.g., a block of memory where data is stored in a sequential, uninterrupted manner). Storage driver 128 can then instruct the controller 115 to configure one or more sets of warp queue pairs (also referred to as “queue pairs”) in the allocated memory. In some embodiments, the instruction can include the physical addresses of the allocated memory and metadata such asAttorney Docket No.: 34300.3881 (L3281PCT)the requested queue size (e.g., number of entries per queue), related queue identifiers (QID), etc. In other embodiments, storage driver 128 can instruct the memory sub-system controller 115 to configure one or more sets of warp queue pairs in the host memory and then memory sub-system controller 115 can allocate the memory for the queue pair(s). In some embodiments, the host system 120 can also request one or more legacy queue pairs. The legacy queue pair can include a legacy submission queue and legacy completion queue. Each of the legacy queues can include, for example, a circular memory buffer where I / O commands are processed one at a time. When submitting a command processing request to the memory sub-system 110 (e.g., via a write operation to a doorbell register), the host system can indicate whether to process the VO commands in the queue using legacy mode or warp mode.
[0050] In some embodiments, storage driver 128 can provide one or more queue setup parameters to memory sub-system 110 for the configuration of submission queues 124 and / or completion queues 126. A queue setup parameter can be a configurable value that defines the characteristics and behavior of a queue data structure (e.g., submission queue 124 and / or completion queues 126). The queue setup parameters can include, for example, a batch operating mode, a queue size, a warp offset value, a warp doorbell pointer, and / or a maximum warp support value. The warp operating mode can determine whether the queue pairs are configured to process warps in accordance with one or more of the embodiments of this disclosure or whether the queue pairs are configured to process individual I / O commands according to a legacy mode. Such configuration enables the host system to have backwards compatibility with systems that are not able to perform certain aspects of the batched operating mode. In some embodiments, storage driver 128 instructs memory sub-system 110 to inform host system 120 whether memory sub-system 110 includes the hardware and / or software required to configure the warp queue pairs. The queue size can define the size of each queue (e.g., indicate the number of memory locations to allocate for the queue). The maximum warp support value can reflect the maximum number of warps that each queue can support.
[0051] The warp offset pointer represents an index or unique identifier assigned to each active or scheduled warp. In particular, the warp offset pointer can store the starting address of a section of the warp submission queue and / or of a warp completion queue, include a contiguous block of host memory 122 reserved for storing the VO commands for a single warp. This pointer could be used by the host system 120 and / or memory sub-system 110 to track the state, priority, or assigned resources of each warp. For example, if the queue size isAttorney Docket No.: 34300.3881 (L3281PCT)set to 96 memory locations (to accommodate the I / O commands for three warps of 32 processing threads per warp), then submission queue 124 and completion queue 126 can each include two warp offset pointers. Once configured, storage driver 128 can place the I / O commands for a particular warp into a particular section of the submission queue differentiated by the warp offset pointers.
[0052] In some embodiments, storage driver 128 can request hardware and / or software configuration data from memory sub-system 110. The configuration data can be used to determine the queue setup parameters. In some embodiments, storage driver 128 can request memory sub-system 110 to inform host system 120 of its capabilities related to one or more of the queue setup parameters. Once the queue setup parameters are determined using the configuration data or capabilities data, storage driver 128 can instruct memory sub-system 110 to configure the queue pair(s). In an illustrative example, the storage driver 128 can send the memory sub-system 110 a setup dataset such as the operating mode, the warp size (e.g., 16, 32, 64), the warp offset pointer list, and the maximum warp support value (e.g., 16, 32, 64). The operating mode can be indicated using operation codes (opcodes), such as, for example, opcode 00 can instruct the memory sub-system to operate in legacy mode while opcode 01 can instruct the memory sub-system to operation in batch mode. This allows the host system to modify how the queue pairs operate. The warp offset pointer list can be used by the memory sub-system to keep track of the allocated memory sections. In some embodiments, storage driver 128 can instruct memory sub-system 110 to determine one or more of the queue setup parameters based on the hardware and / or software capabilities of the memory sub-system 110 and / or the host system.
[0053] In some embodiments, memory sub-system 110 includes queue management module 113 which can configure the warp queue pairs and process the I / O commands for a warp. To configure the warp queue pairs, queue management module 113 of memory subsystem 110 can obtain the physical addresses of the allocated memory in host memory and / or allocate a range(s) of physical address in host memory 122. This allows the memory subsystem controller 115 to directly access these host memory regions via, for example, a direct memory access (DMA) process. In some embodiments, the allocated memory can include reserved addresses for each queue pair. In other embodiments, queue management module 113 can map memory for each queue pair from the memory allocated in host memory 122. When placing I / O commands into submission queue 124, storage driver 128 can assign a warp identifier to each submission queue and / or to a section of a submission queue. The warp identifiers can be used to track each I / O command for a corresponding warp.Attorney Docket No.: 34300.3881 (L3281PCT)
[0054] In some embodiments, the memory sub-system controller 115 includes at least a portion of the queue management module 113. For example, the memory sub-system controller 115 can include a processor 117 (i.e., a processing device) configured to execute instructions stored in local memory 119 for performing the operations described herein. For example, buffer 160 can be implemented in local memory 119 or in some other memory of the memory sub-system controller 115 (e.g., a static random access memory (SRAM) device).
[0055] In some embodiments, queue management module 113 can periodically perform a scan of one or more doorbell registers 162 to determine whether a value has been written, by storage driver 128, to a doorbell register 162 associated with a particular queue. A doorbell register can be a special memory-mapped VO (MMIO) register used as a notification mechanism between host system 120 and memory sub-system controller 115. A write operation performed to a certain doorbell register 162 can instruct queue management model 113 to fetch one or more newly placed I / O commands from a corresponding submission queue 124 and to process the I / O commands. In some embodiments, once fetched, the I / O commands for the warp can be placed in buffer 160. Buffer 160 can be a memory sub-system buffer that temporarily holds the I / O commands retrieved from submission queue 124 before they are executed. Once the I / O commands are processed (e.g., data referenced by the I / O commands is retrieved from memory device 130), queue management module 113 can place a completion queue entry into the corresponding completion queue 126. Once the completion queue is updated, queue management module 113 can trigger an interrupt to notify the host system 120 that new completions are available. The host system 120 can read the completion queue entries, process the completions, and updates a completion queue doorbell register to inform the memory sub-system which completions have been consumed.
[0056] In some embodiments, a doorbell extension register 162 A (see FIG. 2) is generated as a supplemental register associated with a given doorbell register 162 assigned to a particular submission queue. In embodiments, the host system 120 can write attributespecific metadata to the doorbell extension register 162A to facilitate passing I / O command execution-related information to the controller 115. For example, the host system 120 can employ an NVMe Get Features command to retrieve controller configuration and operational parameters. When Get Features command (FID = 0x07) is issued, the controller 115 can return the address of a doorbell buffer in host memory (if supported), additional information about buffered doorbells or doorbell stride / offset, and whether doorbell buffer is enabled and for which queues the doorbell buffer is enabled. This can be part of Doorbell BufferAttorney Docket No.: 34300.3881 (L3281PCT)Configuration (DBC), which allows writing doorbells to host memory instead of using MMIO (for virtualized or multi-core performance) and shared memory-coherent doorbell updates.
[0057] FIG. 2 is a block diagram illustrating the warp queue pairs in the host memory of a host system, in accordance with some embodiments of the present disclosure. As illustrated, host system 120 can run multiple applications 150, which can be executed by a number of processing cores 260. Host system 120 further includes host memory 122, which can store submission queues 124 and completion queues 126. For example, the queues in host memory 122 can be arranged into respective queue pairs, each queue pair including a submission queue (e.g., 124-1, 124-2, 124-n) and a corresponding completion queue (e.g., 126-1, 126-2, 126-n).
[0058] The applications 150 and / or virtual machines can perform operations that utilize memory sub-system 110. For example, the applications 150 (which can include virtual machines) can issue requests to read data which can be stored on memory device 130 of memory sub-system 110 or write data to the memory device 130. In some embodiments, these memory access requests are sent by the parallel processing threads 262 being executed by processing cores 260. Processing cores 260 can include various general-purpose processing devices such as microprocessors, central processing units (CPUs), or the like, or specialized processing devices, such as graphics processing units (GPUs), which may be optimized for performing high-speed sequential processing operations. Depending on the implementation there can be any number of processing cores 260 (e.g., tens or hundreds), each executing a respective one of processing threads 262.
[0059] In some embodiments, each processing thread 262 represents a series of sequential operations directed to memory sub-system 110. Upon requests from each processing thread 262 being generated, the requests (e.g., VO commands) can be stored as entries in one of submission queues 124-1, 124-2, 124-n, from which the I / O commands can be issued to memory sub-system 110. Received responses to the requests from memory sub-system 110 can be stored as entries in one of completion queues 126-1, 126-2, 126-n, and then retrieved by processing threads 262 and provided to applications 150. While there can be any number of warp queue pairs dedicated for use with host-initiated I / O commands, host memory 122 can further include one or more queue pairs dedicated to administrative commands (e.g., administrative submission queue 124-n and administrative completion queue 126-n). While shown as circular buffers, the administrative queues can use any type of buffer.
[0060] In some embodiments, the submission queues 124-1, 124-2 and completionAttorney Docket No.: 34300.3881 (L3281PCT)queues 126-1, 126-2 can be implemented as linear buffers, where I / O commands are inserted into certain sections of the buffer identified by a warp offset pointer (stored as one of the pointers 125 in the host memory 122). In particular, the warp offset pointer can indicate the beginning of a memory location reserved for storing the I / O commands for a single warp.
[0061] FIG. 3 is a schematic diagram illustrating an embodiment of the warp queue pairs stored in a controller memory buffer (CMB) 300 of the memory sub-system 110, in accordance with some embodiments. In some embodiments, the memory sub-system controller 115 includes a CMB manager 313 that manages data transactions between the host system 120 and the memory device 130 having a controller memory buffer (CMB) 300. The CMB 300 can be a controller memory space which may span across one or more of the DRAM 340, SRAM 335, and / or NVM 330 of the memory sub-system 110. In some embodiments, the DRAM: 340 is a high bandwidth memory (HBM) that are now often used to support host GPU operations. The contents in CMB 300 typically do not persist across power cycles, so the CMB manager 313 can rebuild the CMB 300 after the system 100 powers on if of the volatile type.
[0062] One or more types of data structures defined by the NVMe protocol may be stored in the CMB 300 by the CMB manager 313 or may be stored in host memory 122 (FIGs. 1-2). As described in greater detail below, the host system 120 may initialize the CMB 300 prior to CMB manager 313 storing NVMe data structures thereto. At initialization phase, controller 115 can advertise to host system 120 the capability and the size of CMB 300 and may advertise which NVMe data structures may be stored into CMB 300 For example, controller 115 can store one or more of the NVMe data structures into CMB 300, including NVMequeues 304 such as submission queues 334 and completion queues 336. The controller 115 can further store pointers 310 such as physical region page (PRP) lists 312 and scatter-gather lists (SGL) segments 314 and data buffers 316 such as write data 320, read data 318, and combination s thereof.
[0063] The NVMe protocol standard is based on a paired submission and completion queue mechanism. In embodiment, I / O commands are placed by host software into a submission queue 334. Completions are placed into the associated completion queue 336 by the controller 115. The host system 220 (or device) may have multiple pairs of submission and completion queues for different groups of I / O commands, which correspond to individual warps, as discussed with reference to the these queues in FIG. 2. Responsive to a notification by the host system 220 (e.g., via a doorbell register 162), the controller 115 fetches the group of I / O commands from the submission queue (e.g., one of the submission queues 336).Attorney Docket No.: 34300.3881 (L3281PCT)Thereafter, the controller 115 processes the group of I / O commands, e.g., performs internal command selection, executes the I / O commands (such as performing a write or a read), and the like. After processing the group of I / O commands, the controller 115 places an entry in the completion queue, with the entry indicating that the execution of the group of I / O commands for a warp has completed The controller 115 can then generate an interrupt to the host system 120 indicating that an entry' has been placed on the completion queue. The host system 120 can review' the entry' of the completion queue and then notify the controller 115 that the entry of the completion queue has been review'ed.
[0064] In general, submission and completion queues are allocated within the host memory' 122 where each queue might be physically located contiguously or non-contiguously in the host, memory 122. However, the CMB feature, such as is supported in the NVMe standard, enables the host system 120 to place submission queues, completion queues, physical page region (PRP) lists, scatter gather list (SGL) segments, and data buffers in the controller memory (e.g., the CMB 300) rather than in the host memory 122.
[0065] C ontroller buffer manager 202 may include a transaction classifier module 322 to classify received host write transactions to CMB 300. Host write transactions toCMB 300 may be associated with host write commands and host read commands to retrieve data store by the host write transactions. In certain embodiments, transaction classifier module 322 may classify the host write transactions into one of the three NVM data structure groups, including NVMe queues 304, pointers 310, and data buffers 316. As stated, NVMe queues 304 include host submission queues 334 and host, completion queues 336.Pointers 310 may include PRP lists 312 and SGL segments 314. PRP lists 312 contain pointers indicating physical memory pages populated with user data or going to be populated with user data, such as for read or write commands in NVMe queues 304. SGL segments 314 include pointers indicating the physical addresses of host memory 212 in which data should be transferred from for write commands and in which data should be transferred to for read commands. Data buffers 316 may contain write data 320 to be written to NVM 330 associated with a w'rite command contain and / or read data 318 from memory' device 130 associated with a read command.
[0066] In certain embodiments, NVMe queues 304, pointers 310, and data buffers316 associated with a particular command may be stored in the CMB 300 by CMB manager 313 to reduce command execution latency by the memory' device 130. For example, a host command entry writen to the CMB 300 avoids fetching the host command entry through the PCIe fabric, which may include multiple PCIe switches (such as interconnectAttorney Docket No.: 34300.3881 (L3281PCT)hubs or multi-port chips) if the submission queue is located in the host memory' 212. Writing PRP lists 312 and SGL segments 314 to CMB 300 of memory device 130 avoids a separate fetch of the PRP lists 312 and SGL segments 314 through the PCIe fabric if the PRP lists and SGL segments are located in host memory space. Write data 320 written to CMB 300 of memory device 130 avoids having memory device 130 fetch the write data from host memory? 122.
[0067] FIG. 4 is a block diagram showing submission queue 405 and completion queue 425 in detail. As shown, submission queue 405 is split into multiple sections (410 A, 410B, 410C, 410n). Each section can be utilized to store the I / O commands of a single warp. Each section can be differentiated by a warp offset pointer. As shown, warp offset 1 415A indicates the differentiation of section 1 410A and section 2 410B. Warp offset 2 415B indicates the differentiation of section 2 410B and section 3 410C. Warp offset 3 415C indicates the differentiation of section 3410C and section n 41 On. One or more entry pointers can be used to track the location of the next data item to be processed in each section, can advance as entries are retrieved, and reset to an initial location once the entries are submitted for execution. For example, a head pointer can be used to track the position of the next empty location in a respective section while a tail pointer can be used to indicate the last position of the final possible location of a section.
[0068] Doorbell register 420 can be used to instruct the memory sub-system to process the I / O commands stored in the queue. For example, upon placing an entry to the warp submission queue, the host system can perform a write operation to the doorbell register to trigger the memory sub-system to perform a corresponding action (e.g., pull all of the I / O commands from submission queue 405 into an internal buffer for processing). In some embodiments, the doorbell register 420 can be written to in response to each section of submission queue 405 being full of I / O commands. In other embodiments, the host system can perform a write operation to the doorbell register 420 when fewer than the maximum number of entries are placed in the submission queue (e.g., a section can store 32 entries, and the host writes to the doorbell register 420 once three entries are placed in the section). In other embodiments, multiple doorbell registers can be assigned to a single submission queue (e.g., a doorbell register for each section, a doorbell register for a set of sections, etc.).
[0069] Completion queue425 canbe arranged into multiple sections (430A, 430B). The entries can reference whether a corresponding I / O command has been successfully or unsuccessfully executed. In some embodiments, a section can be reserved for a particular warp. In other embodiments, each section can be free for the I / O commands of any warpAttorney Docket No.: 34300.3881 (L3281PCT)(e.g., first come, first serve basis). The separation of two sections can be indicated using a warp offset pointer. As shown, warp offset 1 435 A indicates the separation of section 1 430A and section 2 430B. Warp offset 2 435B indicates the separation of section 2 430B and another unlabeled section. An entry pointer can be used to track the location of the next data item to be processed in each section, can advance as entries are retrieved, and reset to an initial location once the entries are submitted to the host system.
[0070] Doorbell register (such as doorbell register 440A or doorbell register 440B) can be used to inform the host system that completion queue entries are stored in completion queue 425. For example, a write operation performed in the doorbell register 440 A to inform the host system 120 of the entries in Section 1 430A of the completion queue 425 or performed in the doorbell register 440B to inform the host system 120 of entries in Section 2 430B. In other embodiments, the doorbell register can be written to in response to a corresponding section satisfying a threshold criterion (e.g., the section has a minimum number of entries). In other embodiments, a single doorbell register can be assigned to completion queue 425.
[0071] Returning to FIG. 2, in some embodiments, memory sub-system 110 can use a defined arbitration scheme to select submission queue entries from the various submission queues 124-1, 124-2, 124-n. The arbitration scheme can be defined by the memory subsystem (e.g., defined by the hardware architecture of the memory sub-system controller), the host system (e.g., defined by a request for a certain set of arbitration rules), or any combination thereof. In an example, when a threshold number of the entries (e.g., information representing I / O commands) related to a warp are added to a submission queue, the host system 120 can write to a corresponding doorbell register 162 in the memory sub-system to indicate the addition of the new entries. Processing logic (e.g., queue management module 113) in the memory sub-system can monitor these doorbell registers 162 to detect new entries and fetch the entries via PCIe direct memory access (DMA). If multiple warp submission queues are filled (or have sections filled) with pending entries for processing, the processing logic can utilize an arbitration scheme, such as round-robin, weighted round-robin, first-come, first-served (FCFS), priority -based selection, etc. Typically, the round-robin scheme would result in the processing logic retrieving a batch of entries from submission queue 124-1, then a batch of entries from submission queue 124-2, and so on, which may be referred to as the natural order. In some embodiments, queues or queue sections storing certain types of entries can have priority. For example, queues or sections storing read commands can be prioritized over queues or sections storing write commands. In some embodiments, one or more queues can be associated with weight. Accordingly, in instances when multipleAttorney Docket No.: 34300.3881 (L3281PCT)submission queues are ready for processing, priority can be given to the queue with the highest corresponding weight value, then the queue with the next highest weight value, and so forth.
[0072] Once the I / O commands are processed, corresponding entries can be placed into a corresponding completion queue 126. Warp identifiers can be used to track each I / O command related to a corresponding warp. This allows queue management module 113 to place all of the I / O commands for a warp together in the same completion queue 126. This also allows queue management module 113 to write to a corresponding doorbell register to inform the host system that entries for each I / O command for a warp have all been added in the completion queue 126.
[0073] In some embodiments, storage driver 128 can classify a batch of I / O commands stored in a submission queue. In particular, each warp can be designated to process a certain workload type (e.g., random read commands, random write commands, sequential read commands, sequential write commands, parameter write commands, checkpoint write commands, prefill commands, key / value (KV) cache offload commands, etc.). When submitting I / O commands, the host system (e.g., application 150) can send certain type of I / O commands to and indicate workload type of the I / O commands. When the I / O commands are placed into a submission queue and / or a section of the submission queue for a particular warp, a corresponding context attribute that indicates the workload type of the I / O commands can be sent or provided to the queue management module 113. Specifically, the workload type attribute can characterize the set of warp-originated I / O commands currently the submission queue. This group characterization allows the memory sub-system to more efficiently allocate the memory in the memory device.
[0074] In some embodiments, the context attribute can be an operation code (opcode), metadata, etc., which can indicate the workload type. A random read command is an instruction to memory sub-system 110 to retrieve data from a non-contiguous, scattered set of memory addresses. This type of command typically involves accessing data blocks that are not physically adjacent on memory device 130. A random write command is an instruction to memory sub-system 110 to store data at non-contiguous, scattered memory addresses. Similar to the random read commands, random writes involve accessing disparate locations on memory device 130. A sequential read command is an instruction to memory sub-system 110 to retrieve data from a contiguous block of memory addresses. A sequential write command is an instruction to memory sub-system 110 to store data in a contiguous block of memoryAttorney Docket No.: 34300.3881 (L3281PCT)addresses. A parameter write command can modify or set specific parameters or configuration settings of a system, device, or application.
[0075] In some embodiments, a checkpoint write command saves the current state of a system, application, or process at a specific point in time. A prefill command is an instruction to proactively populate a cache with data that is anticipated to be needed in the future. This is done to reduce latency and improve performance when the data is actually requested by having it readily available in the faster cache memory. A KV cache offload command, when submitted from submission queue 124 to memory sub-system 110, is a specific instruction directing memory sub -system 110 to store a portion of the KV cache associated with a Large Language Model (LLM) from host system’s 120 GPU memory into memory device 130. When queue management module 113 processes a particular warp (e.g., in response to detecting a write operation to a doorbell register 162), queue management module 113 can use the context attribute to determine the type of I / O commands (e.g., workload type) in the submission queue or in a portion of the submission queue. Queue management module 113 can then process I / O commands for the warp according to their type. The memory sub-system can then process the I / O commands in a specific way based on the context attribute. For example, in instances where the context attributes indicates that the I / O commands are checkpoint writes, the memory sub-system can allocate a large section of memory for programming the corresponding data.
[0076] In some embodiments, queue management module 113 can use the workload types to infer a characteristic update frequency and / or an expected data lifetime of the data being accessed. Based on this inferred update frequency or expected data lifetime, queue management module 113 can manage the allocation of physical memory regions. For example, queue management module 113 can employ an allocation strategy where data associated with workload types exhibiting similar predicted update frequencies are preferentially allocated to physically proximate memory locations. This allocation can improve the utilization of the underlying memory data and reduce the overhead of wear management processes that would otherwise be performed for defragmentation-related media management.
[0077] FIG. 5 schematically illustrates example queue metadata generated by a host system, in accordance with aspects. In particular, a queue metadata structure 500 (such as a table, graph, linked list, or the like) can be generated and periodically modified by the host system 120. Queue metadata structure 500 can be stored in the host memory 122. The memory sub-system 110 can access the table via PCIe direct memory access (DMA). TheAttorney Docket No.: 34300.3881 (L3281PCT)queue metadata structure 500 can be assigned to a submission queue 124. In some embodiments, each submission queue 124 can be assigned a corresponding queue metadata table 500. In other embodiments, two or more queue metadata structures canbe assigned to a single submission queue and / or a single queue metadata structure can be assigned to multiple submission queues.
[0078] As illustrated, queue metadata structure 500 can include a column for listing the queue sections (i.e., queue section ID), a column for listing a corresponding warp identifier (e.g., a value that references to which warp the I / O commands in the section belong), a column for listing a corresponding number of I / O commands currently stored in the section, a warp offset pointer ID column to indicate, for example, the corresponding end location of each section, and a context attribute column to indicate the type of I / O commands stored in each section, also referred to as workload type herein. In some embodiments, in response to a write operation performed to the submission queue’s doorbell register 162, the queue metadata structure 500 canbe provided to or retrieved by the memory sub-system 110. The memory sub-system 110 can then use the metadata from the queue metadata structure 500 to aid in processing the I / O commands stored in the submission queue 124. For example, the memory sub-system 110 can use the queue metadata structure 500 to determine the command types of each section, determine how many I / O commands are storedin each section, use the warp IDs to submit a completion status, for each I / O command, to the proper corresponding completion queue, etc.
[0079] FIG. 6A is a simplified block diagram depiction of related layer data being grouped into a separate warp, in according with some embodiments. For example, in many types of workloads such LLM-based operations, the host system 120 (e.g., GPU) seeks to retrieve related data in layers, e.g., where each layer branches off a higher-level decision node associated with executing a machine learning model. For example, knowing that an Al-based graph or decision tree is stored in decision-based layers can be used to make sure that data nodes and their nearest neighbors are co-located in memory to get improved cache hits, reducing the number of reads that are done within the memory device 130.
[0080] For example, in Al or machine learning operations, certain decision nodes (such as LA1, LB1, LC1) are reached that naturally branch to a subset of decision nodes, e.g., LAI branches to multiple LA2 decision nodes, LB1 branches to several LB2 decision nodes, and LC1 branches to several LC2 decision nodes. For example, the LAI decision node could be a sub -destination in route to a final destination while driving, and a subset of LA2 decision nodes could be different side streets or paths between LAI and a next decision node or theAttorney Docket No.: 34300.3881 (L3281PCT)final destination. Further, the LB1 decision node could be that an image being analyzed is some type of labrador dog (or at least partial labrador) and a subset of LB2 decision nodes are specific type of labradors or labrador mixes by classification.
[0081] The host system 120, for example, when faced with a high-level decision node, may prefetch data for a subset of decision nodes that are often retrieved from the memory sub-system 110, depending on what type of processing the GPU is doing. Thus, knowing such data is layered with related data, the host system 120 may organize each subset of decision nodes (e.g., related layer data) into a separate warp of I / O commands that are classified as prefill commands. Specifically, the controller 115 can detect that the sequence of I / O commands includes a series of prefill commands to retrieve related layer data, associated with related decision nodes of a machine learning model (or other Al model), that is stored in the sequential group of physical units. The controller 115 can then prefetch, into a cache of the host system from the sequential group of physical units, the related layer data.
[0082] Thus, for example, the subset of decision nodes LA2 could be prefetched with a set of prefill commands stored in a first warp (Warpl), the subset of decision nodes LB2 could be prefetched with a set of prefill commands stored in a second warp (Warp2), and the sub set of decision nodes LC2 could be prefetched with a set of prefill commands stored in a third warp (Warp3). In this way, related layer data can be stored into a sequential group of physical units in the memory device 130 by grouping a sequence of I / O commands into the same warp, even before any of this data is actually needed by the host system 120. Data that has been prefetched in this way can be quickly and efficiently retrieved with one or more I / O read commands directed at that warp, e.g., when needed by the LLM engine of the host system 120.
[0083] Further, as an extension of prefill commands, the host system 120 (or GPU) can also store key and value tensors in KV cache during autoregressive generation to avoid redundant computation. Autoregressive generation is a method used in sequence modeling (often used in machine learning or Al algorithms), where the model generates one token at a time, and each output token is conditioned on all previous tokens. Thus, autoregressive generation is data-intensive due to use of tokens for sequence modeling. Because the KV cache can get fairly large, much of the KV cache can be located within the memory subsystem 110 (e.g., the CMB 300). During each token generation step, instead of recomputing all previous keys / values, the GPU can reuse the cached keys / values and only compute the new ones. This dramatically speeds up inference time, especially for long sequences. Data in the KV cache can be stored back onto the memory device 130, so KV cache operations canAttorney Docket No.: 34300.3881 (L3281PCT)include read commands or write commands. Thus, similar as performed for prefill commands, the host system 120 can also store a sequence of I / O commands (e.g., KV cache offload commands) to one or more specific warps that can be handled at the same time by the controller 115. In this way, related KV values within the KV cache can be offloaded to a sequential group of physical units of the memory device 130, making writing and reading the KV cache data to and back out of the memory device more efficient.
[0084] FIG. 6B is a block diagram depiction of examples of various sequential groups of physical units organized within the memory device 130 by workload type, in accordance with some embodiments. In typical memory sub-systems, I / O commands for storing data of different types ofworkloads (such as for checkpoint write commands, prefill commands, or KV cache offload commands) would just be mixed into a submission queue with no organization, resulting in data from different workload types being scattered across the memory device 130. The present disclosure avoids this deficiency by handling specific sequences of I / O commands, each of a particular workload type for which a specific group of sequential physical units is allocated.
[0085] In some embodiments, employing warp-related technology, the controller 115 can allocate a sequential group of physical units of the memory device 130 to each workload type. As discussed previously, the controller 115 can retrieve, from metadata such as the queue metadata structure 500 for the submission queue, a workload type assigned to a warp. Thus, for example, random read commands and random write commands can be allocated a first sequential group 603 A of physical units, pre-fill commands can be allocated a second sequential group 603B of physical units, KV cache offload commands can be allocated a third sequential group 603C of physical units, and checkpoint write commands can be allocated a fourth sequential group 603D of physical units of the memory device 130.
[0086] In at least some embodiments, the allocation of groups of physical units is performed to sequential portions of the memory device 130, and each new allocation can be made adjacent to an allocation of a group of physical units of another type. The number of physical units allocated for any particular workload type can be projected based on the workload type (e.g., an amount of data expected to be accessed for each workload type) and adjusted based on demand within the memory sub-system 110. Further, the number of physical units allocated for any particular workload type can be based on temperature of the data (e.g., hot, warm, cold) to split the data or entropy of data to also characterize workloads. Highly random data can be localized in SLC blocks to reduce write amplification caused by some workloads. In this way, different numbers of physical units can be allocated to differentAttorney Docket No.: 34300.3881 (L3281PCT)workload types, and such allocation can be adjusted between workload type later based on demand, changing temperature, or the like. Further, the controller 115 can pre-allocate each sequential group of physical units to known workload types, or allocate each sequential group of physical units in response to retrieving, from a submission queue, a first sequence of I / O commands of that workload type.
[0087] In the illustrated embodiments, the controller 115 further reserves a subset of physical units (of the sequential group of physical units) at which to write the data for the sequence of I / O commands. Thus, for example, suppose the controller 115 retrieves a new sequence of prefill commands identified as Warp3 (W3). The controller 115 can reserve sufficient space for the number of prefill commands in Warp3, e.g., sequentially after the Warp2 space so as to fill up the sequential group of physical units sequentially, avoiding fragmentation of the memory device 130. The controller 115 can then execute the sequence of prefill commands to store prefetched data into the allocated subset of physical units, from which to also later retrieve or update such prefetched data. Thus, for example, the second sequential group 603B of physical units may be associated with LLMs and / or other Al applications in which to store commonly retrieved, and related, layer data. Once the allocated sequential group of physical units gets filled up (e.g., reaches a final WarpN), new writes to the sequential group of physical units can be cycled back to the beginning of the allocated group of physical units (illustrated with arrows from WN to W1 for each workload type).
[0088] FIG. 7A is a flow diagram of an example method 700A of using warp context (such a related metadata) for handling warp workloads, in accordance with some embodiments. Method 700A can be performed by processing logic that can include hardware (e.g., processing device, circuitry, dedicated logic, programmable logic, microcode, hardware of a device, integrated circuit, etc.), software (e.g., instructions run or executed on a processing device), or a combination thereof. In some embodiments, method 700A is performedby the memory sub -system controller 115, e.g., by queue management module 113 of FIG. 1. Although shown in a particular sequence or order, unless otherwise specified, the order of the processes can be modified. Thus, the illustrated embodiments should be understood only as examples, and the illustrated processes can be performed in a different order, and some processes can be performed in parallel. Additionally, one or more processes can be omitted in various embodiments. Thus, not all processes are required in every embodiment. Other process flows are possible.
[0089] At operation 710, the processing logic retrieves, from a submission queue of a host system, a sequence of input / output (I / O) commands associated with a warp of processingAttorney Docket No.: 34300.3881 (L3281PCT)threads of the host system 120. In embodiments, the warp includes a set of processing threads of the host system that synchronously execute a same sequence of executable instructions.
[0090] At operation 720, the processing logic retrieves, from a queue metadata structure 500 for the submission queue, a workload type assigned to the warp. For example, the processing logic can detect a new value written to a doorbell register 162 assigned to the submission queue. Responsive to detecting the new value, the processing logic can access the queue metadata structure 500 stored at a memory location associated with the doorbell register, e.g., in the memory sub-system 110, which can be within the CMB 300. The processing logic can then identify an entry in the queue metadata structure 500 indexed to the warp, e.g., where the entry includes identification of the workload type. For example, the context attribute field in the queue metadata structure 500 (FIG. 5) can provide the workload type.
[0091] At operation 730, the processing logic identifies a sequential group of physical units of the memory device allocated to store data corresponding to the workload type. For example, as illustrated in FIG. 6B, the processing logic can access a data structure of allocations or reserved space to identify which sequential group of physical units of the memory device 130 is associated with the workload type.
[0092] At operation 740, the processing logic executes the sequence of I / O commands by performing a plurality of memory access operations at the sequential group of physical units.
[0093] In at least some embodiments, the processing logic allocates the sequential group of physical units of the memory device 130 to the workload type, as discussed in relation to FIG. 6B. The processing logic can also reserve a subset of physical units, of the sequential group of physical units, at which to write the data for the sequence of I / O commands. Thus, the execution of the sequence of I / O commands can include performing the memory access operations at the subset of physical units reserved within the sequential group of physical units.
[0094] In differing embodiments of operation 720, the workload type includes a set of random read commands, a group of sequential read commands, a set of random write commands, or a group of sequential write commands. In some embodiments, the workload type includes prefill commands. For example, the processing logic can detect that the sequence of I / O commands is a series of prefill commands (e.g., a specific workload type) corresponding to related layer data that was previously stored in the sequential group of physical units (e.g., grouped together by a graph or decision tree, or other decision nodes, within an LLM, other Al, or machine learning model). The processing logic can prefetch, intoAttorney Docket No.: 34300.3881 (L3281PCT)a cache of the host system 120 from the sequential group of physical units, the related layer data.
[0095] In still other embodiments of operation 720, the workload type includes key -value (KV) cache offload commands received from the host system. Thus, the processing logic can write or read KV cache data to or from the sequential group of physical units. In still other embodiments, of operation 720, the workload type includes checkpoint write commands received from the host system. Thus, the processing can write or read checkpoint data to or from the sequential group of physical units.
[0096] FIG 7B is a flow diagram of an example method 700B of using warp context (such as a related opcode) for handling warp workloads, in accordance with some embodiments. Method 700B can be performed by processing logic that can include hardware (e.g., processing device, circuitry, dedicated logic, programmable logic, microcode, hardware of a device, integrated circuit, etc.), software (e.g., instructions run or executed on a processing device), or a combination thereof. In some embodiments, method 700A is performedby the memory sub -system controller 115, e.g., by queue management module 113 of FIG. 1. Although shown in a particular sequence or order, unless otherwise specified, the order of the processes can be modified. Thus, the illustrated embodiments should be understood only as examples, and the illustrated processes can be performed in a different order, and some processes can be performed in parallel. Additionally, one or more processes can be omitted in various embodiments. Thus, not all processes are required in every embodiment. Other process flows are possible.
[0097] At operation 750, the processing logic retrieves, from a submission queue of a host system, a sequence of input / output (I / O) commands associated with a warp of processing threads of the host system 120. In embodiments, the warp includes a set of processing threads of the host system that synchronously execute a same sequence of executable instructions.
[0098] At operation 760, the processing logic detects, in an operation code associated with the sequence of I / O commands, a workload type assigned to the warp. For example, the operation code (or OPCODE) can indicate what kind of memory operation (type of read command or write command) is to be performed to execute the sequence of I / O commands. For example, the OPCODE can be a read command or a particular type or a write command of a particular type. In embodiments, the processing logic detects a new value written to a doorbell register 162 assigned to the submission queue. Responsive to detecting the new value, the processing logic accesses the operation code stored in the doorbell register 162 or at a doorbell extension register 162A linked to the doorbell register. In some embodiments,Attorney Docket No.: 34300.3881 (L3281PCT)the doorbell register or extension register is stored in the memory sub-system 110, which can be within the CMB 300.
[0099] At operation 770, the processing logic identifies a sequential group of physical units of a memory device allocated to store data corresponding to the workload type.
[0100] At operation 780, the processing logic executes the sequence of I / O commands by performing a plurality of memory access operations at the sequential group of physical units of the memory device.
[0101] In at least some embodiments, the processing logic allocates the sequential group of physical units of the memory device 130 to the workload type. The processing logic can also reserve a subset of physical units, of the sequential group of physical units, at which to write the data for the sequence of I / O commands. Thus, the execution of the sequence of I / O commands can include to perform the memory access operations at the subset of physical units reserved within the sequential group of physical units.
[0102] In differing embodiments of operation 760, the workload type includes a set of random read commands, a group of sequential read commands, a set of random write commands, or a group of sequential write commands. In some embodiments, the workload type includes prefill commands. For example, the processing logic can detect that the sequence of I / O commands is a series of prefill commands corresponding to related layer data that was previously stored in the sequential group of physical units (e.g., grouped together by a graph or decision tree within an LLM, other Al, or machine learning model). The processing logic can prefetch, into a cache of the processing device from the sequential group of physical units, the related layer data.
[0103] In still other embodiments of operation 760, the workload type includes key -value (KV) cache offload commands received from the host system. Thus, the processing logic can write or read KV cache data to or from the sequential group of physical units. In still other embodiments, of operation 760, the workload type includes checkpoint write commands received from the host system. Thus, the processing can write or read checkpoint data to or from the sequential group of physical units.
[0104] FIG. 8 illustrates an example machine of a computer system 800 within which a set of instructions, for causing the machine to perform any one or more of the methodologies discussed herein, can be executed. In some embodiments, the computer system 800 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 of a controller (e.g., to execute an operating system to performAttorney Docket No.: 34300.3881 (L3281PCT)operations corresponding to the scan ahead module 113 of FIG. 1). In alternative embodiments, the machine can be connected (e.g., networked) to other machines in a LAN, an intranet, an extranet, and / or the Internet. The machine can operate in the capacity of a server or a client machine in client-server 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.
[0105] 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.
[0106] The example computer system 800 includes a processing device 802, a main memory 804 (e.g., read-only memory (ROM), flash memory, dynamic random access memory (DRAM) such as synchronous DRAM (SDRAM) or Rambus DRAM (RDRAM), etc.), a static memory 806 (e.g., flash memory, static random access memory (SRAM), etc.), and a data storage system 818, which communicate with each other via a bus 830.
[0107] Processing device 802 represents one or more general-purpose processing devices such as a microprocessor, a central processing unit, or the like. More particularly, the processing device can be a complex instruction set computing (CISC) microprocessor, reduced instruction set computing (RISC) microprocessor, very long instruction word (VLIW) microprocessor, or a processor implementing other instruction sets, or processors implementing a combination of instruction sets. Processing device 802 can 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), network processor, or the like. The processing device 802 is configured to execute instructions 826 for performingthe operations and steps discussed herein. The computer system 800 can further include a network interface device 808 to communicate over the network 820.
[0108] The data storage system 818 can include a machine-readable storage medium 824 (also known as a non-transitory computer-readable storage medium) in which is stored one or more sets of instructions 826 or software embodying any one or more of the methodologies or functions described herein. The instructions 826 can also reside, completely or at least partially, within the main memory 804 and / or within the processing device 802 duringAttorney Docket No.: 34300.3881 (L3281PCT)execution thereof by the computer system 800, the main memory 804 and the processing device 802 also constituting machine-readable storage media. The machine-readable storage medium 824, data storage system 818, and / or main memory 804 can correspond to the memory sub-system 110 of FIG. 1.
[0109] In one embodiment, the instructions 826 include instructions to implement functionality corresponding to the queue management module 113 of FIG. 1). While the machine-readable storage medium 824 is shown in an example embodiment 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.
[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 physical quantities. 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 canAttorney Docket No.: 34300.3881 (L3281PCT)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, read-only memories (ROMs), random access memories (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 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 embodiments, a machine-readable (e.g., computer-readable) medium includes a machine (e.g., a computer) readable storage medium such as a read only memory (“ROM’), random access memory (“RAM’), magnetic disk storage media, optical storage media, flash memory components, etc.
[0115] In the foregoing specification, embodiments of the disclosure have been described with reference to specific example embodiments thereof. It will be evident that various modifications can be made thereto without departing from the broader spirit and scope of embodiments 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
Attorney Docket No.: 34300.3881 (L3281PCT)CLAIMSWhat is claimed is:
1. A system comprising:a memory device; anda processing device, operatively coupled with the memory device, to perform operations comprising:retrieving, from a submission queue of a host system, a sequence of input / output (I / O) commands associated with a warp of processing threads of the host system;retrieving, from a queue metadata structure for the submission queue, a workload type assigned to the warp;identifying a group of physical units of the memory device allocated to store data corresponding to the workload type; andexecuting the sequence of I / O commands by performing a plurality of memory access operations at the group of physical units.
2. The system of claim 1, wherein the operations further comprise:detecting a new value written to a doorbell register assigned to the submission queue; responsive to the detecting, accessing the queue metadata structure stored at a memory location associated with the doorbell register; andidentifying an entry in the queue metadata structure indexed to the warp, wherein the entry comprises the workload type.
3. The system of claim 1, wherein the group of physical units is a sequential group of physical units, and wherein the operations further comprise:allocating the sequential group of physical units of the memory device to the workload type; andreserving a subset of physical units, of the sequential group of physical units, at which to write the data for the sequence of I / O commands.
4. The system of claim 1, wherein the workload type comprises one of a set of random read commands, a group of sequential read commands, a set of random write commands, or a group of sequential write commands.Attorney Docket No.: 34300.3881 (L3281PCT)5. The system of claim 1, wherein the group of physical units is a sequential group of physical units, and wherein the workload type comprises prefill commands and the operations further comprise:detecting that the sequence of I / O commands comprises a series of prefill commands to retrieve related layer data, associated with related decision nodes of a machine learning model, that is stored in the sequential group of physical units; andprefetching, into a cache of the host system from the sequential group of physical units, the related layer data.
6. The system of claim 1, wherein the workload type comprises key -value (KV) cache offload commands received from the host system and the operations further comprise writing or reading KV cache data to or from the group of physical units.
7. The system of claim 1, wherein the workload type comprises checkpoint write commands received from the host system and the operations further comprise writing or reading checkpoint data to or from the group of physical units.
8. A method comprising:retrieving, by a processing device of a memory sub-system, from a submission queue of a host system, a sequence of input / output (I / O) commands associated with a warp of processing threads of the host system;detecting, in an operation code associated with the sequence of I / O commands, a workload type assigned to the warp;identifying a group of physical units of a memory device allocated to store data corresponding to the workload type; andexecuting, by the processing device, the sequence of I / O commands by performing a plurality of memory access operations at the group of physical units of the memory device.
9. The method of claim 8, further comprising:detecting a new value written to a doorbell register assigned to the submission queue; andresponsive to detecting the new value, accessing the operation code stored in the doorbell register or at an extension register linked to the doorbell register.Attorney Docket No.: 34300.3881 (L3281PCT)10. The method of claim 8, wherein the group of physical units is a sequential group of physical units, and further comprising:allocating the sequential group of physical units of the memory device to the workload type; andreserving a subset of physical units, of the sequential group of physical units, at which to write the data for the sequence of I / O commands.
11. The method of claim 8, wherein the workload type comprises one of a set of random read commands, a group of sequential read commands, a set of random write commands, or a group of sequential write commands.
12. The method of claim 8, wherein the group of physical units is a sequential group of physical units, and wherein the workload type comprises prefill commands, the method further comprising:detecting that the sequence of I / O commands comprises a series of prefill commands to retrieve related layer data, associated with decision nodes of a machine learning model, that is stored in the sequential group of physical units; andprefetching, into a cache of the host system from the sequential group of physical units, the related layer data.
13. The method of claim 8, wherein the workload type comprises key-value (KV) cache offload commands received from the host system, the method further comprising writing or reading KV cache data to or from the group of physical units.
14. The method of claim 8, wherein the workload type comprises checkpoint write commands received from the host system, the method further comprising writing or reading checkpoint data to or from the group of physical units.
15. A non-transitory computer-readable storage medium comprising instructions that, when executed by a processing device coupled with a memory device, cause the processing device to perform operations comprising:retrieving, from a submission queue of a host system, a sequence of input / output (I / O) commands associated with a warp of processing threads of the host system;Attorney Docket No.: 34300.3881 (L3281PCT)retrieving, from a queue metadata structure for the submission queue, a workload type assigned to the warp;identifying a group of physical units of the memory device allocated to store data corresponding to the workload type; andexecuting the sequence of I / O commands by performing a plurality of memory access operations at the group of physical units.
16. The non-transitory computer-readable storage medium of claim 15, further comprising:detecting a new value written to a doorbell register assigned to the submission queue; responsive to the detecting, accessing, using a direct memory access (DMA) read, the queue metadata structure stored in a host memory; andidentifying an entry in the queue metadata structure indexed to the warp, wherein the entry comprises the workload type.
17. The non-transitory computer-readable storage medium of claim 15, wherein the group of physical units is a sequential group of physical units, and further comprising:allocating the sequential group of physical units of the memory device to the workload type; andreserving a subset of physical units, of the sequential group of physical units, at which to write the data for the sequence of I / O commands.
18. The non-transitory computer-readable storage medium of claim 15, wherein the workload type comprises one of a set of random read commands, a group of sequential read commands, a set of random write commands, or a group of sequential write commands.
19. The non-transitory computer-readable storage medium of claim 15, wherein the group of physical units is a sequential group of physical units, and wherein the workload type comprises prefill commands and the operations further comprise:detecting that the sequence of I / O commands comprises a series of prefill commands to retrieve related layer data, associated with decision nodes of a machine learning model, that is stored in the sequential group of physical units; andprefetching, into a cache of the host system from the sequential group of physical units, the related layer data.Attorney Docket No.: 34300.3881 (L3281PCT)20. The non-transitory computer-readable storage medium of claim 15, wherein the workload type comprises key-value (KV) cache offload commands and the op erations further comprise writing or reading KV cache data to or from the group of physical units.
