Electrical interconnection link parameter adjustment system, server and method

By introducing processing and storage components into the host device and dynamically adjusting the completion timeout value of the slave device using a neural network model, the problem of low efficiency in adjusting electrical interconnect link parameters is solved, thereby improving the stability and reliability of the system.

CN120704935BActive Publication Date: 2025-12-02INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202511195179.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-08-25
Publication Date
2025-12-02
Estimated Expiration
2045-08-25

AI Technical Summary

Technical Problem

In existing technologies, the efficiency of adjusting electrical interconnection link parameters is low and the configuration method is fixed, resulting in a large number of completion timeout errors, which cannot effectively guarantee the continuous and stable operation of the system.

Method used

By introducing processing and storage components into the host device, the operating parameters of the processing unit are monitored in real time, the completion timeout value of the slave device is dynamically adjusted, and adaptive optimization is achieved by using a pre-trained neural network model based on the correspondence between operating parameters and completion timeout values.

Benefits of technology

This improved the stability and reliability of electrical interconnect links, reduced system errors and interruptions, and ensured the continuous and stable operation of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120704935B_ABST
    Figure CN120704935B_ABST
Patent Text Reader

Abstract

This application discloses an electrical interconnection link parameter adjustment system, server, and method, relating to the fields of computer systems and information interaction technology. It includes a host device and its processing method, with the host device comprising a processing component and a storage component. The processing component includes a processing unit, a first register, and a second register. The first register stores request timeout error information, and the second register stores timeout thresholds for each slave device. When a request exceeds the corresponding threshold, the processing unit generates and writes error information. The storage component is used to obtain the processing unit's operating parameters and, in conjunction with the register information, identify abnormal slave devices, dynamically adjusting at least one of their completion timeout values ​​and processing unit operating parameters. This solves the problems of low efficiency and difficulty in adapting to complex scenarios when manually configuring completion timeout values ​​in related technologies, achieving the technical effect of dynamically adjusting timeout values ​​to ensure stable system operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer systems and information interaction technology, and in particular to an electrical interconnection link parameter adjustment system, server and method. Background Technology

[0002] PCIe (Peripheral Component Interconnect Express) is a high-speed serial point-to-point dual-channel computer expansion bus standard, divided into master and slave sides. When a slave device sends a request, it must wait for a response from the master before continuing its operation. Under conditions of high traffic and slow master processing, exceeding the default completion timeout may result in incomplete data return, causing unrecoverable errors, prolonged abnormal waiting for the slave device, affecting its stability, and in severe cases, even leading to system crashes.

[0003] However, in related technologies, the completion timeout value of electrical interconnection devices is set by manually locating the device and using commands or scripts. However, this method is inefficient, labor-intensive, and has a fixed configuration, making it difficult to adapt to complex scenarios. Therefore, there are a large number of completion timeout errors, which cannot effectively guarantee the continuous and stable operation of the system. Summary of the Invention

[0004] This application provides an electrical interconnect link parameter adjustment system, server, method, electronic device, storage medium, and program product to at least solve the problems in the related art where the electrical interconnect link parameter adjustment is inefficient and has a fixed configuration method, still resulting in a large number of completion timeout errors, and failing to effectively guarantee the continuous and stable operation of the system.

[0005] This application also provides an electrical interconnection link parameter adjustment system. The electrical interconnection link connects a master device and at least one slave device at each end. The master device includes: a processing component for processing request messages from slave devices and returning the processing result to the slave devices. The processing component includes a processing unit, a first register, and a second register. The first register stores error messages indicating timeout for request message completion, and the second register stores the completion timeout value for each slave device. When the processing unit takes longer than the completion timeout value to process a request message, it generates a request message completion timeout error message. A storage component is used to obtain the operating parameters of the processing unit, adjust the completion timeout value corresponding to the slave device based on the operating parameters of the processing unit, read the first register and the second register, and if a request message completion timeout error message is read, determine the corresponding slave device based on the error message, and adjust at least one of the completion timeout value corresponding to the slave device and the operating parameters of the processing unit.

[0006] This application also provides a server, including the aforementioned electrical interconnection link parameter adjustment system.

[0007] This application provides a method for adjusting electrical interconnection link parameters. The method is applied to the aforementioned electrical interconnection link parameter adjustment system. The two ends of the electrical interconnection link are respectively connected to a host device and at least one slave device. The host device includes a processing component and a storage component. The storage component is configured to perform the following steps: acquiring the operating parameters of the processing unit; adjusting the completion timeout value corresponding to the slave device according to the operating parameters of the processing unit; reading a first register and a second register, wherein the first register stores error information indicating request message completion timeout, and the second register stores the completion timeout value of each slave device; when the processing unit's processing time for a request message exceeds the completion timeout value, generating request message completion timeout error information; if request message completion timeout error information is read, determining the corresponding slave device based on the request message completion timeout error information, and adjusting at least one of the completion timeout value corresponding to the slave device and the operating parameters of the processing unit.

