Method, device, equipment and storage medium for testing UPI bandwidth reduction

By obtaining UPI topology information of the server CPU and performing error annotation tests, the problem of inaccurate detection of UPI bandwidth reduction faults in the existing technology is solved, fast and accurate fault handling is achieved, and server maintenance efficiency and accuracy are improved.

CN115955416BActive Publication Date: 2024-10-22INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211640798.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-20
Publication Date
2024-10-22
Estimated Expiration
2042-12-20

AI Technical Summary

Technical Problem

In the existing technology, when a UPI bandwidth reduction fault occurs on a server CPU, it is difficult for operation and maintenance personnel to accurately determine the faulty CPU, resulting in low maintenance efficiency and high costs.

Method used

By obtaining the UPI topology information, determine the CPU to be tested, perform an error injection test, control the disabling of its bandwidth channel, and check whether the prompt log is triggered, so that operation and maintenance personnel can maintain the CPU in a timely manner based on the log.

Benefits of technology

It achieves accurate detection and rapid processing of UPI bandwidth reduction problems in the CPU, saves operation and maintenance time, reduces operation and maintenance costs, and improves the accuracy and efficiency of server maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115955416B_ABST
    Figure CN115955416B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method, device, equipment and storage medium for testing UPI bandwidth reduction, which is applied to the field of server operation and maintenance. The method includes: obtaining UPI topology information according to a first instruction, determining a CPU to be tested based on the interconnection status between CPUs, obtaining the UPI first bandwidth link status of the CPU to be tested according to a second instruction, performing an injection error test on the CPU to be tested, controlling at least one bandwidth channel in the UPI bandwidth link of the CPU to be tested to be disabled, and checking whether a prompt log is triggered. The present invention implements operation and maintenance processing for CPUs with UPI bandwidth reduction by testing whether a prompt log is triggered when a CPU has UPI bandwidth reduction, that is, the operation and maintenance personnel can determine the CPU with UPI bandwidth reduction problem according to the reported UPI bandwidth reduction prompt log, and replace and maintain the CPU in time, saving operation and maintenance time, reducing operation and maintenance costs, and improving the accuracy and efficiency of maintaining servers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of servers, and in particular to a method, device, equipment and storage medium for testing UPI bandwidth reduction. Background Art

[0002] UPI (UltraPathInterconnect) is a high-speed bus that interconnects server CPUs. It has the functional characteristics of high efficiency and low power consumption. When the bandwidth of UPI is sufficient, the CPUs can maintain high-speed and stable data collaborative processing. Therefore, the UPI bandwidth link affects the performance of the CPU and is extremely important for maintaining server stability.

[0003] The existing maintenance scheme for server CPU is that when the CPU port is loose or the CPU performance is affected due to other reasons, it is necessary to analyze which CPU is faulty based on the CPU related performance information, so as to replace the faulty CPU in time to achieve server maintenance.

[0004] However, when a UPI bandwidth reduction failure actually occurs in the server CPU, the operation and maintenance personnel analyze the possible faulty CPU based on the CPU-related performance information. They can only determine whether the replaced CPU is indeed a faulty CPU by checking the performance information of the replaced CPU after replacing the CPU. In this way, the method of replacing the CPU first and then determining whether it is a faulty CPU consumes operation and maintenance time, and the judgment of the faulty CPU may be inaccurate, which increases the operation and maintenance cost and thus affects the efficiency of maintaining the server. Summary of the invention

[0005] The purpose of the embodiments of the present invention is to provide a method, device, equipment and storage medium for testing UPI bandwidth reduction, so as to solve the problem of low operation and maintenance efficiency when the CPU of the existing server has problems, so as to achieve accurate and efficient maintenance of the server. The specific technical solution is as follows:

[0006] In a first aspect of the implementation of the present invention, a method for testing UPI bandwidth reduction is first provided, which is applied to an error injection device connected to a server, wherein the server supports multiple CPUs, and the method comprises:

[0007] Acquire UPI topology information according to the first instruction, wherein the UPI topology information includes an interconnection state between CPUs;

[0008] Determine a CPU to be tested based on the interconnection state between the CPUs, and obtain a UPI first bandwidth link state of the CPU to be tested according to a second instruction;

[0009] Performing an injection error test on the CPU to be tested, and controlling at least one bandwidth channel in a UPI bandwidth link of the CPU to be tested to be disabled;

[0010] Check whether a prompt log is triggered, wherein the prompt log is used to report that the CPU under test has a UPI bandwidth reduction.

[0011] Optionally, the error-injection device is connected to the server via an XDP interface, and before acquiring the UPI topology information according to the first instruction, the method further includes:

[0012] Detecting a connection signal sent by the server;

[0013] Acquiring a connection status with the server according to the connection signal;

[0014] If the connection with the server is successful, a prompt message indicating the successful connection is displayed.

[0015] Optionally, determining the CPU to be tested based on the interconnection state between the CPUs, and acquiring the UPI first bandwidth link state of the CPU to be tested according to the second instruction includes:

[0016] sending the second instruction to the server;

[0017] Executing the second instruction on the CPU to be tested, where the second instruction is used to check the UPI bandwidth link status of the CPU to be tested;

[0018] Recording the UPI first bandwidth link status of the CPU to be tested;

[0019] According to the UPI first bandwidth link state, it is determined that the CPU to be tested is in a full bandwidth operation state.

