CN113359970B - Server power module current sharing test method, device, equipment and storage medium - Google Patents

Server power module current sharing test method, device, equipment and storage medium Download PDF

Info

Publication number
CN113359970B
CN113359970B CN202110476206.1A CN202110476206A CN113359970B CN 113359970 B CN113359970 B CN 113359970B CN 202110476206 A CN202110476206 A CN 202110476206A CN 113359970 B CN113359970 B CN 113359970B
Authority
CN
China
Prior art keywords
output power
error rate
power
psu
server
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.)
Active
Application number
CN202110476206.1A
Other languages
Chinese (zh)
Other versions
CN113359970A (en
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.)
Shandong Yingxin Computer Technology Co Ltd
Original Assignee
Shandong Yingxin Computer Technology Co 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 Shandong Yingxin Computer Technology Co Ltd filed Critical Shandong Yingxin Computer Technology Co Ltd
Priority to CN202110476206.1A priority Critical patent/CN113359970B/en
Publication of CN113359970A publication Critical patent/CN113359970A/en
Application granted granted Critical
Publication of CN113359970B publication Critical patent/CN113359970B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/28Supervision thereof, e.g. detecting power-supply failure by out of limits supervision
    • 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/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2215Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test error correction or detection circuits
    • 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/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2236Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test CPU or processors
    • 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/2273Test methods
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The invention discloses a method, a device and equipment for testing current sharing of a server power module and a storage medium. The method comprises the following steps: responding to the power-on of the server, acquiring the number of PSUs of the server power supply module and the rated output power of each PSU; calling a pressurizing tool to adjust the load value of the electric consumption device of the server, and acquiring the actual output power of each PSU to obtain first output power; determining a first error rate according to the rated output power of each PSU and the corresponding first output power; calling an on-off command of the ipmitool to execute on-off for a plurality of times, and obtaining the actual output power of each PSU again to obtain a second output power; and determining a second error rate according to the rated output power of each PSU and the corresponding second output power. The scheme of the invention realizes the automatic execution of the server flow equalization test, saves a large amount of working time of testers, reduces the production cost and improves the test accuracy and efficiency.

Description