[0008] This application also provides a method for adjusting electrical interconnection link parameters. The method is applied to the aforementioned electrical interconnection link parameter adjustment system. The two ends of the electrical interconnection link are respectively connected to a host device and at least one slave device. The host device includes a processing component and a storage component. The storage component is configured to perform the following steps: obtaining the completion timeout value of the slave device corresponding to different operating parameters of the processing unit; generating a correspondence between operating parameters and completion timeout values ​​based on different operating parameters and the completion timeout values ​​corresponding to the slave devices; generating a training dataset based on the operating pressure value, the completion timeout value of the slave device, and the correspondence; training a neural network model using the training dataset; and adjusting the completion timeout value of the slave device using the trained neural network model and the operating parameters of the processing unit.

[0009] This application also provides an electronic device, including: a memory for storing a computer program; and a processor for implementing the steps of any of the above-described electrical interconnection link parameter adjustment methods when executing the computer program.

[0010] This application also provides a non-volatile computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the above-described electrical interconnect link parameter adjustment method.

[0011] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described electrical interconnect link parameter adjustment method.

[0012] This application enables real-time monitoring of the processing unit's operating parameters. Based on these real-time monitoring parameters, the completion timeout value corresponding to the slave device is dynamically adjusted, reducing system errors and interruptions caused by timeout values. This allows for dynamic adjustment of the completion timeout value according to the processing unit's operating status, improving the stability and reliability of the electrical interconnection link. After adjusting the completion timeout value, the first register is monitored in real-time. If error messages still exist, the completion timeout error is corrected by adjusting at least one of the slave device's completion timeout value and the processing unit's operating parameters, further reducing system errors and interruptions caused by timeout values. Therefore, this application solves the problem in related technologies where the efficiency of electrical interconnection link parameter adjustment is low and the configuration method is fixed, resulting in numerous completion timeout errors and an inability to effectively guarantee the continuous and stable operation of the system. Attached Figure Description

[0013] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0014] Figure 1 A flowchart illustrating a timeout configuration method for electrical interconnects provided for related technologies;

[0015] Figure 2 This application provides a schematic diagram of the structure of an electrical interconnection link parameter adjustment system according to an embodiment of the present application.

[0016] Figure 3 This is a schematic diagram of the overall scheme of the electrical interconnection link parameter adjustment system provided in the embodiments of this application;

[0017] Figure 4 A flowchart illustrating a method for adjusting electrical interconnect link parameters according to one embodiment of this application;

[0018] Figure 5 A schematic diagram illustrating the implementation process of the electrical interconnection link parameter adjustment method provided in this application embodiment;

[0019] Figure 6 A flowchart illustrating a method for adjusting electrical interconnect link parameters, as provided in another embodiment of this application;

[0020] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0021] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.

[0022] It should be noted that, in the description of this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. The terms "first," "second," etc., in this application are used to distinguish similar objects and are not used to describe a specific order or sequence.

[0023] In related technologies, such as Figure 1 As shown, adding single-device and global device options in the system settings allows the Basic Input / Output System to enumerate electrically interconnected devices and set their optimal completion timeout values ​​during system startup, thereby improving device stability. However, this technology is only configured at the initial system startup stage and cannot be adjusted according to dynamic changes in workload and CPU (Central Processing Unit) load during operation, which may still lead to timeouts and errors, making it difficult to guarantee the continuous and stable operation of the system.

[0024] Therefore, embodiments of this application propose electrical interconnection link parameter adjustment systems, devices, methods, media, and products. To enable those skilled in the art to better understand the solutions of this application, the following detailed description is provided in conjunction with the accompanying drawings and specific embodiments.

[0025] Figure 2 This is a schematic diagram of the structure of an electrical interconnection link parameter adjustment system provided in an embodiment of this application, as shown below. Figure 2 As shown, the two ends of the electrical interconnection link parameter adjustment system 10 are respectively connected to a host device 400 and at least one slave device 100. The host device 400 specifically includes a processing component 200 and a storage component 300.

[0026] The processing component 200 is used to process request messages from slave devices 100 and return the message processing results to slave devices 100. The processing component 200 includes a processing unit 201, a first register 202, and a second register 203. The first register 202 stores error messages indicating that the request message completion timeout has occurred, and the second register 203 stores the completion timeout value for each slave device 100. When the processing unit 201 takes longer than the completion timeout value to process a request message, it generates an error message indicating that the request message completion timeout has occurred. The storage component 300 is used to obtain the operating parameters of the processing unit 201, adjust the completion timeout value corresponding to the slave device 100 according to the operating parameters of the processing unit 201, read the first register 202 and the second register 203, and if an error message indicating that the request message completion timeout has occurred is read, determine the corresponding slave device 100 according to the error message, and adjust at least one of the completion timeout value corresponding to the slave device 100 and the operating parameters of the processing unit 201.

