Time consumption observation method and system for data transmission in IO link, medium and equipment

Through the coordinated observation of DPU and host, the problem that the existing technology cannot realize time-consuming observation of complete IO links in DPU scenarios is solved, and comprehensive monitoring and analysis of time-consuming IO link transmission is achieved.

CN119449641APending Publication Date: 2025-02-14NANJING JAGUAR MICROSYSTEMS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310984167.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-07
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

The prior art cannot realize time-consuming observation of the complete IO link in the DPU scenario, and it is impossible to know the time-consuming IO link on the host side and the time-consuming data transfer between the DPU and the host.

Method used

The DPU receives and parses the time-consuming observation configuration parameters, and notifies the host to cooperate in the target time-consuming observation interval of the target IO link, including the time-consuming observation between the host side, the DPU side, and the host and the DPU.

Benefits of technology

It realizes the time-consuming observation of the complete IO link in the DPU scenario, and can understand the time-consuming situation of data on the host side of the IO link transmission, which is conducive to fault analysis and performance tuning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119449641A_ABST
    Figure CN119449641A_ABST
Patent Text Reader

Abstract

The invention relates to a time consumption observation method and system for data transmission in an IO link, a medium and equipment, and the method comprises the steps that a DPU receives and analyzes a time consumption observation configuration parameter to obtain a first configuration parameter, a second configuration parameter and a third configuration parameter; the first configuration parameter comprises a time-consuming observation opening instruction or a time-consuming observation closing instruction, the second configuration parameter comprises a to-be-observed target IO link, and the third configuration parameter comprises a to-be-observed target time-consuming observation interval; and when the first configuration parameter is a time-consuming observation opening instruction, the DPU notifies a host to cooperatively carry out time-consuming observation on a target time-consuming observation interval of the target IO link so as to observe time consumption of data transmission in the target time-consuming observation interval of the target IO link. Compared with a scheme for realizing IO link time consumption observation based on a single system, the method and the device have the advantages that the host side time consumption condition of data transmission on the IO link can be acquired on the DPU side, and complete IO link time consumption observation in a DPU scene can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer network technology, and specifically to a method and system for observing the time consumption of data transmission in an IO link, a computer-readable storage medium, and an electronic device. Background Art

[0002] DPU (Data Processing Unit) is a data-centric dedicated processor used to complete network, storage and security acceleration processing tasks. In order to understand the time consumption of each data processing process in the IO (Input / Output) link of the entire system of the host equipped with DPU, so as to facilitate fault analysis and performance tuning, it is becoming increasingly important to observe the IO link time consumption of the entire system.

[0003] Among them, the existing solution for observing the time consumption of data transmission in the IO link is generally to add a method of embedding points in the kernel, and then use tools such as Ftrace / Perf to dynamically observe the time consumption of the IO link.

[0004] In the process of implementing this application, the inventor found that the prior art has at least the following technical problems:

[0005] The existing solutions for observing the time consumption of data transmission in the IO link are mainly based on a single system implementation, and can only complete the IO link time consumption observation of a single system on the host side or the DPU side. That is, the IO link time consumption on the host side and the time consumption of data movement between the DPU and the host cannot be known on the DPU side. In other words, the existing solutions for observing the IO link time consumption cannot realize the IO link time consumption observation of the entire system applied to the DPU scenario. Summary of the invention

[0006] The purpose of this application is to propose a method and system for observing the time consumption of data transmission in an IO link, a computer-readable storage medium, and an electronic device, so as to solve the technical problem that the existing solutions for observing the time consumption of IO links cannot achieve complete DPU scenario IO link time consumption observation.

[0007] The present application provides a method for observing the time consumption of data transmission in an IO link, the method comprising:

[0008] The DPU receives and parses the time-consuming observation configuration parameters to obtain a first configuration parameter, a second configuration parameter, and a third configuration parameter; wherein the first configuration parameter includes an instruction to turn on the time-consuming observation or an instruction to turn off the time-consuming observation, the second configuration parameter includes a target IO link to be observed, and the third configuration parameter includes a target time-consuming observation interval to be observed;

[0009] When the first configuration parameter is to turn on the time consumption observation instruction, the DPU notifies the host to cooperate in performing time consumption observation on the target time consumption observation interval of the target IO link to observe the time consumption of data being transmitted in the target time consumption observation interval of the target IO link.

[0010] Optionally, the target time-consuming observation interval includes at least one of a first time-consuming observation interval, a second time-consuming observation interval, and a third time-consuming observation interval;

