System and method for one-sided read RMA using link queues

By designing a one-sided reading mechanism in the RMA system and using SFA and SGL for automatic data transmission and error processing, the problem of degradation in the performance of RMA system in the prior art is solved, and efficient data transmission and resource management are achieved.

CN118975212AInactive Publication Date: 2024-11-15ENFABRICA CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380030470.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-01-26
Filing Date
2023-01-26
Publication Date
2024-11-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When existing high-performance networks use Remote Memory Access (RMA), both ends of data transmission need to be coordinated, resulting in additional latency and network resource usage, and the responder host is not notified to complete, resulting in network and system performance degradation.

Method used

Design a single-sided read RMA system to reduce the memory mapping by receiving read requests at the Responder Server Structure Adapter (SFA), using a distributed aggregation table (SGL), and transmitting read response packets to the requester host. Software intervention to realize automatic data push and error handling.

Benefits of technology

Reduces network latency and CPU overhead, avoids the host from falling into bottlenecks, improves data transmission rate and throughput, and allows local memory management and resource release, improving network and system performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118975212A_ABST
    Figure CN118975212A_ABST
Patent Text Reader

Abstract

The invention discloses a system for one-sided read remote memory access. In some embodiments, the system is configured to receive, at a responder SFA, a first packet from a first host, the first packet including a read request to read a remote memory of a second host, where a payload of the first packet is mapped to a transfer first queue (TxHQ) entry (TxHQE), and the TxHQE includes a pointer to a memory mapping; separating, by the second host, the received packet into a portion including an upper layer protocol (ULP) portion, the ULP portion being TxHQE; creating a ULP first force queue for the TxHQE; generating a read response based on mapping the ULP header into the hardware as a TxHQ, wherein the TxHQE includes data from an active memory region of the second host identified by the memory mapping; and transmitting the read response to the first host using the TxHQ.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims the benefit of priority to U.S. Provisional Patent Application No. 63 / 303,340, filed on January 26, 2022, the entire contents of which are incorporated herein by reference. Technical Field

[0002] The present disclosure relates to a communication system that allows high performance remote memory access based on linked transmit and receive queues. Background Art

[0003] The ability to drive a high-performance network at maximum rate without dropping packets is valuable for data centers of different sizes (e.g., large or small) because dropped packets can result in data retransmissions and other disruptive patterns. Recent technology trends indicate the incorporation of high-performance network features, such as remote memory access (RMA), in data center networks. RMA offers the potential for superior performance (e.g., low latency and high throughput), but design choices about how to use RMA in a network can significantly impact network performance. For example, when both ends of a data transmission (e.g., a sender and a receiver) use RMA to manage data transmission, there may be additional latency and additional network resource usage. A system architecture is needed that is designed to allow only one transmission end (e.g., a sender) to control and monitor the status of a data transaction to deliver the high-performance network features of RMA while reducing the risk of potential network problems. Summary of the invention

[0004] In order to address the above shortcomings, a system for one-sided read remote memory access is provided. In some embodiments, the system is configured to receive a first packet from a first host at a responder server fabric adapter (SFA), the first packet including a read request to read a remote memory of a second host, wherein the payload of the first packet is mapped to a transmission header queue entry (TxHQE) in a transmission header queue (TxHQ), and TxHQE includes a pointer to a memory mapping on the second host. An example of a memory mapping is a decentralized aggregation table (SGL). The following discussion mentions SGL, which is only for ease of discussion. In general, any memory mapping other than SGL can be used. The system is also configured to separate the received packet into a portion including an upper layer protocol (ULP) portion via a responder SFA and using a packet handler, the ULP portion being TxHQE; and creating a ULP header queue for the ULP portion. The system is further configured to: generate a read response based on mapping the ULP header queue into hardware as a TxHQ, wherein the TxHQE includes a pointer to data from a valid memory area of ​​the second host; and transmit the read response packet with the data identified by the pointer to the first NIC of the first host using the TxHQ.

[0005] In other embodiments, the system is further configured to receive a first packet at a requester server fabric adapter (SFA) of the first host, the first packet including a read request to read a remote memory of the second host, the first packet including a pointer to a memory mapping at the second host. An example of a memory mapping is a decentralized aggregation table (SGL). The system is further configured to receive a second packet from a second NIC (another SFA) of the second host, the second packet including a read response and data from the memory mapping at the second host. In some embodiments, a completion queue (CQ) notification counter associated with a receive header queue (RxHQ) of the second host is mapped to a doorbell address of a transmit header queue (TxHQ), and the second packet is sent in response to a doorbell ringing identified by the doorbell address. The system is further configured to separate the second packet into a completion queue counter associated with a completion queue (CQ) and a receive header queue entry (RxHQE) in the receive header queue (RxHQ) by the SFA of the first host, wherein the RxHQE includes data identified by the memory mapping.

[0006] The above and other preferred features, including various novel implementation details and component combinations, will now be described in more detail with reference to the accompanying drawings and pointed out in the claims. It will be understood that the specific methods and devices are shown only by way of illustration and not as limitations. As will be appreciated by those skilled in the art, the principles and features explained herein can be adopted in various and numerous embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] Advantages and features of the disclosed embodiments will become more apparent from the detailed description, the appended claims and the accompanying drawings (or figures). A brief description of the drawings is as follows.

[0008] Figure 1 An example single-sided read RMA system is illustrated in which an initial remote memory registration is implemented in accordance with some embodiments.

[0009] Figure 2 An example single-sided read RMA system is illustrated in which a remote read request is generated in accordance with some embodiments.

[0010] Figure 3 An example single-sided read RMA system is illustrated in accordance with some embodiments, where read requests are handled in the destination host.

[0011] Figure 4 An example single-sided read RMA system is illustrated in which a read response is generated in accordance with some embodiments.

[0012] Figure 5 An example single-sided read RMA system is illustrated in accordance with some embodiments, where a read response is received in a requestor host.