[0027] The electrical interconnect link is the data transmission path connecting the host device 400 and the slave device 100. In specific applications, it can be a PCIe link to enable communication and information exchange between the two devices. The host device 400 is the device at one end of the electrical interconnect link, responsible for managing and processing communication requests with the slave device 100, which can be a PCIe device. The host device 400 typically includes a processing component 200 and a storage component 300. The slave device 100 is the device at the other end of the electrical interconnect link, sending request messages to the host device 400 and waiting for the processing results, acting as the communication object of the host device 400. The processing component 200 consists of a processing unit 201 and sub-modules such as registers, responsible for receiving and processing request messages from the slave device 100, and then returning the processing results to the corresponding slave device 100. The processing unit 201 can be a CPU module, responsible for executing instructions, processing data, and controlling the operation of the system. The first register 202 can be an Uncorrectable ErrorStatus Register, used to store error information indicating that the request message has timed out. When the request processing time exceeds the preset completion timeout value, the processing unit 201 records a timeout error status in this register. The second register 203, a Device Control 2 Register, stores the completion timeout value corresponding to each slave device 100. The completion timeout value is the maximum time threshold allowed by the system to complete the processing of a request message. Error information is generated by the processing unit 201 when processing a request message; if the processing time exceeds the set completion timeout value, it reflects the abnormal situation of request processing timeout. The storage component 300 is the module responsible for saving and managing data in the system. Specifically, it includes acquiring the operating parameters of the processing unit 201, reading the contents of the first register 202 and the second register 203, and adjusting the completion timeout value of the slave device 100 and the operating parameters of the processing unit 201 based on the error information and operating parameters. The operating parameters are indicators of the current working status of the processing unit 201, used to guide the dynamic adjustment of the completion timeout value. The request message is a data communication request sent by the slave device 100 to the master device 400, used to realize information exchange and operation command transmission between devices. A timeout error is an abnormal state caused by a request message not being processed within the maximum allowed time specified by the system, which usually triggers the error handling mechanism.

[0028] It is understood that the embodiments of this application can monitor the operating parameters of the processing unit in real time, and dynamically adjust the completion timeout value corresponding to the slave device according to the real-time monitored parameters, thereby reducing system errors and interruptions caused by the completion timeout value exceeding the timeout value. Thus, the completion timeout value can be dynamically adjusted according to the operating status of the processing unit, thereby improving the stability and reliability of the electrical interconnection link through real-time dynamic adjustment. After adjusting the completion timeout value, the first register is monitored in real time. If error information still exists, the completion timeout error is corrected by adjusting at least one of the completion timeout value corresponding to the slave device and the operating parameters of the processing unit, thereby further reducing system errors and interruptions caused by the completion timeout value exceeding the timeout value.

[0029] In one embodiment of this application, the storage component 300 is provided with a pre-trained neural network model. The operating parameters of the processing unit 201 are input into the neural network model, and the neural network model outputs the target value of the completion timeout value corresponding to the slave device 100. The neural network model includes the correspondence between the operating parameters and the completion timeout value, and the target value of the completion timeout value corresponding to the operating parameters is determined based on the correspondence.

[0030] The neural network model is a deep learning model trained on historical data. It predicts or outputs a target completion timeout value based on input operating parameters. The operating parameter inputs are the current working state data of the processing unit 201, such as CPU load and task queue length, used as input to the neural network for calculation and prediction. The target completion timeout value is the optimal timeout threshold predicted by the neural network model based on the operating parameters, used to dynamically adjust system parameters. The correspondence is the mapping rule between the operating parameters learned internally by the neural network and the completion timeout value.

[0031] Understandably, the storage component 300 incorporates a pre-trained neural network model. This model learns from a large amount of historical operational data, mastering the complex correspondence between the operating parameters of the processing unit 201 and the timeout values ​​of the slave device 100. After inputting the current operating parameters of the processing unit 201 into this neural network model, the model can intelligently predict the most suitable timeout value for the current operating state. This achieves dynamic and precise timeout value adjustment, avoiding the performance bottlenecks and error risks associated with traditional static configurations, thereby reducing the need for manual adjustments.

[0032] In one embodiment of this application, the host device 400 further includes at least one expansion component, which is connected to the slave device 100, and the processing component 200 is connected to the expansion component via an electrical interconnection link.

[0033] The expansion components are additional modules or devices added to the host device 400 to expand the system's functionality and connect more slave devices 100, thereby improving the system's scalability and flexibility. The electrical interconnect link is the physical and logical connection established between the processing component 200 of the host device 400 and the expansion components via an electrical interconnect link, supporting the transmission of data and control signals.

[0034] Understandably, by introducing the expansion component, the host device 400's ability to connect to multiple slave devices 100 is enhanced, improving the system's scalability and flexibility. The expansion component is connected to the processing component 200 via an electrical interconnect link, enabling efficient data transmission and collaborative processing, supporting the access of more peripherals, meeting complex application requirements, and improving overall system performance and maintainability.

[0035] like Figure 3 As shown, the electrical interconnection circuit parameter adjustment system includes multiple PCIe external cards, a processing unit, and a storage component 300. The left side of the figure shows a schematic diagram of PCIe external cards 1 to N, all of which are connected to the processing unit in the middle via a PCIe bus. The processing unit is responsible for enumerating each peripheral and collecting its hardware and link information (such as device identifier, current configuration, link status, etc.), and then providing the information of the PCIe external cards to the storage component 300 on the right. Based on the collected information and system policies or rules, the storage component 300 calculates the parameters of the second register of the PCIe device on the processing unit side that need to be adjusted, and sends the adjustment command back to the processing unit, which then writes the corresponding device's register to update the configuration. Through this closed loop of "information-decision-issuance-effectiveness," the system can dynamically optimize PCIe-related parameters when multiple cards coexist and the load changes, thereby improving the stability and reliability of device operation.

