Power supply detection method, device, electronic equipment and storage medium

By pressurizing the server power consumption and increasing the output voltage of the power supply, and detecting the performance of the power supply based on the output power, the problem of difficulty and early detection of the power supply aging in the existing technology is solved, and the reliability of the power supply is improved. and server stability.

CN114706721BActive Publication Date: 2024-12-20LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210257733.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-16
Publication Date
2024-12-20
Estimated Expiration
2042-03-16

AI Technical Summary

Technical Problem

The prior art is difficult to detect the performance of the power supply as early as possible during the server operation, resulting in the server being suddenly crashed when the power supply is aging, increasing the risk of failure.

Method used

By pressurizing the server power, the total power consumption is greater than the rated power of the power supply and the output voltage of the power supply is raised to increase its output power and perform performance detection based on the output power and rated power.

Benefits of technology

It realizes early detection of the performance problems of the power supply during the server operation, improves the reliability of the power supply, reduces the risk of server failure, and extends the uptime of the server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114706721B_ABST
    Figure CN114706721B_ABST
Patent Text Reader

Abstract

The power supply detection method provided in the present application can increase the power consumption of the server to ensure that the total power consumption of the server is greater than the rated power of the power supply under test, in order to realize the detection of the power supply under test during the operation of the server; and then increase the output voltage of the power supply under test to increase the output power of the power supply under test to the server, and to ensure the normal operation of the server, the output voltage of the power supply under test after the increase is not higher than the voltage of the server under normal working conditions; finally, based on the output power and rated power of the power supply under test, the performance of the power supply under test is tested.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of server power modules, and more specifically, to a power detection method, device, electronic device and storage medium. Background Art

[0002] The power supply unit plays an important role in the development of power modules. How to ensure that the power supply is in good operating condition has always been an important issue. In particular, the longer the power supply runs in the server, the greater the chance of aging. Whether it is the degradation of components or the aging of the power supply, it will greatly increase the risk of server crashes.

[0003] Therefore, how to detect the performance of the power supply as early as possible before the server crashes has become an urgent problem to be solved at this stage. Summary of the invention

[0004] In view of this, in order to solve the above problems, the present application provides a power detection method, device, electronic device and storage medium, and the technical solution is as follows:

[0005] On one hand, the present application provides a power supply detection method, the method comprising:

[0006] Pressurizing the power consumption of the server so that the total power consumption of the server is greater than the rated power of the power supply under test;

[0007] Raising the output voltage of the power supply under test to increase the output power of the power supply under test to the server, wherein the raised output voltage of the power supply under test is not higher than the voltage of the server under normal working state;

[0008] Based on the output power and rated power of the power supply under test, a performance test is performed on the power supply under test.

[0009] Preferably, the step of increasing the power consumption of the server includes:

[0010] Obtaining power consumption information of hardware components in the server;

[0011] The target hardware component is subjected to power consumption pressure based on the power consumption information of the hardware component.

[0012] Preferably, the step of raising the output voltage of the power supply under test comprises:

[0013] Obtaining a voltage raising step length corresponding to the power supply under test;

[0014] The output voltage of the power supply under test is increased according to the voltage increase step length.

[0015] Preferably, the step of obtaining the voltage raising step length corresponding to the power supply under test includes:

[0016] Obtaining operation information of the tested power supply;

[0017] Determine the voltage raising step length that matches the operation information.

[0018] Preferably, the method further comprises:

[0019] Output information representing the performance test result of the tested power supply.

[0020] Another aspect of the present application provides a power supply detection device, the device comprising:

[0021] A power consumption pressure module, used for increasing the power consumption of the server so that the total power consumption of the server is greater than the rated power of the power supply under test;

[0022] A voltage raising module, used for raising the output voltage of the power supply under test to increase the output power of the power supply under test to the server, wherein the raised output voltage of the power supply under test is not higher than the voltage of the server under normal working state;

[0023] The performance detection module is used to perform performance detection on the power supply under test based on the output power and rated power of the power supply under test.

[0024] Preferably, the power consumption increasing module increases the power consumption of the server, including:

[0025] The power consumption information of the hardware components in the server is obtained; and the power consumption of the target hardware components is increased based on the power consumption information of the hardware components.

[0026] Preferably, the voltage raising module raises the output voltage of the power supply under test, including:

[0027] Obtaining a voltage raising step length corresponding to the power supply under test; and raising the output voltage of the power supply under test according to the voltage raising step length.