[0013] Figure 6 Illustrated is local memory management in an example single-sided read RMA system according to some embodiments.

[0014] Figure 7 An example notification block for use in a single-sided read RMA system is illustrated in accordance with some embodiments.

[0015] Figure 8 An exemplary server fabric adapter architecture for acceleration and / or heterogeneous computing systems in a data center network is illustrated in accordance with some embodiments.

[0016] Fig. 9 An exemplary process of a single-sided read remote memory access from the perspective of a responder SFA is illustrated in accordance with some embodiments.

[0017] Fig.10 An exemplary process of a one-sided read remote memory access from the perspective of a requester SFA is illustrated in accordance with some embodiments. DETAILED DESCRIPTION

[0018] The drawings and the following description relate to the preferred embodiments by way of illustration only. It should be noted that from the following discussion, alternative embodiments of the structures and methods disclosed herein will be readily recognized as viable alternatives that can be employed without departing from the principles of what is claimed.

[0019] Reference will now be made in detail to several embodiments, examples of which are illustrated in the accompanying drawings. It is noted that, wherever feasible, similar or like reference numerals may be used in the accompanying drawings and may indicate similar or like functions. The accompanying drawings depict embodiments of the disclosed systems (or methods) for illustrative purposes only. Those skilled in the art will readily recognize from the following description that alternative embodiments of the structures and methods illustrated in the text may be employed without departing from the principles described herein.