[0036] The electrical interconnection link parameter adjustment system of this application embodiment consists of a host device and at least one slave device. The host device includes a processing component and a storage component. The processing component consists of a processing unit, a first register, and a second register. The processing component is used to process request messages from slave devices and return results. The first register stores error information indicating that the request message has timed out, and the second register stores the timeout value of each slave device. When the processing unit detects that the completion time of the request message exceeds a set value, it generates a timeout error message. The storage component is used to obtain the operating parameters of the processing unit and adjust the timeout value of the slave device accordingly. It can also read the first register and the second register. When a timeout error message is detected, the corresponding slave device is determined, and at least one of the timeout value of the slave device and the operating parameters of the processing unit is adjusted.

[0037] Embodiments of this application also provide a server, including the above-described electrical interconnection link parameter adjustment system.

[0038] Embodiments of this application also provide a method for adjusting electrical interconnection link parameters, such as... Figure 4 As shown, the method is applied to the aforementioned electrical interconnection link parameter adjustment system. The two ends of the electrical interconnection link are respectively connected to a host device and at least one slave device. The host device includes a processing component and a storage component, wherein the storage component is configured to perform the following steps:

[0039] In step S101, the operating parameters of the processing unit are obtained.

[0040] The operating parameters can include hardware-level register values, such as performance counter registers, error status registers, and timeout counter registers, as well as software-level monitoring metrics, such as task queue length, processing latency, and CPU utilization.

[0041] It is understood that by acquiring the operating parameters of the processing unit, the embodiments of this application can grasp the current working status of the processing unit in real time, including information such as operating pressure, error status and resource consumption, which helps to make predictive adjustments before performance degradation or link anomalies occur.

[0042] In step S102, the completion timeout value corresponding to the slave device is adjusted according to the operating parameters of the processing unit.

[0043] Understandably, when the processing unit is under high load, the timeout value is appropriately extended to reduce completion timeout errors; when the load is low, the timeout value is shortened to speed up anomaly detection and retries, improve link utilization, and adaptively adjust the completion timeout value to avoid the problem of excessively long or insufficient waiting caused by a fixed timeout value.

[0044] In one embodiment of this application, adjusting the completion timeout value corresponding to the slave device according to the operating parameters of the processing unit includes: pre-training a neural network model; inputting the operating parameters of the processing unit into the neural network model, and the neural network model outputting a target value for the completion timeout value corresponding to the slave device, wherein the neural network model includes a correspondence between the operating parameters and the completion timeout value, and determining the target value for the completion timeout value corresponding to the operating parameters based on the correspondence.

[0045] The neural network model is a dynamic processing unit stress model used to monitor and analyze the stress status of the processing unit under different workloads in real time. By inputting various current operating parameters of the processing unit (such as utilization, task queue length, temperature, etc.), the trained neural network model estimates the stress level of the processing unit, helping the system dynamically adjust relevant configurations (such as timeout parameters of slave devices). The correspondence is a function mapping or data association between operating parameters and completion timeout values, reflecting the dependency and influence between the two. The neural network makes predictions based on this relationship.

[0046] Understandably, by using a pre-trained neural network model to match the real-time operating parameters of the processing unit with the patterns extracted from historical data, it is possible to quickly and accurately predict the most suitable timeout target value for the slave device, avoiding the inaccuracy and lag caused by manually setting parameters, and automatically optimizing the timeout configuration based on the dynamic changes in the system's operating status.

[0047] In one embodiment of this application, before inputting the operating parameters of the processing unit into the neural network model, the method further includes: obtaining the completion timeout value corresponding to the slave device when the processing unit has different operating parameters; generating a correspondence between the operating parameters and the completion timeout value corresponding to the slave device based on the different operating parameters and the completion timeout value corresponding to the slave device; generating a training dataset based on the operating pressure value, the completion timeout value corresponding to the slave device and the correspondence; and training the neural network model using the training dataset.

[0048] Understandably, by collecting the completion timeout values ​​corresponding to the processing units under different operating states, a mapping relationship between operating parameters and completion timeout values ​​is established. Based on this mapping relationship, a high-quality training dataset is generated, thereby training a neural network model capable of accurately predicting the optimal completion timeout value. This improves the accuracy and adaptability of completion timeout value adjustment, enabling the system to dynamically optimize parameter configuration according to real-time operating pressure.

[0049] During the operation of the storage component, the system dynamically trains the neural network model of the processing unit and monitors the status of the first register in all slave devices under the processing unit in real time. Specifically, if no error is detected in the first register, i.e., the completion timeout status bit is 0, it indicates that the slave device's request has received a response from the processing unit within the configured completion timeout period, the electrical interconnection link communication is normal, and the external card function is normal. At this time, the storage component records the current processing unit pressure value and the corresponding completion timeout value, and generates corresponding data to establish a training model between the processing unit pressure and the completion timeout value; if an error is detected in the first register of the processing unit, i.e., the completion timeout status bit is 1, it indicates that a completion timeout error has occurred, meaning that the external card has not received a response from the processing unit within its configured completion timeout period, and then step S103 is executed.

