Cache-based memory read commands

The hardware memory controller selectively sends cache-based read commands in the host system, which solves the problem of non-deterministic time length for sending memory subsystem commands in the existing technology, and improves the read performance and performance of the memory subsystem. efficiency.

CN112835814BActive Publication Date: 2024-10-11MICRON TECHNOLOGY INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011329752.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-11-25
Filing Date
2020-11-24
Publication Date
2024-10-11
Estimated Expiration
2040-11-24

AI Technical Summary

Technical Problem

The existing technology cannot effectively utilize the cache when sending memory subsystem commands, resulting in non-deterministic time length for reading commands and affecting the performance of the memory subsystem.

Method used

By using a hardware memory controller in the host system, receive a read request for a memory address from the memory subsystem, determine whether the address is in cache, and selectively send a cache-based read command (such as a SREAD command) based on this or Non-cache-based read commands (such as the XREAD command) to optimize data access times.

Benefits of technology

Improves the read performance of the memory subsystem, reduces cache misses, ensures a deterministic length of time to provide data in the event of a cache hit, and improves overall performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112835814B_ABST
    Figure CN112835814B_ABST
Patent Text Reader

Abstract

Various embodiments described herein relate to selectively sending cache-based read commands, such as speculative read SREAD commands according to a Non-Volatile Dual In-line Memory Module-P (NVDIMM-P) memory protocol, to a memory subsystem.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate generally to memory subsystems, and more particularly to cache-based read commands. Background Art

[0002] The memory subsystem may include one or more memory components that store data. The memory components may be, for example, non-volatile memory components and volatile memory components. In general, the host system may utilize the memory subsystem to store data at the memory components and retrieve data from the memory components. Summary of the invention

[0003] According to one aspect of the present application, a system is provided. The system includes: a processing device; and a hardware memory controller for processing a memory request generated by the processing device, the hardware memory controller including: a memory device for storing one or more memory addresses associated with one or more past memory subsystem commands sent to a memory subsystem coupled to the hardware memory controller; and logic for performing operations, the operations including: receiving a memory request to read data from a given memory address of the memory subsystem; and in response to receiving the memory request: determining whether the given memory address is currently stored on the memory device; and sending a cache-based memory subsystem command for the given memory address to the memory subsystem based on the determination of whether the given memory address is currently stored on the memory device.

[0004] According to another aspect of the present application, a hardware memory controller is provided. The hardware memory controller includes: a hardware interface for receiving a memory request generated by a processing device; a memory device for storing one or more memory addresses associated with one or more past memory subsystem commands sent to a memory subsystem coupled to the hardware memory controller; and logic for performing operations, the operations including: receiving a memory request to read data from a given memory address of the memory subsystem through the hardware interface; and in response to receiving the memory request: determining whether the given memory address is currently stored in the memory device; and sending a cache-based memory subsystem command for the given memory address to the memory subsystem based on the determination of whether the given memory address is currently stored in the memory device.

[0005] According to another aspect of the present application, a method is provided. The method includes: receiving a memory request at a hardware memory controller to read data from a given memory address of a memory subsystem coupled to the hardware memory controller, the hardware memory controller including a memory device, the memory device being used to store one or more memory addresses associated with one or more past memory subsystem commands sent to the memory subsystem; and in response to receiving the memory request: determining by the hardware memory controller whether the given memory address is currently stored on the memory device; and sending by the hardware memory controller a cache-based memory subsystem command for the given memory address to the memory subsystem based on the determination of whether the given memory address is currently stored in the memory device. BRIEF DESCRIPTION OF THE DRAWINGS

[0006] The present disclosure will be more fully understood from the detailed description given below and the accompanying drawings of various embodiments of the present disclosure. However, the accompanying drawings should not be considered to limit the present disclosure to specific embodiments, but are only for explanation and understanding.

[0007] Figure 1 An example computing environment including a memory subsystem according to some embodiments of the present disclosure is shown.

[0008] Figures 2 to 4 is a flow chart of an example method for selectively sending cache-based read commands to a memory subsystem according to some embodiments of the present disclosure.

[0009] Figures 5A to 5C An interaction diagram is provided that illustrates interactions between components of a computing environment in the context of some embodiments in which a method for selectively sending cache-based read commands from a host system to a memory subsystem is performed.

[0010] Figure 6 is a block diagram of an example computer system in which embodiments of the present disclosure may operate. DETAILED DESCRIPTION

[0011] Aspects of the present disclosure are directed to selectively sending cache-based read commands to a memory subsystem, such as a memory subsystem that uses a non-deterministic memory protocol (e.g., a non-volatile dual in-line memory module-P (NVDIMM-P) memory protocol). The memory subsystem may be a storage device, a memory module, or a mixture of a storage device and a memory module. Figure 1Examples of storage devices and memory modules are described. In general, a host system may utilize a memory subsystem that includes one or more memory components that store data. The host system may provide data for storage at the memory subsystem and may request retrieval of data from the memory subsystem.

[0012] Some non-deterministic memory protocols, such as the NVDIMM-P memory protocol, allow the host system to send different types of memory subsystem read commands to the memory subsystem, which can send data (back to the host system) within a deterministic length of time or a non-deterministic length of time depending on the situation. For example, where the host system (acting as a master or initiator device) and the memory subsystem (acting as a slave or target device) are coupled via the NVDIMM-P interface, the host system can use a conventional read (XREAD) command for data at a specified memory address, or can use a speculative read command (SREAD) command for data at a specified memory address. Using the XREAD command, the memory subsystem can take a non-deterministic length of time to extract data from the specified memory address, and then send an indication to the host system (e.g., on the RSP_n signal line) that the data is ready to be sent to the host system. In contrast, using a SREAD command, the host system may request that data at a specified memory address be read from the cache of the memory subsystem, and in response to the SREAD command, the memory subsystem may send to the host system (e.g., as metadata) an indication of whether the SREAD resulted in a cache hit or a cache miss (also referred to as a "SREAD hit" and a "SREAD miss") after a deterministic length of time. If a cache hit (SREAD hit) occurs by the SREAD command, the requested data is returned with a cache hit / miss indicator (e.g., on a DQ signal line). However, if a cache miss (SREAD miss) occurs by the SREAD command, the memory subsystem may fetch the data from the specified memory address after the memory subsystem sends an indication (e.g., as metadata) that a cache miss has occurred, and send to the host system (e.g., on an RSP_n signal line) an indication that the data is ready to be sent to the host system.

[0013] Accordingly, in a best case scenario, using the SREAD command, the memory subsystem can provide data to the host system within a deterministic length of time that a cache hit occurs, which can be better than the non-deterministic length of time taken by the XREAD command. However, in the event of a cache miss, the SREAD command may incur additional costs (e.g., penalties) to the memory subsystem because the memory subsystem must respond to the host system with a cache miss (whereas the XREAD command does not need to do so), and this response occupies the data bus. In contrast, because the XREAD command does not perform this additional step (indicating a cache hit / miss), the XREAD command can provide the host system with a guarantee of when the data will be busy reading the data of the response. Thus, a cache / SREAD miss in response to a SREAD command can represent an opportunity cost that the memory subsystem would have used the data bus to actually send the data to the host system (e.g., using the XREAD command).

