Common symmetric memory keys for parallel processing

By introducing symmetric memory keys in the parallel computing system and sharing memory access permissions, the performance problems caused by the increase in the size of the RKey table are solved and the computing performance is improved.

CN118590220APending Publication Date: 2024-09-03MELLANOX TECHNOLOGIES LTD(IL)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410230287.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-01
Filing Date
2024-02-29
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

When existing parallel computing systems use remote direct memory access (RDMA), they need to generate a unique remote key (RKey) for each process, causing the size of the RKey table to grow dramatically, causing cache overload and affecting network operations and calculations. performance.

Method used

The key manager is introduced to distribute a symmetric memory key (SMK) so that all processes share the key to access the host memory area, avoiding the RKey table unique to each process and simplifying memory access.

Benefits of technology

Reduces the number of memory keys, reduces cache load, improves network operations and computing performance, and solves the problem of RKey table size growth.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118590220A
    Figure CN118590220A
Patent Text Reader

Abstract

The invention discloses a common symmetric memory key for parallel processing. In one embodiment, a parallel computing system includes a key manager to assign symmetric memory keys to parallel computing jobs, including assigning a first symmetric memory key to a first parallel computing job; and a plurality of server nodes for performing a parallel computing process of a first parallel computing job and causing registration of a host memory region of the server node with the allocated first symmetric memory key in a corresponding network interface controller of the server node, a different one of the host memory regions is enabled to be accessed by a remote one of the server nodes using remote direct memory access with the first symmetric memory key.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to computer systems and, in particular, but not exclusively, to remote memory access. Background Art

[0002] Endpoint devices such as management nodes can initiate parallel computing jobs with other endpoint devices across the network. In addition to other endpoint devices participating in parallel computing jobs, switches in the network can also participate in parallel computing jobs by providing data necessary to perform parallel computing jobs to various endpoint devices and also by performing tasks such as adding.

[0003] Parallel computing jobs can use Remote Direct Memory Access (RDMA) for data transfer between processes running on different endpoint devices. Advanced Network Interface Controllers (NICs) are designed to support RDMA operations, where the RNIC transfers data from the memory of one computer to the memory of another computer through direct memory access.

[0004] InfiniBand and other RDMA-capable networks require pinning (e.g., registering) remotely accessible memory to implement remote memory access (RMA). During data transfer, the RMA initiator requires a remote key (RKey) to access the corresponding memory. In the current parallel programming model, each process participating in the job generates a unique RKey for each remotely accessible memory region. For example, in response to a registration request from a local process to register a memory region of a local host memory, a host channel adapter (HCA) or a network interface controller (NIC) provides an RKey to a local process running on the local host. Different processes distribute different RKeys between them for the job in order to facilitate RDMA data transfers between processes on different hosts. Each process stores a mapping table (RKey table) that contains the RKeys of all memory regions of different processes on different hosts participating in the job. The size of the RKey table scales linearly with the number of memory regions and processes in the job. The combined size of all RKey tables on a high performance computing (HPC) compute node can grow up to the order of hundreds of gigabytes. Furthermore, this results in cache overload as the RKey table is searched on every network (RDMA) operation, which affects not only the network operations but also the compute portion of the job. Summary of the invention

[0005] According to an embodiment of the present disclosure, a parallel computing system is provided, comprising: a key manager, which is used to assign symmetric memory keys to parallel computing jobs, including assigning a first symmetric memory key to a first parallel computing job; and multiple server nodes, which are used to: execute the parallel computing process of the first parallel computing job; and cause the registration of the host memory area of ​​the server node using the assigned first symmetric memory key in the corresponding network interface controller of the server node, so that a remote server node among the server nodes can access different host memory areas in the host memory area using the first symmetric memory key using remote direct memory access.

[0006] Further in accordance with an embodiment of the present disclosure, the server node includes a first server node and a second server node, the first server node being configured to access one of the host memory regions of the second server node using remote direct memory access with the first symmetric memory key.

[0007] Further according to an embodiment of the present disclosure, the server node includes: a first server node, the first server node having a first host memory and a first network interface controller; and a second server node, the second server node having a second host memory and a second network interface controller, the first network interface controller and the second network interface controller providing network access to the first server node and the second server node respectively, and wherein: the first server node is used to: execute a first parallel computing process of the first parallel computing job; receive the first symmetric memory key; select a first memory area of ​​the first host memory; and provide the first symmetric memory key and an identifier of the first memory area to the first network interface controller; the first network interface controller is used to: receive the first symmetric memory key and the identifier of the first memory area; and perform a first registration of the first memory area using the first symmetric memory key; the second server node is used to: execute a second parallel computing process of the first parallel computing job; receive the first symmetric memory key; select a second memory area of ​​the second host memory; and provide the first symmetric memory key and the identifier of the second memory area to the second network interface controller; and the second network interface controller is used to: receive the first symmetric memory key and the identifier of the second memory area; and perform a second registration of the second memory area using the first symmetric memory key.

[0008] In addition, according to an embodiment of the present disclosure, the first network interface controller is used to receive a first remote direct memory access request including the first symmetric memory key from a third parallel computing process of the first parallel computing job; and the second network interface controller is used to receive a second remote direct memory access request including the first symmetric memory key from a fourth parallel computing process of the first parallel computing job.

[0009] In addition, according to an embodiment of the present disclosure, the first network interface controller is used to: receive a first remote direct memory access request including the first symmetric memory key from a third parallel computing process of the first parallel computing job; find the first memory area based on the first registration and the first symmetric memory key included in the first remote direct memory access request; and write data to the first memory area of ​​the first host memory or retrieve data from the first memory area of ​​the first host memory in response to the found first memory area and the first remote direct memory access request; and the second network interface controller is used to: receive a second remote direct memory access request including the first symmetric memory key from a fourth parallel computing process of the first parallel computing job; find the second memory area based on the second registration and the first symmetric memory key included in the second remote direct memory access request; and write data to the second memory area of ​​the second host memory or retrieve data from the second memory area of ​​the second host memory in response to the found second memory area and the second remote direct memory access request.