[0050] In step S103, the first register and the second register are read. The first register stores error information indicating that the request message has timed out, and the second register stores the completion timeout value of each slave device. When the processing unit processes the request message and the completion time exceeds the completion timeout value, it generates error information indicating that the request message has timed out.

[0051] It is understandable that by reading the request message timeout error information stored in the first register and the completion timeout value in the second register, real-time monitoring of the request processing time can be achieved.

[0052] The storage component obtains the value of the first register in the processing unit in real time and checks the completion timeout status bit therein. When the first register of the processing unit detects an error, the storage component reads the value of the second register of the slave device where the error occurred and obtains the currently configured completion timeout value from it. This embodiment of the application constructs a specific encoding correspondence between the completion timeout value and the registers based on the PCIe 4.0 protocol specification, as shown in Table 1.

[0053] Table 1

[0054]

[0055] According to the PCIe 4.0 protocol specification, the timeout value may include the following ranges: 50µs-50ms, 50µs-100µs, 1ms-10ms, 16ms-55ms, 65ms-210ms, 260ms-900ms, 1s-3.5s, 4s-13s, and 17s-64s.

[0056] By analyzing the obtained completion timeout value, the storage component adjusts the parameters of the second register in the external card to appropriately extend the completion timeout period, so as to ensure that the processing unit has enough time to process the request.

[0057] In addition, the system dynamically adjusts the completion timeout of the external card according to the real-time pressure of the processing unit, ensuring that the requests issued by the slave device can be processed by the processing unit in a timely manner within the waiting time, thereby improving the stability and communication efficiency of the system.

[0058] In step S104, if an error message indicating that the request message has timed out is read, the corresponding slave device is determined based on the error message indicating that the request message has timed out, and at least one of the completion timeout value and the operating parameters of the processing unit corresponding to the slave device is adjusted.

[0059] Understandably, by monitoring the response time of the processing unit to request messages and promptly detecting timeouts, data communication failures and system performance degradation caused by processing delays can be effectively prevented. By identifying specific timeout slave devices and dynamically adjusting their timeout values ​​and the operating parameters of the processing unit, the system achieves adaptive optimization, improving the overall stability and reliability of communication, avoiding business interruptions caused by timeout errors, and ensuring the efficient operation of the storage components.

[0060] In one embodiment of this application, before reading the error message indicating that the request message has timed out, the method further includes: obtaining the electrical interconnection protocol error message of the electrical interconnection link; parsing the error type in the electrical interconnection protocol error message; and, if the error message indicates that the request message has timed out based on the error type, then reading the error message indicating that the request message has timed out.

[0061] Among them, the electrical interconnection protocol can be the PCIe protocol. In the electrical interconnection protocol, error types include requests not completed within the set timeout value, invalid transaction layer packet format, extended cyclic redundancy check failure, and receiving unsupported request types.

[0062] Understandably, acquiring and parsing the electrical interconnection protocol error information of the electrical interconnection link before reading the timeout error information of the request message allows for early determination of the nature and source of the link anomaly. By parsing the error type, the corresponding timeout error information can only be read after confirming that the error is a completion timeout issue, reducing invalid readings and resource consumption, and pinpointing the fault type as soon as the problem occurs.

[0063] In one embodiment of this application, adjusting at least one of the completion timeout value corresponding to the slave device and the operating parameters of the processing unit includes: obtaining the maximum value of the completion timeout value corresponding to the slave device; if the completion timeout value corresponding to the slave device is less than the maximum value, then adjusting the completion timeout value corresponding to the slave device; if the completion timeout value corresponding to the slave device is the maximum value, then adjusting the operating parameters of the processing unit.

[0064] It is understood that the embodiments of this application can implement a tiered and flexible optimization strategy when handling request message completion timeout issues. By prioritizing the adjustment of the completion timeout value corresponding to the slave device, more time can be reserved for request processing, reducing the risk of timeouts caused by link jitter, instantaneous congestion, etc. When the completion timeout value has reached its maximum value, the system can intelligently switch to a scheme that adjusts the operating parameters of the processing unit, reducing the load pressure on the processing unit from the source, thereby indirectly shortening the request response time. The dual adjustment mechanism can ensure that the optimal response measures are taken under different operating environments, while avoiding system instability caused by the failure of a single method.

[0065] In one embodiment of this application, adjusting the completion timeout value corresponding to the slave device includes: calculating the difference between the completion timeout value corresponding to the slave device and the maximum value; if the difference is less than a preset adjustment step size, then increasing the completion timeout value corresponding to the slave device to the maximum value; if the difference is greater than or equal to the preset adjustment step size, then increasing the completion timeout value corresponding to the slave device according to the adjustment step size.

