The application provides a method, device and medium for simulating SRQ in an RDMA network card, and relates to the technical field of the RDMA network card, and the method comprises the steps of: creating a
software SRQ object in a kernel driver; allocating an index for an upper-layer application to uniquely identify the
software SRQ object;
copying the content of a user-issued receive work request WR into kernel memory; adding a node of a
queue pair bound to the
software SRQ object to the QP chain table; taking out a plurality of WRs from the head of the cache
queue; issuing the taken-out WRs to the hardware receive
queue of the corresponding queue pair, and recording the issued WRs as private unfinished WRs of the corresponding queue pair until the hardware releases after generating a completion event; and the application can efficiently and dynamically simulate the SRQ
semantics in the case that the hardware does not support SRQ, and realizes the sharing and adaptive scheduling of the receiving resources.