[0010] Further according to an embodiment of the present disclosure, the first parallel computing process includes a first parallel computing model and a first network library; the first parallel computing model is used to: receive the first symmetric memory key; select the first memory area of ​​the first host memory; and provide the first symmetric memory key and the identification of the first memory area to the first network library; the first network library is used to provide the first symmetric memory key and the identification of the first memory area to the first network interface controller; the second parallel computing process includes a second parallel computing model and a second network library; the second parallel computing model is used to: receive the first symmetric memory key; select the second memory area of ​​the second host memory; and provide the first symmetric memory key and the identification of the second memory area to the second network library; and the second network library is used to provide the first symmetric memory key and the identification of the second memory area to the second network interface controller.

[0011] Further according to an embodiment of the present disclosure, the key manager is used to: maintain a list of which of the symmetric memory keys are not allocated to the active parallel computing jobs and which of the symmetric memory keys are allocated to the active parallel computing jobs; and allocate one of the unallocated symmetric memory keys to the first parallel computing job.

[0012] In addition, according to an embodiment of the present disclosure, the system includes a resource manager, which is used to: establish the parallel computing process of the first parallel computing job on the server node; request an unallocated symmetric memory key from the key manager for the first parallel computing job; receive the first symmetric memory key from the key manager for the first parallel computing job; and provide the first symmetric memory key to the parallel computing process of the first parallel computing job running on the server node, wherein the key manager is used to indicate in the list that the first symmetric memory key is allocated to the first parallel computing job.

[0013] Furthermore, according to an embodiment of the present disclosure, the key manager is used to distribute the same symmetric memory key to two different parallel computing jobs that do not use one or more common network interface controllers among the network interface controllers.

[0014] Further according to an embodiment of the present disclosure, the key manager is used to assign multiple symmetric memory keys to the first parallel computing job, wherein each of the server nodes is used to cause the multiple memory keys to be registered to corresponding multiple memory areas in a corresponding network interface controller in the network interface controller.

[0015] According to another embodiment of the present disclosure, a server node device is also provided, including: a network interface controller, which is used to send and receive packets through a network; and a host memory; and a processor, which is used to: execute a first parallel computing process of a parallel computing job; receive a symmetric memory key from a key manager; cause registration of a host memory area in the host memory in the network interface controller using the symmetric memory key, so that different remote server nodes can access the host memory area via the network interface controller using remote direct memory access using the symmetric memory key; send a first remote direct memory access request including the symmetric memory key to access the host memory of the first remote server node that executes the second parallel computing process of the parallel computing job using the symmetric memory key; and send a second remote direct memory access request including the symmetric memory key to access the host memory of the second remote server node that executes the third parallel computing process of the parallel computing job using the symmetric memory key.

[0016] Still further, according to an embodiment of the present disclosure, the processor is used to: select a memory area of ​​the host memory; and provide the symmetric memory key and the identifier of the memory area to the network interface controller; and the network interface controller is used to: receive the symmetric memory key and the identifier of the memory area; and perform the registration of the memory area using the symmetric memory key.

[0017] In addition, according to an embodiment of the present disclosure, the first parallel computing process includes a first parallel computing model and a first network library.

[0018] In addition, according to an embodiment of the present disclosure, the first parallel computing model is used to: receive the symmetric memory key; select a memory area of ​​the host memory; and provide the symmetric memory key and the identifier of the memory area to the first network library; and the first network library is used to provide the symmetric memory key and the identifier of the memory area to the network interface controller.

[0019] According to another embodiment of the present disclosure, a parallel computing method is also provided, including: assigning symmetric memory keys to parallel computing jobs, which includes assigning a first symmetric memory key to a first parallel computing job; executing a parallel computing process of the first parallel computing job; causing registration of a host memory area of ​​the server node using the assigned first symmetric memory key in a corresponding network interface controller of the server node, so that a remote server node in the server node can access different host memory areas in the host memory area using the first symmetric memory key using remote direct memory access.

[0020] Further in accordance with an embodiment of the present disclosure, the method includes accessing, by the first server node, a host memory region of the second server node using remote direct memory access with the first symmetric memory key.

[0021] Further according to an embodiment of the present disclosure, the method includes: by a first server node: executing a first parallel computing process of the first parallel computing job; receiving the first symmetric memory key; selecting a first memory area of ​​the first host memory of the first server node; and providing the first symmetric memory key and the identifier of the first memory area to a first network interface controller of the first server node; by the first network interface controller: receiving the first symmetric memory key and the identifier of the first memory area; and performing a first registration of the first memory area using the first symmetric memory key; by a second server node: executing a second parallel computing process of the first parallel computing job; receiving the first symmetric memory key; selecting a second memory area of ​​the second host memory of the second server node; and providing the first symmetric memory key and the identifier of the second memory area to a second network interface controller of the second server node; and by the second network interface controller: receiving the first symmetric memory key and the identifier of the second memory area; and performing a second registration of the second memory area using the first symmetric memory key.

[0022] In addition, according to an embodiment of the present disclosure, the method includes: receiving, by the first network interface controller, a first remote direct memory access request including the first symmetric memory key from a third parallel computing process of the first parallel computing job; and receiving, by the second network interface controller, a second remote direct memory access request including the first symmetric memory key from a fourth parallel computing process of the first parallel computing job.