[0066] Understandably, when the difference between the completion timeout value and the maximum value is small, directly increasing it to the maximum value can quickly extend the request waiting time, ensuring that the system can respond to extreme load situations in a timely manner and avoid the performance overhead caused by repeated minor adjustments. When the difference is large, gradually increasing the completion timeout value according to the preset adjustment step size helps to smooth the transition and reduce the instability or abnormalities that may be caused by the system changing too quickly due to the timeout parameter.

[0067] In one embodiment of this application, adjusting the operating parameters of the processing unit includes: identifying the operating pressure value in the operating parameters; obtaining the minimum value of the operating pressure value of the processing unit; if the operating pressure value of the processing unit is greater than the minimum value, then reducing the operating pressure value of the processing unit; if the operating pressure value of the processing unit is the minimum value, then generating an error alarm signal for the electrical interconnection link.

[0068] It is understood that the embodiments of this application monitor and actively reduce the operating pressure of the processing unit to avoid performance degradation and request timeouts due to excessive load, thus ensuring stable communication of the slave device; when the pressure has been reduced to the minimum but there is still an abnormality, the system automatically alarms and promptly reminds maintenance to improve the security and reliability of the link.

[0069] Specifically, during the adjustment of the completion timeout value, it is first determined whether the completion timeout value of the slave device has reached the maximum value. If the completion timeout value has not reached the maximum value, the storage component gradually increases the completion timeout time by writing a new configuration value to the second register of the slave device to extend the time for the request message to wait for the processing unit to respond, and continues to perform subsequent operations to verify the adjustment effect. Subsequently, the error information in the first register is cleared, and step S102 is re-executed. During the operation, the error status of the slave device is monitored in real time, and the neural network model of the processing unit is dynamically trained based on the processing unit pressure value and completion timeout value data collected during normal communication.

[0070] If the completion timeout value of the slave device is the maximum value, the system cannot adjust it by increasing this value. Instead, it can only adjust the operating parameters of the processing unit. The steps for adjusting the processing unit's operating parameters include: First, the system identifies the operating pressure value in the current operating parameters and obtains the minimum allowable operating pressure value for that processing unit. Next, if the current operating pressure value is greater than this minimum value, the system takes measures to reduce the operating pressure to decrease the load on the processing unit and improve processing efficiency. Conversely, if the operating pressure value has been reduced to the minimum value but the completion timeout problem is still not resolved, the system proactively generates an error alarm signal for the electrical interconnection link.

[0071] That is, if the pressure value of the processing unit is still high during the adjustment process, i.e., not the minimum value, the storage component will actively reduce the traffic of the storage device, thereby reducing the load of the processing unit. After clearing the error information in the first register, step S102 will be re-executed. During operation, the storage component monitors the error status of the slave device in real time and dynamically trains the neural network model of the processing unit based on the processing unit pressure value and completion timeout value data collected during normal communication.

[0072] If the processing unit's pressure has been reduced to the minimum and a completion timeout error still occurs, it means that even when the processing unit is under no pressure, the slave device's completion timeout value has reached the maximum, and the problem still exists. At this time, the storage component will issue an alarm signal, prompting the developer to intervene, check and maintain the stability and reliability of the electrical interconnect links, and ensure the normal operation of the system.

[0073] In one embodiment of this application, after adjusting the completion timeout value corresponding to the slave device, the method further includes: clearing the error message indicating that the request message corresponding to the slave device has completed timeout from the first register.

[0074] It is understood that the embodiments of this application can ensure that the system state is restored to the normal monitoring state in a timely manner, avoiding unnecessary resource consumption and logical interference caused by the system repeatedly identifying and processing the same error in subsequent monitoring processes due to historical error information left in the register. By clearing the error information, it can be ensured that only the most recently generated anomalies are stored in the register, improving the real-time performance and accuracy of fault detection.

[0075] According to the electrical interconnection link parameter adjustment method proposed in this application, firstly, the operating parameters of the processing unit are obtained; secondly, the completion timeout value of the corresponding slave device is adjusted based on the parameters; a first register is read to obtain request message completion timeout error information, and a second register is read to obtain the completion timeout value of each slave device; when the processing unit detects that the completion time of the request message exceeds the completion timeout value, corresponding error information is generated; if the error information is detected, the relevant slave device is identified, and at least one of the completion timeout value of the slave device and the operating parameters of the processing unit is adjusted. This method solves the problems of low efficiency and fixed configuration method in the adjustment of electrical interconnection link parameters in related technologies, avoids a large number of completion timeout errors, effectively ensures the continuous and stable operation of the system, and achieves the technical effect of dynamically adjusting the timeout value to ensure the stable operation of the system.

[0076] The following will illustrate the implementation process of the electrical interconnect link parameter adjustment method through a specific example, such as... Figure 5 As shown, it includes the following steps:

[0077] In step S501, when the storage component is in operation, the pressure on the processing unit is continuously increased to simulate a high-load scenario;

[0078] In step S502, the system monitors the values ​​in the first buffer of all PCIe external cards under the processing unit to check if there are any errors in the completion timeout status bit. If the detection result is negative, the system records the current pressure on the processing unit and the corresponding completion timeout value of the slave device, and establishes a corresponding relationship; if the result is positive, the system proceeds to the next step of processing.