[0014] Aspects of the present disclosure address the above and other deficiencies by selectively sending (e.g., issuing) a cache-based read memory subsystem command (e.g., a SREAD command) from a host system to a memory subsystem based on a history of past memory subsystem commands sent from the host system to the memory subsystem. For some embodiments, the history of past memory subsystem commands sent from the host system to the memory subsystem is used to determine whether sending a cache-based memory subsystem read command will likely result in a cache miss (e.g., a SREAD miss), which can cause the memory subsystem to provide data requested by the read command within a deterministic length of time ("deterministic time") rather than a non-deterministic length of time ("non-deterministic time").

[0015] For example, according to some embodiments in which the host system acts as an NVDIMM-P initiator and the memory subsystem acts as an NVDIMM-P target, the host system includes a content addressable memory (CAM) for storing one or more tags, each tag identifying a memory address associated with an NVDIMM-P memory subsystem command previously sent from the host system to the memory subsystem. For example, the tags stored on the CAM may represent the memory address referenced by a memory subsystem command (e.g., an XREAD command) previously sent from the host system to the memory subsystem and which may have caused the data stored at the memory address to be currently stored in the cache of the memory subsystem. The CAM may store a timestamp for each tag (e.g., to calculate the lifetime of the tag), and may also store data for tracking valid and dirty bits for each tag. For some embodiments, when the host system wishes to send a read command to the memory subsystem according to the NVDIMM-P memory protocol, the host system uses the CAM (e.g., more specifically, the one or more tags stored thereon) to determine whether the host system should send an NVDIMM-P cache-based read command (e.g., SREAD command) to the memory subsystem to execute the read command instead of some other NVDIMM-P read command (e.g., XREAD command). In this way, the host system can send an NVDIMM-P cache-based read command (e.g., SREAD command) when the probability of a cache hit (e.g., SREAD hit) of the command is high, and send some other NVDIMM-P read command (e.g., XREAD command) when the probability of a cache hit is not high.

[0016] In general, cache hits (e.g., SREAD hits) of cache-based read commands (e.g., SREAD) can result in better performance of the memory subsystem, while cache misses (e.g., SREAD misses) of cache-based read commands can result in poorer performance of the memory subsystem, compared to using non-cache-based read commands. Accordingly, selectively sending cache-based read commands as described herein can improve the overall performance (e.g., read performance) of the memory subsystem, compared to conventional methods / techniques for sending cache-based read commands to the memory subsystem.

[0017] As used herein, a cache-based memory subsystem read command may include a memory subsystem read command that causes the memory subsystem to send back the requested data (e.g., send an indication that the requested data is ready to be read) within a deterministic length of time when the requested data is stored on a cache (e.g., a read cache) of the memory subsystem. A cache-based memory subsystem read command may cause the memory subsystem to send a cache miss response if the requested data is not currently stored on the cache. After sending the cache miss response, the memory subsystem may later send the requested data (e.g., send an indication that the requested data is ready to be read) within a non-deterministic (e.g., arbitrary) length of time. During the non-deterministic length of time, the memory subsystem may fetch the requested data from a memory device of the memory subsystem to a cache (e.g., a read cache) of the memory subsystem. Examples of cache-based memory subsystem read commands may include, but are not limited to, a SREAD command according to the NVDIMM-P memory protocol.

[0018] As used herein, a non-cache-based memory subsystem read command may include a memory subsystem read command that causes the memory subsystem to send back the requested data (e.g., send an indication that the requested data is ready to be read) within a non-deterministic (e.g., arbitrary) length of time. During the non-deterministic length of time, the memory subsystem may fetch the requested data from the memory device of the memory subsystem to the cache of the memory subsystem (e.g., read the cache). Examples of cache-based memory subsystem read commands may include, but are not limited to, an XREAD command in accordance with the NVDIMM-P memory protocol.

[0019] Although various embodiments are described herein with respect to selectively sending cache-based read memory subsystem commands based on a history of past memory subsystem commands sent from a host system to a memory subsystem, some embodiments use alternative or additional methods to determine the probability that data from a given memory address is currently stored on the memory subsystem's cache, and selectively send cache-based read memory subsystem commands based on the probability. For example, the host system may sense how the memory subsystem tracks or manages data within the memory subsystem's cache, and based on this sense, perform host-side tracking of data content in the cache. For example, where the memory subsystem tracks cache data content using a counter or tag storage method (utilizing a least recently used (LRU) policy), the host system may use the same tracking method to determine the probability that the requested data is stored in the memory subsystem's cache.

[0020] Disclosed herein are some examples of a system that can selectively send cache-based read commands to a memory subsystem, as described herein.

[0021] Figure 1 An example computing environment 100 is shown that includes a memory subsystem 110 according to some embodiments of the present disclosure. The memory subsystem 110 may include media such as one or more volatile memory devices (e.g., memory device 140), one or more non-volatile memory devices (e.g., memory device 130), or a combination of such media.

[0022] The memory subsystem 110 may be a storage device, a memory module, or a mixture of storage devices and memory modules. Examples of storage devices include solid-state drives (SSDs), flash drives, universal serial bus (USB) flash drives, embedded multimedia controller (eMMC) drives, universal flash storage devices (UFS) drives, and hard disk drives (HDDs). Examples of memory modules include dual in-line memory modules (DIMMs), small outline DIMMs (SO-DIMMs), and non-volatile dual in-line memory modules (NVDIMMs).

[0023] The computing system 100 may be a computing device such as a desktop computer, a laptop computer, a network server, a mobile device, a vehicle (e.g., an airplane, drone, train, car, or other transportation vehicle), a device with Internet of Things (IoT) capabilities, an embedded computer (e.g., an embedded computer included in a vehicle, industrial equipment, or a networked commercial device), or such a computing device that includes a memory and a processing device.

[0024] The computing system 100 may include a host system 120 coupled to one or more memory subsystems 110. In some embodiments, the host system 120 is coupled to memory subsystems 110 of different types. Figure 1 An example of a host system 120 coupled to one memory subsystem 110 is shown. As used herein, "coupled to" generally refers to a connection between components, which can be an indirect communication connection or a direct communication connection (e.g., without intervening components), whether wired or wireless, including connections such as electrical, optical, magnetic, etc.

[0025] The host system 120 may include a processor chipset and a software stack executed by the processor chipset. The processor chipset may include one or more cores, one or more caches, a memory controller (e.g., an NVDIMM controller), and a storage protocol controller (e.g., a PCIe controller, a SATA controller). The host system 120 uses the memory subsystem 110 to, for example, write data to the memory subsystem 110 and read data from the memory subsystem 110.

[0026] The host system 120 may be coupled to the memory subsystem 110 via a physical host interface. Examples of the physical host interface include, but are not limited to, a Serial Advanced Technology Attachment (SATA) interface, a Peripheral Component Interconnect Express (PCIe) interface, a Universal Serial Bus (USB) interface, a Fibre Channel, a Serial Attached SCSI (SAS), a Dual In-line Memory Module (DIMM) interface (e.g., a DIMM socket interface supporting a Double Data Rate (DDR)), etc. The physical host interface may be used to transmit data between the host system 120 and the memory subsystem 110. When the memory subsystem 110 is coupled to the host system 120 through a PCIe interface, the host system 120 may further utilize an NVM Express (NVMe) interface to access memory components (e.g., the memory device 130). The physical host interface may provide an interface for passing control, address, data, and other signals between the memory subsystem 110 and the host system 120.