[0028] In another aspect, the present application provides an electronic device, the electronic device comprising:

[0029] A memory, used to store applications and data generated by the operation of the applications;

[0030] A processor is used to execute the application to achieve the following functions: increasing the power consumption of a server so that the total power consumption of the server is greater than the rated power of a power supply under test; raising the output voltage of the power supply under test to increase the output power of the power supply under test to the server, wherein the raised output voltage of the power supply under test is not higher than the voltage of the server under normal working conditions; and performing performance testing on the power supply under test based on the output power and rated power of the power supply under test.

[0031] Another aspect of the present application provides a storage medium, wherein the storage medium stores computer program code, and the computer program code implements the power supply detection method when executed.

[0032] Through the above technical scheme, the power supply detection method provided by the present application can pressurize the power consumption of the server to detect the power supply under test during the operation of the server, so as to ensure that the total power consumption of the server is greater than the rated power of the power supply under test; and then raise the output voltage of the power supply under test to increase the output power of the power supply under test to the server, and to ensure the normal operation of the server, the output voltage of the power supply under test after raising is not higher than the voltage of the server under normal working state; finally, based on the output power and rated power of the power supply under test, the power supply under test is tested for performance detection. Therefore, the present application can complete the performance detection of the power supply during the operation of the server, detect the problematic or aging power supply as early as possible before the server crashes, improve the reliability of the power supply, and effectively reduce the risk of server crashes. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0034] Figure 1 A hardware structure block diagram of an electronic device provided in an embodiment of the present application;

[0035] Figure 2 A method flow chart of a power supply detection method provided in an embodiment of the present application;

[0036] Figure 3 A schematic diagram of a scenario in which a power supply provided in an embodiment of the present application supplies power to a server;

[0037] Figure 4 A method flow chart of another power supply detection method provided in an embodiment of the present application;

[0038] Figure 5 A method flow chart of another power supply detection method provided in an embodiment of the present application;

[0039] Figure 6 A method flow chart of another power supply detection method provided in an embodiment of the present application;

[0040] Figure 7 A schematic diagram of the structure of a power supply detection device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0042] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0043] The power supply is also called a power supply unit (PSU), which is a pluggable module in a server chassis and is used to provide power to hardware components in the server such as CPU (Central Processing Unit), memory, BMC (Baseboard Management Controller), etc.

[0044] Generally speaking, after the power supply is installed and shipped to the terminal customer's room, it is impossible to know whether the power supply has performance degradation. Only after the server crashes or fails can it be determined that the power supply performance does not meet the instantaneous power consumption. Therefore, in terms of power supplies, it is extremely important to determine the power supply degradation and evaluate the overall power supply component loss. If the problematic or aging power supply can be detected as early as possible and replaced in advance, it is possible to avoid server crashes in the event of instantaneous power consumption.

[0045] Therefore, how to detect the performance of the power supply in the daily operation of the server has become an urgent problem to be solved. In this regard, the present application provides a power supply detection solution that can be applied to the performance check of the power supply on the server, which can identify the problem of the power supply early, greatly improve the reliability of the power supply, and reduce the occurrence of server crashes, making the power supply and the server more robust, and detecting the problematic or aging power supply as early as possible before the server crashes, and taking subsequent actions early to improve the reliability of the power supply and the server, and avoid the poor user experience of the end customers.

[0046] The present application provides a power supply detection method, which can be applied to electronic equipment, see Figure 1 The hardware structure block diagram of the electronic device shown in the figure may include: a processor 11, a communication interface 12, a memory 13 and a communication bus 14;

[0047] In the embodiment of the present application, the number of the processor 11 , the communication interface 12 , the memory 13 , and the communication bus 14 is at least one, and the processor 11 , the communication interface 12 , and the memory 13 communicate with each other through the communication bus 14 .

[0048] The processor 11 may be a central processing unit (CPU), a graphics processing unit (GPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0049] The memory 13 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.

[0050] The memory 13 stores the application and the data generated by the application, and the processor 11 executes the application to realize the following functions:

[0051] The power consumption of the server is increased so that the total power consumption of the server is greater than the rated power of the power supply under test; the output voltage of the power supply under test is increased to increase the output power of the power supply under test to the server. The output voltage of the power supply under test after the increase is not higher than the voltage of the server under normal working conditions; based on the output power and rated power of the power supply under test, the performance of the power supply under test is tested.

[0052] It should be noted that the refinement and expansion of the functions implemented by the processor executing the application program can be found in the description below.

