System and method for monitoring memory access

By introducing an access counter in the memory device, recording the number of accesses and evaluating activity in the host computing device, the problem of inaccurate page migration decisions in the prior art is solved, and efficient monitoring and optimization of memory access is achieved.

CN118642977APending Publication Date: 2024-09-13SAMSUNG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410269168.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-04-25
Filing Date
2024-03-11
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

When the existing technology monitors memory access, it is difficult to accurately select pages for migration, which leads to potentially inaccurate upgrade or downgrade decisions and requires the participation of the host CPU, affecting performance.

Method used

By introducing an access counter in the memory device to record the number of accesses to a memory location and maintaining page access information without involving the host CPU, the host computing device is allowed to make page migration decisions based on activity information.

Benefits of technology

It achieves efficient monitoring and accurate assessment of memory page activity, supports more intelligent upgrade and downgrade decisions, improves performance, and reduces dependence on the host CPU.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118642977A_ABST
    Figure CN118642977A_ABST
Patent Text Reader

Abstract

Systems and methods for monitoring memory access. A memory system includes a first memory device, a second memory device, and a controller configured to communicate with the first memory device and the second memory device. The controller is configured to: receive a first request for first data from a computing device; identifying a first address based on the first request; searching a first memory device for the first address; modifying a first count in the second memory device for the first address; receiving a second request from the computing device; and providing the first count in response to the second request.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] One or more aspects according to embodiments of the present disclosure relate to a storage system, and in particular, to a system and method for monitoring memory access. Background Art

[0002] Applications may interact with memory devices for reading and writing data. Latency is often involved when accessing memory devices. The type of latency involved may depend on the type of memory devices included in the memory device. Some memory devices have lower latency than other memory devices. Therefore, it may be desirable to manage the use of memory devices for efficient data retrieval.

[0003] The above information disclosed in this Background section is only for enhancement of understanding of the background of the present disclosure and therefore it may contain information that does not form the prior art. Summary of the invention

[0004] An embodiment of the present invention relates to a storage system, which includes a first memory device, a second memory device, and a controller configured to communicate with the first memory device and the second memory device. The controller is configured to: receive a first request for first data from a process running on a computing device; identify a first address based on the first request; search the first memory device for the first address; modify a first count for the first address in the second memory device; receive a second request from the computing device; and provide the first count in response to the second request.

[0005] In some embodiments, the first memory device is associated with a first access latency.

[0006] In some embodiments, the first memory device is coupled to the computing device via a communication interface.

[0007] In some embodiments, the first request includes at least one of a request to load or store first data.

[0008] In some embodiments, the first count indicates a number of accesses to the first address.

[0009] In some embodiments, the second memory device is configured to maintain a second count for the second address in the first memory device.

[0010] In some embodiments, the controller is configured to provide a second count in response to the second request.

[0011] In some embodiments, the computing device is configured to: compare the first count to the second count; and cause an action in response to the comparison.

[0012] In some embodiments, the first count is greater than the second count, and the computing device is configured to retain second data associated with the second address in the first memory device based on the comparison.

[0013] In some embodiments, the first count is maintained in association with a process of the computing device, and the second request includes an identifier of the process.

[0014] In some embodiments, the controller is further configured to: receive a third request from the computing device; and update the first count in response to the third request.

[0015] An embodiment of the present disclosure relates to a method, comprising: receiving a first request for first data from a process running on a computing device; identifying a first address based on the first request; searching a first memory device for the first address; modifying a first count for the first address in a second memory device; receiving a second request from the computing device; and providing the first count in response to the second request.

[0016] In some embodiments, the method of statement 12, wherein the first memory device is associated with a first access latency.

[0017] In some embodiments, the method of statement 12, wherein the first memory device is coupled to the computing device via a communication interface.

[0018] In some embodiments, the method as described in statement 12, wherein the first request includes at least one of a request to load or store the first data.

[0019] In some embodiments, the method of statement 12, wherein the first count indicates a number of accesses to the first address.

[0020] In some embodiments, the method of statement 12 further comprises maintaining, by the second memory device, a second count for the second address in the first memory device.

[0021] In some embodiments, the method of statement 17 further comprises providing, by the controller, a second count in response to the second request.