[0011] Among them, the first time-consuming observation interval is the time-consuming observation interval of the link transmission of data on the host side of the IO link, the second time-consuming observation interval is the time-consuming observation interval of the link transmission of data between the host and DPU of the IO link, and the third time-consuming observation interval is the time-consuming observation interval of the link transmission of data on the DPU side of the IO link.

[0012] Optionally, when the target time-consuming observation interval includes the first time-consuming observation interval, the step of performing time-consuming observation on the target time-consuming observation interval of the target IO link specifically includes:

[0013] The host records the first timestamp and the second timestamp, calculates the time consumed for data transmission on the host side according to the first timestamp and the second timestamp, and transmits the time consumed for data transmission on the host side to the DPU;

[0014] The first timestamp is the moment when data starts to be transmitted on the host side, or the moment when data ends to be transmitted on the host side, and the second timestamp is the moment when data ends to be transmitted on the host side and flows out of the host, or the moment when data flows into the host and starts to be transmitted on the host.

[0015] Optionally, when the time consumption observation interval includes a third time consumption observation interval, the step of performing time consumption observation on the target time consumption observation interval of the target IO link specifically further includes:

[0016] The DPU records the third timestamp and the fourth timestamp, and calculates the time consumed for the data to be transmitted on the DPU side according to the third timestamp and the fourth timestamp;

[0017] Among them, the third timestamp is the moment when the data flows out from the host and then flows into the DPU, or the moment when the data flows out from the DPU and flows to the host, and the fourth timestamp is the moment when the data ends transmission on the DPU side, or the moment when the data starts transmission on the DPU side.

[0018] Optionally, when the time consumption observation interval includes a second time consumption observation interval, the step of performing time consumption observation on the target time consumption observation interval of the target IO link specifically further includes:

[0019] The host records a second timestamp and transmits the second timestamp to the DPU; wherein the second timestamp is the time when the data ends transmission on the host side and flows out of the host, or the time when the data flows into the host and starts transmission on the host

[0020] The DPU records a third timestamp; wherein the third timestamp is the time when the data flows from the host to the DPU, or the time when the data flows from the DPU to the host;

[0021] The DPU uses the difference between the third timestamp and the second timestamp as the time consumed for data to be transmitted between the host and the DPU.

[0022] Optionally, the DPU notifies the host to collaboratively perform time consumption observation on the target time consumption observation interval of the target IO link, including:

[0023] The DPU writes the first configuration parameter, the second configuration parameter, and the third configuration parameter into the register of the host to notify the host to collaboratively perform time consumption observation on the target time consumption observation interval of the target IO link.

[0024] Optionally, when the first configuration parameter is an instruction to turn off time consumption observation, the DPU notifies the host to turn off time consumption observation.

[0025] The embodiment of the present application also provides a system for observing the time consumption of data transmitted in an IO link, the system comprising a DPU and a host, the DPU comprising a parameter receiving unit and an observation switch unit;

[0026] The parameter receiving unit is used to receive and parse the time-consuming observation configuration parameter to obtain a first configuration parameter, a second configuration parameter and a third configuration parameter; wherein the first configuration parameter includes an instruction to turn on the time-consuming observation or an instruction to turn off the time-consuming observation, the second configuration parameter includes a target IO link to be observed, and the third configuration parameter includes a target time-consuming observation interval to be observed;

[0027] The observation switch unit is used to notify the host to cooperate in performing time consumption observation on the target time consumption observation interval of the target IO link when the first configuration parameter is to turn on the time consumption observation instruction, so as to observe the time consumption of data being transmitted in the target time consumption observation interval of the target IO link.

[0028] Optionally, the target time-consuming observation interval includes at least one of a first time-consuming observation interval, a second time-consuming observation interval, and a third time-consuming observation interval;

[0029] Among them, the first time-consuming observation interval is the time-consuming observation interval of the link transmission of data on the host side of the IO link, the second time-consuming observation interval is the time-consuming observation interval of the link transmission of data between the host and DPU of the IO link, and the third time-consuming observation interval is the time-consuming observation interval of the link transmission of data on the DPU side of the IO link.

[0030] Optionally, the host is used to record a first timestamp and a second timestamp when the target time-consuming observation interval includes a first time-consuming observation interval, calculate the time consumed for data transmission on the host side according to the first timestamp and the second timestamp, and transmit the time consumed for data transmission on the host side to the DPU;

[0031] The first timestamp is the moment when data starts to be transmitted on the host side, or the moment when data ends to be transmitted on the host side, and the second timestamp is the moment when data ends to be transmitted on the host side and flows out of the host, or the moment when data flows into the host and starts to be transmitted on the host.

