Search

CN-121996148-A - Data transmission method, device, computer equipment and readable storage medium

CN121996148ACN 121996148 ACN121996148 ACN 121996148ACN-121996148-A

Abstract

The application relates to a data transmission method, a device, a computer device and a readable storage medium, which are applied to terminal equipment configured with a dynamic memory management module, wherein the target equipment comprises near-end equipment or far-end equipment which is in communication connection with the terminal equipment. By adopting the method, the power consumption of RDMA can be reduced.

Inventors

  • HU CHENGXIANG
  • WANG SHUANG

Assignees

  • 沐曦集成电路(南京)有限公司

Dates

Publication Date
20260508
Application Date
20241107

Claims (13)

  1. 1. A data transmission method, applied to a terminal device configured with a dynamic memory management module, the method comprising: Determining a current working mode of Remote Direct Memory Access (RDMA) under the condition that the remote RDMA corresponding to target equipment is detected to be started; And configuring a first type memory corresponding to the current working mode in the target equipment to be used for data transmission of the RDMA.
  2. 2. The method according to claim 1, wherein the method further comprises: and under the condition that the RDMA is detected to be powered up, configuring a second type memory in the target device to start the RDMA.
  3. 3. The method of claim 2, wherein configuring the second type of memory in the target device comprises: erasing the value of the second type memory; and writing the value of the second type memory into a first preset value.
  4. 4. The method of claim 2 or 3, wherein the dynamic memory management module comprises a plurality of sub-modules, each sub-module corresponding to a memory in the target device, the configuring the second type of memory in the target device comprising: And configuring the second type memory in the target equipment in parallel.
  5. 5. A method according to any one of claims 1-3, wherein the method further comprises: monitoring a first type memory and/or a third type memory in the target device, wherein the third type memory is configured by the RDMA in the data transmission process of the RDMA; If the existence of the target memory is detected, the clock of the target memory is closed, the target memory is a memory which does not receive an operation instruction within a preset time period in the first type memory and/or the third type memory, and the operation instruction comprises a writing instruction and a reading instruction.
  6. 6. The method of any of claims 1-3, wherein the determining the current operating mode of the RDMA comprises: In the event that power-up of the RDMA is detected, the operating mode of the RDMA is periodically acquired until the current operating mode is determined.
  7. 7. A method according to any one of claims 1 to 3, wherein said configuring a first type of memory corresponding to the current operating mode in the target device includes: erasing the value of the first type memory; and writing the value of the first type memory into a second preset value.
  8. 8. The data transmission method is characterized by being applied to target equipment, wherein the target equipment comprises near-end equipment or far-end equipment which is in communication connection with terminal equipment, the terminal equipment is provided with a dynamic memory management module, and the method comprises the following steps: Receiving a configuration instruction sent by the terminal equipment, wherein the configuration instruction is used for configuring a first type memory corresponding to a current working mode in the target equipment so as to enable RDMA corresponding to the target equipment to carry out data transmission, and the current working mode is the working mode of the RDMA determined under the condition that the terminal equipment detects the starting of the RDMA.
  9. 9. A data transmission apparatus for use with a terminal device configured with a dynamic memory management module, the apparatus comprising: The system comprises a determining module, a determining module and a processing module, wherein the determining module is used for determining the current working mode of Remote Direct Memory Access (RDMA) under the condition that the remote RDMA corresponding to target equipment is detected to be started; the first configuration module is configured to configure a first type of memory corresponding to the current working mode in the target device, so as to enable the RDMA to conduct data transmission.
  10. 10. The data transmission device is characterized by being applied to target equipment, wherein the target equipment comprises near-end equipment or far-end equipment which is in communication connection with terminal equipment, the terminal equipment is provided with a dynamic memory management module, and the data transmission device comprises: The terminal equipment comprises a receiving module, a configuration instruction sending module and a receiving module, wherein the receiving module is used for receiving the configuration instruction sent by the terminal equipment, the configuration instruction is used for configuring a first type memory corresponding to a current working mode in the target equipment so as to enable RDMA corresponding to the target equipment to carry out data transmission, and the current working mode is the working mode of the RDMA determined under the condition that the terminal equipment detects the starting of the RDMA.
  11. 11. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 8 when the computer program is executed.
  12. 12. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 8.
  13. 13. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the method of any one of claims 1 to 8.

