Memory controller and method for allocating memory in memory controller for client node

By designing a memory controller on the client node and using status information to select storage nodes for memory allocation, the problem of low resource allocation efficiency and high complexity of traditional memory management systems is solved, and efficient and low-cost memory management is achieved.

CN118613783APending Publication Date: 2024-09-06HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202180104434.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2021-12-22
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Traditional persistent memory management systems and memory allocators suffer from inefficiency and high cost in terms of resource allocation and complexity, and cannot effectively manage resource allocation among multiple computing nodes.

Method used

A memory controller is designed to ensure efficient and effective memory allocation by connecting multiple storage nodes on the client node, receiving status information (such as utilization and timestamps), and selecting appropriate storage nodes for memory allocation based on this information. Resource allocation avoids the reconstruction of volatile information.

Benefits of technology

Efficient and effective shared and distributed memory allocation is achieved, reducing complexity and cost, improving storage utilization tracking and management, and ensuring efficient allocation of resources among computing nodes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118613783A
    Figure CN118613783A
Patent Text Reader

Abstract

A memory controller for a client node is operably connected to a plurality of storage nodes and one or more application host nodes. Each storage node includes a memory and a local allocator. The client node is configured to execute an application on at least one of the application host nodes. In addition, the memory controller is configured to receive a memory allocation request from the application and state information from at least one of the storage nodes. The state information comprises the utilization rate and the timestamp of the last operation. The memory controller is also configured to select the storage node based on the utilization rate and the timestamp. The memory controller is also configured to attempt memory allocation from the storage nodes in the first subset. The memory controller ensures efficient and efficient shared and distributed persistent memory allocation during boot-up.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention generally relates to the field of distributed memory level storage technology, and more particularly, to a memory controller and a method for allocating memory in a memory controller for a client node. Background Art

[0002] Memory management plays an important role in every computing system. Generally, memory management is used to allocate and deallocate memory before and after process execution in order to track the memory space used, maintain data integrity while executing processes, minimize fragmentation issues, and utilize memory resources rationally. Traditionally, memory management corresponds to the allocation and release of memory areas for different services and processes executed on a computing system. Traditionally, most memory allocators and memory management systems are volatile, so the allocated areas are erased when power is lost or shut down. Therefore, persistent memory management systems and persistent memory allocators are used for memory management due to their non-volatile and byte-addressable characteristics. In persistent memory management systems, persistent memory is usually used, which relies on the persistence of allocated memory areas to handle memory allocation more efficiently during power outages or shutdowns.

[0003] Traditionally, persistent memory is considered a storage resource due to its increased storage capacity and is also shared by multiple computing nodes. Typically, for memory management and memory allocation, all computing nodes must coordinate to avoid multiple computing nodes allocating the same memory region. In one example, specific memory management systems are used that rely on centralized entities that understand the storage state, system, topology, and network in order to track storage utilization. In another example, existing memory management systems are deterministic, so the memory management system cannot speculate on memory allocation based on the capacity or replication status of the resource. However, such memory management systems and memory allocators are complex and undesirable due to low efficiency and poor effectiveness. Therefore, traditional memory management systems rely entirely on centralized entities for storage utilization. Therefore, there is a technical problem: how to efficiently manage the allocation of resources among various computing nodes through persistent memory management systems and memory allocators, and reduce complexity and cost.

[0004] Therefore, based on the above discussion, there is a need to overcome the above-mentioned shortcomings associated with traditional memory management systems and memory allocators. Summary of the invention

[0005] The present invention provides a memory controller and a method of allocating memory in a memory controller for a client node. The present invention provides a solution to the existing problem of how to efficiently manage the allocation of resources between various computing nodes with low complexity and low cost through persistent memory management and memory allocator. The purpose of the present invention is to provide a solution that at least partially overcomes the problems encountered in the prior art and provides an improved memory controller and an improved method of allocating memory in a memory controller for a client node, for example, for distributed and shared persistent memory allocation.

[0006] One or more objects of the invention are achieved by what is presented in the attached independent claims. Advantageous implementations of the invention are further defined in the dependent claims.

[0007] In one aspect, the present invention provides a memory controller for a client node. The memory controller is used to be operably connected to a plurality of storage nodes, wherein each storage node includes a memory and a local allocator. The memory controller is also used to be operably connected to one or more application host nodes. In addition, the client node is used to execute an application on at least one of the application host nodes. The memory controller is also used to receive status information from at least one of the storage nodes. The status information includes a utilization and a timestamp of the most recent operation. The memory controller is also used to receive a memory allocation request from an application. In addition, the memory controller is used to select storage nodes whose utilization is between a lower utilization threshold and an upper utilization threshold and whose timestamp is less than a timestamp threshold as a first subset. The memory controller is also used to attempt to allocate memory from the storage nodes in the first subset.

[0008] Compared to existing distributed memory systems, the memory controller of the present invention ensures efficient and effective shared and distributed memory allocation, easy resource tracking, and storage utilization during memory startup in one or more computing nodes. By maintaining state information for each storage node and allocating memory based on the state information, the memory controller facilitates efficient and effective improvement of memory allocation without rebuilding any volatile information from the data memory area during each startup by selecting a storage node and attempting to make memory allocation based on the selection.

[0009] In one implementation, the memory controller is further configured to determine that memory allocation from the storage nodes in the first subset is unsuccessful, and in response thereto, select storage nodes whose utilization is less than a utilization lower threshold or greater than a utilization upper threshold as the second subset. In addition, the memory controller is configured to attempt to allocate memory from the storage nodes in the second subset.

[0010] In this implementation, if the first subset is unsuccessful, the second subset provides another option for selecting a storage node for memory allocation.

[0011] On the other hand, the present invention provides a method for allocating memory in a memory controller for a client node. The memory controller is used to be operably connected to a plurality of storage nodes, wherein each storage node includes a memory and a local allocator. In addition, the memory controller is connected to one or more application host nodes. The client node is used to execute an application on at least one of the application host nodes. The method includes: receiving status information from at least one of the storage nodes, wherein the status information includes a utilization and a timestamp of a most recent operation; receiving a memory allocation request from an application; and selecting a storage node. The storage nodes include a utilization between a lower utilization threshold and an upper utilization threshold and a timestamp less than a timestamp threshold as a first subset. The memory controller is also used to attempt to allocate memory from the storage nodes in the first subset.

[0012] The method realizes all the advantages and technical effects of the memory controller of the present invention.

[0013] It should be understood that all of the above implementations may be combined.