[0022] In some embodiments, the method of statement 18 further comprises: comparing, by the computing device, the first count to the second count; and causing an action in response to the comparison.

[0023] In some embodiments, the method of statement 19, wherein the first count is greater than the second count, the method further comprising: retaining second data associated with the second address in the first memory device based on the comparison.

[0024] These and other features, aspects and advantages of the embodiments of the present disclosure will be more fully understood when considered with reference to the following detailed description, appended claims and accompanying drawings.Of course, the actual scope of the invention is defined by the appended claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Non-limiting and non-exhaustive embodiments of the present invention are described with reference to the following figures, wherein like reference numerals refer to like parts throughout the various views unless otherwise specified.

[0026] Figure 1 depicts a block diagram of a system for monitoring memory accesses and making page migration decisions in accordance with one or more embodiments;

[0027] Figure 2 depicts a block diagram of a memory device according to one or more embodiments;

[0028] Figure 3 depicts a conceptual layout diagram of a data structure storing one or more access counters according to one or more embodiments;

[0029] Figure 4 depicts a flow diagram of a process for handling a request from a host according to one or more embodiments;

[0030] Figure 5 A flowchart depicting a process for processing commands directed to counter memory according to one or more embodiments; and

[0031] Figure 6 A flow diagram of a process for managing data stored in a storage system is depicted in accordance with one or more embodiments. DETAILED DESCRIPTION

[0032] Hereinafter, example embodiments will be described in more detail with reference to the accompanying drawings, wherein the same reference numerals always refer to the same elements. However, the present disclosure may be implemented in various different forms and should not be construed as being limited to the embodiments shown herein. On the contrary, these embodiments are provided as examples so that the present disclosure will be thorough and complete, and will fully convey the aspects and features of the present disclosure to those skilled in the art. Therefore, processes, elements and techniques that are not necessary for a person of ordinary skill in the art to fully understand the aspects and features of the present disclosure may not be described. Unless otherwise stated, throughout the drawings and written descriptions, the same reference numerals represent the same elements, and therefore, their descriptions may not be repeated. In addition, in the drawings, for clarity, the relative sizes of elements, layers and regions may be exaggerated and / or simplified.

[0033] Embodiments of the present disclosure are described below with reference to block diagrams and flow charts. Therefore, it should be understood that each frame of block diagrams and flow charts can be implemented in the form of computer program products, complete hardware embodiments, combinations of hardware and computer program products and / or devices, systems, computing devices, computing entities, etc., which execute instructions, operations, steps and interchangeable similar words (e.g., executable instructions, instructions for execution, program codes, etc.) on computer-readable storage media. For example, the retrieval, loading and execution of code can be performed sequentially so that one instruction is retrieved, loaded and executed at a time. In some example embodiments, retrieval, loading and / or execution can be performed in parallel so that multiple instructions are retrieved, loaded and / or executed together. Therefore, such embodiments can produce a specially configured machine for executing the steps or operations specified in block diagrams and flow charts. Therefore, block diagrams and flow charts support various combinations of embodiments for executing specified instructions, operations or steps.

[0034] In general, an application running on a host computing device may need to store data to a memory device and load data from a memory device. Latency is usually involved when accessing a memory device. The latency involved may be different depending on the type of memory device being accessed. For example, a memory device attached to a central processing unit (CPU) or a graphics processing unit (GPU) may have a lower latency than a memory device attached to a CPU via an expansion bus (e.g., compute express link (CXL), remote direct memory access (RDMA), etc.). In this regard, different types of memory devices may be organized in a memory hierarchy or a hierarchy in which the level assigned to the memory device may increase as the latency associated with the medium decreases. In this regard, it may be desirable to manage a storage system so that blocks, chunks, or pages (collectively referred to as "pages" or "memory pages") of data that are accessed more frequently than other memory pages are stored (or upgraded to) a higher memory hierarchy (e.g., the main memory of a computing device), and memory pages that are infrequently accessed are stored (or downgraded to) a lower memory hierarchy (e.g., a persistent memory).

[0035] One or more mechanisms may be used to track access to memory pages. For example, access bits may be maintained for page entries in a translation lookaside buffer (TLB) stored in a memory management unit (MMU) of a host computing device. The access bits may indicate whether a page has been accessed (a "hot" page) or not (a "cold" page). In this regard, the access bits associated with one or more pages may be initialized to 0. When a process wants to access a page, a page fault is triggered based on the access bit of the page having a value of 0. In response to a page fault, the host CPU may set the access bit of the page to "1".