[0023] In addition, according to an embodiment of the present disclosure, the method includes: by the first network interface controller: receiving a first remote direct memory access request including the first symmetric memory key from the third parallel computing process of the first parallel computing job; finding the first memory area based on the first registration and the first symmetric memory key included in the first remote direct memory access request; and writing data to the first memory area of ​​the first host memory or retrieving data from the first memory area of ​​the first host memory in response to the found first memory area and the first remote direct memory access request; and by the second network interface controller: receiving a second remote direct memory access request including the first symmetric memory key from the fourth parallel computing process of the first parallel computing job; finding the second memory area based on the second registration and the first symmetric memory key included in the second remote direct memory access request; and writing data to the second memory area of ​​the second host memory or retrieving data from the second memory area of ​​the second host memory in response to the found second memory area and the second remote direct memory access request.

[0024] Further according to an embodiment of the present disclosure, the first parallel computing process includes a first parallel computing model and a first network library, the second parallel computing process includes a second parallel computing model and a second network library, and the method further includes: by the first parallel computing model: receiving the first symmetric memory key; selecting the first memory area of ​​the first host memory; and providing the first symmetric memory key and the identification of the first memory area to the first network library; by the first network library providing the first symmetric memory key and the identification of the first memory area to the first network interface controller; by the second parallel computing model: receiving the first symmetric memory key; selecting the second memory area of ​​the second host memory; and providing the first symmetric memory key and the identification of the second memory area to the second network library; and by the second network library providing the first symmetric memory key and the identification of the second memory area to the second network interface controller.

[0025] Further according to an embodiment of the present disclosure, the method includes: maintaining a list of which of the symmetric memory keys are not allocated to the active parallel computing jobs and which of the symmetric memory keys are allocated to the active parallel computing jobs; and allocating one of the unallocated symmetric memory keys to the first parallel computing job.

[0026] In addition, according to an embodiment of the present disclosure, the method includes: establishing the parallel computing process of the first parallel computing job on the server node; requesting an unassigned symmetric memory key from a key manager for the first parallel computing job; receiving the first symmetric memory key from the key manager for the first parallel computing job; providing the first symmetric memory key to the parallel computing process of the first parallel computing job running on the server node; and indicating in the list that the first symmetric memory key is assigned to the first parallel computing job.

[0027] Furthermore, according to an embodiment of the present disclosure, the method includes: assigning a same symmetric memory key to two different parallel computing jobs that do not use one or more common network interface controllers among the network interface controllers.

[0028] Further in accordance with an embodiment of the present disclosure, the method includes: allocating a plurality of symmetric memory keys to the first parallel computing job; and causing the plurality of memory keys to be registered to a corresponding plurality of memory regions in a corresponding one of the network interface controllers.

[0029] According to another embodiment of the present disclosure, a parallel computing method is also provided, including: sending and receiving packets through a network; executing a first parallel computing process of a parallel computing job; receiving a symmetric memory key from a key manager; causing registration of a host memory area of ​​a host memory in a network interface controller using the symmetric memory key, so that different remote server nodes can access the host memory area via the network interface controller using remote direct memory access using the symmetric memory key; sending a first remote direct memory access request including the symmetric memory key to access the host memory of a first remote server node that executes a second parallel computing process of the parallel computing job using the symmetric memory key; and sending a second remote direct memory access request including the symmetric memory key to access the host memory of a second remote server node that executes a third parallel computing process of the parallel computing job using the symmetric memory key.

[0030] Further according to an embodiment of the present disclosure, the method includes: selecting the memory area of ​​the host memory; providing the symmetric memory key and the identifier of the memory area to the network interface controller; receiving the symmetric memory key and the identifier of the memory area by the network interface controller; and performing the registration of the memory area using the symmetric memory key. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The present invention will be understood through the following detailed description in conjunction with the accompanying drawings, in which:

[0032] Figure 1 is a block diagram illustration of a parallel computing system constructed and operative in accordance with an embodiment of the present invention;

[0033] Figure 2 It includes Figure 1 A flowchart of the steps in the method performed by a resource manager in a system;

[0034] Figure 3 It includes Figure 1 A flowchart of the steps in the method performed by a key manager in a system;

[0035] Figure 4 It shows the storage key registration Figure 1 A block diagram view of the system;

[0036] Figure 5 is included in Figure 1 A flowchart of steps in a method executed by a processor in a server node of a system to initiate storage key registration;

[0037] Figure 6 is used for Figure 1 A block diagram view of the parallel computing processes in the system;

[0038] Figure 7 It includes Figure 1 A flowchart of steps executed by a network interface controller in a server node of a system to perform a method of storage key registration;

[0039] Figure 8 is a diagram showing two server nodes sending RDMA requests to two other server nodes Figure 1 A block diagram view of the system;

[0040] Fig. 9 It includes Figure 1 A flowchart of steps in a method performed by parallel computing processes in a system to generate and send RDMA requests;

[0041] Fig.10 It includes Figure 1 A flowchart of steps in a method performed by a network interface controller in a system to process a received RDMA request;

[0042] Fig.11 The server node sends an RDMA request to a different server node. Figure 1 A block diagram view of the system; and

[0043] Fig.12is a diagram showing two different processes of different parallel computing jobs sending RDMA requests to the same server node Figure 1 A block diagram view of the system. DETAILED DESCRIPTION

[0044] Overview

[0045] For RDMA transport, the underlying network requires HPC software such as network libraries and programming model implementations to register and pin the memory of the data buffer. When registering and pinning, the information required to remotely access the memory is encapsulated in an RKey object.