[0014] It should be noted that all devices, elements, circuits, units and modules described in the present application can be implemented in software or hardware elements or any type of combination thereof. All steps performed by various entities described in the present application and the functions to be performed by various entities described are intended to refer to the corresponding entities for performing the corresponding steps and functions. Although in the description of the following specific embodiments, the specific functions or steps performed by external entities are not reflected in the description of the specific detailed elements of the entities performing the specific steps or functions, it should be clear to the technician that these methods and functions can be realized by corresponding hardware or software elements or any combination thereof. It should be understood that the features of the present invention are easy to be merged with various mergers without departing from the scope of the present invention defined by the appended claims.

[0015] Additional aspects, advantages, features and objects of the present invention will become apparent from the accompanying drawings and detailed description of illustrative implementations interpreted in conjunction with the following appended claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The above summary of the invention and the following detailed description of illustrative embodiments may be better understood when read in conjunction with the accompanying drawings. In order to illustrate the present invention, exemplary structures of the present invention are shown in the accompanying drawings. However, the present invention is not limited to the specific methods and tools disclosed herein. In addition, it should be understood by those skilled in the art that the accompanying drawings are not drawn to scale. Where possible, identical elements are represented by identical numerals.

[0017] Embodiments of the present invention are described by way of example only with reference to the following drawings, in which:

[0018] Figure 1A is a network diagram of operable connections between a memory controller and various other components according to an embodiment of the present invention;

[0019] Figure 1B is a block diagram of a client node according to another embodiment of the present invention;

[0020] Figure 2 is a sequence diagram of a memory controller according to an embodiment of the present invention, the memory controller being used to select a storage node for distributed memory allocation;

[0021] Figure 3 is a diagram of various exemplary components according to an embodiment of the present invention;

[0022] Figure 4 is a diagram of a client application according to an embodiment of the present invention;

[0023] Figure 5 is a flow chart of a method for a memory controller according to an embodiment of the present invention, the memory controller being used to perform distributed memory allocation.

[0024] In the drawings, underlined numbers are used to indicate the item in which the underlined number is located or an item adjacent to the underlined number. Non-underlined numbers are associated with the item identified by the line that associates the non-underlined number with the item. When a number is not underlined and has an associated arrow, the non-underlined number is used to identify the general item that the arrow points to. DETAILED DESCRIPTION

[0025] The following detailed description describes embodiments of the invention and ways in which these embodiments may be implemented. Although some modes of implementing the invention have been disclosed, those skilled in the art will recognize that there are other embodiments for implementing or practicing the invention.

[0026] Figure 1A is a block diagram of an operative connection of a memory controller with various other components according to an embodiment of the present invention. Figure 1A , a block diagram 100 is shown, including a client node 102, a memory controller 104, a plurality of storage nodes 106 (e.g., storage nodes 106A to 106N), and one or more application host nodes 108 (e.g., application host nodes 108A to 108N). Also shown are a plurality of memories 110A to 110N and a plurality of local allocators 112A to 112N.

[0027] The client node 102 may include suitable logic, circuitry, interfaces and / or code for executing an application on at least one of the application host nodes. Examples of the client node 102 may include, but are not limited to, a computer, a personal digital assistant, a portable computing device, or an electronic device.

[0028] The memory controller 104 may include appropriate logic, circuitry, interfaces, and / or code for performing memory allocation. Examples of implementations of the memory controller 104 may include, but are not limited to, a central data processing device, a microprocessor, a microcontroller, a complex instruction set computing (CISC) processor, an application-specific integrated circuit (ASIC) processor, a reduced instruction set (RISC) processor, a very long instruction word (VLIW) processor, a state machine, and other processors or control circuits.

[0029] The plurality of storage nodes 106 include storage nodes 106A to 106N. Each storage node in the plurality of storage nodes 106 can be used to provide status information to the memory controller 104, and also to allocate memory by various selection criteria. Examples of the plurality of storage nodes 106 include, but are not limited to, a block storage system, a file storage system, an object storage system, or a combination thereof.

[0030] The one or more application host nodes 108 include application host nodes 108A to 108N, each of which may include suitable logic, circuitry, interfaces and / or code for executing an application on at least one of the application host nodes. Examples of the one or more application host nodes 108 may include, but are not limited to, a computer, a personal digital assistant, a portable computing device, or an electronic device.

[0031] Each memory in the plurality of memories 110A to 110N includes appropriate logic, circuits, and / or interfaces for storing memory allocation information received by the client node 102. Examples of implementations of the plurality of memories 110A to 110N may include, but are not limited to, electrically erasable programmable read-only memory (EEPROM), dynamic random access memory (DRAM), random access memory (RAM), read-only memory (ROM), hard disk drive (HDD), flash memory, secure digital (SD) card, solid-state drive (SSD), and / or CPU cache memory. In one example, each memory in the plurality of memories 110A to 110N may correspond to a physical memory included in each corresponding storage node. For example, the storage node 106A includes the memory 110A, the storage node 106B includes the memory 110B, and subsequent storage nodes similarly include other memories.

[0032] Each local allocator in local allocators 112A to 112N can be used to perform allocation and handle distributed and shared memory. In one implementation, local allocators 112A to 112N can correspond to the allocators included in each corresponding storage node. For example, storage node 106A includes local allocator 112A, storage node 106B includes local allocator 112B, and subsequent storage nodes similarly include other local allocators. In another example, local allocators 112A to 112N provide distributed and shared persistent memory allocation.

[0033] A memory controller 104 is provided for a client node 102. The memory controller 104 is used to be operably connected to a plurality of storage nodes 106, wherein each storage node includes a memory and a local allocator. The memory controller 104 is also used to be operably connected to one or more application host nodes 108. In other words, the memory controller 104 is operably connected to a plurality of storage nodes 106 and one or more application host nodes 108 to provide speculative shared and distributed memory allocation in the client node 102. Each storage node (e.g., storage nodes 106A to 106N) includes a memory and a local allocator for shared and distributed memory allocation. For example, storage node 106A includes memory 110A and local allocator 112A. Similarly, storage node 106B includes memory 110B and local allocator 112B, and subsequent storage nodes up to storage node 106N similarly include other memories and local allocators. In one implementation, the client node 102 and the plurality of storage nodes 106 may be located at the same end. In addition, one or more application host nodes 108 (e.g., application host nodes 108A to 108N) are also operatively connected to the memory controller 104. For example, the application host node 108A is connected to the memory controller 104, and the application host node 108N is also connected to the memory controller 104.