[0020] Optionally, performing the injection error test on the CPU to be tested and controlling at least one bandwidth channel in the UPI bandwidth link of the CPU to be tested to be disabled includes:

[0021] Sending the injection error test instruction to the server;

[0022] According to the injection error test instruction, at least one bandwidth channel in the UPI bandwidth link is controlled to be disabled; wherein controlling the at least one bandwidth channel to be disabled includes adjusting the bandwidth channel value to a preset disconnection value.

[0023] Optionally, after performing the injection error test on the CPU to be tested and controlling at least one bandwidth channel in the UPI bandwidth link of the CPU to be tested to be disabled, and before checking whether to trigger a prompt log, the method further includes:

[0024] According to the second instruction, obtaining a UPI second bandwidth link state of the CPU to be tested, wherein the UPI second bandwidth link state is a state after at least one bandwidth channel in the UPI bandwidth link is disabled;

[0025] Recording the UPI second bandwidth link status of the CPU to be tested;

[0026] According to the UPI second bandwidth link state, it is determined that the CPU to be tested is in a non-full bandwidth operation state.

[0027] Optionally, checking whether a prompt log is triggered includes:

[0028] Receiving monitoring information sent by a baseboard management controller BMC of the server;

[0029] Check whether the UPI bandwidth reduction prompt log of the CPU to be tested appears in the monitoring information; wherein the monitoring information is used to reflect the performance status of multiple CPUs of the server;

[0030] When it is confirmed that a prompt log indicating that the UPI bandwidth is reduced appears in the monitoring information, the prompt log is sent to an operation and maintenance personnel.

[0031] Optionally, after checking whether the prompt log is triggered, the method further includes:

[0032] Matching the recorded UPI second bandwidth link state of the CPU to be tested with the UPI bandwidth reduction prompt log of the CPU to be tested to obtain a matching result;

[0033] According to the matching result, it is determined whether the UPI bandwidth reduction test is successful.

[0034] In a second aspect of the implementation of the present invention, there is also provided a device for testing UPI bandwidth reduction, which is applied to an error injection device connected to a server, wherein the server supports multiple CPUs, and the device comprises:

[0035] A first acquisition module, configured to acquire UPI topology information according to a first instruction, wherein the UPI topology information includes an interconnection state between CPUs;

[0036] A second acquisition module is used to determine the CPU to be tested based on the interconnection state between the CPUs, and obtain the UPI first bandwidth link state of the CPU to be tested according to the second instruction;

[0037] An error injection test module is used to perform an error injection test on the CPU to be tested, and control at least one bandwidth channel in the UPI bandwidth link of the CPU to be tested to be disabled;

[0038] The prompt log module is used to check whether the prompt log is triggered, wherein the prompt log is used to report that the CPU under test has a UPI bandwidth reduction.

[0039] Optionally, the device further comprises:

[0040] The detection module is used to detect the connection signal sent by the server, obtain the connection status with the server according to the connection signal, and display a prompt message of successful connection if the connection with the server is successful.

[0041] Optionally, the second acquisition module is specifically used to:

[0042] sending the second instruction to the server;

[0043] Executing the second instruction on the CPU to be tested, where the second instruction is used to check the UPI bandwidth link status of the CPU to be tested;

[0044] Recording the UPI first bandwidth link status of the CPU to be tested;

[0045] According to the UPI first bandwidth link state, it is determined that the CPU to be tested is in a full bandwidth operation state.

[0046] Optionally, the injection error test module is specifically used to

[0047] Sending the injection error test instruction to the server;

[0048] According to the injection error test instruction, at least one bandwidth channel in the UPI bandwidth link is controlled to be disabled; wherein controlling the at least one bandwidth channel to be disabled includes adjusting the bandwidth channel value to a preset disconnection value.

[0049] Optionally, the device further includes a third acquisition module, and the third acquisition module is specifically configured to:

[0050] According to the second instruction, obtaining a UPI second bandwidth link state of the CPU to be tested, wherein the UPI second bandwidth link state is a state after at least one bandwidth channel in the UPI bandwidth link is disabled;

[0051] Recording the UPI second bandwidth link status of the CPU to be tested;

[0052] According to the UPI second bandwidth link state, it is determined that the CPU to be tested is in a non-full bandwidth operation state.

[0053] Optionally, the prompt log module includes:

[0054] A receiving submodule receives monitoring information sent by a baseboard management controller BMC of the server;

[0055] A prompt log submodule is used to check whether the UPI bandwidth reduction prompt log of the CPU to be tested appears in the monitoring information; wherein the monitoring information is used to reflect the performance status of multiple CPUs of the server;

[0056] The sending submodule is used to send the prompt log to the operation and maintenance personnel when it is confirmed that the prompt log of UPI bandwidth reduction appears in the monitoring information.

[0057] Optionally, the device further comprises:

[0058] A matching module, used for matching the recorded UPI second bandwidth link state of the CPU to be tested with the UPI bandwidth reduction prompt log of the CPU to be tested to obtain a matching result;

[0059] The judging module is used to judge whether the UPI bandwidth reduction test is successful according to the matching result.

[0060] In another aspect of the present invention, there is also provided a communication device, which is applied to an error injection device connected to a server, comprising: a transceiver, a memory, a processor, and a program stored in the memory and executable on the processor;

[0061] The processor is used to read the program in the memory to implement any of the above-mentioned methods for testing UPI bandwidth reduction.

[0062] In another aspect of the present invention, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, and when the instructions are executed on a computer, the computer executes any of the above-mentioned methods for testing UPI bandwidth reduction.

