Federated Learning for Heterogeneous Memory Modules

The hybrid memory module with a page migration engine addresses latency and overhead issues by autonomously migrating data across different memory types, enhancing performance and efficiency in memory systems.

US20260377729A1Pending Publication Date: 2026-11-26MICRON TECHNOLOGY INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
US19/216362
Authority / Receiving Office
US · United States
Patent Type
Applications(United States)
Current Assignee / Owner
Filing Date
2025-05-22
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Existing memory systems face significant overhead and latency issues due to swapping memory pages between main memory and storage devices, particularly when different types of memories with varying characteristics, such as NAND flash and DRAM, are used.

Method used

A hybrid memory module is configured with a hardware-accelerated page migration engine that intelligently manages data movements across memories of different characteristics, using a compute express link (CXL) connection to translate addresses and autonomously migrate data to optimize performance without host intervention.

Benefits of technology

This approach reduces latencies, minimizes host/controller overhead, enhances memory utilization efficiency, and maintains memory coherency by predicting and proactively migrating data to faster memory types, thus improving overall system performance and power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US20260377729A1-D00000_ABST
    Figure US20260377729A1-D00000_ABST
Patent Text Reader

Abstract

A method, including: configuring a first machine learning model in each respective memory sub-system among a plurality of memory sub-systems connected to a compute express link fabric; generating, in the respective memory sub-system and based on processing memory access requests routed via the compute express link fabric to the respective memory sub-system, a training dataset to further train the first machine learning model; receiving, from the respective memory sub-system, data generated based on the training dataset; updating, based at least in part on the data received from the respective memory sub-system, the first machine learning model to generate a second machine learning model; and communicating with the respective memory sub-system to configure the second machine learning model in the respective memory sub-system.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] At least some embodiments disclosed herein relate to memory systems in general and, more particularly but not limited to, memory systems having memories of different characteristics.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 embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings in which like references indicate similar elements.

[0004] FIG. 1 illustrates an example computing system having a host system and a memory sub-system configured in accordance with some embodiments of the present disclosure.

[0005] FIG. 2 shows a memory sub-system having a page migration engine configured according to one embodiment.

[0006] FIG. 3 shows an example of memory sub-systems having a page migration engine configured according to one embodiment.

[0007] FIG. 4 shows a buffer chip configured with a page migration queue according to one embodiment.

[0008] FIG. 5 illustrates a page migration queue according to one embodiment.

[0009] FIG. 6 shows a method of autonomous page migration within a heterogeneous memory sub-system according to one embodiment.

[0010] FIG. 7 shows a memory sub-system having a reinforcement learning module configured to identify pages for migration according to one embodiment.

[0011] FIG. 8 shows an example of memory sub-systems having a reinforcement learning module and a page migration engine configured according to one embodiment.

[0012] FIG. 9 shows a buffer chip configured with a reinforcement learning module having a reward model to identify memory pages for migration according to one embodiment.

[0013] FIG. 10 illustrates a technique to identify pages for migration using a reinforcement learning module according to one embodiment.

[0014] FIG. 11 shows a method of page migration within a heterogeneous memory sub-system according to one embodiment.

[0015] FIG. 12 shows a controller of a compute express link fabric configured with a federated learning engine according to one embodiment.

[0016] FIG. 13 shows a compute express link fabric configured with a controller to combine machine learning models in memory sub-systems according to one embodiment.

[0017] FIG. 14 shows a compute express link switch configured to implement a memory manager according to one embodiment.

[0018] FIGS. 15-17 show techniques of federated learning according to one embodiment.

[0019] FIG. 18 shows a method of machine learning via memory sub-systems according to one embodiment.

[0020] FIG. 19 is a block diagram of an example computer system in which embodiments of the present disclosure can operate.DETAILED DESCRIPTION

[0021] Different types of memories can have different trade-offs in performance, cost, capacity, power consumption, endurance, etc. For example, NAND flash memory is non-volatile in that it can retain data without being connected to a power supplier; and dynamic random access memory (DRAM) is volatile in that data stored in it can be corrupted or lost if a power supplier is disconnected from it for a short period (e.g., during a power outage event). NAND flash memory is less expensive than DRAM in offering a large capacity and thus is typically used in solid-state drives as storage media. DRAM can have an access speed, and endurance, much higher than NAND flash memory and thus is typically used as the main memory of a computer system.

[0022] When the demand for memory resources from the main memory exceeds its capacity in a computer system, the operating system of the computer system can swap some of the memory pages in the main memory to a storage device, such as a solid-state drive. For example, data in a memory page that is not in active use can be stored into the storage device to swap the memory page out of the main memory into the storage device; and the state of the memory page is preserved in the storage device such that the memory page can be freed and reused to store new data. When the memory page corresponding to the data being stored in the storage device is to be accessed, the memory page previously swapped into the storage device can be swapped back from the storage device into the main memory by reading the data from the storage device. The data can be read into a memory page (e.g., the same memory page when it is not being in active use, or another memory page that is not in active used) to restore the state of the memory page. Accessing to the memory page can then be directed to the memory page having the state restored from the storage device.

[0023] The operations of swapping memory pages between the main memory and the storage device can cause significant overhead for the processing device of the computer system and cause significant latencies in memory access.

[0024] At least some aspects of the present disclosure address the above and other deficiencies and challenges by configuring memories of different characteristics (e.g., NAND flash memory and DRAM) in a same hybrid memory module to provide memory services in a unified way to a host system. A hardware-accelerated page migration engine is configured in the hybrid memory module to intelligently manage data movements across the memories of different characteristics within the memory module to reduce burdens on the host system and to reduce latencies.

[0025] For example, the hybrid memory module can be connected to the host system via a compute express link (CXL) connection such that the host system can access the memories of different characteristics (e.g., NAND flash memory and DRAM) using a same memory access protocol (e.g., CXL.mem with cache coherency). The hybrid memory module has an address translation logic configured to translate the memory address of a memory access request received over the CXL connection to a physical memory address in the hybrid module. When the hybrid memory module determines or predicts that the host system is to access a memory page that is currently mapped to a slower memory (e.g., NAND flash memory), the page migration engine can move data of the memory page within the memory module to implement the memory page using a faster memory (e.g., DRAM). Thus, subsequent memory accesses made by the host system to the memory page can have an improved performance level without instructions from the host system to control and / or perform the page migration. Since the hybrid memory module includes non-volatile memory (e.g., NAND flash), the hybrid memory module can also function as a persistent data storage device. The hybrid memory / storage module can be used to provide enhanced capacity accessible to a host system through the CXL.mem interface and a memory access protocol. Autonomous and intelligent page migration allows the hybrid memory module to offer efficient utilization of different media types or memory tiers (e.g., NAND flash memory and DRAM).

[0026] For example, the hybrid memory module can have an integrated, specialized hardware engine to perform autonomous page migration across different memory media with no intervention or minimal intervention from the host system. The hybrid memory module can have data buffer chip architecture to implement data movement, and to perform page migration with prediction capabilities. Autonomous and predictive page migration can reduce latencies, reduce host / controller overhead in media management, improve efficiency in utilization of media bandwidth, reduce power consumption, and / or maintain memory / cache coherency. For example, the hybrid memory module can be connected to a CXL fabric to provide or enlarge a secondary random access memory of a computer system by expanding upon the memory capacity of the main memory of the computer system.

[0027] Optionally, the hybrid memory module can include different types of media / memory tiers (e.g., NAND flash memory and DRAM), a control unit, a page migration engine, a page translation unit, and a queuing system.

[0028] The control unit can be implemented using dedicated hardware in a data management buffer chip. The control unit can control an interface to a CXL connection, and different media interfaces to memory chips of different types. For example, a double data rate (DDR) interface can be controlled by the control unit to operate on one or more DRAM memory chips; and an open NAND flash interface (ONFI) can be controlled by the control unit operate on one or more NAND memory chips. Optionally, the control unit can further include power and thermal sensing circuits to control the power usages and / or thermal states of the hybrid memory module.

[0029] The page migration engine can include one or more direct memory access (DMA) engines configured to operate on the memory chips via the media interfaces (e.g., DDR / ONFI interface). The page migration engine can have buffers of different page sizes optimizes for respective media (e.g., 4KB / 8KB for DRAM memory and one or more MBs for NAND flash memory). The page migration engine can further include error detection and correction circuits to protect integrity of data to or from the media using error correction code (ECC) techniques.

[0030] The page translation unit can include hardware for memory address translation and caching capabilities for address translation tables. The page translation unit can manage page states of memory pages within the hybrid memory module.

[0031] The queuing system can enable priority-based migration queues along with logic to stitch pages together. The queuing system can manage dependencies of pages to be migrated and operate on the principles of quality of service (QoS).

[0032] In a typical sequence of operations, the memory module receives a memory access request through its CXL.mem interface. The control unit can determine, in response to the memory access request, whether to migrate a memory page and if so, send a migration request to the page migration engine with a priority assignment. For example, a memory page in a NAND flash memory chip being accessed via the memory access request can be migrated to a DRAM memory chip; and optionally, a memory page in a DRAM memory chip that is not likely to be used in a next period of time can be migrated to a NAND flash memory chip to free up resources in the DRAM memory chip. The page migration engine can perform a resource availability check, and perform address translation. To perform a page migration, a DMA transfer is initiated, and error handling performed. After data is delivered, the translation table is updated. After a status update, resources used in the page migration operation can be cleared and released for processing the next page migration request.

[0033] FIG. 1 illustrates an example computing system 100 that includes a memory sub-system 101 in accordance with some embodiments of the present disclosure. The memory sub-system 101 can include media, such as one or more volatile memory devices (e.g., memory device 104), one or more non-volatile memory devices (e.g., memory device 103), or a combination of such.

[0034] In general, a memory sub-system 101 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 multi-media card (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 non-volatile dual in-line memory module (NVDIMM).

[0035] The computing system 100 can be a computing device such as a desktop computer, a laptop computer, a network server, a mobile device, a vehicle (e.g., airplane, drone, train, automobile, or other conveyance), an internet of things (IoT) enabled device, an embedded computer (e.g., one included in a vehicle, industrial equipment, or a networked commercial device), or such a computing device that includes memory and a processing device.

[0036] The computing system 100 can include a host system 102 that is coupled to one or more memory sub-systems 101. FIG. 1 illustrates one example of a host system 102 coupled to one memory sub-system 101. As used herein, “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.

[0037] For example, the host system 102 can include a processor chipset (e.g., processing device 118) 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., controller 116) (e.g., NVDIMM controller), and a storage protocol controller (e.g., PCIe controller, SATA controller). The host system 102 uses the memory sub-system 101, for example, to write data to the memory sub-system 101 and read data from the memory sub-system 101.

[0038] The host system 102 can be coupled (e.g., over a computer bus 107) to the memory sub-system 101 via a physical host interface 108. Examples of a physical host interface 108 include, but are not limited to, a serial advanced technology attachment (SATA) interface, a peripheral component interconnect express (PCIe) interface, a universal serial bus (USB) interface, a fibre channel, a serial attached SCSI (SAS) interface, a double data rate (DDR) memory bus interface, a small computer system interface (SCSI), a dual in-line memory module (DIMM) interface (e.g., DIMM socket interface that supports double data rate (DDR)), an open NAND flash interface (ONFI), a double data rate (DDR) interface, a low power double data rate (LPDDR) interface, a compute express link (CXL) interface, or any other interface. The physical host interface 108 can be used to transmit data between the host system 102 and the memory sub-system 101. The host system 102 can further utilize an NVM express (NVMe) interface to access components (e.g., memory devices 103) when the memory sub-system 101 is coupled with the host system 102 by the PCIe interface. The physical host interface 108 can provide an interface for passing control, address, data, and other signals between the memory sub-system 101 and the host system 102. FIG. 1 illustrates a memory sub-system 101 as an example. In general, the host system 102 can access multiple memory sub-systems via a same communication connection, multiple separate communication connections, and / or a combination of communication connections.

[0039] The processing device 118 of the host system 102 can be, for example, a microprocessor, a central processing unit (CPU), a processing core of a processor, an execution unit, etc. In some instances, the controller 116 can be referred to as a memory controller, a memory management unit, and / or an initiator. In one example, the controller 116 controls the communications over a bus coupled between the host system 102 and the memory sub-system 101. In general, the controller 116 can send commands or requests to the memory sub-system 101 for desired access to memory devices 103, 104. The controller 116 can further include interface circuitry to communicate with the memory sub-system 101. The interface circuitry can convert responses received from the memory sub-system 101 into information for the host system 102.

[0040] The controller 116 of the host system 102 can communicate with the controller 115 of the memory sub-system 101 to perform operations such as reading data, writing data, or erasing data at the memory devices 103, 104 and other such operations. In some instances, the controller 116 is integrated within the same package of the processing device 118. In other instances, the controller 116 is separate from the package of the processing device 118. The controller 116 and / or the processing device 118 can include hardware such as one or more integrated circuits (ICs) and / or discrete components, a buffer memory, a cache memory, or a combination thereof. The controller 116 and / or the processing device 118 can be a microcontroller, special purpose logic circuitry (e.g., a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), etc.), or another suitable processor.

[0041] The memory devices 103, 104 can include any combination of the different types of non-volatile memory components and / or volatile memory components. The volatile memory devices (e.g., memory device 104) 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).

[0042] Some examples of non-volatile memory components include a negative-and (or, NOT 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).

[0043] Each of the memory devices 103 can include one or more arrays of memory cells 114. One type of memory cells, 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), quad-level cells (QLCs), and penta-level cells (PLCs) can store multiple bits per cell. In some embodiments, each of the memory devices 103 can include one or more arrays of memory cells such as SLCs, MLCs, TLCs, QLCs, PLCs, or any combination of such. In some embodiments, a particular memory device can include an SLC portion, an MLC portion, a TLC portion, a QLC portion, and / or a PLC portion of memory cells. The memory cells 114 of the memory devices 103 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.

[0044] Although non-volatile memory devices such as 3D cross-point type and NAND type memory (e.g., 2D NAND, 3D NAND) are described, the memory device 103 can be based on any other type of non-volatile memory, such as read-only memory (ROM), phase change memory (PCM), self-selecting memory, other chalcogenide based memories, ferroelectric transistor random-access memory (FeTRAM), ferroelectric random access memory (FeRAM), magneto random access memory (MRAM), spin transfer torque (STT)-MRAM, conductive bridging RAM (CBRAM), resistive random access memory (RRAM), oxide based RRAM (OxRAM), negative-or (NOR) flash memory, and electrically erasable programmable read-only memory (EEPROM).

[0045] A memory sub-system controller 115 (or controller 115 for simplicity) can communicate with the memory devices 103 to perform operations such as reading data, writing data, or erasing data at the memory devices 103 and other such operations (e.g., in response to commands scheduled on a command bus by controller 116). The controller 115 can include hardware such as one or more integrated circuits (ICs) and / or discrete components, a buffer memory, or a combination thereof. The hardware can include digital circuitry with dedicated (i.e., hard-coded) logic to perform the operations described herein. The 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 another suitable processor.

[0046] The controller 115 can include a processing device 117 (processor) configured to execute instructions stored in a local memory 119. In the illustrated example, the local memory 119 of the 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 101, including handling communications between the memory sub-system 101 and the host system 102.

[0047] 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 101 in FIG. 1 has been illustrated as including the controller 115, in another embodiment of the present disclosure, a memory sub-system 101 does not include a 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).