[0034] In operation, the client node 102 is used to execute an application on at least one of the application host nodes. In other words, the client node 102 executes an application on at least one of the one or more application host nodes 108. In one implementation, the application starts a virtual persistent memory (VPM) area on the corresponding application host node to provide a distributed shared persistent memory virtual address space. For example, if the client node 102 executes an application on the application host node 108A, the application host node 108A starts the VPM area, and the operation is similar for subsequent application host nodes. In one implementation, the distributed shared persistent memory virtual address space can be thinly configured and further distributed on multiple storage nodes 106. In one example, thin configuration refers to the logical capacity of the VPM, which can be expanded or contracted through the application program interface (API) exposed by the client's library. In addition, the memory (e.g., the memory 110A of the storage node 106A) is used for memory allocation, which is a random access memory, and due to this memory, the client node 102 is optimized to allocate the required physical space based only on the write input / output mode. Therefore, for distributed and shared persistent memory allocation, it is necessary to use thin configuration. The client node 102 supports access to non-contiguous logical space and reads logical addresses. In addition, the client node 102 reads logical addresses that have not yet been allocated and also returns a value of 0. In one example, a value of 0 corresponds to a logical address that is not allocated, which is conducive to executing an application.

[0035] A memory controller 104 is also provided for receiving state information from at least one of the storage nodes. The state information includes a utilization and a timestamp of a most recent operation. Each of the plurality of storage nodes 106 stores state information (or a cache table) of a VPM allocation unit. In one example, the state information corresponds to a storage node cache, which will be stored in the memory controller 104. Figure 3. In one implementation, the status information refers to a mapping from a logical node to a plurality of storage nodes 106, and the addition of a utilization (or "utilization hint") and a timestamp (or "timestamp" column) of the most recent operation. In one implementation, the utilization refers to the utilization of each coarse gain allocation unit (CGAU) last seen provided between the storage nodes 106A to 106N. In a further implementation, the timestamp refers to the time when each CGAU was last updated. In one example, the value is updated when an allocation or release request is sent to the memory controller 104. In one implementation, the status information is updated after each expiration time, which refers to the time when the old value corresponding to the remote address is reset to an unknown state. In one example, the expiration time is set to 1 hour.

[0036] A memory controller 104 is also provided for receiving a memory allocation request from an application. In one implementation, one or more application host nodes 108 request memory allocation from the memory controller 104. Thereafter, the memory controller 104 selects a storage node capable of performing the allocation from a plurality of storage nodes 106 based on the request from the application. In one implementation, the memory controller 104 is used to select a storage node based on various selection criteria (e.g., a first subset and a second subset). Thereafter, based on the selection of the storage node, the memory controller 104 is also used to perform an attempt to perform memory allocation in the selected storage node. For example, the memory controller 104 is used to perform memory allocation in the storage node 106A.

[0037] According to one embodiment, the memory controller 104 is further configured to receive a hint from at least one of the storage nodes. In one implementation, the client node 102 stores a VPM table in a virtual persistent memory cache. The VPM table includes an allocation hint in one of its columns, wherein the allocation hint refers to a hint provided by at least one of the storage nodes (e.g., provided by the storage node 106A) when the memory controller 104 receives an allocation request. In one example, the storage node 106A also provides an allocation hint based on a previous memory allocation. Thereafter, the memory controller 104 is configured to attempt to perform a memory allocation based on the allocation hint. In one example, if the attempt based on the received hint is unsuccessful, the memory controller 104 selects a first subset for memory allocation.

[0038] The memory controller 104 also selects storage nodes whose utilization is between the utilization lower limit threshold and the utilization upper limit threshold and whose timestamp is less than the timestamp threshold as the first subset. In one example, the utilization of the selected storage node (e.g., storage node 106A) can be set between the utilization lower limit threshold (e.g., 50% of the total value) and the utilization upper limit threshold (e.g., up to 99% of the total value). In one implementation, the utilization of the selected storage node (e.g., storage node 106A) can have other possible values ​​of the utilization lower limit threshold and the utilization upper limit threshold, without limiting the scope of the present invention. In addition, the timestamp of the selected storage node can include storage nodes whose utilization is between the utilization lower limit threshold and the utilization upper limit threshold and a timestamp less than the timestamp threshold. In one example, the timestamp threshold can correspond to an outdated time value, and the outdated time value can be set to 1 hour. In one implementation, the timestamp threshold can have other possible values, without limiting the scope of the present invention. Thereafter, the memory controller 104 is used to attempt to allocate memory from the storage nodes in the first subset. In other words, the first subset includes storage nodes whose utilization is between the utilization lower threshold and the utilization upper threshold and whose timestamp is less than the timestamp threshold. Therefore, the memory controller 104 is used to attempt to allocate memory from the storage nodes in the first subset. For example, if the storage node 106A and the storage node 106B are present in the first subset, the memory controller 104 is used to attempt to allocate memory from the storage nodes 106A and 106B.

[0039] According to one embodiment, the memory controller 104 is used to attempt to allocate memory from the storage nodes in the subset in a round-robin manner. In one example, polling refers to the allocation of resources between multiple storage nodes 106. Resource allocation can be based on the weight (or required space) of the resource. However, the attempted memory allocation can be performed in any other possible manner, for example, based on a minimum timestamp, etc., without limiting the scope of the present invention.

[0040] According to one embodiment, the memory controller 104 is used to determine that the memory allocation from the storage nodes in the first subset is unsuccessful. Therefore, in response to this, the memory controller 104 selects the storage nodes whose utilization is less than the utilization lower threshold or greater than the utilization upper threshold as the second subset, and attempts to allocate memory from the storage nodes in the second subset. In other words, the second subset includes storage nodes whose utilization is less than the utilization lower threshold or greater than the utilization upper threshold. In addition, if the memory controller 104 determines that the memory allocation from the storage nodes in the first subset is unsuccessful, the memory controller 104 is used to attempt memory allocation from the storage nodes in the second subset.

[0041] According to one embodiment, the memory controller 104 is used to determine that the memory allocation from the storage nodes in the first subset is unsuccessful. Therefore, in response to this, the memory controller 104 selects the storage nodes whose timestamps are greater than the timestamp threshold as the second subset. In one example, the timestamp threshold corresponds to an expiration time (e.g., one hour). In addition, the expiration time can have other different possible values ​​without limiting the scope of the present invention. In addition, the memory controller 104 is used to attempt to allocate memory from the storage nodes in the second subset (e.g., the storage nodes in the storage node 106A) based on the timestamp greater than the timestamp threshold.

