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 memory unit corresponding to the local node meets the memory demand information;
determining, when the memory unit corresponding to the local node of the processor meets the memory demand information, a memory controller meeting the memory demand information and in the local node according to the memory demand information and first management information corresponding to the local node, wherein the first management information comprises an identifier of a memory controller in the local node and memory attribute information of the memory controller;
determining at least one piece of second management information corresponding to the memory controller according to the identifier of the memory controller meeting the memory demand information, and determining a memory management area meeting the memory demand information and in the memory controller according to the memory demand information and the at least one piece of second management information, wherein the second management information comprises an identifier of a memory unit corresponding to the memory controller and attribute information of the memory unit; and
allocating memory space corresponding to the memory management area to the processor according to an identifier of the memory management area meeting the memory demand information.
1 Assignment
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 memory unit corresponding to the local node meets the memory demand information; determining, when the memory unit corresponding to the local node of the processor meets the memory demand information, a memory controller meeting the memory demand information and in the local node according to the memory demand information and first management information corresponding to the local node, wherein the first management information comprises an identifier of a memory controller in the local node and memory attribute information of the memory controller; determining at least one piece of second management information corresponding to the memory controller according to the identifier of the memory controller meeting the memory demand information, and determining a memory management area meeting the memory demand information and in the memory controller according to the memory demand information and the at least one piece of second management information, wherein the second management information comprises an identifier of a memory unit corresponding to the memory controller and attribute information of the memory unit; and allocating memory space corresponding to the memory management area to the processor according to an identifier of the memory management area meeting the memory demand information. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A memory management apparatus, comprising:
-
a first receiving module, configured to receive a memory allocation request message sent by a 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 processor, whether a memory unit corresponding to the local node meets the memory demand information; a memory controller management module, configured to, when the memory unit corresponding to the local node of the processor meets the memory demand information, determine a memory controller meeting the memory demand information and in the local node according to the memory demand information and first management information corresponding to the local node, wherein the first management information comprises an identifier of a memory controller in the local node and memory attribute information of the memory controller, and send the identifier of the memory controller meeting the memory demand information to a memory management area management module; the memory management area management module, configured to receive the identifier of the memory controller meeting the memory demand information and sent by the memory controller management module, determine at least one piece of second management information corresponding to the memory controller according to the identifier of the memory controller, determine a memory management area meeting the memory demand information and in the memory controller according to the memory demand information and the at least one piece of second management information, wherein the second management information comprises an identifier of a memory unit corresponding to the memory controller and attribute information of the memory unit, and send an identifier of the memory management area meeting the memory demand information to a memory allocation module; and the memory allocation module, configured to receive the identifier of the memory management area meeting the memory demand information and sent by the memory management area management module, and allocate memory space corresponding to the memory management area to the processor according to the identifier of the memory management area. - 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 a 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 processor, whether a memory unit corresponding to the local node meets the memory demand information; determine, when the memory unit corresponding to the local node of the processor meets the memory demand information, a memory controller meeting the memory demand information and in the local node according to the memory demand information and first management information corresponding to the local node, wherein the first management information comprises an identifier of a memory controller in the local node and memory attribute information of the memory controller; determine at least one piece of second management information corresponding to the memory controller according to the identifier of the memory controller meeting the memory demand information, and determining a memory management area meeting the memory demand information and in the memory controller according to the memory demand information and the at least one piece of second management information, wherein the second management information comprises an identifier of a memory unit corresponding to the memory controller and attribute information of the memory unit; and allocate memory space corresponding to the memory management area to the processor according to an identifier of the memory management area meeting the memory demand information. - View Dependent Claims (19, 20)
-
Specification