[0053] The present application provides a power supply detection method. Figure 2 The method flow chart shown in the figure comprises the following steps:

[0054] Step S101: increasing the power consumption of the server so that the total power consumption of the server is greater than the rated power of the power supply under test.

[0055] See also Figure 3 The schematic diagram of the scenario in which the power supply is used to supply power to the server is shown. To ensure the reliability of the server, the server is generally configured with a double row (i.e., 2N, N ≥ 1) of power supplies to achieve power redundancy configuration. Generally speaking, the power supply is configured with 2 or 4 power supplies. For ease of understanding, the following description will take the example of a server configured with 2 power supplies.

[0056] Assume that the server is equipped with power supply 1 and power supply 2. When the server is running, power supply 1 and power supply 2 provide power to the hardware components started by the server. The total power consumption of the server is composed of the power consumption of each hardware component started by the server. Accordingly, the total power consumption of the server is satisfied by both power supply 1 and power supply 2.

[0057] Assuming that the hardware components started when the server is running include hardware component 1, hardware component 2, ..., and hardware component n, the total power consumption of the server is equal to the sum of the power consumption of the n hardware components, hardware component 1, hardware component 2, ..., and hardware component n. In addition, in the normal operation scenario, in order to ensure the operation of the server, power supply 1 and power supply 2 output power according to a certain ratio. Under ideal conditions without considering the loss, the sum of the output power of power supply 1 and power supply 2 is the same as the total power consumption of the server. For example, the total power consumption of the server when it is running is power consumption A, and the proportion of power output of power supply 1 and power supply 2 is a1 and b1 (a1+b1=1) respectively, then the output power of power supply 1 is A*a1, and the output power of power supply 2 is A*b1.

[0058] In an embodiment of the present application, a periodic power supply detection can be performed on the server, and the power supply detection scheme of the present application can be executed on a designated power supply in the server at a designated time interval, and the designated power supply is the power supply under test. The server is configured with two power supplies, namely, power supply 1 and power supply 2, for example. Assuming that a periodic power supply detection is performed on power supply 1 at a time interval t, after the server is turned on, a power supply detection is performed on power supply 1 every time the interval time t is reached. The power supply 1 is used as the power supply under test for the following description.

[0059] When performing each power supply test on the power supply 1, it is necessary to obtain the power consumption of each hardware component started by the server to determine the total power consumption of the server, and compare the total power consumption of the server with the rated power of the power supply 1. If the total power consumption of the server is greater than the rated power of the power supply 1, the subsequent steps are executed. Conversely, if the total power consumption of the server is not greater than the rated power of the power supply 1, the power consumption of the server is first increased to ensure that the total power consumption of the server is greater than the rated power of the power supply 1.

[0060] When the power consumption of the server is increased, since the hardware components started inside the server are fixed after the server is online, in order not to affect the normal operation of the server, preferably, in the embodiment of the present application, no new hardware components in the server are started for power consumption increase, but the target hardware components to be increased are selected from the multiple hardware components that have been started by the server, and then the power consumption of the target hardware components is increased to increase the power consumption of the target hardware components so that the target hardware components continuously output high power consumption. For example, when the target hardware component is a fan, the power consumption of the fan can be increased by increasing the fan speed, and when the target hardware component is a CPU, the power consumption of the CPU can be increased by increasing the CPU utilization rate.

[0061] While the target hardware components are being powered up, the power consumption of each hardware component (including the target hardware component) started by the server is obtained in real time to determine the total power consumption of the server in real time, and the total power consumption of the server is compared with the rated power of the power supply 1. If the total power consumption of the server is greater than the rated power of the power supply 1, the subsequent steps are executed; otherwise, if the total power consumption of the server is not greater than the rated power of the power supply 1, the target hardware components are continuously powered up, or new target hardware components are added for power consumption power boosting, which is not limited in the embodiments of the present application.

[0062] Step S102: Raising the output voltage of the tested power supply to increase the output power of the tested power supply to the server. The raised output voltage of the tested power supply is not higher than the voltage of the server in a normal working state.

[0063] In the embodiment of the present application, through step S101, the total power consumption of the server is determined to be greater than the rated power of the tested power supply after power consumption pressure, so as described above, the total power consumption of the server is met by the power supply configured for the server. Continuing to use the example of a server configured with two power supplies, namely power supply 1 and power supply 2, for explanation.