[0063] The method for testing UPI bandwidth reduction provided by the embodiment of the present invention obtains UPI topology information through a first instruction, determines the CPU to be tested based on the interconnection status between CPUs, obtains the UPI first bandwidth link status of the CPU to be tested according to a second instruction, performs an injection error test on the CPU to be tested, controls at least one bandwidth channel in the UPI bandwidth link of the CPU to be tested to be disabled, and checks whether a prompt log is triggered, so that the operation and maintenance personnel can maintain the CPU in time according to the prompt log. In the embodiment of the present invention, by testing whether a prompt log is triggered when the CPU has UPI bandwidth reduction, the operation and maintenance processing for the CPU with UPI bandwidth reduction is implemented, that is, the operation and maintenance personnel can directly lock the CPU with UPI bandwidth reduction problem according to the reported UPI bandwidth reduction prompt log, and replace and maintain the CPU in time, avoiding the problem of being unable to accurately detect the CPU with UPI bandwidth reduction, thereby affecting the stability of the server, further saving operation and maintenance time, reducing operation and maintenance costs, and improving the accuracy and efficiency of maintaining the server. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.

[0065] Figure 1This is one of the step flow charts of the method for testing UPI bandwidth reduction provided in an embodiment of the present invention.

[0066] Figure 2 yes Figure 1 A method flow chart of step 102 in the step flow chart of the method for testing UPI bandwidth reduction is provided;

[0067] Figure 3 yes Figure 1 A method flow chart of step 104 in the step flow chart of the method for testing UPI bandwidth reduction is provided;

[0068] Figure 4 This is the second step flow chart of the method for testing UPI bandwidth reduction provided by an embodiment of the present invention;

[0069] Figure 5 It is a structural schematic diagram of a device for testing UPI bandwidth reduction provided by an embodiment of the present invention;

[0070] Figure 6 It is a structural diagram of a communication device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0071] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.

[0072] Reference Figure 1 , showing one of the flow charts of steps for testing UPI bandwidth reduction provided by an embodiment of the present invention, applied to an error injection device connected to a server, the server supports multiple CPUs, and the method may include:

[0073] Step 101: Obtain UPI topology information according to a first instruction, wherein the UPI topology information includes an interconnection state between CPUs.

[0074] In an embodiment of the present invention, the server supports multiple CPUs, and the server CPUs are interconnected through a UPI high-speed bus. The bandwidth link of the UPI includes *4, *8, *16 and other modes. When the bandwidth of the UPI between the CPUs is sufficient, the CPUs can maintain high-speed and stable data collaborative processing to meet the data processing requirements of the server.

[0075] If the UPI of the CPU has a bandwidth reduction problem, which affects the server CPU performance, the embodiment of the present invention provides a trigger mechanism for prompting a faulty CPU by testing and simulating the UPI bandwidth reduction.

[0076] It should be noted that the error injection device can be a register device including an error injection program, which is connected to the server through the XDP interface, and the other end of the error injection device is connected to a display device, such as a computer, to compile and run the test program script. Of course, the above is only a specific example. In actual use, the error injection device can also be other devices, which will not be elaborated here.

[0077] Specifically, the error injection device executes the first instruction and obtains UPI topology information according to the first instruction, wherein the UPI topology information is used to display the length and routing of the UPI bus, including the interconnection status between CPUs. It should be noted that the UPI topology information must be obtained through the first instruction sent by the error injection device, and the server cannot directly view it. In this embodiment, the first instruction executed by the error injection device is executed as follows:

[0078] upi.topology()

[0079] Specifically, in this embodiment, it is necessary to confirm that the wrongly injected device is successfully connected to the server before testing can be performed to ensure that the wrongly injected device is connected and communicates with the server and further obtain information, which may specifically include the following steps:

[0080] First, detect the connection signal sent by the server.

[0081] Secondly, according to the connection signal, obtain the connection status with the server.

[0082] The device end can obtain the connection status according to the connection signal sent by the server, and the connection status includes: connecting, connection timeout, connection failure, connection success, etc.

[0083] Finally, if the connection with the server is successful, a prompt message indicating a successful connection is displayed.

[0084] If the wrong device receives a successful connection message, the connection information will be displayed on the display device for the tester to confirm.

[0085] In the embodiment of the present invention, the interconnection status between the server CPUs is obtained through the first instruction executed by the error injection device, that is, it is confirmed that the CPUs in the server are in a normal connection state, thereby avoiding the test results being affected by abnormal CPU connections.

[0086] Step 102: determine the CPU to be tested based on the interconnection status between CPUs, and obtain the UPI first bandwidth link status of the CPU to be tested according to the second instruction.

[0087] In this embodiment, in the obtained UPI topology information, the CPU to be tested is determined based on the interconnection status between the CPUs. In the embodiment of the present invention, the connection status between two CPUs is taken as an example, for example: CPU0 and CPU1 are interconnected, and UPIPort0 of CPU0 and UPIport2 of CPU1 are connected to each other, then the CPUs to be tested are determined to be CPU0 and CPU1. According to the situation that the bandwidth of the UPIPort port is reduced in the final test, the faulty CPU is confirmed and replaced and maintained.

[0088] Specifically, after determining the CPU to be tested, the error injection device executes the second instruction, which is used to check the UPI bandwidth link status of the CPU to be tested. In this embodiment, the second instruction is executed for the first time during the test to obtain the UPI first bandwidth link status of the CPU to be tested, wherein the UPI first bandwidth link status refers to the bandwidth link status of the UPI in the initial state, including the total number of bandwidth channels, bandwidth channel value, connection status and other information. In this embodiment, the second instruction executed by the error injection device is executed as follows:

[0089] sv.sockets.uncore.upi.upi0.widthlink.show()

[0090] According to the second instruction, it can be seen that the Tx of UPIPort0 of CPU0 is connected to the Rx of UPIPort2 of CPU1, and the bandwidth channel value is 0. It should be noted that the connection and disconnection of the bandwidth link are distinguished according to the preset value. In this embodiment, the preset disconnection value is 1, and the preset connection value is 0, that is, 0 indicates that the link is normal, and 1 indicates that the link is disconnected, so that the error-injected device can know the bandwidth link status of UPI according to the obtained bandwidth channel value.

[0091] Furthermore, if Figure 2 As shown, Figure 2 yes Figure 1 A method flow chart of step 102 of a method for testing UPI bandwidth reduction is shown, and step 102 includes the following steps:

[0092] Step 1021, sending a second instruction to the server.

[0093] The error-notification device sends the second instruction to the server so that the UPI bandwidth link status of the CPU can be checked.

[0094] Step 1022: Execute a second instruction on the CPU to be tested, where the second instruction is used to check the UPI bandwidth link status of the CPU to be tested.

[0095] Step 1023: Record the UPI first bandwidth link status of the CPU to be tested.

[0096] It should be noted that during the script running process of the wrong device, after executing the second instruction, the UPI bandwidth link status of the CPU to be tested will be displayed in the script tool and recorded as the UPI first bandwidth link status of the CPU to be tested, including the total number of UPI bandwidth channels, bandwidth channel value, connection status and other information of the current CPU to be tested.

[0097] Step 1024: Determine, based on the UPI first bandwidth link status, that the CPU to be tested is in a full bandwidth operation status.

[0098] It should be noted that in the process of implementing the present invention, it has been proved through experiments that the CPU performance of the server is best only when the UPI bandwidth link is sufficient and in a connected state, that is, when the CPU is running at full bandwidth, to maintain stable operation of the server. Based on the above influencing factors, this embodiment can simulate the UPI bandwidth reduction, that is, when the CPU is not running at full bandwidth, to test whether the prompt mechanism is triggered. The above method can further monitor the performance problems of the CPU, so that the technical solution provided by this embodiment can accurately replace and maintain the CPU with UPI bandwidth reduction, thereby improving the efficiency of maintaining the server.

[0099] Step 103, performing an injection error test on the CPU to be tested, and controlling at least one bandwidth channel in the UPI bandwidth link of the CPU to be tested to be disabled.

[0100] In this embodiment, when confirming that the CPU to be tested is in full bandwidth operation state, the error injection device performs an error injection test on the CPU to be tested, controls the UPI bandwidth of the CPU to be tested to reduce, and thus tests whether a prompt message appears based on the simulated UPI bandwidth reduction situation.

[0101] Specifically, the error injection device controls the UPI of the CPU to be tested in the server to reduce the bandwidth by executing the error injection test instruction. For example, the UPI bandwidth channel can be 16 bits or 19 bits. The number of bits of the UPI bandwidth channel is pre-set according to the actual CPU specification and is not specifically limited here. In this embodiment, the UPI bandwidth link of the CPU to be tested is 19 bits, that is, the bandwidth channel is 19. For example, it is explained.

[0102] The error injection device executes a command to disable some UPI bandwidth links. The purpose of the embodiment of the present invention is to simulate the UPI bandwidth reduction problem of the CPU to be tested. If at least one of the UPI bandwidth channels is disconnected, the CPU is not in full bandwidth operation state, which meets the test requirements. Therefore, the present invention takes disabling any two channels of UPI as an example. In this embodiment, the error injection device executes the error injection test instruction, and the execution command is as follows:

[0103] sv.socket0.uncore.upi.upi0.setwidthTx(0-1)=0x1

[0104] It should be noted that the command executed by the error-injected device is run in the script tool, and at least one bandwidth channel in the UPI bandwidth link of the CPU to be tested in the control server is disabled.

[0105] Specifically, in this embodiment, step 103 performs an injection error test on the CPU to be tested, and the method of controlling at least one bandwidth channel in the UPI bandwidth link of the CPU to be tested to be disabled may include the following steps:

[0106] First, send an error test command to the server.

[0107] Secondly, according to the injection error test instruction, at least one bandwidth channel in the UPI bandwidth link is controlled to be disabled; wherein, controlling at least one bandwidth channel to be disabled includes adjusting the bandwidth channel value to a preset disconnection value.

[0108] It should be noted that the connection and disconnection of the bandwidth link are distinguished according to a preset value. In this embodiment, the preset disconnection value is 1, and the preset connection value is 0, that is, 0 indicates that the link is normal, and 1 indicates that the link is disconnected. In this embodiment, by controlling at least one bandwidth channel and adjusting the bandwidth channel value to the preset disconnection value 1, UPI bandwidth reduction is achieved. For ease of understanding, in this embodiment, controlling at least one bandwidth channel to be disabled includes adjusting the bandwidth channel value to the preset disconnection value 1. In actual use, the preset disconnection value can also be set to 0, and the preset connection value can be set to 1. Each case will not be described one by one here.

[0109] Step 104 , checking whether a prompt log is triggered, wherein the prompt log is used to report that the CPU under test has a UPI bandwidth reduction.