[0079] As shown in steps S503 and S504, when a timeout error occurs, the value of the request processing unit resource of the PCIe external card and the corresponding cache latency are obtained, and then the value of the second cache in the abnormal PCIe external card is obtained, and the timeout value is queried.

[0080] In step S505, if the current completion timeout value is already the maximum value, it is determined whether the service volume of the device is already the maximum value. If not, the system adjusts the parameters of the second register to increase the completion timeout value; if it is already the maximum value, the process proceeds to step S506.

[0081] In step S506, the storage component obtains the traffic volume of the storage device and determines whether it is at its minimum, i.e., whether the pressure on the processing unit is at its minimum. If not, it reduces its traffic volume to alleviate the pressure on the processing unit; if it is at its maximum, it proceeds to step S507.

[0082] In step S507, if the system still reports an error when the processing unit pressure is already at its minimum, an alarm will be reported and manual intervention will be required.

[0083] The above embodiments illustrate the method for adjusting electrical interconnect link parameters from the perspective of online applications. Based on the above embodiments, the following will further illustrate the method for adjusting electrical interconnect link parameters from the perspective of offline training. Figure 6 The present application provides a flowchart illustrating a method for adjusting electrical interconnection link parameters. The method is applied to the aforementioned electrical interconnection link parameter adjustment system. The two ends of the electrical interconnection link are respectively connected to a host device and at least one slave device. The host device includes a processing component and a storage component. The storage component is configured to perform the following steps:

[0084] In step S201, the processing unit obtains the completion timeout value corresponding to the slave device under different operating parameters.

[0085] In step S202, a correspondence between operating parameters and completion timeout values ​​is generated based on different operating parameters and the completion timeout values ​​corresponding to slave devices. A training dataset is generated based on the operating pressure value, the completion timeout values ​​corresponding to slave devices, and the correspondence.

[0086] In step S203, a neural network model is trained using the training dataset, and the completion timeout value of the slave device is adjusted using the trained neural network model and the operating parameters of the processing unit.

[0087] For a description of the features applied to the above-described electrical interconnect link parameter adjustment method in the corresponding embodiment, please refer to the relevant description of the corresponding embodiment of the electrical interconnect link parameter adjustment system, which will not be repeated here.

[0088] According to the electrical interconnect link parameter adjustment method proposed in this application, firstly, the slave completion timeout values ​​of the processing unit under different operating parameters are obtained; secondly, a correspondence is established between the operating parameters and the corresponding completion timeout values, and a training dataset is generated in conjunction with the operating pressure value; finally, a neural network model is trained using the training dataset, and the slave completion timeout values ​​are adjusted according to the model output and operating parameters. This method solves the problems of low efficiency and fixed configuration methods in the related technology of electrical interconnect link parameter adjustment, avoids a large number of completion timeout errors, effectively ensures the continuous and stable operation of the system, and achieves the technical effect of dynamically adjusting timeout values ​​to ensure stable system operation.

[0089] Embodiments of this application also provide an electronic device, such as... Figure 7 As shown, the electronic device includes a memory 701 and a processor 702. The memory 701 stores a computer program, and the processor 702 is configured to run the computer program to perform the steps in the embodiment of the electrical interconnect link parameter adjustment method.

[0090] Embodiments of this application also provide a non-volatile computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the above-described electrical interconnect link parameter adjustment method.

[0091] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.

[0092] Embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above embodiments of the electrical interconnection link parameter adjustment method.

[0093] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps in the above-described embodiments of the electrical interconnect link parameter adjustment method.

[0094] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0095] The above provides a detailed description of an electrical interconnection link parameter adjustment system, server, and method provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only intended to help understand the method and core ideas of this application. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of this application.

Claims

1. A system for adjusting electrical interconnection link parameters, characterized in that, The electrical interconnect link parameter adjustment system includes an electrical interconnect link, a master device, and at least one slave device. The electrical interconnect link is a PCIe bus used to realize communication and information exchange between the two devices. The two ends of the electrical interconnect link are respectively connected to the master device and at least one slave device. The master device is used to process the request messages of the slave device and return the message processing results to the slave device through the electrical interconnect link. The master device includes: A processing component is used to process the request messages of the slave device and return the message processing result to the slave device. The processing component includes a processing unit, a first register, and a second register. The first register stores error information indicating that the request message has timed out. The second register stores the completion timeout value of each slave device. When the processing unit processes the request message and the completion time exceeds the completion timeout value, it generates error information indicating that the request message has timed out. A storage component is used to acquire the operating parameters of the processing unit, adjust the completion timeout value corresponding to the slave device according to the operating parameters of the processing unit, read the first register and the second register, and if the error information of the request message completion timeout is read, determine the corresponding slave device according to the error information of the request message completion timeout, and adjust at least one of the completion timeout value corresponding to the slave device and the operating parameters of the processing unit; the storage component is equipped with a pre-trained neural network model, the operating parameters of the processing unit are input into the neural network model, the neural network model outputs the target value of the completion timeout value corresponding to the slave device, wherein the neural network model includes the correspondence between the operating parameters and the completion timeout value, and the target value of the completion timeout value corresponding to the operating parameters is determined based on the correspondence; At least one expansion component is connected to the slave device, and the processing component is connected to the expansion component via the electrical interconnect link.

