CN117435019A - Server power supply control method, device, equipment and storage medium - Google Patents

Server power supply control method, device, equipment and storage medium Download PDF

Info

Publication number
CN117435019A
CN117435019A CN202311402196.2A CN202311402196A CN117435019A CN 117435019 A CN117435019 A CN 117435019A CN 202311402196 A CN202311402196 A CN 202311402196A CN 117435019 A CN117435019 A CN 117435019A
Authority
CN
China
Prior art keywords
power
power supply
module
server
cpld
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
CN202311402196.2A
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.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Metabrain Intelligent 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 Suzhou Metabrain Intelligent Technology Co Ltd filed Critical Suzhou Metabrain Intelligent Technology Co Ltd
Priority to CN202311402196.2A priority Critical patent/CN117435019A/en
Publication of CN117435019A publication Critical patent/CN117435019A/en
Pending legal-status Critical Current

Links

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
    • 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

Abstract

The invention relates to the technical field of power supply control, and discloses a server power supply control method, a device, equipment and a storage medium. The CPLD detects the running state of each power supply module, acquires the running power of the server when detecting that the running state of the first power supply module is abnormal, and transmits a first control signal to the power control module when the running power of the server is larger than a power limit value so that the power control module reduces the running power of the server below the power limit value, the power limit value is not larger than the product of rated power and M, and M is obtained by subtracting 1 from N. According to the invention, N power supply modules with rated power smaller than the maximum running power of the server are arranged, when a certain power supply module is detected to fail and the running power of the server is larger than the power limiting value, the running power of the server is controlled to be reduced below the power limiting value, and the rated power of the power supply module can be reduced under the condition that the power supply requirement of the server is met and the safety of the power supply module is ensured, so that the cost pressure is reduced.

Description