[0064] Assume that power supply 1 is used as the power supply under test, and the total power consumption of the server in step S101 is power consumption B, which is greater than the rated power of power supply 1. In the normal operation scenario, the proportion of power output of power supply 1 and power supply 2 is a1 and b1 respectively, and the output power of power supply 1 and power supply 2 is B*a1 and B*b1 respectively. In order to perform power supply detection on power supply 1, it is necessary to determine whether the output power of power supply 1 can reach its rated power. When the total power consumption of the server has been determined, it is necessary to increase the proportion of power output of power supply 1, and correspondingly, the proportion of power output of power supply 2 will be reduced.

[0065] In the scenario of power supply detection, the total output current of each power supply to the server is approximately stable when supplying power to the server. Therefore, the main factor affecting the output power of the power supply to the server is the output voltage of the power supply. In addition, the redundant configuration of the server power supply generally requires that the specifications of the power supplies configured for the server are the same. Based on this, raising the output voltage of the power supply under test can increase the proportion of power output of the power supply under test, and accordingly, the output power of the power supply under test is increased. Obviously, as the output voltage of the power supply under test is continuously raised, its output power to the server is also continuously increased.

[0066] Continuing to use power supply 1 as the power supply under test and the total power consumption of the server as power consumption B as an example for explanation, in order to perform power supply detection on power supply 1, the output voltage of power supply 1 is raised in the embodiment of the present application, so as to increase the proportion of power output of power supply 1 and reduce the proportion of power output of power supply 2. Assume that after raising the output voltage of power supply 1 once, the proportions of power output of power supply 1 and power supply 2 are a2 and b2 respectively (a2+b2=1, and a2>a1, b2<b1). At this time, the output power of power supply 1 changes from B*a1 before the output voltage is raised to B*a2 after the output voltage is raised, and the output power of power supply 2 changes from B*b1 before the output voltage is raised to B*b2 after the output voltage is raised.

[0067] In actual applications, in order to raise the output voltage of the power supply under test, it can be implemented in the form of script writing. For example, the script is written into the power supply under test, and when the power supply under test is tested, the power supply under test can actively raise its own output voltage after receiving the instruction issued by the electronic device (such as a server) to indicate the power supply detection. For example, the script can also be written into an electronic device (such as a server), and when the power supply under test is tested, each time the electronic device sends an instruction indicating the voltage raise to the power supply under test, the power supply under test raises its own output voltage once. Of course, each time the power supply under test performs the action of raising the output voltage, it executes the subsequent detection action of step S103.

[0068] It should also be noted that since the present application performs performance testing on the power supply during the operation of the server, in order to ensure that the power supply test of the power supply does not affect the operation of the server and cause the server to crash, the embodiment of the present application also requires that the output voltage of the tested power supply after being raised is not higher than the voltage of the server in normal working state, and the voltage of the server in normal working state can be a set value, and its value can be determined by the requirements of the server in different scenarios.

[0069] Step S103: performing performance testing on the power supply under test based on the output power and rated power of the power supply under test.

[0070] In the embodiment of the present application, before the output voltage of the power supply under test is raised to the voltage of the server under normal working condition, the power supply under test performs the output voltage raising action once, that is, performs the performance test of this step once, and the process of the performance test is as follows:

[0071] Each time the output voltage of the power supply under test is raised, the output power of the power supply under test is increased. At this time, the output power of the power supply under test can be obtained, and the output power can be further compared with the rated power of the power supply under test. If the output power of the power supply under test is greater than or equal to its rated power, it can be determined that the power supply under test can bear its rated power, so as to determine that the performance of the power supply can meet the use requirements of the server, and the power supply detection ends; if the output power of the power supply under test is less than its rated power, the output voltage of the power supply under test is raised for the next time until the output voltage of the power supply under test is raised to the voltage under normal working conditions of the server.

[0072] When the output voltage of the power supply under test is raised to the voltage of the server under normal working conditions, for the output power of the power supply under test, if the output power is greater than or equal to its rated power, it can be determined that the power supply under test can bear its rated power, thereby judging that the performance of the power supply can meet the usage requirements of the server, and the power supply detection is terminated. On the contrary, if the output power of the power supply under test is less than its rated power, it is determined that the power supply under test has performance problems and can no longer be used normally, and will cause problems under application conditions where instantaneous power consumption occurs, causing a risk of instability to the server, and the power supply detection is terminated.