Server power module current sharing test method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of servers, in particular to a method, a device, equipment and a storage medium for testing current sharing of a power module of a server.
Background
Over decades of development of the server industry, the importance of servers as the infrastructure of the network industry has increased. The server is also an electrical device and contains a Power module, the Power module is composed of a plurality of Power Supply Unit (PSU) units, and various server products need to perform a large amount of tests on the Power module in research, development and production manufacturing processes, wherein the Power module current sharing test is an important test that the Power module needs to consume a large amount of time to execute in the research and development processes.
In the traditional method for testing the power supply module, when an operator manually executes the power supply current sharing test, the server needs to be manually turned on and off repeatedly and the power supply control and the instrument detection can be carried out only after the server is restarted, so that a lot of test time and labor are consumed, and in addition, test schemes of various electronic products for current sharing test are different, so that a general or special automatic software tool for the power supply current sharing test of the server is not seen in the market.
The traditional method for performing the power supply current sharing test of the server in a manual mode has the following defects: on one hand, the power supply needs to be repeatedly switched on and off for monitoring and pressurizing the power supply, so that the working time of a plurality of testers needs to be consumed, and the project development efficiency is low; on the other hand, the manual judgment of the test result sometimes causes errors, so the accuracy is not high, and improvement is needed.
Disclosure of Invention
In view of the above, it is desirable to provide a method, an apparatus, a device and a storage medium for current sharing test of a server power module.
According to a first aspect of the present invention, a method for testing current sharing of a server power module is provided, where the method includes:
responding to the power-on of the server, acquiring the number of PSUs of the power supply module of the server and the rated output power of each PSU;
calling a pressurizing tool to adjust the load value of the electric consumption device of the server, and acquiring the actual output power of each PSU to obtain first output power;
determining a first error rate according to the rated output power of each PSU and the corresponding first output power;
calling a power on/off command of the ipmitool to execute power on/off for a plurality of times, and acquiring the actual output power of each PSU again to obtain a second output power;
determining a second error rate according to the rated output power of each PSU and the corresponding second output power;
and confirming the current sharing test result of the power module based on the first error rate and the second error rate.
In one embodiment, the method further comprises:
and in response to obtaining the second error rate, invoking a pressurization tool to load unload the power consumption device on the server.
In one embodiment, the method further comprises:
returning to the step of calling the pressurizing tool to adjust the load value of the electric consumption device of the server again in response to the completion of the load unloading, and acquiring the actual output power of each PSU to obtain a first output power; wherein, the load values of the pressurizing tool adjusted before and after twice are different.
In one embodiment, the determining the current sharing test result of the power module based on the first error rate and the second error rate includes:
comparing the first error rate and the second error rate obtained in the previous and subsequent times with a first preset value and a second preset value respectively;
and in response to the fact that each first error rate and each second error rate obtained in the previous time are smaller than the first preset value, and each first error rate and each second error rate obtained in the subsequent time are smaller than the second preset value, determining that the current sharing test result of the power module is passed.
In one embodiment, the method further comprises:
and confirming that the current sharing test result of the power module is failed in response to the fact that a certain first error rate or a certain second error rate obtained in the previous time is larger than the first preset value or the certain first error rate or the certain second error rate obtained in the subsequent time is larger than the second preset value.
In one embodiment, the power consuming device comprises a CPU and/or a memory.
In one embodiment, the step of obtaining the actual output power of each PSU to obtain the first output power includes: acquiring the actual output power of each PSU for multiple times through a reading command of ipmitool at intervals of preset time, and taking the actual output power of each PSU read for multiple times as the first output power; and
the step of obtaining the actual output power of each PSU again to obtain the second output power includes: and acquiring the actual output power of each PSU for multiple times through the reading command of the ipmitool at intervals of preset time, and taking the actual output power of each PSU read for multiple times as the second output power.
According to a second aspect of the present invention, there is provided a server power module current sharing test apparatus, including:
the server power supply module comprises a rated power acquisition unit, a power supply module and a power supply module, wherein the rated power acquisition unit is used for acquiring the number of PSUs of the server power supply module and the rated output power of each PSU when the server is powered on;
the first calling unit is used for calling the pressurizing tool to adjust the load value of the electric consumption device of the server and acquiring the actual output power of each PSU to obtain first output power;
the first error rate determining unit is used for determining a first error rate according to the rated output power of each PSU and the corresponding first output power;
the second calling unit is used for calling the power on/off command of the ipmitool to execute power on/off for a plurality of times, and obtaining the actual output power of each PSU again to obtain a second output power;
the second error rate determining unit is used for determining a second error rate according to the rated output power of each PSU and the corresponding second output power;
and the result determining unit is used for determining the current sharing test result of the power module based on the first error rate and the second error rate.
According to a third aspect of the present invention, there is also provided a computer apparatus comprising:
at least one processor; and
the storage stores a computer program which can run on the processor, and the processor executes the current sharing test method of the server power supply module when executing the program.
According to a fourth aspect of the present invention, a computer-readable storage medium is further provided, where a computer program is stored, and when the computer program is executed by a processor, the method for testing current sharing of a power module of a server is performed.
According to the method for testing the current sharing of the power supply module of the server, the load value of the power consumption device of the server is adjusted by calling the pressurizing tool, the actual output power of each PSU is obtained to obtain the first output power, the startup and shutdown command of the ipmitool is called to execute the startup and shutdown for a plurality of times, the actual output power second output power of each PSU is obtained again, the corresponding error rate is calculated through the preset formula, the current sharing test of the server is automatically executed, the working time of a large number of testers is saved, the production cost is reduced, and the test accuracy and efficiency are improved.
In addition, the invention also provides a server power module current sharing test device, computer equipment and a computer readable storage medium, which can also realize the technical effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart illustrating a method for testing current sharing of a server power module according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating an implementation of a current sharing automatic test for a server-oriented power module according to another embodiment of the present invention;
FIG. 3 is a flowchart of a power source current sharing test procedure according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of a current sharing test apparatus for a server power module according to an embodiment of the present invention;
fig. 5 is an internal structural view of a computer device according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In an embodiment, referring to fig. 1, the present invention provides a method for testing current sharing of a server power module, including the following steps:
s100, responding to the power-on of the server, acquiring the number of PSUs of the power supply module of the server and the rated output power of each PSU;
s200, calling a pressurizing tool to adjust the load value of the electric consumption device of the server, and acquiring the actual output power of each PSU to obtain a first output power; preferably, the electrical consumer comprises a CPU and/or a memory;
the stress tool is a stress tool of a Linux operating system and is used for adjusting the working state of the device, the load refers to the utilization rate of the device, and for example, if all the performances of the CPU are 100% and are not used as 0%, the stress tool can use the working state of the CPU as 10% and other arbitrary values. Similarly, in the specific implementation process, the stress pressurizing tool of the memory using the Linux operating system may be adjusted to any value such as the usage rate of 30%.
S300, determining a first error rate according to the rated output power of each PSU and the corresponding first output power;
s400, calling a power-on/off command of the ipmitool to execute power-on/off for a plurality of times, and obtaining the actual output power of each PSU again to obtain a second output power;
the IPMI is a short name of an Intelligent Platform Management Interface, and represents an Intelligent Platform Management Interface, and the ipmitool is a built-in IPMI command tool installed in a Linux operating system on a server and can perform interactive communication and remote monitoring on the power module.
S500, determining a second error rate according to the rated output power of each PSU and the corresponding second output power;
s600, confirming a current sharing test result of the power module based on the first error rate and the second error rate.
According to the server power module current-sharing test method, the load value of the power consumption device of the server is adjusted by calling the pressurizing tool, the actual output power of each PSU is obtained to obtain the first output power, the power on/off command of the ipmitool is called to execute the power on/off for a plurality of times, the actual output power second output power of each PSU is obtained again, the corresponding error rate is calculated through the preset formula, the automatic execution of the server current-sharing test is realized, the working time of a large number of testers is saved, the production cost is reduced, and the test accuracy and efficiency are improved.
In another embodiment, based on the foregoing embodiment, the method for testing current sharing of a server power module in this embodiment further includes the following steps:
and S700, in response to the second error rate, calling a pressurizing tool to unload the load of the power consumption device on the server.
Wherein, the load unloading refers to adjusting the load of the power consumption device to 0%, for example, if the load of the CPU is also adjusted to 10%, then the load unloading refers to adjusting the load of the CPU back to 0%; similarly, assuming that the electrical consumer includes a CPU and a memory, performing the load unloading operation requires that the load of the CPU and the load of the memory are both adjusted back to the load value equal to 0%.
In yet another embodiment, the method further comprises the steps of:
s800, in response to the completion of load unloading, returning to the step of calling the load value of the electric consumption device of the pressurizing tool adjusting server again, and acquiring the actual output power of each PSU to obtain a first output power; wherein, the load values of the pressurizing tool adjusted in two times are different.
Specifically, for example, if the stress pressurization tool adjusts the load value of the CPU to 10% in the first step S200, the load value of the CPU is adjusted to 0% after the step S600 is completed; returning to step S200 again, the load of the CPU is adjusted again by the stress compression tool so that the CPU load value is adjusted from 0% to 20% again, and steps S300 to S500 are executed for the next time. It should be noted that, of course, the step S200 may be repeated after the current sharing test is performed, and considering that the current sharing test of the power module usually only needs to measure two states of the power consuming device, the step S200 to the step S500 are performed twice, and the number of times of the return execution may be increased when a more accurate test is required.
In a further embodiment, based on the previous embodiment, the S600 includes the following sub-steps: :
s610, comparing the first error rate and the second error rate obtained in the previous and subsequent times with a first preset value and a second preset value respectively;
s620, in response to that each first error rate and each second error rate obtained in the previous time are smaller than the first preset value, and each first error rate and each second error rate obtained in the subsequent time are smaller than the second preset value, the current sharing test result of the power module is determined to be passed.
Preferably, the method further comprises:
s630, in response to the first error rate or the second error rate obtained in the previous time being greater than the first preset value, or the first error rate or the second error rate obtained in the subsequent time being greater than the second preset value, determining that the current sharing test result of the power module is failed.
According to the method for testing the current sharing of the power module of the server, the error rates obtained by calculation each time are combined with the preset values corresponding to different testing situations to be compared, the error rates are automatically classified, the testing results are simply, visually and conveniently obtained, manual calculation or statistics are not needed, the time for manually processing the testing data is greatly saved, the testing efficiency is remarkably improved, and the method has high accuracy.
In another embodiment, the step S200 specifically includes: acquiring the actual output power of each PSU for multiple times through a reading command of ipmitool at intervals of preset time, and taking the actual output power of each PSU read for multiple times as the first output power;
the step S400 includes: and acquiring the actual output power of each PSU for multiple times through the reading command of the ipmitool at intervals of preset time, and taking the actual output power of each PSU read for multiple times as the second output power.
The method can avoid the condition of missing measurement of some modulation because the measurement of the power module can have numerical value modulation, has the advantage that the actual output power of the PSU can be measured once every thirty seconds in the implementation process, and each group measures ten times.
In another embodiment, to facilitate understanding of the technical solution of the present invention, please refer to fig. 2, which is a flowchart illustrating a CPU as an electrical consumption device, which is implemented by using a common Bash Shell statement of a Linux operating system as an online server power source current sharing test automation script, and then invoking a stress pressurization tool built in the Linux to pressurize the CPU and an ipmitool command tool to perform reading and writing on power module hardware interaction, and performing current sharing test and outputting a result according to the test scheme program flowchart, wherein the specific implementation steps are as follows:
(1) Firstly, a tester copies a current sharing test script into a directory of a Linux operating system of a server, then starts an online current sharing test automation script (for example, "equivalent _ current _ test.sh") according to a mode of executing a Bash Shell script by a standard Linux operating system, and substitutes the script into a required setting parameter, wherein the script parameter setting and executing mode is as follows:
bash./equal_current_test.sh–p 5–r 10
where the parameters define-p = number of server power on and off, -r = number of output power readings.
(2) After the script runs, calling a built-in IPMI command tool ('ipmitool') in Linux according to a program of the power testing scheme according to the power testing scheme flow to perform interactive reading and writing on the power module. Respectively calling stress in the script codes to pressurize all CPUs to realize two conditions of 10% load and 20% load; (e.g., stress-110-cpu $ (cat/proc/cpu info | grep "processor" | wc-l)), and ipmitool commands perform server power on/off (e.g., ipmitool power on) and output power monitoring (e.g., ipmitool ddr | grep-ips).
(3) And automatically calculating and judging each sub-test result and process by an Error rate (% Error) calculation formula in real time in the test process, printing the sub-test result and process on a computer screen, and finally outputting a test summary 'Pass or Fail' and printing the test summary to the computer screen, wherein the specific test results are shown in tables 1 to 4.
And (3) an error rate calculation formula and test result judgment:
% Error (Error rate) =100% | PSUi-PSUaverage |/PSUaverage;
where i =1.. N (number of PSU), PSUi is actual PSU0, PSU1 \8230, output power reading, PSUaverage is output rated power, and furthermore the% Error rate needs to be less than 10% when the CPU is loaded at 10% load, and less than 5% if the CPU is loaded at 20% load, as examples:
for example, assuming that PSU0 and PSU1 are both 800W full (100%) rated power, and the load is 10% (10% output rated power is 800 × 10% = 80W), the error rates are calculated by ipmitool reading the actual readings of the power sensors as PSU0=83W and PSU1=90W, respectively as follows:
% Error0=100% (PSU 0-PSUaverage)/PSUaverage =100% ((83-80)/80) =3.7% (PSU 0 test result judged as pass)
% Error1=100% (PSU 1-PSUaverage)/PSUaverage =100% ((90-80)/80) =12.5% (PSU 1 test result judged no pass).
Referring to fig. 3, the steps of executing the online current sharing test automation script are as follows:
step one, a direct current power supply or an alternating current power supply supplies power, a server is started after the server is powered on, the number and the rated power of PSUs of a power supply module of the server are detected, the power supply module of the currently tested server is assumed to comprise 2 PSUs which are respectively marked as PSU0 and PSU1, and the rated power of the two PSUs is 80W;
step two, carrying out power-off and power-on by calling a power-on and power-off command of the ipmitool, repeating the power-on and power-off command five times at intervals of ten seconds, taking the situation at the moment as a scene 1, reading the power output power of the power supply by using the ipmitool (reading every 30 seconds, repeating the operation 10 times), and then calculating the error rate of the obtained data under the scene 1 to obtain the data shown in the following table 1;
TABLE 1 Scenario 1 actual output Power and error Rate
Figure BDA0003047167870000101
Step three, pressurizing the CPU to load to 10% of rated output power, taking the situation at this time as a scene 2, reading the power output power by using ipmitool (reading every 30s, repeating for 10 times), and then calculating the data in the following table 2 obtained by the error rate of the data obtained under the scene 1;
TABLE 2 Scenario 2 actual output Power and error Rate
Figure BDA0003047167870000102
Step four, unloading the load, namely pressurizing the CPU to 0%, pressurizing the CPU to 20% of rated output, taking the situation as a scene 3, reading the power output power by using ipmitool (reading every 30s, repeating for 10 times), and then calculating the data in the following table 3, wherein the error rate of the data obtained under the scene 3 is obtained;
TABLE 3 Scenario 3 actual output Power and error Rate
Figure BDA0003047167870000111
Step five, power-off and power-on are executed by means of an on-off command of ipmitool, the power-off and power-on are repeatedly executed five times at intervals of ten seconds, the situation at the time is taken as a scene 4, the ipmitool is used for reading power output power (the power output power is read once every 30s and is repeated 10 times), and then the data in the following table 4 is obtained by calculating the error rate of the data under the scene 3:
TABLE 4 Scenario 4 actual work output and error Rate
Figure BDA0003047167870000112
Step 6, determining a test result by combining the error rates under all the scenes; specifically, the error rate is respectively calculated according to the actual output power and the rated output power in the tables 1 to 4 to determine the test result, and the specific error rate calculation mode for each PSU is the ratio of the absolute value of the difference between the rated output power and the actual output power to the rated output power; for ease of understanding, the error rate may be set to 10% for scenario 1 and scenario 2 with a CPU load of 10%, that is, the error rate is determined to pass the test only if it is less than 10%, otherwise it is determined not to pass; accordingly, for scenario 3 and scenario 4 with a CPU load of 20%, the error rate may be set to a comparison value of 5%, that is, only if the error rate is less than 5%, the test is considered to pass, otherwise the test is considered not to pass; and the final test result needs to be combined with all the results of the scene 1, the scene 2, the scene 3 and the scene 4, and the error rate obtained by each calculation of each PSU in each scene is determined to be that the current sharing test of the whole power module passes only within a set range, otherwise, the test fails.
And 7, after the test is finished and the load of the CPU is unloaded, calling the power-on and power-off command of the ipmitool again to execute power-off so as to shut down the server.
It should be noted that the scenarios in the examples are only used for illustration, and specific setting parameters of the scenarios, such as load values, and comparison values of interval measurement times, power-up and power-down times, and setting of error rate in each scenario, etc., can be changed and adjusted, and the parameters in the above embodiments should not be construed as limiting the method of the present invention. In addition, the actual output powers listed in the above tables 1 to 4 are also only for illustration, and the specific values are subject to the actual read values.
The method adopts Bash Shell statements supported by a Linux operating system in a default mode and calls a stress pressurizing tool built in the Linux to pressurize the CPU, an ipmitool command tool built in the Linux is called to perform reading and writing on power module hardware interaction, CPU loading and output power monitoring, and current sharing tests of various pressure scenes, and the program can automatically judge whether a test result passes or does not pass through a current sharing algorithm. The method comprises the steps of conducting current sharing automatic testing on a power module through built-in Bash Sell script statements in Linux, a built-in stress pressurizing tool and ipmitool, displaying script execution processes and results on a screen, calculating testing results of each pressure scene through a current sharing degree formula, summarizing output results, printing testing information on a computer screen in the process, enabling the results to be visual and reliable, needing no manual intervention, greatly saving testing cost and remarkably improving accuracy of the testing results.
In another embodiment, referring to fig. 4, the present invention further provides a server power module current sharing testing apparatus 90, including:
a rated power obtaining unit 91, configured to obtain the number of PSUs of the server power supply module and a rated output power of each PSU when the server is powered on;
a first calling unit 92, configured to call a pressing tool to adjust a load value of an electrical consumer of the server, and obtain actual output power of each PSU to obtain first output power;
a first error rate determining unit 93, configured to determine a first error rate according to the rated output power of each PSU and the corresponding first output power;
the second calling unit 94 is configured to call the power on/off command of the ipmitool to perform power on/off for several times, and obtain the actual output power of each PSU again to obtain a second output power;
a second error rate determining unit 95 for determining a second error rate based on the rated output power of each PSU and the corresponding second output power;
and the result determining unit 96 is used for determining the current sharing test result of the power module based on the first error rate and the second error rate.
The utility model provides an above-mentioned server power module test device that flow equalizes, load value through the consumer of calling the pressurization instrument regulation server, and acquire the actual output of each PSU in order to obtain first output, and call ipmitool's on/off command and carry out the switch-on and switch-off a plurality of times, and acquire the actual output second output of each PSU once more, and calculate corresponding error rate through predetermineeing the formula, the automatic test that flow equalizes of execution server has been realized, save a large amount of testers operating time, and the production cost is reduced, improve test accuracy and efficiency.
It should be noted that, for specific limitations of the current sharing test apparatus for a server power module, reference may be made to the limitations of the current sharing test method for a server power module, which are not described herein again. All modules in the server power module current-sharing test device can be completely or partially realized through software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
According to another aspect of the present invention, a computer device is provided, which may be a server, and the internal structure of the computer device is shown in fig. 5. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data. The network interface of the computer device is used for communicating with an external terminal through a network connection. When being executed by a processor, the computer program realizes the server power module current sharing test method, and particularly, the method comprises the following steps:
responding to the power-on of the server, acquiring the number of PSUs of the server power supply module and the rated output power of each PSU;
calling a pressurizing tool to adjust the load value of the electric consumption device of the server, and acquiring the actual output power of each PSU to obtain first output power;
determining a first error rate according to the rated output power of each PSU and the corresponding first output power;
calling a power on/off command of the ipmitool to execute power on/off for a plurality of times, and acquiring the actual output power of each PSU again to obtain a second output power;
and determining a second error rate according to the rated output power of each PSU and the corresponding second output power.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (6)