[0032] Optionally, the DPU further includes an observation unit;

[0033] The observation unit is configured to record a third timestamp and a fourth timestamp when the time-consuming observation interval includes a third time-consuming observation interval, and to calculate the time consumed by the data transmitted on the DPU side according to the third timestamp and the fourth timestamp;

[0034] Among them, the third timestamp is the moment when the data flows out from the host and then flows into the DPU, or the moment when the data flows out from the DPU and flows to the host, and the fourth timestamp is the moment when the data ends transmission on the DPU side, or the moment when the data starts transmission on the DPU side.

[0035] Optionally, the DPU further includes an observation unit;

[0036] The host is used to record a second timestamp when the time-consuming observation interval includes a second time-consuming observation interval, and transmit the second timestamp to the DPU; wherein the second timestamp is the time when the data ends transmission on the host side and flows out of the host, or the time when the data flows into the host and starts transmission on the host;

[0037] The observation unit is used to record a third timestamp when the time-consuming observation interval includes a second time-consuming observation interval, and use the difference between the third timestamp and the second timestamp as the time consumed for data to be transmitted between the host and the DPU; wherein the third timestamp is the moment when data flows out of the host and then flows into the DPU, or the moment when data flows out of the DPU and flows to the host.

[0038] Optionally, the observation switch unit is used to write the first configuration parameter, the second configuration parameter and the third configuration parameter into a register of the host to notify the host to collaboratively perform time-consuming observation on a target time-consuming observation interval of the target IO link.

[0039] Optionally, the observation switch unit is used to notify the host to turn off time-consuming observation when the first configuration parameter is an instruction to turn off time-consuming observation.

[0040] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by multiple processors, it implements the time-consuming observation method of data transmission in the IO link as described above.

[0041] An embodiment of the present application also provides an electronic device, including a host, a DPU, a memory, and a computer program stored in the memory and executable on the host and the DPU. When the host and the DPU execute the computer program, the time-consuming observation method for data transmission in an IO link as described above is implemented.

[0042] The embodiments of the present application have at least the following beneficial effects:

[0043] During the implementation of the embodiment of the present application, if it is necessary to observe the time consumed by data in the IO link transmission, the user can send the observation configuration parameters to the DPU through other external devices such as the cloud, and the DPU can parse the received observation configuration parameters to obtain the first configuration parameter, the second configuration parameter and the third configuration parameter; the DPU can determine whether to turn on the time consumption observation according to the first configuration parameter, and determine the target time consumption observation interval of the target IO link to be observed according to the second configuration parameter and the third configuration parameter. When the DPU determines to turn on the time consumption observation, the DPU notifies the host to cooperate in the time consumption observation of the target time consumption observation interval of the target IO link to observe the time consumed by the data in the target time consumption observation interval of the target IO link. Compared with the solution of realizing the time consumption observation of the IO link based on a single system, the embodiment of the present application can realize the host side time consumption of the data transmitted in the IO link on the DPU side by means of host-cooperation DPU observation, which is conducive to the realization of complete IO link time consumption observation in the DPU scenario.

[0044] Other features and advantages of the embodiments of the present application will be described in the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0046] Figure 1 The present invention is a flowchart of a method for observing the time consumption of data transmission in an IO link in one embodiment of the present application.

[0047] Figure 2 This is a schematic diagram of key moments in the process of data being transferred from the host to the DPU in one embodiment of the present application.

[0048] Figure 3 This is a schematic diagram of key moments in the process of data being transferred from the DPU to the host in one embodiment of the present application.

[0049] Figure 4 A schematic diagram of a system for observing the time consumption of data transmitted in an IO link in one embodiment of the present application. DETAILED DESCRIPTION

[0050] The detailed description of the accompanying drawings is intended as an illustration of the currently preferred embodiment of the present application, and is not intended to represent the only form in which the present application can be implemented. It should be understood that the same or equivalent functions can be accomplished by different embodiments intended to be included in the spirit and scope of the present application.

[0051] To achieve the above-mentioned purpose, an embodiment of the present application proposes a method for observing the time consumption of data transmission in an IO link, which can be applied to an electronic device including a host and a DPU, for example, including a host and a DPU implemented based on an FPGA (Field-Programmable Gate Array), and for another example, including a host and a DPU implemented based on an SOC (System On a Chip), wherein the host and the DPU are connected via a PCIe (Peripheral Component Interconnect Express) interface.

[0052] Figure 1 is a flow chart of the method of this embodiment, as shown in Figure 1 As shown, the method of this embodiment includes the following steps:

[0053] Step S100, the DPU receives and parses the time-consuming observation configuration parameters to obtain the first configuration parameter, the second configuration parameter and the third configuration parameter; wherein the first configuration parameter includes an instruction to turn on the time-consuming observation or an instruction to turn off the time-consuming observation, the second configuration parameter includes the target IO link to be observed, and the third configuration parameter includes the target time-consuming observation interval to be observed.

[0054] Specifically, during the implementation of the embodiment of the present application, if it is necessary to observe the time consumed by data in the IO link, the user can send observation configuration parameters to the DPU through other external devices such as the cloud, and the DPU parses the received observation configuration parameters to obtain the first configuration parameter, the second configuration parameter and the third configuration parameter; the DPU can determine whether to turn on the time consumption observation based on the first configuration parameter, and determine the target time consumption observation interval of the target IO link to be observed based on the second configuration parameter and the third configuration parameter.

[0055] Step S200: When the first configuration parameter is to turn on the time consumption observation instruction, the DPU notifies the host to cooperate in performing time consumption observation on the target time consumption observation interval of the target IO link to observe the time consumed in transmitting data in the target time consumption observation interval of the target IO link.

[0056] Specifically, IO link time consumption observation is usually used in data flow link problem location / IO link tuning, etc., wherein the DPU is used to help the host CPU to process data to reduce the CPU load. Therefore, the IO data transmission between the host and the DPU is relatively frequent, and there are multiple IO links between the host and the DPU. If the time consumption of all IO links is observed for the entire link or the time consumption of a certain IO link is continuously observed, a certain amount of memory will be consumed. Therefore, the method of this embodiment proposes that the observation configuration parameters can be set according to the observation requirements, and the observation function can be turned on or off and the observation target can be determined by setting the first configuration parameter, the second configuration parameter and the third configuration parameter, thereby reducing the memory resources occupied by IO link observation.

[0057] Specifically, when the DPU determines to turn on the time consumption observation, the DPU notifies the host to cooperate in performing time consumption observation on the target time consumption observation interval of the target IO link to observe the time consumption of data being transmitted in the target time consumption observation interval of the target IO link.

[0058] It should be noted that, compared with the solution of observing the IO link time consumption based on a single system, the method of this embodiment can achieve the host-side time consumption of data transmission in the IO link by means of host-cooperation DPU observation. The host transmits the relevant information of the host-side time consumption of data transmission in the IO link together with the data to the DPU, so that the DPU side can know the host-side time consumption of data transmission in the IO link, which is conducive to the realization of complete IO link time consumption observation in the DPU scenario; among which, the relevant information of the host-side time consumption of data transmission in the IO link can be obtained based on the host single system to observe the IO link time consumption.

[0059] In some embodiments, the target time-consuming observation interval includes at least one of a first time-consuming observation interval, a second time-consuming observation interval, and a third time-consuming observation interval;

[0060] Among them, the first time-consuming observation interval is the time-consuming observation interval of the link transmission of data on the host side of the IO link, the second time-consuming observation interval is the time-consuming observation interval of the link transmission of data between the host and DPU of the IO link, and the third time-consuming observation interval is the time-consuming observation interval of the link transmission of data on the DPU side of the IO link.

[0061] Specifically, the interval ranges of the first time-consuming observation interval, the second time-consuming observation interval, and the third time-consuming observation interval can be set according to the technical requirements of data flow link problem location / IO link tuning, etc., and are not limited in the method of this embodiment, and it should be understood that they are all within the protection scope of the method of this embodiment. For example, the time-consuming observation interval of the link transmission of data on the host side of the IO link and the time-consuming observation interval of the link transmission of data on the DPU side of the IO link are divided into multiple subdivided intervals. Correspondingly, when observing the time consumption of data transmission on the target IO link, the host and DPU will count the time consumption of multiple subdivided intervals.

[0062] In some embodiments, when the target time-consuming observation interval includes the first time-consuming observation interval, the step of performing time-consuming observation on the target time-consuming observation interval of the target IO link specifically includes:

[0063] The host records the first timestamp and the second timestamp, calculates the time consumed for data transmission on the host side according to the first timestamp and the second timestamp, and transmits the time consumed for data transmission on the host side to the DPU;

[0064] The first timestamp is the moment when data starts to be transmitted on the host side, or the moment when data ends to be transmitted on the host side, and the second timestamp is the moment when data ends to be transmitted on the host side and flows out of the host, or the moment when data flows into the host and starts to be transmitted on the host.