[0020] The present disclosure provides a system and method for one-sided read RMA using linked queues. RMA is a network feature that allows a process of a computer to directly access a portion of the memory of a remote process of another computer without the explicit participation of the remote process in the data transfer. RMA facilitates higher data transfer rates and low-latency networking, at least because (1) RMA uses zero-copy networking (e.g., by enabling the NIC to transfer data directly to the host buffer without copying between network layers) and (2) RMA reduces central processing unit (CPU) involvement (e.g., the application accesses data directly from the remote host without consuming the remote host's CPU time, and the remote host's CPU's cache memory is not filled with the accessed content).

[0021] The most popular implementation of RMA operations is expressed as verbs. There are two types of verbs: memory verbs and message passing verbs. Message passing verbs include send and receive verbs. Send and receive verbs provide user-level message exchange between hosts / computers. These verb messages are directly transmitted between user space applications and network interface cards (NICs). Typically, send and receive verbs are two-sided operations because each "send" operation needs to be matched with a "receive" operation at the corresponding remote process. RMA memory verbs include read operations, write operations, and atomic operations. Unlike message passing verbs (i.e., send and receive), RMA memory verbs are one-sided because these verbs / operations can be completed without knowing the remote process. In other words, all parameters for data transfer using RMA memory verbs are determined by one process (i.e., the local process or the initiating process).

[0022] The present system provides a one-sided RMA read operation, that is, the disclosure herein shows how the first host can effectively read remote memory from the memory area of ​​the second host into the local memory area. Although the RMA operation allows the host to read and write from the pre-registered memory area of ​​another host without involving the CPU on the remote side (thereby achieving high throughput with low CPU overhead), the actual key-value workload is often dominated by read operations. Therefore, as described herein, the system and method focusing on read operations can obtain most of the performance benefits of RMA while facilitating a significantly simpler design than applying RMA to all types of requests. In addition, the present system handles congestion and flow control while maintaining high throughput without the need for any software intervention in the data path.

[0023] Figures 1 to 5 The step-by-step process of a single-sided RMA read operation using a single-sided read RMA system according to some embodiments is illustrated. Each of these figures shows one or more steps of the process in the order marked in the figure. For example, Figure 1 Depicts the first two steps of a one-sided RMA read operation, Figure 2 Depicted Figure 1 The first two steps in the RMA read operation are followed by step 3, and so on.

[0024] Figure 1 An example single-side read RMA system 100 is illustrated. More specifically, Figure 1 The diagram illustrates the initial remote storage registration process using the system 100. Figure 1 As shown, system 100 includes two hosts, for example, host 1 and host 2. Each of host 1 and host 2 has a network interface card, for example, NIC1 and NIC2 (these are sometimes referred to as SFA). It should be noted that the implementation described herein can be implemented via NIC, SFA or a combination of the two. Each host also includes a memory area and a counter area. The memory area has actual onboard memory, while the counter area is a dummy memory area that does not have actual memory inside. In some embodiments, the counter area includes a decentralized aggregation table (SGL). SGL is a list of buffer locations with associated control and size information. SGL points to a buffer in the memory area. For example, on host 2, memory area 102 may include a buffer 106 for storing data, and SGL 104 indicated by pointer 108 points to a list of buffers 106 in memory area 102.

[0025] In some embodiments, host 1 may perform a remote memory read operation, for example, to read a portion of the remote memory of host 2. Thus, the server fabric adapter (SFA) of host 2 may automatically perform such a read operation without using any local CPU resources (e.g., cache memory of the CPU of host 2). In this manner, when host 1 reads / obtains data from host 2, host 2 will not intervene and its CPU will not be interrupted. More specifically, as described below and as described below, Figures 1 to 10 As depicted, the SFA of host 2, together with NIC2, can respond to read operations from host 1 alone. This reduces network latency and CPU overhead, and further avoids bottlenecking host 2 (for example, when host 2 is a server handling requests from multiple clients (such as different hosts 1)). However, because the resolution of the SGL to the actual memory area occurs locally on host 2, the SFA of host 2 can retain control of the mapped memory and the ability to cancel the requested operation. In some embodiments, if the pre-allocated memory area is deallocated, NIC2 and / or the SFA of host 2 can cancel all pending and ongoing transactions. In some embodiments, the NIC can act as an SFA. Reference will be made below to Figure 8 Let's describe SFA in detail.

[0026] To allow RMA read operations, Host 2 must expose its data layout to Host 1. Figure 1 As shown, host 1 can initiate out-of-band communication to host 2 to register remote memory in host 2. In response, host 2 can return SGL 104 (e.g., index / pointer to buffer 106) region information (such as starting physical address and / or size) to host 1. Host 1 can then mirror SGL 104 of host 2 as SGL in host 1. This remote memory registration binds host 1 and host 2 so that host 1 can issue RMA read requests to any memory address in the registered memory region of host 2.

[0027] RMA hosts, i.e., hosts implementing RMA, communicate using queue pairs (QPs), as described below. In some embodiments, a host can create a QP that includes a transmit queue (e.g., TxHQ) and a receive queue (e.g., RxHQ), and issue operations to these queues using a verb application programming interface (API). Upon completion of an operation (e.g., read), the initiating host / requester (e.g., host 1) can signal completion using a completion entry (CQE) in a completion queue (CQ) associated with the QP.

[0028] Figure 2 Once the remote storage has been registered (such as Figure 1In some embodiments, host 1 may generate and issue a remote read request through NIC 1 of host 1. The read request may be transmitted using any transport layer protocol, such as user datagram protocol (UDP). In some embodiments, in response to remote read request / UDP packet 109 being initiated, each of host 1 and host 2 may create a corresponding transmit header queue (TxHQ) and a corresponding receive header queue (RxHQ). TxHQ of host 1 and RxHQ of host 2 form one QP for queuing and forwarding remote read requests. TxHQ of host 2 and RxHQ of host 1 form another QP for queuing and forwarding read responses to remote read requests.

[0029] The payload of UDP packet 109 is an entry (e.g., TxHQE 110) to be used in the TxHQ of Host 2. Each payload in entry TxHQE 110 includes corresponding header information and a pointer to the SGL (e.g., 112). Because the SGL of Host 1 is a mirror copy of the SGL of Host 2, the SGL pointer included in TxHQE 110 or the UDP payload actually references the requested buffer of Host 2. The TxHQ at Host 1 is associated with the corresponding CQ, and the CQ indicates that the transmission is complete.

[0030] Similarly, the RxHQ at Host 2 is also associated with a corresponding CQ, and the associated CQ indicates that a new packet has been received. The buffer for the new packet is presented as an entry in the RxHQ (e.g., RxHQE). The payload of the RxHQE is the TxHQE 110, and the TxHQE 110 is configured to point to the SGL. The SGL indicates the following buffer location of Host 2 from which the requested data is to be transmitted. The SGL can identify the correct buffer location of Host 2 because it is based on the knowledge of the mirror copy or shadow of the buffer of Host 2 when it is formulated in Host 1. Reference will be made to Figure 5 Let's further describe RxHQ associated with Host 1.

[0031] In some embodiments, each CQ associated with an RxHQ may trigger an interrupt, and the interrupt may then be used to check the RxHQE. In some embodiments, each CQ associated with a TxHQ may also trigger an interrupt, and the interrupt may then be used to or release memory used for the TxHQE.

[0032] Figure 3The following steps are illustrated, namely, host 2 uses NIC 2 of host 2 to handle read request packets from host 1 in an example single-sided read RMA system 100. When a UDP packet or message is received through the receive path (RX path), NIC 2 of host 2 can use a packet handler (PH) to break the UDP message into separate parts assigned to separate queues. Figure 3 As depicted, there are three sections assigned to three queues respectively: (i) UDP+Read Request Command; (ii) Upper Layer Protocol (ULP) that captures the payload of UDP packet 109, in this case, the payload is a Transmit Header Queue Entry (TxHQE); and (iii) Counter Notifications associated with Completion Queue (CQ). In some embodiments, the SFA or software interacting with the SFA of Host 2 may create RxHQ 114 having an entry corresponding to the UDP header in the packet (i.e., section (i)). Host 2 may also create a ULP header queue (e.g., ULP HQ 116) for the ULP entry or TxHQE in section (ii). The ULP or TxHQE includes a pointer to the SGL. It should be noted that this SGL within the TxHQE points to a buffer in Host 2, but it is created on Host 1 using a mirror copy. For part (iii), host 2 may further create a CQ (eg, CQ 118) to store receive queue counter (RQ CNT) information.

[0033] Based on handling the read request packet, host 2 generates a read response. Figure 4 The process of generating a read response is illustrated. In some embodiments, host 2 also maps the ULP header queue into hardware as a transmission header queue. In other words, the memory, i.e., the receive ring or receive header queue RxHQ for the ULP header is also mapped as TxHQ. The notification counter of the completion queue associated with RxHQ is mapped to the TxHQ doorbell address. In NIC 2 of host 2, the entry in TxHQ (e.g., TxHQE) is now in place, and the SGL reference is a valid area local to the responder host (e.g., host 2).

[0034] In some embodiments, the CQ Notification Counter indicates the number of RxHQ entries that have been received at NIC 2 of Host 2. However, since each received entry provides a TxHQE for the TxHQ mapped at the corresponding location, the counter also indicates the number of valid TxHQEs. The transmission from Host 2 to Host 1 begins by writing the counter to the TxHQ doorbell address.

[0035] In some embodiments, to transmit a packet, a TxHQE is written to a queue memory associated with Host 2, and then the system rings a doorbell, indicating that the TxHQE of Host 2 is ready to be consumed. The doorbell is an indicator that triggers the hardware to transfer the payload pointed to by the TxHQE received by Host 2 (i.e., the data buffer in the memory of Host 2) to Host 1. As discussed above, the TxHQE is created in Host 1 and sent to Host 2 (e.g., as the payload of a UDP packet sent from Host 1 to Host 2, and as described in reference to Figure 1 and Figure 2 1 ). When the packet is received, Host 2 unpacks the packet (e.g., uses PH to parse the packet) and obtains the embedded TxHQE. The TxHQE is actually Host 2's SGL, and the data from the buffer 106 pointed to by the SGL is retrieved using the SGL. A response TxHQE containing the data is formed and placed in the "right" place. The "right" place happens to be the memory configured as Host 2's TxHQ, which is linked to Host 2's RxHQ, which in turn corresponds to Host 1's TxHQ. At this point, the TxHQE created in Host 2 is ready to be transmitted to Host 1.

[0036] Adding TxHQE to TxHQ causes Host 2 to automatically transmit the response back to Host 1. In some embodiments, the system can use a receive notification signal to trigger the transmission operation. The receive notification signal can be a counter or index. For example, Figure 7 The Notify block in the RxHQ can provide a count of received entries, i.e., the number of entries in the RxHQ. The RxHQ of Host 2 contains the UDP headers of packets sent from Host 1 to Host 2. Because received data is presented as entries in the TxHQ (e.g., TxHQE), the same index can also be used to create the preparation index of the TxHQ (e.g., via the Notify block). Figure 4 As shown in 120, the CQ notification or the count of received entries can be used to trigger the transmission of the packet stored in the TxHQE entry of the TxHQ. For example, the SFA of Host 2 can forward the CQ notification of the RxHQ in Host 2 (which indicates that Host 2 has received a packet) to the doorbell of the TxHQ of Host 2 to trigger the transmission of TxHQE.

[0037] The problem faced by conventional one-sided RMA is that the responder host (e.g., host 2) is not notified of the completion of the request (e.g., remote read request from host 1), and therefore will not be able to release network and system resources (e.g., SGL, buffer) that are no longer in use in a timely manner. This may reduce the network and system performance of the RMA system. Additionally, the current requesting host (e.g., host 1) generally does not have unlaternal control of the pace, congestion control, and fault management of memory transactions, which greatly increase the complexity of the operation of the system. In the present system described herein, because host 1 is configured to use a mirror copy of the SGL of host 2, when host 2 receives a read remote request packet with SGL information in the packet payload from host 1, host 2 can generate TxHQE for TxHQ mapped at the same location based on the SGL information included in the received packet. In this way, the send and receive queues of host 2 are linked to the send and receive queues of host 1. More specifically, host 2 receives a packet of a read request from host 1, and in return, the hardware associated with host 2 (e.g., SFA) uses the embedded TxHQE to automatically push the requested data without any software intervention. Therefore, the TxHQ queue used to push the data out is implicitly linked to the RxHQ on which host 2 received the packet that triggered the read request-response process. The queues are further linked because the CQ notification in the RxHQ of host 2 can be used as a ready index for the TxHQ of host 2 to indicate that the TxHQ is ready to be consumed. Based on the linked queues, the requesting host can handle errors / failures and mitigate them by itself. Using linked queues (e.g., CQs) is also beneficial for the responder host because the responder host can confirm the progress and completion of the remote request and is able to perform appropriate control functions, for example, as described below in Figure 7 Described in .

[0038] In response to a remote read request from host 1 (in Figure 2 ), host 2 generates a read response (in Figure 4 and Figure 5 ), to return the requested data to host 1. Figure 5The process for receiving a read response at NIC 1 of host 1 is illustrated. Packet 122 is sent from NIC 2 to NIC 1, which contains a read response 124 from the memory area of ​​host 2 and SGL data content 126 (e.g., data in buffer 106 requested by host 1 using SGL). In some embodiments, NIC 1 of host 1 can decompose a UDP packet into a completion queue counter and an RxHQE. The completion queue counter is associated with a completion queue (CQ). Each RxHQE is an entry in the queue RxHQ. Each RxHQE entry has header information and a pointer to the SGL. Since there may be multiple read requests in progress, the pointer allows the system to find which SGL in the SGL has just been filled. Each RxHQ has a corresponding completion queue (CQ) that indicates the RxHQE in which the received packet is stored.

[0039] Figure 6 The figure shows the process of local memory management. The single-side read RMA system supports local memory management and Figure 6 The diagram illustrates how memory is always managed locally in this system. On Host 2, a transmit completion allows the SGL and buffers to be released. On Host 1, a receive completion indicates that Host 1 can use the local buffers. For example, based on the prepare index, the responder host (e.g., Host 2) is informed when to start and stop the transmission of read response packets, and thus Host 2 can release the pre-allocated buffers and SGLs in a timely manner when they have been consumed. Since the prepare index is created locally in Host 2 and delivered to TxHQ without communication with Host 1 (e.g., as Figure 4 ), so memory control is local to host 2.

[0040] In some embodiments, host 2 may mark the local buffer as invalid before actually releasing it, because if data retransmission is required, host 2 may need to check with host 1. If retransmission is not required, the local buffer will be cleaned.

[0041] Figure 7An example notification block used in a single-sided read RMA system is illustrated. In some embodiments, CQs (e.g., N completion queues CQ-1, CQ-2, ... CQ-N) can share a notification block entry (NBE) in a notification block 702. The notification block 702 includes interrupt and counter information associated with the CQ group. When activity is detected for any CQ-1 ... CQ-N, an interrupt is initiated. In some embodiments, the system can also write a block of N counters by writing an NBE to the host memory address at CTR ADDR 704, indicating which CQ in CQ-1 ... CQ-N has how much activity.

[0042] Implementation system Figure 8 An exemplary server fabric adapter architecture 800 for acceleration and / or heterogeneous computing systems in a data center network is illustrated. In some embodiments, a server fabric adapter (SFA) 106 can be connected to one or more control host CPUs 804, one or more endpoints 806, and one or more Ethernet ports 808. The endpoint 806 can be a GPU, an accelerator, an FPGA, etc. The endpoint 806 can also be a storage device or memory element 812 (e.g., an SSD), etc. The SFA 106 can communicate with other parts of the data center network via one or more Ethernet ports 808.

[0043] In some embodiments, the interface between the SFA 106 and the control host CPU 804 and the endpoints 806 is shown as being through a CIe / CXL 814a or similar memory mapped I / O interface. In addition to PCIe / CXL, the SFA 106 can also communicate with the GPU / FPGA / accelerator 810 using a wide and parallel inter-die interface (IDI) such as Just a Bunch of Wires (JBOW). Therefore, the interface between the SFA 106 and the GPU / FPGA / accelerator 810 is shown as being through PCIe / CXL / IDI 814b.

[0044] SFA 106 is a scalable and disaggregated I / O hub that can deliver high-speed server I / O and network throughput of trillions of bits per second across composable and accelerated computing systems. In some embodiments, SFA 106 can achieve the unification of heterogeneous resources, excellent performance, and elastic vertical expansion and contraction (scale-up) and horizontal expansion and contraction (scale-out). SFA 106 can also provide open, high-performance, and standard-based interconnection (e.g., 800 / 400GbE, PCIe Gen 5 / 6, CXL). SFA 106 can further allow I / O transmission and upper layer processing to be performed under the full control of an externally controlled transmission processor. In many scenarios, SFA 106 can use the native networking stack of the transmission host and enable the grouping (ganging) / packeting of the transmission processor (e.g., x86 architecture).

[0045] like Figure 8 , SFA 106 is connected to one or more control host CPUs 804, endpoints 806, and Ethernet ports 808. The control host CPU or control host 804 can provide transport and upper layer protocol processing, act as a user application "master", and provide infrastructure layer services. Endpoints 806 (e.g., GPU / FPGA / accelerator 810, storage device 812) can be producers and consumers of streaming data payloads contained in communication packets. Ethernet port 808 is a switching, routing and / or load balancing interface that connects SFA 106 to the next layer of network switching and / or routing nodes in the data center infrastructure.

[0046] In some embodiments, SFA 106 is responsible for transferring data with high throughput and low predictable latency between: Network and host; Network and accelerators; Accelerators and hosts; Accelerators and accelerators; and / or Network and network.

[0047] In general, when transferring data / packets between entities, SFA 106 can separate / parse any portion of a network packet and map each portion of the packet to a separate device PCIe address space. In some embodiments, any portion of a network packet can be a transport header, an upper layer protocol (ULP) header, or a payload. SFA 106 can transfer each portion of a network packet toward a separate memory subsystem or even a separate computing (e.g., CPU / GPU) subsystem through any number of disjoint physical interfaces.

[0048] By identifying, separating, and transferring any portion of a network packet to a separate memory / compute subsystem, SFA 106 can promote the aggregate packet data movement capacity of a network interface to a heterogeneous system consisting of CPUs, GPUs / FPGAs / accelerators, and storage / memory. SFA 106 can also take into account the capacity attributes (e.g., bandwidth) of each such heterogeneous system / compute component in the various physical interfaces.

[0049] In some embodiments, SFA 106 may interact with or act as a memory manager. SFA 106 provides virtual memory management for each device connected to SFA 106. This allows SFA 106 to create arbitrary data processing pipelines, load-balanced data flows, and direct transactions toward multiple redundant computers or accelerators connected to SFA 106 using the processors and memory attached to it. In addition, the dynamic nature of the memory space association performed by SFA 106 can allow for very powerful failover system attributes for processing elements of the connectivity and protocol stacks of processing system 800.

[0050] Flowchart of memory request processing using SFA Fig. 9 An exemplary process 900 of a one-sided read remote memory access from the perspective of a responder SFA is illustrated. In some embodiments, an SFA communication system includes a requester SFA communicatively coupled to a first host, the first host including a local memory and a first network interface card (NIC) communicatively connected to the first host. The SFA communication system also includes a responder SFA communicatively coupled to a second host, the second host including a remote memory and a second NIC communicatively connected to the second host.

[0051] exist Fig. 9 In the example of FIG. 1 , at step 905, the responder SFA (eg, Figures 1 to 5 The NIC of the host 2 is configured to receive a first packet from the first host, the first packet including a read request to read a remote memory of the second host. For example, a software application of the client (e.g., the first host) issues a read request to read from a buffer (multiple) of a remote memory (e.g., memory area 102) in the server or the second host. Figure 1In some embodiments, when a read request is generated, the first host maps the payload of the first packet to a requester transmit header queue entry (TxHQE) in a transmit header queue (TxHQ). The requester TxHQE includes a pointer to a memory map (e.g., SGL) at the second host. The memory map identifies the requested data in the buffer of the second host.

[0052] In some embodiments, the first packet is transmitted via a network protocol such as UDP. When the second host receives the first packet, at step 910, the NIC of the second host (which may also be a responder SFA) separates the received packet into parts using a packet handler. For example, these parts include: i) UDP+read request, (ii) upper layer protocol (ULP), and (iii) counter notification associated with a completion queue (CQ). Because the payload of the first packet is the requestor TxHQE, in this scenario, the ULP part is also the requestor TxHQE.

[0053] At step 915, the responder SFA of the second host creates a ULP header queue for the ULP portion or TxHQE. At step 920, to generate a read response, the responder SFA of the second host maps the ULP header queue into hardware as a responder TxHQ, and the TxHQE includes data from the valid memory area of ​​the second host identified by the memory map in the requester SFA. Once the TxHQE is in place, at step 925, the read response is transmitted to the first NIC of the first host via the responder SFA using the responder TxHQ.

[0054] In some embodiments, TxHQ is associated with CQ, and CQ indicates whether the transmission is complete. If the transmission is complete, the buffers and SGL that have been consumed will be released to improve throughput and performance. This data transfer bypasses the kernel networking stack in both hosts (e.g., network layer), and therefore the conversation between the two systems is completed much faster than a comparable non-RMA networking system, thereby improving network performance with at least faster data transfer rates and lower latency.

[0055] Fig.10 An exemplary process 1000 of a one-sided read remote memory access from the perspective of a requester SFA is illustrated. In some embodiments, an SFA communication system includes a requester SFA communicatively coupled to a first host, the first host including a local memory and a first network interface card (NIC) communicatively connected to the first host. The SFA communication system also includes a responder SFA communicatively coupled to a second host, the second host including a remote memory and a second NIC communicatively connected to the second host.

[0056] exist Fig.10 In an example of , at step 1005, the requester SFA is configured to receive a first packet from a first host, the first packet including a read request to read a remote memory of a second host. The first packet includes a pointer to a memory mapping (e.g., SGL) at the second host. In some embodiments, the requester SFA of the first host maps the payload of the first packet to a transmission header queue entry (TxHQE) in a transmission header queue (TxHQ), wherein the TxHQE includes a pointer to the memory mapping at the second host.

[0057] At step 1010, a requester SFA associated with a first host is configured to receive a second packet from a second host, the second packet including a read response and a requested SGL. Upon receiving the response, at step 1015, the first host separates the second packet into a completion queue counter associated with a completion queue (CQ) and a receive header queue entry (RxHQE) in a receive header queue (RxHQ). The RxHQE entry has header information and data identified by a memory map. The RxHQ has a corresponding completion queue (CQ) indicating the RxHQE in which the received packet is stored.

[0058] In some embodiments, before generating the first packet of the read request, the requester SFA is further configured to receive a communication message from the first host for registering the remote memory of the second host, receive the SGL of the second host as a response to the communication message, and transmit the SGL of the second host to the first host. The first host mirrors the SGL of the second host to its local SGL in the first host. Because the SGL of the first host is a mirror copy of the SGL of the host 2, the SGL pointer included in the UDP payload or TxHQE actually references the buffer of the requested second host. When generating a read response, the second host only needs to make the SGL refer to a valid area local to the responder host (i.e., the second host).

[0059] Additional considerations In some implementations, at least a portion of the above methods may be implemented by instructions that, when executed, cause one or more processing devices to perform the above processes and functions. Such instructions may include, for example, interpreted instructions, such as script instructions, or executable code, or other instructions stored in a non-transitory computer-readable medium. The storage device 830 may be implemented in a distributed manner over a network, such as as a server farm or a group of widely distributed servers, or may be implemented in a single computing device.

[0060] Although an example processing system has been described, embodiments of the subject matter, functional operations, and processes described in this specification may be implemented in other types of digital electronic circuits, tangibly embodied computer software or firmware, computer hardware, including the structures disclosed in this specification and their structural equivalents, or a combination of one or more of them. Embodiments of the subject matter described in this specification may be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on a tangible, non-volatile program carrier, for execution by a data processing device or for controlling the operation of the data processing device. Alternatively or additionally, the program instructions may be encoded on an artificially generated propagation signal (e.g., a machine-generated electrical, optical, or electromagnetic signal) that is generated to encode information for transmission to a suitable receiver device for execution by a data processing device. The computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them.

[0061] The term "system" may encompass all kinds of devices, apparatuses, and machines for processing data, including, by way of example, a programmable processor, a computer, or multiple processors or computers. A processing system may include special purpose logic circuits, such as an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit). In addition to hardware, a processing system may also include code that creates an execution environment for the computer program in question, for example, code constituting processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them.

[0062] A computer program (which may also be referred to or described as a program, software, software application, module, software module, script, or code) may be written in any form of programming language, including compiled or interpreted languages, or declarative or procedural languages, and it may be deployed in any form, including as a stand-alone program, or as a module, component, subroutine, or other unit suitable for use in a computing environment. A computer program may, but need not, correspond to a file in a file system. A program may be stored in a portion of a file holding other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the program in question, or in multiple collaborative files (e.g., files storing one or more modules, subroutines, or code portions). A computer program may be deployed to execute on one computer or on multiple computers located at one location or distributed across multiple locations and interconnected by a communication network.

[0063] The processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows can also be performed by special purpose logic circuits, and the apparatus can also be implemented as special purpose logic circuits, such as FPGAs (field programmable gate arrays) or ASICs (application specific integrated circuits).

[0064] As an example, a computer suitable for executing a computer program may include a general or special purpose microprocessor or both, or any other kind of central processing unit. Typically, the central processing unit will receive instructions and data from a read-only memory or a random access memory or both. A computer typically includes a central processing unit for implementing or executing instructions and one or more memory devices for storing instructions and data. Typically, a computer will also include one or more large-capacity storage devices (e.g., magnetic, magneto-optical disks, or optical disks) for storing data, or will also be operably coupled to receive data from the large-capacity storage device or to transmit data thereto, or both. However, a computer does not need to have such a device. In addition, a computer may be embedded in another device, such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device (e.g., a universal serial bus (USB) flash drive), to name a few.

[0065] Computer-readable media suitable for storing computer program instructions and data include all forms of nonvolatile memory, media, and memory devices, including, by way of example, semiconductor memory devices (e.g., EPROM, EEPROM, and flash memory devices); magnetic disks (e.g., internal hard disks or removable disks); magneto-optical disks; and CD-ROM and DVD-ROM disks. The processor and memory may be supplemented by, or incorporated in, special purpose logic circuitry.

[0066] To provide interaction with a user, embodiments of the subject matter described in this specification may be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) display) for displaying information to the user, and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other kinds of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback, such as visual feedback, auditory feedback, or tactile feedback; and input from the user may be received in any form, including sound, speech, or tactile input. In addition, the computer may interact with the user by sending documents to and receiving documents from a device used by the user; for example, by sending a web page to a web browser on a user device of the user in response to a request received from the web browser.