[0110] In this embodiment, after the error injection device executes the error injection test instruction and causes the UPI bandwidth reduction of the CPU to be tested, it checks whether a prompt log is triggered. The prompt log is used to report that the UPI bandwidth reduction of the CPU to be tested occurs, so that when the test is effective, when the UPI bandwidth failure of the CPU actually occurs in the server, the operation and maintenance personnel can directly refer to the prompt log and replace the faulty CPU in time.

[0111] Furthermore, if Figure 3 As shown, Figure 3 yes Figure 1 A method flow chart of step 104 of a method for testing UPI bandwidth reduction is shown, and step 104 includes the following steps:

[0112] Step 1041: receiving monitoring information sent by a baseboard management controller BMC of the server.

[0113] It should be noted that the baseboard management controller BMC is a management controller unique to the server. It has a remote service function and monitors the temperature, voltage, fan and other performance information of the server CPU to ensure that the server is in a stable operating state. One of its main functions is to have a log to record monitoring information. The monitoring information is used to reflect the performance status of multiple CPUs in the server.

[0114] Step 1042, checking whether the UPI bandwidth reduction prompt log of the CPU appears in the monitoring information; wherein the monitoring information is used to reflect the performance status of multiple CPUs of the server.

[0115] Step 1043: When it is confirmed that a prompt log indicating that the UPI bandwidth has been reduced appears in the monitoring information, the prompt log is sent to the operation and maintenance personnel.

[0116] Specifically, the incorrectly injected device can view the sel and idl logs of the BMC. The sel and idl logs are system event logs. User devices can access the system event logs through a log browser. The sel and idl logs can monitor the server to detect warnings or potential major problems. Therefore, the incorrectly injected device can view whether the sel and idl logs contain prompt logs of UPI bandwidth reduction, thereby testing the UPI bandwidth reduction and sending prompt logs to remind the operation and maintenance personnel which CPU has the UPI bandwidth reduction.

[0117] The method for testing UPI bandwidth reduction provided by the embodiment of the present invention obtains UPI topology information through a first instruction, determines the CPU to be tested based on the interconnection status between CPUs, obtains the UPI first bandwidth link status of the CPU to be tested according to a second instruction, performs an injection error test on the CPU to be tested, controls at least one bandwidth channel in the UPI bandwidth link of the CPU to be tested to be disabled, and checks whether a prompt log is triggered, so that the operation and maintenance personnel can maintain the CPU in time according to the prompt log. In the embodiment of the present invention, by testing whether a prompt log is triggered when the CPU has UPI bandwidth reduction, the operation and maintenance processing for the CPU with UPI bandwidth reduction is implemented, that is, the operation and maintenance personnel can directly lock the CPU with UPI bandwidth reduction problem according to the reported UPI bandwidth reduction prompt log, and replace and maintain the CPU in time, avoiding the problem of being unable to accurately detect the CPU with UPI bandwidth reduction, thereby affecting the stability of the server, further saving operation and maintenance time, reducing operation and maintenance costs, and improving the accuracy and efficiency of maintaining the server.

[0118] The second embodiment of the present application relates to a method for testing UPI bandwidth reduction, referring to Figure 4 As shown, Figure 4 The second flowchart of the steps of testing UPI bandwidth reduction provided by an embodiment of the present invention is shown, and the method includes the following steps:

[0119] Step 101: Obtain UPI topology information according to a first instruction, wherein the UPI topology information includes an interconnection state between CPUs.

[0120] Step 102: determine the CPU to be tested based on the interconnection status between the CPUs, and obtain the UPI first bandwidth link status of the CPU to be tested according to the second instruction.

[0121] Step 103, performing an injection error test on the CPU to be tested, and controlling at least one bandwidth channel in the UPI bandwidth link of the CPU to be tested to be disabled.

[0122] The specific contents of the above steps 101-103 are referred to the previous discussion and will not be repeated here.

[0123] Step 105: According to the second instruction, obtain the UPI second bandwidth link state of the CPU to be tested, wherein the UPI second bandwidth link state is a state after at least one bandwidth channel in the UPI bandwidth link is disabled.

[0124] Specifically, after at least one bandwidth channel in the UPI bandwidth link controlling the CPU to be tested is disabled, the error injection device executes the second instruction again, wherein the second instruction is used to check the UPI bandwidth link status of the CPU to be tested. In this embodiment, the second instruction is executed for the first time before the error injection test to obtain the UPI first bandwidth link status of the CPU to be tested, and the second instruction is executed again after the error injection test to obtain the UPI second bandwidth link status of the CPU to be tested, so as to facilitate the comparison of the UPI bandwidth links and confirm that the disabling of at least one bandwidth channel in the UPI bandwidth link controlling the CPU to be tested is effective. Among them, the UPI second bandwidth link status refers to the status after at least one bandwidth channel in the UPI bandwidth link is disabled, including information such as the total number of bandwidth channels, the current bandwidth channel value, and the current connection status. In this embodiment, the second instruction executed again by the error injection device is executed as follows:

[0125] sv.sockets.uncore.upi.upi0.widthlink.show()

[0126] According to the second instruction, it can be seen that Tx(0-1) of port0 of CPU0 is set to 1, and Rx(0-1) of port2 of CPU1 is set to 1, which means that part of the bandwidth of the UPI link between CPU0 and CPU2 is disabled, and CPU0 and CPU1 of the CPU to be tested are no longer running at full bandwidth.