[0048] In general, the controller 115 can receive commands or operations from the host system 102 and can convert the commands or operations into instructions or appropriate commands to achieve the desired access to the memory devices 103. 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 devices 103. The controller 115 can further include host interface circuitry to communicate with the host system 102 via the physical host interface 108. The host interface circuitry can convert the commands received from the host system into command instructions to access the memory devices 103 as well as convert responses associated with the memory devices 103 into information for the host system 102.

[0049] The memory sub-system 101 can also include additional circuitry or components that are not illustrated. In some embodiments, the memory sub-system 101 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 controller 115 and decode the address to access the memory devices 103.

[0050] In some embodiments, the memory devices 103 include local media controllers 105 that operate in conjunction with the memory sub-system controller 115 to execute operations on one or more memory cells of the memory devices 103. An external controller (e.g., memory sub-system controller 115) can externally manage the memory device 103 (e.g., perform media management operations on the memory device 103). In some embodiments, a memory device 103 is a managed memory device, which is a raw memory device combined with a local controller (e.g., local media controller 105) for media management within the same memory device package. An example of a managed memory device is a managed NAND (MNAND) device.

[0051] The controller 115 and / or a memory device 103 can include a memory manager 113 configured to perform operations related to the management of the secondary random access memory 112 attached to the processing device 118 of the host system 102 via a compute express link (CXL) fabric 121. In some embodiments, the controller 115 in the memory sub-system 101 includes at least a portion of the memory manager 113. In other embodiments, or in combination, the fabric 121, the controller 116 and / or the processing device 118 in the host system 102 can include at least a portion of the memory manager 113. For example, the fabric 121, the controller 115, the controller 116, and / or the processing device 118 can include logic circuitry implementing the memory manager 113. For example, the switches and / or controller of the fabric 121, the controller 115, or the processing device 118 (processor) of the host system 102, can be configured to execute instructions stored in memory for performing the operations of the memory manager 113 described herein. In some embodiments, the memory manager 113 is implemented in an integrated circuit chip disposed in the memory sub-system 101 or a controller of the fabric 121. In other embodiments, the memory manager 113 can be part of firmware of the memory sub-system 101, an operating system of the host system 102, a device driver, a set of agents running in CXL switches of the fabric 121, a part of a fabric manager running a controller of the CXL fabric 121, or an application, or any combination thereof.

[0052] The random access memory 112 can be implemented using one or more memory devices attached to the CXL fabric 121 and / or the memory sub-system 101 to supplement the main memory 124. For example, the memory sub-system 101 can be configured with a page migration engine 127 as illustrated in, and further discussed below in connection with, FIG. 2 and FIG. 3.

[0053] FIG. 2 shows a memory sub-system having a page migration engine configured according to one embodiment. For example, the memory sub-system 101 of FIG. 1 can be implemented in a way as illustrated in FIG. 2 to provide at least a portion of the secondary random access memory 112 for the processing device(s) 118 in the host system 102.

[0054] In FIG. 2, the memory sub-system 101 includes a buffer chip 125 is configured as a gateway between memory chips 133, …, 135 in the memory sub-system 101 and a connection 107 to the memory sub-system 101.

[0055] For example, a processing device 118 can be connected to the memory sub-system 101 through the connection 107 with a compute express link (CXL) fabric 121. The compute express link fabric 121 can have one or more CXL switches controlled by a controller 122.

[0056] A conventional buffer chip is typically used in a server memory module to maintain signal integrity and to allow a higher number of dual in-line memory module (DIMM) slots per channel as well as support low-power applications. For example, a fully buffered DIMM (FB-DIMM) can have an advanced memory buffer (AMB) to compensate for signal deterioration by buffering and resending the signal.

[0057] The buffer chip 125 in the memory sub-system 101 can not only compensate for signal deterioration but also perform page migration operations to change how memory resources in the memory chips 133, …, 135 are used.

[0058] For example, a memory chip 133 can include memory cells 137 of a first type (e.g., NAND flash memory to offer increased capacity at a low cost and persistent storage capability). For example, a memory chip 135 can include memory cells 139 of a second type (e.g., DRAM to offer improved performance in latency, bandwidth, endurance).

[0059] The buffer chip 125 can include a page map 128 that determines where a memory page being accessed over the connection 107 is physically located. For example, during one period of operation of the memory sub-system 101, a memory address in a memory page addressed over the connection 107 can be in the memory chip 133; and during another period of operation of the memory sub-system 101, the memory page can be in the memory chip 135. The page migration engine 127 can perform page migration operations to change the page map to best utilize the memory resources in the memory chips 133, …, 135 of the memory sub-system 101.

[0060] The buffer chip 125 can include a page migration engine 127, and a control unit 129 configured to control the operations of page migration engine 127. After a page migration operation is submitted to the page migration engine 127, the page migration engine 127 can perform operations to migrate a page in the background without further assistance from the control unit 129.

[0061] For example, to move a memory page that is currently in the memory chip 135 to the memory chip 133, the page migration engine 127 can use a direct memory access (DMA) engine to store the data of the memory page in the source memory chip 133 to the destination memory chip 133 over the interconnect 131 among the buffer chip 125 and the memory chips 133, …, 135. Once the data of the memory page is in the destination memory chip 133, the page migration engine 127 and / or the control unit 129 can update the page map 128 to direct access to the memory page to the memory chip 133. Similarly, the page migration engine 127 can migrate a memory page from the memory chip 133 to the memory chip 135.

[0062] In some implementations, the memory sub-system 101 is configured to offer a memory capacity that is substantially equal to the sum of the capacities of the memory chips 133, …, 135. A portion of the non-volatile capacity of the memory chips 133, …, 135 (e.g., implemented via memory cells of a non-volatile type, such as NAND flash memory) can be reserved for the persistent storage of the page map 128. Optionally, a further portion of the non-volatile capacity of the memory chips 133, …, 135 can be reserved as free memory resources to facilitate page migration operations and / or to be used as replacement of bad / damaged memory pages or blocks.

[0063] In such implementations, the memory sub-system 101 can offer a memory capacity that includes a first portion that is volatile (e.g., implemented using memory cells of a volatile type, such as DRAM) and a second portion that is non-volatile (e.g., implemented via memory cells of a non-volatile type, such as NAND flash memory). Through page migration operations, some memory pages in the second, non-volatile portion can be migrated to a memory chip (e.g., 135) having volatile memory (e.g., to improve the performance level in accessing the memory pages). In response to an indication of a power outage event (or a command to shut down), the page migration engine 127 can migrate such pages back to a memory chip(s) (e.g., 133) having memory cells of the non-volatile type.

[0064] Alternatively, the sub-system 101 is configured to offer a memory capacity that is substantially equal to the sum of the capacities of the non-volatile memory chips (e.g., 133) in the memory sub-system 101. The volatile memory chips (e.g., 135) in the memory sub-system 101 are used by the control unit 129 to host actively used memory pages. For example, the control unit 129 can be configured to use the volatile memory chips (e.g., 135) as a cache memory to access the memory pages in the non-volatile memory chips (e.g., 133). In response to an indication of a power outage event (or a command to shut down), the page migration engine 127 can migrate such pages back to a memory chip(s) (e.g., 133) having memory cells of the non-volatile type. Thus, the entire capacity offered by the memory sub-syssub-system 101 considered non-volatile.

[0065] In some implementations, the control unit 129 can track the usages of memory pages hosted in a volatile memory chip (e.g., 135). When a memory page is not in active use for a period longer than a threshold, the control unit 129 can request the page migration engine 127 to migrate the page to a non-volatile memory chip (e.g., 133) to free up resources in the volatile memory chip (e.g., 135). Freeing up the resources can allow an actively used memory page to be migrated to the volatile memory chip (e.g., 135) or selectively powering down (or entering a low power mode) sections of the memory chip (e.g., 135) (or the entire memory chip 135) to reduce power consumption.

[0066] FIG. 3 shows an example of memory sub-systems having a page migration engine configured according to one embodiment. For example, the memory sub-system 101 of FIGS. 1 and / or 2 can be implemented in a way as illustrated in FIG. 3 to provide at least a portion of the secondary random access memory 112 for the processing device(s) 118 in the host system 102.

[0067] In FIG. 3, the memory sub-system 101 has a single external-facing interface, such as a CXL.mem interface 141 operable on a connection 107 to a compute express link (CXL) fabric 121. The CXL.mem interface 141 can be configured to support memory access requests in compliance with a protocol standard of CXL.mem.

[0068] The control unit 129 of the buffer chip 125 is configured to generate memory access responses to requests received in the CXL.mem interface 141.

[0069] The buffer chip 125 can have a plurality of internal-facing interfaces to access the memory chips 133, …, 135 of different characteristics.

[0070] For example, a memory chip 133 has NAND memory cells 136 that can be access via an ONFI interface 143 over ONFI connections 147 provided within the memory sub-system 101.

[0071] For example, a memory chip 135 has DRAM memory cells 138 that can be access via a DDR interface 145 over DDR connections 149 provided within the memory sub-system 101.

[0072] The page migration engine 127 in FIG. 3 has a plurality of DMA engines 151 to transfer data between buffers 153 in the buffer chip 125 and memory chips 133, …, 135.

[0073] For example, the page migration engine 127 can have a DMA engine adapted to read data from and write data to a NAND memory chip (e.g., 133) using an ONFI interface 143, and a separate DMA engine adapted to read data from and write data to a DRAM memory chip (e.g., 135) using an ONFI interface 143.

[0074] The NAND memory cells 136 are generally less reliable than DRAM memory cells 138 in data storage and retrieval. The page migration engine 127 can include error correction code (ECC) circuits 155 to generate redundant information for writing data to the NAND memory chips (e.g., 133) and to decode the data with redundant information retrieved from the NAND memory chips (e.g., 133).

[0075] Optionally, the buffer chip 125 can also include ECC circuits 155 adapted to enhance data integrity for reading from and writing to DRAM memory chips (e.g., 135).

[0076] For example, different DMA engines 151 of the page migration engine 127 can be used in parallel to transfer data between the buffers 153 and the memory chips (e.g., 133 and 135) to perform page migration operations in the background while the control unit 129 is servicing memory access requests received in the CXL.mem interface 141 using other internal-facing interfaces to memory chips in the memory sub-system 101.

[0077] For example, in response to a memory access request received in the CXL.mem interface 141, the control unit 129 can determine from the page map 128 that the memory address identified in the memory access request is in a memory page currently hosted in the NAND memory chip 133. The control unit 129 can access the memory chip 133 to retrieve data from the NAND memory chip 133 into the buffers 153 to generate a response to the memory access request. The latency of retrieving the data from the NAND memory chip 133 is longer than retrieving the data from the DRAM memory chip 135. The control unit 129 can determine that further access to the memory page can occur in a next period of time; and in response, the control unit 129 can generate a request for the page migration engine 127 to migrate the memory page to the DRAM memory chip 135. The migration operation can be performed using at least in part the data in the buffers 153.

[0078] After the page migration request is dispatched to the page migration engine 127, the control unit 129 can further service subsequent memory access requests received in the CXL.mem interface 141.

[0079] Typically, a smallest unit of data (e.g., 512 bytes or 4KB) that can be retrieved by the buffer chip 125 and error corrected using the ECC circuits 155 can be significantly larger than the size (e.g., one byte or 32 bytes, or 64 bytes, or 128 bytes) of the data requested by a memory access request received in the CXL.mem interface 141. Thus, one of the subsequent memory access requests can be directed to a portion of the data that is already in the buffer 153; and the control unit 129 can generate a response using the data in the buffer 153, while the page migration engine 127 migrates the memory page to the DRAM memory chip 133 in the background. The subsequent memory access requests can also include accesses to other memory pages (e.g., a page in the DRAM memory chip 135 or another memory chip in the memory sub-system 101).

[0080] After the completion of the migration of the memory page, the page migration engine 127 and / or the control unit 129 can update the page map 128. The buffer 153 storing the data for the memory page can be freed; and subsequent accesses to the memory page can be serviced via the control unit 129 access the DRAM memory chip 135 using a DDR interface 145.

[0081] When the control unit 129 determines that the memory page in the DDR memory chip 135 becomes cold (e.g., having not been accessed via the CXL.mem interface 141 for a period of time longer than a threshold), the control unit 129 can send a page migration request to the page migration engine 127 to migrate the memory page to a NAND memory chip 133.

[0082] When a section of the DRAM memory chip 135 has no valid data, the control unit 129 can instruct the DRAM memory chip 135 to place the section in a low power mode and / or shut down the section.

[0083] When the DRAM memory chip 135 has no valid data, the control unit 129 can instruct the DRAM memory chip 135 to enter a low power mode and / or to shut down.

[0084] Thus, the operations of the page migration engine 127 allows the control unit 129 to best utilize the resources of the memory chips 133, …, 135 for overall performance in capacity, latency, bandwidth, endurance, and data integrity, and to improve or optimize power usages of the memory sub-system 101.

[0085] FIG. 4 shows a buffer chip configured with a page migration queue according to one embodiment. For example, the buffer chips 125 in FIG. 2 and FIG. 3 can be implemented in a way as illustrated in FIG. 4.

[0086] In FIG. 4, the buffer chip 125 includes one or more DMA engines 164 to access NAND memory chips (e.g., 133) via one or more ONFI interfaces using a protocol standard of ONFI (e.g., over ONFI connections 147). Further, the buffer chip 125 includes one or more DMA engines 166 to access DRAM memory chips (e.g., 135) via one or more DDR interfaces using a protocol standard for DDR memory bus (e.g., over DDR connections 149).

[0087] The buffer chip 125 has a buffer 163 configured to buffer data read from or to be written to NAND memory chips (e.g., 133). The buffer 163 has pages 171, 172, …, 173, each having a same page size 177 optimized for throughput and / or memory bandwidth accessing NAND memory chips (e.g., 133).

[0088] The buffer chip 125 has a buffer 165 configured to buffer data read from or to be written to DRAM memory chips (e.g., 135). The buffer 165 has pages 174, 175, …, 176, each having a same page size 179 optimized for throughput and / or memory bandwidth in accessing DRAM memory chips (e.g., 133).

[0089] The page size 179 (e.g., 4KB or 8 KB) for DRAM access is smaller than the page size 177 (e.g., one GB or larger) for NAND access.

[0090] For example, a page (e.g., 171) for NAND access can contain multiple pages (e.g., 174, 175, …) for DRAM access. To migrate memory pages from a DRAM memory chip (e.g., 135) to a NAND memory chip (e.g., 133), the buffer chip 125 can stitch multiple pages (e.g., 174, 175, …) of DRAM data in a page (e.g., 171) for NAND access for a DMA engine 164 to write into a NAND memory chip (e.g., 133).

[0091] To protect integrity of data stored in a NAND memory chip (e.g., 133), the buffer chip 125 can use ECC circuits 155 to generate redundant information using an error correction code technique, such as low-density parity check (LDPC). When retrieving data from a NAND memory chip (e.g., 133), the buffer chip 125 can use the ECC circuit 155 to detect and correct random bit errors using the error correction code technique to recover error free data into the buffer 163.

[0092] After a page (e.g., 171) of data is retrieved from a NAND memory chip (e.g., 133), the buffer chip 125 can separate them into multiple pages (e.g., 174, 175, …) of the size 179 for DRAM access. Optionally, the buffer chip 125 can migrate the set of pages (e.g., 174, 175, …) corresponding to the entire page (e.g., 171) of NAND data into one or more DRAM memory chips (e.g., 135). Alternatively, the buffer chip 125 can migrate a subset of the pages of the size 179, selected from the page (e.g., 171) of NAND data for migration into one or more DRAM memory chips (e.g., 135).