[0067] Embodiments of the subject matter described in this specification may be implemented in a computing system that includes a back-end component (e.g., as a data server), or includes a middleware component (e.g., an application server), or includes a front-end component (e.g., a client computer with a graphical user interface or a web browser through which a user can interact with an implementation of the subject matter described in this specification), or any combination of one or more such back-end, middleware, or front-end components. The components of the system may be interconnected by any form of digital data communication or any digital data communication medium (e.g., a communication network). Examples of communication networks include local area networks ("LANs") and wide area networks ("WANs"), such as the Internet.

[0068] A computing system may include clients and servers. Clients and servers are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on respective computers and having a client-server relationship to each other.

[0069] Although this specification contains many specific implementation details, these should not be interpreted as limitations on the scope of the content claimed, but rather as descriptions of features that may be peculiar to a particular embodiment. Certain features described in the context of separate embodiments in this specification may also be implemented in combination in a single embodiment. Conversely, the various features described in the context of a single embodiment may also be implemented in multiple embodiments separately or in any suitable sub-combination. In addition, although features may be described above as working in certain combinations, and even initially claimed as such, one or more features from the claimed combination may be deleted from the combination in some cases, and the claimed combination may be directed to a variant of a sub-combination or a sub-combination.

[0070] Similarly, although operations are described in a particular order in the accompanying drawings, this should not be understood as requiring that such operations be performed in the particular order shown or in a sequential order, or that all illustrated operations be performed to obtain the desired results. In some cases, multitasking and parallel processing may be advantageous. In addition, the separation of various system components in the embodiments described above should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.

[0071] Specific embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. For example, the actions recited in the claims can be performed in a different order and still achieve the desired results. As an example, the processes depicted in the accompanying drawings do not necessarily require the particular order or sequential order shown to achieve the desired results. In certain implementations, multitasking and parallel processing may be advantageous. Additional steps or stages may be provided from the described processes, or steps or stages may be eliminated from the described processes. Therefore, other implementations are also within the scope of the following claims.

[0072] The phraseology and terminology used herein is for the purpose of description and should not be regarded as limiting.

[0073] The term "approximately", the phrase "approximately equal to" and other similar phrases (e.g., "X has a value approximately equal to Y" or "X is approximately equal to Y") used in the specification and claims should be understood to mean that one value (X) is within a predetermined range of another value (Y). The predetermined range may be plus or minus 20%, 10%, 5%, 3%, 1%, 0.1%, or less than 0.1%, unless otherwise indicated.

[0074] Unless expressly indicated to the contrary, the indefinite articles "a" and "an" used in the specification and claims should be understood to mean "at least one". The phrase "and / or" used in the specification and claims should be understood to mean "either or both" of the elements so connected, i.e., elements that exist conjunctively in some cases and disjunctively in other cases. Multiple elements listed with "and / or" should be interpreted in the same manner, i.e., "one or more" of the elements so connected. In addition to the elements specifically identified by the "and / or" clause, other elements may optionally be present, whether they are related or unrelated to those elements specifically identified. Thus, as a non-limiting example, a reference to "A and / or B" when used in conjunction with an open language such as "including" may refer to only A (optionally including elements other than B) in one embodiment; to only B (optionally including elements other than A) in another embodiment; to both A and B (optionally including other elements) in another embodiment; and so on.

