Method and device for testing operation performance of server

By configuring the operation stage configuration information on the test equipment, monitoring and predicting server level information, and performing power control, the problem of low server performance testing efficiency is solved, and more comprehensive test coverage and stability guarantee is achieved.

CN118964157APending Publication Date: 2024-11-15INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411018175.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

In the prior art, server operation performance testing efficiency is low, especially during the BIOS testing stage, random bugs caused by abnormal power outages are difficult to reproduce, resulting in difficulty in quality control.

Method used

By configuring the configuration information corresponding to each operation stage of the server on the test device, monitoring the level information of the target server, predicting changes in the operation stage, and controlling the power outage based on the configuration information, the operation performance test in the random power outage scenario is achieved.

Benefits of technology

It improves the efficiency of server performance testing, and can more comprehensively cover the server's power-off test at each stage, enhances the accuracy and stability of the test, and reduces the testing cost and labor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118964157A_ABST
    Figure CN118964157A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a server operation performance test method and device, and the method comprises the steps: monitoring the level information of a target server connected with test equipment; under the condition that the target operation information is used for indicating that the operation stage of the current target server is changed into the target operation stage, performing target power-down control on a target power supply of the target server according to target configuration information corresponding to the target operation stage to obtain a target operation log of the target server; and according to the target operation log, testing the target operation performance of the target server in the target operation stage in the random power-down scene. Through the method and the device, the problem of relatively low test efficiency of the running performance of the server in the related technology is solved, and the effect of improving the test efficiency of the running performance of the server is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the computer field, and in particular, to a method and device for testing the operating performance of a server. Background Art

[0002] When facing the challenge of server quality control, especially in the BIOS testing phase, random bugs caused by abnormal power outages have become a problem that cannot be ignored. These bugs have brought a heavy burden to the quality control department due to their uncertainty and difficulty in reproducing. Therefore, the operation performance test of the server under the random power outage scenario is an important performance test before the server leaves the factory. The traditional testing method simulates power supply fluctuations and power-on and power-off cycles through a fatigue machine, and simulates power supply change scenarios of various loads by precisely controlling the power-on and power-off time. Although this method can simulate the power outage of server equipment during actual use to a certain extent, it cannot fully cover all stages of server startup and operation, especially in key stages such as Early VGA and POST. Summary of the invention

[0003] The embodiments of the present application provide a method and device for testing the operating performance of a server, so as to at least solve the problem of low efficiency in testing the operating performance of a server in the related art.

[0004] According to an embodiment of the present application, a method for testing the operating performance of a server is provided, which is applied to a testing device, wherein the testing device is used to connect to a server to be tested, and the testing device is configured with configuration information corresponding to each operating stage of multiple operating stages of the server to be tested, and the configuration information of the server to be tested is used to indicate a control requirement for power-off control of the power supply of the server to be tested in the corresponding operating stage, and the server to be tested is used to handle services of different business types in different operating stages, including:

[0005] Monitoring level information of a target server connected to the test device, wherein the level information is used to indicate a value of a target level signal outputted on a mainboard of the target server, and the target level signal is used to indicate a data transmission status between the mainboard and other components deployed in the target server except the mainboard;

[0006] Predicting target operation information of the target server according to the level information, wherein the target operation information is used to indicate a change in an operation phase of the target server;

[0007] In the case where the target operation information is used to indicate that the current operation stage of the target server has changed to the target operation stage, target power-off control is performed on the target power supply of the target server according to the target configuration information corresponding to the target operation stage to obtain a target operation log of the target server, wherein the target operation log is used to indicate the service handling status of the target server during the target power-off control process;

[0008] The target operation performance of the target server during the target operation phase in a random power failure scenario is tested according to the target operation log.

[0009] Optionally, performing target power-off control on a target power supply of the target server according to target configuration information corresponding to the target operation stage to obtain a target operation log of the target server includes:

[0010] Predicting a target power-off time and a target power-on time of the target server in the current test round according to the time parameter, wherein the target power-off time is before the target power-on time, and the time parameter is used to indicate the timing conditions that need to be met for performing power-off and power-on operations on the target server in the target operation phase;

[0011] Sending a first control instruction to the baseboard management controller of the target server at the target power-off time, and sending a second control instruction to the baseboard management controller at the target power-on time, wherein the first control instruction is used to instruct the baseboard management controller to control the target power supply to perform the power-off operation on the target server, and the second control instruction is used to instruct the baseboard management controller to control the target power supply to perform the power-on operation on the target server, and the target power-off control includes performing the power-off operation on the target server and performing the power-on operation on the target server after the power-off operation;

[0012] matching a target number of test rounds that have been executed in the target operation phase with a test round condition, wherein the target configuration information includes the time parameter and the test round condition;

[0013] When the target number meets the test round condition, a third control instruction is sent to the baseboard management controller, wherein the third control instruction is used to instruct the baseboard management controller to read the target operation log of the target server and send the target operation log to the test device.

[0014] Optionally, predicting a target power-off time and a target power-on time of the target server in the current test round according to the time parameter includes:

[0015] Randomly select a first target duration from a plurality of first durations, and randomly select a second target duration from a plurality of second durations, wherein the first duration is a time length during which the power-off operation is allowed to be delayed after entering the target operation phase in the same test round, and the second duration is a time length during which the power-on operation is allowed to be delayed after the power-off operation is performed in the same test round, and the time parameters include the plurality of first durations and the plurality of second durations;

[0016] The first target duration is increased by the start time of changing the operation phase of the target server in the current test round to the target operation phase, so as to obtain the initial execution time of the power-off operation in the current test round;

[0017] The initial execution time is adjusted using a target transmission delay to obtain the target power-off time, wherein the target transmission delay is used to indicate a delay in the test device sending the third control instruction to the baseboard management controller through an out-of-band transmission;

[0018] Adding the second target duration to the target power-off time to obtain a reference execution time of the power-on operation in the current test round;

[0019] The reference execution time is adjusted using the target transmission delay to obtain the target power-on time.

[0020] Optionally, the randomly selecting a first target duration from a plurality of first durations includes:

[0021] Obtain a first screening frequency in which each first duration is screened in a reference test round between the current test round;

[0022] Determine the first adjustment parameter corresponding to the first screening frequency of each first duration from the adjustment parameters of the screening frequencies and first durations having a corresponding relationship;

[0023] Using the first adjustment parameter to adjust the first weight parameter corresponding to the first duration to obtain a second weight parameter, wherein the first weight parameter is used to indicate the probability that the corresponding first duration is screened as the first target duration;

[0024] Randomly selecting the first target duration from a plurality of the first durations according to the second weight parameter;