[0093] The buffer chip 125 has a page translation unit 161 having an address translation logic 162 and a cached page map 128. A memory page as known to the external world outside of the CXL.mem interface 141 can be mapped to a page in a DRAM memory chip (e.g., 135), a portion of a page in a NAND memory chip (e.g., 133), or a page in a buffer (e.g., 163, 165) while the migration of the page is in progress. The control unit 129 can use the address translation logic 162 to translate, using the cached page map 128, the memory address identified in a memory access request received in the CXL.mem interface 141 and service the request using a buffer (e.g., 163 or 165) a memory chip (e.g., 133 or 135) as identified by the result of the address translation.

[0094] The buffer chip 125 in FIG. 4 includes a page predictor 157 configured to identify, based on activities of memory access requests received in the CXL.mem interface 141, candidate pages for page migration.

[0095] For example, when one or more memory access requests received in the CXL.mem interface 141 address a memory page currently hosted in a NAND memory chip (e.g., 133) and / or having data buffered in the buffer 163, the page predictor 157 can predict that more subsequent memory access requests will be directed to the memory page. In response, the page predictor 157 can enter into a migration queue 159 a request to migrate the memory page to a DRAM memory chip (e.g., 135).

[0096] For example, when the memory access requests received in the CXL.mem interface 141 has a sequential pattern of access and is expected to access a page that is currently hosted in a memory chip (e.g., 133) having a lower performance level than another memory chip (e.g., 135), the page predictor 157 can add a page migration request to the queue 159 to preemptively migrate the page to the faster memory chip (e.g., 135). When the migration completes before a memory access request addressing the memory page is received in the CXL.mem interface 141, a response to the memory access request can be provided with a shorter latency than generating the response using the slower memory chip (e.g., 133).

[0097] For example, when one or more memory pages in a DRAM memory chip (e.g., 135) have not been accessed via the CXL.mem interface 141 for a period longer than a threshold, the page predictor 157 can predict that further memory access requests received subsequently in the CXL.mem interface 141 are not likely to address the one or more memory pages. In response, the page predictor 157 can enter into a migration queue 159 a request to migrate the one or more memory pages to a NAND memory chip (e.g., 133) for persistent storage, reduced power consumption in the DRAM memory chip (e.g., 135), and / or freed memory resources that can be used to host another memory page for active use.

[0098] The buffer chip 125 can prioritize the requests in the migration queue 159 to schedule their execution for improve performance. For example, when a page is predicted to be accessed in a next period of time, the priority of the request can be set to be high to maximize the performance in responding to requests to access the page. For example, when the free memory resources in a DRAM memory chip (e.g., 135) is low, the requests to migrate pages from the DRAM memory chip (e.g., 135) can be assigned a high priority to allow memory pages to be migrated into the DRAM memory chip (e.g., 135). Thus, the buffer chip 125 can execute the requests in the queue 159 based on the priorities of the requests in the queue and thus out of the order in which the requests are entered into the queue 159.

[0099] In some instances, the priorities of page migration requests are assigned based at least in part on the quality of service (QoS) identified in memory requests in the CXL.mem interface 141. For example, the CXL.mem interface 141 can receive two interleaved sequences of memory access requests that are predicted to access two separate memory pages hosted in a NAND memory chip 133. The page predictor 157 can enter requests to migrate the two pages with priority levels assigned according to QoS indicators provided sequences of memory access requests such that the migration of a page predicted to be accessed by memory access requests with a high QoS indicator is assigned a high priority level, and the migration of a page predicted to be access by memory access request with a low QoS indicator is assigned a low priority level.

[0100] In some instances, the buffer chip 125 can aggregate multiple requests for migration from one or more DRAM memory chip (e.g., 135) to generate a page of the size 177 for migration into a NAND memory chip (e.g., 133) as one request.

[0101] In some instances, the buffer chip 125 can separate a request for migration of NAND data in a page (e.g., 171) in the buffer into a plurality of requests for migrating from pages (e.g., 174, 175, …) for different DRAM memory chips (e.g., 135).

[0102] In some implementations, the buffers 163 and 165 are configured in one or more DRAM memory chips (e.g., 135) that have a higher level of performance and / or endurance than a NAND memory chip (e.g., 133).

[0103] FIGS. 2-4 are discussed and / or illustrated using a NAND memory chip (e.g., 133) as an example of non-volatile memory chip. Other types of non-volatile memory chips can also be used, such as a NOR flash memory chip, a cross-point memory chip. Similarly, FIGS. 2-4 are discussed and / or illustrated using a DRAM memory chip (e.g., 135) as an example of volatile memory chip. Other types of volatile memory chips can also be used, such as an SRAM memory chip. Thus, the implementation of a memory sub-system 101 is not limited to the use of NAND memory chips (e.g., 133) and DRAM memory chips (e.g., 135).

[0104] FIGS. 2-4 are discussed and / or illustrated using an ONFI interface (e.g., 143) as an example for accessing a NAND memory chip (e.g., 133). Alternatively, an embedded multi media card (eMMC) interface can be used.

[0105] FIG. 5 illustrates a page migration queue according to one embodiment. For example, the migration queue 159 in the buffer chip 125 of FIG. 4 can be implemented in a way as illustrated in FIG. 5.

[0106] In FIG. 5, the migration queue 159 can have a plurality of slots, each configured to hold one migration request (e.g., 201 or 203).

[0107] A migration request (e.g., 201 or 203) can have a field configured to identify a source page (e.g., 181 or 185), a field configured to identify a destination page (e.g., 182 or 186), and a field configured to identify a priority level (e.g., 183 or 187) of the request (e.g., 201 or 203).

[0108] A source page (e.g., 181) can have an address in a buffer (e.g., 163 or 165), or in a memory chip (e.g., 133 or 135). A destination page (e.g., 182) can also have an address in a buffer (e.g., 163 or 165), or in a memory chip (e.g., 135 or 133). The DMA engines (e.g., 151; 164, 166) of the page migration engine 127 can transfer data between buffers 163, 165, and between buffers 153 and memory chips (e.g., 133, 135) according to the requests in the migration queue 159 and their priority levels.

[0109] For example, a memory page in a NAND memory chip can be migrated to a page (e.g., 171) in the buffer 163. The page 171 in the buffer 163 can be separated for migration into multiple pages (e.g., 174, 175, …) in the buffer 165. The pages (e.g., 174, 175) in the buffer 165 can be migrated separately to one or more DRAM memory chips (e.g., 135).

[0110] Similarly, memory pages in one or more DRAM memory chips (e.g., 135) can be migrated to pages (e.g., 174, 175, …) in the buffer 165. Multiple pages (e.g., 174, 175, …) in the buffer 165 can be stitched together in a page 171 for further migration to a NAND memory chip (e.g., 133).

[0111] FIG. 6 shows a method of autonomous page migration within a heterogeneous memory sub-system according to one embodiment. The method of FIG. 6 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 / firmware (e.g., instructions run or executed on a processing device), or a combination thereof. In some embodiments, the method of FIG. 6 is performed at least in part by the processing device 118 of the host system 102, the controller 115 of the memory sub-system 101, and / or the local media controller 105 of the memory sub-system 101 in 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.

[0112] For example, the method of FIG. 6 can be implemented (e.g., via software, firmware and application specific circuits) as part of a memory manager 113 in the memory sub-system 101 and / or the host system 102.

[0113] For example, the memory sub-system 101 includes: a plurality of memory chips 133, …, 135 of different characteristics (e.g., in volatile or not, latency, bandwidth, throughput, endurance, energy consumption); and a buffer chip 125 coupled to the memory chips 133, …, 135. For example, each of the memory chips 133, …, 135 and the buffer chip 125 is a separate integrated circuit device having its own integrated circuit package. The memory sub-system 101 includes a printed circuit board having traces connected to pins of the integrated circuit devices.

[0114] For example, the buffer chip 125 includes: a first interface (e.g., 141) configured to allow a processing device 118 outside of the memory sub-system 101 to access a memory capacity of the memory sub-system 101 implemented using the memory chips 133, …, 135; a plurality of second interfaces (e.g., 143, 145) to the memory chips 133, …, 135; and a page migration engine 127 operable to migrate, among the memory chips 133, …, 135, a memory page as known to the processing device 118.

[0115] For example, the first interface (e.g., 141) is operable on a compute express link (CXL) connection to receive memory access requests in a CXL.mem protocol; and the second interfaces (e.g., 143, 145) can include a double data rate (DDR) interface, an open NAND flash interface (ONFI), or an embedded multi media card (eMMC) interface, or any combination thereof.

[0116] For example, the memory sub-system 101 and / or the page migration engine 127 can include a first buffer 163 having first pages 171, 172, …, 173 each having a first size 177 to buffer data read from or to be written to a subset of the memory chips (e.g., 133) via the open NAND flash interface (ONFI) 143. The memory sub-system 101 and / or the page migration engine 127 can further include a second buffer 165 having second pages 174, 175, …, 176 each having a second size 179, smaller than the first size 177, to buffer data read from or to be written to a subset of the memory chips (e.g., 135) via the double data rate (DDR) interface 145.

[0117] For example, the memory sub-system 101 and / or the page migration engine 127 can include a plurality of direct memory access (DMA) engines (e.g., 151; 164, 166) operable to access the memory chips 133, …, 135 through the second interfaces (e.g., 143, 145).

[0118] For example, the memory sub-system 101 and / or the page migration engine 127 can include error correction code (ECC) circuits 155 operable to generate redundant information for data written through the ONFI interface 143 and to decode data read through the ONFI interface 143.

[0119] For example, the memory sub-system 101 and / or the page migration engine 127 can include an address translation logic configured to translate a memory address received in the first interface (e.g., 141) into an address (e.g., unknown to the processing device 118) in the memory chips 133, …, 135 or in one of the first buffer 163 and the second buffer 165.

[0120] For example, the memory sub-system 101 and / or the page migration engine 127 can include a migration queue 159 and be operable to process page migration requests (e.g., 201, 203) in the migration queue 159 according to priority levels (e.g., 183, 187) specified for the page migration requests (e.g., 201, 203) in the queue 159. Instead of processing the requests (e.g., 201, 203) in the order of being entered into the migration queue 159, the memory sub-system 101 and / or the page migration engine 127 can take a request out of order from the queue 159 based at least in part on the priority levels (e.g., 183, 187) of the page migration requests (e.g., 201, 203).

[0121] For example, the memory sub-system 101 and / or the page migration engine 127 can include a page predictor 157 configured to generate the page migration requests (e.g., 201, 203) in response to memory access requests received in the first interface (e.g., 141).

[0122] At block 301, the method of FIG. 6 includes providing, by a memory sub-system 101 having a plurality of memory chips 133, …, 135 of different characteristics, a memory capacity that is accessible, via a first interface 141 of a buffer chip 125 in the memory sub-system 101, to a processing device 118 located outside of the memory sub-syssub-system 101.

[0123] For example, the first interface (e.g., 141) is operable on a compute express link (CXL) connection (e.g., to a CXL fabric 121) ; and the second interfaces (e.g., 143, 145) include a double data rate (DDR) interface 145, an ONFI interface 143, an embedded multi media card (eMMC) interface, or any combination thereof.

[0124] At block303, the method includes receiving, in the first interface 141, a memory access request identifying a first memory address in a memory page known to the processing device 118.

[0125] At block 305, the method includes translating, by the buffer chip 125, the first memory address to a second memory address (e.g., unknown to the processing device 118) in the memory chips 133, …, 135 to generate a response to the memory access request.

[0126] At block 307, the method includes identifying, by the memory sub-system 101 based on memory access requests received in the first interface 141, the memory page for migration.

[0127] At block 309, the method includes migrating, by the memory sub-system 101 using second interfaces (e.g., 143, 145) of the buffer chip 125, the memory page among the memory chips 133, …, 135 to change a mapping destination of the memory page.

[0128] For example, the method of FIG. 6 can further include: buffering, in a first buffer 163 having first pages 171, 172, …, 173 each having a first size 177, data read from or to be written to a first subset of the memory chips (e.g., 133); and buffering, in a second buffer 165 having second pages 174, 175, …, 176 each having a second size 179, smaller than the first size 177, data read from or to be written to a second subset of the memory chips (e.g., 135).

[0129] For example, the buffer chip 125 can include a plurality of direct memory access (DMA) engines 151, including a first subset (e.g., DMA engines 164) configured to use the first buffer 163 and a second subset (e.g., DMA engines 166) configured to use the second buffer 165. The DMA engines 151 are each configured to perform the transfer of one page (e.g., 171 or 174) from a buffer (e.g., 163 or 165) to or from a memory chip (e.g., 133 or 135) at a time. The sizes 177 and 179 are optimized for performance in such transfers to respective memory chips (e.g., 133 or 135).

[0130] For example, the method of FIG. 6 can further include: generating, using error correction code (ECC) circuits 155 in the buffer chip 125, redundant information for data written to the memory chips (e.g., 133) via the first buffer (e.g., 163); and decoding, using the error correction code (ECC) circuits 155, data read from the memory chips (e.g., 133) into the first buffer 163.

[0131] For example, the method of FIG. 6 can further include: generating, in a migration queue 159, a plurality of page migration requests (e.g., 201, 203) to migrate memory pages among the memory chips (e.g., 133, 135); and determining an order to execute the page migration requests (e.g., 201, 203) in the migration queue 159 based on priority levels (e.g., 183, 187) of the page migration requests (e.g., 201, 203).

[0132] For example, the method of FIG. 6 can further include: combining a plurality of page migration requests of migrating a plurality of pages (e.g., 174, 175, ….) from the second subset of the memory chips (e.g., 135) into a page migration request of migrating to a page (e.g., 171) in the first subset of the memory chips (e.g., 133).

[0133] For example, the method of FIG. 6 can further include: generating a plurality of page migration requests of migrating a plurality of pages (e.g., 174, 175, ….) to the second subset of the memory chips (e.g., 135) to implement a page migration request of migrating to a page (e.g., 171) in the first subset of the memory chips (e.g., 133).

[0134] In at least some embodiments, the memory sub-system 101 is configured to migrate pages across the memory chips 133, …, 135 based on migration requests (e.g., 201, 203) identified by the memory sub-system 101 using a reinforcement learning technique.

[0135] In general, access to memory pages hosted in a slower memory chip (e.g., 133 with NAND memory cells 136) can be improved through caching the memory pages in buffers (e.g., 153; 163) and / or in faster memory chip (e.g., 135 with DRAM memory cells 138). However, traditional caching systems lack the ability to predict future access patterns, to optimize for multiple concurrent workloads, and / or to dynamically adjust their caching policies according to changing application requirements.

[0136] The memory sub-system 101 can be configured with intelligent caching capabilities to learn, and evolve with, application behaviors while maintaining / improving performance and efficiency.

[0137] For example, a caching engine driven by artificial intelligence (AI) can be configured in the memory sub-system 101 to identify memory pages for predictive caching in, and / or for migration to, a faster memory chip (e.g., 135 with DRAM memory cells 138) from a slower memory chip (e.g., 133 with NAND memory cells 136), before the memory pages are accessed by the host system 102.

[0138] For example, a technique of reinforcement learning and continuous learning can be implemented in the memory sub-system 101 to improve the predictive capability of the memory sub-system 101 in identifying memory pages for migration by the page migration engine 127. The memory sub-system 101 can use neural networks to perform access pattern prediction, use reinforcement learning for cache policy optimization, and use online learning for continuous adaptation to workload changes. The memory sub-system 101 can maintain a feedback loop for ongoing optimization while ensuring protocol compliance and meeting performance targets.

