CN114706721A - Power supply detection method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN114706721A
CN114706721A CN202210257733.8A CN202210257733A CN114706721A CN 114706721 A CN114706721 A CN 114706721A CN 202210257733 A CN202210257733 A CN 202210257733A CN 114706721 A CN114706721 A CN 114706721A
Authority
CN
China
Prior art keywords
power supply
power
server
voltage
tested
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210257733.8A
Other languages
Chinese (zh)
Inventor
何承叡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202210257733.8A priority Critical patent/CN114706721A/en
Publication of CN114706721A publication Critical patent/CN114706721A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/40Testing power supplies

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Power Sources (AREA)

Abstract

According to the power supply detection method, in order to realize the detection of the power supply to be detected in the operation process of the server, the power consumption of the server can be pressurized, and the total power consumption of the server is ensured to be larger than the rated power of the power supply to be detected; further, the output voltage of the power supply supplier to be tested is raised so as to improve the output power of the power supply supplier to be tested to the server, and in order to ensure the normal operation of the server, the raised output voltage of the power supply supplier to be tested is not higher than the voltage of the server in the normal working state; and finally, performing performance detection on the power supply to be detected based on the output power and the rated power of the power supply to be detected.

Description

Power supply detection method and device, electronic equipment and storage medium
Technical Field
The present application relates to the technical field of server power modules, and in particular, to a power detection method and apparatus, an electronic device, and a storage medium.
Background
The power supply (power supply unit) plays an important role in the development of power modules, and how to ensure the good operation state of the power supply is always an important issue, and especially, the longer the operation time in the server is, the greater the chance of aging of the power supply, and the more the risk of the server crash is raised regardless of the deterioration of components or the aging of the power supply.
Therefore, how to detect the performance of the power supply as early as possible before the server crashes becomes an urgent problem to be solved at the present stage.
Disclosure of Invention
In view of the above, in order to solve the above problems, the present application provides a power detection method, an apparatus, an electronic device, and a storage medium, and the technical solution is as follows:
one aspect of the present application provides a power detection method, including:
pressurizing the power consumption of a server so that the total power consumption of the server is larger than the rated power of a power supply to be tested;
the output voltage of the power supply to be tested is raised so as to improve the output power of the power supply to be tested to the server, and the raised output voltage of the power supply to be tested is not higher than the voltage of the server in a normal working state;
and performing performance detection on the power supply to be detected based on the output power and the rated power of the power supply to be detected.
Preferably, the power consumption pressurization for the server includes:
obtaining power consumption information of hardware components in the server;
power consumption pressurization is performed on the target hardware component based on the power consumption information of the hardware component.
Preferably, the raising the output voltage of the power supply to be tested includes:
obtaining a voltage lifting step length corresponding to the power supply to be detected;
and increasing the output voltage of the power supply to be detected according to the voltage increasing step.
Preferably, the obtaining a voltage increase step corresponding to the power supply to be tested includes:
obtaining operation information of the power supply to be tested;
and determining the voltage rise step length matched with the operation information.
Preferably, the method further comprises:
and outputting information representing the performance detection result of the power supply to be detected.
Another aspect of the present application provides a power detection apparatus, including:
the power consumption pressurizing module is used for pressurizing the power consumption of the server so as to enable the total power consumption of the server to be larger than the rated power of the power supply to be detected;
the voltage lifting module is used for lifting the output voltage of the power supply to be tested so as to improve the output power of the power supply to be tested to the server, and the lifted output voltage of the power supply to be tested is not higher than the voltage of the server in a normal working state;
and the performance detection module is used for detecting the performance of the power supply to be detected based on the output power and the rated power of the power supply to be detected.
Preferably, the power consumption pressurizing module pressurizes the power consumption of the server, and includes:
obtaining power consumption information of hardware components in the server; power consumption pressurization is performed on the target hardware component based on the power consumption information of the hardware component.
Preferably, the voltage raising module raises the output voltage of the power supply to be tested, and includes:
obtaining a voltage lifting step length corresponding to the power supply to be detected; and increasing the output voltage of the power supply to be detected according to the voltage increasing step.
Yet another aspect of the present application provides an electronic device, including:
the memory is used for storing an application program and data generated by the running of the application program;
a processor for executing the application to perform the functions of: pressurizing the power consumption of a server so that the total power consumption of the server is larger than the rated power of a power supply to be tested; the output voltage of the power supply to be detected is raised so as to improve the output power of the power supply to be detected to the server, and the raised output voltage of the power supply to be detected is not higher than the voltage of the server in a normal working state; and performing performance detection on the power supply to be detected based on the output power and the rated power of the power supply to be detected.
Yet another aspect of the present application provides a storage medium storing computer program code, which when executed implements the power detection method.
By the technical scheme, in order to realize the detection of the power supply to be detected in the running process of the server, the power consumption of the server can be pressurized, and the total power consumption of the server is ensured to be larger than the rated power of the power supply to be detected; further, the output voltage of the power supply supplier to be tested is raised so as to improve the output power of the power supply supplier to be tested to the server, and in order to ensure the normal operation of the server, the raised output voltage of the power supply supplier to be tested is not higher than the voltage of the server in the normal working state; and finally, performing performance detection on the power supply to be detected based on the output power and the rated power of the power supply to be detected. Therefore, the performance detection of the power supply can be completed in the operation process of the server, the power supply with problems or ageing is detected as early as possible before the server crashes, the reliability of the power supply is improved, and the risk of crash of the server is effectively reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a block diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure;
FIG. 2 is a flowchart of a method of power detection according to an embodiment of the present disclosure;
fig. 3 is a schematic view of a scenario in which a power supply supplies power to a server according to an embodiment of the present application;
FIG. 4 is a flowchart of another method for power detection according to an embodiment of the present disclosure;
FIG. 5 is a flowchart of another method for power detection according to an embodiment of the present disclosure;
FIG. 6 is a flowchart of another method for power detection according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a power detection apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
The Power Supply is also called a Power Supply Unit (PSU), which is a module that can be inserted into a server chassis and used to Supply Power to hardware components such as a CPU (Central Processing Unit), a memory, a BMC (Baseboard Management Controller), and the like in the server.
Generally speaking, after the power supply is loaded and shipped to a terminal client machine room, the performance of the power supply cannot be known whether the performance of the power supply is degraded or not, and the performance of the power supply cannot meet the use of instantaneous power consumption only by detecting a server crash or a fault. Therefore, in the power supply aspect, it is an extremely important thing to determine the rate of power supply back, evaluate the component loss condition of the whole power supply, and if the power supply with problems or aging is detected as early as possible and replaced in advance, the server down in the case of instantaneous power consumption can be avoided as much as possible.
Therefore, how to detect the performance of the power supply in the daily operation of the server becomes a problem to be solved urgently. Therefore, the power supply detection scheme can be applied to a server to perform performance check of a power supply, can determine the problem of the power supply as soon as possible, greatly improves the reliability of the power supply, and reduces the occurrence of crash of the server, so that the power supply and the server are more robust, the power supply with the problem or with aging is detected as soon as possible before the crash of the server, and subsequent actions are performed as soon as possible, so that the reliability of the power supply and the server is improved, and the poor user impression of a terminal client is avoided.
The present application provides a power supply detection method, which may be applied to an electronic device, and referring to a hardware structure block diagram of the electronic device shown in fig. 1, a hardware structure of the electronic device may include: a processor 11, a communication interface 12, a memory 13 and a communication bus 14;
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 complete mutual communication through the communication bus 14.
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 embodiments of the present application, etc.
The memory 13 may include a high-speed RAM memory, and may further include a non-volatile memory (non-volatile memory) or the like, for example, at least one disk memory.
The memory 13 stores applications and data generated by the applications, and the processor 11 executes the applications to implement the following functions:
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 to be tested; the output voltage of the power supply supplier to be tested is raised so as to improve the output power of the power supply supplier to be tested to the server, and the raised output voltage of the power supply supplier to be tested is not higher than the voltage of the server in a normal working state; and performing performance detection on the power supply to be detected based on the output power and the rated power of the power supply to be detected.
It should be noted that the processor performs the refinement and extension of the functions implemented by the application, as described below.
The embodiment of the present application provides a power detection method, referring to a method flowchart shown in fig. 2, the method includes the following steps:
step S101: and 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 to be tested.
See fig. 3 for a schematic diagram of a scenario in which a power supply supplies power to a server. In order to ensure the reliability of the server, the server is generally configured with two rows (i.e. 2N, N is greater than or equal to 1) of power supplies to implement the power redundancy configuration. Generally, 2 or 4 power supplies are configured, and for convenience of understanding, the server is configured with 2 power supplies as an example for illustration.
Assuming that the server is configured with the power supply 1 and the power supply 2, the power supply 1 and the power supply 2 supply power to the hardware components started by the server when the server operates. The total power consumption of the server is composed of the power consumption of each hardware component started by the server, and correspondingly, the total power consumption of the server is satisfied by the power supply 1 and the power supply 2.
Assuming that the hardware components started up by the server in runtime 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 consumptions of the n hardware components, hardware component 1, hardware component 2, … …, and hardware component n. In addition, in a normal operation scene, in order to ensure the operation of the server, the power supply 1 and the power supply 2 output power according to a certain proportion, and under an ideal condition without considering loss, the sum of the output power of the power supply 1 and the output power of the power supply 2 is the same as the total power consumption of the server. For example, the total power consumption of the server during operation is power consumption a, the power output ratios of the power supply 1 and the power supply 2 are a1 and b1(a1+ b1 is 1), respectively, the output power of the power supply 1 is a1, and the output power of the power supply 2 is a b 1.
In the embodiment of the application, the server may be subjected to periodic power detection, and the power detection scheme of the application is executed on a designated power supply in the server according to a designated time interval, where the designated power supply is the power supply to be detected. The server is configured with 2 power supplies, i.e. power supply 1 and power supply 2. If the power supply 1 is periodically detected at the time interval t, the power supply 1 is detected every time the interval t is reached after the server is powered on. The power supply 1 will be described as the power supply to be tested.
At each power detection of the power supply 1, the power consumption of each hardware component started by the server needs to be obtained to determine the total power consumption of the server, 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 larger 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 larger than the rated power of the power supply 1, the power consumption of the server is pressurized firstly, so as to ensure that the total power consumption of the server is larger than the rated power of the power supply 1.
When the server is pressurized in power consumption, because the hardware component started inside the server is 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, the hardware component in the server is not newly started for power consumption pressurization, but a target hardware component to be pressurized is selected from a plurality of hardware components started by the server, and then the power consumption pressurization is performed on the target hardware component, so that the power consumption of the target hardware component is increased, and the target hardware component continuously outputs high power consumption.
While the power consumption of the target hardware component is pressurized, 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, executing the subsequent steps, otherwise, if the total power consumption of the server is not greater than the rated power of the power supply 1, continuing to perform power consumption pressurization on the target hardware component, or adding a new target hardware component to perform power consumption pressurization, which is not limited in the embodiment of the present application.
Step S102: and the output voltage of the power supply to be tested is raised so as to improve the output power of the power supply to be tested to the server, and the raised output voltage of the power supply to be tested is not higher than the voltage of the server in a normal working state.
In the embodiment of the present application, via step S101, the total power consumption of the server is determined to be greater than the rated power of the power supply to be tested through the power consumption pressurization, so as described above, the total power consumption of the server is satisfied by the power supply configured by the server. The server is configured with 2 power supplies, i.e. power supply 1 and power supply 2.
It is assumed that the total power consumption of the server via step S101, as the power supply to be tested, of the power supply 1 is power consumption B, which is greater than the rated power of the power supply 1. In a normal operation scenario, the power supply 1 and the power supply 2 respectively output power at a ratio of a1 and B1, and the output power of the power supply 1 and the output power of the power supply 2 are B × a1 and B × B1, respectively, and to perform power detection on the power supply 1, it is necessary to determine whether the output power of the power supply 1 can reach the rated power thereof, and if the total power consumption of the server is determined, the power supply 1 needs to increase the power output ratio, and accordingly, the power supply 2 decreases the power output ratio.
In the scenario of power detection, the sum of the output currents of the power supplies to the server when supplying power to the server is approximately stable, so the main influence factor of the power supplies on the output power of the server is the output voltage of the power supplies, and the redundant configuration of the server power supply generally requires that the specifications of the power supplies configured by the server are the same. Therefore, the ratio of power output of the power supply to be tested can be increased by raising the output voltage of the power supply to be tested, and correspondingly, the output power of the power supply to be tested is increased. Obviously, as the output voltage of the power supply to be tested is increased, the output power to the server is increased.
Continuing with the example that the total power consumption of the power supply 1 as the power supply and the server to be tested is taken as the power consumption B, in order to perform power detection on the power supply 1, in the embodiment of the present application, the output voltage of the power supply 1 is raised, so as to increase the duty ratio of the power output performed by the power supply 1 and decrease the duty ratio of the power output performed by the power supply 2. Assuming that the power supply 1 and the power supply 2 perform power output with the duty ratios of a2 and B2(a2+ B2 is 1, a2 > a1, and B2 < B1) after the output voltage of the power supply 1 is raised for the first time, at this time, the output power of the 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 the power supply 2 changes from B1 before the output voltage is raised to B2 after the output voltage is raised.
In practical application, the output voltage of the power supply to be tested can be raised in a script writing manner. For example, the script is written into the power supply supplier to be tested, and when the power supply supplier is subjected to power detection, the power supply supplier can actively raise its output voltage after receiving an instruction for instructing power detection issued by an electronic device (such as a server). For example, the script may be written into an electronic device (such as a server), and when the power supply to be detected is detected, the electronic device issues a command indicating voltage rise to the power supply to be detected each time, and the power supply to be detected rises its output voltage. Of course, the detected power supply performs the output voltage rising action once, i.e. performs the subsequent detection action of step S103 once.
It should be further noted that, in the present application, since the performance of the power supply is detected during the operation of the server, in order to ensure that the power supply detection of the power supply does not affect the operation of the server, and thus the server crashes, in this embodiment of the present application, it is further required that the output voltage after being lifted by the power supply to be detected is not higher than the voltage in the normal operating state of the server, and the voltage in the normal operating state of the server may be a set value, and the value of the set value may be determined by the requirements of the server in different scenarios.
Step S103: and performing performance detection on the power supply to be detected based on the output power and the rated power of the power supply to be detected.
In the embodiment of the application, before the output voltage of the power supply to be tested is increased to the voltage of the server in the normal working state, the power supply to be tested performs the performance detection of the step once every time the power supply to be tested performs the increasing of the output voltage, and the performance detection process is as follows:
after the output voltage of the power supply to be tested is raised every time, the output power of the power supply to be tested is raised, the output power of the power supply to be tested can be obtained at the moment, and the output power is further compared with the rated power of the power supply to be tested. If the output power of the power supply to be detected is greater than or equal to the rated power, determining that the power supply to be detected can bear the rated power, judging that the performance of the power supply can meet the use requirement of the server, and ending power detection; and if the output power of the power supply to be tested is smaller than the rated power, the output voltage of the power supply to be tested is raised next time until the output voltage of the power supply to be tested is raised to the voltage of the server in the normal working state.
Under the condition that the output voltage of the power supply to be detected is raised to the voltage of the server in the normal working state, if the output power of the obtained output power of the power supply to be detected is greater than or equal to the rated power of the power supply to be detected, the power supply to be detected can be determined to bear the rated power of the power supply to be detected, so that the performance of the power supply to be detected can meet the use requirement of the server, and power supply detection is finished.
On this basis, in order to prompt the performance condition of the tested power supply to the user in time, the power detection scheme of the embodiment of the application can further output information representing the performance detection result of the tested power supply, and the information can be output in a designated mode, for example, in an indicator light mode, and the performance detection result of the tested power supply can be respectively indicated by changing the color of the indicator light.
It should be noted that, in the embodiment of the present application, the output voltage of the power supply to be tested reaches the voltage in the normal operating state of the server after being raised many times, because the output voltage of the power supply to be tested is raised to the voltage in the normal operating state of the server at one time, although the detection time may be reduced, the fluctuation of the output voltage is large. In practical application, the number of times of output voltage rise of the power supply to be tested can be selected according to actual needs, which is not limited in the embodiment of the application.
Compared with the traditional scheme that the power supply does not perform detection on the server, the power supply detection method provided by the embodiment of the application is beneficial to reducing the fault probability of the server during the action of the instantaneous power consumption, and can improve the reliability and robustness of the power supply, so that the operation index of the power supply in the server is further improved, the stability of the server can also be improved, and the problem shutdown of the server caused by the condition that the power supply generates protection due to the instantaneous power consumption in the server is avoided.
In addition, the scheme of the application is relatively simple and easy to implement, and can be widely applied to power supplies and servers.
As an implementation manner of boosting power consumption of a server, an embodiment of the present application provides another power detection method, see a flowchart of the method shown in fig. 4, where the method includes the following steps:
step S201: and obtaining power consumption information of hardware components in the server.
In the 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 operates, the power consumption of each hardware component started by the server may be monitored to obtain the power consumption information of each hardware component, where the power consumption information includes information such as voltage, current, power consumption, rated power, and operation performance (for example, for a CPU, it may be a usage rate, and for a fan, it may be a rotation speed) when the hardware component is not limited to the operation of the hardware component.
Step S202: and power consumption pressurization is carried out on the target hardware component based on the power consumption information of the hardware component, so that the total power consumption of the server is larger than the rated power of the power supply to be tested.
Because the hardware components started in the server are fixed after the server is on line, in order not to influence the normal operation of the server, the embodiment of the application can select the target hardware component to be pressurized from the plurality of started hardware components of the server, and further perform power consumption pressurization on the target hardware component, so that the total power consumption of the server is greater than the rated power of the power supply to be measured.
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 that the total power consumption of the server can be determined. In the case where 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 may be determined in conjunction with the rated power and the operation performance of each hardware component started by the server.
For each hardware component started by the server, comparing the power consumption of the hardware component with the rated power of the hardware component; if the power consumption of the hardware component is larger than or equal to the rated power, determining that the hardware component is not used as 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.
Because the performance requirements for a given hardware component are different in different application scenarios, the performance of the hardware component is required to preferentially meet the requirements of the application scenario in which the hardware component is located, for example, the utilization rate of the CPU has different thresholds in different application scenarios, and the utilization rate of the CPU is not higher than the threshold. In contrast, if the performance of the hardware component approaches or exceeds the requirement of the application scenario in which the hardware component is located, it is determined that the hardware component is not the target hardware component, and otherwise, the hardware component may be the target hardware component.
It should be noted that, in some application scenarios, different hardware components may also be configured as priorities of target hardware components, so that a hardware component with a higher priority may also be preferentially selected as a target hardware component, which is not limited in this embodiment of the present application.
Step S203: and the output voltage of the power supply to be tested is raised so as to improve the output power of the power supply to be tested to the server, and the raised output voltage of the power supply to be tested is not higher than the voltage of the server in a normal working state.
Step S204: and performing performance detection on the power supply to be detected based on the output power and the rated power of the power supply to be detected.
According to the power supply detection method provided by the embodiment of the application, the power consumption pressurization is carried out on the target hardware component based on the power consumption information of the hardware component in the server, so that the total power consumption of the server is larger than the rated power of the power supply to be detected; further increasing the output voltage of the power supply to be tested to improve the output power of the power supply to be tested to the server; and finally, detecting the performance of the power supply to be detected based on the output power and the rated power of the power supply to be detected. Based on the method and the system, the hardware components in the server can be intelligently selected to pressurize the power consumption of the server, and the server is ensured to operate under the optimal performance.
As an implementation manner of raising the output voltage of the power supply to be tested, the embodiment of the present application provides another power detection method, referring to a flowchart of the method shown in fig. 5, where the method includes the following steps:
step S301: and 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 to be tested.
Step S302: and obtaining the voltage rise step corresponding to the power supply to be tested.
For different application scenarios, the requirements for power detection of the power supply supplier to be detected are different, for example, in some application scenarios, there is a requirement for detection time, which needs to reduce the number of times of output voltage lifting of the power supply supplier to be detected as much as possible, and the corresponding voltage lifting step length is large, and for example, in some application scenarios, there is a requirement for safety performance, which needs to reduce the fluctuation of the output voltage as much as possible, and the corresponding voltage lifting step length is small. Therefore, in the embodiment of the application, different voltage rise steps can be configured for the power supply to be tested for different application scenarios.
Step S303: and the output voltage of the power supply to be tested is raised according to the voltage raising step length so as to raise the output power of the power supply to be tested to the server, and the raised output voltage of the power supply to be tested is not higher than the voltage of the server in a normal working state.
For convenience of understanding, the total power consumption of the power supply 1 as the power supply to be tested and the server as the power consumption B is described as an example, in a normal operation scenario, the power output ratios of the power supply 1 and the power supply 2 are a1 and B1, respectively. In order to perform power detection on the power supply 1, the output voltage of the power supply 1 is raised many times, and the output voltage of the power supply 1 after each raising is not higher than the voltage U of the server in the normal operating state.
It is assumed that the power supply 1 has a rated power P, and the output voltage of the power supply 1 is U1 in the normal operation scenario. Before the output voltage of the power supply 1 is raised to the voltage U, the output power of the power supply 1 is obtained once for each time the power supply 1 performs the output voltage raising, and performance detection is performed on the power supply 1 based on the output power of the power supply 1 and the rated power until a performance detection result of the power supply 1 is finally determined.
Assuming that the rated power of the power supply 1 is P, the output voltage of the power supply 1 is increased for the first time, and the output voltage of the power supply 1 to be tested is increased from U1 to U2(U2 is U1 +. DELTA.u, and U2 < U) by a voltage increase step Δ U), at this time, the power output duty ratios of the power supply 1 and the power supply 2 are a3 and B3(a3+ B3 is 1, and a3 > a1, and B3 < B1), respectively, and accordingly, the output power of the power supply 1 is changed from B a1 before the output voltage is increased to B a3 after the output voltage is increased, and the output power of the power supply 2 is changed from B1 before the output voltage is increased to 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, determining that the power supply 1 can bear the rated power, and thus judging that the performance of the power supply 1 can meet the use requirement of the server; if the output power B × a3 is smaller than the rated power P, the power supply 1 is subjected to the second output voltage raising.
Continuing to assume that the output voltage of the power supply 1 is raised for the second time, the output voltage of the power supply to be tested is raised from U2 to U3(U3 is U2 +. delta.u, U3 < U) by a voltage raising step Δ U), at this time, the power output duty ratios of the power supply 1 and the power supply 2 are a4 and B4 (a4+ B4 is 1, and a4 > a3, B4 < B3), respectively, accordingly, the output power of the power supply 1 is changed from B a3 before the output voltage is raised to B a4 after the output voltage is raised, and the output power of the power supply 2 is changed from B3 before the output voltage is raised to 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 Bxa 4 is greater than or equal to the rated power P, determining that the power supply 1 can bear the rated power, and judging that the performance of the power supply 1 can meet the use requirement of the server; if the output power B × a4 is smaller than the rated power P, the power supply 1 is subjected to a third output voltage increase.
And so on, until the output voltage is raised for many times, 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 the rated power thereof, so as to determine that the performance of the power supply 1 can meet the use requirement of the server, otherwise, 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 the rated power thereof, so as to determine that the power supply 1 has a performance problem, cannot be normally used, and can generate a problem under the application condition of instantaneous power consumption, thereby causing an unstable risk to the server.
Step S304: and performing performance detection on the power supply to be detected based on the output power and the rated power of the power supply to be detected.
According to the power supply detection method provided by the embodiment of the application, the total power consumption of the server can be increased by increasing the power consumption of the server to be larger than the rated power of the power supply to be detected, and then the output voltage of the power supply to be detected is increased by the voltage increasing step length corresponding to the power supply to be detected, so that the output power of the power supply to be detected is increased; and finally, performing performance detection on the power supply to be detected based on the output power and the rated power of the power supply to be detected. Based on the invention, the output voltage of the power supply can be increased by the voltage increasing step length matched with the power supply to be detected, so that the adaptability of power supply detection and the power supply to be detected can be ensured.
As an implementation manner of obtaining a voltage rise step corresponding to a power supply to be tested, an embodiment of the present application provides another power supply detection method, see a method flowchart shown in fig. 6, where the method includes the following steps:
step S401: and 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 to be detected.
Step S402: and obtaining the operation information of the power supply to be tested.
In the embodiment of the present application, before the output voltage of the power supply to be tested is raised, the current operation information of the power supply to be tested may be obtained, where the current operation information includes, but is not limited to, information about current, voltage, output power, operation time, and the like.
Step S403: and determining the voltage rising step length matched with the operation information.
In the embodiment of the application, the operation information of the power supply to be detected is considered, and the operation information before the output voltage of the power supply is raised after the power supply detection is completed can be matched, so that the voltage raising step length of the power supply to be detected is determined.
Suppose that there are m power supplies that have completed power detection, namely, the power supply 1, the power supply 2, … …, and the power supply m, respectively obtain respective operation logs of the power supply 1, the power supply 2, … …, and the power supply m, where the operation logs record information such as operation information before the output voltage of the power supply 1 is raised, the number of times the output voltage of the power supply is raised, and a target voltage to which the output voltage is raised when the power detection is finished.
For any one of the power supply 1, the power supplies 2, … …, and the power supply m, the similarity between the power supply and the power supply to be tested is determined by comparing the operation information of the power supply and the operation information of the power supply to be tested, and the determination of the similarity can be implemented by the existing implementation scheme, which is not described herein again. Thus, the power supply with the highest similarity to the power supply to be tested (hereinafter referred to as the target power supply) can be determined from among the power supplies 1, 2, … …, and m.
And determining the voltage rising step of the power supply to be tested based on the rising times in the running log of the target power supply and the target voltage. For example, the voltage step-up may be a fixed value, and specifically, the voltage difference between the target voltage and the voltage in the operation information of the power supply to be detected may be calculated first, and then the ratio of the voltage difference to the step-up time may be used as the voltage step-up. For example, the voltage raising step may also be a non-constant value, specifically, based on the voltage, the target voltage and the raising frequency in the operation information of the power supply to be detected, a voltage raising step from large to small may be set, that is, the power supply to be detected is raised by the larger voltage raising step to save the detection time, and then the power supply to be detected is raised by the smaller voltage raising step to reduce the fluctuation of the output voltage, and the specific voltage raising step may be set in consideration of the application scenario, which is not limited in this application.
Step S404: and the output voltage of the power supply to be tested is raised according to the voltage raising step length so as to raise the output power of the power supply to be tested to the server, and the raised output voltage of the power supply to be tested is not higher than the voltage of the server in a normal working state.
Step S405: and detecting the performance of the power supply to be detected based on the output power and the rated power of the power supply to be detected.
According to the power supply detection method provided by the embodiment of the application, the total power consumption of the server can be increased by increasing the power consumption of the server to be larger than the rated power of the power supply to be detected, and then the output voltage of the power supply to be detected is increased by the voltage increasing step length matched with the operation information of the power supply to be detected, so that the output power of the power supply to be detected is increased; and finally, detecting the performance of the power supply to be detected based on the output power and the rated power of the power supply to be detected. Based on the invention, the voltage lifting step length which is most matched with the power supply to be detected can be determined, the output voltage of the power supply to be detected is lifted in a targeted manner by the voltage lifting step length, and the timeliness and the stability of power supply detection are improved.
Corresponding to the above power detection method, the present application also discloses a power detection apparatus, as shown in fig. 7, the display apparatus includes:
the power consumption pressurizing module 10 is used for pressurizing the power consumption of the server so as to enable the total power consumption of the server to be larger than the rated power of the power supply to be detected;
the voltage lifting module 20 is configured to lift an output voltage of the power supply to be tested, so as to increase an output power of the power supply to be tested to the server, where the lifted output voltage of the power supply to be tested is not higher than a voltage of the server in a normal working state;
and the performance detection module 30 is used for performing performance detection on the power supply to be detected based on the output power and the rated power of the power supply to be detected.
In another embodiment of the power detection apparatus disclosed in the present application, the power consumption pressurizing module 10 pressurizes power consumption of the server, and includes:
acquiring power consumption information of hardware components in a server; and power consumption pressurization is carried out on the target hardware component based on the power consumption information of the hardware component.
In another embodiment of the power detection apparatus disclosed in the present application, the voltage raising module 20 raises the output voltage of the power supply to be detected, and includes:
obtaining a voltage lifting step corresponding to a power supply to be detected; and increasing the output voltage of the power supply to be detected according to the voltage increasing step.
In another embodiment of the power detection apparatus disclosed in the present application, the obtaining, by the voltage increasing module 20, a voltage increasing step corresponding to the power supply to be detected includes:
obtaining the operation information of a power supply to be detected; and determining the voltage rising step length matched with the operation information.
In another embodiment of the power detection apparatus disclosed in the present application, the performance detection module 30 is further configured to:
and outputting information representing the performance detection result of the power supply to be detected.
It should be noted that, for detailed functions of each module in the embodiment of the present application, reference may be made to corresponding disclosure parts of the embodiments of the network handover method, and details are not described herein again.
Corresponding to the power supply detection method, the application also discloses a storage medium, wherein the storage medium stores computer program codes, and the power supply detection method is realized when the computer program codes are executed.
The foregoing detailed description is directed to a power detection method, a power detection apparatus, an electronic device, and a storage medium provided by the present application, and specific examples are applied in the detailed description to explain the principles and implementations of the present application, and the descriptions of the foregoing examples are only used to help understand the method and the core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include or include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method of power supply detection, the method comprising:
pressurizing the power consumption of a server so that the total power consumption of the server is larger than the rated power of a power supply to be tested;
the output voltage of the power supply to be tested is raised so as to improve the output power of the power supply to be tested to the server, and the raised output voltage of the power supply to be tested is not higher than the voltage of the server in a normal working state;
and performing performance detection on the power supply to be detected based on the output power and the rated power of the power supply to be detected.
2. The method of claim 1, the stressing power consumption of servers, comprising:
obtaining power consumption information of hardware components in the server;
power consumption pressurization is performed on a target hardware component based on the power consumption information of the hardware component.
3. The method of claim 1, the raising the output voltage of the power supply under test, comprising:
obtaining a voltage lifting step corresponding to the power supply to be detected;
and increasing the output voltage of the power supply to be detected according to the voltage increasing step.
4. The method of claim 3, wherein the obtaining a corresponding voltage step-up of the power supply under test comprises:
obtaining the operation information of the power supply to be tested;
and determining the voltage rise step length matched with the operation information.
5. The method of claim 1, further comprising:
and outputting information representing the performance detection result of the power supply to be detected.
6. A power detection apparatus, the apparatus comprising:
the power consumption pressurizing module is used for pressurizing the power consumption of the server so as to enable the total power consumption of the server to be larger than the rated power of the power supply to be detected;
the voltage lifting module is used for lifting the output voltage of the power supply to be tested so as to improve the output power of the power supply to be tested to the server, and the lifted output voltage of the power supply to be tested is not higher than the voltage of the server in a normal working state;
and the performance detection module is used for detecting the performance of the power supply to be detected based on the output power and the rated power of the power supply to be detected.
7. The apparatus of claim 6, the power consumption pressurizing module to power consumption pressurize a server, comprising:
obtaining power consumption information of hardware components in the server; power consumption pressurization is performed on the target hardware component based on the power consumption information of the hardware component.
8. The apparatus of claim 6, the voltage boost module to boost an output voltage of the power supply under test, comprising:
obtaining a voltage lifting step corresponding to the power supply to be detected; and increasing the output voltage of the power supply to be detected according to the voltage increasing step.
9. An electronic device, the electronic device comprising:
the memory is used for storing an application program and data generated by the running of the application program;
a processor for executing the application to perform the functions of: pressurizing the power consumption of a server so that the total power consumption of the server is larger than the rated power of a power supply to be tested; the output voltage of the power supply to be tested is raised so as to improve the output power of the power supply to be tested to the server, and the raised output voltage of the power supply to be tested is not higher than the voltage of the server in a normal working state; and performing performance detection on the power supply to be detected based on the output power and the rated power of the power supply to be detected.
10. A storage medium storing computer program code which, when executed, implements a power supply detection method as claimed in any one of claims 1 to 5.
CN202210257733.8A 2022-03-16 2022-03-16 Power supply detection method and device, electronic equipment and storage medium Pending CN114706721A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210257733.8A CN114706721A (en) 2022-03-16 2022-03-16 Power supply detection method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210257733.8A CN114706721A (en) 2022-03-16 2022-03-16 Power supply detection method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114706721A true CN114706721A (en) 2022-07-05