[0025] The randomly selecting a second target duration from a plurality of second durations includes:

[0026] Obtain a second screening frequency in which each second duration is screened in a reference test round between the current test round;

[0027] Determine the second adjustment parameter corresponding to the second screening frequency of each second duration from the adjustment parameters of the screening frequencies and the second durations having a corresponding relationship;

[0028] Using the second adjustment parameter to adjust the third weight parameter of the corresponding second duration to obtain a fourth weight parameter, wherein the third weight parameter is used to indicate the probability that the corresponding second duration is screened as the second target duration;

[0029] The second target duration is randomly selected from a plurality of second durations according to the fourth weight parameter.

[0030] Optionally, predicting target operation information of the target server according to the level information includes:

[0031] Matching a target level value at a current moment with a reference level value before the current moment, wherein the level information includes the target level value and the reference level value;

[0032] When the target register value and the reference register value do not match each other, the target operation stage corresponding to the target register value is determined from the register values ​​and operation stages having a corresponding relationship, wherein the level information includes the target operation state after the target server is changed.

[0033] Optionally, the testing, according to the target operation log, the target operation performance of the target server during the target operation phase in a random power failure scenario includes:

[0034] Filtering target log data corresponding to the target operation stage from the target operation log;

[0035] The target operation performance of the target operation phase of the target server in a random power failure scenario is determined according to the target log data.

[0036] Optionally, determining, according to the target log data, a target operating performance of the target server in the target operating phase in a random power failure scenario includes:

[0037] When the target operation phase is a display startup phase and the target log data indicates that the display startup is completed, determining that the target operation performance of the target server in the display startup phase meets the target performance condition;

[0038] When the target operation stage is a power-on self-test stage and the target log data indicates that the power-on self-test is completed, determining that the target operation performance of the target server in the power-on self-test stage meets the target performance condition;

[0039] When the target operation stage is the operating system operation stage and the target log data indicates that all event execution operations of the operating system are successful, it is determined that the target operation performance of the target server in the operating system operation stage meets the target performance condition.

[0040] According to another embodiment of the present application, a server operation performance testing device is provided, which is applied to a testing device, wherein the testing device is used to connect to a server to be tested, and the testing device is configured with configuration information corresponding to each of multiple operation stages of the server to be tested, and the configuration information of the server to be tested is used to indicate a control requirement for power-off control of the power supply of the server to be tested in the corresponding operation stage, and the server to be tested is used to handle services of different business types in different operation stages, and the device includes:

[0041] A monitoring module, used to monitor the level information of the target server connected to the test device, wherein the level information is used to indicate the value of the target level signal output on the mainboard of the target server, and the target level signal is used to indicate the data transmission status between the mainboard and other components deployed in the target server except the mainboard;

[0042] A prediction module, used to predict target operation information of the target server according to the level information, wherein the target operation information is used to indicate the change of the operation stage of the target server;

[0043] a control module, configured to, when the target operation information indicates that the current operation stage of the target server has changed to the target operation stage, perform target power-off control on the target power supply of the target server according to the target configuration information corresponding to the target operation stage, and obtain a target operation log of the target server, wherein the target operation log is used to indicate the business handling status of the target server during the target power-off control process;

[0044] A testing module is used to test the target operation performance of the target server in the target operation phase under a random power failure scenario according to the target operation log.

[0045] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

[0046] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0047] Through the present application, configuration information corresponding to each operating stage of the server to be tested is configured on the test device, and then the test device can perform power-off control on the power control demand of the server to be tested according to the corresponding operating stage indicated by the corresponding configuration information, and then the test device monitors the level information of the target server, thereby predicting the change of the operating stage of the target server according to the level information, and when the prediction result is that the operating stage of the target server changes to the target operating stage, the target power supply of the target server is controlled by the target configuration information corresponding to the target operating stage, thereby realizing the prediction of the operating node process of the target server by monitoring the level information of the target server, and performing target power-off control according to the power-off control demand of the server in the corresponding target operating stage, and realizing the testing of the operating performance of the server in different operating stages under random power-off scenarios, which can solve the problem of low efficiency in testing the operating performance of the server in the related technology and achieve the effect of improving the testing efficiency of the operating performance of the server. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 It is a hardware structure block diagram of a server device of a method for testing server operation performance in an embodiment of the present application;

[0049] Figure 2 is a flow chart of a method for testing server operating performance according to an embodiment of the present application;

[0050] Figure 3 is a schematic diagram of a test system according to an embodiment of the present application;

[0051] Figure 4 is an optional performance test flow chart according to an embodiment of the present application;

[0052] Figure 5 It is a structural block diagram of a server operating performance testing device according to an embodiment of the present application. DETAILED DESCRIPTION

[0053] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0054] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0055] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a server device of a method for testing server operation performance according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0056] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the test method for the running performance of the server in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0057] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0058] In this embodiment, a method for testing the performance of a server is provided. Figure 2The present invention is a flow chart of a method for testing the operating performance of a server according to an embodiment of the present application, which is applied to a testing device, wherein the testing device is used to connect to a server to be tested, and the testing device is configured with configuration information corresponding to each operating stage of multiple operating stages of the server to be tested, and the configuration information of the server to be tested is used to indicate the control requirements for power-off control of the power supply of the server to be tested in the corresponding operating stage, and the server to be tested is used to handle different types of business in different operating stages, such as Figure 2 As shown, the process includes the following steps:

[0059] Step S202, monitoring the level information of the target server connected to the test device, wherein the level information is used to indicate the value of the target level signal output on the mainboard of the target server, and the target level signal is used to indicate the data transmission status between the mainboard and other components deployed in the target server except the mainboard;

[0060] Step S204, predicting target operation information of the target server according to the level information, wherein the target operation information is used to indicate a change in an operation stage of the target server;

[0061] Step S206, when the target operation information is used to indicate that the current operation stage of the target server has changed to the target operation stage, target power-off control is performed on the target power supply of the target server according to the target configuration information corresponding to the target operation stage, and a target operation log of the target server is obtained, wherein the target operation log is used to indicate the service handling status of the target server during the target power-off control process;

[0062] Step S208: testing the target operation performance of the target server in the target operation phase under a random power failure scenario according to the target operation log.

[0063] Through the above steps, configuration information corresponding to each operating stage of the server to be tested is configured on the test device, and then the test device can perform power-off control on the power control demand of the server to be tested according to the corresponding operating stage indicated by the corresponding configuration information, and then the test device monitors the level information of the target server, thereby predicting the change of the operating stage of the target server according to the level information, and when the prediction result is that the operating stage of the target server changes to the target operating stage, the target power supply of the target server is controlled by the target configuration information corresponding to the target operating stage, thereby realizing the prediction of the operating node process of the target server by monitoring the level information of the target server, and performing target power-off control according to the power-off control demand of the server in the corresponding target operating stage, and realizing the testing of the operating performance of the server in different operating stages under random power-off scenarios, which can solve the problem of low efficiency in testing the operating performance of the server in the related technology and achieve the effect of improving the testing efficiency of the operating performance of the server.