[0036] The host CPU can use the value of the access bit to determine whether one or more memory pages are hot or cold. Page migration (e.g., promotion or demotion) decisions can be made based on the retrieved value. For example, a page with an access bit of 1 can be considered hot and promoted to a higher memory tier. A page with an access bit of 0 can be considered cold and demoted to a lower memory tier.

[0037] However, retrieving access bit information from the MMU / TLB may consume additional CPU cycles, thereby affecting application performance. For example, a page fault may be triggered when the CPU attempts to access a page whose access bit is zero. Handling a page fault may result in additional CPU cycles (e.g., saving the process context of the running application before exiting, handling the page fault, creating an entry in the TLB and / or setting the access bit, and resuming the execution of the process).

[0038] The use of access bits may also not result in an accurate selection of pages that are selected for page migration. That is, the setting of the access bits only indicates that a page has been accessed, but not the number of times the page has been accessed (the "activity" or "hotness" of the page). Therefore, page migration decisions based on access bits may not be as accurate as page migration decisions based on page activity.

[0039] In general, embodiments of the present disclosure relate to systems and methods for monitoring memory accesses. In some embodiments, at least one of the memory devices includes a counter that maintains a count of memory accesses to a memory location of the memory device. In response to an access to a memory location, a count value of the counter for the memory location may be increased. In some embodiments, a processor included in the memory device may receive a memory access request (e.g., a load or store request) from a host computing device. The processor may identify a memory address from the request and increase an access counter for the memory address. By maintaining a counter in the memory device itself, page access information may be maintained without involving, for example, a host CPU.

[0040] In some embodiments, the host computing device can retrieve information in the access counter from the memory expansion device via a command interface. The retrieved access information can be used by the host computing device to identify the activity or heat of one or more memory pages. The host computing device can trigger an action in response to identifying the activity or heat. For example, the host computing device can participate in data migration based on page activity, thereby making better upgrade or downgrade decisions. For example, one or more most active pages can be moved from the current memory device to another memory device in a higher level. On the other hand, one or more least active pages can be moved from the current memory device to another memory device in a lower level. Other actions can be triggered by the host computing device based on the access information retrieved from one or more memory devices, including but not limited to identifying the memory device storing data and / or making other performance-related decisions.

[0041] It should be appreciated that the system and method for monitoring memory access according to one or more embodiments allows efficient retrieval of the activity (hot, warm or cold) of a memory page, which does not require the use of a host CPU. In addition, the activity information provides more accurate data about the activity of a page, allowing better promotion and demotion decisions.

[0042] Figure 1 A block diagram of a system for monitoring memory accesses and making page migration decisions according to one or more embodiments is depicted. The system includes a host computing device (referred to as a "host") 100 coupled to one or more endpoints (e.g., one or more memory devices 102a-102c (collectively referred to as 102)).

[0043] The host 100 includes a processor 105, a main memory 104, a memory management unit (MMU 108), and a root complex (RC) interface 112. The processor 105 may include one or more central processing unit (CPU) cores 116, which are configured to execute computer program instructions and process data stored in a cache memory 118 (also referred to as "memory" or "cache"). The cache 118 may be dedicated to one of the CPU cores 116 or shared by various CPU cores in the CPU cores. It should be understood that although various embodiments are described using a CPU, those skilled in the art will recognize that a GPU may be used instead of a CPU or in addition to a CPU.

[0044] Cache 118 may be coupled to memory controller 120, which in turn is coupled to main memory 104. Main memory 104 may include, for example, dynamic random access memory (DRAM) that stores computer program instructions and / or data (collectively, data) generated by memory device 102. In order for CPU core 116 to execute instructions or data generated by memory device 102, the data may be loaded into cache memory 118, and the CPU may consume the data directly from the cache memory. If the data to be consumed is not already in the cache, a cache miss will occur, and the corresponding memory device may need to be queried to load the data. For example, if the searched data is not in cache 118, the cache miss logic may query the data from the corresponding memory (main memory (e.g., DRAM) 104 or memory device 102) based on the mapped virtual or physical address.

[0045] In some embodiments, the processor 105 generates a request to the memory device 102. The request may include a command interface request for obtaining a counter value, resetting a counter value, etc. One or more of the requests may be associated with a virtual memory address. In some embodiments, the processor may call the MMU 108 to convert the virtual address to a physical address. The MMU 108 may include a translation table 110 that maps the virtual address to the physical address. The request sent to the memory device 102 may include a physical address corresponding to the virtual address.

[0046] In some embodiments, the MMU 108 may include a memory manager 124. The memory manager 124 may be configured with instructions for managing data stored in the cache 118, the main memory 104, and / or the memory device 106 (commonly referred to as a storage medium). In some embodiments, the memory manager 124 is implemented via software, firmware, or hardware or a combination of software, firmware, and / or hardware. Management may include, for example, upgrading memory pages into the memory device and degrading them out of the memory device. In this regard, the memory manager 124 may request a count value of memory accesses monitored by the memory device from the memory device 102. The memory manager 124 may determine that one or more pages should be moved from one memory device to another based on the count information. Additional details of the memory manager 124 may be found in a U.S. patent application entitled “Systems and Methods for Memory Representation and Management” filed on March 12, 2023, the contents of which are incorporated herein by reference.

[0047] In some embodiments, the host 100 sends requests to the memory device 102 via the RC interface 112 and the interface connections 106a-106c (collectively referred to as 106). The request may include a data access request, a memory count information request, etc. A message from the memory device 102 to the host 100 (e.g., a response to a request from the host) is delivered to the RC interface 112 via the interface connection 106, and the RC interface 112 delivers the response to the processor 105.

[0048] In some embodiments, the interface connection 106 (e.g., a connector and its protocol) includes various common interfaces, such as Ethernet, Universal Serial Bus (USB), etc. In some embodiments, the interface connection 106 (e.g., a connector and its protocol) may include (or may conform to) Compute Express Link (CXL), Cache Coherent Interconnect for Accelerators (CCIX), Dual In-line Memory Module (DIMM) interface, Small Computer System Interface (SCSI), Non-Volatile Memory Express (NVMe), Peripheral Component Interconnect Express (PCIe), Remote Direct Memory Access (RDMA) over Ethernet, Serial Advanced Technology Attachment (SATA), Fibre Channel, Serial Attached SCSI (SAS), NVMe over Fabric (NVMe-oF), iWARP protocol, InfiniBand protocol, 5G wireless protocol, Wi-Fi protocol, Bluetooth protocol, etc.

[0049] The RC interface 112 may be, for example, a PCIe interface configured to implement a root complex for connecting the processor 105 and the host memory 104 to the memory device 102. The RC interface 112 may include one or more ports 114a-114c to connect one or more memory devices 102 to the RC. In some embodiments, the MMU 108 and / or the translation table 110 may be integrated into the RC 112 interface to allow address translation to be implemented by the RC interface.

[0050] The memory device 102 may include one or more of a volatile computer-readable storage medium and / or a non-volatile computer-readable storage medium. In some embodiments, one or more of the memory devices 102 include any type of memory attached to a CPU or GPU, such as a CXL-attached memory device (including volatile and persistent memory devices), an RDMA-attached memory device, etc., but the embodiments are not limited thereto. The CXL-attached memory device (referred to as CXL memory for short) may comply with the CXL.mem protocol, where the host 100 may access the device using commands such as load and store commands. In this regard, the host 100 may act as a requester and the CXL memory may act as a slave.

[0051] In some embodiments, main memory 104 and / or memory device 102 may be included in a memory system that allows memory tiering to deliver an appropriate cost or performance profile. In this regard, different types of storage media may be organized in a memory hierarchy or tier based on the characteristics of the storage media. The characteristic may be access latency. In some embodiments, the tiers or levels of memory devices increase as access latency decreases.

[0052] In some embodiments, one or more of the memory devices 102 are memory devices of the same or different types aggregated into a memory pool. For example, a memory pool may include one or more CPU or GPU attached memory devices.

