CN111813209B - Power pack management and control method, system, device and computer readable storage medium - Google Patents

Power pack management and control method, system, device and computer readable storage medium Download PDF

Info

Publication number
CN111813209B
CN111813209B CN202010567678.3A CN202010567678A CN111813209B CN 111813209 B CN111813209 B CN 111813209B CN 202010567678 A CN202010567678 A CN 202010567678A CN 111813209 B CN111813209 B CN 111813209B
Authority
CN
China
Prior art keywords
psu
power
psus
average
remaining
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
CN202010567678.3A
Other languages
Chinese (zh)
Other versions
CN111813209A (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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN202010567678.3A priority Critical patent/CN111813209B/en
Publication of CN111813209A publication Critical patent/CN111813209A/en
Application granted granted Critical
Publication of CN111813209B publication Critical patent/CN111813209B/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/263Arrangements for using multiple switchable power supplies, e.g. battery and AC
    • 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/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • 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/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Engineering (AREA)
  • Supply And Distribution Of Alternating Current (AREA)

Abstract

The application discloses a power pack management and control method, system, device and computer readable storage medium, which are applied to a main PSU, and comprise: acquiring the number of PSUs and the power of each PSU; judging whether the number of PSUs is greater than 1; if the power is larger than 1, obtaining the average power of the current PSU according to the power of each PSU; judging whether the average power of the current PSU is greater than a preset power threshold value; if the PSU average power is smaller than the power threshold, removing the power of one PSU from all the PSUs according to a preset removing condition, and calculating the PSU average power of the rest PSUs until the PSU average power of the rest PSUs is larger than the power threshold; if the PSU average power is larger than the power threshold, selecting the PSU number of the remaining PSUs when the PSU average power is closest to the power threshold as the target PSU number; according to a preset selection condition, setting PSUs of the target PSU number to be continuously in a working mode, and switching the rest PSUs into a standby mode; the method and the device can obtain the number of PSUs with the highest working efficiency, thereby reducing power consumption and saving energy cost.

Description

Power pack management and control method, system, device and computer readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, a system, an apparatus, and a computer-readable storage medium for controlling a power bank.
Background
The current servers generally require power redundancy to improve the stability of server power supply, and under such a background, the power supply of the servers generates a large amount of extra power loss, and a data center with a large number of servers may cause hundreds of thousands to millions of losses per month, so how to improve the efficiency of each power supply becomes a problem of more concern to customers.
In the prior art, the power supply information can only be manually inquired, calculated and analyzed, and then the power of the server power supply set is adjusted by manually controlling the working quantity of the power supplies so as to reduce the power consumption of the power supplies, but the efficiency is low and the adjusting effect is poor.
Therefore, a power pack management and control method with more energy saving and higher efficiency is needed.
Disclosure of Invention
In view of the above, the present invention provides a power pack management and control method, system, device and computer readable storage medium, which are more energy-saving and more efficient. The specific scheme is as follows:
a power pack management and control method is applied to a main PSU and comprises the following steps:
acquiring the number of PSUs and the power of each PSU;
judging whether the number of PSUs is greater than 1;
if the power is larger than 1, obtaining the average power of the current PSU according to the power of each PSU;
judging whether the average power of the current PSU is greater than a preset power threshold value;
if the PSU average power is smaller than the preset removal condition, removing the power of one PSU from all PSUs, and calculating the PSU average power of the rest PSUs;
judging whether the PSU average power of the rest PSUs is larger than the power threshold value;
if the PSU average power is smaller than the power threshold, continuously removing the power of one PSU from the rest PSUs, and calculating the PSU average power of the rest PSUs until the PSU average power of the rest PSUs is larger than the power threshold;
if the PSU average power is larger than the power threshold, selecting the PSU number of the remaining PSUs when the PSU average power is closest to the power threshold as a target PSU number;
according to a preset selection condition, setting PSUs of the target PSU number to be continuously in a working mode, and switching the rest PSUs into a standby mode;
wherein the main PSU always maintains an operating mode.
Optionally, the process of acquiring the number of PSUs and the power of each PSU includes:
the number of PSUs and the power of each PSU are obtained in a round-robin manner.
Optionally, the power threshold is 50% of the maximum power of a single PSU.
Optionally, the process of setting the PSUs of the target PSU number to continue to operate and waiting for the rest PSUs according to the preset selection condition includes:
and according to the address sequence of the PSUs, setting the PSUs with the target PSU number to be in the working mode continuously, and switching the rest PSUs to be in the standby mode.
Optionally, the selecting, as the target PSU number, the PSU number when the PSU average power of the remaining PSUs is closest to the power threshold includes:
judging whether the absolute value of the difference between the PSU average power of the current remaining PSU and the power threshold is smaller than the absolute value of the difference between the PSU average power of the last remaining PSU and the power threshold;
if so, selecting the number of the PSUs corresponding to the current residual PSUs as the number of the target PSUs;
and if so, selecting the PSU number corresponding to the last remaining PSU as the target PSU number.
Optionally, the method further includes:
acquiring the current of each PSU;
the process of setting the PSUs with the target PSU number to continue working and standby the other PSUs according to the preset selection condition comprises the following steps:
and according to the current of the PSUs, setting the PSUs of the target PSU number to be in the working mode continuously, and switching the rest PSUs to be in the standby mode.
The invention also discloses a power pack management and control system, which is applied to the main PSU and comprises the following components:
the information acquisition module is used for acquiring the number of the PSUs and the power of each PSU;
the number judgment module is used for judging whether the number of the PSUs is greater than 1;
the PSU average power calculation module is used for obtaining the current PSU average power according to the power of each PSU if the number judgment module judges that the number of the PSUs is larger than 1;
the first power judgment module is used for judging whether the average power of the current PSU is greater than a preset power threshold value;
a first power removing module, configured to remove power of one PSU from all PSUs according to a preset removing condition and calculate PSU average power of remaining PSUs if the first power determining module determines that the current PSU average power is smaller than the power threshold;
the second power judgment module is used for judging whether the PSU average power of the rest PSUs is larger than the power threshold value;
a second power removing module, configured to, if the second power determining module determines that the average PSU power of the remaining PSUs is smaller than the power threshold, continue to remove the power of one PSU from the remaining PSUs, and calculate the average PSU power of the remaining PSUs until the average PSU power of the remaining PSUs is larger than the power threshold;
a number determining module, configured to select, if the second power removing module determines that the average PSU power of the remaining PSUs is greater than the power threshold, the number of PSUs whose average PSU power of the remaining PSUs is closest to the power threshold as a target PSU number;
the mode switching module is used for setting PSUs of the target PSU number to be continuously in a working mode according to a preset selection condition, and switching the other PSUs to be in a standby mode;
wherein the main PSU always maintains an operating mode.
Optionally, the number determining module includes:
the power judging unit is used for judging whether the absolute value of the difference between the PSU average power of the current residual PSU and the power threshold is smaller than the absolute value of the difference between the PSU average power of the last residual PSU and the power threshold;
a first quantity determining unit, configured to select, if the power determining unit determines that an absolute value of a difference between the PSU average power of the current remaining PSU and the power threshold is smaller than an absolute value of a difference between the PSU average power of the last remaining PSU and the power threshold, a PSU quantity corresponding to the current remaining PSU as the target PSU quantity;
and a second quantity determining unit, configured to select, if the power determining unit determines that the absolute value of the difference between the PSU average power of the current remaining PSU and the power threshold is greater than the absolute value of the difference between the PSU average power of the last remaining PSU and the power threshold, the PSU quantity corresponding to the last remaining PSU as the target PSU quantity.
The invention also discloses a power pack, comprising: a plurality of PSUs electrically connected to each other such that one PSU can access information of all remaining PSUs through the electrical connection.
Optionally, the plurality of PSUs are connected via I2C communication lines.
In the invention, the power supply group management and control method is applied to a main PSU and comprises the following steps: acquiring the number of PSUs and the power of each PSU; judging whether the number of PSUs is greater than 1; if the power is larger than 1, obtaining the average power of the current PSU according to the power of each PSU; judging whether the average power of the current PSU is greater than a preset power threshold value; if the PSU average power is smaller than the preset removal condition, removing the power of one PSU from all PSUs, and calculating the PSU average power of the rest PSUs; judging whether the PSU average power of the rest PSUs is larger than a power threshold value; if the PSU average power is smaller than the power threshold, continuously removing the power of one PSU from the rest PSUs, and calculating the PSU average power of the rest PSUs until the PSU average power of the rest PSUs is larger than the power threshold; if the PSU average power is larger than the power threshold, selecting the PSU number of the remaining PSUs when the PSU average power is closest to the power threshold as the target PSU number; according to a preset selection condition, setting PSUs of the target PSU number to be continuously in a working mode, and switching the rest PSUs into a standby mode; wherein the main PSU remains in the operational mode at all times.
The invention judges whether the power of all the current PSUs is excessive or not by presetting a power threshold, comparing the power threshold with the current PSU average power, if so, removing the power of one PSU, then comparing the power threshold with the PSU average power of the rest PSUs again until the PSU average power exceeds the power threshold, and showing that the PSU average power of the previous and next two times is close to the power threshold, at the moment, the PSU average power which is most recently connected with the power threshold can be selected, and according to the corresponding PSU quantity, the number of PSUs which are only needed to operate is determined, so that the load requirement can be met, the working efficiency of the PSUs is improved, the power consumption is reduced, and the energy cost is saved.
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 description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flow chart of a power pack management and control method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating another power management method according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart illustrating another power management method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a power pack management and control system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a power pack control method, which is applied to a main PSU (power supply unit) as shown in figure 1, and comprises the following steps:
s11: the number of PSUs and the power of each PSU are obtained.
Specifically, the main PSU (Power supply unit or Power supply) may first read its own PSU Power, and then obtain the Power of other PSUs through the corresponding communication interfaces, that is, obtain the Power of other slave PSUs, and at the same time obtain the Power of other PSUs, the total number of controllable PSUs connected to the main PSU may be determined through the corresponding response mechanism.
The master PSU is selected based on a preset selection condition, for example, based on an address number of the PSU, and generally any PSU in the power pack can be selected as the master PSU; the master PSU may be connected to all available PSUs in the power pack or to some of the PSUs in the power pack, so that the master PSU only controls the slave PSUs connected to it for communication, on the basis of which the number of PSUs to be controlled may be freely set.
Wherein the obtained number of PSUs comprises the main PSUs; the master PSU can be connected with other slave PSU individual reservation I2C communication interfaces through an individual reservation I2C communication interface, and communicate so that the master PSU can acquire the number of PSUs and the power of each PSU; by designing a single path of I2C-BUS, the communication speed can be improved.
S12: it is determined whether the number of PSUs is greater than 1.
Specifically, if the master PSU detects only itself, subsequent control is not available, and the master PSU continues to operate in the working mode, and if other slave PSUs connected with the master PSU and controlled by the slave PSU are detected, the subsequent control process can be continued, so that the service efficiency of the PSU is improved, and extra loss is reduced.
S13: and if the power is larger than 1, obtaining the average power of the current PSU according to the power of each PSU.
It will be appreciated that the current PSU average power for the current PSU can be obtained by summing the power of each PSU and dividing by the number of current PSUs, and that the PSU average power is used, and of course, the calculation includes the power of the master PSU itself, and each PSU is also the PSU communicatively coupled to the master PSU.
S14: and judging whether the average power of the current PSU is greater than a preset power threshold value.
Specifically, a power threshold is set according to a load curve of a server power supply, the power threshold is set in a range where the server power supply has the highest operating efficiency and the lowest power consumption, for example, the efficiency of the PSU is the highest at about 40% -60%, and the power consumption is the lowest, so that the power threshold is set between 40% -60% of the power of the PSU, of course, since the power threshold corresponds to the current PSU average power, the power threshold is between 40% -60% of the total rated power of the current PSU, and thus, whether the current PSU operates at the state of the highest efficiency can be known by comparing whether the current PSU average power is greater than the power threshold.
It will be appreciated that the power supplies in a power pack are typically of a uniform size, especially for server power supplies, and therefore the power threshold may simply be set according to the maximum power of a normal PSU in the power pack, for example the maximum power of a single PSU may be 800W and the power threshold may be set to half 400W.
S15: if the PSU average power is smaller than the preset removal condition, removing the power of one PSU from all the PSUs, and calculating the PSU average power of the rest PSUs.
Specifically, the removal condition may be to randomly remove one PSU, or remove according to PSU addresses, for example, there are 5 slave PSUs connected to the master PSU, and when the average PSU power of 6 PSUs is smaller than a preset power threshold, the power of one slave PSU may be arbitrarily removed from the 5 slave PSUs, and if the addresses of the 5 slave PSUs are respectively B1 to B5, the slave PSU with the smallest address B1 may be preferentially removed in order according to the addresses, and then the other PSUs may be removed in order of the addresses.
Specifically, assuming there are 5 slave PSUs connected to the master PSU, the average PSU power of the remaining PSUs after removing the power of one slave PSU is the sum of the power of the remaining 4 slave PSUs and the master PSU.
If the average power of the current PSU is greater than the preset power threshold, it indicates that there is no redundant margin for each current PSU, and the load is high, so that subsequent removal is not performed and all PSUs continue to maintain the working mode.
S16: judging whether the PSU average power of the rest PSUs is larger than a power threshold value;
s17: if the PSU average power is smaller than the power threshold, the power of one PSU is continuously removed from the rest PSUs, and the PSU average power of the rest PSUs is calculated until the PSU average power of the rest PSUs is larger than the power threshold.
Specifically, if the average PSU power of the remaining PSUs is still smaller than the power threshold, it indicates that the output power of the PSUs is still excessive, the power of the PSUs needs to be continuously removed until the average PSU power of the remaining PSUs is larger than the power threshold, and the loop is ended.
S18: if the PSU average power of the remaining PSUs is greater than the power threshold, selecting the PSU number when the PSU average power of the remaining PSUs is closest to the power threshold as the target PSU number.
Specifically, if the power threshold is greater than the power threshold, which indicates that the PSU average power of the current remaining PSU and the PSU average power of the last remaining PSU are closest to the power threshold, and the power threshold is between two PSU average powers, then the number of PSUs corresponding to the PSU average power of the remaining PSU closest to the power threshold is selected as the target PSU number, for example, the power threshold is 300, the PSU average power of the last remaining PSU is 270, the relative power threshold difference is 30, the PSU average power of the current remaining PSU is 320, and the relative power threshold difference is 20, then the number of the current remaining PSUs may be selected as the target PSU number, for example, 3, if the PSU average power of the last remaining PSU is 280, the relative power threshold difference is 20, the PSU average power of the current remaining PSU is 350, and the relative power threshold difference is 50, then the number of the last remaining PSU may be selected as the target PSU number, such as 4.
It should be noted that, if the PSU average power of the remaining PSUs is greater than the power threshold after the second determination, that is, after the first execution of S16, the PSU average power of the last remaining PSU is the current PSU average power in S14.
S19: according to the preset selection condition, PSUs with the target PSU number are set to be in the working mode continuously, and the other PSUs are switched into the standby mode.
Specifically, the selection condition may be similar to the removal condition, and the PSUs in the operating mode and the standby mode may be selected according to the address order or randomly, so long as the number of PSUs in the operating mode is equal to the number of target PSUs.
The main PSU always keeps a working mode, and the main PSU does not have the condition of being switched to a standby mode so as to ensure that the main PSU can continuously control each PSU.
Therefore, in the embodiment of the invention, the power threshold is preset, the power threshold is compared with the current PSU average power, whether the power of all the current PSUs is excessive is judged, if the power of one PSU is excessive, the power of the other PSU is removed, the power threshold is compared with the PSU average power of the rest PSUs again until the PSU average power exceeds the power threshold, the PSU average power of the previous PSU and the next PSU is close to the power threshold, the PSU average power which is connected with the power threshold recently can be selected, and according to the corresponding PSU number, the number of PSUs which are needed to operate is determined, so that the load requirement can be met, the working efficiency of the PSUs is improved, the power consumption is reduced, and the energy cost is saved.
The embodiment of the invention discloses a specific power pack management and control method which is applied to a main PSU (power supply unit). Referring to fig. 2, specifically:
s201: the number of PSUs and the power of each PSU are obtained.
Specifically, the number of PSUs and the power of each PSU may be obtained in a round-robin manner.
S202: judging whether the number of PSUs is greater than 1;
s203: if the power is larger than 1, obtaining the average power of the current PSU according to the power of each PSU;
s204: and judging whether the average power of the current PSU is greater than a preset power threshold value.
In particular, the power threshold may be specifically 50% of the maximum power of a single PSU.
S205: if the PSU average power is smaller than the preset removal condition, removing the power of one PSU from all PSUs, and calculating the PSU average power of the rest PSUs;
s206: judging whether the PSU average power of the rest PSUs is larger than a power threshold value;
s207: if the PSU average power is smaller than the power threshold, continuously removing the power of one PSU from the rest PSUs, and calculating the PSU average power of the rest PSUs until the PSU average power of the rest PSUs is larger than the power threshold;
s208: if the PSU average power of the current residual PSU is larger than the power threshold, judging whether the absolute value of the difference between the PSU average power of the current residual PSU and the power threshold is smaller than the absolute value of the difference between the PSU average power of the last residual PSU and the power threshold.
Specifically, by calculating the absolute value of the difference between the PSU average power of the currently remaining PSU and the power threshold and the absolute value of the difference between the PSU average power of the last remaining PSU and the power threshold, it is possible to compare that the two PSU average powers are closer to the power threshold, for example, the power threshold is 300, the PSU average power of the last remaining PSU is 270, the relative power threshold difference is 30, the PSU average power of the currently remaining PSU is 320, and the relative power threshold difference is 20, if the PSU average power of the last remaining PSU is 280, the relative power threshold difference is 20, the PSU average power of the currently remaining PSU is 350, and the relative power threshold difference is 50.
S209: and if so, selecting the PSU number corresponding to the current residual PSU as the target PSU number.
Specifically, if the absolute value of the difference between the current remaining PSUs is smaller than the absolute value of the difference between the last remaining PSUs, it is indicated that the current remaining PSUs are closer to the power threshold, and the PSU number corresponding to the current remaining PSUs is selected as the target PSU number.
S210: and if so, selecting the PSU number corresponding to the last remaining PSU as the target PSU number.
Specifically, if the absolute value of the difference between the last remaining PSUs is smaller than the absolute value of the difference between the current remaining PSUs, it is indicated that the last remaining PSUs are closer to the power threshold, and the PSU number corresponding to the last remaining PSU is selected as the target PSU number.
S211: according to the address sequence of the PSUs, the PSUs with the target number of PSUs are set to be in the working mode continuously, and the other PSUs are switched to be in the standby mode.
Wherein the main PSU remains in the operational mode at all times.
In addition, an embodiment of the present invention further discloses a power pack management and control method, which is shown in fig. 3 and applied to a master PSU, and the method includes:
s31: the number of PSUs, the power of each PSU and the current of each PSU are obtained.
Specifically, on the basis of acquiring the number and power of the PSUs, the current information of the PSUs may also be acquired.
S32: judging whether the number of PSUs is greater than 1;
s33: if the power is larger than 1, obtaining the average power of the current PSU according to the power of each PSU;
s34: judging whether the average power of the current PSU is greater than a preset power threshold value;
s35: if the PSU average power is smaller than the preset removal condition, removing the power of one PSU from all PSUs, and calculating the PSU average power of the rest PSUs;
s36: judging whether the PSU average power of the rest PSUs is larger than a power threshold value;
s37: if the PSU average power is smaller than the power threshold, continuously removing the power of one PSU from the rest PSUs, and calculating the PSU average power of the rest PSUs until the PSU average power of the rest PSUs is larger than the power threshold;
s38: if the PSU average power is larger than the power threshold, selecting the PSU number of the remaining PSUs when the PSU average power is closest to the power threshold as the target PSU number;
s39: according to the current of the PSUs, the PSUs with the target number of the PSUs are set to be in the working mode continuously, and the other PSUs are switched to be in the standby mode.
Specifically, in order to avoid excessive output current of individual PSUs, excessive heat generation and excessive pressure on cables, the PSUs with large current may be selected to enter a standby mode, and the PSUs with relatively small current may continue to be in an operating mode.
Wherein the main PSU remains in the operational mode at all times.
Correspondingly, the embodiment of the present invention further discloses a power pack management and control system, as shown in fig. 4, which is applied to a master PSU, and includes:
an information obtaining module 11, configured to obtain the number of PSUs and power of each PSU;
a quantity judgment module 12, configured to judge whether the number of PSUs is greater than 1;
the PSU average power calculation module 13 is configured to, if the number judgment module 12 judges that the number of PSUs is greater than 1, obtain the current PSU average power according to the power of each PSU;
the first power judgment module 14 is configured to judge whether the current PSU average power is greater than a preset power threshold;
a first power removing module 15, configured to remove power of one PSU from all PSUs according to a preset removing condition and calculate PSU average power of remaining PSUs if the first power determining module 14 determines that the current PSU average power is smaller than the power threshold;
a second power determining module 16, configured to determine whether the PSU average power of the remaining PSUs is greater than a power threshold;
a second power removing module 17, configured to, if the second power determining module 16 determines that the PSU average power of the remaining PSUs is smaller than the power threshold, continue to remove the power of one PSU from the remaining PSUs, and calculate the PSU average power of the remaining PSUs until the PSU average power of the remaining PSUs is larger than the power threshold;
a number determining module 18, configured to select, if the second power removing module 17 determines that the PSU average power of the remaining PSUs is greater than the power threshold, the PSU number at which the PSU average power of the remaining PSUs is closest to the power threshold as the target PSU number;
the mode switching module 19 is configured to set the PSUs of the target PSU number to continue to be in the working mode according to a preset selection condition, and switch the remaining PSUs to be in the standby mode;
wherein the main PSU remains in the operational mode at all times.
Therefore, in the embodiment of the invention, the power threshold is preset, the power threshold is compared with the current PSU average power, whether the power of all the current PSUs is excessive is judged, if the power of one PSU is excessive, the power of the other PSU is removed, the power threshold is compared with the PSU average power of the rest PSUs again until the PSU average power exceeds the power threshold, the PSU average power of the previous PSU and the next PSU is close to the power threshold, the PSU average power which is connected with the power threshold recently can be selected, and according to the corresponding PSU number, the number of PSUs which are needed to operate is determined, so that the load requirement can be met, the working efficiency of the PSUs is improved, the power consumption is reduced, and the energy cost is saved.
Specifically, the information acquiring module 11 may be specifically configured to acquire the number of PSUs and the power of each PSU in a round-robin manner.
Wherein the power threshold may be 50% of the maximum power of a single PSU.
Specifically, the mode switching module 19 may be specifically configured to set the PSUs with the target PSU number to continue to be in the working mode according to the address sequence of the PSUs, and switch the remaining PSUs to be in the standby mode.
Specifically, the number determining module 18 may include a power determining unit, a first number determining unit, and a second number determining unit; wherein the content of the first and second substances,
the power judgment unit is used for judging whether the absolute value of the difference between the PSU average power of the current residual PSU and the power threshold is smaller than the absolute value of the difference between the PSU average power of the last residual PSU and the power threshold;
a first quantity determining unit, configured to select, if the power determining unit determines that the absolute value of the difference between the PSU average power of the current remaining PSU and the power threshold is smaller than the absolute value of the difference between the PSU average power of the last remaining PSU and the power threshold, the number of PSUs corresponding to the current remaining PSU as the target PSU number;
and the second quantity determining unit is used for selecting the PSU quantity corresponding to the last residual PSU as the target PSU quantity if the power judging unit judges that the absolute value of the difference between the PSU average power of the current residual PSU and the power threshold is larger than the absolute value of the difference between the PSU average power of the last residual PSU and the power threshold.
Specifically, the device further comprises a current acquisition unit for acquiring the current of each PSU;
the mode switching module 19 may be further specifically configured to set the PSUs with the target PSU number to continue to be in the working mode according to the current of the PSU, and switch the remaining PSUs to the standby mode.
The embodiment of the invention also discloses a power pack, which comprises: a plurality of PSUs electrically connected to each other such that a master PSU therein can access information of all remaining slave PSUs through the electrical connection;
the master PSU is configured to perform the power pack management method.
Specifically, a plurality of PSUs are connected via an I2C communication line.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The technical content provided by the present invention is described in detail above, and the principle and the implementation of the present invention are explained in this document by applying specific examples, and the above description of the examples is only used to help understanding the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. A power pack management and control method is applied to a main PSU, and comprises the following steps:
acquiring the number of PSUs and the power of each PSU;
judging whether the number of PSUs is greater than 1;
if the power is larger than 1, obtaining the average power of the current PSU according to the power of each PSU;
judging whether the average power of the current PSU is greater than a preset power threshold value;
if the PSU average power is smaller than the preset removal condition, removing the power of one PSU from all PSUs, and calculating the PSU average power of the rest PSUs;
judging whether the PSU average power of the rest PSUs is larger than the power threshold value;
if the PSU average power is smaller than the power threshold, continuously removing the power of one PSU from the rest PSUs, and calculating the PSU average power of the rest PSUs until the PSU average power of the rest PSUs is larger than the power threshold;
if the PSU average power is larger than the power threshold, selecting the PSU number of the remaining PSUs when the PSU average power is closest to the power threshold as a target PSU number;
according to a preset selection condition, setting PSUs of the target PSU number to be continuously in a working mode, and switching the rest PSUs into a standby mode;
wherein the main PSU always keeps a working mode;
wherein the selecting the number of PSUs with the PSU average power of the remaining PSUs closest to the power threshold as the target number of PSUs comprises:
judging whether the absolute value of the difference between the PSU average power of the current remaining PSU and the power threshold is smaller than the absolute value of the difference between the PSU average power of the last remaining PSU and the power threshold;
if so, selecting the number of the PSUs corresponding to the current residual PSUs as the number of the target PSUs;
and if so, selecting the PSU number corresponding to the last remaining PSU as the target PSU number.
2. The power pack management and control method according to claim 1, wherein the process of obtaining the number of PSUs and the power of each PSU comprises:
the number of PSUs and the power of each PSU are obtained in a round-robin manner.
3. The power pack management and control method of claim 1, wherein the power threshold is 50% of a maximum power of a single PSU.
4. The power pack management and control method according to claim 1, wherein the process of setting the target number of PSUs to continue to operate and remaining PSUs to stand by according to a preset selection condition includes:
and according to the address sequence of the PSUs, setting the PSUs with the target PSU number to be in the working mode continuously, and switching the rest PSUs to be in the standby mode.
5. The power pack management method according to any one of claims 1 to 4, further comprising:
acquiring the current of each PSU;
the process of setting the PSUs with the target PSU number to continue working and standby the other PSUs according to the preset selection condition comprises the following steps:
and according to the current of the PSUs, setting the PSUs of the target PSU number to be in the working mode continuously, and switching the rest PSUs to be in the standby mode.
6. A power pack management and control system, applied to a master PSU, comprising:
the information acquisition module is used for acquiring the number of the PSUs and the power of each PSU;
the number judgment module is used for judging whether the number of the PSUs is greater than 1;
the PSU average power calculation module is used for obtaining the current PSU average power according to the power of each PSU if the number judgment module judges that the number of the PSUs is larger than 1;
the first power judgment module is used for judging whether the average power of the current PSU is greater than a preset power threshold value;
a first power removing module, configured to remove power of one PSU from all PSUs according to a preset removing condition and calculate PSU average power of remaining PSUs if the first power determining module determines that the current PSU average power is smaller than the power threshold;
the second power judgment module is used for judging whether the PSU average power of the rest PSUs is larger than the power threshold value;
a second power removing module, configured to, if the second power determining module determines that the average PSU power of the remaining PSUs is smaller than the power threshold, continue to remove the power of one PSU from the remaining PSUs, and calculate the average PSU power of the remaining PSUs until the average PSU power of the remaining PSUs is larger than the power threshold;
a number determining module, configured to select, if the second power removing module determines that the average PSU power of the remaining PSUs is greater than the power threshold, the number of PSUs whose average PSU power of the remaining PSUs is closest to the power threshold as a target PSU number;
the mode switching module is used for setting PSUs of the target PSU number to be continuously in a working mode according to a preset selection condition, and switching the other PSUs to be in a standby mode;
wherein the main PSU always keeps a working mode;
wherein the number determination module comprises:
the power judging unit is used for judging whether the absolute value of the difference between the PSU average power of the current residual PSU and the power threshold is smaller than the absolute value of the difference between the PSU average power of the last residual PSU and the power threshold;
a first quantity determining unit, configured to select, if the power determining unit determines that an absolute value of a difference between the PSU average power of the current remaining PSU and the power threshold is smaller than an absolute value of a difference between the PSU average power of the last remaining PSU and the power threshold, a PSU quantity corresponding to the current remaining PSU as the target PSU quantity;
and a second quantity determining unit, configured to select, if the power determining unit determines that the absolute value of the difference between the PSU average power of the current remaining PSU and the power threshold is greater than the absolute value of the difference between the PSU average power of the last remaining PSU and the power threshold, the PSU quantity corresponding to the last remaining PSU as the target PSU quantity.
7. A power pack, comprising: a plurality of PSUs electrically connected to each other such that a master PSU therein can access information of all remaining slave PSUs through the electrical connection;
wherein the master PSU is configured to perform the power pack management method of any of claims 1 to 5.
8. The power pack of claim 7, wherein the plurality of PSUs are connected via an I2C communication line.
CN202010567678.3A 2020-06-19 2020-06-19 Power pack management and control method, system, device and computer readable storage medium Active CN111813209B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010567678.3A CN111813209B (en) 2020-06-19 2020-06-19 Power pack management and control method, system, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010567678.3A CN111813209B (en) 2020-06-19 2020-06-19 Power pack management and control method, system, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111813209A CN111813209A (en) 2020-10-23
CN111813209B true CN111813209B (en) 2022-03-08

Family

ID=72845305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010567678.3A Active CN111813209B (en) 2020-06-19 2020-06-19 Power pack management and control method, system, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111813209B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113504823A (en) * 2021-06-16 2021-10-15 新华三信息安全技术有限公司 Method and device for reducing power consumption of frame type communication equipment

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101297257A (en) * 2005-10-25 2008-10-29 密克罗奇普技术公司 Using digital communications in the control of load sharing between paralleled power supplies
CN102290854A (en) * 2011-07-01 2011-12-21 创新科存储技术(深圳)有限公司 Method and device for performing state control on redundant power module
CN102508542A (en) * 2011-11-18 2012-06-20 百度在线网络技术(北京)有限公司 Method, system and device for controlling power supply for supplying power to server in centralized way
CN102855686A (en) * 2009-07-31 2013-01-02 日立欧姆龙金融系统有限公司 Power source device and control method thereof
CN104298332A (en) * 2013-07-16 2015-01-21 鸿富锦精密工业(深圳)有限公司 Power supply device, power supply management system and power supply management method
CN104767271A (en) * 2015-03-20 2015-07-08 深圳欧陆通电子有限公司 N+1 redundant power system and method for achieving intelligent power consumption reduction thereof
CN104866061A (en) * 2015-05-12 2015-08-26 浪潮电子信息产业股份有限公司 Method for controlling redundant power supply, power supply cabinet, and system
CN105359057A (en) * 2013-09-18 2016-02-24 联想企业解决方案(新加坡)有限公司 Setting computer parameters to operate the power supply within a range based on a peak power efficiency of the power supply
CN106160113A (en) * 2016-08-18 2016-11-23 特变电工西安电气科技有限公司 A kind of charger power module intelligent power distribution control method
CN106774762A (en) * 2016-11-28 2017-05-31 郑州云海信息技术有限公司 A kind of server power supply PSU condition control methods, RMC and rack
CN109742846A (en) * 2019-01-03 2019-05-10 漳州科华技术有限责任公司 Method of supplying power to and power supply system applied to data center
CN109828874A (en) * 2019-01-07 2019-05-31 郑州云海信息技术有限公司 A kind of server PS U current sharing energy automated testing method
CN109842184A (en) * 2019-03-14 2019-06-04 深圳英飞源技术有限公司 A kind of energy-saving control device and method of power-supply system
CN110474420A (en) * 2019-07-22 2019-11-19 漳州科华技术有限责任公司 Control method, control device and the controlling terminal of multi-standard uninterruptible power supply
CN110989818A (en) * 2019-11-29 2020-04-10 苏州浪潮智能科技有限公司 PSU power supply method, system, equipment and computer readable storage medium
CN111251929A (en) * 2020-02-21 2020-06-09 国网浙江省电力有限公司杭州供电公司 Flexible power distribution method of modular direct current charging pile

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9261942B2 (en) * 2012-12-21 2016-02-16 Dell Products, L.P. Reducing power consumption of a redundant power system utilizing sleep power consumption considerations for power supply units within the redundant power system
US20160320818A1 (en) * 2015-04-28 2016-11-03 Quanta Computer Inc. Dynamic management of power supply units
US20170023997A1 (en) * 2015-07-20 2017-01-26 Mediatek Inc. Dynamic switching of voltage regulators in a multiprocessor system
CN110691487B (en) * 2019-09-12 2021-06-22 无锡江南计算技术研究所 High-power supply backboard for high-density assembly

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101297257A (en) * 2005-10-25 2008-10-29 密克罗奇普技术公司 Using digital communications in the control of load sharing between paralleled power supplies
CN102855686A (en) * 2009-07-31 2013-01-02 日立欧姆龙金融系统有限公司 Power source device and control method thereof
CN102290854A (en) * 2011-07-01 2011-12-21 创新科存储技术(深圳)有限公司 Method and device for performing state control on redundant power module
CN102508542A (en) * 2011-11-18 2012-06-20 百度在线网络技术(北京)有限公司 Method, system and device for controlling power supply for supplying power to server in centralized way
CN104298332A (en) * 2013-07-16 2015-01-21 鸿富锦精密工业(深圳)有限公司 Power supply device, power supply management system and power supply management method
CN105359057A (en) * 2013-09-18 2016-02-24 联想企业解决方案(新加坡)有限公司 Setting computer parameters to operate the power supply within a range based on a peak power efficiency of the power supply
CN104767271A (en) * 2015-03-20 2015-07-08 深圳欧陆通电子有限公司 N+1 redundant power system and method for achieving intelligent power consumption reduction thereof
CN104866061A (en) * 2015-05-12 2015-08-26 浪潮电子信息产业股份有限公司 Method for controlling redundant power supply, power supply cabinet, and system
CN106160113A (en) * 2016-08-18 2016-11-23 特变电工西安电气科技有限公司 A kind of charger power module intelligent power distribution control method
CN106774762A (en) * 2016-11-28 2017-05-31 郑州云海信息技术有限公司 A kind of server power supply PSU condition control methods, RMC and rack
CN109742846A (en) * 2019-01-03 2019-05-10 漳州科华技术有限责任公司 Method of supplying power to and power supply system applied to data center
CN109828874A (en) * 2019-01-07 2019-05-31 郑州云海信息技术有限公司 A kind of server PS U current sharing energy automated testing method
CN109842184A (en) * 2019-03-14 2019-06-04 深圳英飞源技术有限公司 A kind of energy-saving control device and method of power-supply system
CN110474420A (en) * 2019-07-22 2019-11-19 漳州科华技术有限责任公司 Control method, control device and the controlling terminal of multi-standard uninterruptible power supply
CN110989818A (en) * 2019-11-29 2020-04-10 苏州浪潮智能科技有限公司 PSU power supply method, system, equipment and computer readable storage medium
CN111251929A (en) * 2020-02-21 2020-06-09 国网浙江省电力有限公司杭州供电公司 Flexible power distribution method of modular direct current charging pile

Also Published As

Publication number Publication date
CN111813209A (en) 2020-10-23

Similar Documents

Publication Publication Date Title
TWI360741B (en) Information handling system and method of controll
US8193662B1 (en) Power supply source blending and smoothing
US10003200B2 (en) Decentralized module-based DC data center
US8028182B2 (en) Dynamic CPU voltage regulator phase shedding
JP4838112B2 (en) Power consumption adjustment program, apparatus, and processing method
US20030056125A1 (en) System and method for strategic power supply sequencing in a computer system
US8054598B1 (en) Negotiating capacity allocation among distributed current protection devices
CN102546188B (en) Power source circuit and control method thereof
US11334135B1 (en) Power supply optimization using backup battery power supplementation
WO2021175215A1 (en) Power supply method and system, power supply device, and storage medium
RU2704727C1 (en) Control method of backup power supply device
EP2993759B1 (en) Commercial power supply method and device
CN111813209B (en) Power pack management and control method, system, device and computer readable storage medium
RU2669004C2 (en) Method and apparatus for controlling direct-current voltage
US20150349585A1 (en) Adaptive power availability controller
US11437812B2 (en) Method and device for controlling distributed direct current power supply system
US9939790B1 (en) Variable rate rack installation
CN101807794B (en) Electronic device and method for regulating power consumed thereby in located electric network thereof
CN106464002B (en) Uninterruptible power supply system and operation method thereof
US20230016507A1 (en) Computer-readable recording medium storing control program and control method
CN115599188A (en) Server power supply control method and device, storage medium and electronic device
CN109753400B (en) Energy consumption adjusting method and edge data center system
KR102520871B1 (en) Apparatus and method for system recovery based on voltage reduction
CN107844185B (en) power supply management method and device
US11050294B1 (en) Power supply shedding for power efficiency optimization

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