Memory management method, apparatus, and system
First Claim
1. A method comprising:
- sending, by a contributing node to a control center, a start physical address and a length of a remote memory provided by the contributing node;
receiving, by the contributing node, information for a first remote memory from the control center indicating that the contributing node has been selected by the control center to provide remote memory to a requesting node, wherein the selection is based on the start physical address of the remote memory, the length of the remote memory, and a length of memory required by the requesting node; and
providing, by the contributing node, the first remote memory for use by the requesting node, wherein a length of the first remote memory is greater than or equal to the length of the memory required by the requesting node;
receiving, by the contributing node, a read or write instruction from the requesting node for reading or writing first data, respectively, wherein a pointer of the first data points to a virtual address within a range of a first virtual address of the requesting node, the first virtual address corresponding to the first remote memory, wherein the instruction instructs the contributing node to access the first data and indicates a storage space for storing the first data in the first remote memory; and
accessing, by the contributing node, the first data according to the instruction and the indicated storage space.
1 Assignment
0 Petitions
Accused Products
Abstract
A memory management method implemented by a requesting node includes sending first indication information used for indicating a length of memory required by the requesting node and receiving second indication information used for indicating first remote memory provided to the requesting node by a target contributing node in at least one contributing node that can provide remote memory. The method also includes determining, from available virtual addresses, a first virtual address corresponding to the first remote memory, and sending a first data read/write instruction for the first data when first data whose pointer is within a range of the first virtual address needs to be read/written, where the first data read/write instruction includes third indication information, and the third indication information is used for indicating storage space, for storing the first data, in the first remote memory.
-
Citations
3 Claims
-
1. A method comprising:
-
sending, by a contributing node to a control center, a start physical address and a length of a remote memory provided by the contributing node; receiving, by the contributing node, information for a first remote memory from the control center indicating that the contributing node has been selected by the control center to provide remote memory to a requesting node, wherein the selection is based on the start physical address of the remote memory, the length of the remote memory, and a length of memory required by the requesting node; and providing, by the contributing node, the first remote memory for use by the requesting node, wherein a length of the first remote memory is greater than or equal to the length of the memory required by the requesting node; receiving, by the contributing node, a read or write instruction from the requesting node for reading or writing first data, respectively, wherein a pointer of the first data points to a virtual address within a range of a first virtual address of the requesting node, the first virtual address corresponding to the first remote memory, wherein the instruction instructs the contributing node to access the first data and indicates a storage space for storing the first data in the first remote memory; and accessing, by the contributing node, the first data according to the instruction and the indicated storage space.
-
-
2. A contributing node in a memory management system, the contributing node comprising:
-
a memory comprising instructions; and one or more processors in communication with the memory, wherein the one or more processors execute the instructions to; send a start physical address and a length of a remote memory provided by the contributing node to a control center; receive information for a first remote memory from the control center indicating that the contributing node has been selected by the control center to provide remote memory to a requesting node, wherein the selection is based on the start physical address of the remote memory, the length of the remote memory, and a length of memory required by the requesting node; and provide the first remote memory for use by the requesting node, wherein a length of the first remote memory is greater than or equal to the length of the memory required by the requesting node; receive a first data read or write instruction from the requesting node for reading or writing first data, respectively, wherein a pointer of the first data points to a virtual address within a range of a first virtual address of the requesting node, the first virtual address corresponding to the first remote memory, wherein the instruction instructs the contributing node to access the first data and indicates storage space, for storing the first data, in the first remote memory; and access the first data according to the instruction and the indicated storage space.
-
-
3. A system comprising:
-
a requesting node; a contributing node; and a control center; wherein the requesting node is configured to send a length of memory required by the requesting node to the control center; the contributing node is configured to send a start physical address and a length of a remote memory provided by the contributing node to the control center; the control center is configured to select the contributing node to provide a first remote memory to the requesting node according to the start physical address of the remote memory, the length of the remote memory, and a length of memory required by the requesting node, and send information for the first remote memory to the contributing node and the requesting node; and the contributing node is further configured to provide the first remote memory for use by the requesting node based on the information for the first remote memory received from the control center, wherein a length of the first remote memory is greater than or equal to the length of the memory required by the requesting node; the requesting node is further configured to determine, from available virtual addresses, a first virtual address corresponding to the first remote memory, and send a read or write instruction for reading or writing first data, respectively, wherein a pointer of the first data points to a virtual address within a range of the first virtual address of the requesting node, wherein the instruction instructs the contributing node to access the first data and indicates a storage space for storing the first data in the first remote memory; and the contributing node is further configured to access the first data according to the read or write instruction and the storage space indicated in the read or write instruction.
-
Specification