[0046] A parallel application is a set of processes on different central processing unit (CPU) cores that work together in the same or different nodes to solve a single problem. A parallel application includes an execution unit (EU) that performs calculations and initiates communications. An EU is typically represented by an operating system (OS) process or thread. Although a job may include one or more parallel applications, it should be noted that for simplicity, the terms "job", "parallel computing job", "parallel application" and "application" are used interchangeably herein, assuming that the job includes a single parallel application. However, it should be noted that embodiments of the present invention may be used with jobs that include multiple parallel applications.

[0047] For typical parallel applications with many execution units (typically ranging from thousands to millions), each EU is required to maintain an RKey for each memory region accessed using RDMA operations. In existing implementations, combined with the software meta-information associated with each RKey, this results in each process maintaining a large number of RKeys and incurring significant memory overhead. Typical RKey table memory consumption increases with the number of processes and RDMA-exposed memory regions in parallel applications, which, as mentioned earlier, can be on the order of millions and are typically proportional to the number of CPU cores used by clusters and supercomputers. The combined size of all RKey tables on a high-performance computing (HPC) compute node can grow to the order of hundreds of gigabytes. In addition, when the RKey table is searched on each network (RDMA) operation, this results in cache overload, which not only affects network operations, but also the computational portion of the application or job.

[0048] Therefore, embodiments of the present invention address at least some of the above deficiencies by using a single memory key (referred to as a "symmetric memory key" or "SM key") for use by all processes of a job to provide remote direct memory access to host memory, rather than using an RKey unique to each registered host memory region for each process of the job. The SM key includes information for accessing a single memory region of each process (e.g., EU) for all processes (e.g., EU) in the job. Therefore, there is no need to establish and maintain an RKey table.

[0049] Previously, it was mentioned that although in some cases a job includes multiple parallel applications, for simplicity, the terms "job", "parallel computing job", "parallel application" and "application" are used interchangeably herein based on the assumption that a job typically includes a single parallel application. In some embodiments where a job includes multiple parallel applications, the SM key is used for all runs in each parallel application in the job.

[0050] In some embodiments, the resource manager requests a new SM key for a new job from the key manager. The resource manager may provide other functions, such as setting up a parallel computing process for a new job on a server node. The key manager tracks which SM keys have been assigned to jobs and provides unassigned SM keys to new jobs. When a job completes processing, the SM key assigned to the job is typically returned to the unassigned SM key pool.

[0051] In some embodiments, the same SM key can be assigned for use by different jobs if they do not have access to a common NIC. The same SM key cannot be used by different jobs if those jobs are accessing one or more of the same NICs. Thus, in some embodiments, the key manager tracks the SM keys assigned to jobs and the usage of the NICs and / or server nodes participating in the jobs.

[0052] In some embodiments, the resource manager may request that more than one SM key from the key manager be assigned to a parallel application in order to provide more memory areas for the parallel application to use during execution. For example, a parallel application may be assigned an SM key 1A for registering with a first memory area and an SM key 1B for registering with a second memory area, and so on. In such a case, an RDMA request to the parallel application may use either SM key 1A or SM key 1B.

[0053] In some embodiments, the resource manager may request one or more additional SM keys while a job is already running, for example if there are additional memory needs.

[0054] In some embodiments, the resource manager receives a new SM key from the key manager and distributes the received SM key to the processes of the job running on different server nodes. In each server, the process (e.g., EU) (of the new job) running on the server selects a memory area in its local host memory and provides the new SM key and the identification (ID) of the selected memory area to the NIC of the server. The NIC then registers the new SM key with the selected memory area. In this way, all memory areas on all servers participating in the new job can access each other's host memory using the SM key, because each local NIC knows the mapping between the SM key and the memory area in its local host memory assigned to be used by the new job.

[0055] In some embodiments, the EU runs some HPC software stack, including parallel programming models and network libraries, which can cause the NIC to register the SM key with the selected memory region. For example, the parallel programming model can pass the selected memory region and the new SM key to the network library, and the network library uses this information to program the NIC to register the SM key with the selected memory region in the NIC memory.

[0056] System Description

[0057] See now Figure 1 , Figure 1 is a block diagram illustration of a parallel computing system 10 constructed and operative in accordance with an embodiment of the present invention.

[0058] The system 10 includes a key manager 12, a resource manager 14, and a plurality of server nodes 18. The key manager 12 and the resource manager 14 may be provided in separate network nodes or servers, or may be provided in the same network node 16 or server. Each server node 18 includes a processor 20 (e.g., a central processing unit (CPU) and / or a graphics processing unit (GPU) or a field programmable gate array (FPGA) and / or an accelerator), a host memory 22, and a network interface controller (NIC) 24. The network interface controller 24 of each server node 18 provides network access for its server node 18 and is configured to send and receive packets over the network.

[0059] In practice, some or all of the functions of the processor 20 may be combined in a single physical component, or alternatively, implemented using multiple physical components. These physical components may include hard-wired or programmable devices, or a combination of the two. In some embodiments, at least some of the functions of the processor 20 may be performed by a programmable processor under the control of suitable software. For example, the software may be downloaded to the device in electronic form over a network. Alternatively, or additionally, the software may be stored in a tangible, non-volatile computer-readable storage medium, such as an optical, magnetic, or electronic memory.

[0060] The processor 20 of the server node 18 executes a parallel computing process of one or more parallel computing jobs (e.g., parallel computing job 1). The key manager 12 is configured to distribute a symmetric memory key (SMK) 26 (e.g., upon receiving a request from the resource manager 14) to the parallel computing job including SMK1 to the parallel computing job 1. Figure 1 Each processor 20 shown in FIG. 1 is shown as executing a parallel computing process (PCP) 28. For example, the processor 20 of server node 1 is shown as executing PCP1 and the processor 20 of server node 2 is shown as executing PCP2.