[0027] The memory device may include any combination of different types of non-volatile memory devices and / or volatile memory devices. The volatile memory device (e.g., memory device 140) may be, but is not limited to, a random access memory (RAM), such as a dynamic random access memory (DRAM) and a synchronous dynamic random access memory (SDRAM).

[0028] Some examples of non-volatile memory devices (e.g., memory device 130) include "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 be combined with a stackable cross-grid data access array to perform bit storage based on changes in bulk resistance. In addition, in contrast to many flash-based memories, cross-point non-volatile memory can perform write-in-place operations, where non-volatile memory cells can be programmed without pre-erasing the non-volatile memory cells.

[0029] Although non-volatile memory components such as 3D cross-point and NAND-type flash memory are described, the memory device 130 may be based on any other type of non-volatile memory, such as read-only memory (ROM), phase-change memory (PCM), self-selected memory, other chalcogenide-based memories, ferroelectric random access memory (FeRAM), magnetic random access memory (MRAM), "NOR" (NOR) flash memory, electrically erasable programmable read-only memory (EEPROM), and cross-point arrays of non-volatile memory cells.

[0030] One type of memory cell, such as a single-level cell (SLC), may store one bit per cell. Other types of memory cells, such as multi-level cells (MLC), triple-level cells (TLC), and quad-level cells (QLC), may store multiple bits per cell. In some embodiments, each of the memory devices 130 may include one or more memory cell arrays, such as SLC, MLC, TLC, QLC, or any combination of these. In some embodiments, a particular memory device may include an SLC portion of memory cells, as well as an MLC portion, a TLC portion, or a QLC portion. The memory cells of the memory device 130 may be grouped into pages, which may refer to a logical unit of a memory device used to store data. For some types of memory (e.g., NAND), pages may be grouped to form blocks.

[0031] The memory subsystem controller 115 (for simplicity, controller 115) can communicate with the memory device 130 to perform operations, such as reading data, writing data, or erasing data at the memory device 130, and other such operations. The memory subsystem controller 115 can include hardware, such as one or more integrated circuits and / or discrete components, 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 memory subsystem controller 115 can be a microcontroller, dedicated logic circuitry (e.g., a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), etc.), or other suitable processor.

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

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

[0034] Typically, the memory subsystem controller 115 may receive commands or operations from the host system 120, and may convert the commands or operations into instructions or appropriate commands to achieve the desired access to the memory device 130. The memory subsystem controller 115 may be responsible for other operations such as wear leveling operations, garbage collection operations, error detection and error correction code (ECC) operations, encryption operations, cache operations, and address translation between logical addresses (e.g., logical block addresses (LBA), name space) and physical addresses (e.g., physical block addresses) associated with the memory device 130. The memory subsystem controller 115 may further include a host interface circuit system to communicate with the host system 120 via a physical host interface. The host interface circuit system may convert commands received from the host system into command instructions to access the memory device 130, and convert responses associated with the memory device 130 into information for the host system 120.

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

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

[0037] The memory subsystem 110 includes a cache 114 for caching data during the execution of an operation (e.g., a read operation or a write operation) of the memory subsystem 110. The cache 114 may include a cache present at the front end of the memory subsystem 110, while the memory devices 130, 140 may be present at the back end of the memory subsystem 110. Typically, the cache 114 has faster access performance than one or more of the memory devices (e.g., 130, 140) of the memory subsystem 110.

[0038] The host system 120 includes a hardware memory controller 125 that selectively sends cache-based read commands that implement at least a portion of some of the embodiments described herein. According to some embodiments, the hardware memory controller 125 processes memory requests, such as read or write requests, generated by a processing device of the host system 120 (e.g., when the processing device executes a software application). As shown, the hardware memory controller 125 includes a memory address tracking memory device 126, cache-based read command selection logic 127, and read latency adjustment logic 128. The hardware memory controller 125 may, for example, be coupled to a processing device (e.g., a central processing unit (CPU)) of the host system 120. For example, the hardware memory controller 125 may represent a northbridge chip or chipset that may facilitate interaction between the processing device of the host system 120 and the memory subsystem 110.

[0039] The memory address tracking memory device 126 is used by the hardware memory controller 125 to store one or more memory addresses associated with one or more previous memory subsystem commands (e.g., read commands or write commands) sent to the memory subsystem 110, which is coupled to the host system 120. Depending on the embodiment, one of the previous subsystem commands may be a memory subsystem command (e.g., read, write, or some other command) that is known to cause data associated with the memory address to be stored (e.g., fetched to) a cache (e.g., cache 114) of the memory subsystem 110. As described herein, when the hardware memory controller 125 sends a cache-based memory subsystem read command to the memory subsystem 110, this storage of data on the cache may result in a cache hit. For some embodiments, the hardware memory controller 125 causes the memory address tracking memory device 126 to store a memory address associated with (e.g., each) memory subsystem read command sent by the hardware memory controller 125 to the memory subsystem 110. In addition, for some embodiments, the memory address is stored on the memory address tracking memory device 126 together with a timestamp, which may indicate the issuance time of the memory subsystem command associated with the memory address from the hardware memory controller 125 to the memory subsystem 110. According to some embodiments, the memory address stored on the memory address tracking memory device 126 indicates that the data stored at the memory address on the memory subsystem 110 may be stored on the cache 114 (e.g., read cache) of the memory subsystem 110, which in turn indicates that if a cache-based memory subsystem read command (e.g., a SREAD command according to the NVDIMM-P memory protocol) is sent from the hardware memory controller 125 to the memory subsystem 110, a cache hit will likely be generated. For some embodiments, the memory address tracking memory device 126 includes a CAM, which may enable searching of the data content stored therein within a single clock cycle. For some embodiments, the memory address tracking memory device 126 stores each corresponding memory address as a tag on the memory address tracking memory device 126, wherein the tag may be used to identify the corresponding memory address. For example, a tag for the respective memory address is generated based on at least a portion of the respective memory address (e.g., the tag includes a leading portion or a trailing portion of a 64-bit memory address). Although the hardware memory controller 125 is shown as including a memory address tracking memory device 126, for some embodiments, the memory address tracking memory device 126 may be external to the hardware memory controller 125.

[0040] The cache-based read command selection logic 127 may cause (or otherwise enable) the hardware memory controller 125 to determine when the hardware memory controller 125 receives a memory request to read data from a given memory address of the memory subsystem 110. The memory request may be a memory request sent from a processing device (e.g., a CPU) to the hardware memory controller 125. In addition, the memory request may be generated by a processing device of the host system 120. For example, a software application or an operating system being executed by the processing device may cause the memory request to be generated. Although not shown, the hardware memory controller 125 may include a hardware interface for receiving a memory request (e.g., to read or write data) for a memory address.