[0065] Specifically, Figure 2Schematic diagram of each key moment in the process of data being transmitted from the host to the DPU through the target IO link in the method of this embodiment, Figure 3 Schematic diagram of each key moment in the process of data being transmitted from the DPU to the host through the target IO link in the method of this embodiment. Figure 2 In the example, T11 is the time when data starts to be transmitted on the host side, and T21 is the time when data ends to be transmitted on the host side and flows out of the host. Figure 3 In the example, T22 is the time when data flows into the host and starts to be transmitted on the host, and T12 is the time when data transmission ends on the host side. Figure 2 It can be seen that when data is transmitted from the host to the DPU, the difference between T11 and T12 is the time it takes for the data to be transmitted on the host side. Figure 3 It can be seen that when data is transmitted from the DPU to the host, T22~T12 is the time consumed by the data on the host side. It should be noted that the time consumption observation intervals of T11~T12 and T22~T12 can also be subdivided, and the corresponding time consumption statistics principle is similar to the above content, which can be obtained by reference to the above content, so it will not be repeated here.

[0066] In some embodiments, when the time-consuming observation interval includes a third time-consuming observation interval, the step of performing time-consuming observation on the target time-consuming observation interval of the target IO link specifically further includes:

[0067] The DPU records the third timestamp and the fourth timestamp, and calculates the time consumed for the data to be transmitted on the DPU side according to the third timestamp and the fourth timestamp;

[0068] Among them, the third timestamp is the moment when the data flows out from the host and then flows into the DPU, or the moment when the data flows out from the DPU and flows to the host, and the fourth timestamp is the moment when the data ends transmission on the DPU side, or the moment when the data starts transmission on the DPU side.

[0069] Specifically, Figure 2 Schematic diagram of each key moment in the process of data being transmitted from the host to the DPU through the target IO link in the method of this embodiment, Figure 3 Schematic diagram of each key moment in the process of data being transmitted from the DPU to the host through the target IO link in the method of this embodiment. Figure 2 In the example, T31 is the time when data flows from the host to the DPU, and T41 is the time when data transmission ends on the DPU side. Figure 3 In the example, T32 is the time when data flows out of the DPU and flows to the host, and T42 is the time when data begins to be transmitted on the DPU side. Figure 2 It can be seen that when data is transmitted from the host to the DPU, the difference between T31 and T41 is the time it takes for the data to be transmitted on the DPU side. Figure 3It can be seen that when data is transmitted from the DPU to the host, the difference between T42 and T32 is the time consumed by the data to be transmitted on the DPU side. It should be noted that the time consumption observation intervals of T31 to T41 and T42 to T32 can also be subdivided, and the corresponding time consumption statistics principle is similar to the above content, which can be obtained by reference to the above content, so it will not be repeated here.

[0070] In some embodiments, when the time-consuming observation interval includes a second time-consuming observation interval, the step of performing time-consuming observation on the target time-consuming observation interval of the target IO link specifically further includes:

[0071] The host records a second timestamp and transmits the second timestamp to the DPU; wherein the second timestamp is the time when the data ends transmission on the host side and flows out of the host, or the time when the data flows into the host and starts transmission on the host

[0072] The DPU records a third timestamp; wherein the third timestamp is the time when the data flows from the host to the DPU, or the time when the data flows from the DPU to the host;

[0073] The DPU uses the difference between the third timestamp and the second timestamp as the time consumed for data to be transmitted between the host and the DPU.

[0074] Specifically, Figure 2 Schematic diagram of each key moment in the process of data being transmitted from the host to the DPU through the target IO link in the method of this embodiment, Figure 3 Schematic diagram of each key moment in the process of data being transmitted from the DPU to the host through the target IO link in the method of this embodiment. Figure 2 In the example, T21 is the time when data transmission ends on the host side and flows out of the host, and T31 is the time when data flows out of the host and flows into the DPU. Figure 3 In the example, T22 is the time when data flows into the host and starts to be transmitted in the host, and T32 is the time when data flows out of the DPU and flows to the host. Figure 2 It can be seen that when data is transmitted from the host to the DPU, the difference between T21 and T31 is the time it takes for the data to be transmitted between the host and the DPU. Figure 3 It can be seen that when data is transmitted from the DPU to the host, the difference between T32 and T22 is the time it takes for the data to be transmitted between the host and the DPU.

[0075] In some embodiments, the DPU notifies the host to collaboratively perform time-consuming observation on the target time-consuming observation interval of the target IO link, including:

[0076] The DPU writes the first configuration parameter, the second configuration parameter, and the third configuration parameter into the register of the host to notify the host to collaboratively perform time consumption observation on the target time consumption observation interval of the target IO link.