[0061] The following will refer to Figure 4 Described in more detail, the server node 18 causes the corresponding host memory area of ​​the host memory 22 of the server node 18 to be registered in the corresponding network interface controller 24 of the server node 18 using the allocated SMK1, so that the different host memory areas can be accessed by the remote server node 18 using the remote direct memory access using SMK1. In other words, each server node 18 causes its local host memory area to be registered in its network interface controller 24 using the allocated SMK1, so that its host memory area can be accessed by the remote server node 18 using the remote direct memory access using SMK1. For example, the server node 1 is configured to access the host memory area of ​​the server node 2 using the remote direct memory access using SMK1. The memory registration is described in more detail below.

[0062] Reference now Figure 2 , Figure 2 It includes Figure 1 Flowchart 200 of steps in a method performed by resource manager 14 in system 10. Figure 1The resource manager 14 is configured to: establish a parallel computing process 28 of a parallel computing job 1 on a server node 18 (box 202); request an unallocated symmetric memory key for the parallel computing job 1 from the key manager 12 (box 204); receive the SMK1 for the parallel computing job 1 from the key manager 12 (box 206); and provide (an instance of) SMK1 to the parallel computing process 28 of the parallel computing job 1 running on the server node 28 (box 208).

[0063] Reference now Figure 3 , Figure 3 It includes Figure 1 Flowchart 300 of steps in a method performed by the key manager 12 in the system 10. Figure 1 . The key manager 12 is configured to: maintain a list 34 of which symmetric memory keys 26 are assigned to active parallel computing jobs (box 302) (and which network interface controllers 24 are being used for these jobs to prevent the same key from being assigned to different jobs using one or more of the common network interface controllers 24) and optionally which symmetric memory keys 26 are not assigned to active parallel computing jobs; assign an unassigned symmetric memory key (e.g., SMK1) of the unassigned symmetric memory keys 26 to parallel computing job 1 in response to a request from the resource manager 14 (box 304); indicate in the list 34 that SMK1 is assigned to parallel computing job 1 (box 306); and in response to parallel computing job 1 completing, update the list 34 to show that SMK1 is now not assigned to the active parallel computing job (box 308). An active parallel computing job is a parallel computing job that is or has been set up for processing and has not yet completed processing.

[0064] In some embodiments, the key manager 12 may be configured to assign the same symmetric memory key to two or more different parallel computing jobs that do not use one or more common network interface controllers in the network interface controllers 24. In some embodiments, the key manager 12 may be configured to assign multiple symmetric memory keys to the parallel computing job 1 (in response to a request from the resource manager 14). In such an embodiment, each server node 18 is configured such that multiple memory keys (assigned by the key manager 12 to the parallel computing job 1) are registered to corresponding multiple memory regions in a corresponding one of the network interface controllers 24.

[0065] To ensure that parallel computing jobs / applications are protected from intentional and unintentional SMK conflicts, the key manager 12 may encrypt and / or sign one or more symmetric memory keys 26 to create a secure channel between the key manager 12 and the network interface controller 24 of the server node 18. Thus, in some embodiments, the network interface controller 24 includes one or more secret keys to decrypt and / or verify the symmetric memory keys 26.

[0066] Reference now Figure 4 and Figure 5 . Figure 4 yes Figure 1 1 is a block diagram view of system 10 illustrating memory key registration. Figure 5 is a flow chart 500, which includes Figure 1 The processor 20 in the server node 1 of the system 10 executes the steps in the method for initiating storage key registration.

[0067] The processor 20 of the server node 1 is configured to: execute a parallel computing process 1 (PCP1) of a parallel computing job 1 (box 502); receive SMK1 from the resource manager 14 (box 504); select a memory region 30 (MR1) of the host memory 22 of the server node 1 (box 506); and register MR1 with SMK1 in the network interface controller 24 of the server node 1 (box 32), so that MR1 can be accessed via the network interface controller 24 by different remote server nodes 28 (i.e., server nodes other than the server node 1 that are also part of the parallel computing job 1) using remote direct memory access (RDMA) using SMK1, including providing the identifiers of SMK1 and MR1 to the network interface controller 24 of the server node 1 (box 508). In addition to performing different processing in each server node 18 (e.g., PCP2 in server node 2) and selecting a different host memory region 30 (e.g., MR2 in server node 2) and registering (box 32) by the network interface controller 24 of that server node 18 (e.g., registering MR2 using SMK1 by the network interface controller 24 of server node 2), the above steps are also performed by each other server node 18 that receives SMK1 from the resource manager 14.

[0068] Reference now Figure 6 , Figure 6 is used for Figure 1 A block diagram of an example of a parallel computing process 1 (PCP1) in the system 10. Also refer to Figure 5 The parallel computing process 1 (block 600) may include a parallel computing model 1 (block 602) and a network library 1 (block 604).

[0069] One or more of the steps of blocks 502-508 may be performed by parallel computing model 1, and one or more of the steps of blocks 502-508 may be performed by network library 1. For example, parallel computing model 1 may perform the steps of blocks 502-506 and provide the identifications of SMK1 and MR1 to network library 1, which then performs the step of block 508.

[0070] Similarly, PCP2 may include parallel computing model 2 and network library 2, etc. In a manner similar to that described above with respect to PCP1, one or more steps in blocks 502-508 may be performed by parallel computing model 2, and one or more steps in blocks 502-508 may be performed by network library 2 for PCP2. For example, parallel computing model 2 may perform the steps of blocks 502-506 and provide the identifications of SMK1 and MR2 to network library 2, which then performs the steps of block 508.