[0073] On this basis, in order to promptly inform the user of the performance status of the power supply under test, the power detection scheme of the embodiment of the present application can further output information representing the performance detection results of the power supply under test. The information can be output in a specified manner, for example, in the form of an indicator light, and the performance detection results of the power supply under test can be indicated by changing the color of the indicator light.

[0074] It should be noted that in the embodiment of the present application, the output voltage of the power supply under test is raised multiple times before reaching the voltage of the server under normal working conditions. This is because the output voltage of the power supply under test is raised to the voltage of the server under normal working conditions at one time. Although the detection time is reduced, the fluctuation of the output voltage is large. In practical applications, the number of times the output voltage of the power supply under test is raised can be selected according to actual needs, and the embodiment of the present application does not limit this.

[0075] The power supply detection method provided in the embodiment of the present application performs performance detection of the power supply module on the server. Compared with the traditional solution in which the power supply is not detected on the server, it will help reduce the failure probability of the server when the instantaneous power consumption is affected, and can also improve the reliability and robustness of the power supply, so that the operating indicators of the power supply in the server are further improved. It can also improve the stability of the server and avoid the situation in which the power supply is protected due to instantaneous power consumption problems in the server, causing the server to shut down due to problems.

[0076] In addition, the solution of the present application is relatively simple and easy to implement, and can be widely used in power supplies and servers.

[0077] As an implementation method for increasing the power consumption of a server, the present application embodiment provides another power supply detection method, see Figure 4 The method flow chart shown in the figure comprises the following steps:

[0078] Step S201: Obtain power consumption information of hardware components in a server.

[0079] In an embodiment of the present application, since the total power consumption of the server is composed of the power consumption of each hardware component started when the server is running, the power consumption of each hardware component started by the server can be monitored to obtain the power consumption information of each hardware component. The power consumption information includes but is not limited to the voltage, current, power consumption, rated power, and operating performance (for example, for the CPU, it can be the usage rate, and for the fan, it can be the rotation speed) and other information when the hardware component is running.

[0080] Step S202: increasing the power consumption of the target hardware component based on the power consumption information of the hardware component, so that the total power consumption of the server is greater than the rated power of the power supply under test.

[0081] Since the hardware components started inside the server are fixed after it goes online, in order not to affect the normal operation of the server, the embodiment of the present application can select the target hardware components to be pressurized from the multiple hardware components that have been started by the server, and then pressurize the power consumption of the target hardware components, so that the total power consumption of the server is greater than the rated power of the power supply under test.

[0082] Specifically, based on the power consumption information of each hardware component in the server, the power consumption of each hardware component started by the server can be determined, so as to determine the total power consumption of the server. When the total power consumption of the server is not greater than the rated power of the power supply, the target hardware component to be pressurized can be determined in combination with the rated power and operating performance of each hardware component started by the server.

[0083] For each hardware component started by the server, the power consumption of the hardware component is compared with its rated power; if the power consumption of the hardware component is greater than or equal to its rated power, it is determined that the hardware component is not a target hardware component; if the power consumption of the hardware component is less than its rated power, the performance of the hardware component is further considered.

[0084] Since the performance requirements of a specified hardware component are different in different application scenarios, the performance of the hardware component is required to give priority to meeting the requirements of the application scenario. For example, the CPU usage has different thresholds in different application scenarios, and the CPU usage must not be higher than the threshold. In this regard, if the performance of the hardware component is close to or exceeds the requirements of the application scenario, it is determined that the hardware component is not a target hardware component. Otherwise, the hardware component can be used as a target hardware component.

[0085] It should be noted that in some application scenarios, different hardware components may be configured as the priority of the target hardware component, and therefore a hardware component with a higher priority may be preferentially selected as the target hardware component, which is not limited in the embodiments of the present application.

[0086] Step S203: raising the output voltage of the tested power supply to improve the output power of the tested power supply to the server. The raised output voltage of the tested power supply is not higher than the voltage of the server in a normal working state.

[0087] Step S204: performing performance testing on the power supply under test based on the output power and rated power of the power supply under test.

[0088] The power detection method provided in the embodiment of the present application increases the power consumption of the target hardware components based on the power consumption information of the hardware components in the server, so as to achieve that the total power consumption of the server is greater than the rated power of the power supply under test; then the output voltage of the power supply under test is raised to increase the output power of the power supply under test to the server; finally, based on the output power and rated power of the power supply under test, the performance of the power supply under test is tested. Based on the present invention, the hardware components in the server can be intelligently selected to increase the power consumption of the server, so as to ensure that the server runs at the optimal performance.