[0077] Specifically, the host performs time consumption observation on the target time consumption observation interval of the target IO link according to the data in the register.

[0078] In some embodiments, when the first configuration parameter is an instruction to turn off time consumption observation, the DPU notifies the host to turn off time consumption observation.

[0079] Specifically, the host turns off the time consumption observation of the target time consumption observation interval of the target IO link according to the data in the register.

[0080] In some embodiments, a method for observing the time consumption of data transmission in an IO link of the present application also includes, when the DPU obtains at least one time consumption observation result of the time consumption of data transmission on the host side, the time consumption of data transmission on the DPU side, and the time consumption of data transmission between the host and the DPU, the DPU reports the time consumption observation result to other external devices such as the cloud for user observation.

[0081] See also Figure 4 , Another embodiment of the present application further provides a time-consuming observation system for data transmission in an IO link, the system comprising a DPU and a host, the DPU comprising a parameter receiving unit and an observation switch unit;

[0082] The parameter receiving unit is used to receive and parse the time-consuming observation configuration parameter to obtain a first configuration parameter, a second configuration parameter and a third configuration parameter; wherein the first configuration parameter includes an instruction to turn on the time-consuming observation or an instruction to turn off the time-consuming observation, the second configuration parameter includes a target IO link to be observed, and the third configuration parameter includes a target time-consuming observation interval to be observed;

[0083] The observation switch unit is used to notify the host to cooperate in performing time consumption observation on the target time consumption observation interval of the target IO link when the first configuration parameter is to turn on the time consumption observation instruction, so as to observe the time consumption of data being transmitted in the target time consumption observation interval of the target IO link.

[0084] In some embodiments, the target time-consuming observation interval includes at least one of a first time-consuming observation interval, a second time-consuming observation interval, and a third time-consuming observation interval;

[0085] Among them, the first time-consuming observation interval is the time-consuming observation interval of the link transmission of data on the host side of the IO link, the second time-consuming observation interval is the time-consuming observation interval of the link transmission of data between the host and DPU of the IO link, and the third time-consuming observation interval is the time-consuming observation interval of the link transmission of data on the DPU side of the IO link.

[0086] In some embodiments, the host is used to record a first timestamp and a second timestamp when the target time-consuming observation interval includes a first time-consuming observation interval, calculate the time consumed by the data transmitted on the host side according to the first timestamp and the second timestamp, and transmit the time consumed by the data transmitted on the host side to the DPU;

[0087] The first timestamp is the moment when data starts to be transmitted on the host side, or the moment when data ends to be transmitted on the host side, and the second timestamp is the moment when data ends to be transmitted on the host side and flows out of the host, or the moment when data flows into the host and starts to be transmitted on the host.

[0088] In some embodiments, the DPU further comprises an observation unit;

[0089] The observation unit is configured to record a third timestamp and a fourth timestamp when the time-consuming observation interval includes a third time-consuming observation interval, and to calculate the time consumed by the data transmitted on the DPU side according to the third timestamp and the fourth timestamp;

[0090] Among them, the third timestamp is the moment when the data flows out from the host and then flows into the DPU, or the moment when the data flows out from the DPU and flows to the host, and the fourth timestamp is the moment when the data ends transmission on the DPU side, or the moment when the data starts transmission on the DPU side.

[0091] In some embodiments, the DPU further comprises an observation unit;

[0092] The host is used to record a second timestamp when the time-consuming observation interval includes a second time-consuming observation interval, and transmit the second timestamp to the DPU; wherein the second timestamp is the time when the data ends transmission on the host side and flows out of the host, or the time when the data flows into the host and starts transmission on the host;

[0093] The observation unit is used to record a third timestamp when the time-consuming observation interval includes a second time-consuming observation interval, and use the difference between the third timestamp and the second timestamp as the time consumed for data to be transmitted between the host and the DPU; wherein the third timestamp is the moment when data flows out of the host and then flows into the DPU, or the moment when data flows out of the DPU and flows to the host.

[0094] In some embodiments, the observation switch unit is used to write the first configuration parameter, the second configuration parameter and the third configuration parameter into a register of the host to notify the host to coordinate the time observation of the target time observation interval of the target IO link.

[0095] In some embodiments, the observation switch unit is used to notify the host to turn off time consumption observation when the first configuration parameter is an instruction to turn off time consumption observation.