[0071] Reference now Figure 7 , Figure 7 It includes Figure 1 Flowchart 700 of steps in a method of performing storage key registration (block 32) by a network interface controller 24 in a server node 1 of a system 10. Figure 4 The network interface controller 24 of server node 1 is configured to: receive the identifiers of SMK1 and MR1 (box 702); perform registration of MR1 using SMK1 (box 32) (box 704). The network interface controllers 24 of other server nodes 18 perform similar operations. For example, the network interface controller 24 of server node 2 is configured to receive the identifiers of SMK1 and MR2, and perform registration of MR2 using SMK1.

[0072] Reference now Figure 8 and Fig. 9 . Figure 8 FIG. 1 is a diagram showing two server nodes (server nodes 3 and 4) sending RDMA requests 36-1, 36-2 to two other server nodes (server nodes 1 and 2, respectively). Figure 1 A block diagram view of system 10 is provided. Fig. 9 is included in Figure 1Flowchart 900 of steps in a method performed by a parallel computing process (e.g., PCP3) in system 10 to generate and send an RDMA request 36-1. PCP3 is configured to find a symmetric memory key 26 (i.e., SMK1) for a parallel computing job 1 of PCP3 in a memory (box 902), which may include a table of symmetric memory keys 26 for parallel computing jobs run by server node 3. PCP3 is configured to generate an RDMA request 36-1 using the found SM key (i.e., SMK1) (box 904), and send the generated RDMA request 36-1 to a remote server (e.g., server node 1) of PCP1 that is executing the (same) parallel computing job 1 (box 906). Figure 8 PCP4 running on server node 4 is also shown performing similar steps to generate and send RDMA request 36 - 2 to server node 2 .

[0073] See now Fig.10 , Fig.10 is a flow chart 1000, which includes Figure 1 The steps in the method of processing the received RDMA request 36-1 are performed by the network interface controller 24 of the server node 1 in the system 10. Also refer to Figure 8 The network interface controller 24 of the server node 1 is configured to: receive an RDMA request 36-1 including SMK1 from the PCP3 of the parallel computing job 1 (box 1002); find a memory area (i.e., MR1) corresponding to SMK1 in the host memory 22 of the server node 1 based on the SMK1 included in the RDMA request 36-1 and the previously performed registration of mapping SMK1 to MR1 (box 32) (box 1004); and write data to or retrieve data from MR1 of the host memory 22 of the server node 1 in response to the found memory area 30 (i.e., MR1) and the RDMA request 36-1 requesting execution of the RDMA process (box 1006).

[0074] Similarly, the network interface controller 24 of the server node 2 is configured to: receive an RDMA request 36-2 including SMK1 from the PCP4 of the parallel computing job 1; find MR2 in the host memory 22 of the server node 2 based on the SMK1 included in the RDMA request 36-2 and the previously performed registration (box 32) of mapping SMK1 to MR2; and write data to or retrieve data from MR2 of the host memory 22 of the server node 2 in response to the found memory area 30 (i.e., MR2) and the RDMA request 36-2 requesting execution of the RDMA process.

[0075] See now Fig.11 , Fig.11 yes Figure 1 The block diagram of the system 10 shows that the server node 1 sends RDMA requests 36-3, 36-4 to different server nodes (server nodes 3 and 4, respectively). The PCP1 running on the processor 20 of the server node 1 is configured to generate and send the RDMA request 36-3 including SMK1 to access the host memory 22 of the remote server node 3 (which is executing the PCP3 of the parallel computing job 1) using SMK1. Similarly, the PCP1 running on the processor 20 of the server node 1 is configured to generate and send the RDMA request 36-4 including SMK1 to access the host memory 22 of the remote server node 4 (which is executing the PCP4 of the parallel computing job 1) using SMK1.

[0076] See now Fig.12 , Fig.12 is a diagram showing two different processes 28 sending RDMA requests from different parallel computing jobs (PCP2 of job 1 and PCP4 of job 3) to the same server node (server node 1). Figure 1 10. PCP2 and PCP4 may run on the same server node 18 or on different server nodes 18.

[0077] PCP2 of parallel computing job 1 running on a server node (far away from server node 1) is configured to generate and send an RDMA request 36-5 including SMK1 to access the host memory 22 of server node 1 (which is executing PCP1 of parallel computing job 1) using SMK1.

[0078] PCP4 of parallel computing job 3 is running on a server node (which is far away from server node 1) and is configured to generate and send an RDMA request 36-6 including SMK3 (because SMK3 is the SM key assigned to parallel computing job 3 by the key manager 12) to access the host memory 22 of server node 1 (which is executing PCP9 of parallel computing job 3) using SMK3.

[0079] The network interface controller 24 of the server node 1 is configured to: receive an RDMA request 36-5 including SMK1 from the PCP2 of the parallel computing job 1; find MR1 in the host memory 22 of the server node 1 based on the SMK1 included in the RDMA request 36-5 and the previously performed registration (box 32) of mapping SMK1 to MR1; and write data to or retrieve data from MR1 of the host memory 22 of the server node 1 in response to the found memory area 30 (i.e., MR1) and the RDMA request 36-5 requesting to execute an RDMA process.

[0080] The network interface controller 24 of the server node 1 is configured to: receive an RDMA request 36-6 including SMK3 from the PCP4 of the parallel computing job 3; find MR6 in the host memory 22 of the server node 1 based on the SMK3 included in the RDMA request 36-6 and the previously performed registration (box 32) of mapping SMK3 to MR6; and write data to MR6 of the host memory 22 of the server node 1 or retrieve data from MR6 of the host memory 22 of the server node 1 in response to the found memory area 30 (i.e., MR6) and the RDMA request 36-6 requesting execution of the RDMA process.

[0081] For the sake of clarity, various features of the invention described in the context of separate embodiments may also be provided in combination in a single embodiment. Conversely, for the sake of brevity, various features of the invention described in the context of a single embodiment may also be provided separately or in any suitable sub-combination.

