The application discloses a lightweight RDMA reliable connection cross-process sharing method, relates to the field of
data center networks and
remote direct memory access communication technologies, and designs a shared IP
queue to realize
multiplexing of multiple processes QP, and compresses the scale of a global hardware QP to the O(n) level of a
cluster node. First, a
shared memory transceiving
queue is created based on a target node GUID, and a statistical array and a DB mapping table are constructed; further, a
user state realizes multi-threaded writing of WQE without a global lock through atomic operation, truncated
exponential backoff, modulus slot allocation and
bitmap marking; finally, a kernel scheduler adopts WRR
weighted round robin, combines ctz bit operation to batch deliver WQE, and efficiently recycles CQE with the aid of a hot
queue, and reduces the network card overhead by batch delivering messages in a single
doorbell. The method executes a large amount of logic in the
user state, reduces context switching and lock conflict, guarantees bandwidth isolation of
multiple applications, is suitable for high-
concurrency scenes such as distributed training and key value storage, effectively alleviates the RNIC
cache invalidation problem, and significantly optimizes the
transmission delay of small packets.