[0042] According to one embodiment, the memory controller 104 is used to determine that the memory allocation from the storage nodes in the first subset is unsuccessful, and in response thereto, selects the storage nodes whose utilization is less than the utilization lower limit threshold or greater than the utilization upper limit threshold and whose timestamp is greater than the timestamp threshold as the second subset. In one example, the selected storage node (e.g., storage node 106A) corresponds to the storage node whose utilization is less than the utilization lower limit threshold and whose timestamp is greater than the timestamp threshold. In another example, the selected storage node (e.g., storage node 106B) corresponds to the storage node whose utilization is greater than the utilization upper limit threshold and whose timestamp is greater than the timestamp threshold. In addition, if the memory controller 104 determines that the memory allocation from the storage nodes in the first subset is unsuccessful, the memory controller 104 is used to attempt the memory allocation from the storage nodes in the second subset. For example, if the storage node 106A and the storage node 106B are in the second subset, the memory controller 104 is used to attempt to allocate memory from the storage node 106A and the storage node 106B.

[0043] According to one embodiment, the memory controller 104 is used to determine that the memory allocation from the storage nodes in the first subset is unsuccessful, and in response thereto, selects the remaining storage nodes as the second subset. In addition, the memory controller 104 is used to attempt to allocate memory from the storage nodes in the second subset. In other words, the remaining storage nodes correspond to storage nodes whose utilization and timestamp values ​​are outside the range in which the memory controller 104 has attempted memory allocation. The range may include, but is not limited to: a utilization of a lower utilization threshold, or a utilization greater than an upper utilization threshold, or a timestamp greater than a timestamp threshold, or any combination of the above utilizations and timestamps. In addition, if the memory controller 104 determines that the memory allocation from the storage nodes in the first subset is unsuccessful, the memory controller 104 is used to attempt memory allocation from the storage nodes in the second subset.

[0044] According to one embodiment, the memory controller 104 is used to determine that the memory allocation from the storage nodes in the second subset is unsuccessful, and in response thereto, determines that there are one or more storage nodes whose status information has not been received, and selects these storage nodes as the third subset. The memory controller 104 is also used to attempt to allocate memory from the storage nodes in the third subset. In one example, if the status information of storage nodes such as storage node 106A is not received by the memory controller 104, the state of storage node 106A is referred to as an unknown state. In one implementation, the unknown state of a storage node may be due to the fact that the storage node has not been allocated for a long time, and the storage node is, for example, storage node 106A. The memory controller 104 is also used to select such a storage node as the third subset. Thereafter, the memory controller 104 is used to attempt to allocate memory from the storage nodes in the third subset.

[0045] According to one embodiment, the memory controller 104 is also used to determine that the attempted memory allocation is unsuccessful, and in response thereto, allocate a new storage node. First, the memory controller 104 searches for the new storage node after updating the VPM cache table. Thereafter, the memory controller 104 determines that if there are any storage nodes that have not performed the allocation attempt, the memory controller 104 determines that there are no storage nodes that can perform the allocation. Thereafter, the memory controller 104 allocates the new storage node for further memory allocation. The memory controller 104 may also attempt to perform memory allocation.

[0046] The memory controller 104 provides shared and distributed persistent memory allocation in the client node 102. The memory controller 104 is connected to one or more application host nodes 108 and multiple storage nodes 106, wherein each storage node includes memory and a local allocator. The client node 102 is also used to execute an application on at least one of the application host nodes. The memory controller 104 is also used to receive status information from at least one of the storage nodes, and is also used to receive a memory allocation request from the application. The memory controller 104 is also used to select a storage node as a first subset based on utilization and timestamp. The memory controller 104 is also used to attempt to allocate memory from the storage nodes in the first subset. The memory controller of the present invention ensures efficient and effective resource allocation, and is easy to track storage nodes from multiple storage nodes 106. Compared with existing distributed storage systems, the memory controller 104 is also used to achieve efficient and effective storage utilization during startup in one or more computing nodes. By maintaining state information for each storage node and allocating memory based on such state information including utilization and timestamp of the last operation, memory allocation is improved effectively and efficiently without having to rebuild any volatile information from the data memory area during each startup by selecting a storage node and attempting memory allocation based on that selection.

[0047] Figure 1B is a block diagram of a client node according to another embodiment of the present invention. Figure 1A The components in Figure 1B . refer to Figure 1B , a block diagram 100B of a client node 102 is shown. The client node 102 also includes a memory controller 104, a communication interface 114, and a memory 116.

[0048] In this implementation, the operations performed by the client node 102 may be performed and controlled by the memory controller 104. Examples of the memory controller 104 may include, but are not limited to, a microprocessor, a microcontroller, a complex instruction set computing (CISC) processor, an application-specific integrated circuit (ASIC) processor, a reduced instruction set (RISC) processor, a very long instruction word (VLIW) processor, a central processing unit (CPU), a state machine, a data processing unit, and other processors or circuits.

[0049] The communication interface 114 may also be referred to as a network interface, and includes suitable logic, circuitry, and / or interfaces for communicating with components, such as Figure 1A multiple storage nodes 106, a memory controller 104 and one or more application host nodes 108.

[0050] The memory 116 includes suitable logic, circuitry, and / or interfaces for storing memory allocation information received by the client node 102. Examples of implementations of the plurality of memories 116 may include, but are not limited to, electrically erasable programmable read-only memory (EEPROM), dynamic random-access memory (DRAM), random access memory (RAM), read-only memory (ROM), hard disk drive (HDD), flash memory, secure digital (SD) card, solid-state drive (SSD), and / or CPU cache memory.

[0051] Figure 2is a sequence diagram of a memory controller according to an embodiment of the present invention. The memory controller is used to select storage nodes for distributed memory allocation. Combining Figure 1A and Figure 1B the component descriptions in Figure 2 . Referring to Figure 2 , a sequence diagram 200 is shown, including a sequence of selecting at least one storage node for memory allocation. The sequence diagram 200 includes steps 202 to 216.

[0052] The sequence diagram 200 represents the sequence and operations performed by the memory controller 104. First, in step 202, the memory controller 104 receives an allocation request.

[0053] In step 204, the memory controller 104 checks the allocation hint. At this stage, if a storage node (e.g., storage node 106A) provides an allocation hint, the memory controller 104 attempts to allocate and continues to execute step 214. However, if the memory controller 104 does not receive an allocation hint, the memory controller 104 continues to execute step 206 and selects a storage node that meets the conditions. In one implementation, the conditions in the step state the selection of at least one storage node, where the utilization rate of the storage node is between the lower utilization rate threshold and the upper utilization rate threshold (i.e., lower < CGAU < upper) and the timestamp is less than the timestamp threshold (i.e., timestamp < OT).