Family

ID=82169655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210257733.8A Pending CN114706721A (en) 2022-03-16 2022-03-16 Power supply detection method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114706721A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117388749A (en) * 2023-12-13 2024-01-12 深圳市顺源科技有限公司 Power module detection method and detection system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117388749A (en) * 2023-12-13 2024-01-12 深圳市顺源科技有限公司 Power module detection method and detection system
CN117388749B (en) * 2023-12-13 2024-03-12 深圳市顺源科技有限公司 Power module detection method and detection system

Similar Documents

Publication Publication Date Title
US8909952B2 (en) Power supply apparatus of computer system and method for controlling power sequence thereof
CN109901881B (en) Plug-in loading method and device of application program, computer equipment and storage medium
CN110210738B (en) Power supply reliability analysis method and system
CN110569158A (en) method and device for testing abnormal power failure in SSD random scene and computer equipment
CN111679601B (en) Control method of multi-board card device, multi-board card device and medium
CN114706721A (en) Power supply detection method and device, electronic equipment and storage medium
CN115547396A (en) Test method and device for eMMC
CN114527857B (en) Multi-core system reset method, device, equipment and readable storage medium
CN112670948B (en) Board card protection method, system and device
CN111239514B (en) Method and device for testing overvoltage protection function of server power supply
CN109446642B (en) Intelligent writing method and device for power grid equipment starting scheme
CN111176917A (en) Method, system, terminal and storage medium for testing functional stability of CPU SST-BF
CN111475343A (en) Computer state power failure recovery method and device and terminal equipment
CN116107855A (en) Test method, system, chip, electronic device and storage medium
CN106546906B (en) Method and device for testing integrity of power supply
CN116521405A (en) sd card state detection method, device, equipment and storage medium
CN115728665A (en) Power failure detection circuit, method and system
CN116010141A (en) Method, device and medium for positioning starting abnormality of multipath server
CN115576730A (en) Storage server PCIE card fault repairing method, system and computer equipment
CN113064614B (en) Firmware upgrading method and system for redundant power supply system of server
CN111381659B (en) Computer system and power management method
CN109116265B (en) Method and system for processing full-load power-on abnormal oscillation during power module overshoot test
CN110989814A (en) Server protection method, device and equipment
CN112101000A (en) Information consistency test method, device, equipment and computer readable storage medium
CN115201611B (en) Method for testing VR power supply stability of CPU and related components

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination