System and method for managing storage system
By combining low-latency and high-latency storage media and using machine learning and non-machine learning prefetch algorithms to optimize data access in the storage system, the problem of storage system latency differences is solved, data retrieval performance is improved and costs are reduced. .
Patent Information
- Application Number
- CN202410197723.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-05-22
- Filing Date
- 2024-02-22
- Publication Date
- 2024-08-23
AI Technical Summary
Existing storage systems have high latency when accessing data, making it difficult to effectively manage the latency differences of different types of storage devices, affecting data retrieval performance.
A storage system is designed that combines low-latency primary storage media and high-latency auxiliary storage media, manages requests through the memory controller, and uses a combination of machine learning-based prefetching algorithms and non-machine learning prefetching algorithms. Choose an appropriate prefetcher to optimize data access.
Through prefetching technology, data access time is reduced, the advantages and disadvantages of different storage devices are balanced, and costs are reduced while maintaining data access performance.
Smart Images

Figure CN118535082A_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to and the benefit of U.S. Provisional Application No. 63 / 447,520, filed on February 22, 2023, entitled “RACK-SCALE HYBRID MEMORY POOLMANAGEMENT SYSTEM AND METHOD,” and claims priority to and the benefit of U.S. Application No. 18 / 200,249, filed on May 22, 2023, the entire contents of each of which are incorporated herein by reference. Technical Field
[0003] One or more aspects of embodiments according to the present disclosure relate to storage systems, and in particular to managing retrieval of data from storage systems. Background Art
[0004] Applications may interact with storage systems for reading and writing data. Latency is often involved when accessing a storage system. The type of latency involved may depend on the type of storage device included in the storage system. Some storage devices have lower access latency than other storage devices. Therefore, it may be desirable to manage the retrieval of data from a storage device with low access latency.
[0005] 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
[0006] One or more embodiments of the present disclosure describe a storage system, the storage system including a first storage medium, a second storage medium, and a controller configured to communicate with the first storage medium and the second storage medium. The controller is configured to receive a first request generated by a process associated with first data; determine that the first data is stored in the first storage medium; generate a signal based on the controller being configured to determine; identify a criterion based on the signal; select at least one of the first program or the second program for loading the second data from the second storage medium to the first storage medium based on the criterion; and output the second data based on a second request for the second data generated by the process.
[0007] According to some embodiments, the latency associated with accessing the first storage medium is lower than the latency associated with accessing the second storage medium.
[0008] According to some embodiments, a signal is generated based on determining that the first data is not present in the first storage medium.
[0009] According to some embodiments, the controller is configured to load the first data from the second storage medium to the first storage medium.
[0010] According to some embodiments, the criterion comprises a success metric associated with the second data.
[0011] According to some embodiments, the success metric is based on success of loading the second data from the second storage medium to the first storage medium.
[0012] According to some embodiments, the controller is further configured to: add a second memory location associated with the second data to the log; and update the log to indicate success in completing the second request from the first storage medium.
[0013] According to some embodiments, the criteria include availability of computing resources.
[0014] According to some embodiments, the first program is configured to identify a second memory location storing second data based on the identified access pattern.
[0015] According to some embodiments, the second program includes a neural network configured to predict a second memory location storing second data based on input features to the neural network.
[0016] One or more embodiments of the present disclosure also describe a method, comprising: receiving a first request generated by a process associated with first data; determining that the first data is stored in a first storage medium; generating a signal based on the determination; identifying a criterion based on the signal; selecting at least one of a first program or a second program for loading second data from the second storage medium to the first storage medium based on the criterion; and outputting the second data based on a second request for the second data generated by the process.
[0017] 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
[0018] 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.
[0019] Figure 1 depicts a block diagram of a computing environment for managing a storage system according to one or more embodiments;
[0020] Figure 2 depicts a block diagram of a memory manager according to one or more embodiments;
[0021] Figure 3 A schematic diagram depicting a layout of an error log (also referred to as an access log) according to one or more embodiments;
[0022] Figure 4 A schematic diagram depicting a layout of an error log according to one or more other embodiments;
[0023] Figure 5 A schematic diagram of a layout of a prefetch log according to one or more embodiments is depicted;
[0024] Figure 6 A flowchart depicting a memory access process according to one or more embodiments; and
[0025] Figure 7 A flow diagram of a process for selecting a prefetcher is depicted in accordance with one or more embodiments. DETAILED DESCRIPTION
[0026] 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.
[0027] 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 a computer program product, a complete hardware embodiment, a combination of hardware and computer program products and / or a device, system, computing equipment, computing entity, etc., which executes instructions, operations, steps and interchangeable similar words (e.g., executable instructions, instructions for execution, program code, etc.) on a computer-readable storage medium. 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 an embodiment can produce a specially configured machine for executing the steps or operations specified in the block diagram and flow chart. Therefore, block diagrams and flow charts support various combinations of embodiments for executing specified instructions, operations or steps.
[0028] Generally speaking, one or more applications running on one or more application servers may need to access a storage system to read and write data. Latency is often involved in accessing data from the system. The latency involved can vary depending on the type of storage device being accessed. For example, a main memory device such as dynamic random access memory (DRAM) can have lower latency than an auxiliary memory device such as a solid-state drive (SSD). Although main memory devices allow fast access, they can have smaller capacities and are typically more expensive and consume more energy than auxiliary memory devices.
[0029] It may be desirable to have a storage system that includes different types of storage devices to balance the advantages and disadvantages associated with a particular type of storage device. For example, it may be desirable to have one or more lower latency memory devices to store copies of at least some of the data (e.g., frequently accessed data) to allow fast access to such data, and to have one or more high latency memory devices to store other data (e.g., less frequently accessed data). Pooling different types of memory devices together in a storage system can also help reduce costs while helping to maintain desired data access performance.
[0030] In general, embodiments of the present disclosure relate to systems and methods for managing a storage system including different types of storage devices with different access latencies. The storage system may include at least one lower latency memory device (also referred to as primary storage) and at least one higher latency memory device (also referred to as secondary storage).
[0031] A memory controller may manage requests to and from memory devices. For example, a memory controller may receive a memory access request from a process and determine whether the requested memory address is found in primary storage. The controller may generate a memory error or memory fault (collectively referred to as a "memory error" or "page fault") signal in response to detecting that a page associated with a memory address is not stored in primary storage. A memory error may be logged for a process associated with the requested address. The controller may also load a page associated with a requested memory address from secondary storage to primary storage.
[0032] In some embodiments, the controller is configured to load one or more pages in addition to the page associated with the memory error, in anticipation that the one or more pages will also be requested by the process. Prefetching can cause one or more other pages to be loaded from the auxiliary storage to the primary storage before the process requests and / or uses the data. Prefetching of data can help reduce data access time caused by the process.
[0033] In some embodiments, prefetching is performed according to a selected prefetching algorithm. The selected prefetching algorithm may be one of a machine learning (ML) based prefetching algorithm or a non-ML based prefetching algorithm. In some embodiments, the ML based algorithm is more accurate than the non-ML based algorithm in predicting pages to be prefetched.
[0034] In some embodiments, the type of pre-fetch algorithm selected depends on one or more criteria. The one or more criteria may include the success (e.g., hit) rate of data pre-fetched using the current pre-fetch algorithm, the availability of computing resources, etc. For example, if the current pre-fetch algorithm is a non-ML-based algorithm, a higher accuracy ML-based algorithm may be switched in response to a success rate below a threshold. However, if the non-ML-based algorithm achieves a success rate above the threshold, the non-ML-based algorithm may continue to be used because it may not be necessary to achieve higher pre-fetch accuracy by calling an ML-based algorithm.
[0035] In another example, an ML-based algorithm may use a greater amount of computing resources than a non-ML-based algorithm. Thus, a non-ML-based algorithm may be selected in response to the availability of computing resources being below a threshold or the usage of computing resources being above a threshold.
[0036] Figure 1 A block diagram of a computing environment 100 for managing a storage system is depicted in accordance with one or more embodiments. The computing environment may include one or more computing devices 102a-102b (collectively 102) coupled to a storage system 104. In some embodiments, computing devices 102 are housed in a rack (not shown) with storage system 104.
[0037] The computing device 102 and the storage system 104 can communicate with each other through interfaces 106a, 106b (collectively referred to as 106). In some embodiments, the interface 106 (eg, a connector and its protocol) includes various general interfaces such as Ethernet, Universal Serial Bus (USB), etc. In some embodiments, interface 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.
[0038] In some embodiments, computing device 102 hosts one or more virtual machines (VMs) 108a-108d (collectively 108). One or more VMs 108 may share processors 110a-110d (collectively 110), memory management units (MMUs) 112a-112d (collectively 112), and memory 114a-114d (collectively 114). Processor 110 may be configured to run one or more VMs 108, which run one or more processes or applications, such as, for example, big data analytics applications, e-commerce applications, database applications, machine learning applications, etc. MMU 112 may be configured to convert a logical memory address contained in a data access request from a process into a physical memory address. The conversion may be via a page table and / or a translation lookaside buffer (TLB) (not shown) located, for example, in MMU 112. Memory 114 may be an instance of a main memory such as a random access memory (RAM).
[0039] In some embodiments, the operating system or hypervisor software 116a, 116b can manage the allocation of physical resources of the compute server 102 to allow the compute server to support multiple VMs (e.g., VM 108a and VM 108b). In some embodiments, the hypervisor software 116 implements device passthrough to allow the VM 108 to access the storage server 104 (e.g., directly) without relying on drive capabilities from the compute server 102.
[0040] The storage server 104 may include a memory manager 118 and one or more storage media (also referred to as memory) 120a, 120b (collectively referred to as 120). In some embodiments, the storage medium 120 is a decomposed storage device that allows its storage space to be shared by one or more VMs 108. Access to the storage medium can be through the interface 106 using a protocol such as NVMe or NVMe-oF, but the embodiments are not limited thereto. For example, in addition to or instead of NVMe, other protocols such as, for example, SATA, SCSI, SAS, and / or other wired or wireless protocols may be used.
[0041] In some embodiments, the storage medium 120 may include one or more volatile computer-readable storage media and / or non-volatile computer-readable storage media. In some embodiments, the storage server 104 includes at least a first storage medium (hereinafter referred to as "primary storage") 120a (e.g., a volatile storage medium) associated with a first access latency and at least a second storage medium (hereinafter referred to as "secondary storage") 120b (e.g., a non-volatile storage medium) associated with a second access latency. The first and second storage media may together form a hybrid memory pool.
[0042] In one embodiment, the volatile computer readable storage medium may include random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), fast page mode dynamic random access memory (FPMDRAM), extended data output dynamic random access memory (EDO DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), double data rate type 2 synchronous dynamic random access memory (DDR2 SDRAM), double data rate type 3 synchronous dynamic random access memory (DDR3 SDRAM), Rambus dynamic random access memory (RDRAM), two-transistor RAM (TTRAM), thyristor RAM (T-RAM), zero capacitor (Z-RAM), Rambus in-line memory module (RIMM), dual in-line memory module (DIMM), single in-line memory module (SIMM), video random access memory (VRAM), cache memory (including various levels), flash memory, register memory, etc.
[0043] In one embodiment, the non-volatile computer-readable storage medium may include a floppy disk, a flexible disk, a hard disk, a solid-state storage (SSS) (e.g., a solid-state drive (SSD)), a solid-state card (SSC), a solid-state module (SSM), an enterprise flash drive, a magnetic tape, or any other non-transitory magnetic medium, etc. The non-volatile computer-readable storage medium may also include a punch card, a paper tape, an optical marker sheet (or any other physical medium having a hole pattern or other optically recognizable marker), a compact disc read-only memory (CD-ROM), a compact disc rewritable (CD-RW), a digital versatile disc (DVD), a Blu-ray disc (BD), any other non-transitory optical medium, etc. Such non-volatile computer-readable storage medium may also include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory (e.g., serial, NAND, NOR, etc.), a multimedia memory card (MMC), a secure digital (SD) memory card, a smart media card, a CompactFlash (CF) card, a memory stick, etc. In addition, the non-volatile computer-readable storage medium may also include conductive bridging random access memory (CBRAM), phase change random access memory (PRAM), ferroelectric random access memory (FeRAM), non-volatile random access memory (NVRAM), magnetoresistive random access memory (MRAM), resistive random access memory (RRAM), silicon-oxide-nitride-oxide-silicon memory (SONOS), floating junction gate random access memory (FJG RAM), millipede memory, racetrack memory, etc.
[0044] In some embodiments, the memory manager 118 is implemented via a processor included in the storage server 104. The memory manager 118 may perform the functions of a storage or memory controller to control data stored in the storage server 104. In this regard, the memory manager 118 may control the transmission or processing of commands and / or data. For example, the memory manager 118 may process a request for data from a process running on the VM 108. The request may include, for example, a request to load data to a memory address or to store data from a memory address.
[0045] In some embodiments, processing of a request for data includes checking primary storage 120a (e.g., RAM) in storage server 104 to determine whether the requested data is included in the primary storage. In response to determining that the requested data is not included in primary storage 120a, memory manager 118 may be configured to generate a memory error signal that may be recorded in a log. Memory manager 118 may also retrieve the requested data from secondary storage 120b (e.g., SSD) to primary storage 120a, thereby allowing future requests for data to be processed quickly.
[0046] In some embodiments, the memory manager 118 anticipates that the requesting process may need additional data in addition to the currently requested data, and proceeds to pre-fetch the expected data from the secondary storage 120b into the primary storage 120a. The pre-fetching of data may be performed before the data is referenced or used by the process. The pre-fetching of data may help reduce the data access time experienced by the process.
[0047] The identification of data to be pre-fetched may be based on a pre-fetch algorithm or program executed by the memory manager 118. In some embodiments, the memory manager 118 is configured with at least a first pre-fetch algorithm or program and a second pre-fetch algorithm or program. The memory manager may select the first pre-fetch algorithm or the second pre-fetch algorithm to be executed to identify the data to be pre-fetched. The selection of the pre-fetch algorithm to be used may occur on a periodic basis, or whenever a pre-fetch is required. The selection of the pre-fetch algorithm to be executed may be based on a criterion. The criterion may include a success rate of the current pre-fetch algorithm in identifying appropriate data to be pre-fetched compared to a threshold rate.
[0048] Figure 2 A block diagram of a memory manager 118 is depicted in accordance with one or more embodiments. In some embodiments, the memory manager 118 includes a first prefetcher (also referred to as a non-ML prefetcher) 200, a second prefetcher (also referred to as an ML prefetcher) 202, a prefetch selector 204, and a memory access monitor 206. The first prefetcher 200 and the second prefetcher 202, the prefetch selector 204, and the memory access monitor 206 may also be referred to as a first prefetch circuit and a second prefetch circuit, a prefetch selector circuit, and a memory access monitor circuit, respectively.
[0049] In some embodiments, the first prefetcher 200 includes a first prefetch algorithm or program for prefetching data from the secondary storage 120b to the primary storage 120a, and the second prefetcher 202 includes a second prefetch algorithm that is different from the first prefetch algorithm. In some embodiments, the first prefetch algorithm is a non-ML based algorithm that identifies a prefetch memory address based on a detected memory access pattern. The detected memory access pattern can be, for example, a sequential pattern, a stride pattern, a random pattern, etc.
[0050] In some embodiments, the access pattern detected by the first prefetcher 200 is based on memory accesses that result in a memory error signal generated when data requested by a process is not found in the primary storage 120a. In one embodiment, the memory access monitor 206 is configured to detect and log the generated memory errors. The log may be associated with the process for which the memory error was generated, and may include a chronological list of virtual memory addresses associated with the memory error. In some embodiments, the log may include additional information, such as, for example, the data access command that triggered the error (e.g., reload, store, etc.), the data size, a timestamp, etc.
[0051] The first prefetcher 200 may check the memory access information in the access log and generate a rule for identifying the memory address based on the detected pattern. For example, the first prefetcher 200 may detect a sequential memory access pattern (e.g., accesses to memory locations 1, 2, ... k) and generate a rule to increment the memory location by 1. Using the sequential access rule, in this example, the memory address after the kth memory location is k+1.
[0052] In another example, the first prefetcher 200 can detect strided memory accesses (e.g., accesses to memory locations 1, 4, 7, ... k) and generate a rule that increments the memory location by a number greater than 1. Using the strided access rule, in this example, the memory address after the kth memory location is (k+3).
[0053] In some embodiments, the second prefetcher 202 includes an ML-based algorithm for prefetching data from the secondary storage 120 b to the primary storage 120 a. In this regard, the second prefetcher 202 may include an ML model or network that is trained to predict memory addresses to be requested by a process based on previous memory accesses of the process recorded by the memory access monitor 206. In some embodiments, the previous memory accesses used by the ML model include those that resulted in a memory error signal (e.g., when the requested data was not found in the primary storage 120 a).
[0054] In some embodiments, the ML network includes a deep neural network (DNN), such as a long short-term memory (LSTM) network, a convolutional neural network (CNN), and / or other recursive or non-recursive neural networks. Using an LSTM network as an example, the network can receive a sequence of previous data accesses by a process as input data (also referred to as input features or vectors) and use the sequence to infer or predict one or more next data accesses by the process. The input features can be based on an access log maintained by the memory access monitor 206. In some embodiments, the LSTM network attempts to match the input sequence with the learned sequence to generate a prediction of one or more future data accesses.
[0055] In some embodiments, the prefetch selector 204 is configured to select one of the first prefetcher 200 or the second prefetcher 202 to prefetch data. By prefetching additional data from the auxiliary storage 120b to the primary storage 120a, in addition to the data requested by the processor, faster access to the additional data can result when the additional data is requested and used by the process. In this way, the desired performance of the process can be maintained while reducing the need and / or cost of additional primary storage.
[0056] In some embodiments, selection of the prefetcher is triggered by a memory error signal when the data requested by the process is not located in primary storage 120a. In some embodiments, selection of the prefetcher is triggered by the passage of a certain amount of time.
[0057] In some embodiments, the prefetch selector 204 is adaptive. For example, the prefetcher to be used may depend on a standard. The standard may include, for example, a success rate (also referred to as a hit rate) associated with the prefetched data, the availability of computing resources (e.g., processors, memory, etc.), etc. In some embodiments, the prefetch selector 204 maintains access information of the prefetched data in a prefetch log. In this regard, the prefetch selector 204 may record the memory addresses prefetched by the first prefetcher 200 and / or the second prefetcher 202 for one or more processes in response to a memory error. The prefetch selector 204 may monitor the total number of requests after the memory error during the monitoring cycle, and determine how many of the total number of requests are satisfied by the prefetched data in the main storage 120a (e.g., a "hit" result). The prefetch selector 204 may set a flag for the memory location of the prefetch that caused the hit. The hit rate may be calculated based on the total number of requests and the number of requests that caused the hit.
[0058] In some embodiments, if the hit rate is higher than a set threshold hit rate, the prefetch selector may select the first prefetcher 200 to prefetch data according to the non-ML based algorithm of the first prefetcher. The threshold hit rate may be, for example, higher than 50% (e.g., 60-70%). For example, if the memory manager 118 prefetches 10 memory pages, and 9 of the prefetched memory pages are later accessed, resulting in a hit, the prefetch selector 204 may switch to (or continue with) the first prefetcher 200. However, if the hit rate is lower than the threshold hit rate, the prefetch selector 204 may switch to the second prefetcher 202 to increase the hit rate.
[0059] Figure 3 A schematic diagram of the layout of an error log (also referred to as an access log) 300a according to one or more embodiments is depicted. The error log 300a may correspond to a process executed by the VM 108. A second error log may be maintained for a second process. In some embodiments, the error log 300a provides a memory access history of the corresponding process that triggered the memory error. In some embodiments, the memory address recorded in the error log 300a is a virtual memory address 302a that suffered a memory error. In some embodiments, the error log 300a is cleared in response to a triggering event. The triggering event may be the passage of a certain amount of time, the termination of the corresponding process, etc.
[0060] In some embodiments, the memory access history in the error log 300a is used by the first prefetcher 200 and / or the second prefetcher 202 to determine one or more next addresses to be prefetched from the auxiliary storage 120b. For example, the first prefetcher 200 may examine the access history to infer the access pattern. A rule for incrementing the memory address may be generated based on the inferred access pattern. Figure 3 In the example of , the prefetcher 200 can infer a stride access pattern where the memory address increases by 3. Based on the inferred access pattern, the prefetcher 200 can prefetch one or more memory addresses (e.g., memory #14, #17, and #20) using a rule that increments the memory address by 3.
[0061] Figure 4 A schematic diagram of a layout of an error log 300b according to one or more other embodiments is depicted. The error log 300b according to one or more other embodiments may include additional information in addition to a list of memory addresses 302b that caused a memory error signal. The additional information may include, but is not limited to, the type of command 304 from the process (e.g., a store or write command, a load or read command, a refresh command, etc.), timestamp data 306, etc.
[0062] In some embodiments, one or more information in the error log 300b is used by the first prefetcher 200 and / or the second prefetcher 202 to determine one or more next addresses to be prefetched from the auxiliary storage 120b. For example, the second prefetcher 202 can use the information in the log as input features to an ML network (such as, for example, an LSTM network). The ML network can use the input features to output a prediction of one or more memory addresses expected to be requested and used by the corresponding process. The second prefetcher 202 can prefetch the one or more predicted memory addresses into the auxiliary storage 120b.
[0063] Figure 5 A schematic diagram of the layout of a prefetch log 400 according to one or more embodiments is depicted. The prefetch log 400 may include one or more memory addresses 402 prefetched by the first prefetcher 200 and / or the second prefetcher 202 in response to a memory error. The prefetched memory addresses 402 may be associated with a process or processes running on one or more VMs 108. In some embodiments, the prefetch log 400 includes a hit flag 404 indicating whether the prefetched data resulted in a hit. For example, a value of "1" may indicate a hit, while a value of "0" may indicate a miss.
[0064] In some embodiments, the prefetch selector 204 calculates a hit rate based on the prefetch log 400. The hit rate can be used to determine whether the first prefetcher 200 or the second prefetcher 202 can be used to prefetch future data. The determination of the prefetcher to use can be made on a process-by-process basis, or for multiple (e.g., all processes) running on one or more VMs 108.
[0065] Figure 6 A flow chart of a memory access process according to one or more embodiments is depicted. The process begins, and in action 500, the memory manager 118 receives a request for first data (e.g., a first data block) from a process running on the VM 108. The request can be, for example, a request to load / read data, store / write data, etc. The request can be made during execution of the process. The request can include a storage address associated with the first data. The storage address can be, for example, a logical memory address. The logical memory address can be converted to a physical memory address via a page table and / or a TLB. Address translation using the page table and / or the TLB can be performed by the memory manager 118 and / or the VM 108 (e.g., an MMU 112 associated with the VM).
[0066] In action 502, it is determined whether the first data corresponding to the physical memory address is located in the primary storage (first storage medium) 120a. If the first data is located in the primary storage 120a, the first data is retrieved or loaded from the primary storage 120a in action 504 and provided to the requesting process for use by the process. In some embodiments, the retrieved data can be stored in the local memory (e.g., memory 111) of the VM 108 running the process. The requesting process can generate an output in response to the loaded data. The output can be used for e-commerce applications, database applications, machine learning applications, etc.
[0067] In some embodiments, the local memory (eg, VM memory 111) is first searched to determine whether the first data resides in the local memory. In response to determining that the first data does not reside in the local memory, the primary storage 120a may be searched.
[0068] Referring again to act 502, if the first data corresponding to the physical memory address is not located in primary storage 120a, a memory error signal may be generated (e.g., by memory manager 118) in act 506. An error log (e.g., error logs 300a, 300b) may be updated in response to the memory error signal. For example, error logs 300a, 300b may be updated to include at least the memory address that triggered the error signal.
[0069] In act 508, the first data is loaded into or read from the secondary storage 120b (second storage medium) into the primary storage 120a and provided to the requesting process for use by the process to generate output.
[0070] In act 510, the current prefetch program is called to identify the second data to be prefetched in act 512. In this regard, if the current prefetch program is a non-ML based program, the first prefetcher 200 checks the memory access information in the access log (e.g., the error log 300) maintained by the access monitor 206, and generates a rule for identifying the address of the second data based on the detected pattern.
[0071] If the current prefetching program is an ML-based program, the second prefetcher 202 identifies input features to be provided to the ML network based on the access log. The ML network generates predictions of addresses that are likely to be requested by the process based on the input features.
[0072] In act 514, the current prefetcher identifies that the second data identified by the address is retrieved (or loaded) from the secondary storage 120b to the primary storage 120a.
[0073] In act 516, the memory manager 118 modifies the page table or TLB to map the virtual address of the data to the new physical address in the main storage 120a. The prefetch log 400 may also be updated with the prefetched memory addresses.
[0074] As the process executes, further requests may be made for the second data. Because the request for the data is anticipated and pre-fetched into the main memory 120a, in action 518, the data is retrieved and output from the main memory 120a rather than from the auxiliary memory 120b, thereby speeding up access to the second data. The hit flag 404 of the pre-fetch log 400 may also be updated in response to the access.
[0075] Figure 7 A flow chart of a process for selecting a prefetcher according to one or more embodiments is depicted. The process may be performed, for example, by the prefetch selector 204 in response to a trigger. In some embodiments, the trigger is the passage of a certain amount of time. According to this embodiment, the selection of the prefetcher occurs on a cycle basis. In some embodiments, the trigger is the detection of a page fault. According to this embodiment, the selection of the prefetcher occurs with the occurrence of a page fault.
[0076] The process begins and in act 600, a determination is made as to whether a trigger for selecting a prefetch program has been detected.
[0077] If the answer is yes, then criteria for selecting a prefetcher are identified in act 602. For example, the criteria may be a hit rate (also referred to as a success metric) of the current prefetcher and / or the availability of computing resources of the storage system 104.
[0078] If the criterion is a success metric, as determined in act 604 , prefetch selector 204 calculates the hit rate of the current prefetch program in act 606 based on the access history maintained in a prefetch log (eg, prefetch log 400 ).
[0079] In act 608, a determination is made as to whether the calculated hit rate is low. In response to the hit rate being below a hit rate threshold, the calculated hit rate may be considered low. In response to the hit rate trending downward (e.g., the hit rate decreases over T consecutive time periods), the calculated hit rate may also be considered low.
[0080] If it is determined that the hit rate is low, the prefetch selector 204 selects the ML-based prefetcher 202 as the current prefetcher in act 610 because it is assumed that the ML-based prefetcher has a higher prediction accuracy than the non-ML-based prefetcher.
[0081] If the hit rate is not considered low, the prefetch selector 204 selects the non-ML based prefetcher 200 as the current prefetcher in act 612 .
[0082] Referring again to act 602 , if the identified criterion is the availability of computing resources (e.g., computing resources of storage system 104 ), as determined in act 604 , the prefetch selector 204 determines the availability of one or more computing resources (e.g., processor and / or memory) in act 614 .
[0083] In act 616, the prefetch selector 204 determines whether one or more computing resources are low. In this regard, the prefetch selector 204 can compare the availability of the computing resources to one or more thresholds. For example, the prefetch selector 204 can compare the availability of processor resources to a threshold processor value, the availability of memory resources to a threshold memory value, etc. If the availability of the processor and / or memory resources is below the corresponding threshold, the prefetch selector can determine that the computing resources are low.
[0084] If the computational resources are low, the prefetch selector selects the non-ML based prefetcher 200 as the current prefetcher in action 620 .
[0085] If the computational resources are not considered to be low, the prefetch selector 204 selects the ML-based prefetcher 202 as the current prefetcher in act 622 .
[0086] In some embodiments, both the availability of computing resources and the hit rate are considered in selecting a prefetcher, where the consideration of computing resources takes precedence over the hit rate. For example, if computing resources are also considered to be low, a non-ML based prefetcher may be selected even if the hit rate is considered to be low.
[0087] The term processor used herein 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). Processors may include, for example, application specific integrated circuits (ASICs), general or dedicated central processing units (CPUs), digital signal processors (DSPs), graphics processing units (GPUs), and programmable logic devices, such as field programmable gate arrays (FPGAs). 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 on several interconnected PCBs. The processor may include other processing circuits; for example, a processing circuit may include two processing circuits interconnected on a PCB: an FPGA and a CPU.
[0088] 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.
[0089] 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.
[0090] 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 "utilize" respectively.
[0091] 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.
[0092] The systems and methods described herein may include one or more combinations of the features set forth in the following statements.
[0093] Statement 1. A storage system comprising: a first storage medium; a second storage medium; a controller, the controller being configured to communicate with the first storage medium and the second storage medium, the controller being configured to: receive a first request generated by a process associated with first data; determine that the first data is stored in the first storage medium; generate a signal based on the controller being configured to determine; identify a criterion based on the signal; select at least one of a first program or a second program for loading second data from the second storage medium to the first storage medium based on the criterion; and output the second data based on a second request for the second data generated by the process.
[0094] Statement 2. The storage system of Statement 1, wherein a latency associated with accessing the first storage medium is lower than a latency associated with accessing the second storage medium.
[0095] Statement 3. The storage system of Statement 1, wherein the signal is generated based on determining that the first data is not present in the first storage medium.
[0096] Statement 4. The storage system of Statement 3, wherein the controller is configured to: load the first data from the second storage medium to the first storage medium.
[0097] Statement 5. The storage system of Statement 1, wherein the criterion comprises a success metric associated with the second data.
[0098] Statement 6. The storage system of Statement 5, wherein the success metric is based on a success of loading the second data from the second storage medium to the first storage medium.
[0099] Statement 7. The storage system of Statement 1, wherein the controller is further configured to: add a second memory location associated with the second data to the log; and update the log to indicate success in completing the second request from the first storage medium.
[0100] Statement 8. The storage system of Statement 1, wherein said criteria comprises availability of computing resources.
[0101] Statement 9. The storage system of Statement 1 wherein the first program is configured to identify a second memory location storing second data based on the identified access pattern.
[0102] Statement 10. The storage system of statement 1 wherein the second program comprises a neural network configured to predict a second memory location to store second data based on input features to the neural network.
[0103] Statement 11. A method comprises: receiving a first request generated by a process associated with first data; determining that the first data is stored in a first storage medium; generating a signal based on the determination; identifying a criterion based on the signal; selecting at least one of a first program or a second program for loading second data from a second storage medium to a first storage medium based on the criterion; and outputting the second data based on a second request for the second data generated by the process.
[0104] Statement 12. The method of Statement 11, wherein a latency associated with accessing the first storage medium is lower than a latency associated with accessing the second storage medium.
[0105] Statement 13. The method of Statement 11, wherein the signal is generated based on determining that the first data is not present in the first storage medium.
[0106] Statement 14. The method of Statement 13 further comprising: loading the first data from the second storage medium to the first storage medium.
[0107] Statement 15. The method of Statement 11, wherein said criterion comprises a success metric associated with the second data.
[0108] Statement 16. The method of Statement 15, wherein the success metric is based on a success of loading the second data from the second storage medium to the first storage medium.
[0109] Statement 17. The method of Statement 11 further comprising: adding a second memory location associated with the second data to a log; and updating the log to indicate success in completing the second request from the first storage medium.
[0110] Statement 18. The method of Statement 11, wherein said criteria includes availability of computing resources.
[0111] Statement 19. The method of statement 11 wherein the first program identifies a second memory location storing second data based on the identified access pattern.
[0112] Statement 20. The method of statement 11 wherein the second program comprises a neural network that predicts a second memory location to store second data based on input features to the neural network.
Claims
1. A storage system, include: a first storage medium; a second storage medium; A controller configured to communicate with a first storage medium and a second storage medium, wherein the controller is configured to: receiving a first request generated by a process associated with first data; Determining that the first data is stored in a first storage medium; generating a signal based on the controller being configured to determine; Based on signal recognition criteria; selecting at least one of the first program or the second program for loading the second data from the second storage medium to the first storage medium based on the criteria; as well as The second data is output based on a second request for the second data generated by the process.
2. The storage system according to claim 1, in, The latency associated with accessing the first storage medium is lower than the latency associated with accessing the second storage medium.
3. The storage system according to claim 1, in, A signal is generated based on determining that the first data is not present in the first storage medium.
4. The storage system according to claim 3, in, The controller is configured to: The first data is loaded from the second storage medium to the first storage medium.
5. The storage system according to claim 1, in, The criteria includes a success metric associated with the second data.
6. The storage system according to claim 5, in, The success metric is based on a success of loading the second data from the second storage medium to the first storage medium.
7. The storage system according to claim 1, in, The controller is also configured to: adding a second memory location associated with the second data to the log; and The log is updated to indicate successful completion of the second request from the first storage medium.
8. The storage system according to claim 1, in, The criteria include the availability of computing resources.
9. The storage system according to claim 1, in, The first program is configured to identify a second memory location storing second data based on the identified access pattern.
10. The storage system according to claim 1, in, The second program includes a neural network configured to predict a second memory location storing second data based on input features to the neural network.
11. A method, include: receiving a first request generated by a process associated with first data; Determining that the first data is stored in a first storage medium; generating a signal based on the determination; Based on signal recognition criteria; selecting at least one of the first program or the second program for loading the second data from the second storage medium to the first storage medium based on the criteria; as well as The second data is output based on a second request for the second data generated by the process.
12. The method according to claim 11, in, The latency associated with accessing the first storage medium is lower than the latency associated with accessing the second storage medium.
13. The method according to claim 11, in, A signal is generated based on determining that the first data is not present in the first storage medium.
14. The method according to claim 13, further comprising: include: The first data is loaded from the second storage medium to the first storage medium.
15. The method according to claim 11, in, The criteria includes a success metric associated with the second data.
16. The method according to claim 15, in, The success metric is based on a success of loading the second data from the second storage medium to the first storage medium.
17. The method according to claim 11, further comprising: include: adding a second memory location associated with the second data to the log; as well as The log is updated to indicate successful completion of the second request from the first storage medium.
18. The method according to claim 11, in, The criteria include the availability of computing resources.
19. The method according to claim 11, in, The first program identifies a second memory location storing second data based on the identified access pattern.
20. The method according to claim 11, in, The second program includes a neural network that predicts a second memory location storing second data based on input features to the neural network.
Citation Information
Patent Citations
Memory controller and memory system having the same
CN111324301A
Data prefetching method and related equipment
CN112667528A
Writing and reading method, processor chip, storage medium and electronic equipment
CN114063887A
Control of Pre-Fetch Traffic
US20170220471A1