1. A method for testing current sharing of a server power module is characterized by comprising the following steps:
responding to the power-on of the server, acquiring the number of PSUs of the power supply module of the server and the rated output power of each PSU;
calling a pressurizing tool to adjust the load value of the electric consumption device of the server, and acquiring the actual output power of each PSU to obtain first output power;
determining a first error rate according to the rated output power of each PSU and the corresponding first output power;
calling a power on/off command of the ipmitool to execute power on/off for a plurality of times, and acquiring the actual output power of each PSU again to obtain a second output power;
determining a second error rate according to the rated output power of each PSU and the corresponding second output power;
confirming a current sharing test result of the power module based on the first error rate and the second error rate;
the method further comprises the following steps:
in response to obtaining the second error rate, invoking a pressurizing tool to load and unload the power consumption device on the server;
returning to the step of calling the pressurizing tool to adjust the load value of the electric consumption device of the server again in response to the completion of the load unloading, and acquiring the actual output power of each PSU to obtain a first output power; wherein, the load values of the pressurizing tool adjusted twice are different;
the current sharing test result of the power module is confirmed based on the first error rate and the second error rate, and the current sharing test result comprises the following steps:
comparing the first error rate and the second error rate obtained in the previous and subsequent steps with a first preset value and a second preset value respectively;
in response to that each first error rate and each second error rate obtained in the previous time are smaller than the first preset value, and each first error rate and each second error rate obtained in the subsequent time are smaller than the second preset value, confirming that the current sharing test result of the power module passes;
the method further comprises the following steps:
and confirming that the current sharing test result of the power module is failed in response to the fact that a certain first error rate or a certain second error rate obtained in the previous time is larger than the first preset value or the certain first error rate or the certain second error rate obtained in the subsequent time is larger than the second preset value.
2. The method according to claim 1, wherein the power consuming device comprises a CPU and/or a memory.
3. The method of claim 1, wherein the step of obtaining the actual output power of each PSU to obtain the first output power comprises: acquiring the actual output power of each PSU for multiple times through a reading command of ipmitool at intervals of preset time, and taking the actual output power of each PSU read for multiple times as the first output power; and
the step of obtaining the actual output power of each PSU again to obtain the second output power includes: and acquiring the actual output power of each PSU for multiple times through the reading command of the ipmitool at intervals of preset time, and taking the actual output power of each PSU read for multiple times as the second output power.
4. The utility model provides a server power module testing arrangement that flow equalizes, its characterized in that, the device includes:
the server power supply module comprises a rated power acquisition unit, a power supply module and a power supply module, wherein the rated power acquisition unit is used for acquiring the number of PSUs of the server power supply module and the rated output power of each PSU when the server is powered on;
the first calling unit is used for calling the pressurizing tool to adjust the load value of the electric consumption device of the server and acquiring the actual output power of each PSU to obtain first output power;
the first error rate determining unit is used for determining a first error rate according to the rated output power of each PSU and the corresponding first output power;
the second calling unit is used for calling the power on/off command of the ipmitool to execute power on/off for a plurality of times, and obtaining the actual output power of each PSU again to obtain a second output power;
a second error rate determining unit, configured to determine a second error rate according to the rated output power of each PSU and the corresponding second output power;
the result determining unit is used for determining the current sharing test result of the power module based on the first error rate and the second error rate;
the apparatus also includes means for performing the steps of:
in response to obtaining the second error rate, invoking a pressurizing tool to load and unload the power consumption device on the server;
returning to the step of calling the pressurizing tool to adjust the load value of the electric consumption device of the server again in response to the completion of the load unloading, and acquiring the actual output power of each PSU to obtain a first output power; wherein, the load values of the pressurizing tool adjusted in two times are different;
the result determination unit is further configured to:
comparing the first error rate and the second error rate obtained in the previous and subsequent steps with a first preset value and a second preset value respectively;
in response to the fact that each first error rate and each second error rate obtained in the previous time are smaller than the first preset value, and each first error rate and each second error rate obtained in the subsequent time are smaller than the second preset value, the current sharing test result of the power module is determined to be passed;
the result determination unit is further configured to:
and confirming that the current sharing test result of the power module is failed in response to the fact that a certain first error rate or a certain second error rate obtained in the previous time is larger than the first preset value or the certain first error rate or the certain second error rate obtained in the subsequent time is larger than the second preset value.
5. A computer device, comprising:
at least one processor; and
a memory storing a computer program operable in the processor, the processor when executing the program performing the method of any of claims 1-3.
6. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method of any one of claims 1 to 3.
CN202110476206.1A 2021-04-29 2021-04-29 Server power module current sharing test method, device, equipment and storage medium Active CN113359970B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110476206.1A CN113359970B (en) 2021-04-29 2021-04-29 Server power module current sharing test method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110476206.1A CN113359970B (en) 2021-04-29 2021-04-29 Server power module current sharing test method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113359970A CN113359970A (en) 2021-09-07
CN113359970B true CN113359970B (en) 2023-04-14