[0054] In step 206, the memory controller 104 further determines the storage nodes that meet the above conditions. Thereafter, the memory controller 104 continues to execute step 214 to attempt to allocate the corresponding storage node. In one implementation, if in step 206, the memory controller 104 does not determine a storage node, the memory controller 104 continues to execute step 208 to check whether a given condition (i.e., the next operation) is met.

[0055] In step 208, the memory controller 104 is used to select a storage node based on a given condition. In an example, the condition provides the selection of a storage node with a utilization rate greater than the upper utilization rate threshold, or the selection of a storage node with a utilization rate less than the utilization rate threshold, or the selection of a storage node with an unknown state (i.e., upper < CGAU or CGAU < lower or unknown). In step 208, if the memory controller 104 determines that at least one of the storage nodes meets the condition, the memory controller 104 continues to execute step 214 and attempts to allocate the corresponding storage node. However, if at step 208, the condition is not met, the memory controller 104 continues to execute step 210.

[0056] In step 210, the memory controller 104 is used to update the VPM cache table (i.e., VPM list) with the new CGAU (i.e., storage node). In step 210, if the memory controller 104 determines the new CGAU (i.e., storage node), the memory controller 104 continues to execute step 214 and attempts to allocate these new storage nodes. In one implementation, if no allocation is performed in step 210, the memory controller 104 continues to execute step 212 to allocate the new allocation unit (i.e., storage node) to the VPM cache table for memory allocation. In another implementation, if the memory controller 104 fails to allocate the storage node through any of the above conditions, the memory controller 104 can return to the corresponding operation and perform the same operation again. In one example, if in step 214, the memory controller 104 fails to allocate the selected storage node that meets the stated conditions, the selection of the storage node is performed based on the utilization between the lower utilization threshold and the upper utilization threshold. The memory controller 104 also performs the selection of the storage node based on the same conditions. In one example, if the allocation cannot be performed at step 214, the memory controller 104 proceeds to the next operation. However, if the allocation is successfully performed at step 214, the memory controller 104 updates the utilization and timestamp 216 of the allocated storage node.

[0057] Figure 3 is a diagram of various exemplary components for memory allocation according to an embodiment of the present invention. Figure 1A , Figure 1B and Figure 2 Component description in Figure 3 . refer to Figure 3 , a diagram 300 is shown, including client nodes 302A to 302N, multiple client libraries 304A to 304N, and multiple virtual persistent memory (VPM) caches 306A to 306N. Also shown is a network structure 308, a coarse gain allocation unit (CGAU) mapping database (DB) 310, and a control plane 312. Also shown are multiple data planes 314A to 314N, multiple persistent memories (PM) 316A to 316N, multiple storage node caches 318A to 318N, and multiple storage nodes 106A to 106N.

[0058] Each of the client nodes 302A to 302N corresponds to the client node 102 of Figure 1. Each of the plurality of client libraries 304A to 304N is for managing a local cache having access details of a memory allocated at a remote storage node.

[0059] Each VPM cache in the plurality of VPM caches 306A to 306N refers to a potentially stale logically mapped cache that holds information on how to reach remote memory in terms of addressing, network access, and memory protection attributes.

[0060] The network fabric 308 includes hardware or software for establishing communications between the plurality of client nodes 302A to 302N, the plurality of data planes 314A to 314N, and the control plane 316. Examples of the network fabric 308 may include, but are not limited to, computer ports, network sockets, network interface controllers (NICs), and any other network interface devices. In one example, the network fabric 308 may correspond to remote memory access such as remote direct memory access (RDMA) or CXL.

[0061] The coarse grain allocation unit (CGAU) mapping database (DB) 310 refers to a mapping that stores information on how to reach remote memory in terms of addressing, network access, and memory protection attributes to provide utilization hints.

[0062] The control plane 312 is used to control the CGAU mapping database 310 in a load-balanced manner across storage nodes. Each of the multiple data planes 314A to 314N corresponds to a plane to store the corresponding storage node, the corresponding persistent memory, and the corresponding storage node cache. For example, the data plane 314A stores the storage node 102A, the persistent memory 316A, and the storage node cache 318A.

[0063] Each persistent memory in the plurality of persistent memories 316A to 316N may refer to a non-volatile, solid-state, high-performance byte-addressable memory located on a memory bus. In general, persistent memory may be defined as ordinary memory that persists when power is removed or shut down. Examples of the plurality of persistent memories 316A to 316N may include, but are not limited to, byte-addressable three-dimensional crosspoint memory (e.g., phase change memory), resistive random access memory, and spin-transfer torque RAM (STTRAM).

[0064] The plurality of storage node caches 318A to 318N refers to a mapping cache that stores information about reaching remote memory in terms of addressing, network access, and memory protection attributes.

[0065] In one implementation, multiple VPM caches 306A to 306N correspond to potential mapping caches. In addition, each of the multiple client libraries 304A to 304N is used to manage the corresponding VPM cache (or local cache) using the access details of the CGAU mapping database 310 (or the memory allocated at the remote storage node). In one example, this logical mapping cache of multiple storage node caches 318A to 318N saves information about how to reach the remote memory in terms of addressing, network access, and memory protection attributes. In addition, there is an end-to-end system protocol from the client node 302A to 302N to the multiple data planes 314A to 314N. In one example, the end-to-end system protocol takes into account that multiple VPM caches 306A to 306N may be missing CGAU mappings or worse CGAU mappings. In addition, the end-to-end system protocol also takes into account cache stale mappings, which were once true but were modified by the control plane 312 due to the client node 302A to 302N cache (e.g., for load balancing, tiering, or any other purpose). To simplify the system, the control plane 312 does not initiate invalidation of the plurality of VPM caches 306A to 306N. In one example, each of the plurality of persistent memories 316A to 316N addresses the client node 302A to 302N to approach the control plane 312 in order to update / invalidate its cache, such as the plurality of VPM caches 306A to 306N. In one implementation, it is not expected that the control plane 312 actively updates the client nodes 302A to 302N. Advantageously, the interconnection of all of these components, the client nodes 320A to 302N, the plurality of data planes 314A to 314N, and the control plane 316, provides a potentially stale mapping cache for distributed and shared memory allocations.