[0127] It should be noted that the connection and disconnection of the bandwidth link are distinguished according to a preset value. In this embodiment, the preset disconnection value is 1, and the preset connection value is 0, that is, 0 indicates that the link is normal, and 1 indicates that the link is disconnected, so that the error-injected device can know the second bandwidth link status of UPI according to the acquired bandwidth channel value.

[0128] Step 106: Record the UPI second bandwidth link status of the CPU to be tested.

[0129] In this embodiment, during the script running process of the wrongly injected device, after executing the second instruction again, the UPI bandwidth link status of the CPU to be tested will be displayed in the script tool and recorded as the UPI second bandwidth link status of the CPU to be tested, including the total number of UPI bandwidth channels of the CPU to be tested, the current bandwidth channel value, the current connection status and other information.

[0130] To ensure the accuracy of the UPI bandwidth reduction triggering prompt log test and improve the efficiency of operation and maintenance personnel in replacing and maintaining G faulty CPUs, the UPI second bandwidth link status of the CPU to be tested is recorded for comparison with the log information, so that the operation and maintenance personnel can lock the CPU where the UPI bandwidth reduction occurs based on the accurate prompt log information, perform server maintenance, and improve the speed and efficiency of troubleshooting.

[0131] Step 107: Determine, according to the UPI second bandwidth link status, that the CPU to be tested is in a non-full bandwidth operation state.

[0132] It should be noted that in the process of implementing the present invention, it has been proved through experiments that the CPU performance of the server is best only when the UPI bandwidth link is sufficient and connected, that is, when the CPU is in full bandwidth operation state, the server can be kept running stably. Based on the above influencing factors, this embodiment can simulate the UPI bandwidth reduction, that is, determine whether the CPU to be tested is in a non-full bandwidth operation state, and test whether the prompt mechanism is triggered. The above method can further monitor the performance problems of the CPU, so that the technical solution provided by this embodiment can accurately replace and maintain the CPU with UPI bandwidth reduction, thereby improving the efficiency of maintaining the server.

[0133] It should be noted that, for steps 105-107 and step 104, there is no order of precedence and they can be performed simultaneously. The embodiment of the present application is only an embodiment and does not mean that steps 105-107 must be performed before step 104. Each case will not be described one by one here.

[0134] Step 104 , checking whether a prompt log is triggered, wherein the prompt log is used to report that the CPU under test has a UPI bandwidth reduction.

[0135] The specific content of the above step 104 is referred to the previous discussion and will not be repeated here.

[0136] Specifically, step 104 checks whether a prompt log is triggered, wherein the prompt log is used to report that the CPU under test has a UPI bandwidth reduction, and further includes:

[0137] Match the recorded UPI second bandwidth link state of the CPU to be tested with the UPI bandwidth reduction prompt log of the CPU to be tested to obtain a matching result;

[0138] Based on the matching results, determine whether the UPI bandwidth reduction test is successful.

[0139] In this embodiment, according to the UPI second bandwidth link state of the CPU to be tested and the UPI bandwidth reduction prompt log of the CPU to be tested, the validity of the UPI bandwidth reduction prompt log is matched and confirmed, and then the test is successful. In this embodiment, the prompt log can be reported to the operation and maintenance personnel through the BMC display interface. The BMC display interface can display the prompt log to the operation and maintenance personnel for a long time to prevent the operation and maintenance personnel from missing the prompt and failing to check in time.

[0140] Therefore, when it is determined that the UPI bandwidth reduction test is successful based on the matching result, if the CPU UPI bandwidth reduction problem occurs during actual operation of the server, it is convenient for the operation and maintenance personnel to directly lock the faulty CPU according to the reported prompt log, replace and maintain the CPU, and ensure stable operation of the server. The method of the embodiment of the present invention saves operation and maintenance time and avoids the problem of being unable to accurately detect the CPU with UPI bandwidth reduction, thereby affecting the stability of the server.

[0141] The method for testing UPI bandwidth reduction provided by the embodiment of the present invention obtains UPI topology information through a first instruction, determines the CPU to be tested based on the interconnection state between CPUs, obtains the UPI first bandwidth link state of the CPU to be tested according to a second instruction, performs an injection test on the CPU to be tested, controls at least one bandwidth channel in the UPI bandwidth link of the CPU to be tested to be disabled, obtains the UPI second bandwidth link state of the CPU to be tested according to the second instruction, records the UPI second bandwidth link state of the CPU to be tested, and determines that the CPU to be tested is in a non-full bandwidth operation state according to the UPI second bandwidth link state, and then checks whether a prompt log is triggered, so that the operation and maintenance personnel can maintain the CPU in time according to the prompt log. In the embodiment of the present invention, by testing whether a prompt log is triggered when the CPU has UPI bandwidth reduction, the operation and maintenance processing for the CPU having UPI bandwidth reduction is realized, that is, the operation and maintenance personnel can directly lock the CPU with UPI bandwidth reduction problem according to the reported UPI bandwidth reduction prompt log, and replace and maintain the CPU in time, avoiding the problem of not being able to accurately detect the CPU with UPI bandwidth reduction, thereby affecting the stability of the server, further saving operation and maintenance time, reducing operation and maintenance costs, and improving the accuracy and efficiency of maintaining the server.

[0142] Reference Figure 5 , shows a schematic diagram of the structure of a device for testing UPI bandwidth reduction provided by an embodiment of the present invention, such as Figure 5 As shown, the device may include:

[0143] A first acquisition module 201 is used to acquire UPI topology information according to a first instruction, wherein the UPI topology information includes an interconnection state between CPUs;

[0144] The second acquisition module 202 is used to determine the CPU to be tested based on the interconnection status between the CPUs, and obtain the UPI first bandwidth link status of the CPU to be tested according to the second instruction;

[0145] The error injection test module 203 is used to perform an error injection test on the CPU to be tested, and control at least one bandwidth channel in the UPI bandwidth link of the CPU to be tested to be disabled;

[0146] The prompt log module 204 is used to check whether a prompt log is triggered, wherein the prompt log is used to report that the CPU under test has a UPI bandwidth reduction.

[0147] Optionally, the device for testing UPI bandwidth reduction further includes:

[0148] The detection module is used to detect the connection signal sent by the server, obtain the connection status with the server according to the connection signal, and display a prompt message of successful connection if the connection with the server is successful.

[0149] Optionally, the second acquisition module 202 is specifically configured to:

[0150] sending the second instruction to the server;

[0151] Executing the second instruction on the CPU to be tested, where the second instruction is used to check the UPI bandwidth link status of the CPU to be tested;

[0152] Recording the UPI first bandwidth link status of the CPU to be tested;

[0153] According to the UPI first bandwidth link state, it is determined that the CPU to be tested is in a full bandwidth operation state.

[0154] Optionally, the injection error testing module 203 is specifically used to

[0155] Sending the injection error test instruction to the server;

[0156] According to the injection error test instruction, at least one bandwidth channel in the UPI bandwidth link is controlled to be disabled; wherein controlling the at least one bandwidth channel to be disabled includes adjusting the bandwidth channel value to a preset disconnection value.

[0157] Optionally, the device for testing UPI bandwidth reduction further includes a third acquisition module, and the third acquisition module is specifically used to:

[0158] According to the second instruction, obtaining a UPI second bandwidth link state of the CPU to be tested, wherein the UPI second bandwidth link state is a state after at least one bandwidth channel in the UPI bandwidth link is disabled;

[0159] Recording the UPI second bandwidth link status of the CPU to be tested;

[0160] According to the UPI second bandwidth link state, it is determined that the CPU to be tested is in a non-full bandwidth operation state.

[0161] Optionally, the prompt log module 204 includes:

[0162] A receiving submodule receives monitoring information sent by a baseboard management controller BMC of the server;

[0163] A prompt log submodule is used to check whether the UPI bandwidth reduction prompt log of the CPU to be tested appears in the monitoring information; wherein the monitoring information is used to reflect the performance status of multiple CPUs of the server;

[0164] The sending submodule is used to send the prompt log to the operation and maintenance personnel when it is confirmed that the prompt log of UPI bandwidth reduction appears in the monitoring information.

[0165] Optionally, the device for testing UPI bandwidth reduction further includes:

[0166] A matching module, used for matching the recorded UPI second bandwidth link state of the CPU to be tested with the UPI bandwidth reduction prompt log of the CPU to be tested to obtain a matching result;

[0167] The judging module is used to judge whether the UPI bandwidth reduction test is successful according to the matching result.

[0168] The device for testing UPI bandwidth reduction provided by the embodiment of the present invention obtains UPI topology information according to the first instruction through the first acquisition module, determines the CPU to be tested based on the interconnection status between CPUs through the second acquisition module, obtains the UPI first bandwidth link status of the CPU to be tested according to the second instruction, performs an injection error test on the CPU to be tested by the injection error test module, controls at least one bandwidth channel in the UPI bandwidth link of the CPU to be tested to be disabled, and checks whether the prompt log is triggered by the prompt log module, so that the operation and maintenance personnel can maintain the CPU in time according to the prompt log. In the embodiment of the present invention, by testing whether the prompt log is triggered when the CPU has UPI bandwidth reduction, the operation and maintenance processing for the CPU with UPI bandwidth reduction is realized, that is, the operation and maintenance personnel can directly lock the CPU with UPI bandwidth reduction problem according to the reported UPI bandwidth reduction prompt log, and replace and maintain the CPU in time, avoiding the problem of not being able to accurately detect the CPU with UPI bandwidth reduction, thereby affecting the stability of the server, further saving operation and maintenance time, reducing operation and maintenance costs, and improving the accuracy and efficiency of maintaining the server.

[0169] The embodiment of the present invention also provides a communication device, such as Figure 6 As shown, it includes a processor 301, a communication interface 302, a memory 303 and a communication bus 304, wherein the processor 301, the communication interface 302, and the memory 303 communicate with each other through the communication bus 304.

[0170] Memory 303, used for storing computer programs;

[0171] The processor 301 is used to execute the program stored in the memory 303 to implement the following steps:

[0172] According to the first instruction, UPI topology information is obtained, and based on the interconnection status between CPUs, the CPU to be tested is determined, and according to the second instruction, the UPI first bandwidth link status of the CPU to be tested is obtained, and an injection error test is performed on the CPU to be tested, and at least one bandwidth channel in the UPI bandwidth link of the CPU to be tested is controlled to be disabled, and it is checked whether a prompt log is triggered.

[0173] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0174] The communication interface is used for communication between the above terminal and other devices.

[0175] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0176] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0177] In another embodiment of the present invention, a computer-readable storage medium is provided, in which instructions are stored. When the computer-readable storage medium is executed on a computer, the computer executes the method for testing UPI bandwidth reduction described in any of the above embodiments.