Family

ID=77525711

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110476206.1A Active CN113359970B (en) 2021-04-29 2021-04-29 Server power module current sharing test method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113359970B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114527859B (en) * 2022-02-21 2023-07-21 苏州浪潮智能科技有限公司 Power supply voltage adjusting method, system, storage medium and equipment
CN115113714B (en) * 2022-06-30 2023-07-21 苏州浪潮智能科技有限公司 Method, device, equipment and storage medium for controlling dynamic current of high-power supply

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109960620A (en) * 2019-03-27 2019-07-02 苏州浪潮智能科技有限公司 A kind of equal current test method of server power supply
CN111239637A (en) * 2020-02-16 2020-06-05 苏州浪潮智能科技有限公司 Server power supply current sharing detection device and method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102175947B (en) * 2011-03-18 2013-01-09 扬州双鸿电子有限公司 Multi-path flow equalizing capacitor durability tester
CN109828874B (en) * 2019-01-07 2022-02-18 郑州云海信息技术有限公司 Automatic testing method for PSU current sharing performance of server
US11635798B2 (en) * 2019-02-08 2023-04-25 Hewlett Packard Enterprise Development Lp Dynamic OCP adjustment
CN111487555A (en) * 2020-03-27 2020-08-04 苏州浪潮智能科技有限公司 RACK cabinet power supply current sharing real-time detection method, device, equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109960620A (en) * 2019-03-27 2019-07-02 苏州浪潮智能科技有限公司 A kind of equal current test method of server power supply
CN111239637A (en) * 2020-02-16 2020-06-05 苏州浪潮智能科技有限公司 Server power supply current sharing detection device and method