[0096] In some embodiments, the present application is a time-consuming observation system for data transmission in an IO link, and the DPU also includes a reporting unit. When the reporting unit obtains at least one time-consuming observation result among the time consumed for data transmission on the host side, the time consumed for data transmission on the DPU side, and the time consumed for data transmission between the host and the DPU, the reporting unit reports the time-consuming observation result to other external devices such as the cloud for user observation.

[0097] It should be noted that the time consumption observation system for data transmission in IO link described in this embodiment corresponds to the time consumption observation method for data transmission in IO link described in the above embodiment. Therefore, the part of the time consumption observation system for data transmission in IO link described in this embodiment that is not described in detail can be obtained by referring to the content of the time consumption observation method for data transmission in IO link described in the above embodiment, so it will not be repeated here.

[0098] Another embodiment of the present application proposes a computer-readable storage medium, which stores a computer program. When the computer program is executed by multiple processors (such as the above-mentioned host and DPU), it implements the time-consuming observation method of data transmission in the IO link as described in the above embodiment.

[0099] Specifically, the computer-readable storage medium may include: any entity or recording medium that can carry the computer program instructions, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.

[0100] Another embodiment of the present application proposes an electronic device, including a host, a DPU, a memory, and a computer program stored in the memory and executable on the host and the DPU. When the host and the DPU execute the computer program, the time-consuming observation method for data transmission in the IO link as described in the above embodiment is implemented.

[0101] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A method for observing the time consumption of data transmission in an IO link, characterized in that: The method comprises: The DPU receives and parses the time-consuming observation configuration parameters to obtain a first configuration parameter, a second configuration parameter, and a third configuration parameter; wherein the first configuration parameter includes an instruction to turn on the time-consuming observation or an instruction to turn off the time-consuming observation, the second configuration parameter includes a target IO link to be observed, and the third configuration parameter includes a target time-consuming observation interval to be observed; When the first configuration parameter is to turn on the time consumption observation instruction, the DPU notifies the host to cooperate in performing time consumption observation on the target time consumption observation interval of the target IO link to observe the time consumption of data being transmitted in the target time consumption observation interval of the target IO link.

2. The time-consuming observation method according to claim 1, characterized in that: The target time-consuming observation interval includes at least one of a first time-consuming observation interval, a second time-consuming observation interval, and a third time-consuming observation interval; Among them, the first time-consuming observation interval is the time-consuming observation interval of the link transmission of data on the host side of the IO link, the second time-consuming observation interval is the time-consuming observation interval of the link transmission of data between the host and DPU of the IO link, and the third time-consuming observation interval is the time-consuming observation interval of the link transmission of data on the DPU side of the IO link.

3. The time-consuming observation method according to claim 2, characterized in that: When the target time-consuming observation interval includes the first time-consuming observation interval, the step of performing time-consuming observation on the target time-consuming observation interval of the target IO link specifically includes: The host records the first timestamp and the second timestamp, calculates the time consumed for data transmission on the host side according to the first timestamp and the second timestamp, and transmits the time consumed for data transmission on the host side to the DPU; The first timestamp is the moment when data starts to be transmitted on the host side, or the moment when data ends to be transmitted on the host side, and the second timestamp is the moment when data ends to be transmitted on the host side and flows out of the host, or the moment when data flows into the host and starts to be transmitted on the host.

4. The time-consuming observation method according to claim 2, characterized in that: When the time-consuming observation interval includes the third time-consuming observation interval, the step of performing time-consuming observation on the target time-consuming observation interval of the target IO link specifically further includes: The DPU records the third timestamp and the fourth timestamp, and calculates the time consumed for the data to be transmitted on the DPU side according to the third timestamp and the fourth timestamp; Among them, the third timestamp is the moment when the data flows out from the host and then flows into the DPU, or the moment when the data flows out from the DPU and flows to the host, and the fourth timestamp is the moment when the data ends transmission on the DPU side, or the moment when the data starts transmission on the DPU side.

5. The time-consuming observation method according to claim 2, characterized in that: When the time-consuming observation interval includes the second time-consuming observation interval, the step of performing time-consuming observation on the target time-consuming observation interval of the target IO link specifically further includes: The host records a second timestamp and transmits the second timestamp to the DPU; wherein the second timestamp is the time when the data ends transmission on the host side and flows out of the host, or the time when the data flows into the host and starts transmission on the host The DPU records a third timestamp; wherein the third timestamp is the time when the data flows from the host to the DPU, or the time when the data flows from the DPU to the host; The DPU uses the difference between the third timestamp and the second timestamp as the time consumed for data to be transmitted between the host and the DPU.

