Memory management method, memory management apparatus and NUMA system
First Claim
1. A memory management method, comprising:
- receiving a memory allocation request message sent by a processor, wherein the memory allocation request message comprises memory demand information;
determining, according to the memory demand information and memory attribute information of a local node of the processor, whether a first memory unit corresponding to the local node meets the memory demand information;
determining, when the first memory unit does not meet the memory demand information, a node group meeting the memory demand information according to the memory demand information and third management information, wherein the third management information comprises an identifier of the node group and memory attribute information of the node group; and
determining fourth management information corresponding to the node group according to the identifier of the node group meeting the memory demand information, and determining that a node which is comprised in the node group meets the memory demand information according to the memory demand information and the fourth management information, wherein the fourth management information comprises an identifier of the node in the node group and memory attribute information of the node.
0 Assignments
0 Petitions
Accused Products
Abstract
Embodiments of the present invention provide a memory management method, a memory management apparatus and a NUMA system. The memory management method includes: determining, according to a memory demand information which includes memory demand information sent by a processor, whether a memory controller meeting the memory demand information exists in a local processing node which the processor; and if exists, determining, in the memory controller meeting the memory demand information, a memory management area meeting the memory demand information, and allocating the memory management area meeting the memory demand information to the processor. Therefore, the memory controller and the memory management area do not need to be determined in a processing node that does not meet the requirements, which can rapidly find a storing area meeting the requirements, and improve the memory allocation efficiency.
-
Citations
20 Claims
-
1. A memory management method, comprising:
-
receiving a memory allocation request message sent by a processor, wherein the memory allocation request message comprises memory demand information; determining, according to the memory demand information and memory attribute information of a local node of the processor, whether a first memory unit corresponding to the local node meets the memory demand information; determining, when the first memory unit does not meet the memory demand information, a node group meeting the memory demand information according to the memory demand information and third management information, wherein the third management information comprises an identifier of the node group and memory attribute information of the node group; and determining fourth management information corresponding to the node group according to the identifier of the node group meeting the memory demand information, and determining that a node which is comprised in the node group meets the memory demand information according to the memory demand information and the fourth management information, wherein the fourth management information comprises an identifier of the node in the node group and memory attribute information of the node. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A memory management apparatus, comprising a processor and a non-transitory processor-readable medium having processor-executable instructions stored thereon, the processor-executable instructions including a plurality of modules, the modules including:
-
a first receiving module, configured to receive a memory allocation request message sent by another processor, wherein the memory allocation request message comprises memory demand information, and send the memory allocation request message to a node management module; the node management module, configured to receive the memory allocation request message sent by the first receiving module, and determine, according to the memory demand information in the memory allocation request message and memory attribute information of a local node of the another processor, whether a memory unit corresponding to the local node meets the memory demand information; a node group management module, configured to, when the memory unit corresponding to the local node of the processor does not meet the memory demand information, determine a node group meeting the memory demand information according to the memory demand information and fifth management information, wherein the fifth management information comprises an identifier of the node group and memory attribute information of the node group; and the node management module is further configured to determine sixth management information corresponding to the node group according to the identifier of the node group meeting the memory demand information, and determine that a node which is comprised in the node group meets the memory demand information according to the memory demand information and the sixth management information, wherein the sixth management information comprises an identifier of the node in the node group and memory attribute information of the node. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17)
-
-
18. A non-transitory computer-readable medium having computer usable instructions stored thereon for execution by a processor, wherein the instructions cause the processor to:
-
receive a memory allocation request message sent by another processor, wherein the memory allocation request message comprises memory demand information; determine, according to the memory demand information and memory attribute information of a local node of the another processor, whether a memory unit corresponding to the local node meets the memory demand information; determining, when the memory unit does not meet the memory demand information, a node group meeting the memory demand information according to the memory demand information and third management information, wherein the third management information comprises an identifier of the node group and memory attribute information of the node group; and determining fourth management information corresponding to the node group according to the identifier of the node group meeting the memory demand information, and determining that a node which is comprised in the node group meets the memory demand information according to the memory demand information and the fourth management information, wherein the fourth management information comprises an identifier of the node in the node group and memory attribute information of the node. - View Dependent Claims (19, 20)
-
Specification