[0041] In response to receiving a memory request to read data, cache-based read command selection logic 127 may cause (or otherwise enable) hardware memory controller 125 to determine whether a given memory address is currently stored in memory address tracking memory device 126. As described herein, memory address tracking memory device 126 may include a CAM that may enable fast searching of data contents of memory address tracking memory device 126 (e.g., within a single clock cycle).

[0042] The cache-based read command selection logic 127 may cause the hardware memory controller 125 (or otherwise enable the hardware memory controller 125) to send a cache-based memory subsystem command (e.g., a SREAD command according to the NVDIMM-P memory protocol) for a given memory address to the memory subsystem based on determining whether the given memory address is currently stored in the memory address tracking memory device 126. For example, the hardware memory controller 125 may send a cache-based memory subsystem command for a given memory address to the memory subsystem 110 in response to determining that the given memory address is currently stored on the memory address tracking memory device 126.

[0043] Alternatively, for some embodiments, in response to determining that a given memory address is currently stored in the memory address tracking memory device 126, the hardware memory controller 125 may: determine a current time accessible by the hardware memory controller 125; access a timestamp (e.g., a release timestamp) stored in association with the given memory address from the memory address tracking memory device 126; and determine a probability that there is data from the given memory address currently stored on the cache 114 of the memory subsystem 110 based on the current time, the timestamp, and the average read latency of the memory subsystem 110. Finally, the hardware memory controller 125 may send a cache-based memory subsystem command (e.g., a SREAD command according to the NVDIMM-P memory protocol) for the given memory address to the memory subsystem 110 in response to determining that there is a probability that data from the given memory address is currently stored on the cache 114 of the memory subsystem 110. For example, for some embodiments, when the current time is greater than the sum of the timestamp and the average read latency, there is a probability that data from the given memory address is currently stored on the cache 114 of the memory subsystem 110. The current time being greater than the sum of the timestamp and the average read latency time may indicate that sufficient time has passed between a previous memory subsystem command (e.g., a previous XREAD or SREAD command according to the NVDIMM-P memory protocol) associated with the given memory address stored on the memory address tracking memory device 126 and a most recently received memory request to read data from the memory subsystem 110 such that there is a probability (e.g., a high probability) that the data associated with the given memory address is currently stored in the cache 114 as a result of the previous memory subsystem command (e.g., a previous XREAD or SREAD command). Accordingly, for some embodiments, the hardware memory controller 125 sends a cache-based memory subsystem command for the given memory address in response to determining that the current time is greater than the sum of the timestamp and the average read latency time.

[0044] The current time may represent, for example, the time at which a memory request to read data is received by the hardware memory controller 125. Depending on the embodiment, the current time may be provided by an entity external to the hardware memory controller 125, such as a time maintained and provided by another component of the host system 120. The average read latency time may represent an estimated average response time for the memory subsystem 110 to copy data from a memory device (e.g., 130, 140) of the memory subsystem 110 to the cache 114. The average read latency time may be stored on the hardware memory controller 125 or on a memory device external to the hardware memory controller 125. Depending on the embodiment, the average read latency time may represent an estimated average response time currently known to the hardware memory controller 125. As described herein, the average read latency time may be adjusted (e.g., adapted or updated) over time by the hardware memory controller 125 via the read latency adjustment logic 128.

[0045] In another example, the cache-based read command selection logic 127 may cause the hardware memory controller 125 (or otherwise enable the hardware memory controller 125) to send a non-cache-based memory subsystem command (e.g., an XREAD command according to the NVDIMM-P memory protocol) for a given memory address to the memory subsystem based on determining whether the given memory address is currently stored in the memory address tracking memory device 126. Specifically, the hardware memory controller 125 may send a non-cache-based memory subsystem command for a given memory address to the memory subsystem in response to determining that the given memory address is not currently stored in the memory address tracking memory device 126.

[0046] Alternatively, for some embodiments, in response to determining that a given memory address is currently stored in the memory address tracking memory device 126, the hardware memory controller 125 may: determine a current time accessible by the hardware memory controller 125; access a timestamp (e.g., a release timestamp) stored in association with the given memory address from the memory address tracking memory device 126; and determine a probability that there is data from the given memory address currently stored on the cache 114 of the memory subsystem 110 based on the current time, the timestamp, and the average read latency of the memory subsystem 110. Finally, the hardware memory controller 125 may send a non-cache-based memory subsystem command (e.g., an XREAD command) for the given memory address to the memory subsystem 110 in response to determining that there is no probability that data from the given memory address is currently stored on the cache 114 of the memory subsystem 110. For example, for some embodiments, when the current time is less than or equal to the sum of the timestamp and the average read latency, the probability that the data from the given memory address is currently stored on the cache 114 of the memory subsystem 110 is extremely small or non-existent. The current time being less than or equal to the sum of the timestamp and the average read latency time may indicate that sufficient time has not elapsed between a previous memory subsystem command (e.g., a read command) associated with the given memory address stored on the memory address tracking memory device 126 and a most recently received memory request to read data from the memory subsystem 110 such that the data associated with the given memory address is currently stored in the cache 114 as a result of the previous memory subsystem command. Accordingly, for some embodiments, the hardware memory controller 125 sends a non-cache-based memory subsystem command for the given memory address in response to determining that the current time is less than or equal to the sum of the timestamp and the average read latency time.

[0047] For some embodiments, in response to the hardware memory controller 125 sending a non-cache-based memory subsystem read command (e.g., an XREAD command) for a given memory address to the memory subsystem 110, the hardware memory controller 125 may store (e.g., update) the given memory address on the memory address tracking memory device 126. If the given memory address is already stored on the memory address tracking memory device 126, the timestamp on the given memory address may be updated with the timestamp regarding when the non-cache-based memory subsystem read command was sent from the hardware memory controller 125 to the memory subsystem 110. As described herein, the memory address stored on the memory address tracking memory device 126 indicates that data stored on the memory subsystem 110 at the memory address may be stored on the cache 114 (e.g., a read cache) of the memory subsystem 110 (e.g., as a result of a previous memory subsystem read command sent for the given memory address). Accordingly, given that a non-cache-based memory subsystem read command is sent from the hardware memory controller 125 to the memory subsystem 110, there is a higher probability that data stored at a memory address on the memory subsystem 110 may be stored on the cache 114 (e.g., read cache) of the memory subsystem 110.