[0178] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer executes the method for testing UPI bandwidth reduction described in any one of the above embodiments.

[0179] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk SolidStateDisk (SSD)), etc.

[0180] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0181] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0182] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A method for testing UPI bandwidth reduction, characterized in that: An error injection device is applied to a server connected to the server, wherein the server supports multiple CPUs, and the method comprises: Acquire UPI topology information according to the first instruction, wherein the UPI topology information includes an interconnection state between CPUs; Determine a CPU to be tested based on the interconnection state between the CPUs, and obtain a UPI first bandwidth link state of the CPU to be tested according to a second instruction; Performing an injection error test on the CPU to be tested, and controlling at least one bandwidth channel in a UPI bandwidth link of the CPU to be tested to be disabled; According to the second instruction, obtaining a UPI second bandwidth link state of the CPU to be tested, wherein the UPI second bandwidth link state is a state after at least one bandwidth channel in the UPI bandwidth link is disabled; Recording the UPI second bandwidth link status of the CPU to be tested; Determining, according to the UPI second bandwidth link state, that the CPU to be tested is in a non-full bandwidth operation state; Checking whether a prompt log is triggered includes: receiving monitoring information sent by a baseboard management controller BMC of the server, checking whether a UPI bandwidth reduction prompt log of the CPU to be tested appears in the monitoring information; wherein the monitoring information is used to reflect the performance status of multiple CPUs of the server, and when it is confirmed that a UPI bandwidth reduction prompt log appears in the monitoring information, sending the prompt log to an operation and maintenance personnel; wherein the prompt log is used to report that a UPI bandwidth reduction occurs in the CPU to be tested; Matching the recorded UPI second bandwidth link state of the CPU to be tested with the UPI bandwidth reduction prompt log of the CPU to be tested to obtain a matching result; According to the matching result, it is determined whether the UPI bandwidth reduction test is successful.

2. The method according to claim 1, characterized in that The error-injection device is connected to the server via an XDP interface, and before obtaining the UPI topology information according to the first instruction, the method further includes: Detecting a connection signal sent by the server; Acquiring a connection status with the server according to the connection signal; If the connection with the server is successful, a prompt message indicating the successful connection is displayed.

3. The method according to claim 1, characterized in that: The determining the CPU to be tested based on the interconnection state between the CPUs, and acquiring the UPI first bandwidth link state of the CPU to be tested according to the second instruction, includes: sending the second instruction to the server; Executing the second instruction on the CPU to be tested, where the second instruction is used to check the UPI bandwidth link status of the CPU to be tested; Recording the UPI first bandwidth link status of the CPU to be tested; According to the UPI first bandwidth link state, it is determined that the CPU to be tested is in a full bandwidth operation state.

4. The method according to claim 1, characterized in that: The performing of the injection error test on the CPU to be tested and controlling at least one bandwidth channel in the UPI bandwidth link of the CPU to be tested to be disabled includes: Sending the injection error test instruction to the server; According to the injection error test instruction, at least one bandwidth channel in the UPI bandwidth link is controlled to be disabled; wherein controlling the at least one bandwidth channel to be disabled includes adjusting the bandwidth channel value to a preset disconnection value.

5. A device for testing UPI bandwidth reduction, characterized in that: An error injection device for connecting to a server, wherein the server supports multiple CPUs, and the device comprises: A first acquisition module, configured to acquire UPI topology information according to a first instruction, wherein the UPI topology information includes an interconnection state between CPUs; A second acquisition module is used to determine the CPU to be tested based on the interconnection state between the CPUs, and obtain the UPI first bandwidth link state of the CPU to be tested according to the second instruction; An injection error test module is used to perform an injection error test on the CPU to be tested, and control at least one bandwidth channel in the UPI bandwidth link of the CPU to be tested to be disabled; A prompt log module is used to check whether a prompt log is triggered, wherein the prompt log is used to report that the CPU to be tested has UPI bandwidth reduction; the prompt log module includes: a receiving submodule, receiving monitoring information sent by the baseboard management controller BMC of the server; a prompt log submodule, used to check whether a UPI bandwidth reduction prompt log of the CPU to be tested appears in the monitoring information; wherein the monitoring information is used to reflect the performance status of multiple CPUs of the server; a sending submodule, used to send the prompt log to the operation and maintenance personnel when confirming that a prompt log of UPI bandwidth reduction appears in the monitoring information; a third acquisition module, configured to acquire, according to the second instruction, a UPI second bandwidth link state of the CPU to be tested, wherein the UPI second bandwidth link state is a state after at least one bandwidth channel in the UPI bandwidth link is disabled, record the UPI second bandwidth link state of the CPU to be tested, and determine, according to the UPI second bandwidth link state, that the CPU to be tested is in a non-full bandwidth operation state; A matching module, used for matching the recorded UPI second bandwidth link state of the CPU to be tested with the UPI bandwidth reduction prompt log of the CPU to be tested to obtain a matching result; The judging module is used to judge whether the UPI bandwidth reduction test is successful according to the matching result.

6. A communication device, characterized in that: An error injection device applied to a connection server comprises: a transceiver, a memory, a processor, and a program stored in the memory and executable on the processor; The processor is used to read the program in the memory to implement the steps in the method for testing UPI bandwidth reduction as described in any one of claims 1-4.

7. A readable storage medium for storing a program, characterized in that: When the program is executed by a processor, the steps in the method for testing UPI bandwidth reduction as described in any one of claims 1 to 4 are implemented.