[0089] As an implementation method of raising the output voltage of the power supply under test, the present application embodiment provides another power supply detection method, see Figure 5 The method flow chart shown in the figure comprises the following steps:

[0090] Step S301: increasing the power consumption of the server so that the total power consumption of the server is greater than the rated power of the power supply under test.

[0091] Step S302: Obtaining a voltage raising step length corresponding to the power supply under test.

[0092] For different application scenarios, the requirements for power supply detection of the power supply under test are different. For example, in some application scenarios, there are requirements for the detection time, which requires reducing the number of times the output voltage of the power supply under test is raised as much as possible, and the corresponding voltage raising step length is larger. For example, in some application scenarios, there are requirements for safety performance, which requires reducing the fluctuation of the output voltage as much as possible, and the corresponding voltage raising step length is smaller. Therefore, in the embodiment of the present application, different voltage raising step lengths can be configured for the power supply under test for different application scenarios.

[0093] Step S303: raising the output voltage of the tested power supply according to the voltage raising step length to improve the output power of the tested power supply to the server. The raised output voltage of the tested power supply is not higher than the voltage of the server in the normal working state.

[0094] For ease of understanding, we continue to use power supply 1 as the tested power supply and the total power consumption of the server as power consumption B as an example. In the normal operation scenario, the power output ratios of power supply 1 and power supply 2 are a1 and b1 respectively. In order to perform power supply detection on power supply 1, the output voltage of power supply 1 is raised multiple times, and it is required that the output voltage of power supply 1 after each increase is not higher than the voltage U of the server under normal working conditions.

[0095] Assume that the rated power of the power supply 1 is P, and the output voltage of the power supply 1 under normal operation is U1. Before the output voltage of the power supply 1 is raised to the voltage U, each time the output voltage of the power supply 1 is raised, the output power of the power supply 1 is obtained, and a performance test is performed on the power supply 1 based on the output power and the rated power of the power supply 1, until the performance test result of the power supply 1 is finally determined.

[0096] Assume that the rated power of power supply 1 is P. For the first output voltage increase of power supply 1, the output voltage of the tested power supply is increased from U1 to U2 (U2 = U1 + △U, U2 < U) with a voltage increase step size △U. At this time, the proportions of power output of power supply 1 and power supply 2 are a3 and b3 (a3 + b3 = 1, and a3 > a1, b3 < b1), respectively. Correspondingly, the output power of power supply 1 changes from B*a1 before the output voltage is increased to B*a3 after the output voltage is increased, and the output power of power supply 2 changes from B*b1 before the output voltage is increased to B*b3 after the output voltage is increased. In this scenario, the output power B*a3 of the power supply 1 is obtained, and the output power B*a3 is compared with the rated power P; if the output power B*a3 is greater than or equal to the rated power P, it is determined that the power supply 1 can bear its rated power, so as to determine that the performance of the power supply 1 can meet the usage requirements of the server; if the output power B*a3 is less than the rated power P, the output voltage of the power supply 1 is raised for a second time.

[0097] Continuing to assume that the output voltage of power supply 1 is raised for the second time, the output voltage of the tested power supply is raised from U2 to U3 (U3=U2+△U, U3<U) with a voltage raising step length △U. At this time, the proportions of power output of power supply 1 and power supply 2 are a4 and b4 respectively (a4+b4=1, and a4>a3, b4<b3). Accordingly, the output power of power supply 1 changes from B*a3 before the output voltage is raised to B*a4 after the output voltage is raised, and the output power of power supply 2 changes from B*b3 before the output voltage is raised to B*b4 after the output voltage is raised. In this scenario, the output power B*a4 of the power supply 1 is obtained, and the output power B*a4 is compared with the rated power P; if the output power B*a4 is greater than or equal to the rated power P, it is determined that the power supply 1 can bear its rated power, so as to determine that the performance of the power supply 1 can meet the usage requirements of the server; if the output power B*a4 is less than the rated power P, the output voltage of the power supply 1 is raised for the third time.

[0098] And so on, until after multiple output voltage increases, the output voltage of the power supply 1 is raised to U. If the output power of the power supply 1 obtained at this time is greater than or equal to the rated power P, it is determined that the power supply 1 can bear its rated power, thereby judging that the performance of the power supply 1 can meet the usage requirements of the server. On the contrary, if the output power of the power supply 1 obtained at this time is less than the rated power P, it is determined that the power supply 1 cannot bear its rated power, thereby judging that the power supply 1 has performance problems and can no longer be used normally, and will cause problems under application conditions where instantaneous power consumption occurs, posing a risk of instability to the server.