[0064] Optionally, in an embodiment of the present application, the test device can establish a connection relationship with the server to be tested through, but not limited to, a cable connection or a remote connection. When connected through a cable, the test device to be tested can be connected to the server through a test line, so that the tester can use the test device to perform tests locally on the server; when the test device and the server are connected through a remote connection, the test device can be connected to the baseboard management controller deployed in the server to be tested through an out-of-band connection, and control the baseboard management controller to power off the power supply by sending a remote out-of-band command to the baseboard management controller. In this embodiment, the test device can be connected to multiple servers to be tested at the same time through an out-of-band connection, thereby realizing remote parallel testing of multiple servers to be tested and improving the testing efficiency of the server.

[0065] Optionally, in an embodiment of the present application, the configuration information may include, but is not limited to, information indicating execution time conditions that need to be met for performing a power-off operation on the server in a corresponding operating stage, information on execution time conditions that need to be met for performing a power-on operation on the server in a corresponding operating stage, and test rounds for performing random power-off operations (first performing a power-off operation and then re-performing a power-on operation after the server is completely powered off) in the corresponding operating stage, etc. This solution does not limit this.

[0066] Optionally, in an embodiment of the present application, the running stage may include but is not limited to an Early VGA (Video Graphics Array) stage, a POST stage, an operating system running stage, etc., and this solution does not limit this.

[0067] In the embodiment provided in the above step S202, the level information may include, but is not limited to, the level value on the GPIO (General-purpose input / output) pin of the server mainboard. The test equipment may, but is not limited to, capture the register value stored in the server register through the remote out-of-band command of the baseboard management controller. The register value is that the BMC (baseboard management controller) establishes a connection with the GPIO through the IPMI (Intelligent Platform Management Interface) protocol, thereby realizing real-time monitoring of the GPIO status. When the server undergoes different operating state transitions, the BMC can accurately capture the level changes of the GPIO and map these changes to the corresponding register values.

[0068] In the embodiment provided in the above step S204, the target operation information may include, but is not limited to, the target operation stage to which the target server will change, and the target time when the target server switches to the target operation stage. In this embodiment, the target operation information of the target server may be predicted according to the level information by taking the reference level values ​​of the target server at multiple moments in a reference time period before the current moment, constructing a level change curve according to the multiple reference level values, and predicting the candidate level values ​​at each moment in the future time period according to the level change trend recorded in the level change curve, and then filtering out a first level value from the candidate level values, wherein the first level value is a level value in which the level difference between the candidate level value and the second level value is greater than the target threshold, and the second level value is a level value when entering the initial operation stage, and the initial operation stage is the operation stage of the target server before the current moment; and then after filtering out the first level value, the target operation stage corresponding to the first level value may be determined from the level values ​​and operation stages having a corresponding relationship, and the time corresponding to the first level value may be determined as the target time. In the above implementation, a level change curve is constructed by using multiple reference level values ​​of the server mainboard in a reference time period between the current moment, thereby realizing the prediction of the level signal change trend of the server mainboard, and then the candidate level values ​​of the server mainboard at each moment in the future time period can be predicted according to the level signal change trend, that is, the level change of the server mainboard in the future time period can be predicted according to the historical level change situation, thereby realizing the prediction of the operation stage change that will occur in the server according to the level change situation of the server mainboard in the historical event segment, so that the test equipment can perform the test operation of the target operation stage to be switched in advance, or can also send control instructions to the test equipment in advance according to the out-of-band communication delay between the test equipment and the baseboard management controller, so as to control the random power-off state of the target server in the target operation stage, avoid the influence of the out-of-band communication delay on the random power-off performance of the test server, and improve the test efficiency.

[0069] Optionally, in an embodiment of the present application, the target operation information may be the target operation stage after the target server is switched. The test device detects the GPIO signal value (i.e., level information) of the server mainboard stored in the register, and when the GPIO signal value changes, obtains the changed target GPIO signal value, and determines the target operation stage corresponding to the target GPIO signal value from the GPIO signal values ​​and operation stages with a corresponding relationship. This scheme does not limit this.

[0070] In the embodiment provided in the above step S206, the target power-off control may include, but is not limited to, a test round of performing a random power-off test on the target server, and an execution time of performing a power-off operation on the server in each test round of the random power-off test, and an execution time of performing a power-on operation on the server after the server is powered off. That is, in order to test the operating performance of the target server in the random power-off scenario of the target operating stage, it is necessary to perform multiple random power-off tests on the server in the target operating stage, and each time when the target server runs to the target operating stage, the server is powered off according to the power-off operation execution time of the corresponding test round, and the power-on operation is performed again on the server after the power-off reaches the power-on operation execution time, thereby completing a test round of a single random power-off test operation on the server, and after the server is powered on, the operating stage of the server is detected again, and after reaching the target operating stage, it is detected whether the test round of the random power-off test executed meets the test round requirement of the target operating stage, and if it does not meet the requirement, the random power-off test operation of the next test round is performed again.

[0071] In the embodiment provided in the above step S208, the target operation log records the business processing status of the target server after power failure and power-on again in the test round of the corresponding random power failure test, and then determines the operation performance corresponding to the result based on the business processing result after power-on again. This solution does not limit this.

[0072] As an optional embodiment, performing target power-off control on a target power supply of the target server according to target configuration information corresponding to the target operation stage to obtain a target operation log of the target server includes:

[0073] Predicting a target power-off time and a target power-on time of the target server in the current test round according to the time parameter, wherein the target power-off time is before the target power-on time, and the time parameter is used to indicate the timing conditions that need to be met for performing power-off and power-on operations on the target server in the target operation phase;

[0074] Sending a first control instruction to the baseboard management controller of the target server at the target power-off time, and sending a second control instruction to the baseboard management controller at the target power-on time, wherein the first control instruction is used to instruct the baseboard management controller to control the target power supply to perform the power-off operation on the target server, and the second control instruction is used to instruct the baseboard management controller to control the target power supply to perform the power-on operation on the target server, and the target power-off control includes performing the power-off operation on the target server and performing the power-on operation on the target server after the power-off operation;

[0075] matching a target number of test rounds that have been executed in the target operation phase with a test round condition, wherein the target configuration information includes the time parameter and the test round condition;

[0076] When the target number meets the test round condition, a third control instruction is sent to the baseboard management controller, wherein the third control instruction is used to instruct the baseboard management controller to read the target operation log of the target server and send the target operation log to the test device.

[0077] Optionally, in an embodiment of the present application, the time parameter may include but is not limited to a first time range and a second time range, wherein the first time range stores the delay time allowed for performing a power-off operation, and the second time range stores the delay time used for the power-on operation after the power-off operation is completed. Then, a first delay time can be randomly selected from the first time range, and the first delay time indicates the delay time for performing the power-off operation after entering the target operation phase, and then the time of the target operation phase is increased by the first delay time to obtain a target power-off time, and a second delay time is randomly selected from the second time range, and then the target power-off time is increased by the second delay time to obtain a target power-on time. This scheme does not limit this.

[0078] Optionally, in an embodiment of the present application, the test device may send the first control instruction and the second control instruction to the baseboard management controller of the target server by remote out-of-band sending through the remote out-of-band command function of the baseboard management controller.

[0079] Through the above content, by configuring the time parameters and test round conditions in the configuration information, the test equipment determines the execution time of each test round to perform power-off and power-on operations on the server by identifying the time parameters, thereby realizing the determination of the execution time of powering on or off operations on the server according to the test requirements of each operation stage, so that the random power-off test can cover all operation stages of the service area, and provide control of the execution rounds of the random power-off test by setting test round conditions, thereby realizing the testing of the operating performance of the target server in the target operation stage through multiple rounds of testing, avoiding the impact of a single accidental event on the test results.

[0080] As an optional embodiment, predicting the target power-off time and the target power-on time of the target server in the current test round according to the time parameter includes:

[0081] Randomly select a first target duration from a plurality of first durations, and randomly select a second target duration from a plurality of second durations, wherein the first duration is a time length during which the power-off operation is allowed to be delayed after entering the target operation phase in the same test round, and the second duration is a time length during which the power-on operation is allowed to be delayed after the power-off operation is performed in the same test round, and the time parameters include the plurality of first durations and the plurality of second durations;

[0082] The first target duration is increased by the start time of changing the operation phase of the target server in the current test round to the target operation phase, so as to obtain the initial execution time of the power-off operation in the current test round;

[0083] The initial execution time is adjusted using a target transmission delay to obtain the target power-off time, wherein the target transmission delay is used to indicate a delay in the test device sending the third control instruction to the baseboard management controller through an out-of-band transmission;

[0084] Adding the second target duration to the target power-off time to obtain a reference execution time of the power-on operation in the current test round;

[0085] The reference execution time is adjusted using the target transmission delay to obtain the target power-on time.

[0086] Optionally, in an embodiment of the present application, a screening weight is configured for each of the multiple first time durations, and during screening, the first target time duration can be screened out from the multiple first time durations according to the screening weight, wherein the screening weight is used to indicate the probability of the corresponding first time duration being screened as the first target time duration, and the screening weight can be set to the same value, that is, the probability of each first time duration being screened out is the same, or it can also be dynamically adjusted according to the screening results, that is, the screening weight of the corresponding first time duration is adjusted according to the frequency with which the corresponding first time duration is screened out in the test rounds that have been executed, that is, as the screening frequency increases, the screening weight of the corresponding first time duration will be reduced accordingly.

[0087] Optionally, in an embodiment of the present application, a screening weight is configured for each of the multiple second time lengths, and during screening, the second target time length can be screened out from the multiple second time lengths according to the screening weight, wherein the screening weight is used to indicate the probability of the corresponding second time length being screened as the second target time length, and the screening weight can be set to the same value, that is, the probability of each second time length being screened out is the same, or it can also be dynamically adjusted according to the screening results, that is, the screening weight of the corresponding second time length is adjusted according to the frequency of the corresponding second time length being screened out in the test rounds that have been executed, that is, as the screening frequency increases, the screening weight of the corresponding second time length will be reduced accordingly.

[0088] Through the above content, by setting a plurality of first durations for the power-off operation for indicating the length of time that the power-off operation is allowed to be delayed after entering the target operation stage, and setting a plurality of second durations for the power-on operation for indicating the length of time that the power-on operation is allowed to be delayed after the power-off operation is executed, and then randomly selecting the first target duration for the power-off operation and the second target duration for the power-on operation in each test round, the execution time of the power-off operation and the power-on operation executed in each test round changes dynamically, so that the random power-off test covers different moments of the target operation stage, thereby exposing as many problems as possible of the target server in the target operation stage, and improving the test efficiency of the target operation performance.

[0089] As an optional embodiment, randomly selecting a first target duration from a plurality of first durations includes:

[0090] Obtain a first screening frequency in which each first duration is screened in a reference test round between the current test round;

[0091] Determine the first adjustment parameter corresponding to the first screening frequency of each first duration from the adjustment parameters of the screening frequencies and first durations having a corresponding relationship;

[0092] Using the first adjustment parameter to adjust the first weight parameter corresponding to the first duration to obtain a second weight parameter, wherein the first weight parameter is used to indicate the probability that the corresponding first duration is screened as the first target duration;

[0093] Randomly selecting the first target duration from a plurality of the first durations according to the second weight parameter;

[0094] The randomly selecting a second target duration from a plurality of second durations includes:

[0095] Obtain a second screening frequency in which each second duration is screened in a reference test round between the current test round;

[0096] Determine the second adjustment parameter corresponding to the second screening frequency of each second duration from the adjustment parameters of the screening frequencies and the second durations having a corresponding relationship;

[0097] Using the second adjustment parameter to adjust the third weight parameter of the corresponding second duration to obtain a fourth weight parameter, wherein the third weight parameter is used to indicate the probability that the corresponding second duration is screened as the second target duration;

[0098] The second target duration is randomly selected from a plurality of second durations according to the fourth weight parameter.

[0099] Optionally, in an embodiment of the present application, there is a correlation between the screening frequency and the adjustment parameter of the first time length, that is, when the screening frequency is greater than the target threshold, the value of the adjustment parameter is copy, and there is a positive correlation between the screening frequency and the adjustment parameter of the first time length. At this time, as the screening frequency increases, the adjustment parameter of the first time length also increases. When the screening frequency is less than or equal to the target threshold, the value of the adjustment parameter is positive. At this time, there is a negative correlation between the screening frequency and the adjustment parameter of the second time, that is, as the screening frequency increases, the adjustment parameter of the first time length decreases.

[0100] Optionally, in an embodiment of the present application, there is a correlation between the screening frequency and the adjustment parameter of the second time length, that is, when the screening frequency is greater than a reference threshold, the value of the adjustment parameter is copied, and there is a positive correlation between the screening frequency and the adjustment parameter of the second time length. At this time, as the screening frequency increases, the adjustment parameter of the second time length also increases. When the screening frequency is less than or equal to the reference threshold, the value of the adjustment parameter is positive. At this time, there is a negative correlation between the screening frequency and the adjustment parameter of the second time, that is, as the screening frequency increases, the adjustment parameter of the second time length decreases.

[0101] Through the above content, by setting the correspondence between the screening frequency and the adjustment parameters of the first duration and the second duration, dynamic adjustment of the weight parameters according to the screening frequency of the duration is achieved, so that multiple first durations are screened out as much as possible during the test, and multiple second durations are screened out as much as possible, avoiding the impact of repeated use of the same operation execution time on the test results.

[0102] As an optional embodiment, predicting the target operation information of the target server according to the level information includes:

[0103] Matching a target level value at a current moment with a reference level value before the current moment, wherein the level information includes the target level value and the reference level value;

[0104] When the target register value and the reference register value do not match each other, the target operation stage corresponding to the target register value is determined from the register values ​​and operation stages having a corresponding relationship, wherein the level information includes the target operation state after the target server is changed.

[0105] Optionally, in the embodiment of the present application, the target level signal may be, but is not limited to, a GPIO signal on the server motherboard. At different stages of the server operation, the GPIO (General Purpose Input / Output) level on the motherboard will present specific high and low states. These states are closely related to the operating state of the server and can serve as an important basis for determining the current stage of the server.

[0106] Optionally, in the embodiment of the present application, the level value of the target level signal of the server will change in different operation stages. When the server is in the Early VGA stage transition, the register value will be set to 0001; when the server enters the POST stage transition, the register value becomes 0010; and when the server finally enters the OS stage transition, the register value becomes 0011. These changes in register values ​​correspond to the transitions of the server operation status one by one.

[0107] Through the above content, by monitoring the target level signal on the server mainboard, the operation stage of the server is predicted according to the change of the target level signal, thereby realizing accurate monitoring of the operation stage of the server.

[0108] As an optional embodiment, the testing, according to the target operation log, the target operation performance of the target server in the target operation phase under a random power failure scenario includes:

[0109] Filtering target log data corresponding to the target operation stage from the target operation log;

[0110] The target operation performance of the target operation phase of the target server in a random power failure scenario is determined according to the target log data.

[0111] Optionally, in an embodiment of the present application, the target log data is log data used to indicate the operating results of the server in the corresponding operating stage. For example, in the Early VGA stage, if the keyword "Early VGAProcessSuccess" appears in the log, it indicates that the stage is successfully completed. After entering the POST stage, we will look for the keyword "Post Process Success" in the log to confirm the success of this stage. In the OS running stage, we will collect the SEL log and the message and dmesg information under the OS, and determine the PASS or FAIL status of the power-off and power-on operation by checking whether there is error information. This process ensures that we can accurately and comprehensively evaluate the stability and reliability of the server at different stages.

[0112] Through the above content, in the process of executing the random power-off test, the power-off operation will affect the business of the server in the corresponding business stage, and then by obtaining the server's operation log, the log data representing the operation results of the server in the corresponding operation stage is filtered out, so as to predict the target operation performance of the server according to the operation results of the server in the random test operation scenario in the corresponding operation stage, thereby improving the accuracy and reliability of the predicted target operation performance.

[0113] As an optional embodiment, determining the target operating performance of the target operating stage of the target server in a random power failure scenario according to the target log data includes:

[0114] When the target operation phase is a display startup phase and the target log data indicates that the display startup is completed, determining that the target operation performance of the target server in the display startup phase meets the target performance condition;

[0115] When the target operation stage is a power-on self-test stage and the target log data indicates that the power-on self-test is completed, determining that the target operation performance of the target server in the power-on self-test stage meets the target performance condition;

[0116] When the target operation stage is the operating system operation stage and the target log data indicates that all event execution operations of the operating system are successful, it is determined that the target operation performance of the target server in the operating system operation stage meets the target performance condition.

[0117] The present application monitors the target level signals at different stages of the target server to realize the power-off and power-on test of each operation stage of the server, and more comprehensively covers the operation stage corresponding to the power-off and power-on test, thereby comprehensively ensuring the stable operation of the server. The traditional server power-off and power-on test method is often limited to the operating system level and cannot cover all stages of server startup and operation. This means that in actual operation, the server may encounter untested power fluctuation scenarios, which poses a potential risk of instability. In order to overcome this problem, the mechanism sets accurate power-off and power-on monitoring points at each stage of the server to ensure that the entire process from startup to operation can be effectively tested. By real-time monitoring and analyzing the AC status of the server at different stages (i.e., the level value of the target level signal on the server motherboard), this mechanism can accurately capture any potential power fluctuation problems. Whether in the Early VGA stage (i.e., the display startup stage), the POST (Power-On Self-Test, power-on self-test) stage or the operating system operation stage, once a power-off or power-on event occurs, the mechanism can respond quickly and record detailed log information. This information is extremely valuable for subsequent troubleshooting and problem location. In addition, the mechanism supports flexible test configuration and custom options. Users can adjust the time, frequency, and duration of the power-off and power-on tests according to actual needs to better simulate various power fluctuations that may be encountered in actual use. This flexibility enables the mechanism to adapt to the testing needs of servers of different sizes and types, greatly improving the applicability and practicality of the test. Figure 3 is a schematic diagram of a test system according to an embodiment of the present application, such as Figure 3As shown, configuration information is deployed on the test device, and users can adjust the time, frequency and duration of the power-off and power-on test according to actual needs, so as to better simulate various power fluctuations that may be encountered in actual use. This flexibility enables the mechanism to adapt to the testing needs of servers of different sizes and types, greatly improving the applicability and practicality of the test. In this application, the test device is based on the Linux system, and the register value of the server is captured by the remote out-of-band command of the BMC (Baseboard Management Controller) to determine the stage of the server. Combined with the random power-off operation of the server remotely controlled by the script, and then the log is captured and parsed, a mechanism for comprehensively monitoring the AC state of the server at different stages is realized. In the Linux system environment, the stable operation of the server is crucial for various enterprise-level applications. In order to ensure the reliability of the server in the face of power fluctuations, the present application provides a monitoring mechanism. The core of this mechanism lies in the remote out-of-band command function of the BMC (Baseboard Management Controller). As an important part of server hardware management, the BMC has the ability to communicate with the underlying hardware of the server. Through remote out-of-band commands, the BMC can capture the register values ​​of the server in real time, and these register values ​​reflect the current hardware status and operation stage of the server. By parsing the register values, the mechanism can accurately determine the current stage of the server, such as the startup stage, the operation stage, etc. This stage division is crucial for subsequent power-off tests because it allows us to perform targeted tests at different stages of the server's life cycle. Combined with the remote control function of the script (the script records the operation performance of the device in the corresponding operation stage in order to test the random power-off scenario, by identifying the configuration information, and then generating the operation logic of the BMC control instructions according to the configuration information), the mechanism can trigger random power-off operations at any stage of the server. This randomness simulates various power fluctuations that may occur in the actual environment, thereby more comprehensively testing the stability and reliability of the server. After the power-off operation, the mechanism will automatically capture the server's log information. These logs record in detail the state changes of the server before and after the power-off, possible error information, etc. By parsing and analyzing the logs, we can gain an in-depth understanding of the server's response to power fluctuations at different stages, as well as potential problems that may exist. This application implements a mechanism for comprehensively monitoring the AC status of the server at different stages by combining technical means such as BMC remote out-of-band commands, script remote control, and log capture and parsing. This mechanism not only improves the accuracy and comprehensiveness of server testing, but also provides a strong guarantee for the stable operation of the server.