[0048] The read latency adjustment logic 128 may cause the hardware memory controller 125 or otherwise enable the hardware memory controller 125 to adjust (e.g., update) the average read latency time based on a response from the memory subsystem 110 when the hardware memory controller 125 sends a cache-based memory subsystem read command to the memory subsystem 110. Specifically, the hardware memory controller 125 may: determine whether a cache miss response (e.g., indicating a SREAD miss) is received from the memory subsystem 110 in response to sending a cache-based memory subsystem command (e.g., a SREAD command according to the NVDIMM-P memory protocol) to the memory subsystem 110; and adjust the average read latency time based on determining that a cache miss response is received. For example, the cache miss response may include a cache "miss" code, which may be sent from the memory subsystem 110 to the host system 120 via a metadata signal line according to the NVDIMM-P memory protocol. Alternatively, the memory subsystem 110 may send a cache hit response in response to sending a cache-based memory subsystem command (e.g., a SREAD command) to the memory subsystem 110. For some embodiments, the cache-based memory subsystem read command includes a SREAD command according to the NVDIMM-P memory protocol, and the cache hit response may include a response on the RSP_n signal line indicating that data is ready to be read by the host system 120 (via the hardware memory controller 125) from the memory subsystem 110. Depending on the embodiment, the adjustment of the average read latency time may be based on (e.g., according to): an average probability of time (e.g., a probability curve) that the memory subsystem 110 extracts data from the memory devices (e.g., 130, 140) to the cache 114 of the memory subsystem 110; an increment or decrement of a predetermined amount of time; or some combination thereof. The adjustment may represent a desired adjustment of the hardware memory controller 125 regarding how long the memory subsystem 110 takes to fetch data from a memory device (eg, 130 , 140 ) to the cache 114 of the memory subsystem 110 .

[0049] In some embodiments, the memory device 130 includes a local media controller 135 that operates in conjunction with the memory subsystem controller 115 to perform operations on one or more memory cells of the memory device 130 .

[0050] Additional details regarding the operation of hardware memory controller 125 are described below.

[0051] Figures 2 to 4is a flowchart of an example method for selectively sending cache-based read commands to a memory subsystem according to some embodiments of the present disclosure. Methods 200, 300, 400 may be performed by processing logic, which may include hardware (e.g., a processing device, a circuit system, dedicated logic, programmable logic, microcode, hardware of a device, an integrated circuit, etc.), software (e.g., instructions running or executed on a processing device), or a combination thereof. In some embodiments, methods 200, 300, 400 are performed by, for example, Figure 1 The hardware memory controller 125 of the host system 120 described above is executed. Additionally or alternatively, for some embodiments, the methods 200, 300, 400 are at least partially performed by Figure 1 The memory subsystem controller 115 of the embodiment of the present invention is executed. Although shown in a specific sequence or order, the order of the processes can be modified unless otherwise specified. Therefore, the illustrated embodiments should be understood as examples only, and the illustrated processes can be performed in a different order, and some processes can be performed in parallel. In addition, one or more processes can be omitted in various embodiments. Therefore, not all processes are required in every embodiment. Other process flows are also possible.

[0052] View now Figure 2 In the method 200 of the present invention, at operation 202, a hardware memory controller (e.g., 125) of a host system (e.g., 120) receives a memory request to read data from a given memory address of a memory subsystem (e.g., 110). In response to the memory request received at operation 202, at operation 204, the hardware memory controller (e.g., 125) determines whether the given memory address is currently stored on a memory device (e.g., 126) of the hardware memory controller. If the given memory address is currently stored on the memory device at decision point 206, the method 200 proceeds to operation 208; otherwise, the method 200 proceeds to operation 224.

[0053] At operation 208, the hardware memory controller (e.g., 125) determines a current time known or accessible to the hardware memory controller. At operation 210, the hardware memory controller (e.g., 125) accesses a timestamp (e.g., a release timestamp) stored on a memory device (e.g., 126) in association with a given memory address (determined by operation 204 to be stored in the memory device). At decision point 212, if the current time determined by operation 208 is greater than the sum of the timestamp accessed by operation 210 and the average read latency time (as currently known by the hardware memory controller 125), then the method 200 proceeds to operation 214; otherwise, the method 200 proceeds to operation 224.

[0054] At operation 214, the hardware memory controller (e.g., 125) sends a cache-based memory subsystem read command (e.g., a SREAD command according to the NVDIMM-P memory protocol) for a given memory address to the memory subsystem (e.g., 110). In this way, the method 200 selectively sends a cache-based memory subsystem read command to the memory subsystem (e.g., 110) based on a previous memory subsystem command (e.g., a previous memory subsystem read command) sent from the hardware memory controller (e.g., 125) to the memory subsystem (e.g., 110).

[0055] At operation 216, the hardware memory controller (e.g., 125) determines whether a cache miss response is received from the memory subsystem (e.g., 110) in response to the cache-based memory subsystem command sent by operation 214. If, at decision point 218, a cache miss response is received from the memory subsystem (e.g., 110), the method 200 proceeds to operation 220; otherwise, the method 200 proceeds to operation 222.

[0056] At operation 220, the hardware memory controller (e.g., 125) adjusts the average read latency, which may allow the hardware memory controller to better estimate how long it takes the memory subsystem (e.g., 110) to fetch data from the memory devices (e.g., 130, 140) to the cache (e.g., 114) of the memory subsystem (e.g., 110). At operation 222, the hardware memory controller (e.g., 125) maintains the average read latency unchanged.

[0057] At operation 224, the hardware memory controller (e.g., 125) sends a non-cache-based memory subsystem read command (e.g., an XREAD command according to the NVDIMM-P memory protocol) for the given memory address to the memory subsystem (e.g., 110). For some embodiments, in response to the hardware memory controller (e.g., 125) sending the non-cache-based memory subsystem read command, the given memory address may be stored on the memory device (e.g., 126), which may indicate a probability that the data at the given memory address on the memory subsystem (e.g., 110) has been fetched from the memory devices (e.g., 130, 140) of the memory subsystem to the cache (e.g., 114) of the memory subsystem.

[0058] View now Figure 3In the method 300, at operation 302, a hardware memory controller (e.g., 125) of a host system (e.g., 120) receives a memory request to read data from a given memory address of a memory subsystem (e.g., 110). At operation 304, the hardware memory controller (e.g., 125) determines whether the given memory address is currently stored on a memory device (e.g., 126) of the hardware memory controller.

[0059] At operation 306, the hardware memory controller (e.g., 125) sends a cache-based memory subsystem read command for the given memory address to the memory subsystem (e.g., 110) based on the determination of operation 304. For some embodiments, operation 306 includes sending a cache-based memory subsystem command (e.g., a SREAD command according to the NVDIMM-P memory protocol) for the given memory address to the memory subsystem (e.g., 110) in response to determining at operation 304 that the given memory address is currently stored on the memory device (e.g., 126).

[0060] Additionally, for some embodiments, operation 306 includes, in response to determining that a given memory address is currently stored in a memory device (e.g., 126), performing the following operations: determining a current time that is accessible by a hardware memory controller (e.g., 125); accessing a timestamp stored in association with the given memory address from the memory device (e.g., 126); determining a probability that there is data from the given memory address currently stored on a cache (e.g., 114) of the memory subsystem (e.g., 110) based on the current time, the timestamp, and an average read latency of the memory subsystem (e.g., 110); and sending a cache-based memory subsystem command for the given memory address to the memory subsystem (e.g., 110) in response to determining that there is a probability that data from the given memory address is currently stored on a cache (e.g., 114) of the memory subsystem (e.g., 110).

[0061] View now Figure 4 Method 400, operations 402 and 404 are similar to those described above with respect to Figure 3 Operations 302 and 304 of method 300 are described. In response to the given memory address being currently stored on the memory device (eg, 126), method 400 proceeds to operation 406; otherwise, method 400 proceeds to operation 418.