[0099] Step S304: performing performance testing on the power supply under test based on the output power and rated power of the power supply under test.

[0100] The power supply detection method provided in the embodiment of the present application can increase the power consumption of the server to achieve that the total power consumption of the server is greater than the rated power of the power supply under test, and then increase the output voltage of the power supply under test with the voltage increase step corresponding to the power supply under test to increase the output power of the power supply under test; finally, based on the output power and rated power of the power supply under test, the performance of the power supply under test is tested. Based on the present invention, the output voltage of the power supply under test can be increased with a voltage increase step that matches the power supply under test, which can ensure the adaptability of the power supply detection and the power supply under test.

[0101] As an implementation method for obtaining the voltage raising step length corresponding to the power supply under test, the embodiment of the present application provides another power supply detection method, see Figure 6 The method flow chart shown in the figure comprises the following steps:

[0102] Step S401: increasing the power consumption of the server so that the total power consumption of the server is greater than the rated power of the power supply under test.

[0103] Step S402: Obtaining operation information of the power supply under test.

[0104] In the embodiment of the present application, for the power supply under test, before raising its output voltage, its operating information at that time can be obtained, and the operating information includes but is not limited to information such as current, voltage, output power, and operating time.

[0105] Step S403: Determine a voltage raising step length that matches the operation information.

[0106] In the embodiment of the present application, the operating information of the power supply under test can be considered and matched with the operating information of the power supply that has completed power detection before the output voltage is raised, so as to determine the voltage raising step length of the power supply under test.

[0107] Assume that there are m power supplies that have completed power supply detection, namely power supply 1, power supply 2, ..., power supply m, and obtain their respective operation logs, which record the operation information of the power supply before the output voltage is raised, the number of times the output voltage of the power supply is raised, the target voltage to which the output voltage is raised when the power supply detection is completed, and other information.

[0108] For any one of power supply 1, power supply 2, ..., power supply m, the operating information of the power supply is compared with the operating information of the power supply under test to determine the similarity between the power supply and the power supply under test. The determination of the similarity can be achieved through existing implementation schemes, which will not be described in detail in this application. Thus, a power supply with the highest similarity to the power supply under test (hereinafter referred to as the target power supply) can be determined from power supply 1, power supply 2, ..., power supply m.

[0109] Based on the number of times the target power supply is raised in the operation log and the target voltage, the voltage raising step length of the power supply under test is determined. For example, the voltage raising step length can be a fixed value. Specifically, the voltage difference between the target voltage and the voltage in the operation information of the power supply under test can be calculated first, and then the ratio of the voltage difference to the number of times of raising can be used as the voltage raising step length. For example, the voltage raising step length can also be a non-fixed value. Specifically, based on the voltage, target voltage and number of times of raising in the operation information of the power supply under test, a voltage raising step length that changes from large to small can be set, that is, the output voltage of the power supply under test is first raised with a larger voltage raising step length, so as to save detection time, and then the output voltage of the power supply under test is raised with a smaller voltage raising step length, so as to reduce the fluctuation of the output voltage. The specific voltage raising step length can be set according to the specific application scenario, and this application does not limit this.

[0110] Step S404: raising the output voltage of the tested power supply according to the voltage raising step length to improve the output power of the tested power supply to the server. The raised output voltage of the tested power supply is not higher than the voltage of the server in the normal working state.

[0111] Step S405: Performing performance testing on the power supply under test based on the output power and rated power of the power supply under test.

[0112] The power supply detection method provided in the embodiment of the present application can increase the power consumption of the server to achieve that the total power consumption of the server is greater than the rated power of the power supply under test, and then increase the output voltage of the power supply under test with a voltage increase step length that matches the operating information of the power supply under test to increase the output power of the power supply under test; finally, based on the output power and rated power of the power supply under test, the power supply under test is subjected to performance detection. Based on the present invention, it is possible to determine the voltage increase step length that best matches the power supply under test, and use this voltage increase step length to specifically increase the output voltage of the power supply under test, thereby improving the timeliness and stability of power supply detection.

[0113] Corresponding to the above power detection method, the present application also discloses a power detection device, such as Figure 7 As shown, the display device includes:

[0114] The power consumption pressure module 10 is used to pressure the power consumption of the server so that the total power consumption of the server is greater than the rated power of the power supply under test;

[0115] The voltage raising module 20 is used to raise the output voltage of the power supply under test to increase the output power of the power supply under test to the server. The output voltage of the power supply under test after raising is not higher than the voltage of the server under normal working state.

[0116] The performance detection module 30 is used to perform performance detection on the power supply under test based on the output power and rated power of the power supply under test.

[0117] In another embodiment of the power supply detection device disclosed in the present application, the power consumption pressure module 10 pressures the power consumption of the server, including:

[0118] The power consumption information of the hardware components in the server is obtained; and the power consumption of the target hardware components is increased based on the power consumption information of the hardware components.

[0119] In another embodiment of the power detection device disclosed in the present application, the voltage raising module 20 raises the output voltage of the power supply under test, including:

[0120] Obtain a voltage increase step length corresponding to the power supply under test; and increase the output voltage of the power supply under test according to the voltage increase step length.

[0121] In another embodiment of the power detection device disclosed in the present application, the voltage raising module 20 obtains the voltage raising step length corresponding to the power supply under test, including:

[0122] Obtaining operating information of the power supply under test; and determining a voltage raising step length that matches the operating information.

[0123] In another embodiment of the power supply detection device disclosed in the present application, the performance detection module 30 is further used for:

[0124] Output information representing the performance test results of the power supply under test.

[0125] It should be noted that the detailed functions of each module in the embodiment of the present application can be found in the corresponding public part of the above-mentioned network switching method embodiment, and will not be repeated here.

[0126] Corresponding to the above power detection method, the present application also discloses a storage medium, which stores computer program code, and the power detection method is implemented when the computer program code is executed.

[0127] The above is a detailed introduction to a power supply detection method, device, electronic device and storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

[0128] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

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

[0130] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A power supply detection method, the method include: Pressurizing the power consumption of the server so that the total power consumption of the server is greater than the rated power of the power supply under test; Raising the output voltage of the power supply under test to increase the output power of the power supply under test to the server, wherein the raised output voltage of the power supply under test is not higher than the voltage of the server under normal working state; Based on the output power and rated power of the power supply under test, a performance test is performed on the power supply under test.

2. The method according to claim 1, wherein the power consumption of the server is increased. include: Obtaining power consumption information of hardware components in the server; The target hardware component is subjected to power consumption pressure based on the power consumption information of the hardware component.

3. The method according to claim 1, wherein the step of raising the output voltage of the power supply under test is: include: Obtaining a voltage raising step length corresponding to the power supply under test; The output voltage of the power supply under test is increased according to the voltage increase step length.

4. The method according to claim 3, wherein the step of obtaining the voltage raising step corresponding to the power supply under test is: include: Obtaining operation information of the tested power supply; Determine the voltage raising step length that matches the operation information.

5. The method according to claim 1, further comprising: include: Output information representing the performance test result of the tested power supply.

6. A power supply detection device, the device include: A power consumption pressure module, used for increasing the power consumption of the server so that the total power consumption of the server is greater than the rated power of the power supply under test; A voltage raising module, used for raising the output voltage of the power supply under test to increase the output power of the power supply under test to the server, wherein the raised output voltage of the power supply under test is not higher than the voltage of the server under normal working state; The performance detection module is used to perform performance detection on the power supply under test based on the output power and rated power of the power supply under test.

7. The device according to claim 6, wherein the power consumption pressure module pressures the power consumption of the server. include: Obtaining power consumption information of hardware components in the server; The target hardware component is subjected to power consumption pressure based on the power consumption information of the hardware component.

8. The device according to claim 6, wherein the voltage raising module raises the output voltage of the power supply under test, include: Obtaining a voltage raising step length corresponding to the power supply under test; and raising the output voltage of the power supply under test according to the voltage raising step length.

9. An electronic device, the electronic device include: A memory, used to store applications and data generated by the operation of the applications; A processor is used to execute the application to achieve the following functions: increasing the power consumption of a server so that the total power consumption of the server is greater than the rated power of a power supply under test; raising the output voltage of the power supply under test to increase the output power of the power supply under test to the server, wherein the raised output voltage of the power supply under test is not higher than the voltage of the server under normal working conditions; and performing performance testing on the power supply under test based on the output power and rated power of the power supply under test.

10. A storage medium storing computer program codes, wherein the computer program codes, when executed, implement the power supply detection method according to any one of claims 1 to 5.