[0118] Figure 4 is an optional performance test flow chart according to an embodiment of the present application, such as Figure 4 As shown, it includes at least the following contents:

[0119] By writing scripts and using the ipmitool tool, we can remotely control the server, enabling it to randomly power off and on within a specified time range (such as 40-60 seconds) (corresponding to the time parameters above). This method not only highly simulates the sudden power outage that the server may encounter in the actual operating environment, but also ensures full coverage of the stage. In addition, the script allows us to accurately control the number of test runs and automatically stop after completion, thereby improving the automation and efficiency of the test.

[0120] At different stages of server operation, the GPIO (General Purpose Input / Output) level on its mainboard will present specific high and low states. These states are closely related to the operating state of the server and can be used as an important basis for judging the current stage of the server. The present invention uses BMC (Baseboard Management Controller) to establish a connection with GPIO through IPMI (Intelligent Platform Management Interface) protocol, thereby realizing real-time monitoring of GPIO status.

[0121] During the operation of the server, especially at the moment of power on and off, the server will experience different operating state transitions. These state transitions include the Early VGA stage, the POST (Power-On Self-Test) stage, and the OS (Operating System) stage. At the moment of each stage transition, the GPIO level on the motherboard will change accordingly, showing a specific combination of high and low states.

[0122] In order to accurately capture these state changes and determine the stage the server is in, the present invention utilizes the remote management capability of the BMC. The BMC establishes a connection with the GPIO on the server motherboard through the IPMI protocol and monitors the state changes of the GPIO in real time. When the server undergoes different operating state transitions, the BMC can accurately capture the level changes of the GPIO and map these changes to the corresponding register values.

[0123] Specifically, when the server is in the Early VGA stage, the register value will be set to 0001; when the server enters the POST stage, the register value becomes 0010; and when the server finally enters the OS stage, the register value becomes 0011. These register value changes correspond to the server operation status transitions. By remotely capturing the server's register value through BMC, we can accurately determine the current stage of the server. For example, when the register value is 0001, we know that the server is in the Early VGA stage; when the register value is 0010, the server is in the POST stage; and when the register value is 0011, it indicates that the server has successfully entered the OS stage. This monitoring mechanism based on GPIO level changes and register value mapping not only improves the accuracy of server status judgment, but also provides strong support for remote management and troubleshooting of the server. At the same time, the implementation of this mechanism also fully considers the security and stability requirements of the server, ensuring that the monitoring process will not cause any interference or impact on the normal operation of the server. During this process, we can accurately implement power-off, power-on, and power-off operations in the Early VGA stage, POST stage, and OS stage, thereby fully simulating the power fluctuations that the server may encounter in different operating stages.

[0124] Through the remote control function of the BMC, we can capture the serial port log of the server in real time. In the Early VGA stage, if the keyword "Early VGA Process Success" appears in the log, it means that the stage is successfully completed. After entering the POST stage, we will look for the keyword "Post Process Success" in the log to confirm the success of this stage. In the OS running stage, we will collect the SEL log and the message and dmesg information under the OS, and determine the PASS or FAIL status of the power-off and power-on operation by checking whether there is error information. This process ensures that we can accurately and comprehensively evaluate the stability and reliability of the server at different stages.

[0125] The test method disclosed in the above embodiment has at least the following advantages: based on the Linux system, the random power-off test of the intelligent network is innovatively realized by the remote control machine to accurately control the random power-off test of the intelligent network. At the same time, the register status of the server is obtained in real time by the close cooperation between the BMC (baseboard management controller) and the server, so as to accurately determine the current operation stage of the server. This fine-grained control provides strong support for simulating various complex scenarios in the actual operation of the server. During the test, we can efficiently obtain the operation log of the server through remote control with serial port tools. In-depth analysis of these logs can not only reveal the behavior pattern of the server when it encounters abnormal power failure at different stages, but also accurately locate the problems such as abnormal log printing that may be caused by it. The introduction of this monitoring mechanism greatly enhances our ability to control the stability of the server. The inefficient practice of relying on large batches of servers for manual judgment is completely abandoned. This transformation not only significantly reduces the labor and cost of the test work, but also improves the test efficiency to a new level. More importantly, the test method of the present invention can more comprehensively and meticulously cover the power-off and power-on test requirements of the server at various operation stages, thereby providing a more solid guarantee for ensuring the continuous and stable operation of the server.

[0126] In general, the present invention builds an efficient, accurate and economical test device by integrating remote control, intelligent power-off, register status monitoring and log analysis, etc., providing a new test solution for server manufacturers and data center operators.

[0127] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0128] In this embodiment, a device for testing the operating performance of a server is also provided, and the device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0129] Figure 5The present invention is a structural block diagram of a server operating performance testing device according to an embodiment of the present application, which is applied to a testing device, wherein the testing device is used to connect to a server to be tested, and the testing device is configured with configuration information corresponding to each operating stage of multiple operating stages of the server to be tested, and the configuration information of the server to be tested is used to indicate the control requirements for power-off control of the power supply of the server to be tested in the corresponding operating stage, and the server to be tested is used to handle different types of business in different operating stages, such as Figure 5 As shown, the device comprises:

[0130] A monitoring module, used to monitor the level information of the target server connected to the test device, wherein the level information is used to indicate the value of the target level signal output on the mainboard of the target server, and the target level signal is used to indicate the data transmission status between the mainboard and other components deployed in the target server except the mainboard;

[0131] A prediction module, used to predict target operation information of the target server according to the level information, wherein the target operation information is used to indicate the change of the operation stage of the target server;

