Method, device and system for accessing memory

A memory access and memory technology, applied in the network field, can solve the problems of increased communication delay, large communication delay, and low RDMA operation efficiency.

Active Publication Date: 2013-07-31
HUAWEI TECH CO LTD
View PDF6 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In the process of realizing the present invention, the inventor found that the prior art has at least the following disadvantages: due to the low efficiency of the RDMA sending operation, in the former implementation mode, both parties in the communication send the request or the request result to the other party through the RDMA send

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method, device and system for accessing memory
  • Method, device and system for accessing memory
  • Method, device and system for accessing memory

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0114] Please refer to figure 2 , which shows a method flowchart of the memory access method provided by Embodiment 1 of the present invention. In this embodiment, the memory access method is mainly used for figure 1 This is exemplified in the sending node in the implementation environment shown. The memory access methods include:

[0115] Step 201, the sending node selects a currently used token from a pre-stored token set;

[0116] The sending node selects the currently used token from a pre-stored token set, the token set includes at least one token, and each token points to an area in the receiving memory of the receiving node;

[0117] In step 202, the sending node sends a remote direct memory access RDMA write operation instruction to the receiving node, and the RDMA write operation instruction carries the data to be sent, the location information of the area in the receiving memory of the receiving node pointed to by the current usage token, and the current usage. ...

Embodiment 2

[0121] Please refer to image 3 , which shows a method flowchart of the memory access method provided by the second embodiment of the present invention. In this embodiment, the memory access method is mainly used for figure 1 For example, the receiving node in the illustrated implementation environment. The memory access methods include:

[0122] Step 301, the receiving node receives the remote direct memory access RDMA write operation instruction sent by the sending node, the RDMA write operation instruction carries the data to be sent, the location information of the area in the receiving memory of the receiving node pointed to by the current use token, and the current location information. the token number of the token used;

[0123] The currently used token is selected by the sending node from a pre-stored token set, and each token in the token set points to an area in the receiving memory of the receiving node respectively. The location information may be the starting...

Embodiment 3

[0130] Please refer to Figure 4 , which shows a method flowchart of the memory access method provided by Embodiment 3 of the present invention. In this embodiment, the memory access method is mainly used for figure 1 A memory access system including a sending node and a receiving node is shown as an example. The memory access methods include:

[0131] Step 401, the receiving node creates a receiving memory;

[0132] The receiving node divides a memory area in the local memory as the receiving memory required during the RDMA operation, and the receiving memory is used to store the data written by the sending node. For example, the receiving node divides a memory space with a size of 100KB in the local memory as the receiving memory, which is used to store the data written by the sending node.

[0133] Step 402, the receiving node creates a token, and allocates a receiving memory area for each token;

[0134] The receiving node creates tokens and allocates receiving memory f...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method, device and system for accessing memory, and belongs to the field of network technology. The method comprises the following steps: a sending node selects a current using token from prestored tokens in a centralized manner; an RDMA (Remote Direct Memory Access) written operating instruction is sent to a receiving node, wherein the RDMA written operating instruction carries to-be-sent data, information of the position which the current using token points to and a token number of the current using token to enable the receiving node to receive the RDMA written operating instruction conveniently; and the data is processed according to the token number of the current using token. According to the invention, the RDMA written operating instruction carries the token number of the current using token, and the sending node just needs to send the RDMA written operating instruction once to perform direct memory access to the receiving node, so that communication delay in the process of RDMA is reduced, and the communication efficiency is improved.

Description

technical field [0001] The present invention relates to the field of network technologies, and in particular, to a memory access method, device and system. Background technique [0002] RDMA (Remote Direct Memory Access, Remote Direct Memory Access) technology allows direct memory access across hosts, reduces the number of times data is copied in memory, and does not require CPU participation when sending data, thereby reducing data transmission. delay in the process. [0003] RDMA operations include RDMA write operations, RDMA read operations, and RDMA transmit operations. Among them, the RDMA write operation and the RDMA read operation need to exchange the memory addresses of the two communication parties before execution, so that the RDMA write operation and the RDMA read operation can directly write data or read data from the memory of the other party; There is no need to exchange memory addresses between the communicating parties. Specifically, when performing an RDM...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L29/06H04L29/08G06F13/28
CPCG06F13/28
Inventor 程广卫李健
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products