Also Published As

Publication number Publication date
CN113359970A (en) 2021-09-07

Similar Documents

Publication Publication Date Title
CN113359970B (en) Server power module current sharing test method, device, equipment and storage medium
CN107423174B (en) Server configuration information testing method and device and storage medium
CN113901675B (en) Electronic component service life prediction method and device, computer equipment and storage medium
CN115986172B (en) Monitoring system and method for hydrogen fuel cell
CN112782606A (en) Current precision testing method and system for power module in server
CN110767259A (en) Power failure pressure test method for flash memory device
US8224599B2 (en) System and method for automatic voltage range measurement
CN112649719A (en) Method, device and equipment for testing linear voltage stabilizer in chip
CN112948189B (en) Margin test method, margin test system and related device
CN112360788B (en) Fan stability testing method and device, computer equipment and storage medium
CN113868040A (en) Psys automatic test system, method, building method and device
CN116521480A (en) Power consumption reading precision test system, method, device, equipment and storage medium
CN116185737A (en) DC abnormal power failure detection method and device based on notebook computer and computer equipment
KR101963811B1 (en) Instruction-based Built Off Self-Test Circuit Apparatus
CN111812445B (en) Intelligent capacitor error correction method and device, computer equipment and storage medium
CN112416671B (en) CPU stability testing method, device, computer equipment and storage medium
CN115858218A (en) Failure rate evaluation method and device suitable for CPU unit of relay protection device
CN115729756A (en) Test-accompanied hard disk, and method and system for test-accompanied server based on test-accompanied hard disk
CN113835944A (en) Test method and device for rapidly judging link rate of solid state disk and computer equipment
CN110781043B (en) Quality detection method and device for storage product, storage medium and equipment
CN112466377A (en) SSD power-down recovery test method, system and controller
CN117310454B (en) Chip testing method and related device
CN112286830A (en) Testing method and device of electrical measuring instrument, computer equipment and storage medium
CN116520754B (en) DPS module control method and system based on preloading mode
CN117368682A (en) Data processing method of device test system, storage medium and device test system

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
GR01 Patent grant
GR01 Patent grant