[0062] At operation 406, the hardware memory controller (e.g., 125) determines a current time that is accessible to the hardware memory controller. At operation 408, the hardware memory controller (e.g., 125) accesses a timestamp stored on a memory device (e.g., 126) in association with a given memory address. At operation 410, the hardware memory controller (e.g., 125) determines a probability that there is data from a given memory address (of the memory subsystem 110) currently stored on a cache (e.g., 114) of the memory subsystem (e.g., 110) based on the current time, the timestamp, and the average read latency of the memory subsystem 110. For some embodiments, when the current time (determined by operation 406) is greater than the sum of the timestamp (accessed by operation 408) and the average read latency, operation 410 determines a probability that there is data from a given memory address currently stored on a cache (e.g., 114) of the memory subsystem (e.g., 110). As described herein, the current time being greater than the sum of the timestamp and the average read latency time may indicate that sufficient time has passed between a previous memory subsystem command (e.g., a previous XREAD or SREAD command according to the NVDIMM-P memory protocol) associated with a given memory address stored on a memory device (e.g., 126) of a memory subsystem (e.g., 110) and a most recently received memory request to read data from the memory subsystem (e.g., 110) to make it possible (e.g., a high probability) that there is data associated with the given memory address currently stored in a cache (e.g., 114) as a result of the previous memory subsystem command (e.g., a previous XREAD or SREAD command). Alternatively, when the current time (determined by operation 406) is less than or equal to the sum of the timestamp (accessed by operation 408) and the average read latency time, operation 410 may determine a probability that there is no data from the given memory address currently stored on a cache (e.g., 114) of the memory subsystem (e.g., 110). In response to there being a probability that data from the given memory address is currently stored on the cache 114 , the method 400 proceeds to operation 412 ; otherwise, the method 400 proceeds to operation 418 .

[0063] At operation 412, the hardware memory controller (e.g., 125) sends a cache-based memory subsystem read command (e.g., a SREAD command according to the NVDIMM-P memory protocol) for a given memory address to the memory subsystem (e.g., 110). At operation 414, the hardware memory controller (e.g., 125) determines whether a cache miss response is received in response to the cache-based memory subsystem read command sent by operation 412. As described herein, the cache miss response may include a cache "miss" code, which may be sent from the memory subsystem (e.g., 110) to the host system (e.g., 120) via the metadata signal line according to the NVDIMM-P memory protocol. As also described herein, instead of a cache miss response, the memory subsystem (e.g., 110) may send a cache hit response in response to the cache-based memory subsystem command (e.g., SREAD command) sent to the memory subsystem (e.g., 110) by operation 412. For some embodiments, the cache-based memory subsystem read command includes a SREAD command in accordance with the NVDIMM-P memory protocol, and the cache hit response may include a response on the RSP_n signal line indicating that data is ready to be read from the memory subsystem (e.g., 110) by the host system (e.g., 120).

[0064] Although not shown, in response to determining (at operation 414) that a cache miss response has not been received, the hardware memory controller (eg, 125) may maintain an average read latency of the memory subsystem (eg, 110) unchanged.

[0065] However, in response to determining (at operation 414) that a cache miss response is received, at operation 416, the hardware memory controller (e.g., 125) adjusts the average read latency time of the memory subsystem 110. As described herein, the adjustment to the average read latency time may represent a desired adjustment of the hardware memory controller (e.g., 125) regarding how long the memory subsystem (e.g., 110) takes to fetch data from the memory devices (e.g., 130, 140) to the cache (e.g., 114) of the memory subsystem 110. Depending on the embodiment, the adjustment of the average read latency time may be based on (e.g., in accordance with): an average probability (e.g., a probability curve) of the memory subsystem (e.g., 110) fetching data from the memory devices (e.g., 130, 140) to the cache (e.g., 114) of the memory subsystem (e.g., 110); an increment or decrement of a predetermined amount of time; or some combination thereof.

[0066] At operation 418, the hardware memory controller (e.g., 125) sends a non-cache-based memory subsystem read command (e.g., an XREAD command according to the NVDIMM-P memory protocol) for the given memory address to the memory subsystem (e.g., 110). In response to the hardware memory controller (e.g., 125) sending the non-cache-based memory subsystem read command, at operation 420, the hardware memory controller (e.g., 125) updates the memory device (e.g., 126) with the given memory address. For some embodiments, operation 420 includes the hardware memory controller (e.g., 125) causing the given memory address to be stored on the memory device (e.g., 126), which may indicate a probability that the data at the given memory address on the memory subsystem (e.g., 110) has been fetched from the memory devices (e.g., 130, 140) of the memory subsystem to the cache (e.g., 114) of the memory subsystem.

[0067] Figures 5A to 5C An interaction diagram is provided that illustrates the interactions between components of a computing environment 100 in the context of some embodiments in which a method for selectively sending cache-based read commands from a host system to a memory subsystem is performed. The operations of the method may be performed by processing logic, which may include hardware (e.g., a processing device, a circuit system, dedicated logic, programmable logic, microcode, hardware of a device, an integrated circuit, etc.), software (e.g., instructions running or executed on a processing device), or a combination thereof. In some embodiments, the method is performed by a hardware memory controller (e.g., 125), a memory subsystem controller (e.g., 115), a memory device (e.g., 130, 140), a cache (e.g., 114), or some combination thereof of a host system (e.g., 120). Although the operations are shown in a particular sequence or order, the order of the processes may be modified unless otherwise specified. Therefore, the illustrated embodiments should be understood only as examples, and the illustrated processes may be performed in different orders, and some processes may be performed in parallel. In addition, one or more processes may be omitted in various embodiments. Therefore, not all processes are required in every embodiment. In Figures 5A to 5C In the context of the example shown in , the hardware memory controller may include hardware memory controller 125 , the memory subsystem controller may include memory subsystem controller 115 , the memory device may include memory device 130 or 140 , and the cache may include cache 114 .

[0068] like Figure 5AAs shown, at operation 502, the hardware memory controller 125 receives a memory request to read data from a given memory address (e.g., from a processing device of the host system 120). At operation 504, the hardware memory controller 125 determines whether the given memory address is currently stored on a memory device (e.g., 126) of the hardware memory controller 125. In response to the given memory address being currently stored on the memory device (e.g., 126), at operation 506, the hardware memory controller 125 determines the current time. At operation 508, the hardware memory controller 125 accesses a timestamp stored on the memory device (e.g., 126) in association with the given memory address.

[0069] At operation 510, the hardware memory controller 125 determines whether there is a probability that data from a given memory address is stored on the cache 114 of the memory subsystem 110 based on the current time (determined by operation 506), the timestamp (accessed by operation 508), and the average read latency of the memory subsystem 110. In response to the probability that there is a probability that data from the given memory address is stored on the cache 114 of the memory subsystem 110, the method proceeds to Figure 5B Operation 520.