[0132] a control module, configured to, when the target operation information indicates that the current operation stage of the target server has changed to the target operation stage, perform target power-off control on the target power supply of the target server according to the target configuration information corresponding to the target operation stage, and obtain a target operation log of the target server, wherein the target operation log is used to indicate the business handling status of the target server during the target power-off control process;

[0133] A testing module is used to test the target operation performance of the target server in the target operation phase under a random power failure scenario according to the target operation log.

[0134] Through the above content, configuration information corresponding to each operating stage of the server to be tested is configured on the test device, and then the test device can perform power-off control on the power control demand of the server to be tested according to the corresponding operating stage indicated by the corresponding configuration information, and then the test device monitors the level information of the target server, thereby predicting the change of the operating stage of the target server according to the level information, and when the prediction result is that the operating stage of the target server changes to the target operating stage, the target power supply of the target server is controlled by the target configuration information corresponding to the target operating stage, thereby realizing the prediction of the operating node process of the target server by monitoring the level information of the target server, and performing target power-off control according to the power-off control demand of the server in the corresponding target operating stage, and realizing the testing of the operating performance of the server in different operating stages under random power-off scenarios, which can solve the problem of low testing efficiency of server operating performance in related technologies and achieve the effect of improving the testing efficiency of server operating performance.

[0135] Optionally, the control module includes:

[0136] A prediction unit, configured to predict a target power-off time and a target power-on time of the target server in the current test round according to a time parameter, wherein the target power-off time is before the target power-on time, and the time parameter is used to indicate a timing condition that needs to be satisfied for performing a power-off operation and a power-on operation on the target server in the target operation phase;

[0137] A first sending unit is used to send a first control instruction to a baseboard management controller of the target server at the target power-off time, and send a second control instruction to the baseboard management controller at the target power-on time, wherein the first control instruction is used to instruct the baseboard management controller to control the target power supply to perform the power-off operation on the target server, and the second control instruction is used to instruct the baseboard management controller to control the target power supply to perform the power-on operation on the target server, and the target power-off control includes performing the power-off operation on the target server and performing the power-on operation on the target server after the power-off operation;

[0138] a matching unit, configured to match a target number of test rounds that have been executed for the target operation phase with a test round condition, wherein the target configuration information includes the time parameter and the test round condition;

[0139] The second sending unit is used to send a third control instruction to the baseboard management controller when the target number meets the test round condition, wherein the third control instruction is used to instruct the baseboard management controller to read the target operation log of the target server and send the target operation log to the test device.

[0140] Optionally, the prediction unit is used to:

[0141] Randomly select a first target duration from a plurality of first durations, and randomly select a second target duration from a plurality of second durations, wherein the first duration is a time length during which the power-off operation is allowed to be delayed after entering the target operation phase in the same test round, and the second duration is a time length during which the power-on operation is allowed to be delayed after the power-off operation is performed in the same test round, and the time parameters include the plurality of first durations and the plurality of second durations;

[0142] The first target duration is increased by the start time of changing the operation phase of the target server in the current test round to the target operation phase, so as to obtain the initial execution time of the power-off operation in the current test round;

[0143] The initial execution time is adjusted using a target transmission delay to obtain the target power-off time, wherein the target transmission delay is used to indicate a delay in the test device sending the third control instruction to the baseboard management controller through an out-of-band transmission;

[0144] Adding the second target duration to the target power-off time to obtain a reference execution time of the power-on operation in the current test round;

[0145] The reference execution time is adjusted using the target transmission delay to obtain the target power-on time.

[0146] Optionally, the prediction unit is used to:

[0147] Obtain a first screening frequency in which each first duration is screened in a reference test round between the current test round;

[0148] Determine the first adjustment parameter corresponding to the first screening frequency of each first duration from the adjustment parameters of the screening frequencies and first durations having a corresponding relationship;

[0149] Using the first adjustment parameter to adjust the first weight parameter corresponding to the first duration to obtain a second weight parameter, wherein the first weight parameter is used to indicate the probability that the corresponding first duration is screened as the first target duration;

[0150] Randomly selecting the first target duration from a plurality of the first durations according to the second weight parameter;

[0151] The randomly selecting a second target duration from a plurality of second durations includes:

[0152] Obtain a second screening frequency in which each second duration is screened in a reference test round between the current test round;

[0153] Determine the second adjustment parameter corresponding to the second screening frequency of each second duration from the adjustment parameters of the screening frequencies and the second durations having a corresponding relationship;

[0154] Using the second adjustment parameter to adjust the third weight parameter of the corresponding second duration to obtain a fourth weight parameter, wherein the third weight parameter is used to indicate the probability that the corresponding second duration is screened as the second target duration;

[0155] The second target duration is randomly selected from a plurality of second durations according to the fourth weight parameter.

[0156] Optionally, the prediction module includes:

[0157] a matching unit, configured to match a target level value at a current moment with a reference level value before the current moment, wherein the level information includes the target level value and the reference level value;

[0158] A determination unit is used to determine the target operation stage corresponding to the target register value from the register values ​​and operation stages with a corresponding relationship when the target register value and the reference register value do not match each other, wherein the level information includes the target operation state after the target server changes.

[0159] Optionally, the test module includes:

[0160] A screening unit, configured to screen out target log data corresponding to the target operation stage from the target operation log;

[0161] A determination unit is used to determine, according to the target log data, the target operation performance of the target server in the target operation phase under a random power failure scenario.

[0162] Optionally, the determining unit is used to:

[0163] When the target operation phase is a display startup phase and the target log data indicates that the display startup is completed, determining that the target operation performance of the target server in the display startup phase meets the target performance condition;

[0164] When the target operation stage is a power-on self-test stage and the target log data indicates that the power-on self-test is completed, determining that the target operation performance of the target server in the power-on self-test stage meets the target performance condition;

[0165] When the target operation stage is the operating system operation stage and the target log data indicates that all event execution operations of the operating system are successful, it is determined that the target operation performance of the target server in the operating system operation stage meets the target performance condition.

[0166] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0167] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0168] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0169] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0170] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0171] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0172] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0173] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any one of the above method embodiments.