[0082] The above embodiments are cited by way of example, and the present invention is not limited by what has been specifically shown and described above. On the contrary, the scope of the present invention includes the combination and sub-combination of the various features described above, as well as changes and modifications thereof that occur to those skilled in the art upon reading the above description and are not disclosed in the prior art.

Claims

1. A parallel computing system, comprising: A key manager, the key manager being used to assign symmetric memory keys to parallel computing jobs, including assigning a first symmetric memory key to a first parallel computing job; as well as A plurality of server nodes, wherein the plurality of server nodes are used for: executing a parallel computing process of the first parallel computing job; and The host memory area of ​​the server node is registered in the corresponding network interface controller of the server node using the assigned first symmetric memory key, so that a remote server node in the server node can access different host memory areas in the host memory area using remote direct memory access using the first symmetric memory key.

2. The system of claim 1, wherein the server node comprises a first server node and a second server node, the first server node being configured to access one of the host memory regions of the second server node using remote direct memory access with the first symmetric memory key.

3. The system of claim 1, wherein the server node comprises: a first server node having a first host memory and a first network interface controller; and a second server node, the second server node having a second host memory and a second network interface controller, the first network interface controller and the second network interface controller providing network access to the first server node and the second server node, respectively, and wherein: The first server node is used for: Execute a first parallel computing process of the first parallel computing job; receiving the first symmetric memory key; selecting a first memory region of the first host memory; and providing the first symmetric memory key and an identification of the first memory region to the first network interface controller; The first network interface controller is used for: receiving said first symmetric memory key and said identification of said first memory region; and performing a first registration of the first memory area using the first symmetric memory key; The second server node is used for: Execute a second parallel computing process of the first parallel computing job; receiving the first symmetric memory key; selecting a second memory region of the second host memory; and providing the first symmetric memory key and an identification of the second memory region to the second network interface controller; and The second network interface controller is used for: receiving said first symmetric memory key and said identification of said second memory region; and A second registration of the second memory area is performed using the first symmetric memory key.

4. The system of claim 3, wherein: The first network interface controller is used to receive a first remote direct memory access request including the first symmetric memory key from a third parallel computing process of the first parallel computing job; as well as The second network interface controller is used to receive a second remote direct memory access request including the first symmetric memory key from a fourth parallel computing process of the first parallel computing job.

5. The system of claim 3, wherein: The first network interface controller is used for: receiving a first remote direct memory access request including the first symmetric memory key from a third parallel computing process of the first parallel computing job; finding the first memory region based on the first registration and the first symmetric memory key included in the first remote direct memory access request; as well as writing data to or retrieving data from the first memory area of ​​the first host memory in response to the found first memory area and the first remote direct memory access request; and The second network interface controller is used for: receiving a second remote direct memory access request including the first symmetric memory key from a fourth parallel computing process of the first parallel computing job; finding the second memory region based on the second registration and the first symmetric memory key included in the second remote direct memory access request; as well as In response to the found second memory area and the second remote direct memory access request, data is written to or retrieved from the second memory area of ​​the second host memory.

6. The system of claim 3, wherein: The first parallel computing process includes a first parallel computing model and a first network library; The first parallel computing model is used to: receive the first symmetric memory key; select the first memory area of ​​the first host memory; and providing said first symmetric memory key and said identification of said first memory region to said first network library; The first network library is used to provide the first symmetric memory key and the identification of the first memory region to the first network interface controller; The second parallel computing process includes a second parallel computing model and a second network library; The second parallel computing model is used to: receive the first symmetric memory key; select the second memory area of ​​the second host memory; and providing said first symmetric memory key and said identification of said second memory region to said second network library; as well as The second network library is for providing the first symmetric memory key and the identification of the second memory region to the second network interface controller.

7. A system according to claim 1, wherein the key manager is used to: maintain a list of which of the symmetric memory keys are not assigned to active parallel computing jobs and which of the symmetric memory keys are assigned to the active parallel computing jobs; and assign one of the unassigned symmetric memory keys to the first parallel computing job.

8. The system according to claim 7, further comprising a resource manager, the resource manager being configured to: Establishing the parallel computing process of the first parallel computing job on the server node; requesting an unallocated symmetric memory key from the key manager for the first parallel computing job; receiving the first symmetric memory key from the key manager for the first parallel computing job; as well as The first symmetric memory key is provided to the parallel computing process of the first parallel computing job running on the server node, wherein the key manager is used to indicate in the list that the first symmetric memory key is assigned to the first parallel computing job.

9. The system of claim 1, wherein the key manager is to distribute the same symmetric memory key to two different parallel computing jobs that do not use one or more common ones of the network interface controllers.

10. The system of claim 1, wherein the key manager is used to assign multiple symmetric memory keys to the first parallel computing job, and wherein each of the server nodes is used to cause the multiple memory keys to be registered to corresponding multiple memory areas in a corresponding network interface controller in the network interface controller.

11. A server node device, comprising: a network interface controller for sending and receiving packets over a network; as well as Host memory; as well as Processor, which is used to: A first parallel computing process executing a parallel computing job; receiving a symmetric storage key from a key manager; causing registration of a host memory region in the host memory using the symmetric memory key in the network interface controller such that the host memory region is accessible via the network interface controller using the symmetric memory key by a different remote server node using remote direct memory access; sending a first remote direct memory access request including the symmetric memory key to access a host memory of a first remote server node executing a second parallel computing process of the parallel computing job using the symmetric memory key; as well as A second remote direct memory access request including the symmetric memory key is sent to access a host memory of a second remote server node executing a third parallel computing process of the parallel computing job using the symmetric memory key.