Server power supply control method, device, equipment and storage medium
Technical Field
The present invention relates to the field of power supply control technologies, and in particular, to a method, an apparatus, a device, and a storage medium for controlling server power supply.
Background
With the development of equipment control technology, the power supply control technology of a server is continuously improved.
In order to meet the reliability of the server and the backup design requirement thereof, a redundant design is generally adopted in common power supply configuration and use. For example, under the condition that the maximum running power of the server is 2700 watts, at least two 2700 watt power supply modules are selected for supplying power, so that when one power supply module is abnormal, other power supply modules can still be used for supplying power for the server.
However, the redundant design requires adding a power module rated for the maximum operating power of the server, resulting in a large cost pressure.
Disclosure of Invention
In view of this, the present invention provides a method, apparatus, device and storage medium for controlling power supply of a server, so as to solve the problem that a power module with rated power being the maximum operating power of the server needs to be added in redundant design, resulting in larger cost pressure.
In a first aspect, the present invention provides a method for controlling power supply to a server, where the server includes a complex programmable logic device CPLD, a power control module, and N power modules, where N is not less than 2; the power supply modules are power supply components in the server, rated power of each power supply module is the same and is smaller than the maximum operating power of the server, and the sum of the rated power is not smaller than the maximum operating power; the CPLD is connected with the power control module and each power module, the N power modules are connected in parallel, and each power module outputs the same electric power; the method comprises the following steps:
The CPLD detects the running state of each power supply module;
when the CPLD detects that the operation state of the first power supply module is abnormal, the CPLD acquires the operation power of the server; wherein the first power module is one of the N power modules;
the CPLD sends a first control signal to the power control module under the condition that the operation power of the server is determined to be larger than a power limit value, so that the power control module reduces the operation power of the server to be lower than the power limit value; wherein the power limit value is not greater than the product of the rated power and M, and M is obtained by subtracting 1 from N.
In an alternative embodiment, when the power control module is a central processing unit CPU, the CPLD sends a first control signal to the power control module when determining that the operating power of the server is greater than a power limit value, so that the power control module reduces the operating power of the server to be less than the power limit value, and the method includes:
the CPLD generates the first control signal under the condition that the running power of the server is determined to be larger than the power limiting value; the first control signal comprises a frequency limit value of the CPU, and the frequency limit value corresponds to the power limit value;
The CPLD sends the first control signal to the CPU to cause the CPU to: and controlling the CPU working frequency value below the frequency limit value, and reducing the operation power of the server below the power limit value.
In an alternative embodiment, the server further comprises a power module access terminal; the input end of the first power supply module is connected with an external power supply end, and the output end of the first power supply module is connected with the power supply module access end; the CPLD is connected with an in-place signal end, an input end and an output end of the first power supply module through a first pin, a second pin and a third pin respectively;
the CPLD detects the running state of each power module, and comprises the following steps:
the CPLD continuously receives an in-place signal, an input signal and an output signal of the first power supply module through the first pin, the second pin and the third pin respectively;
the CPLD determines an operational state of the first power module by detecting a current in-place signal, a current input signal, and a current output signal of the first power module.
In an alternative embodiment, the CPLD determines the operating state of the first power module by detecting a current in-place signal, a current input signal, and a current output signal of the first power module, comprising:
The CPLD judges whether the current in-place signal is in a low level or not;
the CPLD determines that the running state of the first power supply module is abnormal under the condition that the current in-place signal is determined to be high level;
the CPLD continuously judges whether the current input signal is in a high level or not under the condition that the current bit signal is determined to be in a low level;
the CPLD determines that the running state of the first power supply module is abnormal under the condition that the current input signal is determined to be at a low level;
the CPLD continuously judges whether the current output signal is in a high level or not under the condition that the current input signal is in the high level;
the CPLD determines that the running state of the first power supply module is abnormal under the condition that the current output signal is determined to be at a low level;
and under the condition that the CPLD determines that the current output signal is in a high level, determining that the running state of the first power supply module is normal.
In an alternative embodiment, the maximum operating power of the server is W, the allowable overload ratio of each power supply module is k, and k is the ratio of the actual output power of the power supply module to the rated power; the rated power of each power supply module is P=W/M/k;
After the determining that the operation state of the first power module is normal, the method further includes:
after the CPLD is spaced for a preset time length, returning to execute the step of judging whether the current in-place signal is at a low level; wherein the preset duration and the k are in a negative correlation.
In an alternative embodiment, a communication line is provided between the CPLD and each of the power modules; when N is 2, before the CPLD sends the first control signal to the power control module if it is determined that the operating power of the server is greater than the power limit value, the method further includes:
the CPLD obtains rated power of the power supply module through the communication line;
the CPLD sets first power and judges whether the first power is larger than the rated power or not;
the CPLD returns to execute the step of setting the first power until the latest first power is not larger than the rated power under the condition that the first power is determined to be larger than the rated power;
the CPLD takes the latest first power as the power limit value.
In an alternative embodiment, a power supply current equalizing bus is arranged among the N power supply modules, so that each power supply module outputs the same electric power; the output voltage of each power supply module is a target voltage; the CPLD is also connected with the power supply current sharing bus; the obtaining the operation power of the server includes:
The CPLD determines the output current of each power supply module through the power supply current sharing bus;
the CPLD determines a product of the target voltage, the output current, and the M, and determines the product as an operating power of the server.
In a second aspect, the present invention provides a server power supply control device, where the server includes a complex programmable logic device CPLD, a power control module, and N power modules, where N is not less than 2; the power supply modules are power supply components in the server, rated power of each power supply module is the same and is smaller than the maximum operating power of the server, and the sum of the rated power is not smaller than the maximum operating power; the CPLD is connected with the power control module and each power module, the N power modules are connected in parallel, and each power module outputs the same electric power; the device comprises:
the first detection module is used for detecting the operation state of each power supply module;
the first acquisition module is used for acquiring the operation power of the server when the operation state of the first power supply module is detected to be abnormal; wherein the first power module is one of the N power modules;
The first sending module is used for sending a first control signal to the power control module under the condition that the operation power of the server is determined to be larger than a power limit value, so that the power control module reduces the operation power of the server to be lower than the power limit value; wherein the power limit value is not greater than the product of the rated power and M, and M is obtained by subtracting 1 from N.
In a third aspect, the present invention provides a computer device comprising: the server power supply control method comprises the steps of storing computer instructions in a memory, and executing the computer instructions by the processor, wherein the memory and the processor are in communication connection, and the processor executes the server power supply control method according to the first aspect or any corresponding embodiment of the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium having stored thereon computer instructions for causing a computer to execute the server power supply control method of the first aspect or any one of the embodiments corresponding thereto.
The invention provides a server power supply control method, a device, equipment and a storage medium, wherein the server comprises a complex programmable logic device CPLD, a power control module and N power supply modules, wherein N is not less than 2; the power supply modules are power supply components in the server, rated power of each power supply module is the same and smaller than the maximum operating power of the server, and sum of rated power is not smaller than the maximum operating power; the CPLD is connected with the power control module and each power module, the N power modules are connected in parallel, and each power module outputs the same electric power. The CPLD detects the running state of each power supply module; when the CPLD detects that the operation state of the first power supply module is abnormal, the CPLD acquires the operation power of the server; wherein the first power module is one of N power modules; under the condition that the CPLD determines that the running power of the server is larger than the power limiting value, a first control signal is sent to the power control module, so that the power control module reduces the running power of the server below the power limiting value; wherein the power limit value is not greater than the product of rated power and M, and M is obtained by subtracting 1 from N. According to the invention, N power supply modules with rated power smaller than the maximum running power of the server are arranged, when a certain power supply module is detected to fail and the running power of the server is larger than the power limiting value, the running power of the server is controlled to be reduced below the power limiting value, and the rated power of the power supply module can be reduced under the condition that the power supply requirement of the server is met and the safety of the power supply module is ensured, so that the cost pressure is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a server power control method according to an embodiment of the invention;
FIG. 2 is a schematic diagram of a device connection according to an embodiment of the invention;
FIG. 3 is a flow chart of another server power control method according to an embodiment of the invention;
FIG. 4 is a flow chart of yet another server power control method according to an embodiment of the present invention;
FIG. 5 is a flow chart of yet another server power control method according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of another device connection according to an embodiment of the invention;
fig. 7 is a block diagram of a server power supply control apparatus according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a hardware structure of a computer device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
According to an embodiment of the present invention, there is provided a server power supply control method embodiment, it being noted that the steps shown in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowchart, in some cases the steps shown or described may be performed in an order other than that shown or described herein.
As shown in fig. 1, the present embodiment proposes a first method for controlling power supply to a server, where the server includes a complex programmable logic device CPLD, a power control module, and N power modules, where N is not less than 2; the power supply modules are power supply components in the server, rated power of each power supply module is the same and smaller than the maximum operating power of the server, and sum of rated power is not smaller than the maximum operating power; the CPLD is connected with the power control module and each power module, the N power modules are connected in parallel, and each power module outputs the same electric power. The method may comprise the steps of:
S101, detecting the running state of each power supply module by the CPLD.
Specifically, N is a positive integer not less than 2. Alternatively, N may be 2.
Specifically, the N power modules may be connected in parallel to a power module access terminal in the server, for example, a power module connector on the motherboard, and further, for example, a power management system or a power distribution unit in the server. Each power module can independently supply power and output the same electric power. The power supply module can be a common redundant power supply (Common Redundant Power Supplies, CRPS).
The power control module may be a module for controlling the running power of the server, such as a central processing unit (Central Processing Unit, CPU). It should be noted that, the CPU may control the operation power of the server by adjusting its own operating frequency.
As shown in fig. 2, in this embodiment, n=2 is taken as an example, and a connection schematic diagram among the CPLD, the power module connector, the power control module, the power module 0 and the power module 1 is provided, so as to better embody the connection relationship among the CPLD, the power module connector, the power control module and the N power modules. Wherein the power module 0 is connected to the power module connector in parallel with the power module 1.
Specifically, the power rating of each power module is the same. The rated power of each power module is less than the maximum operating power of the server, and the sum of the rated power of each power module is greater than the maximum operating power. For example, when the maximum operating power of the server is 2700 watts, the power module may be rated at 2200 watts.
Specifically, the CPLD may be connected to each power module, and detect an operation state of each power module, respectively. It is understood that the operating state of the power module may include both normal and abnormal states.
When the operation state of a certain power module is abnormal, it means that the power module has failed, and it is not possible to supply power to and output electric power from the server.
S102, when the CPLD detects that the operation state of the first power supply module is abnormal, the CPLD acquires the operation power of the server. Wherein the first power module is one of N power modules.
The first power module is one of the N power modules.
Specifically, when detecting that the operation state of the first power supply module is abnormal, the CPLD can determine that the first power supply module fails, and then can perform power supply control on the power control module and other power supply modules, so that the other power supply modules can avoid overload of the other power supply modules to output electric power while meeting the operation power requirement of the server, avoid damage of the power supply modules, and improve the safety of the power supply modules.
Alternatively, the CPLD may be communicatively coupled to a related component in the server, such as a CPU or other controller, to obtain the operating power of the server.
Alternatively, the CPLD may also determine the operating power of the server by acquiring the power output by each power module, according to the power output by each power module.
S103, under the condition that the operating power of the server is larger than the power limiting value, the CPLD sends a first control signal to the power control module so that the power control module reduces the operating power of the server below the power limiting value; wherein the power limit value is not greater than the product of rated power and M, and M is obtained by subtracting 1 from N.
The power limiting value can be used for limiting the operation power of the server, so that the excessive load output of the rest effective power supply modules for meeting the operation power requirement of the server is avoided.
The power limit value may be set in advance according to the rated power and the number of the power supply modules.
Specifically, the present embodiment may calculate a product of the rated power and M in advance, and then set a power limit value according to the product, where the power limit value is not greater than the product.
Specifically, the CPLD may determine whether the operating power of the server is greater than the power limit value after obtaining the operating power of the server. If not, the operation power of the server is not limited, that is, the operation power of the server is not reduced by the power control module. If so, the CPLD may generate a first control signal and send it to the power control module, such that the power control module reduces the operating power of the server below a power limit, i.e., reduces the operating power to no greater than the power limit.
It can be understood that the power module with rated power smaller than the maximum running power of the server is selected in this embodiment, so that redundant power supply to the server can be satisfied. The rated power of the power supply module is effectively reduced, so that the cost pressure and the space size pressure are reduced.
In the related art, as server configuration and technology are gradually upgraded, the maximum operating power of the server becomes higher and higher, and the space size pressure in some high-power server applications becomes higher and higher. And as the power rating of the power module increases, the size of the power module also increases, resulting in further increases in space size pressure in server applications. The embodiment can also effectively reduce the space size pressure in server application under the condition of effectively reducing the rated power of the power supply module.
According to the server power supply control method provided by the embodiment, a complex programmable logic device CPLD, a power control module and N power supply modules are included in the server, and N is not less than 2; the power supply modules are power supply components in the server, rated power of each power supply module is the same and smaller than the maximum operating power of the server, and sum of rated power is not smaller than the maximum operating power; the CPLD is connected with the power control module and each power module, the N power modules are connected in parallel, and each power module outputs the same electric power. The CPLD detects the running state of each power supply module; when the CPLD detects that the operation state of the first power supply module is abnormal, the CPLD acquires the operation power of the server; wherein the first power module is one of N power modules; under the condition that the CPLD determines that the running power of the server is larger than the power limiting value, a first control signal is sent to the power control module, so that the power control module reduces the running power of the server below the power limiting value; wherein the power limit value is not greater than the product of rated power and M, and M is obtained by subtracting 1 from N. According to the embodiment, N power supply modules with rated power smaller than the maximum running power of the server are arranged, when a certain power supply module is detected to fail and the running power of the server is larger than the power limiting value, the running power of the server is controlled to be reduced below the power limiting value, and the rated power of the power supply modules can be reduced under the condition that the power supply requirement of the server is met and the safety of the power supply modules is guaranteed, so that the cost pressure is reduced.
Based on fig. 1, the present embodiment proposes a second server power supply control method. In this method, when the power control module is a central processing unit CPU, step S103 may specifically include the following steps:
the CPLD generates a first control signal under the condition that the running power of the server is determined to be larger than a power limit value; the first control signal includes a frequency limit value of the CPU, where the frequency limit value corresponds to the power limit value.
The CPLD sends a first control signal to the CPU to cause the CPU to: and controlling the CPU working frequency value below the frequency limit value, and reducing the running power of the server below the power limit value.
The frequency limit value of the CPU may be preset. Specifically, the frequency limit value may be set according to the above power limit value, the CPU performance parameter and the operation characteristic, so that the CPU may reduce its own operating frequency according to the frequency limit value, and further control the operation power of the server below the power limit value.
The operation power of the server and the operation frequency of the CPU are in positive correlation. When the running power of the server is greater than the power limit value, it can be stated that the operating frequency of the CPU is greater than the frequency limit value.
In particular, the CPLD may be connected to a CPU in the server. The CPLD can send the first control signal to the CPU, the CPU can analyze the first control signal to obtain a frequency limit value carried by the first control signal, and then the CPU can reduce the working frequency of the CPU to be below the frequency limit value. At this time, the running power of the server may be reduced as the CPU operating frequency value decreases, i.e., may be reduced below the power limit value.
According to the server power supply control method, the operating power of the server can be controlled to be reduced below the power limiting value by controlling the working frequency value of the CPU to be reduced below the frequency limiting value, so that the control of the operating power of the server is realized, the requirement of the operating power of the server can be met by the residual effective power supply module, and the safety of the residual effective power supply module is guaranteed.
As shown in fig. 1, the present embodiment proposes a third server power supply control method. In the method, the server also comprises a power module access terminal. The input end of the first power supply module is connected with an external power supply end, and the output end of the first power supply module is connected with the power supply module access end. The CPLD is connected with the bit signal end, the input end and the output end of the first power supply module through the first pin, the second pin and the third pin respectively. In this method, step S101 may specifically include:
S1011, CPLD continuously receives the bit signal, the input signal and the output signal of the first power supply module through the first pin, the second pin and the third pin respectively.
S1012, the CPLD determines the operating state of the first power module by detecting the current in-place signal, the current input signal, and the current output signal of the first power module.
Specifically, the input end of each power module is connected with an external power supply end, and the output end of each power module is connected with the access end of the power module.
The external power supply terminal can provide alternating current with a certain magnitude for the power module, such as 220V.
It should be noted that, each power module may only supply and output electric power to the server if it normally receives power from the external power supply terminal.
The CPLD can continuously collect the on-site signals of the power modules from the on-site signal end of any power module, and determine whether the power module is on-site according to the on-site signals. Specifically, the CPLD may continuously receive the bit signal of the first power module through the first pin.
Specifically, the CPLD may continuously receive the input signal of the first power module through the second pin, and may detect, according to the current input signal, whether the first power module receives power from the external power supply terminal, that is, detect whether the first power module has a power failure condition.
Specifically, the CPLD may continuously receive the output signal of the first power module through the third pin, and may detect whether the first power module has output electric power according to the current output signal.
Specifically, the CPLD may determine the operating state of the first power module according to the current in-place signal, the current input signal, and the current output signal.
It should be noted that, the CPLD determines that the operation state of the first power supply module is normal only when it is determined that the first power supply module is in place according to the current in-place signal, it is determined that the external power supply terminal supplies power to the first power supply module according to the current input signal, and it is determined that the first power supply module has output electric power according to the current output signal. Otherwise, determining that the operation state of the first power supply module is abnormal.
Optionally, the step S1011 may specifically include:
the CPLD determines whether the current bit signal is low.
And under the condition that the current bit signal is determined to be high level, the CPLD determines that the running state of the first power supply module is abnormal.
And the CPLD continuously judges whether the current input signal is in a high level or not under the condition that the current bit signal is in a low level.
And under the condition that the CPLD determines that the current input signal is at a low level, determining that the running state of the first power supply module is abnormal.
And under the condition that the CPLD determines that the current input signal is at the high level, continuously judging whether the current output signal is at the high level.
And under the condition that the CPLD determines that the current output signal is at a low level, determining that the running state of the first power supply module is abnormal.
And under the condition that the CPLD determines that the current output signal is in a high level, determining that the running state of the first power supply module is normal.
It should be noted that, if the current bit signal is at a low level, it may be determined that the first power module is in bit. If the current in-bit signal is at a high level, the first power supply module can be determined to be not in-bit, so that the operation state of the first power supply module is determined to be abnormal.
If the current input signal is at a high level, it can be determined that the external power supply terminal supplies power to the first power supply module. If the current input signal is at a low level, it may be determined that the external power supply terminal does not supply power to the first power module, thereby determining that the operation state of the first power module is abnormal.
If the current output signal is high, it may be determined that the first power supply module has output electric power. If the current input signal is at a low level, it may be determined that the first power module does not output electric power, and thus it may be determined that the operation state of the first power module is abnormal.
Optionally, in the other server power supply control method provided in this embodiment, the maximum operating power of the server is W, the allowable overload ratio of each power supply module is k, and the allowable overload ratio is a ratio of the actual output power of the power supply module to the rated power. The rated power p=w/M/k of each power supply module.
After determining that the operating state of the first power module is normal, the method further includes:
after the preset time, the CPLD returns to execute the step of judging whether the current bit signal is at a low level. Wherein the preset time length and k are in negative correlation.
Where k is greater than 1, such as 1.25. It should be noted that, in this embodiment, the rated power of the power supply module may be selected according to the maximum operating power W of the server, the allowable overload proportion k, and the number N of power supply modules. When W is 2700 watts, k is 1.25, n is 2, M is 1, and the rated power of the power module is selected to be p=2700+.1+.1.25=2200. At this time, in this embodiment, two power supply modules with rated power 2200 and allowable overload ratio of 1.25 may be selected to supply redundant power to the server.
It should be noted that, in this embodiment, the polling detection may be performed on the running state of the first power module by setting a preset duration. Specifically, in this embodiment, the running state of the first power module is detected every preset time period, so that the maximum time period between when the first power module starts to have an abnormality and when the abnormality is detected is the preset time period. The preset duration and k are in a negative correlation relationship, namely when k is larger, the preset duration is smaller. For example, when k is 1.25, the preset duration may be set to 10 milliseconds. It can be appreciated that when the power module is selected, the power module is required to be ensured to have the performance of operating for 10 ms under the 125% load (overpower) state without being damaged. At this time, the embodiment can ensure the safety of the power supply modules during the period that one power supply module fails and is powered by the other power supply modules without timely detecting the failure of the power supply modules.
As shown in fig. 3, the present embodiment proposes a flowchart of polling detection for the operation state of the power module, taking n=2 as an example, so as to better explain the process of detecting the operation state of the first power module by the CPLD. Fig. 3 includes the following steps:
s301, starting a flow, and detecting a dual-power supply bit signal by the CPLD.
Specifically, the CPLD detects the dual-power on-bit signal, that is, detects whether the dual-power on-bit signal is a high-level signal, so as to determine whether the dual-power is on-bit at the same time.
S302, the CPLD judges whether the 1+1 dual power supplies are in place. If not, CPLD power limiting is started. If yes, go to step S303.
It should be noted that when N is 2, the N power modules can be regarded as 1+1 dual power sources.
Specifically, in this embodiment, when it is determined that the 1+1 dual power supplies are not in place at the same time, it may be determined that one power supply module fails, and the CPLD power limitation may be started, that is, the running power of the server is obtained, and when the running power is greater than the power limitation value, the running power of the server is controlled to be reduced below the power limitation value.
S303, CPLD detects the dual-power VIN_good signal.
The vin_good signal is the input signal of the power module.
Specifically, the CPLD detects the dual-power vin_good signal, that is, detects whether the dual-power vin_good signal is a low-level signal, so as to determine whether the external power supply terminal supplies power to the dual-power.
S304, the CPLD judges whether the 1+1 dual power supply VIN_good is normal. If not, CPLD power limiting is started. If yes, step S305 is performed.
Specifically, when the vin_good signal is a high level signal, the vin_good signal is normal, that is, the external power supply terminal supplies power to the power module. Otherwise, the power supply is abnormal, and the external power supply terminal does not supply power to the power supply module.
S305, the CPLD detects the dual-power PWOK signal.
The PWOK signal is the output signal of the power module.
Specifically, the CPLD detects the dual-power PWOK signal, that is, detects whether the output signals of the dual-power are low-level signals, so as to determine whether the dual-power has output electric power.
S306, the CPLD judges whether the 1+1 dual power supply PWOK signals are normal. If not, CPLD power limiting is started. If yes, the process returns to step S301 after a delay of 10 ms.
Specifically, when the PWOK signal is a high level signal, the PWOK signal is normal, i.e. the external power supply terminal has power supply to the power module. Otherwise, the power supply is abnormal, and the external power supply terminal does not supply power to the power supply module.
It can be appreciated that, in this embodiment, through the in-place signal, the input signal and the output signal of the power module, whether the power module has a power failure, a failure or an abnormal pull-out state or the like can be detected, so as to determine whether the power module has a redundancy loss. The embodiment can also output an alarm when the abnormality of the power supply module is determined, and remind a user to carry out maintenance treatment according to the alarm.
The server power supply control method provided by the embodiment can effectively realize the detection of the running state of the first power supply module, ensure the improvement of detection accuracy, and ensure the safety of the power supply modules during the period that one power supply module fails to be detected in time and power is supplied by the other power supply modules.
Based on fig. 1, the present embodiment proposes a fourth server power supply control method. In this method, a communication line is provided between the CPLD and each power module. When N is 2, before the CPLD sends the first control signal to the power control module in the case where it is determined that the operating power of the server is greater than the power limit value, the method further includes:
the CPLD obtains rated power of the power supply module through a communication line.
The CPLD sets a first power and determines whether the first power is greater than a rated power.
And under the condition that the first power is determined to be larger than the rated power, the CPLD returns to the step of setting the first power by the CPLD until the latest first power is not larger than the rated power.
The CPLD takes the latest first power as a power limit value.
The communication line may be an integrated circuit bus (Inter-Integrated Circuit, I2C). At this time, a Data line (SDA) and a clock line (Serial Clock Line, SCL) may be included in the communication line.
Specifically, the CPLD may obtain the rated power of the power module through the communication line, then set the first power according to the rated power, and determine whether the first power set currently is greater than the rated power, and reset the first power if so, until the latest first power is not greater than the rated power. The latest first power may then be determined as the power limit value.
As shown in fig. 4, the present embodiment proposes a flowchart of setting a power limit value to better explain the setting process of the power limit value. Fig. 4 includes the following steps:
s401, starting the flow, and capturing power information by the CPLD through I2C communication.
S402, the CPLD sets a power limit value of the server.
S403, the CPLD judges whether the currently set power limit value is smaller than the rated power of the power supply module. If not, the process returns to step S402. If yes, go to step S404.
S404, the CPLD determines that the power limit value is successfully set, and sets power limit polling with a period of 10 milliseconds.
According to the server power supply control method, when N is 2, the setting of the server power limit value can be effectively achieved, the server power limit value can be ensured to be not larger than the rated power of the power supply module, and therefore the power supply requirement of the server and the safety of the power supply module are effectively ensured.
Based on fig. 1, the present embodiment proposes a fifth server power supply control method. In the method, a power supply current equalizing bus is arranged among N power supply modules and used for enabling each power supply module to output the same electric power. The output voltage of each power supply module is a target voltage. The CPLD is also connected with a power supply current sharing bus. Obtaining the running power of the server, including:
the CPLD determines the output current of each power supply module through a power supply current sharing bus.
The CPLD determines the product of the target voltage, the output current, and M, and determines the product as the operating power of the server.
When each power module supplies power, the output voltage of each power module may be the same and constant target voltage. And each power module can output the same current through a power current equalizing bus. Therefore, each power module can output the same electric power through the power supply current equalizing bus.
Specifically, the CPLD may be connected to a power supply current sharing bus, and determine an output current of each power supply module through the power supply current sharing bus. The CPLD may then calculate the product of the target voltage, the output current, and M, and determine as the real-time operating power of the server.
It should be noted that, the CPLD may also directly obtain the running power of the server through a communication line with the CPU and the related controller. The CPLD determines the output current of the power supply module through the power supply current sharing bus, so that the determination speed of the running power of the server can be effectively improved according to the mode of calculating the running power of the server by the output current, and further the control efficiency and accuracy are improved.
As shown in fig. 5, the present embodiment describes a process of limiting the operating power of the server in combination with determining the operating power of the server through the power supply current sharing bus and reducing the operating power of the server by reducing the operating frequency of the CPU. Fig. 5 includes the following steps:
s501, starting a server power limiting flow.
S502, reading the power limit value.
S503, detecting a power Ishare signal.
The power supply Ishare signal is the signal of the power supply current sharing bus.
S504, calculating the running power of the server.
S505, judging whether the running power of the server is larger than a power limit value. If yes, go to step S506. If not, after a 1 millisecond delay, the process returns to step S503.
S506, reducing the CPU working frequency, and returning to the step S505.
As shown in fig. 6, in this embodiment, taking n=2 as an example, a connection schematic diagram among the CPLD, the power module connector, the CPU, the power module 0 and the power module 1 is provided, so as to better explain the connection relationship among the CPLD, the CPU, the power module connector and the N power modules.
Referring to fig. 6, the power module 0 and the power module 1 respectively receive external a-path power supply and external B-path power supply, and are connected to an access terminal of the power module, so as to realize power supply to relevant components in the server. Four lines are arranged between the CPLD and the two power supply modules to carry out I2C signal communication and acquisition of VIN_good signal, PWOK signal and in-place signal. The VIN_good signal is used for determining whether an external power supply end supplies power to the power supply module, the PWOK signal is used for determining whether the power supply module outputs electric power, and the in-place signal is used for determining whether the power supply module is in place. And a power supply current-sharing bus is further arranged between the two power supply modules, the CPLD is connected with the power supply current-sharing bus, and Ishare signals are collected to calculate the running power of the server. And the CPLD is also connected with the CPU, and the running power of the server is controlled by the CPU.
According to the server power supply control method, the output current of the power supply module can be determined through the power supply current sharing bus, so that the running power of the server is calculated according to the output current, and the control efficiency and accuracy are effectively guaranteed.
The embodiment also provides a server power supply control device, which is used for implementing the above embodiment and the preferred implementation manner, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
As shown in fig. 7, the present embodiment proposes a server power supply control device, where the server includes a complex programmable logic device CPLD, a power control module, and N power modules, where N is not less than 2; the power supply modules are power supply components in the server, rated power of each power supply module is the same and smaller than the maximum operating power of the server, and sum of rated power is not smaller than the maximum operating power; the CPLD is connected with the power control module and each power module, the N power modules are connected in parallel, and each power module outputs the same electric power. The device comprises:
the first detection module 701 is configured to detect an operation state of each power module.
The first obtaining module 702 is configured to obtain an operation power of the server when an operation state abnormality of the first power module is detected. Wherein the first power module is one of N power modules.
A first sending module 703, configured to send a first control signal to the power control module to enable the power control module to reduce the operating power of the server below the power limit value when it is determined that the operating power of the server is greater than the power limit value; wherein the power limit value is not greater than the product of rated power and M, and M is obtained by subtracting 1 from N.
Optionally, when the power control module is a central processing unit CPU, the first sending module 703 is further configured to generate a first control signal when it is determined that the running power of the server is greater than the power limit value; the first control signal includes a frequency limit value of the CPU, where the frequency limit value corresponds to the power limit value.
Optionally, the first sending module 703 is further configured to send a first control signal to the CPU, so that the CPU: and controlling the CPU working frequency value below the frequency limit value, and reducing the running power of the server below the power limit value.
Optionally, the server further comprises a power module access terminal; the input end of the first power supply module is connected with an external power supply end, and the output end of the first power supply module is connected with the access end of the power supply module; the CPLD is connected with the bit signal end, the input end and the output end of the first power supply module through the first pin, the second pin and the third pin respectively.
The first detection module 701 is further configured to continuously receive an in-place signal, an input signal, and an output signal of the first power module through the first pin, the second pin, and the third pin, respectively.
The first detection module 701 is further configured to determine an operation state of the first power module by detecting a current in-place signal, a current input signal, and a current output signal of the first power module.
Optionally, the first detection module 701 is further configured to: it is determined whether the current bit signal is low. Determining that the operation state of the first power supply module is abnormal under the condition that the current in-place signal is high level; under the condition that the current bit signal is determined to be at a low level, continuously judging whether the current input signal is at a high level or not; determining that the operation state of the first power supply module is abnormal under the condition that the current input signal is determined to be at a low level; under the condition that the current input signal is determined to be at a high level, continuously judging whether the current output signal is at the high level or not; determining that the operation state of the first power supply module is abnormal under the condition that the current output signal is determined to be at a low level; and under the condition that the current output signal is determined to be at a high level, determining that the operation state of the first power supply module is normal.
Optionally, the maximum operating power of the server is W, the allowable overload ratio of each power supply module is k, and k is the ratio of the actual output power of the power supply module to the rated power. The rated power p=w/M/k of each power supply module. The apparatus further comprises:
the triggering module is configured to trigger the first detecting module 701 after determining that the operation state of the first power module is normal, and after a preset time interval, so that the first detecting module 701 determines whether the current in-place signal is at a low level. Wherein the preset time length and k are in negative correlation.
Optionally, a communication line is arranged between the CPLD and each power module. When N is 2, the apparatus further comprises:
the second acquisition module is used for acquiring rated power of the power supply module through a communication line before the CPLD sends the first control signal to the power control module under the condition that the running power of the server is determined to be larger than the power limit value;
the setting module is used for setting the first power;
the judging module is used for judging whether the first power is larger than the rated power or not;
the triggering module is used for triggering the setting module until the latest first power is not larger than the rated power under the condition that the first power is larger than the rated power;
As a module for taking the latest first power as a power limit value.
Optionally, a power supply current equalizing bus is arranged among the N power supply modules, so that each power supply module outputs the same electric power; the output voltage of each power supply module is a target voltage; the CPLD is also connected with a power supply current sharing bus;
the first acquisition module 702 is further configured to: determining the output current of each power module through a power supply current sharing bus; the product of the target voltage, the output current and M is determined and the product is determined as the operating power of the server.
Further functional descriptions of the above respective modules and units are the same as those of the above corresponding embodiments, and are not repeated here.
The server power control device in this embodiment is presented in the form of functional units, where the units refer to ASIC (Application Specific Integrated Circuit ) circuits, processors and memories executing one or more software or fixed programs, and/or other devices that can provide the above-described functions.
The embodiment of the invention also provides computer equipment, which is provided with the server power supply control device shown in the figure 7.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a computer device according to an alternative embodiment of the present invention, as shown in fig. 8, the computer device includes: one or more processors 10, memory 20, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are communicatively coupled to each other using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the computer device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In some alternative embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple computer devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 10 is illustrated in fig. 8.
The processor 10 may be a central processor, a network processor, or a combination thereof. The processor 10 may further include a hardware chip, among others. The hardware chip may be an application specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general-purpose array logic, or any combination thereof.
Wherein the memory 20 stores instructions executable by the at least one processor 10 to cause the at least one processor 10 to perform the methods shown in implementing the above embodiments.
The memory 20 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, memory 20 may optionally include memory located remotely from processor 10, which may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk, or solid state disk; the memory 20 may also comprise a combination of the above types of memories.
The computer device also includes a communication interface 30 for the computer device to communicate with other devices or communication networks.
The embodiments of the present invention also provide a computer readable storage medium, and the method according to the embodiments of the present invention described above may be implemented in hardware, firmware, or as a computer code which may be recorded on a storage medium, or as original stored in a remote storage medium or a non-transitory machine readable storage medium downloaded through a network and to be stored in a local storage medium, so that the method described herein may be stored on such software process on a storage medium using a general purpose computer, a special purpose processor, or programmable or special purpose hardware. The storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, a solid state disk or the like; further, the storage medium may also comprise a combination of memories of the kind described above. It will be appreciated that a computer, processor, microprocessor controller or programmable hardware includes a storage element that can store or receive software or computer code that, when accessed and executed by the computer, processor or hardware, implements the methods illustrated by the above embodiments.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope of the invention as defined by the appended claims.

