hottub.patents
US 12,775,378 B2#3098869 Most CitedActiveUnited States (USPTO)Utility

Memory access based on virtual address communication

0Forward Citations (#3098869 Global)
0.0/yrCitation Velocity (#3098869 Global)
0.00Citation PageRank (#3098869 Global)
17Prior Art Cited
20Claims (3 Indep. · 17 Dep.)
14Drawings / Sheets

Abstract

In a memory access method, a receiver receives a memory access message from a sender in advance, determines an address of the receiver that is used to access a memory of the sender, and determines a mapping relationship between a virtual address and a corresponding physical address. Thus, provided the address of the receiver that is used to access a memory of the sender is registered with a memory region, the receiver may access a memory of the sender.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 17 · Forward citations: 0.

Claims (20 — 3 Independent, 17 Dependent)

  1. Claim 1Independent Claim

    A method implemented by a receiver and comprising: receiving, from a sender, a memory access message comprising a sender virtual address of the sender and a receiver virtual address of the receiver; making a determination that the receiver virtual address is in a page fault state and that access data make up an entire page; allocating, after receiving the memory access message, and in response to the determination, a new page in a second memory of the receiver for writing the access data; and accessing a first memory of the sender based on a sender physical address of the sender, a receiver physical address of the receiver, a first mapping relationship mapping the sender virtual address to the sender physical address, and a second mapping relationship mapping the receiver virtual address to the receiver physical address.

  2. Claim 2Depends on #1

    The method of claim 1, wherein accessing the first memory comprises fetching data corresponding to the sender virtual address into the receiver virtual address.

  3. Claim 3Depends on #1

    The method of claim 1, wherein the access data correspond to the receiver virtual address, and wherein accessing the first memory comprises writing the access data into the sender virtual address.

  4. Claim 4Depends on #1

    The method of claim 1, further comprising unbinding, after accessing the first memory, the second mapping relationship.

  5. Claim 5Depends on #4

    The method of claim 4, further comprising sending, after accessing the first memory, an access complete message to the sender to prompt the sender to unbind the first mapping relationship.

  6. Claim 6Depends on #1

    The method of claim 1, further comprising determining the second mapping relationship.

  7. Claim 7Depends on #6

    The method of claim 6, further comprising further determining the second mapping relationship independently of components external to the receiver.

  8. Claim 8Depends on #6

    The method of claim 6, wherein determining the second mapping relationship comprises: temporarily pinning the sender virtual address to the sender physical address; and configuring a virtual-physical address mapping table of a sender network interface card of the sender to allow a receiver network interface card of the receiver to read the sender virtual address and to prevent the sender virtual address from being swapped out when the receiver network interface card accesses the sender.

  9. Claim 9Independent Claim

    A method implemented by a sender and comprising: obtaining a memory access message comprising a sender virtual address of the sender and a receiver virtual address of a receiver; making a determination that a first data size of first access data corresponding to the sender virtual address or a second data size of second access data corresponding to the receiver virtual address is greater than a preset threshold; determining, in response to the determination, a first mapping relationship mapping the sender virtual address to a sender physical address; and sending the memory access message to the receiver to prompt the receiver to access a memory of the sender based on the sender physical address of the sender, a receiver physical address of the receiver, the first mapping relationship, and a second mapping relationship mapping the receiver virtual address to the receiver physical address.

  10. Claim 10Depends on #9

    The method of claim 9, further comprising receiving, after sending the memory access message, an access complete message from the receiver.

  11. Claim 11Depends on #10

    The method of claim 10, further comprising unbinding the first mapping relationship in response to the access complete message.

  12. Claim 12Depends on #9

    The method of claim 9, further comprising avoiding, in response to the determination, copying the first access data to a send buffer of the sender.

  13. Claim 13Independent Claim

    A receiver comprising: one or more processors configured to execute a program code to cause the receiver to: receive, from a sender, a memory access message comprising a sender virtual address of the sender and a receiver virtual address of the receiver; make a determination that the receiver virtual address is in a page fault state and that access data make up an entire page; allocate, after receiving the memory access message, and in response to the determination, a new page in a second memory of the receiver for writing the access data; and access a first memory of the sender based on a sender physical address of the sender, a receiver physical address of the receiver, a first mapping relationship mapping the sender virtual address to the sender physical address, and a second mapping relationship mapping the receiver virtual address to the receiver physical address.

  14. Claim 14Depends on #13

    The receiver of claim 13, wherein the one or more processors are further configured to execute the program code to cause the receiver to access the first memory by fetching data corresponding to the sender virtual address into the receiver virtual address.

  15. Claim 15Depends on #13

    The receiver of claim 13, wherein the access data correspond to the receiver virtual address, and wherein the one or more processors are further configured to execute the program code to cause the receiver to further access the first memory by writing the access data into the sender virtual address.

  16. Claim 16Depends on #13

    The receiver of claim 13, wherein the one or more processors are further configured to execute the program code to cause the receiver to unbind, after accessing the first memory, the second mapping relationship.

  17. Claim 17Depends on #16

    The receiver of claim 16, wherein the one or more processors are further configured to execute the program code to cause the receiver to send, after accessing the first memory, an access complete message to the sender to prompt the sender to unbind the first mapping relationship.

  18. Claim 18Depends on #13

    The receiver of claim 13, wherein the one or more processors are further configured to execute the program code to cause the receiver to determine the second mapping relationship.

  19. Claim 19Depends on #18

    The receiver of claim 18, wherein the one or more processors are further configured to execute the program code to cause the receiver to further determine the second mapping relationship independently of components external to the receiver.

  20. Claim 20Depends on #18

    The receiver of claim 18, wherein the one or more processors are further configured to execute the program code to cause the receiver to further determine the second mapping relationship by: temporarily pinning the sender virtual address to the sender physical address; and configuring a virtual-physical address mapping table of a sender network interface card of the sender to allow a receiver network interface card of the receiver to read the sender virtual address and to prevent the sender virtual address from being swapped out when the receiver network interface card accesses the sender.

Technical Overview & Description

CROSS-REFERENCE TO RELATED APPLICATIONS This is a continuation of Int'l Patent App. No. PCT/CN2023/095220, filed on May 19, 2023, which claims priority to Chinese Patent App. No. 202210587433.6, filed on May 26, 2022, both of which are incorporated by reference. FIELD Embodiments relate to the communication field, and in particular, to a memory access method and a related device. BACKGROUND In a data center network, remote memory access may be performed between servers, that is, remote exchange of memory data is implemented by using network interface cards of the servers. In an existing remote memory access technology, for example, remote direct memory access (RDMA), a server first allocates a memory region in its memory, and then registers memory data corresponding to a virtual address with the memory region. The memory data in the memory region is a physical address. This implements pinning of a mapping relationship between the virtual address and the physical address of the memory data (referred to as memory pinning). Consequently, a network interface card may directly access the memory via a corresponding physical address obtained through virtual address mapping. However, it takes long time to register excessive memory data with the memory region, which causes slow initialization of an application program of the server. In addition, registered memory data may not be used in a subsequent access process, and consequently, memory space is occupied by the idle memory data. SUMMARY Embodiments provide a memory access method and a related device, to avoid slow initialization of an application program, and prevent memory space from being occupied by idle memory data during memory access. Embodiments further provide a corresponding server, a computer-readable storage medium, a chip system, and the like. According to a first aspect, a memory access method includes: A receiver receives a memory access message from a sender. The memory access message includes a sender virt

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

Non-Patent Literature (1)

  • Aniruddha G. Shet et al., Characterization of Computation-Communication Overlap in Message-Passing Systems, Feb. 14, 2008, total 22 pages.