[0075] As used in the specification and claims, "or" should be understood to have the same meaning as "and / or" as defined above. For example, when separating items in a list, "or" or "and / or" should be interpreted as inclusive, i.e., including at least one of multiple elements or lists of elements, but also including more than one, and optionally including additional unlisted items. Only terms that are clearly indicated to the contrary (such as "only one of ..." or "exactly one of ...") or when used in the "consisting of ..." of a claim will refer to containing exactly one element in a plurality of elements or lists of elements. In general, the term "or" used should only be interpreted as indicating exclusive alternatives (i.e., "one or the other, but not both") when there is an exclusive term (such as "any of ...", "one of ...", "only one of ..." or "exactly one of ...") behind it. When used in a claim, "consisting essentially of ..." should have its ordinary meaning as used in the field of patent law.

[0076] As used in the specification and claims, when referring to a list of one or more elements, the phrase "at least one" should be understood to mean at least one element selected from any one or more of the elements in the list of elements, but does not necessarily include at least one of each element specifically listed in the list of elements, and does not exclude any combination of elements in the list of elements. This definition also allows that in addition to the elements specifically identified in the list of elements referred to by the phrase "at least one", the following elements may optionally be present, whether or not they are related to those specifically identified. Thus, as a non-limiting example, "at least one of A and B" (or equivalently, "at least one of A or B", or equivalently "at least one of A and / or B") may refer to at least one A, optionally including more than one A, in which no B is present (and optionally including elements other than B) in one embodiment; to at least one B, optionally including more than one B, in which no A is present (and optionally including elements other than A) in another embodiment; to at least one A, optionally including more than one A, and at least one B, optionally including more than one B (and optionally including other elements) in another embodiment; and so on.