[0139] The intelligent capabilities of the memory sub-system 101 can improve hit rates through AI driven prediction, reduce latency through predictive prefetching / page migration, optimize resource utilization through learned cache / page migration policies, while providing autonomous adaptation to changing workload patterns and maintaining compatibility with host software control.

[0140] For example, the hit rate can be a percentage of, among memory access requests received in the CXL.memory interface 141 over the connection 107, a portion of requests that address memory pages being hosted in faster memory chips (e.g., 135) at the time of the requests. Since servicing the memory access requests addressing the memory pages hosted in the faster memory chips (e.g., 135) has a lower latency level than servicing the memory access requests addressing the memory pages hosted in the slower memory chips (e.g., 133), increasing the hit rate can improve the overall latency performance of the memory sub-system 101 in servicing the host system 102.

[0141] For example, the memory sub-system 101 can have a neural processing unit configured with dedicated hardware for neural network inference and training, including pattern recognition circuits, prediction engines, and reinforcement learning accelerators with performance counters. The use of the neural processing unit in the memory sub-system 101 can accelerate the computations of AI driven predictions and / or page migration decisions.

[0142] For example, the memory sub-system 101 can have a continuous learning engine configured with hardware that implements online learning techniques, maintains historical pattern datasets, and updates prediction models in real-time with specialized tensor processing units.

[0143] For example, the memory sub-system 101 can have a reinforcement learning module configured to manage reward calculations, policy updates, and action selection based on observed memory access performance and system state, with dedicated circuits configured to implement a reinforcement learning technique (e.g., Q-learning).

[0144] For example, the memory sub-system 101 can have an adaptive policy controller configured with hardware to dynamically adjust caching / page migration strategies, prefetching policies, and resource allocation based on AI predictions and learned behaviors with real-time monitoring capabilities.

[0145] For example, the neural network configured in the memory sub-system 101 processes incoming memory access patterns and workload characteristics. The reinforcement learning module in the memory sub-system selects optimal caching / page migration actions based on current state and learned policies. Caching / page migration decisions are executed while the memory sub-system 101 monitors performance metrics and reward signals. The continuous learning module in the memory sub-system 101 updates models based on observed performance and reward outcomes and new patterns. The memory sub-system 101 periodically updates policy networks to incorporate newly learned optimization. The memory sub-system 101 can continuously operate in this loop, constantly learning and adapting to achieve optimal performance for the current workload mix. The AI models can become increasingly sophisticated over time as they learn from more diverse workload patterns and scenarios.

[0146] FIG. 7 shows a memory sub-system having a reinforcement learning module configured to identify pages for migration according to one embodiment. For example, a memory sub-system 101 in FIGS. 1-3 can be configured to further include a reinforcement learning module 191 as in FIG. 7.

[0147] In FIG. 7, a reinforcement learning module 191 is configured in a buffer chip 125 of the memory sub-system 101 to identify memory pages for migration within the memory sub-system 101 for improved performance of the memory sub-system 101 (e.g., in the latency of the memory sub-system 101 in responding to memory access requests from the host system 102).

[0148] For example, the reinforcement learning module 191 can consider a memory page currently being hosted, according to the page map 128, in a faster memory chip (e.g., 135) as a cached page of the memory page hosted in a slower memory chip (e.g., 133). Since the memory page is cached in the faster memory chip (e.g., 135), the latency of the host system 102 accessing the memory page decreases (and thus the latency performance of the memory sub-system 101increases), when the arrangement is compared to the memory page being hosted in the slower memory chip (e.g., 133) without being cached.

[0149] However, when the memory page is cached in the faster memory chip (e.g., 135) for an extended period without being accessed by the host system 102, the memory resources of the faster memory chip (e.g., 135) are seen inadequately used, especially when there are other memory pages that can be cached to improve the overall latency performance of the memory sub-system 101.

[0150] In general, the memory sub-system 101 can host memory pages in the memory chips (e.g., 133, …, 135) without establishing the relation that a memory page being hosted in a faster memory chip (e.g., 135) is a cached page of the memory page being hosted in a slower memory chip (e.g., 133). For example, when a memory page is hosted in a faster memory chip (e.g., 135), the memory sub-system 101 may not allocate a page from a slower memory chip (e.g., 133) for the same memory page.

[0151] When a memory page is hosted in a faster memory chip (e.g., 135) and the host system 102 accesses the memory page, the latency performance of the memory sub-system 101 in responding to the memory access request can be optimal; and thus, a positive reward can be provided to the reinforcement learning module 191 for its decision to keep the memory page hosted in the faster memory chip (e.g., 135).

[0152] However, when the memory page is hosted in a faster memory chip (e.g., 135) for a time period and the host system 102 does not access the memory page during the time period, the memory resources in the faster memory chip (e.g., 135) to host the memory page are not utilized in an optimal way, especially when there are memory pages that are being accessed during the time period but cannot be hosted in the faster memory chip (e.g., 135) due to the lack of free memory resources in the memory chip (e.g., 135). In such a situation, the reinforcement learning module 191 can be provided with a negative reward (or penalty) for its decision to keep the memory page hosted in the faster memory chip (e.g., 135).

[0153] When a memory page is hosted in a slower memory chip (e.g., 133) and the host system 102 accesses the memory page, the latency performance of the memory sub-system 101 in responding to the memory access request can be non-optimal; and thus, a negative reward (or penalty) can be provided to the reinforcement learning module 191 for its decision to keep the memory page hosted in the slower memory chip (e.g., 133).

[0154] However, when the memory page is hosted in a slower memory chip (e.g., 133) for a time period and the host system 102 does not access the memory page during the time period, hosting the memory page in the slower memory chip can free up memory resources from a faster memory chip (e.g., 135). Thus, the usages of memory resource in the slower memory chip (e.g., 135) to host the memory page is optimal; and a positive reward can be provided to the reinforcement learning module 191 for its decision to keep the memory page hosted in the slower memory chip (e.g., 133).

[0155] The reinforcement learning module 191 can include a reward model configured to predict the reward / penalty that it can receive for making a decision to migrate, or not migrate, a memory page. For example, when the memory page is currently hosted in a slower memory chip 133, the reinforcement learning module 191 can predict the reward / penalty that it can receive for migrating the memory page to a faster memory chip 135 (or buffers 153), and to predict the reward / penalty that it can receive for keeping the memory page hosted in the slower memory chip 133. For example, when the memory page is currently hosted in a faster memory chip 135, the reinforcement learning module 191 can predict the reward / penalty that it can receive for migrating the memory page to a slower memory chip 133, and to predict the reward / penalty that it can receive for keeping the memory page hosted in the faster memory chip 135. The reinforcement learning module 191 can decide to migrate the memory page if the reward model predicts that the reward for migrating the memory page is larger than the reward for not migrating the memory page; and the reinforcement learning module 191 can decide not to migrate the memory page if the reward model predicts that the reward for not migrating the memory page is larger than the reward for migrating the memory page.

[0156] Since the rewards / penalties are configured based on performance impacts of the decisions, maximizing rewards can improve the overall performance of the memory sub-system 101.

[0157] In some instances, the rewards predicted by the reward model can be inaccurate; and the page migration decisions made by the reinforcement learning module 191 can be sub-optimal. The memory sub-system 101 can determine the actual rewards for the page migration decisions made by the reinforcement learning module 191 to further train the reward model to improve its prediction capability and / or accuracy. Thus, over a period of time, the reward model can converge; and the page migration decisions made by the reinforcement learning module 191 can be become optimized.

[0158] In some implementations, the memory sub-system 101 is configured to group, based on memory access activities / patterns of the host system 102 during a last time period of a predetermined length, memory pages. The reinforcement learning module 191 make migration decisions for memory page groups, instead of making decision on a per memory page basis.

[0159] For example, memory pages having the same type of hosting configuration can be classified within a same group based on similarity in their predicted usage patterns during a next period of time. The reinforcement learning module 191 can be configured to make a migration decision for the entire group, instead of making separate decisions of individual memory pages.

[0160] Optionally, the memory sub-system 101 can collect data about the accuracy of classifying the memory pages into a same group based on actual memory access activities that occur after the predictions made to classify the memory pages. When some memory pages are actually accessed during a next time period in a pattern that is different from what is predicted by a neural model, the memory sub-system 101 can generate training data to further train the neural model to improve its accuracy in predicting the access patterns for grouping of memory pages.

[0161] If the reinforcement learning module 191 decides, based on the memory access activities of the host system 102, to migrate a memory page currently hosted in a slower memory chip (e.g., 133), the reinforcement learning module 191 can enter a page migration request (e.g., 201) in the migration queue 159; and in response, the page migration engine 127 can migrate the memory page from the slower memory chip (e.g., 133) to a faster memory chip (e.g., 135) (or to the buffers 153).

[0162] If the reinforcement learning module 191 decides, based on the memory access activities of the host system 102, to migrate a memory page from a faster memory chip (e.g., 135), the reinforcement learning module 191 can enter a page migration request (e.g., 203) in the migration queue 159; and in response, the page migration engine 127 can migrate the memory page from the faster memory chip (e.g., 135) to the slower memory chip (e.g., 133).

[0163] Optionally, the memory sub-system 101 can allocate a portion of the faster memory cells (e.g., 139) in one or more faster memory chips (e.g., 135) as a cache memory; and the reinforcement learning module 191 can implement the caching, in the cache memory, of memory pages that are hosted in slower memory cells (e.g., 137). Optionally, the buffers 153 can be allocated as the cache memory, or part of the cache memory.

[0164] Based on the page migration requests identified by the reinforcement learning module 191, the page migration engine 127 can move the data of the memory page among the memory chips (e.g., 133, 135), the cache memory, and / or the buffers (e.g., 153).

[0165] In some implementations, the memory sub-system 101 is configured to allocate a portion of the capacity of faster memory (e.g., DRAM memory cells 138 and / or a portion of DRAM or SRAM in the buffer chip 125) as a cache memory. The reinforcement learning module 191 is configured to request the page migration engine 127 to migrate a memory page to or from the cache memory.