12. The system of claim 11, wherein: The processor is used to: selecting a memory region of the host memory; and providing the symmetric memory key and an identification of the memory region to the network interface controller; and The network interface controller is used for: receiving the symmetric memory key and the identification of the memory region; and The registering of the memory area is performed using the symmetric memory key.

13. The system of claim 12, wherein the first parallel computing process comprises a first parallel computing model and a first network library.

14. The system of claim 13, wherein: The first parallel computing model is used for: receiving the symmetric memory key; selecting a memory region of the host memory; and providing the symmetric memory key and the identification of the memory region to the first network library; as well as The first network library is configured to provide the symmetric memory key and the identification of the memory region to the network interface controller.

15. A parallel computing method, comprising: assigning symmetric memory keys to parallel computing jobs, which includes assigning a first symmetric memory key to a first parallel computing job; Execute a parallel computing process of the first parallel computing job; The host memory area of ​​the server node is registered in the corresponding network interface controller of the server node using the assigned first symmetric memory key, so that a remote server node in the server node can access different host memory areas in the host memory area using remote direct memory access using the first symmetric memory key.

16. The method according to claim 15, further comprising: The first symmetric memory key is utilized by the first server node to access a host memory region of the second server node using remote direct memory access.

17. The method according to claim 15, further comprising: From the first server node: Execute a first parallel computing process of the first parallel computing job; receiving the first symmetric memory key; selecting a first memory region of a first host memory of the first server node; as well as providing the first symmetric memory key and an identification of the first memory region to a first network interface controller of the first server node; By the first network interface controller: receiving said first symmetric memory key and said identification of said first memory region; as well as performing a first registration of the first memory area using the first symmetric memory key; From the second server node: Execute a second parallel computing process of the first parallel computing job; receiving the first symmetric memory key; selecting a second memory area of ​​a second host memory of the second server node; as well as providing the first symmetric memory key and an identification of the second memory region to a second network interface controller of the second server node; as well as By the second network interface controller: receiving said first symmetric memory key and said identification of said second memory region; and A second registration of the second memory area is performed using the first symmetric memory key.

18. The method according to claim 17, further comprising: receiving, by the first network interface controller, a first remote direct memory access request including the first symmetric memory key from a third parallel computing process of the first parallel computing job; as well as A second remote direct memory access request including the first symmetric memory key is received by the second network interface controller from a fourth parallel computing process of the first parallel computing job.

19. The method according to claim 17, further comprising: By the first network interface controller: receiving a first remote direct memory access request including the first symmetric memory key from a third parallel computing process of the first parallel computing job; finding the first memory region based on the first registration and the first symmetric memory key included in the first remote direct memory access request; as well as writing data to or retrieving data from the first memory area of ​​the first host memory in response to the found first memory area and the first remote direct memory access request; as well as By the second network interface controller: receiving a second remote direct memory access request including the first symmetric memory key from a fourth parallel computing process of the first parallel computing job; finding the second memory region based on the second registration and the first symmetric memory key included in the second remote direct memory access request; as well as In response to the found second memory area and the second remote direct memory access request, data is written to or retrieved from the second memory area of ​​the second host memory.

20. The method according to claim 17, wherein the first parallel computing process comprises a first parallel computing model and a first network library, the second parallel computing process comprises a second parallel computing model and a second network library, and the method further comprises: By the first parallel computing model: receiving the first symmetric memory key; selecting the first memory region of the first host memory; and providing said first symmetric memory key and said identification of said first memory region to said first network library; providing, by the first network library, the first symmetric memory key and the identification of the first memory region to the first network interface controller; By the second parallel computing model: receiving the first symmetric memory key; selecting the second memory region of the second host memory; and providing said first symmetric memory key and said identification of said second memory region to said second network library; as well as The first symmetric memory key and the identification of the second memory region are provided by the second network library to the second network interface controller.

21. The method of claim 17, further comprising: maintaining a list of which of the symmetric memory keys are not assigned to an active parallel computing job and which of the symmetric memory keys are assigned to the active parallel computing job; as well as An unassigned symmetric memory key of the unassigned symmetric memory keys is assigned to the first parallel computing job.

22. The method according to claim 21, further comprising: Establishing the parallel computing process of the first parallel computing job on the server node; requesting an unassigned symmetric memory key from a key manager for the first parallel computing job; receiving the first symmetric memory key from the key manager for the first parallel computing job; providing the first symmetric memory key to the parallel computing process of the first parallel computing job running on the server node; as well as The first symmetric memory key is indicated in the list as being assigned to the first parallel computing job.

23. The method of claim 15, further comprising: The same symmetric memory key is distributed to two different parallel computing jobs that do not use one or more common ones of the network interface controllers.

24. The method of claim 15, further comprising: assigning a plurality of symmetric memory keys to the first parallel computing job; as well as The plurality of memory keys are caused to be registered to a corresponding plurality of memory areas in a corresponding network interface controller among the network interface controllers.

25. A parallel computing method, comprising: Send and receive packets over a network; A first parallel computing process executing a parallel computing job; receiving a symmetric storage key from a key manager; causing registration of a host memory region of a host memory in a network interface controller using the symmetric memory key, such that the host memory region is accessible via the network interface controller using the symmetric memory key by a different remote server node using remote direct memory access; sending a first remote direct memory access request including the symmetric memory key to access a host memory of a first remote server node executing a second parallel computing process of the parallel computing job using the symmetric memory key; as well as A second remote direct memory access request including the symmetric memory key is sent to access a host memory of a second remote server node executing a third parallel computing process of the parallel computing job using the symmetric memory key.

26. The method according to claim 25, further comprising: selecting the memory region of the host memory; providing the symmetric memory key and an identification of the memory region to the network interface controller; receiving, by the network interface controller, the symmetric memory key and the identification of the memory region; as well as The registering of the memory area is performed using the symmetric memory key.