6. The time-consuming observation method according to claim 1, characterized in that: The DPU notifies the host to collaboratively perform time-consuming observation on the target time-consuming observation interval of the target IO link, including: The DPU writes the first configuration parameter, the second configuration parameter, and the third configuration parameter into the register of the host to notify the host to collaboratively perform time consumption observation on the target time consumption observation interval of the target IO link.

7. The time-consuming observation method according to claim 1, characterized in that: When the first configuration parameter is an instruction to turn off time consumption observation, the DPU notifies the host to turn off time consumption observation.

8. A system for observing the time consumption of data transmission in an IO link, characterized in that: The system includes a DPU and a host, and the DPU includes a parameter receiving unit and an observation switch unit; The parameter receiving unit is used to receive and parse the time-consuming observation configuration parameter to obtain a first configuration parameter, a second configuration parameter and a third configuration parameter; wherein the first configuration parameter includes an instruction to turn on the time-consuming observation or an instruction to turn off the time-consuming observation, the second configuration parameter includes a target IO link to be observed, and the third configuration parameter includes a target time-consuming observation interval to be observed; The observation switch unit is used to notify the host to cooperate in performing time consumption observation on the target time consumption observation interval of the target IO link when the first configuration parameter is to turn on the time consumption observation instruction, so as to observe the time consumption of data being transmitted in the target time consumption observation interval of the target IO link.

9. The time-consuming observation system according to claim 8, characterized in that: The target time-consuming observation interval includes at least one of a first time-consuming observation interval, a second time-consuming observation interval, and a third time-consuming observation interval; Among them, the first time-consuming observation interval is the time-consuming observation interval of the link transmission of data on the host side of the IO link, the second time-consuming observation interval is the time-consuming observation interval of the link transmission of data between the host and DPU of the IO link, and the third time-consuming observation interval is the time-consuming observation interval of the link transmission of data on the DPU side of the IO link.

10. The time-consuming observation system according to claim 9, characterized in that: The host is configured to record a first timestamp and a second timestamp when the target time-consuming observation interval includes a first time-consuming observation interval, calculate the time consumed by the data to be transmitted on the host side according to the first timestamp and the second timestamp, and transmit the time consumed by the data to be transmitted on the host side to the DPU; The first timestamp is the moment when data starts to be transmitted on the host side, or the moment when data ends to be transmitted on the host side, and the second timestamp is the moment when data ends to be transmitted on the host side and flows out of the host, or the moment when data flows into the host and starts to be transmitted on the host.

11. The time-consuming observation system according to claim 9, characterized in that: The DPU also includes an observation unit; The observation unit is configured to record a third timestamp and a fourth timestamp when the time-consuming observation interval includes a third time-consuming observation interval, and to calculate the time consumed by the data transmitted on the DPU side according to the third timestamp and the fourth timestamp; Among them, the third timestamp is the moment when the data flows out from the host and then flows into the DPU, or the moment when the data flows out from the DPU and flows to the host, and the fourth timestamp is the moment when the data ends transmission on the DPU side, or the moment when the data starts transmission on the DPU side.

12. The time-consuming observation system according to claim 9, characterized in that: The DPU also includes an observation unit; The host is used to record a second timestamp when the time-consuming observation interval includes a second time-consuming observation interval, and transmit the second timestamp to the DPU; wherein the second timestamp is the time when the data ends transmission on the host side and flows out of the host, or the time when the data flows into the host and starts transmission on the host; The observation unit is used to record a third timestamp when the time-consuming observation interval includes a second time-consuming observation interval, and use the difference between the third timestamp and the second timestamp as the time consumed for data to be transmitted between the host and the DPU; wherein the third timestamp is the moment when data flows out of the host and then flows into the DPU, or the moment when data flows out of the DPU and flows to the host.

13. The time-consuming observation system according to claim 8, characterized in that: The observation switch unit is used to write the first configuration parameter, the second configuration parameter and the third configuration parameter into the register of the host to notify the host to cooperate in time-consuming observation of the target time-consuming observation interval of the target IO link.

14. The time-consuming observation system according to claim 8, characterized in that: The observation switch unit is used to notify the host to turn off the time-consuming observation when the first configuration parameter is an instruction to turn off the time-consuming observation.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by one or more processors, the method for observing the time consumption of data transmitted in an IO link according to any one of claims 1 to 7 is implemented.

16. An electronic device, characterized in that: The method comprises a host, a DPU, a memory and a computer program stored in the memory and executable on the host and the DPU. When the host and the DPU execute the computer program, the method for observing the time consumption of data transmitted on an IO link as described in any one of claims 1 to 7 is implemented.