[0053] In some embodiments, memory pages are moved (e.g., promoted or demoted) from one memory tier to another, depending on the access characteristics (or activity) of the memory pages. For example, an inactive (e.g., cold) memory page may be demoted from a first memory device (e.g., a CXL memory device) to a second memory device (e.g., persistent storage) at a lower level of the memory hierarchy. In another example, a more active page (e.g., a page with higher access than another page) may be promoted from a first memory device (e.g., a CXL memory device) to a third memory device (e.g., main memory) at a higher level of the memory hierarchy.

[0054] In some embodiments, one or more of the memory devices include an access counter that keeps a count of accesses to one or more memory locations of the memory devices. The access counter can be accessed by the host 100 to determine the activity of the page (e.g., hot, warm, cold). Promotion or demotion decisions can be made based on active information.

[0055] Figure 2 A block diagram of a memory device 200 according to one or more embodiments is depicted. The memory device 200 may be similar to Figure 1 100. In some embodiments, the memory device 200 includes a host interface and controller (collectively referred to as a host interface) 202, a storage memory 204, and a counter memory 206. The host interface 202 can be configured to exchange commands and / or data with the RC interface 112 via the interface connection 106. In some embodiments, the host interface 202 can include an associated software layer to manage the physical connector of the interface connection. The host interface 202 can respond to data access requests (e.g., load and store requests) received from the host 100 via the interface connection 106. The host interface 202 can also respond to commands from the host to access counter information stored in the counter memory 206.

[0056] The host interface 202 may also control and provide access to and from the storage memory 204 and the counter memory 206. In this regard, the host interface 202 may include at least one processor for interfacing with the host 100 and the memory components 204, 206. The processor may include, for example, a digital circuit (e.g., a microcontroller, a microprocessor, a digital signal processor, or a logic device (e.g., a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), etc.)) that is capable of executing data access instructions (e.g., via firmware and / or software) to provide access to and from data stored in the storage memory 204 and the counter memory 206. For example, the data access instructions may correspond to a data access request to the storage memory and may include any suitable data storage and retrieval algorithm (e.g., load, store, and / or refresh) instructions, etc.

[0057] In some embodiments, the host interface 202 loads data from or stores data to the storage memory 204 in response to the data access request. In some embodiments, the data access also triggers the host interface 202 to increase a counter for the accessed memory address in the counter memory 206. By maintaining the counter in the memory device 200 itself, access to the memory address of the memory device can be maintained without involving, for example, the host processor 105 and without triggering a page fault.

[0058] In some embodiments, counter memory 206 maintains a first counter for storing a first portion of memory 204, and a second counter for storing a second portion of memory 204. The first portion and the second portion may have a specific size that may correspond to, for example, the size of a memory page (e.g., 4KB). The first counter and the second counter may be implemented using any data structure as will be understood by those skilled in the art, such as an array, a linked list, a queue, a tree, and / or the like. In some embodiments, the counter includes a range of memory addresses associated with the counter, a count value indicating the number of memory accesses to the memory address, a process identifier (ID), and the like.

[0059] In some embodiments, storage memory 204 stores data accessed by host 100 in one or more memory addresses. Data (e.g., memory pages) stored in storage memory 204 can be promoted to and demoted from storage memory 204 in response to instructions from host 100.

[0060] In some embodiments, the host 100 interfaces with the host interface 202 for sending commands for the counter memory 204. For example, the host 100 may send (e.g., via the RC interface 112) a command for retrieving a count value associated with a specific memory address, all memory addresses, a specific process, all processes, etc. For example, the host 100 may send a command for retrieving one or more access counts in response to determining that promotion or demotion of a memory page stored in the storage memory 204 is desired. For example, if the higher-level memory device 102 has available storage space, the upgrade may be desired. The host interface 202 may receive a command from the host 100 and interface with the counter memory 206 to retrieve the requested access count. The host 100 may implement page demotion or promotion based on the received count. For example, the host 100 may send a signal to the host interface 202 to cause the promotion of one or more memory pages with the highest memory count (e.g., to the main memory 104). In another example, the host 100 may send a signal to the host interface 202 to cause the demotion of one or more memory pages having the lowest memory count (e.g., to the lower-level memory device 102). The host may further send a signal to the device from which the memory page is being moved to reset the corresponding counter memory 206.

[0061] The host 100 may also send a command to reset one or more counters in the counter memory 206. For example, the host 100 may send a command to reset all counters or a specific counter. The reset command may be sent by the host 100 in response to restarting the system, initializing the memory device 200, executing a new application, etc. In some embodiments, the reset command may be transmitted on a periodic (e.g., regular or irregular) basis.