[0066] Figure 4 is a diagram of a client application according to an embodiment of the present invention. Figure 1A , Figure 1B , Figure 2 and Figure 3 Component Description Figure 4 . refer to Figure 4 , a diagram 400 of a client application 402 including a persistent memory client library 404 and a virtual persistent memory (VPM) cache 406 is shown. In addition, storage node (x) 410, storage node (y) 412, storage node (w) 414, storage node (z) 416, and storage node (j) 418 are shown. In addition, a CGAU mapping database 314 associated with the VPM cache 406 is shown.

[0067] The client application 402 may correspond to the client node 102 (or Figure 3The client application 402 includes a persistent memory client library 404 and a VPM cache 406. The persistent memory client library 404 corresponds to Figure 3 The client library 302 of the VPM cache 406 manages the local cache (i.e., the VPM cache 406) and the CGAU mapping database 314. In addition, the persistent memory client library 404 stores information including the remote address of each storage node. In one example, each storage node, such as storage node (x) 410, storage node (y) 412, storage node (w) 414, storage node (z) 416, and storage node (j) 418, corresponds to the multiple storage nodes 106A to 106N of Figure 1. In one implementation, the remote address of each storage node and its corresponding utilization hint, as well as the virtual persistent memory offset and timestamp, are stored in the VPM cache 406 in the form of a table. The table provides utilization hints each time an allocation request is issued.

[0068] In addition, the table also provides allocations based on utilization hints (or utilization). In one example, a new allocation can be executed starting from VPM offset 4 (i.e., row 3 of the VPM cache table) until it is exhausted (i.e., reaches 99% utilization). In addition, a new allocation is executed starting from VPM offset 1 (i.e., row 2 of the VPM cache table) until it is exhausted, and then the memory controller 104 is used to try all four storage nodes and update their current utilization at each attempt. Once all four storage nodes are exhausted, the memory controller 104 is used to update the table in the VPM cache 406 for the new storage node. In one example, if there is a new storage node, the memory controller 104 is used to perform memory allocation for the new storage node. However, if no storage node exists, the memory controller 104 is used to allocate a new storage node.

[0069] Figure 5 is a flow chart of a method for a memory controller according to an embodiment of the present invention, the memory controller being used to perform distributed and shared persistent memory allocation. Figure 1A , Figure 1B , Figure 2 , Figure 3 and Figure 4 Component Description Figure 5 . refer to Figure 5 , a flow chart of a method 500 including steps 502 to 508 is shown. The memory controller 104 is configured to execute the method 500 .

[0070] A method 500 for allocating memory in a memory controller 104 for a client node 102 is provided. The memory controller 104 is operable to be connected to a plurality of storage nodes 106 and one or more application host nodes 108. In other words, the method 500 provides a memory controller 104 that is operable to be connected to a plurality of storage nodes 106 and one or more application host nodes 108 to provide speculative shared and distributed memory allocation in the client node 102. Each storage node, such as storage nodes 106A to 106N, corresponds to a plurality of storage nodes 106, wherein each storage node includes a memory and a local allocator for shared and distributed memory allocation. For example, storage node 106A includes memory 110A and local allocator 112A. In yet another example, storage node 106N includes memory 110N and local allocator 112N. Similarly, storage node 106B includes memory 110B and local allocator 112B, and subsequent storage nodes up to storage node 106N similarly include other memories and local allocators. In one implementation, the client node 102 and the plurality of storage nodes 106 may be located on the same node. One or more application host nodes 108, such as application host nodes 108A to 108N, are also operably connected to the memory controller 104. For example, the application host node 108A is connected to the memory controller 104, and the application host node 108N is also connected to the memory controller 104.

[0071] The method 500 includes a client node 102 for executing an application on at least one of the application host nodes. The application is executed by the client node 102 on at least one of the one or more application host nodes 108. In one implementation, the application starts a virtual persistent memory (VPM) area on the corresponding application host node to provide a distributed shared persistent memory virtual address space. For example, if the client node 102 executes the application on the application host node 108A, the application host node 108A starts the VPM area, and the operation is similar for subsequent application host nodes. In one implementation, the distributed shared persistent memory virtual address space can be thinly configured and further distributed on multiple storage nodes 106. Thin configuration refers to the VPM logical capacity, which can be expanded or contracted through the application program interface (API) exposed by the client's library. In addition, the memory used for memory allocation (e.g., memory 110A) is a random access memory, so the client node 102 is only optimized to allocate the required physical space according to the write input / output mode. Therefore, for distributed shared persistent memory allocation, it is necessary to use thin configuration. The client node 102 supports access to non-contiguous logical space and reads the logical address. In addition, the client node 102 reads the logical address that has not been allocated and returns a value of 0. In one example, the value 0 corresponds to a logical address that is not allocated, which is conducive to executing the application.

[0072] In step 502, method 500 includes receiving state information from at least one of the storage nodes. The state information includes a utilization and a timestamp of a most recent operation. Each of the plurality of storage nodes 106 stores state information (or a cache table) of a virtual persistent memory allocation unit. In one example, the state information corresponds to a storage node cache 318A, which is Figure 3. In one implementation, the status information refers to a mapping from a logical node to multiple storage nodes 106, and the addition of a utilization (or "utilization hint") and a timestamp (or "timestamp" column) of the most recent operation. In one implementation, the utilization hint refers to the last seen utilization of each coarse gain allocation unit (CGAU) provided between storage nodes. In a further implementation, the timestamp refers to the time when each CGAU was last updated. In one example, the value is updated when an allocation or release request is sent to the memory controller 104. In one implementation, the status information is updated after each expiration time, which refers to the time when the old value corresponding to the remote address is reset to an unknown state. In one example, the expiration time can be set to 1 hour.

[0073] In step 504, the method 500 includes receiving a memory allocation request from an application. In one implementation, one or more application host nodes 108 request a memory allocation from the memory controller 104. Thereafter, the memory controller 104 selects a storage node from a plurality of storage nodes 106 that can perform the allocation based on various selection criteria (i.e., a first subset and a second subset). Thereafter, based on the selection of the storage node, the memory controller 104 is further configured to perform an attempt to perform the memory allocation in the selected storage node. For example, the memory controller 104 is configured to perform the memory allocation in the storage node 106A.

[0074] According to one embodiment, the method 500 also includes receiving a hint from at least one of the storage nodes 106. In one implementation, the client node 102 stores a VPM table in a virtual persistent memory cache. The VPM table includes an allocation hint in one of its columns, wherein the allocation hint refers to a hint provided by at least one of the storage nodes (e.g., provided by the storage node 106A) when the memory controller 104 receives an allocation request. In one example, the storage node 106A also provides an allocation hint based on a previous memory allocation. Thereafter, the memory controller 104 is configured to attempt to perform a memory allocation based on the allocation hint. In one example, if the attempt based on the received hint is unsuccessful, the memory controller 104 selects a first subset for memory allocation.

[0075] In method 506, method 500 includes selecting storage nodes whose utilization is between a lower utilization threshold and an upper utilization threshold and whose timestamp is less than the timestamp threshold as a first subset. In one example, the utilization of the selected storage node can be set between the lower utilization threshold (e.g., 50% of the total value) and the upper utilization threshold (e.g., up to 99% of the total value). In one implementation, the utilization of the selected storage node (e.g., storage node 106A) can have other different possible values ​​of the lower utilization threshold and the upper utilization threshold, without limiting the scope of the present invention. In addition, the timestamp of the selected storage node can include storage nodes whose utilization is between the lower utilization threshold and the upper utilization threshold and a timestamp less than the timestamp threshold. In one example, the timestamp threshold can correspond to an outdated time value, and the outdated time value can be set to 1 hour. In one implementation, the timestamp threshold can have other possible values, without limiting the scope of the present invention.

[0076] In step 508, the method 500 also includes attempting to allocate memory from storage nodes in the first subset. In other words, the first subset includes storage nodes whose utilization is between a lower utilization threshold and an upper utilization threshold and whose timestamp is less than a timestamp threshold. Therefore, the memory controller 104 is used to attempt to allocate memory from storage nodes in the first subset. For example, if the storage node 106A and the storage node 106B are present in the first subset, the memory controller 104 is used to attempt to allocate memory from the storage nodes 106A to 106B.

[0077] According to one embodiment, method 500 also includes attempting to allocate memory from storage nodes in the subset in a round-robin manner. In one example, round-robin refers to the allocation of resources between multiple storage nodes 106. Resource allocation can be based on the weight (or required space) of the resources. However, memory allocation can be performed in any other possible manner, for example, based on a minimum timestamp, etc., without limiting the scope of the present invention.

[0078] According to one embodiment, method 500 also includes determining that memory allocation from a storage node in the first subset is unsuccessful. Therefore, in response to this, the method selects storage nodes whose utilization is less than a utilization lower threshold or greater than a utilization upper threshold as the second subset. In other words, the second subset includes storage nodes whose utilization is less than a utilization lower threshold or greater than a utilization upper threshold. In addition, if the memory controller 104 determines that memory allocation from a storage node in the first subset is unsuccessful, the memory controller 104 is used to attempt memory allocation from a storage node in the second subset.

[0079] In another implementation, method 500 also includes determining that memory allocation from the storage nodes in the first subset is unsuccessful. Therefore, in response to this, method 500 includes selecting storage nodes whose timestamps are greater than a timestamp threshold as the second subset. In one example, the timestamp threshold may correspond to an expiration time (e.g., one hour). In addition, the expiration time may have other different possible values ​​without limiting the scope of the present invention. In addition, method 500 includes: attempting to perform memory allocation from a storage node in the second subset node (e.g., storage node 106A) in the second subset based on a timestamp greater than the timestamp threshold.

[0080] In another implementation, method 500 includes determining that memory allocation from a storage node in a first subset is unsuccessful, and in response thereto, selecting a storage node whose utilization is less than a utilization lower limit threshold or greater than a utilization upper limit threshold and whose timestamp is greater than a timestamp threshold as a second subset. In one example, the selected storage node (e.g., storage node 106A) corresponds to a storage node whose utilization is less than a utilization lower limit threshold and whose timestamp is greater than a timestamp threshold. In another example, the selected storage node (e.g., storage node 106B) corresponds to a storage node whose utilization is greater than a utilization upper limit threshold and whose timestamp is greater than a timestamp threshold. In addition, if the memory controller 104 determines that memory allocation from a storage node in the first subset is unsuccessful, the memory controller 104 is used to attempt memory allocation from a storage node in a second subset. For example, if storage node 106A and storage node 106B are in the second subset, the memory controller 104 is used to attempt memory allocation from storage node 106A and storage node 106B.

[0081] In one implementation form, the method 500 includes: determining that memory allocation from the storage nodes in the first subset is unsuccessful, and in response thereto, selecting the remaining storage nodes as the second subset. In addition, the method 500 includes attempting memory allocation from the storage nodes in the second subset. In other words, the remaining storage nodes correspond to storage nodes whose utilization and timestamp values ​​are outside the range for which the memory controller 104 has attempted memory allocation. The range may include, but is not limited to: a utilization of a lower utilization threshold, or a utilization greater than an upper utilization threshold, or a timestamp greater than a timestamp threshold, or any combination of the above utilizations and timestamps. In addition, if the memory controller 104 determines that memory allocation from the storage nodes in the first subset is unsuccessful, the memory controller 104 is used to attempt memory allocation from the storage nodes in the second subset.

[0082] According to one embodiment, method 500 includes determining that memory allocation from a storage node in the second subset is unsuccessful, and in response thereto, determining that there are one or more storage nodes for which status information has not yet been received. In one example, if the status information of a storage node such as storage node 106A is not received by memory controller 104, the state of storage node 106A is referred to as an unknown state. In one implementation, the unknown state of a storage node may be due to the fact that the storage node has not been allocated for a long time, and the storage node is, for example, storage node 106A. Memory controller 104 is also used to select such storage nodes as a third subset. Thereafter, memory controller 104 is used to attempt to allocate memory from storage nodes in the third subset.

[0083] According to one embodiment, the method 500 also includes determining that the attempted memory allocation is unsuccessful, and in response thereto, allocating a new storage node and attempting to allocate memory from the new storage node. First, the memory controller 104 searches for the new storage node after updating the VPM cache table. Thereafter, the memory controller 104 determines that if there are any storage nodes that have not performed the allocation attempt, the memory controller 104 determines that there are no storage nodes that can perform the allocation. Thereafter, the memory controller 104 allocates the new storage node for further memory allocation. The memory controller 104 may also attempt to perform memory allocation.

[0084] Steps 502 to 508 are merely illustrative, and other alternatives may be provided in which one or more steps are added, one or more steps are deleted, or one or more steps are provided in a different order without departing from the scope of the claims herein.

[0085] Without departing from the scope of the invention as defined by the appended claims, the embodiments of the invention described above may be modified. Expressions such as "including", "combined with", "having", "is / is" etc. used to describe and claim the present invention are intended to be interpreted in a non-exclusive manner, that is, support that items, components or elements not explicitly described also exist. References to the singular should also be interpreted as involving the plural. The word "exemplary" used herein means "as an example, instance or illustration". Any embodiment described as "exemplary" is not necessarily interpreted as being more preferred or more advantageous than other embodiments, nor is it necessarily excluded from the combination of the features of other embodiments. The word "optionally" used herein means "provided in some embodiments and not provided in other embodiments". It should be understood that certain features of the present invention described in the context of a separate embodiment for the sake of clarity may also be provided in a single embodiment by merging. On the contrary, the various features of the present invention described in the context of a single embodiment for the sake of brevity may also be provided separately, in any appropriate combination, or suitable for any other described embodiment of the present invention.

Claims

1. A memory controller (104) for a client node (102), characterized in that: The memory controller (104) is operable to connect to: a plurality of storage nodes (106), wherein each storage node includes a memory and a local allocator, One or more application host nodes (108), wherein: The client node (102) is used to execute an application on at least one of the application host nodes, wherein the memory controller (104) is used to: receiving status information from at least one of the storage nodes, wherein the status information includes a utilization and a timestamp of a most recent operation; receiving a memory allocation request from the application; Selecting storage nodes whose utilization is between a utilization lower limit threshold and a utilization upper limit threshold and whose timestamp is less than a timestamp threshold as a first subset; Memory allocation is attempted from storage nodes in the first subset.

2. The memory controller (104) according to claim 1, characterized in that: The memory controller (104) is configured to determine that the memory allocation from the storage nodes in the first subset is unsuccessful, and in response thereto, Selecting storage nodes whose utilization is less than a utilization lower limit threshold or greater than a utilization upper limit threshold as a second subset; An attempt is made to allocate memory from storage nodes in the second subset.

3. The memory controller (104) according to claim 1, characterized in that: The memory controller (104) is configured to determine that the memory allocation from the storage nodes in the first subset is unsuccessful, and in response thereto, Select storage nodes whose timestamps are greater than a timestamp threshold as the second subset; An attempt is made to allocate memory from storage nodes in the second subset.

4. The memory controller (104) according to claim 1, characterized in that: The memory controller (104) is configured to determine that the memory allocation from the storage nodes in the first subset is unsuccessful, and in response thereto, Selecting storage nodes whose utilization is less than a utilization lower limit threshold or greater than a utilization upper limit threshold and whose timestamp is greater than a timestamp threshold as a second subset; An attempt is made to allocate memory from storage nodes in the second subset.

5. The memory controller (104) according to claim 1, characterized in that: The memory controller (104) is configured to determine that the memory allocation from the storage nodes in the first subset is unsuccessful, and in response thereto, Select the remaining storage nodes as the second subset; An attempt is made to allocate memory from storage nodes in the second subset.

6. The memory controller (104) according to any one of claims 2 to 5, characterized in that: The memory controller (104) is configured to determine that the memory allocation from the storage nodes in the second subset is unsuccessful, and in response thereto, determining that there are one or more storage nodes for which state information has not yet been received, and selecting these storage nodes as a third subset; Memory allocation is attempted from storage nodes in the third subset.

7. The memory controller (104) according to any one of the above claims, characterized in that: The memory controller (104) is used for attempting to allocate memory from storage nodes in the subset in a round-robin manner.

8. The memory controller (104) according to any one of the preceding claims, characterized in that: The memory controller (104) is further configured to: receiving a hint from at least one of the storage nodes, Memory allocation is attempted according to the hint, and if the attempt according to the hint is unsuccessful, the first subset is selected.

9. The memory controller (104) according to any one of the preceding claims, characterized in that: The memory controller (104) is further configured to determine that the attempted memory allocation was unsuccessful, and in response thereto, allocate a new storage node and attempt to perform the memory allocation from the new storage node.

10. A method (500) for allocating memory in a memory controller (104) for a client node, characterized in that: The memory controller (104) is operable to connect to: a plurality of storage nodes (106), wherein each storage node includes a memory and a local allocator, one or more application host nodes (108), The client node (102) is used to execute an application on at least one of the application host nodes, wherein the method (500) comprises: receiving status information from at least one of the storage nodes, wherein the status information includes a utilization and a timestamp of a most recent operation; receiving a memory allocation request from the application; Selecting storage nodes whose utilization is between a utilization lower limit threshold and a utilization upper limit threshold and whose timestamp is less than a timestamp threshold as a first subset; Memory allocation is attempted from storage nodes in the first subset.

11. The method (500) according to claim 10, characterized in that: The method (500) further includes determining that the memory allocation from the storage nodes in the first subset was unsuccessful, and in response thereto, Selecting storage nodes whose utilization is less than a utilization lower limit threshold or greater than a utilization upper limit threshold as a second subset; An attempt is made to allocate memory from storage nodes in the second subset.

12. The method (500) according to claim 10 or 11, characterized in that: The method (500) further includes determining that the memory allocation from the storage nodes in the first subset was unsuccessful, and in response thereto, Select storage nodes whose timestamps are greater than a timestamp threshold as the second subset; An attempt is made to allocate memory from storage nodes in the second subset.

13. The method (500) according to claim 10, 11 or 12, characterized in that: The method (500) further includes determining that the memory allocation from the storage nodes in the first subset was unsuccessful, and in response thereto, Selecting storage nodes whose utilization is less than a utilization lower limit threshold or greater than a utilization upper limit threshold and whose timestamp is greater than a timestamp threshold as a second subset; An attempt is made to allocate memory from storage nodes in the second subset.

14. The method (500) according to any one of claims 10 to 13, characterized in that: The method (500) further includes determining that the memory allocation from the storage nodes in the first subset was unsuccessful, and in response thereto, Select the remaining storage nodes as the second subset; An attempt is made to allocate memory from storage nodes in the second subset.

15. The method (500) according to any one of claims 11 to 14, characterized in that The method (500) further includes determining that the memory allocation from the storage nodes in the second subset was unsuccessful, and in response thereto, determining that there are one or more storage nodes for which state information has not yet been received, and selecting these storage nodes as a third subset; Memory allocation is attempted from storage nodes in the third subset.

16. The method (500) according to any one of claims 10 to 15, characterized in that: The method (500) also includes attempting to allocate memory from storage nodes in the subset in a round-robin manner.

17. The method (500) according to any one of claims 10 to 16, characterized in that: The method (500) further comprises: receiving a hint from at least one of the storage nodes, Memory allocation is attempted according to the hint, and if the attempt according to the hint is unsuccessful, the first subset is selected.

18. The method (500) according to any one of claims 10 to 17, characterized in that: The method (500) also includes determining that the attempted memory allocation was unsuccessful, and in response thereto, allocating a new storage node and attempting the memory allocation from the new storage node.