[0077] The use of "including," "comprising," "having," "containing," "involving," and variations thereof, is meant to encompass the items listed thereafter as well as additional items.

[0078] The use of ordinal terms such as "first," "second," "third," etc. in the claims to modify claim elements does not itself imply any priority, precedence, or order of one claim element relative to another claim element, or the temporal order in which the actions of the method are performed. Ordinal terms are merely used as labels to distinguish one claim element having a certain name from another element having the same name (but for the use of ordinal terms), to distinguish these claim elements.

[0079] Having thus described several aspects of at least one embodiment of the present invention, it will be appreciated that various changes, modifications and improvements will readily occur to those skilled in the art. Such changes, modifications and improvements are intended to be a part of this disclosure and are intended to be within the spirit and scope of the present invention. Therefore, the foregoing description and drawings are intended only as examples.

Claims

1. A server fabric adapter (SFA) communication system, include: a requester SFA communicatively coupled to a first host, the first host including a local memory; as well as a responder SFA communicatively coupled to a second host, the second host including a remote memory; The responder SFA is configured as follows: receiving a first packet from a first host, the first packet comprising a read request to read a remote memory of a second host, wherein a payload of the first packet is mapped to a requester transmit header queue entry (TxHQE) in a requester transmit header queue (TxHQ), and the requester TxHQE comprises a pointer to a memory mapping at the second host; Separating the received packet into parts including an upper layer protocol (ULP) part via the responder SFA and using the packet handler, the ULP part being the requester TxHQE; Create a ULP header queue for the ULP part; generating a read response based on mapping the ULP header queue into hardware as a responder TxHQ, wherein the responder TxHQE includes a pointer to data from a valid memory area of ​​the second host identified by the memory map in the requester TxHQE; as well as A read response packet having the data identified by the pointer is transmitted to the first host using responder TxHQ.