[0062] Figure 3 A conceptual layout diagram of a data structure 300a, 300b storing one or more access counters according to one or more embodiments is depicted. The access counter may include, for example, a count value 302 and a memory address range 304. In some embodiments, the access counters may be grouped based on a process identifier (ID). For example, a first data structure 300a may store access counters for a first process, and a second data structure 300b may store access counters for a second process.

[0063] Figure 4A flow chart of a process for handling a request from a host 100 according to one or more embodiments is depicted. The process begins, and in act 402, the host interface 202 receives a first request for first data from a process running on the host 100. The first request may be, for example, a memory access request (e.g., a load or store request). The RC interface 112 may generate an appropriate data packet (e.g., a CXL packet) and send the data packet over the interface connection 106 (e.g., a CXL interface).

[0064] The host interface 202 may receive the request packet and identify a first memory address in the storage memory 204 in act 404 .

[0065] In action 406, the host interface 202 searches the first storage memory 204 for the first memory address and accesses the address to perform the requested action. For example, the host interface 202 may load data, store data, or refresh data in the first memory address.

[0066] In act 408 , the host interface 202 identifies a counter associated with the first memory address and increments a count value (eg, a first count) of the counter.

[0067] In act 410, the host interface 202 receives a second request from the host. The second request may be, for example, a request to access count values ​​of one or more counters.

[0068] In action 412, the host interface 202 provides the access count value (e.g., the first count) to the requesting host 100 via the interface connection 106. In some embodiments, the memory manager 124 can take an action in response to the count value. For example, the memory manager 124 can perform promotion and / or demotion of one or more pages (e.g., the first data) based on the access count value. For example, the memory manager 124 can determine (e.g., based on a comparison) that the first data has a lower number of accesses than another data and should therefore be moved to a lower memory tier of storage (e.g., a second memory device). In some embodiments, other actions can be triggered based on the access count value, such as, for example, one or more performance-related decisions.

[0069] Figure 5A flow chart of a process for processing commands directed to counter memory 206 according to one or more embodiments is depicted. In act 500, host interface 202 receives a command sent by host 100 using a command interface (e.g., CXL interface). The command may be generated, for example, by memory manager 124. The command generated by the memory manager may include, for example, a logical address and a process ID. Host processor 105 may receive the generated command and convert the logical address to a physical address of the process ID. The command with the converted physical address may be sent by RC interface 202 via interface connection 106.

[0070] In act 502 , the host interface 202 processes the command and determines whether the command is a command to retrieve (or obtain) a count value from the counter memory 206 .

[0071] If the answer is yes, the host interface 202 identifies the information in the command to retrieve the appropriate count value. For example, the host interface may identify one or more memory addresses for which the count value is requested.

[0072] In action 506 , the host interface 202 retrieves the count value of the counter associated with the memory address from the counter memory 206 and forwards the retrieved value to the host 100 .

[0073] Referring again to act 502, the host interface 202 determines whether the command from the host 100 is for resetting one or more count values. If the answer is yes, the host interface 202 determines in act 510 whether the reset command is directed to all counters. If the answer is yes, in act 512, the host interface sends a signal to the counter memory 206 to reset the count value of the counter to 0.

[0074] If the reset command is not for all counters, the host interface 202 identifies the appropriate counter to reset based on the memory address in the command in act 514 .

[0075] In act 516 , the host interface 202 resets the count value of the counter identified by the memory address.

[0076] Figure 6 A flow chart of a process for managing data stored in a storage system according to one or more embodiments is depicted. The process may be performed, for example, by a memory manager 124 of a host 100.

[0077] The process begins, and in act 600, the memory manager 124 detects a trigger for obtaining access counts from one or more memory devices 106. The trigger may be, for example, the passage of a certain amount of time, a determination of available memory space for promotion and / or demotion, and the like.

[0078] In act 602, the memory manager 124 sends a command for retrieving one or more count values. For example, the memory manager 124 may send a command to retrieve a count value associated with a particular process and / or memory address.