Description

Data transmission method, device, computer equipment and readable storage medium Technical Field The present application relates to the field of computer technologies, and in particular, to a data transmission method, apparatus, computer device, and readable storage medium. Background Remote direct memory access (Remote Direct Memory Access, RDMA) is a network communication technology that allows data to be transferred directly between the sender's and receiver's memories without going through the receiver's central processor (Central Processing Unit, CPU), significantly improving the efficiency and speed of data transfer. However, the efficiency of RDMA tends to be accompanied by higher energy consumption, especially in massively parallel computing and distributed storage systems, a large number of RDMA operations are frequently triggered, resulting in a significant increase in the energy consumption of the Network interface card (Network INTERFACE CARD, NIC) and the memory subsystem. Currently, RDMA power consumption is reduced by means of dynamic voltage and frequency scaling (Dynamic Voltage and Frequency Scaling, DVFS) in the related art, but excessive voltage and frequency scaling may affect RDMA stability and reliability. Therefore, how to reduce the power consumption of RDMA is a technical problem to be solved. Disclosure of Invention In view of the foregoing, it is desirable to provide a data transmission method, apparatus, computer device, and readable storage medium capable of reducing power consumption of RDMA. In a first aspect, the present application provides a data transmission method applied to a terminal device configured with a dynamic memory management module, where the method includes: Determining a current working mode of RDMA (remote direct memory access) under the condition that remote RDMA (remote direct memory access) starting corresponding to target equipment is detected; And configuring a first type memory corresponding to the current working mode in the target equipment to carry out data transmission by RDMA. In one embodiment, the method further comprises: In the event RDMA power up is detected, a second type of memory in the target device is configured to initiate RDMA. In one embodiment, configuring a second type of memory in a target device includes: erasing the value of the second type memory; And writing the value of the second type memory into the first preset value. In one embodiment, the dynamic memory management module includes a plurality of sub-modules, each sub-module corresponding to a memory in the target device, and the configuring the second type memory in the target device includes: And configuring the second type memory in the target device in parallel. In one embodiment, the method further comprises: monitoring a first type memory and/or a third type memory in the target device, wherein the third type memory is configured by RDMA in the data transmission process of the RDMA; if the existence of the target memory is detected, the clock of the target memory is closed, the target memory is a memory which does not receive an operation instruction within a preset time period in the first type memory and/or the third type memory, and the operation instruction comprises a writing instruction and a reading instruction. In one embodiment, determining the current operating mode of RDMA includes: In the event RDMA power up is detected, the RDMA's operating mode is periodically acquired until the current operating mode is determined. In one embodiment, configuring a first type of memory corresponding to a current working mode in a target device includes: Erasing the value of the first type of memory; and writing the value of the first type memory into a second preset value. In a second aspect, the present application further provides a data transmission method, applied to a target device, where the target device includes a near-end device or a far-end device communicatively connected to a terminal device, and the terminal device is configured with a dynamic memory management module, and the method includes: Receiving a configuration instruction sent by a terminal device, wherein the configuration instruction is used for configuring a first type memory corresponding to a current working mode in target equipment so as to enable RDMA corresponding to the target equipment to carry out data transmission, and the current working mode is the working mode of the RDMA determined under the condition that the terminal device detects the starting of the RDMA. In a third aspect, the present application further provides a data transmission device, applied to a terminal device configured with a dynamic memory management module, where the device includes: The system comprises a determining module, a determining module and a processing module, wherein the determining module is used for determining the current working mode of RDMA under the condition that the remote direct memory access R