[0070] View now Figure 5B At operation 520, the hardware memory controller 125 sends a cache-based memory subsystem read command for a given memory address to the memory subsystem 110. At operation 530, the memory subsystem controller 115 of the memory subsystem 110 receives the cache-based memory subsystem read command for the given memory address. At operation 532, the memory subsystem controller 115 processes the cache-based memory subsystem read command for the given memory address. At operation 534, the memory subsystem controller 115 determines whether the requested data is stored in the cache 114. At operation 560, the cache 114 facilitates checking the stored data for the given memory address. In response to determining that the requested data is stored on the cache 114, the method proceeds to operation 540. In response to determining that the requested data is not stored on the cache 114, the method proceeds to operation 536.

[0071] At operation 536, the memory subsystem controller 115 sends a cache miss response to the hardware memory controller 125 of the host system 120. At operation 538, the memory subsystem controller 115 fetches the data from the memory device (e.g., 130, 140) to the cache 114. At operation 550, the memory device (e.g., 130, 140) facilitates reading the data from the location corresponding to the given memory address, and at operation 562, the cache 114 facilitates storage of the data.

[0072] At operation 540, the memory subsystem controller 115 provides the requested data from the cache 114 to the hardware memory controller 125 of the host system 120. At operation 564, the cache 114 provides the stored data to the memory subsystem controller 115. For some embodiments, operation 540 includes the memory subsystem controller 115 sending a response to the hardware memory controller 125 indicating that the requested data is ready to be sent to the host system 120, and sending the requested data to the host system 120 in response to the hardware memory controller 125 sending the send signal.

[0073] At operation 522, the hardware memory controller 125 receives a cache miss response from the memory subsystem controller 115. At operation 524, the hardware memory controller 125 receives data from the memory subsystem controller 115. At operation 526, the hardware memory controller 125 determines whether a cache miss response is received in response to a cache-based memory subsystem read command. In response to receiving the cache miss response, at operation 528, the hardware memory controller 125 adjusts the average read latency of the memory subsystem 110.

[0074] In response to determining (at operation 504) that the given memory address is not currently stored on the memory device (e.g., 126), the method proceeds to Figure 5C In response to determining (at operation 510) that there is no probability that data from a given memory address is stored on the cache 114 of the memory subsystem 110, the method proceeds to Figure 5C Operation 570.

[0075] View now Figure 5C At operation 570, the hardware memory controller 125 sends a cache-based memory subsystem read command for the given memory address to the memory subsystem 110. At operation 572, the hardware memory controller 125 updates the memory device (e.g., 126) with the given memory address (because the non-cache-based memory subsystem command sent by operation 570 now represents the previous memory subsystem command).

[0076] At operation 580, the memory subsystem controller 115 receives a non-cache-based memory subsystem read command for a given memory address. At operation 582, the memory subsystem controller 115 processes the non-cache-based memory subsystem read command for the given memory address. At operation 584, the memory subsystem controller 115 fetches data from the memory device (e.g., 130, 140) to the cache 114. At operation 552, the memory device (e.g., 130, 140) facilitates reading the data from the location corresponding to the given memory address, and at operation 566, the cache 114 facilitates storage of the data.

[0077] At operation 586, the memory subsystem controller 115 provides the requested data from the cache 114 to the hardware memory controller 125 of the host system 120. At operation 568, the cache 114 provides the stored data to the memory subsystem controller 115. At operation 574, the hardware memory controller 125 finally receives the requested data from the memory subsystem 110.

[0078] Figure 6 An example machine is shown in the form of a computer system 600 within which a set of instructions may be executed to cause the machine to perform any one or more of the methodologies discussed herein. In some embodiments, the computer system 600 may correspond to a host system (e.g., Figure 1 1) a host system 120 that includes, is coupled to, or utilizes a memory subsystem (e.g., Figure 1 In some embodiments, the machine may be connected (e.g., using a network) to other machines in a local area network (LAN), an intranet, an extranet, and / or the Internet. The machine may operate in the capacity of a server or a client machine in a client-server network environment, or 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.

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

[0080] The example computer system 600 includes a processing device 602, a main memory 604 (e.g., read-only memory (ROM), flash memory, dynamic random access memory (DRAM) such as synchronous DRAM (SDRAM) or Rambus DRAM (RDRAM)), a static memory 606 (e.g., flash memory, static random access memory (SRAM), etc.), and a data storage device 618, which communicate with each other via a bus 630.

[0081] The processing device 602 represents one or more general-purpose processing devices, such as a microprocessor, a central processing unit, etc. More specifically, the processing device 602 can be a complex instruction set computing (CISC) microprocessor, a reduced instruction set computing (RISC) microprocessor, a very long instruction word (VLIW) microprocessor, a processor implementing other instruction sets, or a processor implementing a combination of instruction sets. The processing device 602 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), a network processor, etc. The processing device 602 is configured to execute instructions 626 for performing the operations and steps discussed herein. The computer system 600 can further include a network interface device 608 to communicate on a network 620.

[0082] The data storage device 618 may include a machine-readable storage medium 624 (also referred to as a computer-readable medium) on which is stored one or more sets of instructions 626 or software embodying any one or more of the methods or functions described herein. The instructions 626 may also reside, completely or at least partially, within the main memory 604 and / or within the processing device 602 during execution thereof by the computer system 600, the main memory 604 and the processing device 602 also constituting machine-readable storage media. The machine-readable storage medium 624, the data storage device 618, and / or the main memory 604 may correspond to Figure 1 Memory subsystem 110.

[0083] In one embodiment, instructions 626 include instructions to implement functionality as described herein regarding selectively sending cache-based read commands to the memory subsystem. Although machine-readable storage medium 624 is shown as a single medium in the example embodiment, the term "machine-readable storage medium" should be considered to include a single medium or multiple media storing the one or more instruction sets. The term "machine-readable storage medium" should also be considered to include any medium capable of storing or encoding a set of instructions for execution by a machine and causing the machine to perform any one or more of the methods of the present disclosure. Therefore, the term "machine-readable storage medium" should be considered to include, but not limited to, solid-state memory, optical media, and magnetic media.

[0084] Some portions of the previous detailed description have been presented in terms of algorithms and symbolic representations of operations on data bits within a computer memory. These algorithmic descriptions and representations are the means by which those skilled in the art of data processing most effectively convey the substance of their work to others skilled in the art. An algorithm is here and generally considered to be a self-consistent sequence of operations leading to a desired result. An operation is one that requires physical manipulation of physical quantities. These quantities are typically (but not necessarily) in the form of electrical or magnetic signals capable of being stored, combined, compared, and otherwise manipulated. At times, primarily for common usage reasons, it has proven convenient to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like.

[0085] It should be borne in mind, however, that all of these and similar terms should be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. The present disclosure may be directed to the actions and processes of a computer system or similar electronic computing device that manipulates and transforms data represented as physical (electronic) quantities within a computer system's registers and memories into other data similarly represented as physical quantities within the computer system's memories or registers or other such information storage systems.

[0086] The present disclosure also relates to an apparatus for performing the operations described herein. This apparatus may be specially constructed for the intended purpose, or it may comprise a general purpose computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program may 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 memory (ROM), random access memory (RAM), EPROM, EEPROM, magnetic or optical cards, or any type of medium suitable for storing electronic instructions, each coupled to a computer system bus.