[0174] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0175] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0176] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for testing server operating performance, characterized in that: Applied to a test device, the test device is used to connect to a server to be tested, the test device is configured with configuration information corresponding to each of multiple operation stages of the server to be tested, the configuration information of the server to be tested is used to indicate the control requirement of power-off control of the power supply of the server to be tested in the corresponding operation stage, and the server to be tested is used to handle services of different business types in different operation stages, and the method includes: Monitoring level information of a target server connected to the test device, wherein the level information is used to indicate a value of a target level signal outputted on a mainboard of the target server, and the target level signal is used to indicate a data transmission status between the mainboard and other components deployed in the target server except the mainboard; Predicting target operation information of the target server according to the level information, wherein the target operation information is used to indicate a change in an operation phase of the target server; In the case where the target operation information is used to indicate that the current operation stage of the target server has changed to the target operation stage, target power-off control is performed on the target power supply of the target server according to the target configuration information corresponding to the target operation stage to obtain a target operation log of the target server, wherein the target operation log is used to indicate the service handling status of the target server during the target power-off control process; The target operation performance of the target server during the target operation phase in a random power failure scenario is tested according to the target operation log.

2. The method according to claim 1, characterized in that The target power-off control of the target power supply of the target server is performed according to the target configuration information corresponding to the target operation stage to obtain the target operation log of the target server, including: Predicting a target power-off time and a target power-on time of the target server in the current test round according to the time parameter, wherein the target power-off time is before the target power-on time, and the time parameter is used to indicate the timing conditions that need to be met for performing power-off and power-on operations on the target server in the target operation phase; Sending a first control instruction to the baseboard management controller of the target server at the target power-off time, and sending a second control instruction to the baseboard management controller at the target power-on time, wherein the first control instruction is used to instruct the baseboard management controller to control the target power supply to perform the power-off operation on the target server, and the second control instruction is used to instruct the baseboard management controller to control the target power supply to perform the power-on operation on the target server, and the target power-off control includes performing the power-off operation on the target server and performing the power-on operation on the target server after the power-off operation; matching a target number of test rounds that have been executed in the target operation phase with a test round condition, wherein the target configuration information includes the time parameter and the test round condition; When the target number meets the test round condition, a third control instruction is sent to the baseboard management controller, wherein the third control instruction is used to instruct the baseboard management controller to read the target operation log of the target server and send the target operation log to the test device.

3. The method according to claim 2, characterized in that The predicting, according to the time parameter, the target power-off time and the target power-on time of the target server in the current test round includes: Randomly select a first target duration from a plurality of first durations, and randomly select a second target duration from a plurality of second durations, wherein the first duration is a time length during which the power-off operation is allowed to be delayed after entering the target operation phase in the same test round, and the second duration is a time length during which the power-on operation is allowed to be delayed after the power-off operation is performed in the same test round, and the time parameters include the plurality of first durations and the plurality of second durations; The first target duration is increased by the start time of changing the operation phase of the target server in the current test round to the target operation phase, so as to obtain the initial execution time of the power-off operation in the current test round; The initial execution time is adjusted using a target transmission delay to obtain the target power-off time, wherein the target transmission delay is used to indicate a delay in the test device sending the third control instruction to the baseboard management controller through an out-of-band transmission; Adding the second target duration to the target power-off time to obtain a reference execution time of the power-on operation in the current test round; The reference execution time is adjusted using the target transmission delay to obtain the target power-on time.

4. The method according to claim 3, characterized in that The randomly selecting a first target duration from a plurality of first durations includes: Obtain a first screening frequency in which each first duration is screened in a reference test round between the current test rounds; Determine the first adjustment parameter corresponding to the first screening frequency of each first duration from the adjustment parameters of the screening frequencies and first durations having a corresponding relationship; Using the first adjustment parameter to adjust the first weight parameter corresponding to the first duration to obtain a second weight parameter, wherein the first weight parameter is used to indicate the probability that the corresponding first duration is screened as the first target duration; Randomly selecting the first target duration from a plurality of the first durations according to the second weight parameter; The randomly selecting a second target duration from a plurality of second durations includes: Obtain a second screening frequency in which each second duration is screened in a reference test round between the current test round; Determine the second adjustment parameter corresponding to the second screening frequency of each second duration from the adjustment parameters of the screening frequencies and the second durations having a corresponding relationship; Using the second adjustment parameter to adjust the third weight parameter of the corresponding second duration to obtain a fourth weight parameter, wherein the third weight parameter is used to indicate the probability that the corresponding second duration is screened as the second target duration; The second target duration is randomly selected from a plurality of second durations according to the fourth weight parameter.

5. The method according to claim 1, characterized in that The predicting the target operation information of the target server according to the level information includes: Matching a target level value at a current moment with a reference level value before the current moment, wherein the level information includes the target level value and the reference level value; When the target register value and the reference register value do not match each other, the target operation stage corresponding to the target register value is determined from the register values ​​and operation stages having a corresponding relationship, wherein the level information includes the target operation state after the target server is changed.

6. The method according to claim 1, characterized in that The testing, according to the target operation log, the target operation performance of the target server during the target operation phase in a random power failure scenario includes: Filtering target log data corresponding to the target operation stage from the target operation log; The target operation performance of the target operation phase of the target server in a random power failure scenario is determined according to the target log data.

7. The method according to claim 6, characterized in that The determining, according to the target log data, the target operating performance of the target server in the target operating phase in a random power failure scenario includes: When the target operation phase is a display startup phase and the target log data indicates that the display startup is completed, determining that the target operation performance of the target server in the display startup phase meets the target performance condition; When the target operation stage is a power-on self-test stage and the target log data indicates that the power-on self-test is completed, determining that the target operation performance of the target server in the power-on self-test stage meets the target performance condition; When the target operation stage is the operating system operation stage and the target log data indicates that all event execution operations of the operating system are successful, it is determined that the target operation performance of the target server in the operating system operation stage meets the target performance condition.

8. A server operating performance testing device, characterized in that: Applied to a test device, the test device is used to connect to a server to be tested, the test device is configured with configuration information corresponding to each of multiple operation stages of the server to be tested, the configuration information of the server to be tested is used to indicate the control requirement of power-off control of the power supply of the server to be tested in the corresponding operation stage, and the server to be tested is used to handle services of different business types in different operation stages, and the device includes: A monitoring module, used to monitor the level information of the target server connected to the test device, wherein the level information is used to indicate the value of the target level signal output on the mainboard of the target server, and the target level signal is used to indicate the data transmission status between the mainboard and other components deployed in the target server except the mainboard; A prediction module, used to predict target operation information of the target server according to the level information, wherein the target operation information is used to indicate the change of the operation stage of the target server; a control module, configured to, when the target operation information indicates that the current operation stage of the target server has changed to the target operation stage, perform target power-off control on the target power supply of the target server according to the target configuration information corresponding to the target operation stage, and obtain a target operation log of the target server, wherein the target operation log is used to indicate the business handling status of the target server during the target power-off control process; A testing module is used to test the target operation performance of the target server in the target operation phase under a random power failure scenario according to the target operation log.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Test method, device and equipment for double-mainboard server and storage medium

    CN120429214A