[0166] Alternatively, the reinforcement learning module 191 can treat entire capacity of the faster memory (e.g., DRAM and / or SRAM in the memory sub-system 101) as a cache memory for memory pages hosted in slower memory (e.g., NAND in the memory sub-system 101) in deciding caching or cache eviction, even though there is no formal caching relation in the memory sub-syssub-system 101e memory pages. For example, when a memory page is hosted in the faster memory (e.g., DRAM and / or SRAM in the memory sub-system 101), there can be no arrangement of the memory page being also hosted in the slower memory (e.g., NAND in the memory sub-system 101sub-system 101ge in the faster memory is the cached version of the page in the slower memory. When the memory page is hosted in the faster memory, the memory sub-system 101 does not store data to indicate the hosting of the memory page in a slower memory and does not allocate a page from the slower memory for the memory page. When the reinforcement learning module 191 decides to cache a memory page currently being hosted in the slower memory, the page migration engine 127 can migrate the hosting of the memory page in the slower memory to the faster memory; and when the reinforcement learning module 191 decides to evict a memory page from the faster memory, the page migration engine 127 can migrate the hosting of the memory page in the faster memory to the slower memory.

[0167] For example, when the reinforcement learning module 191 predicts that, at the current state of operation of the memory sub-system 101, the reinforcement learning module 191 is to receive more reward to migrate a memory page than not migrating the memory page, the reinforcement learning module 191 can decide to migrate the memory page and enter a migration request for the memory page in the migration queue 159. If the memory page is currently hosted in a slower memory chip (e.g., 133), the page migration engine 127 can migrate the memory page to a faster memory chip (e.g., 135); and if the memory page is currently hosted in a faster memory chip (e.g., 133), the page migration engine 127 can migrate the memory page to a slower memory chip (e.g., 135). After the page migration, the memory sub-system 101 can determine a reward or penalty for the page migration decision based on the timing of the host system 102 in accessing the memory page.

[0168] For example, if the memory page is migrated from the slower memory chip (e.g., 133) to the faster memory chip (e.g., 135), a predetermined maximum reward can be provided to the reinforcement learning module 191 when the memory page is accessed by the host system 102 immediately after the page migration. The reward can be reduced (e.g., linearly over time) and extended to a penalty when the time gap between the memory access and the page migration increases.

[0169] For example, if the memory page is migrated from the faster memory chip (e.g., 135) to the slower memory chip (e.g., 133), a predetermined maximum reward can be provided to the reinforcement learning module 191 when the memory page is accessed by the host system 102 at a predetermined time period after the page migration. The reward can be reduced (e.g., linearly over time) and extended to a penalty when the time gap between the memory access and the page migration increases or decreases.

[0170] The memory sub-system 101 is configured to provide reward / penalty to the reinforcement learning module 191 not only for a memory page identified by the reinforcement learning module 191 for migration, but also for a memory page identified by the reinforcement learning module 191 for no migration.

[0171] For example, if the reinforcement learning module 191 decides to keep a memory page being hosted in a faster memory chip (e.g., 135), a predetermined maximum reward can be provided to the reinforcement learning module 191 when the memory page is accessed by the host system 102 immediately after the decision of no page migration for the memory page. The reward can be reduced (e.g., linearly over time) and extended to a penalty when the time gap between the memory access and the page migration increases.

[0172] For example, if the reinforcement learning module 191 decides to keep a memory page being hosted in a slower memory chip (e.g., 133), a predetermined maximum reward can be provided to the reinforcement learning module 191 when the memory page is accessed by the host system 102 at least a predetermined time period after the decision of no migration. The reward can be reduced (e.g., linearly over time) and extended to a penalty when the time gap between the memory access and the page migration decreases.

[0173] In some embodiments, the reinforcement learning module 191 is configured to identify source pages for migration; and the page migration engine 127 is configured to identify the destinations of the page migration based on resource availability, and / or efficiency in data movements.

[0174] For example, the pages in a faster memory chip (e.g., 135) can have a page size 179 that is smaller than pages in a slower memory chip (e.g., 133). The page migration engine 127 can combine multiple pages to be migrated from one or more faster memory chips (e.g., 135) for migration into a page in a slower memory chip (e.g., 133). Optionally, the page migration engine 127 can initially migrate the pages in the faster memory chips (e.g., 135) to a page (e.g., 171) having the larger page size 177 in the buffer 163; and subsequently, the data in the larger page (e.g., 171) can be migrated to a slower memory chip (e.g., 133).

[0175] For example, the pages in a slower memory chip (e.g., 133) can have a page size 177 that is larger than pages in a faster memory chip (e.g., 133). The page migration engine 127 can separate a large page in a slower memory chip (e.g., 133) into multiple pages of the smaller page size 179 for hosting in one or more faster memory chips (e.g., 135). Optionally, the page migration engine 127 can initially migrate the data from the page in the slower memory chip (e.g., 133) to a page (e.g., 171) having the larger page size 177 in the buffer 163; and subsequently, the data in the larger page (e.g., 171) can be migrated to one or more faster memory chips (e.g., 135) and / or the buffer 165.

[0176] Since the page migration engine 127 can identify migration destinations for pages identified by the reinforcement learning module 191, the reinforcement learning module 191 can skip identifying the destinations for the page migration requests entered into the migration queue 159.

[0177] The reinforcement learning module 191 is configured to make decisions in migrating or not memory pages based on rewards / penalties it can receive for the decisions based on the predictions of its reward model. The actual rewards calculated and provided to the reinforcement learning module 191 to train its reward model for adaptation to changing patterns of the workload of the memory sub-system 101.

[0178] In some implementations, the reward model is implemented via an artificial neural network model; and during a period of exploration and training, the reinforcement learning module 191 can make various decisions (e.g., randomly) related to page migration to learn the actual rewards / penalties received and to train the reward model. After the accuracy of the reward model improves and / or converges, the reinforcement learning module 191 can make page migration decisions based on maximizing its rewards.

[0179] FIG. 8 shows an example of memory sub-systems having a reinforcement learning module and a page migration engine configured according to one embodiment. For example, a memory sub-system 101 in FIGS. 1-3 and 7 can be configured to include a reinforcement learning module 191 with a context register 193 as in FIG. 8.

[0180] In FIG. 8, the reinforcement learning module 191 is controlled by the content in the context registers 193 in the memory sub-system 101. A host system 102 can change the behavior of the reinforcement learning module 191 by writing hints, context data, and / or rules in the context register 193 to influence or control the page migration decisions of the reinforcement learning module 191.

[0181] For example, the context registers 193 have a predetermined memory address known to the host system 102. When the host system 102 stores data to the memory address over the connection 107 using a memory access protocol, the data is stored into the context register 193 to control the reinforcement learning module 191.

[0182] For example, the context register 193 can include data specifying how rewards and / or penalties are calculated for the reinforcement learning module 191.

[0183] For example, the time gap between a decision to migrate a memory page from a faster memory chip (e.g., 135) and a subsequent request from the host system 102 to access memory page for providing a maximum reward for page migration decision can be tuned or customized by the data specified in the context register 193.

[0184] For example, the time gap between a decision to keep a memory page in a faster memory chip (e.g., 135) and a subsequent request from the host system 102 to access memory page for reducing a reward associated with the decision to zero can be tuned or customized by the data specified in the context register 193.

[0185] For example, the time gap between a decision to migrate a memory page from a slower memory chip (e.g., 133) and a subsequent request from the host system 102 to access memory page for reducing a reward associated with the decision to zero can be tuned or customized by the data specified in the context register 193.

[0186] For example, the time gap between a decision to keep a memory page in a slower memory chip (e.g., 135) and a subsequent request from the host system 102 to access memory page for a maximum reward associated with the decision can be tuned or customized by the data specified in the context register 193.

[0187] Optionally, the host system 102 can use the context register 193 to identify memory pages that are to be hosted in faster memory chips (e.g., 135); and the memory sub-system 101 is configured to avoid generating page migration requests for such memory pages.

[0188] Optionally, the host system 102 can use the context register 193 to identify memory pages that are to be hosted in slower memory chips (e.g., 133); and the memory sub-system 101 is configured to avoid generating page migration requests for such memory pages.

[0189] Optionally, the host system 102 can use the context register 193 to identify a characteristic of a memory access workload of the memory sub-system 101; and the reinforcement learning module 191 is configured to predict rewards based on the characteristic. For example, the characteristic can include the context of running one or more applications that cause the memory access workload for the memory sub-system 101.

[0190] FIG. 9 shows a buffer chip configured with a reinforcement learning module having a reward model to identify memory pages for migration according to one embodiment. For example, the buffer chip 125 in FIGS. 7 and 8 can be implemented in a way as illustrated in FIGS. 9 and / or 4 .

[0191] In FIG. 9, a page predictor 157 is configured in the buffer chip 125 to identify memory pages for migration. The page predictor 157 includes a reinforcement learning module 191, a neural processing unit 195, and a pattern analyzer 215. The reinforcement learning module 191 includes a reward model 197 used to predict a reward / penalty for the reinforcement learning module 191 making a decision about page migration, such as keeping a memory page hosted in a memory chip (e.g., 133 or 135), or migrating the memory page off the memory chip (e.g., 133 or 135).

[0192] The neural processing unit 195 can include a multiplier-accumulator unit (MAC unit) to accelerate computations involved in the reward model 197 and / or the pattern analyzer 215.

[0193] The page predictor 157 is configured to identify a state of the memory sub-system 101 in which the buffer chip 125 is installed. The state is configured to be represented a set of state parameters relevant to the decision of whether to migrate a memory page (or a group of memory pages classified by the pattern analyzer 215 to be in a similar situation for page migration).

[0194] For example, the set of state parameters can include parameters in the context register 193. Further, the set of state parameters can include parameters indicative of the availability of free resources in the buffers 163 and 165 and / or in one or more faster memory chips (e.g., 135) accessible via the DDR interfaces 145. The set state parameters can classify the memory pages in the page map 128 into a plurality of groups based on their similarity in being accessed by the host system 102 over the CXL.mem interface 141 in a prior time period and / or their probability of being accessed in a next time period of a predetermined length.

[0195] The reward model 197 is configured and trained to predict the reward to the reinforcement learning module 191 for selecting a page migration decision for a group of memory pages at the state represented by the state parameters. For example, the reward model 197 can include an artificial neural network to receive the state parameters as an input and to provide a prediction of the reward for migrate the memory pages in the group, to keep the memory pages in place without migration, and / or to migrate a percentage of the memory pages in the group. Based on the predicted rewards for the different decisions, the reinforcement learning module 191 can select a decision that is expected to lead to the largest the reward.

[0196] Based on the page migration decisions for the different memory page groups, the page predictor 157 can generate page migration requests (e.g., 201, 203) in a migration queue 159 (e.g., as in FIG. 5). The DMA engines 164 and 166 can be used to implement the page migration requested in the migration queue 159.

[0197] The page predictor 157 can further monitor the memory access activities following the migration decisions selected according to the reward model 197 to calculate the actual rewards. The actual rewards can be different from the rewards predicted by the reward model 197. The page predictor 157 can further train the reward model 197 based on the actual rewards calculated according to the memory access activities in the time period following the migration decisions.

[0198] Similarly, the pattern analyzer 215 can monitor the memory access activities to determine the memory page classifications for grouping and / or memory access patterns during the next period of time. A neural module of the pattern analyzer 215 can also be trained to reduce the differences between the memory page classifications for group and / or memory access patterns as predicted during the migration decisions and as measured during the next period of time.

[0199] After a period of exploration and training, the reward model 197 can lead the page predictor 157 to make optimal migration decisions to maximize rewards, which corresponds to optimizing the memory service performance of the memory sub-system 101 containing the buffer chip 125.

[0200] FIG. 10 illustrates a technique to identify pages for migration using a reinforcement learning module according to one embodiment. For example, the technique of FIG. 10 can be implemented in the memory sub-system 101 of FIGS. 7 and 8 using the buffer chip 125 of FIGS. 7-9 .

[0201] In FIG. 10, a pattern analyzer 215 configured in the memory sub-system 101 determines a workload classification 217 from a history 170 of the workload of the memory sub-system 101 in handling the memory access requests received in the memory sub-system 101 over a connection 107 to the host system 102.

[0202] For example, the workload classification 217 can be based on, and / or include parameters quantifying spatial / temporal locality, stride patterns, or other characteristics in the memory access requests in the history 170.

[0203] For example, the workload classification 217 can include the classifications of memory pages in the page map 128 into a plurality of groups, wherein memory pages in a same group have similar memory access patterns for page migration.

[0204] The parameters specified by the host system 102 in the context register 193 and the parameters in the workload classification 217 can from a set of state parameters 199 identifying a state for the page predictor 157 to make page migration decisions.

[0205] The page predictor 157 is configured to use a reward model 197 to make page migration decisions. For example, the page predictor 157 can use the reward model 197 to predict a first reward for migrating the pages in a group, a second reward for not migrating the pages in the group, a third reward for migrating a predetermined percentage of pages in the group, etc. The page predictor 157 is configured to select the page migration decision that corresponds to the largest one of the first reward, the second reward, the third reward, etc.

[0206] Based on the page migration decisions made using the reward model 197, the page predictor 157 can determine the page identification 211 of each memory page to be migrated by the page migration engine 127.

[0207] A prioritization unit 213 can monitor the workload history 170 to identify the performance of the memory sub-system 101, such as hit rates 221, usage 223 of memory bandwidth of memory chips 133, …, 135, latency 225 of the memory chips 133, …, 135 in responding to memory access requests, and utilization 227 of fast memory resources (e.g., DRAM memory cells 139). Based on the monitoring of the performance of the memory sub-system 101, the prioritization unit 213 of the memory sub-system 101 can assign a priority level 189 to the page identified by the reinforcement learning module 191 for migration; and a migration request 202 can be generated in the migration queue 159 with the priority level 189 for the migration of a page having the identification 211 determined using the reward model 197.

[0208] In a time period following the page migration decisions, the memory sub-system 101 can monitor the memory activities of the host system 102 to measure rewards 219 for the page migration decisions made using the rewards predicted by the reward model 197. The measured rewards 219 can be different from the predicted rewards. Model training 210 can be performed to improve the accuracy of the reward model 197 in predicting the rewards, adapt the reward model 197 to the changing context as represented by the parameters in the context register 193 and / or adapt the reward model 197 to the changing patterns in the workload history 170.

[0209] FIG. 11 shows a method of page migration within a heterogeneous memory sub-system according to one embodiment. The method of FIG. 11 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 / firmware (e.g., instructions run or executed on a processing device), or a combination thereof. In some embodiments, the method of FIG. 11 is performed at least in part by the processing device 118 of the host system 102, the controller 115 of the memory sub-system 101, and / or the local media controller 105 of the memory sub-system 101 in 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.

[0210] For example, the method of FIG. 11 can be implemented (e.g., via software, firmware and application specific circuits) as part of a memory manager 113 in the memory sub-system 101 and / or the host system 102.

[0211] For example, the computing system 100 can include: a host system 102 having a processing device 118 and a main memory 124; a memory sub-system 101; and a compute express link (CXL) fabric 121 connected between the host system 102 and the memory sub-system 101. The memory sub-system includes: at least one first memory chip (e.g., 133) having memory cells (e.g., 136) of a first type (e.g., NAND or NOR flash memory); at least one second memory chip having memory cells (e.g., 138) of a second type (e.g., DRAM or SRAM); a reinforcement learning module 191; and a page migration engine 127. The reinforcement learning module 191 is configured to identify, based on a reward model 197, memory pages for migration between the at least one first memory chip (e.g., 133) and the at least one second memory chip (e.g., 135); and the page migration engine 127 is configured to implement migration of the memory pages identified by the reinforcement learning module 191. Optionally, the memory sub-syssub-system 101r includes a pattern analyzer 215 configured with an artificial neural network to determine a classification 217 of a workload of the memory sub-syssub-system 101n input to the reward model 197 includes the classification 217.

[0212] For example, the memory sub-system 101 can include a plurality of memory chips 133, …, 135 of different characteristics (e.g., in latency, bandwidth, throughput, volatile vs. non-volatile, memory cell type). The page migration engine 127 in the memory sub-system 101 is configured to migrate memory pages within the memory sub-syssub-system 101ponse to page migration requests (e.g., presented in a migration queue 159); and the reinforcement learning module 191 in the memory sub-system 101is configured to identify the memory pages for migration based on the reward model 197 and memory access requests received in the memory sub-syssub-system 101 host system 102.

[0213] Optionally, the memory sub-system 101 includes a context register 193 configured to control operations of the reinforcement learning module 191. The context register 193 is programmable by the host system 102 outside of the memory sub-system 101 via writing data to a predefined memory address. For example, the memory sub-system 101 has a CXL.mem interface 141. The context register 193 is programmable via memory access requests identifying the predefined memory address and sent to the CXL.mem interface 141 via a connection 107 between the host system 102 and the memory sub-syssub-system 101.

[0214] Optionally, the memory sub-system 101 includes a neural processing unit 195 configured to accelerate computations of artificial neural networks. For example, the neural processing unit 195 can include a multiplier-accumulator (MAC) unit; and the reward model 197 and / or the pattern analyzer 215 can have an artificial neural network.

[0215] For example, the pattern analyzer 215 can be configured to determine a workload classification 217 based on a history 170 of the memory access requests received in the CXL.mem interface 141 from the host system 102 prior to the reinforcement learning module 191 identifying the memory pages for migration. The pattern analyzer 215 can include an artificial neural network configured to receive, as an input, data identifying the memory access requests to output the workload classification 217.

[0216] For example, the workload classification 217 can include classification of memory pages (e.g., as identified in the page map 128) into a plurality of groups based on similarity in memory access patterns in the memory access requests.

[0217] For example, the reward model 197 is configured to predict a reward for the reinforcement learning module 191 to select, in response to an input identify a set of state parameters 199 representative of a state of operation of the memory sub-system 101, an option of page migration for a group of memory pages. For example, the option can be for migrating the group of memory pages away from the memory chips currently hosting the respective memory pages, or keeping the group of memory pages in place being hosted in the memory chips currently hosting the respective memory pages, or migrating a percentage of the group of memory pages. For example, the percentage can be selected from a plurality of predefined percentages as options (e.g., zero, one hundred percent, or another predefined percentage).

[0218] Optionally, the set of state parameters 199 can include first parameters retrieved from the context register 193, and second parameters from the workload classification 217.

[0219] Optionally, the memory sub-system 101 includes an integrated circuit die having a field programmable gate array (FPGA) or an application specific integrated circuit (ASIC) configured to implement the reinforcement learning module 191, the neural processing unit 195, and the pattern analyzer 215. An integrated circuit package can be configured to enclose at least the integrated circuit die, and the page migration engine 127 (e.g., as a buffer chip 125).

[0220] At block 331, the method of FIG. 11 includes providing, by a memory sub-system 101 having a plurality of memory chips 133, …, 135 of different characteristics (e.g., in latency, bandwidth, throughput, volatile vs. non-volatile, memory cell type / technology), a memory capacity that is accessible to a processing device 118 located outside of the memory sub-system 101.

[0221] At block 333, the method includes translating, by the memory sub-system 101 using a page map 128, first memory addresses identified in memory access requests received in the memory sub-system 101 from the processing device 118 to second memory addresses in the memory chips 133, …, 135 to generate responses to the memory access requests.

[0222] At block 335, the method includes identifying, via a reinforcement learning module 191 in the memory sub-system 101 and based on the memory access requests, first memory pages for migration within the memory sub-system 101.

[0223] At block 337, the method includes communicating, using one or more direct memory access engines (e.g., 151; 164, 166) among memory chips 133, …, 135 in the memory sub-system 101, data of the first memory pages.

[0224] At block 339, the method includes updating the page map 128 to change hosting of the first memory pages in the plurality of memory chips 133, …, 135 of the memory sub-system 101.

[0225] Optionally, the method of FIG. 11 can further include: receiving, in the memory sub-system 101 and from the processing device 118, a request to store context data at a predefined address; and storing the context data into a context register 193 in the memory sub-system 101. The identifying of the first memory pages at block 335 can be based at least in part on the context data retrieved from the context register 193.

[0226] For example, the identifying of the first memory pages at block 335 can include: predicting, using a reward model 197 of the reinforcement learning module 191, a first reward for deciding to migrate the first memory pages; and predicting, using the reward model 197 of the reinforcement learning module 191, a second reward for deciding not to migrate the first memory pages. The first memory pages are identified for migration based on the first reward being larger than the second reward according to the predictions of the reward model 197.

[0227] Optionally, the method of FIG. 11 can further include: analyzing, by the memory sub-system 101, a memory access workload (e.g., workload history 170) of the memory sub-system 101 to determine a workload classification 217. The first reward and the second reward can be predicted by the reward model 197 using the workload classification 217 as at least a portion of inputs to the reward model 197.

[0228] Optionally, the method of FIG. 11 can further include: monitoring memory access requests addressing the first memory pages following the identifying of the first memory pages for migration at block 335; and calculating actual rewards (e.g., measured reward 219) for the identifying of the first memory pages for migration based on the monitoring.

[0229] Optionally, the method of FIG. 11 can further include: training 210 the reward model 197 using the actual rewards (e.g., reward 219) calculated based on the monitoring.

[0230] Optionally, the workload classification 217 includes a predicted memory access pattern related to the first memory pages; and the method of FIG. 11 further includes: determining an actual memory access pattern related to the first memory pages based on memory access activities addressing the first memory pages in a time period following the identifying of the first memory pages for migration at block 335; and training a pattern analyzer 215 to reduce a difference between the predicted memory access pattern and the actual memory access pattern.

[0231] In at least some embodiments, a federated learning technique is implemented in a computing system 100 to accelerate machine learning in a plurality of memory sub-systems (e.g., 101), such as the training of pattern analyzers (e.g., 215) of the memory sub-systems (e.g., 101), and / or the training of reward models (e.g., 197) of the memory sub-systems (e.g., 101).

[0232] A memory sub-system 101 connected to a CXL fabric 121 to implement at a portion of the secondary random access memory 112 of a computing system 100 can have a memory manager 113 configured with an artificial neural network to intelligently manage resources, such as fast memory cells 138. For example, such an artificial neural network can be trained to predict rewards based on measured rewards (e.g., 219). For example, such an artificial neural network can be trained to predict workload classifications (e.g., 217) and memory access patterns based on subsequently observed classifications and / or patterns, as discussed above in connection with FIG. 1 to FIG. 11.

[0233] The memory sub-system 101 can operate with its isolated knowledge bases (e.g., measured rewards, observed workload classifications and / or memory access patterns). However, operating with isolated knowledge bases does not allow the memory sub-system 101 to learn from experiences of other memory sub-systems that are also connected to the CXL fabric 121 to service the processing devices 118 concurrently.

[0234] A federated learning engine can be configured in the computing system 100 to provide mechanisms of secure knowledge sharing and collaborative learning. The federated learning engine can aggregate the knowledge and experiences from the memory sub-systems (e.g., 101) connected to the CXL fabric 121. The use of the aggregated knowledge and experiences can avoid repeating similar learning curves individually in the memory sub-systems (e.g., 101) and thus avoid missing optimization opportunities. The federated learning engine can provide a secure and efficient way to facilitate sharing of learned optimization across memory sub-systems (e.g., 101) in implementing the secondary random access memory 112 in the computing system 100 while maintaining data privacy and security.

[0235] The federated learning engine can enable secure knowledge sharing across a plurality of memory sub-systems (e.g., 101) configured to implement the secondary random access memory 112. For example, the federated learning engine can employ privacy-preserving learning techniques, secure model aggregation, and distributed optimization protocols while maintaining the autonomy the individual memory sub-systems (e.g., 101). For example, the federated learning engine can feature hardware-accelerated encryption for secure model updates and specialized circuits for efficient model aggregation.

[0236] The use of the federated learning engine can accelerate learning through shared experiences, improve optimization through collective intelligence, maintain privacy and security through federated learning, while enabling scalable knowledge sharing across the infrastructure.

[0237] For example, the system of federated learning can include a secure learning module with hardware-based encryption engines for model updates, secure execution environments, and privacy-preserving learning circuits.

[0238] For example, the system of federated learning can include model aggregation engine with specialized hardware for efficient model combining, featuring dedicated circuits for weight averaging and model validation.

[0239] For example, the system of federated learning can include a distribution coordinator with hardware modules for managing model update distribution, synchronization, and version control.

[0240] For example, the system of federated learning can include a verification unit with hardware-based systems for ensuring model integrity and detecting malicious updates.

[0241] For example, the memory sub-systems (e.g., 101) connected to the CXL fabric 121 can independently learn from local experiences derived from memory access requests routed by the fabric 121 to the respective memory sub-systems (e.g., 101). The memory sub-systems (e.g., 101) can train their respective models (e.g., reward model 197, pattern analyzer 215) to generate model updates. The memory sub-systems (e.g., 101) can apply secure encryption to model updates for safe transmission to the federated learning engine. The federated learning engine can be configured in a controller of, or a switch in, the CXL fabric 121. Alternatively, the federated learning engine can be configured in the host system 102 (e.g., as an application or routine running in the processing device(s) 118), or in a remote server connected to the host system 102 via a computer network. For example, the remote server can be connected to the host system 102 via a local area network, a wide area network, an intranet, and / or the internet. The federated learning engine can perform global aggregation of model updates with integrity verification to generate an improved global model. The federated learning engine can distribute the improved global model to the memory sub-systems (e.g., 101) connected to the CXL fabric 121. The memory sub-systems (e.g., 101) can further perform local adaptation of the received global model according to conditions and / or training data specific to the respective memory sub-systems (e.g., 101).

[0242] FIG. 12 shows a controller of a compute express link fabric configured with a federated learning engine according to one embodiment.

[0243] For example, the controller 122 of FIG. 12 can be used to instruct the switches in the CXL fabric 121 to route memory access requests from the processing device 118 to memory sub-systems (e.g., 101 in FIGS. 1-3 and 7-8 ) connected to the CXL fabric 121 to implement the secondary random access memory 112. A federated learning engine 123 can be configured in the controller 122 to aggregate learned knowledge from the memory sub-systems (e.g., 101) to accelerate machine learning in the memory sub-systems (e.g., 101).

[0244] In FIG. 12, a plurality of memory sub-systems (e.g., 101, …, 109) are connected to a compute express link (CXL) fabric 121 to implement a secondary random access memory 112 in a computing system 100 (e.g., as in FIG. 1).

[0245] For example, the controller 122 of the CXL fabric 121 can be configured with a page map 128 and operable to direct the switch(es) in the compute express link (CXL) fabric 121 to route memory access requests from and memory access responses to the processing device(s) 118.

[0246] Each of the memory sub-systems (e.g., 101) can include a page migration engine 127 (e.g., as in FIGS. 2-6 ) and a reinforcement learning module 191 (e.g., as in FIGS. 7-11 ) for memory page migration within the respective memory sub-system (e.g., 101).

[0247] For example, each of the memory sub-systems (e.g., 101) can have a neural processing unit 195 configured to accelerate the computations a machine learning model (e.g., implemented via an artificial neural network) used in the identification of memory pages for migration within the respective memory sub-system (e.g., 101).

[0248] For example, the machine learning model can include the reward model 197; and the reinforcement learning module 191 in the memory sub-system 101 can continue training the reward model 197 using the measured rewards 219 determined after the page migration decisions are implemented.

[0249] For example, the machine learning model can include a predictive model of the pattern analyzer 215 used to predict a memory access pattern for identification of the workload classification 217; and the memory sub-system 101 can continue training the predictive model of the pattern analyzer 215 using the actual memory pattern determined or observed after the page migration decisions are decided, and then implemented, based on the predicted memory access pattern.

[0250] In a typically period of operation of the secondary random access memory 112, the memory sub-systems 101, …, 109 used to implement different portions of the secondary random access memory 112 can experience different portions of the memory access workload from the processing devices 118. The memory sub-systems 101, …, 109 can make different decisions to explore the reward spaces, which can lead to different training datasets for the training of their reward models 197. The different training datasets can reflect the different aspects of reward knowledge learned by the respective memory sub-systems 101, …, 109.

[0251] A federated learning engine 123 can be configured in the controller 122 of the compute express link (CXL) fabric to aggregate the knowledge learned by the respective memory sub-systems 101, …, 109 to accelerate the learning of the memory sub-systems 101, …, 109 as a whole in generating a global / aggregated model. The federated learning engine 123 can distribute the global / aggregated model to the memory sub-systems 101, …, 109 such that the machine learning model (e.g., reward model 197) of a memory sub-system (e.g., 101) is updated based on not only the knowledge learned by the memory sub-system (e.g., 101) but also the knowledge learned by other memory sub-systems (e.g., 109). Thus, the exploration and training of the machine learning models (e.g., artificial neural networks of the reward model 197 and / or the pattern analyzer 215) can be accelerated.

[0252] Optionally, the controller 122 of the compute express link (CXL) fabric 121 can strategically configure the page map 128 to replicate portions of the patterns of the memory access requests from the processing devices 118 for improved visibility to more than one memory sub-systems to promote parallel learning of the patterns by the memory sub-systems (e.g., 101, and 109).

[0253] For example, the controller 122 can configure the page map 128 to map a memory page for hosting on multiple memory sub-systems (e.g., 101, 109). The controller 122 can split memory access requests directed to the memory page into portions, where different portions of the memory access requests are directed to the different memory sub-systems (e.g., 101, 109). As a result, the memory sub-systems (e.g., 101, 109) can separately and concurrently learn from the substantially same memory access pattern; and combining the learned knowledge of the memory sub-systems (e.g., 101, 109) can accelerate the learning about the memory access pattern.

[0254] In some implementations, each memory sub-system (e.g., 101 or 109) can receive a same initial machine learning model from the federated learning engine 123. After a period of operation and training, an updated machine learning model is generated in the respective memory sub-system (e.g., 101 or 109). The updated machine learning models from the memory sub-systems (e.g., 101 or 109) can be aggregated in the federated learning engine 123 to generate an aggregated machine learning model (e.g., via averaging the updated machine learning models provided by the memory sub-systems 101, …, 109). For example, the aggregated machine learning model can be generated via averaging the updated machine learning models from the memory sub-systems 101, …, 109. Optionally, the updated machine learning models can be averaged with weights that are proportional to the workload levels of the memory sub-systems 101, …, 109. The federated learning engine 123 can then distribute the aggregated machine learning model as an updated initial machine learning model for the operations of the memory sub-systems 101, …, 109 during a next period of time.

[0255] Optionally, the federated learning engine 123 can be configured to use the connections in the fabric 121 that are not in active use in servicing the processing devices 118 to obtain the updated machine learning models and / or to distribute the aggregated machine learning model. Thus, the impact of the federated learning on the performance of the secondary random access memory 112 in servicing the processing devices 118 is reduced, minimized, or eliminated.

[0256] In some implementations, instead of receiving the updated machine learning models from the memory sub-systems 101, …, 109, the federated learning engine 123 can receive the training data used by the memory sub-systems 101, …, 109 to train the initial machine learning model provided by the federated learning engine 123 in obtaining the updated machine learning models. The federated learning engine 123 can aggregate the training datasets received from the memory sub-systems 101, …, 109 to train the initial machine learning model previously distributed by the federated learning engine 123 to the memory sub-systems 101, …, 109. The training result can provide an aggregate model that reflects the learned knowledge from the memory sub-systems 101, …, 109. The federated learning engine 123 can then distribute the aggregated machine learning model as an updated initial machine learning model for the operations of the memory sub-systems 101, …, 109 during a next period of time.

[0257] Optionally, the federated learning engine 123 can be configured to use the connections in the fabric 121 that are not in active use in servicing the processing devices 118 to obtain the training datasets from the memory sub-systems 101, …, 109 and / or to distribute the aggregated machine learning model. Thus, the impact of the federated learning on the performance of the secondary random access memory 112 in servicing the processing devices 118 is reduced, minimized, or eliminated.

[0258] In some implementations, instead of receiving the updated machine learning models and / or the training datasets from the memory sub-systems 101, …, 109, the federated learning engine 123 can receive model updates from the memory sub-systems 101, …, 109. For example, the memory sub-system 101 can determine a model update as a difference between the initial machine learning model received from the federated learning engine 123 and the current machine learning model that has been trained in the memory sub-system 101. The difference can be provided as a model update to the federated learning engine 123 (e.g., for improved model security and / or privacy). The federated learning engine 123 can aggregate the model updates received from the memory sub-systems 101, …, 109 to obtain an aggregated model update. For example, the aggregated model update can be generated via averaging the model updates from the memory sub-systems 101, …, 109 to generate an aggregated model update. Optionally, the model updates from the memory sub-systems 101, …, 109 can be averaged with weights proportional to the workload levels of the memory sub-systems 101, …, 109. The federated learning engine 123 can then distribute the aggregated model update to the memory sub-systems 101, …, 109. Each of the memory sub-systems 101, …, 109 can apply the aggregated model update to the previously received initial machine learning model to generate the aggregated model as an updated initial machine learning model for the operations during a next period of time. Alternatively, the federated learning engine 123 can apply the aggregated model update to generate the aggregate model for distribution to the memory sub-systems 101, …, 109.

[0259] FIG. 13 shows a compute express link fabric configured with a controller to combine machine learning models in memory sub-systems according to one embodiment. For example, the compute express link fabric 121 discussed above in connection with FIGS. 1-3,7-8 and 12 can be implemented as in FIG. 13.

[0260] In FIG. 13, the compute express link fabric 121 includes a plurality of compute express link switches (e.g., 205, 206, 207). Each of the switches (e.g., 205, 206, or 207) has a plurality of ports connected to separate compute express link connections. A switch (e.g., 205, 206, or 207) is configured to route a memory access request or response received at one port to another. A compute express link connection in the fabric 121 can connect a port of one switch to a port of another switch, or to a memory device (e.g., 241, 243, or 245), or to a memory sub-system (e.g., 101, or 109), or to a host processor, such as a processing device 118 (e.g., a CPU, a CPU core, an SoC) or another device (e.g., 168 or 169, such as a GPU, a GPU core, an AI accelerator).

[0261] A controller 122 of the fabric 121 can control the switches (e.g., 205, 206, or 207) of the fabric 121 to implement a page map 128 for routing memory access requests having addresses specified by a host processor (e.g., processing device 118, or device 168 or 169) into addresses of random access memory cells in the memory devices 241, 243, …, 245 and the memory sub-systems 101, …, 109.

[0262] The controller 122 can include a fabric manager and / or a memory manager 113 to adjust the page map 128 for implementing a random access memory 112 in a secondary memory tier using memory resources in the memory devices 241, 243, …, 245 and the memory sub-systems 101, …, 109. Optionally, the memory resources are provided by the memory devices 241, 243, …, 245 and the memory sub-systems 101, …, 109 in the form of dynamic capacity devices attached to the controller 122 over the fabric 121. Alternatively, the memory resources can be provided by the memory devices 241, 243, …, 245 and the memory sub-systems 101, …, 109 via random access memory cells addressable by the controller 122 without the use of the dynamic capacity devices offered by the memory devices 241, 243, …, 245 and the memory sub-systems 101, …, 109; and thus, the techniques can be used even when the memory devices 241, 243, …, 245 and / or the memory sub-systems 101, …, 109 do not implement the functions and protocols of dynamic capacity devices.

[0263] In some implementations, the memory manager 113 (and / or the fabric manager) is configured on a centralized device in communication with the switches 205, 206, …, 207 in the fabric 121. In other implementations, the memory manager 113 (and / or the fabric manager) is implemented via a set of agents each running in one of the switches 205, 206, …, 207. The agents can be configured to make separate and independent routing decisions. The agents can collectively implement the operations of the controller 122 by each routing memory access traffic from one port of a switch to another port of the same switch in which the agent is running.

[0264] Optionally, the memory manager 113 can include a federated learning engine (e.g., 123 as discussed in connection with FIG. 12).

[0265] FIG. 14 shows a compute express link switch 220 configured to implement a memory manager 113 according to one embodiment.

[0266] For example, a memory manager 113 running as an agent of the controller 122 of a compute express link fabric 121 as in FIG. 13 can be implemented in each of the switches 205, 206, …, 207 in the fabric 121. The collection of agents can implement the function of the federated learning engine 123.

[0267] For example, each agent running in a switch 220 is configured to manage the aggregation of the machine learning models of memory sub-systems (e.g., 109) connected directly (e.g., without an intervening switch) to the ports (e.g., 315) of the switch (e.g., 220) and the aggregated machine learning models that are generated by the agents running in switches (e.g., 208) that are connected directly (e.g., without an intervening switch) to the ports of the switch (e.g., 220). Thus, the number of machine learning models managed and aggregated by an agent (e.g., federated learning engine 123 running in the switch 220) is limited by the nubbier of ports (e.g., 311, 313, …, 315) of the switch (e.g., 220). Such a federated learning solution can easily scale up via the addition of switches in the fabric 121.

[0268] For example, the federated learning engine 123 in the switch 220 can distribute its aggregated machine learning model to the memory sub-systems (e.g., 109) connected directly to ports (e.g., 315) of the switch 220 and to downstream switches (e.g., 208) connected directly to ports (e.g., 313) of the switch (e.g., 220). A downstream switch (e.g., 208) is configured to receive memory access requests routed by the switch (e.g., 220). The downstream switch (e.g., 208) receiving the aggregated machine learning model can further propagate the model through its ports to memory sub-systems (e.g., 101) and other switches connected directly (e.g., without intervening switches) to the ports of the switch (e.g., 208). Thus, the hierarchy of the CXL connections in the ports of the switches (e.g., 205, 206, …, 207) in the fabric 121 can correspond to the hierarchy of agents in distributing an aggregated machine learning model, and in aggregating updated models, model updates, and / or training datasets.

[0269] The compute express link fabric switch 220 in FIG. 14 can have a plurality of ports 311, 313, …, and 315. A port (e.g., 311) of the switch 220 can be connected to a memory device (e.g., 241) or a memory sub-system (e.g., 101). Such a port can be considered a device-connected port (e.g., 311). When a memory address in a memory access request is mapped to the memory device (e.g., 241) attached to the port (e.g., 311), the switch 220 routes the memory access request to the port (e.g., 311).

[0270] A port (e.g., 313) of the switch 220 can be connected to another switch (e.g., 207 or 208). Such a port (e.g., 313) can be considered a switch-connected port (e.g., 313). When a memory address in a memory access request is not mapped to the memory device (e.g., 241) attached to the port (e.g., 313), the switch 220 can route the memory access request to a switch-connected port (e.g., 313). A set of switches (e.g., 208) connected to the switch-connected port(s) (e.g., 313) of the switch 220 can be considered a fabric 126. In general, the switch 220 can have the options to route such a memory access request to more than one switch-connected port (e.g., 315) of the switch 220.

[0271] When a memory page is hosted on multiple memory sub-systems (e.g., 101, 109), the memory manager 113 can select the memory sub-systems (e.g., 101, 109) that are connected to different ports (e.g., 313, 315) of a same switch (e.g., 220) to utilize the parallel communication paths to improve the performance in accessing different parts of the memory page. Such a routing strategy can also replicate the memory access patterns to promote parallel machine learning in the multiple memory sub-systems (e.g., 101, 109). Aggregating the learned knowledge from the memory sub-systems (e.g., 101, 109) can accelerate machine learning at least for the multiple memory sub-systems (e.g., 101, 109).

[0272] Optionally, the switch 220 can have a memory manager 113 configured to map memory access requests to its ports 311, 313, …, 315 according to its page map 128. Alternatively, a controller 122 configured separately from the switch 220 can provide data to instruct the switch 220 in routing the memory access requests coming into ports of the switch 220.

[0273] For example, the page map 128 in the switch 220 and / or in the controller 122 can be configured to indicate that a page of memory addressable by a host processor (e.g., devices 118, 168, 169) is mapped to a page 251 (or 253) in the memory device 241. When a memory access request received in the switch 220 is in such a page of memory, the switch 220 route the request to the port 311 toward the memory device 241.

[0274] For example, the page map 128 in the switch 220 and / or in the controller 122 can be configured to indicate that a page of memory addressable by a host processor (e.g., devices 118, 168, 169) is mapped to a page 257 in the memory sub-system 109. When a memory access request received in the switch 220 is in such a page of memory, the switch 220 route the request to the port 315 toward the memory sub-system 109.

[0275] Since the page map 128 can be adjusted and / or updated in the switch 220 and / or in the controller 122 without a need to restart the computing system 100 or a portion of it, the memory manager 113 in the controller 122 and / or the switch 220 can migrate memory pages across the different memory sub-systems 101, …, 109 without a need to restart the computing system 100 and / or the host processor (e.g., device 118, 168, 169).

[0276] FIG. 15 and FIG. 17 show techniques of federated learning according to one embodiment. For example, the federated learning techniques of FIGS. 15-17 can be used to implement the federated learning engine 123 and / or the memory manager 113 in FIGS. 12-14 .

[0277] In FIG. 15, the federated learning engine 123 is configured to operate on machine learning models directly.

[0278] For example, after an initial machine learning model is distributed by the federated learning engine 123 to the memory sub-systems 101, …, 109 connected to a CXL fabric 121 (e.g., as in FIGS. 12-14 ), the memory sub-systems 101, …, 109 can use the model in their page migration operations (e.g., as discussed in connection with FIGS. 7-11 ). The memory sub-syssub-systems 101>109 can collect data for the training of the initial machine learning model to generate their respective customized models 233, …, 235.

[0279] The federated learning engine 123 is configured to collect the customized models 233, …, 235 that are individually trained within the memory sub-systems 101, …, 109 to generate an aggregated model 231.

[0280] For example, the federated learning engine 123 can average the corresponding weights from the different customized models 233, …, 235 to generate the corresponding weight in the aggregated model 231.

[0281] Optionally, the averaging of the customized models 233, …, 235 can be performed using weights assigned to the models 233, …, 235 respectively based on the workloads of the memory sub-systems 101, …, 109. For example, a large weight is assigned to the model 233 provided by the memory sub-system 101 that handles a large workload from which the training data for the customized model 233 is generated in the memory sub-system 101; and a small weight is assigned to the model 235 from the memory sub-system 109 that handles a small workload from which the training data for the customized model 235 is generated in the memory sub-system 109. The customized models 233, …, 235 are averaged with weights assigned to the models 233, …, 235 according to the workloads of the memory sub-systems 101, …, 109.

[0282] After determining the aggregated model 231, the federated learning engine 123 can send the aggregated model 231 to the memory sub-systems 101, …, 109 as the initial machine learning model for the next period of operations. The aggregated model 231 replaces the customized models 233, …, 235 in the memory sub-systems 101, …, 109 at the start of the next period of operations, during which the memory sub-systems 101, …, 109 can further collect training data and further train the aggregated model 231 to generate the next round of customized models 233, …, 235. Thus, the training and aggregation process can continue in iterations to share learned knowledge across the memory sub-systems 101, …, 109 and / or to accelerate the machine learning of the model 231.

[0283] In FIG. 16, the federated learning engine 123 is configured to aggregate training data from the memory sub-systems 101, …, 109 to generate the aggregated model 231.

[0284] For example, after an initial machine learning model is distributed by the federated learning engine 123 to the memory sub-systems 101, …, 109 connected to a CXL fabric 121 (e.g., as in FIGS. 12-14 ), the memory sub-systems 101, …, 109 can use the model in their page migration operations (e.g., as discussed in connection with FIGS. 7-11 ). The memory sub-systems 101, …, 109 can collect data for the training of the initial machine learning model to generate their respective customized models 233, …, 235 (e.g., as in FIG. 15).

[0285] Instead of collecting the customized models 233, …, 235 that are individually trained within the memory sub-systems 101, …, 109, the federated learning engine 123 is configured to collect the training datasets 237, …, 239 used by the memory sub-systems 101, …, 109 to generate the respective customized models 233, …, 235. The federated learning engine 123 can aggregate the training datasets 237 to train its initial machine learning model to generate an aggregated model 231.

[0286] For example, the federated learning engine 123 can combine the training datasets 237, …, 239 as a combined training dataset to train the initial machine learning model in generating the aggregated model 231.

[0287] Optionally, the federated learning engine 123 can assign different weights to the training datasets 237, …, 239 in training the initial machine learning model. For example, a large weight is assigned to a training dataset 237 obtained from the memory sub-system 101 that handles a large workload in generating the training dataset 237 for customizing the model within the memory sub-system 101; and a small weight is assigned to a training dataset 239 obtained from the memory sub-system 109 that handles a small workload in generating the training dataset 239 for customizing the model within the memory sub-system 109. Thus, the training for the aggregated model 231 in the federated learning engine 123 is influenced / customized more by a training dataset (e.g., 237) having a larger weight, than by a training dataset (e.g., 239) having a smaller weight.

[0288] After determining the aggregated model 231 from the use of the training datasets 237, …, 239, the federated learning engine 123 can send the aggregated model 231 to the memory sub-systems 101, …, 109 as the initial machine learning model for the next period of operations, as in FIG. 15. The aggregated model 231 replaces the customized models 233, …, 235 in the memory sub-systems 101, …, 109 at the start of the next period of operations, during which the memory sub-systems 101, …, 109 can further collect training data and further train the aggregated model 231 to generate the next round of customized models 233, …, 235. Thus, the training and aggregation process can continue in iterations to share learned knowledge across the memory sub-systems 101, …, 109 and / or to accelerate the machine learning of the model 231.

[0289] In FIG. 17, the federated learning engine 123 is configured to aggregate model updates collected from the memory sub-systems 101, …, 109 to generate the aggregated model 231 and / or the global model update 232.

[0290] For example, after an initial machine learning model is distributed by the federated learning engine 123 to the memory sub-systems 101, …, 109 connected to a CXL fabric 121 (e.g., as in FIGS. 12-14 ), the memory sub-systems 101, …, 109 can use the model in their page migration operations (e.g., as discussed in connection with FIGS. 7-11 ). The memory sub-systems 101, …, 109 can collect data for the training of the initial machine learning model to generate their respective customized models 233, …, 235 (e.g., as in FIG. 15).

[0291] Instead of collecting the customized models 233, …, 235 or the training datasets 237, …, 239 responsible to the generation of the customized models 233, …, 235, the federated learning engine 123 is configured to collect the model updates 234, …, 236 that identify the differences between the customized models 233, …, 235 and the initial machine learning model. The federated learning engine 123 can aggregate the model updates 234, …, 236 to generate a global model update 232 and apply the global model update 232 to the initial machine learning model to generate the aggregated model 231.

[0292] For example, the federated learning engine 123 can average the corresponding parameters from the different model updates 234, …, 236 to generate the corresponding parameter in the global model update 232.

[0293] Optionally, the averaging of the model updates 234, …, 236 can be performed using weights assigned to the model updates 234, …, 236 respectively based on the workloads of the memory sub-systems 101, …, 109. For example, a large weight is assigned to the model update 234 from the memory sub-system 101 that handles a large workload from which the training data responsible for the model update 234 is generated in the memory sub-system 101; and a small weight is assigned to the model update 236 from the memory sub-system 109 that handles a small workload from which the training data responsible for the model update 236 is generated in the memory sub-system 109. The model updates 234, …, 236 are averaged with weights assigned to the model updates 234, …, 236 according to the workloads of the memory sub-systems 101, …, 109.

[0294] After determining the global model update 232, the federated learning engine 123 can send the global model update 232 to the memory sub-systems 101, …, 109. Each of the memory sub-systems 101, …, 109 can separately apply the global model update 232 to its stored initial machine learning model to generate the aggregated model 231.

[0295] Alternatively, the federated learning engine 123 can compute a customized global model update for each of the memory sub-systems 101, …, 109 by subtracting the respective model update (e.g., 234) of a memory sub-system (e.g., 101) from the global model update 232 such that when the customized global model update is applied to the customized model (e.g., 233) of the memory sub-system (e.g., 101), the result provides the aggregated model 231.

[0296] Alternatively, the federated learning engine 123 can send the aggregated model 231 to the memory sub-systems 101, …, 109 as the initial machine learning model for the next period of operations, as in FIGS. 15 and 16 . The aggregated model 231 replaces the customized models 233, …, 235 in the memory sub-systems 101, …, 109 at the start of the next period of operations, during which the memory sub-systems 101, …, 109 can further collect training data and further train the aggregated model 231 to generate the next round of customized models 233, …, 235. Thus, the training and aggregation process can continue in iterations to share learned knowledge across the memory sub-systems 101, …, 109 and / or to accelerate the machine learning of the model 231.

[0297] Optionally, after the federated learning engine 123 determines the aggregated model 231 as in FIGS. 15 or 16 , the federated learning engine 123 can compute the global model update 232 from a difference between aggregated model 231 and the initial machine learning model to provide the global model update 232 to the memory sub-systems 101, …, 109 in a way as in FIG. 17.

[0298] FIG. 18 shows a method of machine learning via memory sub-systems according to one embodiment. The method of FIG. 18 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 / firmware (e.g., instructions run or executed on a processing device), or a combination thereof. In some embodiments, the method of FIG. 18 is performed at least in part by the processing device 118 of the host system 102, the controller 115 of the memory sub-system 101, and / or the local media controller 105 of the memory sub-system 101 in 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.

[0299] For example, the method of FIG. 18 can be implemented (e.g., via software, firmware and application specific circuits) as part of a memory manager 113 in the memory sub-system 101, the host system 102, the controller 122 of a CXL fabric 121, and / or one or more switches (e.g., 205, 206, 207; 220) of the CXL fabric 121.

[0300] For example, the computing system 100 can have a processing device(s) 118 connected to a main memory 124, and a compute express link fabric 121 connecting a plurality of memory sub-systems (e.g., 101, …, 109) to provide a secondary random access memory 112 for the processing device 118.

[0301] For example, a controller 122 of the compute express link (CXL) fabric 121 can have a memory configured to store a map 128 of memory pages. The controller 122 can use the page map 128 to direct the switches (e.g., 205, 206, …, 207) in the fabric 121 to route memory access requests from the processing devices 118 to the memory sub-systems 101, …, 109. For example, the control 122 can have a processing device and / or a circuit configured to instruct the fabric 121 to route the memory access requests to the memory sub-systems 101, …, 109 connected to the fabric 121, and to implement a federated learning engine 123 as discussed above in connection with FIG. 12 to FIG. 17.

[0302] For example, the federated learning engine 123 can receive, from each respective memory sub-system (e.g., 101, 109) among the plurality of memory sub-systems 101, …, 109, data generated based on a training dataset (e.g., 237, 239) identified by the respective memory sub-system (e.g., 101, 109) based on processing memory access requests routed via the compute express link fabric 121 to the respective memory sub-system (e.g., 101, 109). The federated learning engine 123 can aggregate the data received from the respective memory sub-system (e.g., 101, 109) to generate a second machine learning model (e.g., 231) updated from a first machine learning model (e.g., an artificial neural network for the reward model 197 and / or the pattern analyzer 215 of a page predictor 157) previously provided to the respective memory sub-system (e.g., 101, 109). The federated learning engine 123 can communicate with the respective memory sub-system (e.g., 101, 109) to configure the second machine learning model (e.g., 231) in the respective memory sub-system (e.g., 101, 109) (e.g., to replace the artificial neural network for the reward model 197 and / or the pattern analyzer 215 of the page predictor 157).

[0303] For example, the respective memory sub-system (e.g., 101, 109) can be configured to train the first machine learning model using the training dataset (e.g., 237, 239) to generate a customized model (e.g., 233, 235). The data received from the respective memory sub-system (e.g., 101, 109) can include the customized model (e.g., 233, 235), or a model update (e.g., 234, 236) representative of a difference between the customized model (e.g., 233, 235) and the first machine learning model. The federated learning engine 123 can average the customized models 233, …, 235 received from the plurality of memory sub-systems 101, …, 109, or the model updates 234, …, 236 received from the plurality of memory sub-systems 101, …, 109, to generate the second machine learning model 231.

[0304] Optionally, the federated learning engine 123 can determine a global model update 232 representative of a difference between the second machine learning model 231 and the first machine learning model and transmit the global model update 232 (and / or the second machine learning model 231) to the respective memory sub-system (e.g., 101, 109) to configure the second machine learning model 231 in the respective memory sub-system (e.g., 101, 109).

[0305] Optionally, after determining the global model update 232, the federated learning engine 123 can determine a customized update representative of a difference between the global model update 232 and a model update 234 received from the respective memory sub-system 101, and transmit the customized update to the respective memory sub-system 101 to configure the second machine learning model 231 in the respective memory sub-system 101. The respective memory sub-system 101 can apply the customized update to the customized model 233 to generate the second machine learning model 231.

[0306] Optionally, the respective memory sub-system (e.g., 101, 109) can provide its respective training dataset (e.g., 237, 239) for the federated learning engine 123 to generate an aggregated training dataset; and the federated learning engine 123 can further train the first machine learning model using the aggregated training dataset to generate the second machine learning model 231.

[0307] Optionally, after the federated learning engine 123 determines a global model update 232 representative of a difference between the second machine learning model 231 and the first machine learning model, the federated learning engine 123 transmits the global model update 232 to the respective memory sub-system (e.g., 101); and the respective memory sub-system (e.g., 101) can update its copy of the first machine learning model using the global model update 232. Alternatively, the federated learning engine 123 can send the second machine learning model 231 to the second machine learning model 231 in the respective memory sub-system 101.

[0308] Optionally, a federated learning engine 123 is configured in a compute express link switch 220 in the CXL fabric 121. The switch 220 can have a plurality of ports 311, 313, …, 315. The switch 220 can use a page map 128 to determine routing of a memory access request received in one of the ports 311, …, 315 to another of the ports 311, …, 315. A circuit and / or a processing device in the switch 220 can be configured to implement the federated learning engine 123. After the switch 220 receives, via a first port among the plurality of ports 311, …, 313, the first machine learning model, the federated learning engine 123 in the switch 220 can send, via more than one second port (e.g., 313, 315) other than the first port among the plurality of ports 311, …, 315, the first machine learning model to configure the first machine learning model in a plurality of memory sub-systems (e.g., 101, 109) connected to the more than one second port (e.g., 313, 315). The federated learning engine 123 in the switch 220 can aggregate first data received via the at least one second port (e.g., 313, 315) for identification of a second machine learning model 231, where the first data is generated based on more than one training dataset (e.g., 237, 239) identified by the plurality of memory sub-systems (e.g., 101, 109). The federated learning engine 123 in the switch 220 can communicate second data through the at least one second ports (e.g., 313, 315) to configure the second machine learning model 231 in the plurality of memory sub-systems (e.g., 101, 109).

[0309] Optionally, the federated learning engine 123 in the switch 220 can send, through the first port via which the first machine learning model is received, third data usable to derive the second machine learning model 231 from the first machine learning model (e.g., artificial neural network for the reward model 197 and / or the pattern analyzer 215 of the page predictor 157).

[0310] Optionally, the third data can include the second machine learning model 231, a global model update 232 identifying a difference between the second machine learning model 231 and the first machine learning model, or an aggregated dataset used to train the first machine learning model to arrive at the second machine learning model 231.

[0311] Optionally, the second data can include the second machine learning model 231, or the global model update 232 identifying the difference between the second machine learning model 231 and the first machine learning model.

[0312] Optionally, the first data can include the training dataset (e.g., 237, 239), a customized model (e.g., 233, 235) generated from further training the first machine learning model using the training dataset (e.g., 237, 239), or a model update (e.g., 234 or 236) identifying a difference between the customized model (e.g., 233, 235) and the first machine learning model.

[0313] At block 351, the method of FIG. 18 includes configuring a first machine learning model (e.g., artificial neural network for the reward model 197 and / or the pattern analyzer 215 of the page predictor 157) in each respective memory sub-system (e.g., 101) among a plurality of memory sub-systems 101, …, 109 connected to a compute express link fabric 121.

[0314] At block 353, the method includes generating, in the respective memory sub-system 101 and based on processing memory access requests routed via the compute express link fabric 121 to the respective memory sub-system 101, a training dataset 237 to further train the first machine learning model.

[0315] For example, the respective memory sub-system 101 can train the first machine learning model using the training dataset 237 to generate a customized model 233 and / or determine a model update 234 from a difference between the customized model 233 and the first machine learning model.

[0316] At block 355, the method includes receiving, from the respective memory sub-system 101, data generated based on the training dataset 237.

[0317] Optionally, the data generated based on the training dataset 237 can include the customized model 233; and the method of FIG. 18 can further include: averaging customized models 233, …, 235 generated in the plurality of memory sub-systems 101, …, 109 to generate the second machine learning model 231 (e.g., as in FIG. 15). Optionally, the averaging can be weighed using weights assigned to the models 233, …, 235 according to the workload levels of the memory sub-system 101, …, 109 in acquiring the respective training datasets 237, …, 239 for the customized models 233, …, 235.

[0318] Optionally, the data generated based on the training dataset 237 can include the training dataset 237; and the method of FIG. 18 can further include: training, in a controller 122 of (or a switch 220 in, or a server connected to) the compute express link fabric 121, the first machine learning model using a plurality of training datasets 237, …, 239 generated by and received from the plurality of memory sub-systems 101, …, 109 respectively to generate the second machine learning model 231 (e.g., as in FIG. 16).

[0319] Optionally, the data generated based on the training dataset 237 can include a model update 234 representative of a difference between the customized model 233 and the first machine learning model; and the method of FIG. 18 can further include: averaging a plurality of model updates 234, …, 236 generated by and received from the plurality of memory sub-systems 101, …, 109 respectively to generate a global model update 232 applicable to the first machine learning model to generate the second machine learning model 231.

[0320] For example, the data generated based on the training dataset 237 is received from the respective memory sub-system 101 is in an encrypted form.

[0321] At block 357, the method includes updating, based at least in part on the data received from the respective memory sub-system 101, the first machine learning model to generate a second machine learning model 231.

[0322] At block 359, the method includes communicating with the respective memory sub-system 101 to configure the second machine learning model 231 in the respective memory sub-system 101.

[0323] Optionally, the method of FIG., 18 can further include: determining, from a difference between the global model update 232 and the model update 234, a customized model update applicable to the customized model update 233 to generate the second machine learning model 231; and the communicating at block 359 includes transmitting the customized model update to the respective memory sub-system 101.

[0324] Optionally, the communicating at block 359 includes transmitting the global model update 232 to the respective memory sub-system 101. Alternatively, the communicating at block 359 includes transmitting the second machine learning model 231 to the respective memory sub-system 101.

[0325] Optionally, the communicating at block 359 is in an encrypted form.

[0326] A non-transitory computer storage medium can be used to store instructions programmed to implement a memory manager 113 configured to perform operations discussed above in connection with the memory sub-system 101. When the instructions are executed by the processing device (e.g., 117, 118), and / or the controller (e.g., 115, 122) the instructions cause the computing system 100 to perform the methods discussed above.

[0327] FIG. 19 illustrates an example machine of a computer system 400 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 400 can correspond to a host system (e.g., the host system 102 of FIG. 1) that includes, is coupled to, or utilizes a memory sub-system (e.g., the memory sub-system 101 of FIG. 1) or can be used to perform the operations of memory managers 113 (e.g., to execute instructions to perform operations corresponding to the memory managers 113 described with reference to FIGS. 1 – 18). 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.

[0328] 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.

[0329] The example computer system 400 includes a processing device 402, a main memory 404 (e.g., read-only memory (ROM), flash memory, dynamic random access memory (DRAM) such as synchronous DRAM (SDRAM) or Rambus DRAM (RDRAM), static random access memory (SRAM), etc.), and a data storage system 418, which communicate with each other via a bus 430 (which can include multiple buses).

[0330] Processing device 402 represents one or more general-purpose processing devices such as a microprocessor, a central processing unit, or the like. More particularly, the processing device 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 402 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 402 is configured to execute instructions 426 for performing the operations and steps discussed herein. The computer system 400 can further include a network interface device 408 to communicate over the network 420.

[0331] The data storage system 418 can include a machine-readable medium 424 (also known as a computer-readable medium) on which is stored one or more sets of instructions 426 or software embodying any one or more of the methodologies or functions described herein. The instructions 426 can also reside, completely or at least partially, within the main memory 404 and / or within the processing device 402 during execution thereof by the computer system 400, the main memory 404 and the processing device 402 also constituting machine-readable storage media. The machine-readable medium 424, data storage system 418, and / or main memory 404 can correspond to the memory sub-system 101 of FIG. 1.

[0332] In one embodiment, the instructions 426 include instructions to implement functionality corresponding to the memory managers 113 described with reference to FIGS. 1 – 18. While the machine-readable medium 424 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.

[0333] 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 convey the substance of their work most effectively 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.

[0334] 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.

[0335] The present disclosure also relates to an apparatus for performing the operations herein. This apparatus can be specially constructed for the intended purposes, or it can include a general purpose computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program can be stored in a computer readable storage medium, such as, but not limited to, any type of disk including floppy disks, optical disks, CD-ROMs, and magnetic-optical disks, 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.

[0336] 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.

[0337] 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.

[0338] In this description, various functions and operations are described as being performed by or caused by computer instructions to simplify description. However, those skilled in the art will recognize what is meant by such expressions is that the functions result from execution of the computer instructions by one or more controllers or processors, such as a microprocessor. Alternatively, or in combination, the functions and operations can be implemented using special purpose circuitry, with or without software instructions, such as using application-specific integrated circuit (ASIC) or field-programmable gate array (FPGA). Embodiments can be implemented using hardwired circuitry without software instructions, or in combination with software instructions. Thus, the techniques are limited neither to any specific combination of hardware circuitry and software, nor to any particular source for the instructions executed by the data processing system.

[0339] 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

1. A method, comprising:configuring a first machine learning model in each respective memory sub-system among a plurality of memory sub-systems connected to a compute express link fabric;generating, in the respective memory sub-system and based on processing memory access requests routed via the compute express link fabric to the respective memory sub-system, a training dataset to further train the first machine learning model; andreceiving, from the respective memory sub-system, data generated based on the training dataset.

2. The method of claim 1, further comprising:updating, based at least in part on the data received from the respective memory sub-system, the first machine learning model to generate a second machine learning model;communicating with the respective memory sub-system to configure the second machine learning model in the respective memory sub-system; andtraining, in the respective memory sub-system, the first machine learning model using the training dataset to generate a customized model.

3. The method of claim 2, wherein the data generated based on the training dataset includes the customized model; and the method further includes:averaging customized models generated in the plurality of memory sub-systems to generate the second machine learning model.

4. The method of claim 2, wherein the data generated based on the training dataset includes the training dataset; and the method further includes:training, in a controller of the compute express link fabric, the first machine learning model using a plurality of training datasets from the plurality of memory sub-systems respectively to generate the second machine learning model.

5. The method of claim 2, wherein the data generated based on the training dataset includes a model update representative of a difference between the customized model and the first machine learning model; and the method further includes:averaging a plurality of model updates from the plurality of memory sub-systems respectively to generate a global update applicable to the first machine learning model to generate the second machine learning model.

6. The method of claim 5, further comprising:determining, from a difference between the global update and the model update, a customized model update applicable to the customized model update to generate the second machine learning model;wherein the communicating includes transmitting the customized model update to the respective memory sub-system.

7. The method of claim 2, further comprising:determining a global update from a difference between the second machine learning model and the first machine learning model;wherein the communicating includes transmitting the global update to the respective memory sub-system.

8. The method of claim 2, wherein the communicating includes transmitting the second machine learning model to the respective memory sub-system.

9. The method of claim 2, wherein the data generated based on the training dataset is received from the respective memory sub-system is in an encrypted form.

10. A controller of a compute express link fabric, the controller comprising:memory configured to store a map of memory pages; anda processing device configured to instruct the compute express link fabric to route memory access requests to a plurality of memory sub-systems connected to the compute express link fabric;wherein the processing device is further configured to:receive, from each respective memory sub-system among the plurality of memory sub-systems, data generated based on a training dataset identified by the respective memory sub-system based on processing memory access requests routed via the compute express link fabric to the respective memory sub-system.

11. The controller of claim 10, wherein the respective memory sub-system is configured to train the first machine learning model using the training dataset to generate a customized model;wherein the processing device is further configured to:aggregate the data received from the respective memory sub-system to generate a second machine learning model updated from a first machine learning model previously provided to the respective memory sub-system; andcommunicate with the respective memory sub-system to configure the second machine learning model in the respective memory sub-system;wherein the data received from the respective memory sub-system includes the customized model, or a model update representative of a difference between the customized model and the first machine learning model; andwherein the controller is configured to average customized models from the plurality of memory sub-systems, or model updates from the plurality of memory sub-systems, to generate the second machine learning model.

12. The controller of claim 11, wherein the controller is further configured to determine a global update representative of a difference between the second machine learning model and the first machine learning model and transmit the global update to the respective memory sub-system to configure the second machine learning model in the respective memory sub-system.

13. The controller of claim 11, wherein the controller is further configured to determine a global update representative of a difference between the second machine learning model and the first machine learning model, determine a customized update representative of a difference between the global update and the model update, and transmit the customized update to the respective memory sub-system to configure the second machine learning model in the respective memory sub-system.

14. The controller of claim 10, wherein the data generated based on the training dataset identifies the training dataset; and the controller is further configured to train the first machine learning model using a plurality of training datasets from the plurality of memory sub-systems respectively to generate the second machine learning model.

15. The controller of claim 14, wherein the controller is configured to transmit, to the respective memory sub-system, a global update representative of a difference between the second machine learning model and the first machine learning model or the second machine learning model to configure the second machine learning model in the respective memory sub-system.

16. A compute express link switch, comprising: a plurality of ports;a page map configured to determine routing of a memory access request received in one of the ports to another of the ports; anda circuit configured to: receive, via a first port among the plurality of ports, a first machine learning model; andsend, via more than one second port other than the first port among the plurality of ports, the first machine learning model to configure the first machine learning model in a plurality of memory sub-systems connected to the more than one second portaggregate first data received via the at least one second port for identification of a second machine learning model, the first data generated based on more than one training dataset identified by the plurality of memory sub-systems; andcommunicate second data through the at least one second ports to configure the second machine learning model in the plurality of memory sub-systems..

17. The compute express link switch of claim 16, wherein the circuit is further configured to;aggregate first data received via the at least one second port for identification of a second machine learning model, the first data generated based on more than one training dataset identified by the plurality of memory sub-systems;communicate second data through the at least one second ports to configure the second machine learning model in the plurality of memory sub-systems; andsend, through the first port, third data usable to derive the second machine learning model from the first machine learning model.

18. The compute express link switch of claim 17, wherein the third data includes the second machine learning model, a model update identifying a difference between the second machine learning model and the first machine learning model, or a dataset used to train the first machine learning model to arrive at the second machine learning model.

19. The compute express link switch of claim 18, wherein the second data includes the second machine learning model, or the model update identifying the difference between the second machine learning model and the first machine learning model.

20. The compute express link switch of claim 19, wherein the first data includes the training dataset, a customized model generated from further training the first machine learning model using the training dataset, or a model update identifying a difference between the customized model and the first machine learning model.