[0087] The algorithms and displays presented herein are not inherently related to any particular computer or other device. Various general purpose systems may be used with programs according to the teachings herein, or it may prove convenient to construct more specialized devices to perform the methods. The structures of a variety of these systems will be presented as set forth in the description below. In addition, the present disclosure is not described with reference to any particular programming language. It should be appreciated that a variety of programming languages ​​may be used to implement the teachings of the present disclosure described herein.

[0088] The present disclosure may be provided as a computer program product or software, which may include a machine-readable medium having stored thereon instructions that can be used to program a computer system (or other electronic device) to perform a process according to the present disclosure. A machine-readable medium includes any mechanism for storing information in a form readable by a machine (e.g., a computer). In some embodiments, a machine-readable (e.g., computer-readable) medium includes a machine (e.g., computer) readable storage medium, such as a read-only memory ("ROM"), a random access memory ("RAM"), a magnetic disk storage medium, an optical storage medium, a flash memory component, etc.

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

Claims

1. A memory system, comprising: Processing device; as well as A hardware memory controller, configured to process a memory request generated by the processing device, the hardware memory controller comprising: a memory device to store one or more memory addresses associated with one or more past memory subsystem commands sent to a memory subsystem coupled to the hardware memory controller; and Logic for performing operations including: receiving a memory request to read data from a given memory address of the memory subsystem; and In response to receiving the memory request: determining whether the given memory address is currently stored on the memory device; and In response to determining that the given memory address is currently stored on the memory device: determining a current time accessible by the hardware memory controller; accessing from the memory device a timestamp stored in association with the given memory address; determining a probability whether data from the given memory address is currently stored in a cache of the memory subsystem based on the current time, the timestamp, and an average read latency of the memory subsystem; and Based on determining whether the probability exists, at least one of a cache-based memory subsystem command for the given memory address or a non-cache-based memory subsystem command for the given memory address is sent to the memory subsystem.

2. The memory system of claim 1 , wherein the sending the cache-based memory subsystem command for the given memory address based on the determining whether the given memory address is currently stored on the memory device comprises: The cache-based memory subsystem command for the given memory address is sent to the memory subsystem in response to determining that the given memory address is currently stored on the memory device.

3. The memory system of claim 1 , wherein based on determining whether the probability exists, sending the at least one of the cache-based memory subsystem command or the non-cache-based memory subsystem command comprises: In response to determining that the probability exists, sending the cache-based memory subsystem command for the given memory address to the memory subsystem.

4. The memory system of claim 1 , wherein the determining the probability of whether there is data from the given memory address currently stored on the cache of the memory subsystem based on the current time, the timestamp, and the average read latency comprises: Determine whether the current time is greater than the sum of the timestamp and the average read latency; as well as Responsive to the current time being greater than the sum, determining the probability that there is data from the given memory address currently stored on the cache of the memory subsystem.

5. The memory system of claim 3, wherein the operations further comprise: determining whether a cache miss response is received from the memory subsystem in response to sending the cache-based memory subsystem command to the memory subsystem; as well as The average read latency is adjusted based on the determination that the cache miss response is received. 6 . The memory system of claim 1 , wherein the cache-based memory subsystem command comprises a speculative read (SREAD) command in accordance with a Non-Volatile Dual In-line Memory Module-P (NVDIMM-P) memory protocol.

7. The memory system of claim 1, wherein the operations further comprise: The non-cache based memory subsystem command for the given memory address is sent to the memory subsystem in response to determining that the given memory address is not currently stored in the memory device. 8 . The memory system of claim 7 , wherein the non-cache based memory subsystem command comprises an XREAD command in accordance with a Non-Volatile Dual In-line Memory Module-P (NVDIMM-P) memory protocol.

9. The memory system of claim 7, wherein the operations further comprise: The memory device is updated with the given memory address.

10. The memory system according to claim 1, Wherein based on determining whether the probability exists, sending the at least one of the cache-based memory subsystem command or the non-cache-based memory subsystem command comprises: In response to determining that the probability does not exist, sending the non-cache based memory subsystem command for the given memory address to the memory subsystem.

11. The memory system of claim 1, wherein the memory device further stores a timestamp for at least one of the one or more memory addresses stored on the memory device.

12. The memory system of claim 1, wherein each respective memory address of the one or more memory addresses stored on the memory device is stored on the memory device as a tag, the tag identifying the respective memory address.

13. The memory system of claim 12, wherein the tag of the corresponding memory address is generated based on at least a portion of the corresponding memory address.

14. The memory system of claim 1, wherein the memory system comprises a host system.

15. A hardware memory controller comprising: a hardware interface for receiving a memory request generated by a processing device; a memory device to store one or more memory addresses associated with one or more past memory subsystem commands sent to a memory subsystem coupled to the hardware memory controller; as well as Logic for performing operations including: receiving, via the hardware interface, a memory request to read data from a given memory address of the memory subsystem; and In response to receiving the memory request: determining whether the given memory address is currently stored in the memory device; and In response to determining that the given memory address is currently stored on the memory device: determining a current time accessible by the hardware memory controller; accessing from the memory device a timestamp stored in association with the given memory address; determining a probability whether data from the given memory address is currently stored in a cache of the memory subsystem based on the current time, the timestamp, and an average read latency of the memory subsystem; and Based on determining whether the probability exists, at least one of a cache-based memory subsystem command for the given memory address or a non-cache-based memory subsystem command for the given memory address is sent to the memory subsystem.

16. The hardware memory controller of claim 15, wherein the memory device comprises a content addressable memory (CAM).

17. A method for operating a memory system, comprising: receiving, at a hardware memory controller, a memory request to read data from a given memory address of a memory subsystem coupled to the hardware memory controller, the hardware memory controller including a memory device to store one or more memory addresses associated with one or more past memory subsystem commands sent to the memory subsystem; as well as In response to receiving the memory request: determining, by the hardware memory controller, whether the given memory address is currently stored on the memory device; as well as In response to determining that the given memory address is currently stored on the memory device: determining a current time accessible by the hardware memory controller; accessing from the memory device a timestamp stored in association with the given memory address; determining a probability whether data from the given memory address is currently stored in a cache of the memory subsystem based on the current time, the timestamp, and an average read latency of the memory subsystem; as well as Based on determining whether the probability exists, at least one of a cache-based memory subsystem command for the given memory address or a non-cache-based memory subsystem command for the given memory address is sent by the hardware memory controller to the memory subsystem.

18. The method of claim 17, wherein said sending the cache-based memory subsystem command for the given memory address based on said determining whether the given memory address is currently stored in the memory device comprises: The cache-based memory subsystem command for the given memory address is sent to the memory subsystem in response to determining that the given memory address is currently stored in the memory device.

19. The method of claim 17, wherein based on determining whether the probability exists, sending the at least one of the cache-based memory subsystem command or the non-cache-based memory subsystem command comprises: In response to determining that the probability exists, sending the cache-based memory subsystem command for the given memory address to the memory subsystem.

20. The method of claim 19, further comprising: receiving a cache miss response from the memory subsystem in response to sending the cache-based memory subsystem command to the memory subsystem; as well as The average read latency is adjusted based on receiving the cache miss response.