2. A server, characterized in that, Includes the electrical interconnect link parameter adjustment system as described in claim 1.

3. A method for adjusting electrical interconnection link parameters, characterized in that, The method is applied to the electrical interconnect link parameter adjustment system of claim 1, wherein the two ends of the electrical interconnect link are respectively connected to a host device and at least one slave device, the host device includes a processing component and a storage component, wherein the storage component is configured to perform the following steps: Obtain the operating parameters of the processing unit; The completion timeout value of the slave device is adjusted according to the operating parameters of the processing unit; The first register and the second register are read, wherein the first register stores error information of request message completion timeout, and the second register stores completion timeout value of each slave device. When the processing unit processes the request message completion time exceeding the completion timeout value, it generates the request message completion timeout error information. If an error message indicating that the request message has timed out is read, the corresponding slave device is determined based on the error message indicating that the request message has timed out, and at least one of the completion timeout value of the slave device and the operating parameters of the processing unit is adjusted.

4. The method for adjusting electrical interconnect link parameters according to claim 3, characterized in that, The step of adjusting the completion timeout value corresponding to the slave device according to the operating parameters of the processing unit includes: A pre-trained neural network model; The operating parameters of the processing unit are input into the neural network model, and the neural network model outputs the target value of the completion timeout value corresponding to the slave device. The neural network model includes the correspondence between the operating parameters and the completion timeout value, and the target value of the completion timeout value corresponding to the operating parameters is determined based on the correspondence.

5. The method for adjusting electrical interconnect link parameters according to claim 4, characterized in that, Before inputting the operating parameters of the processing unit into the neural network model, the method further includes: The processing unit obtains the completion timeout value of the slave device under different operating parameters; Based on different operating parameters and the completion timeout value corresponding to the slave device, a correspondence between the operating parameters and the completion timeout value is generated, and a training dataset is generated based on the operating pressure value, the completion timeout value corresponding to the slave device, and the correspondence. The neural network model is trained using the training dataset.

6. The method for adjusting electrical interconnect link parameters according to claim 3, characterized in that, Adjusting at least one of the completion timeout value corresponding to the slave device and the operating parameters of the processing unit includes: Obtain the maximum value of the completion timeout value corresponding to the slave device; If the completion timeout value corresponding to the slave device is less than the maximum value, then the completion timeout value corresponding to the slave device is adjusted. If the completion timeout value corresponding to the slave device is the maximum value, then the operating parameters of the processing unit are adjusted.

7. The method for adjusting electrical interconnect link parameters according to claim 6, characterized in that, The adjustment of the completion timeout value corresponding to the slave device includes: Calculate the difference between the completion timeout value corresponding to the slave device and the maximum value; If the difference is less than the preset adjustment step size, the completion timeout value corresponding to the slave device is increased to the maximum value; If the difference is greater than or equal to the preset adjustment step size, then the completion timeout value corresponding to the slave device is increased according to the adjustment step size.

8. The method for adjusting electrical interconnect link parameters according to claim 6 or 7, characterized in that, After adjusting the completion timeout value corresponding to the slave device, the method further includes: Clear the error message indicating that the request message for the slave device has timed out from the first register.

9. The method for adjusting electrical interconnect link parameters according to claim 4, characterized in that, Before reading the error message indicating that the request message has timed out, the process also includes: Obtain the electrical interconnection protocol error information of the electrical interconnection link; Parse the error type in the electrical interconnection protocol error message; When the error is determined to be a timeout error based on the error type, the timeout error information of the request message is read.

10. A method for adjusting electrical interconnect link parameters, characterized in that, The method is applied to the electrical interconnect link parameter adjustment system of claim 1, wherein the two ends of the electrical interconnect link are respectively connected to a host device and at least one slave device, the host device includes a processing component and a storage component, wherein the storage component is configured to perform the following steps: Obtain the completion timeout value of the slave device corresponding to different operating parameters of the processing unit; Based on different operating parameters and the completion timeout value corresponding to the slave device, a correspondence between the operating parameters and the completion timeout value is generated, and a training dataset is generated based on the operating pressure value, the completion timeout value corresponding to the slave device, and the correspondence. The neural network model is trained using the training dataset, and the completion timeout value of the slave device is adjusted using the trained neural network model and the operating parameters of the processing unit.

11. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the electrical interconnect link parameter adjustment method according to any one of claims 3 to 10 when executing the computer program.

12. A non-volatile computer-readable storage medium, characterized in that, The non-volatile computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, it implements the steps of the electrical interconnect link parameter adjustment method according to any one of claims 3 to 10.

13. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the electrical interconnect link parameter adjustment method according to any one of claims 3 to 10.

Citation Information

Patent Citations

  • Financial terminal application and SP timeout protocol negotiation method, system, device and medium

    CN119484488A