Claims (10)

1. A server power supply control method is characterized in that the server comprises a complex programmable logic device CPLD, a power control module and N power supply modules, wherein N is not less than 2; the power supply modules are power supply components in the server, rated power of each power supply module is the same and is smaller than the maximum operating power of the server, and the sum of the rated power is not smaller than the maximum operating power; the CPLD is connected with the power control module and each power module, the N power modules are connected in parallel, and each power module outputs the same electric power; the method comprises the following steps:
the CPLD detects the running state of each power supply module;
when the CPLD detects that the operation state of the first power supply module is abnormal, the CPLD acquires the operation power of the server; wherein the first power module is one of the N power modules;
The CPLD sends a first control signal to the power control module under the condition that the operation power of the server is determined to be larger than a power limit value, so that the power control module reduces the operation power of the server to be lower than the power limit value; wherein the power limit value is not greater than the product of the rated power and M, and M is obtained by subtracting 1 from N.
2. The method of claim 1, wherein when the power control module is a central processing unit CPU, the CPLD sending a first control signal to the power control module to cause the power control module to reduce the operating power of the server below a power limit value if it is determined that the operating power of the server is greater than the power limit value, comprising:
the CPLD generates the first control signal under the condition that the running power of the server is determined to be larger than the power limiting value; the first control signal comprises a frequency limit value of the CPU, and the frequency limit value corresponds to the power limit value;
the CPLD sends the first control signal to the CPU to cause the CPU to: and controlling the CPU working frequency value below the frequency limit value, and reducing the operation power of the server below the power limit value.
3. The method of claim 1, wherein the server further comprises a power module access terminal; the input end of the first power supply module is connected with an external power supply end, and the output end of the first power supply module is connected with the power supply module access end; the CPLD is connected with an in-place signal end, an input end and an output end of the first power supply module through a first pin, a second pin and a third pin respectively;
the CPLD detects the running state of each power module, and comprises the following steps:
the CPLD continuously receives an in-place signal, an input signal and an output signal of the first power supply module through the first pin, the second pin and the third pin respectively;
the CPLD determines an operational state of the first power module by detecting a current in-place signal, a current input signal, and a current output signal of the first power module.
4. A method according to claim 3, wherein the CPLD determining the operating state of the first power module by detecting a current on-bit signal, a current input signal, and a current output signal of the first power module, comprises:
the CPLD judges whether the current in-place signal is in a low level or not;
The CPLD determines that the running state of the first power supply module is abnormal under the condition that the current in-place signal is determined to be high level;
the CPLD continuously judges whether the current input signal is in a high level or not under the condition that the current bit signal is determined to be in a low level;
the CPLD determines that the running state of the first power supply module is abnormal under the condition that the current input signal is determined to be at a low level;
the CPLD continuously judges whether the current output signal is in a high level or not under the condition that the current input signal is in the high level;
the CPLD determines that the running state of the first power supply module is abnormal under the condition that the current output signal is determined to be at a low level;
and under the condition that the CPLD determines that the current output signal is in a high level, determining that the running state of the first power supply module is normal.
5. The method of claim 4, wherein the maximum operating power of the server is W, the allowable overload ratio of each of the power supply modules is k, and k is the ratio of the actual output power of the power supply module to the rated power; the rated power of each power supply module is P=W/M/k;
After the determining that the operation state of the first power module is normal, the method further includes:
after the CPLD is spaced for a preset time length, returning to execute the step of judging whether the current in-place signal is at a low level; wherein the preset duration and the k are in a negative correlation.
6. The method of claim 1, wherein a communication line is provided between the CPLD and each of the power modules; when N is 2, before the CPLD sends the first control signal to the power control module if it is determined that the operating power of the server is greater than the power limit value, the method further includes:
the CPLD obtains rated power of the power supply module through the communication line;
the CPLD sets first power and judges whether the first power is larger than the rated power or not;
the CPLD returns to execute the step of setting the first power until the latest first power is not larger than the rated power under the condition that the first power is determined to be larger than the rated power;
the CPLD takes the latest first power as the power limit value.
7. The method of claim 1, wherein a power supply current sharing bus is disposed between the N power supply modules, for enabling each of the power supply modules to output the same electric power; the output voltage of each power supply module is a target voltage; the CPLD is also connected with the power supply current sharing bus; the obtaining the operation power of the server includes:
The CPLD determines the output current of each power supply module through the power supply current sharing bus;
the CPLD determines a product of the target voltage, the output current, and the M, and determines the product as an operating power of the server.
8. The server power supply control device is characterized in that the server comprises a complex programmable logic device CPLD, a power control module and N power supply modules, wherein N is not less than 2; the power supply modules are power supply components in the server, rated power of each power supply module is the same and is smaller than the maximum operating power of the server, and the sum of the rated power is not smaller than the maximum operating power; the CPLD is connected with the power control module and each power module, the N power modules are connected in parallel, and each power module outputs the same electric power; the device comprises:
the first detection module is used for detecting the operation state of each power supply module;
the first acquisition module is used for acquiring the operation power of the server when the operation state of the first power supply module is detected to be abnormal; wherein the first power module is one of the N power modules;
The first sending module is used for sending a first control signal to the power control module under the condition that the operation power of the server is determined to be larger than a power limit value, so that the power control module reduces the operation power of the server to be lower than the power limit value; wherein the power limit value is not greater than the product of the rated power and M, and M is obtained by subtracting 1 from N.
9. A computer device, comprising:
a memory and a processor communicatively coupled to each other, the memory having stored therein computer instructions that, upon execution, perform the server power control method of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon computer instructions for causing a computer to execute the server power supply control method according to any one of claims 1 to 7.
CN202311402196.2A 2023-10-26 2023-10-26 Server power supply control method, device, equipment and storage medium Pending CN117435019A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311402196.2A CN117435019A (en) 2023-10-26 2023-10-26 Server power supply control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311402196.2A CN117435019A (en) 2023-10-26 2023-10-26 Server power supply control method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117435019A true CN117435019A (en) 2024-01-23