2. The SFA communication system according to claim 1, wherein the responder SFA is further configured to: Creating a responder receive header queue (RxHQ) for storing packet headers and read requests included in received packets; and A completion queue (CQ) associated with the responder RxHQ is created, the CQ storing the counter notifications associated with the responder RxHQ.

3. The SFA communication system of claim 2, wherein the CQ notification counter indicates the number of responder RxHQ entries that have been received at the second host, and also indicates the number of valid responder TxHQEs.

4. The SFA communication system according to claim 3, wherein the responder SFA is further configured to: Map the CQ Notification Counter to the TxHQ Doorbell Address, where the Doorbell indicates to the responder that the TxHQ is ready to be consumed.

5. The SFA communication system according to claim 1, wherein the responder SFA is further configured to: creating a completion queue (CQ) associated with the responder TxHQ, wherein the CQ indicates that the transmission is complete; and In response to the transfer being complete, the memory map and corresponding buffer are released.

6. The SFA communication system according to claim 5, wherein the responder SFA is further configured to: communicating with the first host to determine whether data retransmission is required; and The second host's buffer is marked invalid before releasing the buffer.

7. The SFA communication system according to claim 5, wherein the responder SFA is further configured to: When a CQ has activity, an interrupt is started, where interrupt and counter information for multiple CQs are stored in a notification block.

8. The SFA communication system according to claim 1, wherein the responder SFA is further configured to: The mapped memory of the second host is controlled, wherein the controlling includes canceling the requested read operation.

9. A server fabric adapter (SFA) communication system, include: a requester SFA communicatively coupled to a first host, the first host including a local memory; as well as a responder SFA communicatively coupled to a second host, the second host including a remote memory; The requester SFA is configured as follows: receiving a first packet, the first packet comprising a read request to read a remote memory of a second host, the first packet comprising a pointer to a memory mapping at the second host; receiving a second packet from the responder SFA, the second packet comprising the read response and data from the memory map at the second host, wherein a completion queue (CQ) counter associated with a receive header queue (RxHQ) of the second host is mapped to a doorbell address of the transmit header queue (TxHQ), and the second packet is sent in response to a doorbell ringing identified by the doorbell address; and The second packet is separated into a completion queue counter associated with the CQ and a receive header queue entry (RxHQE) in the RxHQ of the first host, wherein the RxHQE of the first host includes the data identified by the memory map.

10. The SFA communication system according to claim 9, wherein the CQ corresponds to the RxHQ, and indicates the RxHQE in which the received packet is stored.

11. The SFA communication system according to claim 9, before receiving the first packet including the read request, the requester SFA is further configured to: receiving a communication message from a first host for registering a remote storage of a second host; receiving a memory map of a second host in response to the communication message; and The memory map of the second host is transferred to the first host, wherein the first host mirrors the memory map of the second host to its local memory map in the first host.

12. The SFA communication system according to claim 9, wherein the requester SFA is further configured to: The payload of the first packet is mapped to a transmit header queue entry (TxHQE) in a transmit header queue (TxHQ), which includes a pointer to the SGL.

13. The SFA communication system according to claim 9, wherein the requester SFA is further configured to: Receive an interrupt triggered by the CQ associated with the RxHQ to check for entries in the RxHQ.

14. The SFA communication system of claim 9, wherein the first packet and the second packet are transmitted using a network protocol, and the network protocol comprises a User Datagram Protocol (UDP).

15. A method for single-sided read remote memory access, the method include: receiving, at a responder server fabric adapter (SFA), a first packet from a first host, the first packet comprising a read request to read a remote memory of a second host, wherein a payload of the first packet is mapped to a requester transmit header queue entry (TxHQE) in a requester transmit header queue (TxHQ), and the requester TxHQE comprises a pointer to a memory mapping at the second host; Separating the received packet into parts including an upper layer protocol (ULP) part via the responder SFA and using the packet handler, the ULP part being the requester TxHQE; Create a ULP header queue for the ULP part; generating a read response based on mapping the ULP header queue into hardware as a responder TxHQ, wherein the responder TxHQE includes a pointer to data from a valid memory area of ​​the second host identified by the memory map in the requester TxHQE; as well as A read response packet having the data identified by the pointer is transmitted to the first host using responder TxHQ.

16. The method according to claim 15, further comprising: include: Create a responder receive header queue (RxHQ) for storing packet headers and read requests included in received packets; as well as A completion queue (CQ) associated with the responder RxHQ is created, the CQ storing the counter notifications associated with the responder RxHQ.

17. The method of claim 16, wherein the CQ Notification Counter indicates a number of responder RxHQ entries that have been received at the second host and further indicates a number of valid responder TxHQEs.

18. The method according to claim 17, further comprising: include: Map the CQ Notification Counter to the TxHQ Doorbell Address, where the Doorbell indicates to the responder that the TxHQ is ready to be consumed.

19. A method for single-sided read remote memory access, the method include: receiving, at a requester server fabric adapter (SFA), a first packet comprising a read request to read a remote memory of a second host, the first packet comprising a pointer to a memory map at the second host; receiving a second packet from a responder SFA associated with a second host, the second packet comprising a read response and data from a memory map at the second host, wherein a completion queue (CQ) counter associated with a receive header queue (RxHQ) of the second host is mapped to a doorbell address of a transmit header queue (TxHQ), and the second packet is sent in response to a doorbell ringing identified by the doorbell address; as well as The second packet is separated by the requestor SFA into a completion queue counter associated with the CQ and a receive header queue entry (RxHQE) in the RxHQ of the first host, wherein the RxHQE of the first host includes the data identified by the memory map.

20. The method according to claim 19, further comprising: include: receiving a communication message from the requester SFA for registering a remote storage of a second host; receiving a memory map of a second host in response to the communication message; as well as The memory map of the second host is transferred to the first host, wherein the first host mirrors the memory map of the second host to its local memory map in the first host.