[0079] In action 604, the memory manager 124 identifies memory pages that should be demoted and / or promoted based on the count values. For example, the memory manager 124 may identify one or more memory pages with the highest access counts for promotion to a higher-tier memory device. In another example, the memory manager 124 may identify one or more memory pages with the lowest access counts for demoting to a lower-tier memory device.

[0080] In action 606, the memory manager sends a signal to move the identified memory page from the current memory device to another memory device. For example, the host 100 may load the memory page from the current memory device and store the page to another memory device. The host 100 may then clear the read memory address in the current memory device. In some embodiments, the translation table 110 may be updated to reflect the new memory address of the memory page that has been moved.

[0081] One or more embodiments of the present disclosure may be implemented in one or more processors. The term processor may refer to one or more processors and / or one or more processing cores. One or more processors may be hosted in a single device or distributed across multiple devices (e.g., on a cloud system). The processor may include, for example, an application specific integrated circuit (ASIC), a general or dedicated central processing unit (CPU), a digital signal processor (DSP), a graphics processing unit (GPU), a programmable logic device, such as a field programmable gate array (FPGA). In a processor, as used herein, each function is performed by hardware (i.e., hardwired) configured to perform the function, or by more general hardware (such as a CPU) configured to execute instructions stored in a non-temporary storage medium (e.g., memory). The processor may be manufactured on a single printed circuit board (PCB) or distributed across several interconnected PCBs. The processor may include other processing circuits; for example, the processing circuit may include two processing circuits interconnected on a PCB: an FPGA and a CPU.

[0082] It should be understood that although the terms "first", "second", "third", etc. may be used herein to describe various elements, components, regions, layers and / or parts, these elements, components, regions, layers and / or parts should not be limited by these terms. These terms are only used to distinguish one element, component, region, layer or part from another element, component, region, layer or part. Therefore, without departing from the spirit and scope of the present invention, the first element, component, region, layer or part discussed herein may be referred to as a second element, component, region, layer or part.

[0083] The terms used herein are only used for the purpose of describing specific embodiments and are not intended to limit the inventive concept. In addition, unless explicitly stated, the embodiments described herein are not mutually exclusive. In some embodiments, the various aspects of the embodiments described herein can be combined.

[0084] As used herein, the singular forms "one" and "an" are intended to also include plural forms, unless the context clearly states otherwise. It will be further understood that when used in this specification, the terms "include" and / or "comprise" specify the presence of the features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or their groups. As used herein, the term "and / or" includes any and all combinations of one or more associated listed items. Expressions such as "at least one of ..." modify the entire element list when it is before the element list, rather than modifying the individual elements in the list. In addition, when describing the embodiments of the present invention, the use of "can" refers to "one or more embodiments of the present disclosure". In addition, the term "exemplary" is intended to refer to an example or explanation. As used herein, the terms "use", "using" and "used" can be considered to be synonymous with the terms "utilize", "utilize" and "utilized" respectively.

[0085] Although exemplary embodiments of systems and methods for on-demand data storage management have been specifically described and illustrated herein, many modifications and variations will be apparent to those skilled in the art. Therefore, it should be understood that systems and methods for on-demand data storage management constructed in accordance with the principles of the present disclosure may be embodied in a manner other than that specifically described herein. The present disclosure is further defined in the appended claims and their equivalents.

[0086] Systems and methods for processing storage transactions may include one or more combinations of the features set forth in the following claims.

[0087] Statement 1: A storage system comprising: a first memory device, a second memory device, and a controller configured to communicate with the first memory device and the second memory device, wherein the controller is configured to: receive a first request for first data from a process running on a computing device; identify a first address based on the first request; search the first memory device for the first address; modify a first count for the first address in the second memory device; receive a second request from the computing device; and provide the first count in response to the second request.

[0088] Statement 2: The memory system of statement 1, wherein the first memory device is associated with a first access latency.

[0089] Statement 3: The storage system of statement 1, wherein the first memory device is coupled to the computing device via a communication interface.

[0090] Statement 4: The storage system of statement 1, wherein the first request comprises at least one of a request to load or store the first data.

[0091] Statement 5: The storage system of statement 1, wherein the first count indicates a number of accesses to the first address.

[0092] Statement 6: The memory system of statement 1, wherein the second memory device is configured to maintain a second count for the second address in the first memory device.

[0093] Statement 7: The storage system of statement 6, wherein the controller is configured to provide the second count in response to the second request.

[0094] Statement 8: The storage system of statement 7, wherein the computing device is configured to: compare the first count to the second count; and cause an action in response to the comparison.

[0095] Statement 9: The memory system of statement 8, wherein the first count is greater than the second count, and the computing device is configured to retain the second data associated with the second address in the first memory device based on the comparison.

[0096] Statement 10: The storage system of statement 1, wherein the first count is maintained in association with a process of the computing device.

[0097] Statement 11: The storage system of statement 1, wherein the controller is further configured to: receive a third request from the computing device; and update the first count in response to the third request.

[0098] Statement 12: A method comprising: receiving a first request for first data from a process running on a computing device; identifying a first address based on the first request; searching a first memory device for the first address; modifying a first count for the first address in a second memory device; receiving a second request from the computing device; and providing the first count in response to the second request.

[0099] Statement 13: The method of statement 12, wherein the first memory device is associated with a first access latency.

[0100] Statement 14: The method of statement 12 wherein the first memory device is coupled to the computing device via a communication interface.

[0101] Statement 15: The method of statement 12, wherein the first request comprises at least one of a request to load or store the first data.

[0102] Statement 16: The method of statement 12, wherein the first count indicates a number of accesses to the first address.

[0103] Statement 17: The method of statement 12, further comprising: maintaining, by the second memory device, a second count for the second address in the first memory device.

[0104] Statement 18: The method of statement 17 further comprising: providing, by the controller, a second count in response to the second request.

[0105] Statement 19: The method of statement 18, further comprising: comparing, by the computing device, the first count to the second count; and causing an action in response to the comparison.

[0106] Statement 20: The method of statement 19, wherein the first count is greater than the second count, the method further comprising retaining second data associated with the second address in the first memory device based on the comparison.

Claims

1. A storage system, include: a first memory device; a second memory device; as well as a controller configured to communicate with a first memory device and a second memory device, the controller configured to: receiving a first request for first data from a computing device; identifying a first address based on the first request; searching a first memory device for a first address; modifying a first count in a second memory device for a first address; receiving a second request from the computing device; as well as The first count is provided in response to the second request.

2. The storage system according to claim 1, in, The first memory device is associated with a first access latency.

3. The storage system according to claim 1, in, The first memory device is coupled to the computing device through a communication interface.

4. The storage system according to claim 1, in, The first request includes at least one of a request to load or store first data.

5. The storage system according to claim 1, in, The first count indicates the number of accesses to the first address.

6. The storage system according to claim 1, in, The second memory device is configured to maintain a second count for a second address in the first memory device.

7. The storage system according to claim 6, in, The controller is configured to provide a second count in response to the second request.

8. The storage system according to claim 7, in, The computing device is configured to: comparing the first count to the second count; and An action is caused in response to the comparison.

9. The storage system according to claim 8, in, The first count is greater than the second count, and the computing device is configured to retain second data associated with the second address in the first memory device based on the comparison.

10. The storage system according to claim 1, in, The first count is maintained in association with the process of the computing device.

11. The storage system according to claim 1, in, The controller is also configured to: receiving, from the computing device, a third request from the computing device; and The first count is updated in response to the third request.

12. A method, include: receiving a first request for first data from a process running on a computing device; identifying a first address based on the first request; searching a first memory device for a first address; modifying a first count in a second memory device for a first address; receiving a second request from the computing device; as well as The first count is provided in response to the second request.

13. The method according to claim 12, in, The first memory device is associated with a first access latency.

14. The method according to claim 12, in, The first memory device is coupled to the computing device through a communication interface.

15. The method according to claim 12, in, The first request includes at least one of a request to load or store first data.

16. The method according to claim 12, in, The first count indicates the number of accesses to the first address.

17. The method according to claim 12, further comprising: include: A second count for the second address in the first memory device is maintained by the second memory device.

18. The method according to claim 17, further comprising: include: A second count is provided in response to the second request.

19. The method according to claim 18, further comprising: include: comparing, by a computing device, the first count and the second count; as well as An action is caused in response to the comparison.

20. The method according to claim 19, in, The first count is greater than the second count, the method further comprising: Second data associated with a second address in the first memory device is retained based on the comparison.