Family

ID=89554798

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311402196.2A Pending CN117435019A (en) 2023-10-26 2023-10-26 Server power supply control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117435019A (en)

Similar Documents

Publication Publication Date Title
CN106339058A (en) Dynamic power supply management method and system
CN111475288A (en) Server and power supply protection system thereof
CN111767244A (en) Dual-redundancy computer equipment based on domestic Loongson platform
CN104679610B (en) Management method and device of computer system
CN105095142A (en) System and method for controlling expander card
CN112286709A (en) Diagnosis method, diagnosis device and diagnosis equipment for server hardware faults
CN108027780B (en) Memory content protection circuit
CN114442787B (en) Method and system for realizing complete machine power consumption callback after server entering power consumption capping
CN113467595B (en) Four-way server power consumption management device
CN103150224B (en) For improving the electronic equipment and method that start reliability
CN212541329U (en) Dual-redundancy computer equipment based on domestic Loongson platform
CN111984471B (en) Cabinet power BMC redundancy management system and method
CN111309132B (en) Method for multi-gear power supply redundancy of server
CN113608970A (en) Core board, server, failure recovery method, device and storage medium
CN117453036A (en) Method, system and device for adjusting power consumption of equipment in server
CN116823587A (en) Graphics processor control method and device, electronic equipment and storage medium
CN117331423A (en) Power supply method and device of PCIE equipment, storage medium and electronic device
CN102841634A (en) Server mainboard
CN210721440U (en) PCIE card abnormity recovery device, PCIE card and PCIE expansion system
CN111857302A (en) Reset method, device and equipment of system management bus
CN104423528A (en) Power allocation method and power allocation system for data centre
CN117435019A (en) Server power supply control method, device, equipment and storage medium
CN108196617B (en) BMC time setting method, device and system and readable storage medium
CN107731260B (en) SSD power supply method and system and SSD
CN115098342A (en) System log collection method, system, terminal and storage medium

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