Power supply control method and device, equipment and storage medium

By monitoring the system load and dynamically adjusting the power supply scheme of the power module through BMC, the problem of poor control flexibility in the existing technology is solved, and efficient and stable power supply management is achieved.

CN121727232APending Publication Date: 2026-03-24TAIWAN LENOVO GLOBAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-30
Publication Date
2026-03-24

Smart Images

  • Figure CN121727232A_ABST
    Figure CN121727232A_ABST
Patent Text Reader

Abstract

The invention provides a power supply control method and device, equipment and a storage medium. The method comprises the steps of determining at least two candidate power supply schemes if an initial system load is smaller than a power supply rated value, determining a target power supply scheme from the candidate power supply schemes according to current power supply efficiency corresponding to the candidate power supply schemes, finally obtaining change data of the system load, and updating the target power supply scheme according to the change data, at least one power supply module in a standby state exists in the candidate power supply scheme. According to the technical scheme provided by the invention, the flexibility of power supply control is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of automation control, and particularly relates to a power supply control method and device, equipment and a storage medium. BACKGROUND

[0002] Power supply management of a data center is of great significance to improve overall energy efficiency. With the continuous expansion of the scale of servers, how to realize efficient power supply becomes a key problem.

[0003] In the related art, a power supply control strategy based on a fixed load threshold is usually adopted, for example, a baseboard management controller (BMC) is used to monitor system load, and when the system load is lower than or higher than a set threshold (such as 20% or 80%), the number of operating power modules is adjusted. Specifically, 50% of the power modules are put into zero output mode at low load, and all power modules are awakened at high load to maintain power supply stability.

[0004] However, the above power supply control method has the problem of poor control flexibility. SUMMARY

[0005] The embodiments of the present application provide a power supply control method, device, equipment and storage medium, which can improve the control flexibility of the power supply.

[0006] The technical scheme of the embodiments of the present application is as follows: In a first aspect, the embodiments of the present application provide a power supply control method, which comprises: If the initial system load is less than the rated value of the power supply, at least two candidate power supply schemes are determined, and at least one power module in standby state exists in the candidate power supply schemes; According to the current power supply efficiency corresponding to each candidate power supply scheme, a target power supply scheme is determined from the candidate power supply schemes; Obtain the change data of the system load, and update the target power supply scheme according to the change data.

[0007] In some embodiments, the change data includes a first change amount of the current first system load compared with the initial system load, and the target power supply scheme is updated according to the change data, comprising: Detect whether the first change amount meets a first change value; If the first change amount meets the first change value, the target power supply scheme is updated according to the current power supply efficiency corresponding to each candidate power supply scheme to obtain an updated target power supply scheme; According to the updated target power supply scheme, the operation of each power module is controlled until it is detected that the first change amount does not meet the first change value.

[0008] In some embodiments, the method further comprises: If the first change amount does not satisfy the first change value, controlling each power module to enter an initial state. Detecting whether the first system load is less than the power rated value, and controlling each power module according to the detection result.

[0009] In some embodiments, the method further comprises: Controlling a first power module corresponding to the target power supply scheme to enter a standby state; Controlling a second power module other than the first power module to enter a power supply state.

[0010] In some embodiments, the method further comprises: In the case where the initial system load is not less than the power rated value, controlling each power module to enter a power supply state.

[0011] In some embodiments, after controlling each power module to enter a power supply state in the case where the initial system load is not less than the power rated value, the method further comprises: Detecting whether a second change amount of the current second system load compared to the initial system load satisfies a second change value; If the second change amount does not satisfy the second change value, continuously controlling the working state of each power module to be the power supply state until the second change amount satisfies the second change value.

[0012] In some embodiments, the method further comprises: If the second change amount satisfies the second change value, controlling each power module to enter an initial state; Detecting whether the second system load is less than the power rated value, and controlling each power module according to the detection result.

[0013] In a second aspect, the embodiments of the present application provide a power supply control device, which comprises: A candidate scheme determination module, configured to determine at least two candidate power supply schemes if the initial system load is less than the power rated value, wherein at least one power module in the standby state exists in the candidate power supply schemes; A target scheme determination module, configured to determine a target power supply scheme from the candidate power supply schemes according to the current power supply efficiency corresponding to each candidate power supply scheme; A dynamic update module, configured to obtain change data of the system load, and update the target power supply scheme according to the change data.

[0014] In a third aspect, the embodiments of the present application provide a computer device, comprising a memory and a processor, wherein the memory stores a computer program capable of running on the processor, and the processor implements part or all steps of the above method when executing the program.

[0015] Fourthly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements some or all of the steps in the above-described method.

[0016] Fifthly, embodiments of this application provide a program product, which includes a computer program or instructions that, when executed by a processor, implement some or all of the steps in the above-described method.

[0017] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of this application. Attached Figure Description

[0018] Figure 1 A flowchart of a power control method in a related art provided in this application embodiment; Figure 2 A schematic diagram of the implementation process of a power control method provided in this application embodiment. Figure 1 ; Figure 3 A schematic diagram of the implementation process of a power control method provided in this application embodiment. Figure 2 ; Figure 4 A schematic diagram of the implementation process of a power control method provided in this application embodiment. Figure 3 ; Figure 4 A schematic diagram of the implementation process of a power control method provided in this application embodiment. Figure 5 ; Figure 6 The power module output efficiency curves under different loads are provided in the embodiments of this application. Figure 7 The power module output efficiency curves at different times provided in this application; Figure 8 This is a schematic diagram of the composition structure of a power control device provided in an embodiment of this application; Figure 9 This is a schematic diagram of the hardware entity of a computer device provided in an embodiment of this application. Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application are further described in detail below with reference to the accompanying drawings and embodiments. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0020] In the following description, references to "some embodiments" refer to a subset of all possible embodiments. It is understood that "some embodiments" may be the same or different subsets of all possible embodiments and may be combined with each other without conflict. The terms "first / second / third" are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that "first / second / third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.

[0021] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. The terminology used herein is for descriptive purposes only and is not intended to limit the scope of this application.

[0022] Energy efficiency is a critical issue for data center operations, and power management is essential for improving overall energy efficiency. As server scale continues to expand, achieving efficient power supply has become a key challenge.

[0023] In related technologies, to save resources and improve power supply efficiency, power supplies are typically not kept constantly on. Instead, the decision to turn on all power supplies is determined by monitoring whether the system load reaches a threshold. For example, see [reference needed]. Figure 1 The following is a flowchart of a power control method in a related technology provided in an embodiment of this application. It can be seen that the power control method in the related technology includes: A) controlling N power-supplying modules to be in a power-supply state; B) the BMC monitors the load in the system; C) monitoring whether it is less than or equal to 20%; D) when the system load is less than or equal to 20%, 50% of the power supply enters a standby state with zero output, and the remaining 50% of the power supply provides power; E) when the system load is greater than 80%, the 50% of power supply modules that entered the standby state are woken up and return to the initial state.

[0024] However, the above power control method suffers from poor control flexibility.

[0025] In view of this, this application provides a power control method, apparatus, device and storage medium, wherein the power control method includes: if the initial system load is less than the rated power supply value, determining at least two candidate power supply schemes, determining a target power supply scheme from the candidate power supply schemes according to the current power supply efficiency corresponding to each candidate power supply scheme, finally obtaining system load change data, and updating the target power supply scheme according to the change data, wherein at least one power supply module in a standby state exists among the candidate power supply schemes.

[0026] In the above embodiments, on the one hand, by dynamically monitoring the system load, when the initial system load is less than the power supply's rated value, it is not necessary to activate all power modules to supply power to the system. At this time, multiple candidate power supply schemes are generated and their current power supply efficiency in the current scenario is evaluated. The target power supply scheme with the highest efficiency is then determined to supply power to the system, thereby improving power supply efficiency. On the other hand, the target power supply scheme is not static. By dynamically monitoring the system load, the target power supply scheme is dynamically updated, further ensuring the stability of the power supply and enabling the power modules to have the best performance in different operating scenarios.

[0027] This application provides a power control method, which can be executed by a BMC (Browser Management Controller). The BMC monitors and manages the hardware resources of servers within the system, including power module start / stop control and temperature monitoring. The power control methods in various embodiments of this application can be executed independently by the BMC or implemented in conjunction with multiple servers. In this application, the BMC can be deployed on a computer device. Here, the computer device refers to a server, laptop, tablet, desktop computer, smart TV, set-top box, mobile device (e.g., mobile phone, portable video player, personal digital assistant, dedicated messaging device, portable gaming device), or other device with data processing capabilities.

[0028] Figure 2 A schematic diagram of the implementation process of a power control method provided in this application embodiment. Figure 1 ,like Figure 2 As shown, the method includes the following steps S201 to S203: Step S201: If the initial system load is less than the power supply rating, determine at least two candidate power supply schemes.

[0029] At least one power module in the candidate power supply scheme is in standby mode.

[0030] Here, system load can be, but is not limited to, the total power consumed by all devices in the system under the current operating state, usually expressed as a percentage, such as 95%. Initial system load can be, but is not limited to, the total power consumed by all devices in the system during operation after the control strategies of each power module have been initialized.

[0031] In this embodiment, the load corresponding to each device in the system is periodically updated in a default storage location so that the BMC can read the current and updated load of each device in the default storage location, thereby determining the current system load. This default storage location may be, but is not limited to, electrically erasable programmable read-only memory (EEPROM). In some examples, the BMC can monitor the initial system load in real time; in some examples, the BMC can periodically monitor the initial system load according to a preset period.

[0032] In one possible implementation, after the control strategies of each power module are initialized, the system can be powered according to the default power supply scheme. Here, the power supply scheme may include, but is not limited to, the operating states of each power module. Based on the power supply scheme, each power module can be controlled to enter its corresponding operating state to supply power to the devices in the system. Here, a power module is a device that supplies power to the devices in the system. Its operating state may be, but is not limited to, standby or power supply state. Standby state may refer to a state where the power module is not supplying power but remains energized, while power supply state may refer to a state where the power module supplies power to the devices within the system.

[0033] In the embodiments of this application, the default power supply scheme may include, but is not limited to, controlling the operating state of all power modules to be in a power supply state.

[0034] After the power module is initialized, it can be monitored whether the initial system load is less than the preset power rating. Here, the power rating can be, but is not limited to, a preset load value, which indicates the system load that requires the power module to output maximum power to maintain operation. In this embodiment, the power rating can be set based on empirical values.

[0035] Understandably, when the initial system load is lower than the power supply's rated value, it can be determined that the current power demand does not require the power supply module to output maximum power. In this case, in order to reduce resource waste, the power supply module can be controlled.

[0036] In this embodiment, after determining that the initial system load is less than the power supply rating, at least two candidate power supply schemes can be identified. These candidate power supply schemes may include, but are not limited to, power modules that need to enter standby mode. In this embodiment, each candidate power supply scheme includes at least one power module in standby mode. Thus, when the initial system load is less than the power supply rating, by enabling a power supply scheme with at least one power module in standby mode, instead of supplying power through all power modules, resource waste is reduced.

[0037] There are various ways to determine candidate power supply schemes. In one possible implementation, the relevant information of each power module can be input into the power supply scheme generation model to obtain the candidate power supply schemes output by the power supply scheme generation model. Here, the relevant information may include, but is not limited to, the attribute information of the power module itself, such as maximum power supply and voltage.

[0038] In another possible implementation, the power modules can be arranged and combined to obtain different power module combinations. In the embodiments of this application, each candidate power supply scheme may include the power modules within the combination operating in a standby state; or, the power modules outside the combination operating in a standby state.

[0039] Step S202: Determine the target power supply scheme from among the candidate power supply schemes based on the current power supply efficiency corresponding to each candidate power supply scheme.

[0040] Here, the current power supply efficiency can be, but is not limited to, the efficiency of its corresponding candidate power supply scheme in converting electrical energy after being applied in the current scenario. It can be understood that the higher the power supply efficiency, the more optimized the power utilization rate.

[0041] For each power module, its input power and output power are updated in the corresponding storage location, ensuring that the BMC reads the updated data for each power module. In this embodiment, the storage location may be, but is not limited to, an electrically erasable programmable read-only memory (EEPROM). This allows the input and output efficiencies of the power modules to be updated in real time at this storage location, enabling the BMC to obtain the corresponding input and output power for each power module.

[0042] Regarding the method of determining the power supply efficiency corresponding to each candidate power supply scheme, in some examples, each candidate power supply scheme and the corresponding input efficiency and output efficiency of each power module can be input into the power supply efficiency calculation model, so as to obtain the current power supply efficiency corresponding to each candidate power supply scheme output by the power supply efficiency calculation model.

[0043] In some examples, for each candidate power supply scheme, the target power modules that need to enter the power supply state in the candidate power supply scheme can be identified. Then, the input power and output power corresponding to each target power module are read, and the sum of the input power corresponding to each target power module is divided by the sum of the output power of each module. The result is the current power supply efficiency corresponding to the candidate power supply scheme.

[0044] For example, in a candidate power supply scheme, the target power modules that need to enter the power supply state are power module 1 and power module 3. The output efficiency of power module 1 is Pout1 and the input efficiency is Pin1. The output efficiency of power module 3 is Pout3 and the input efficiency is Pin3. Then the current power supply efficiency of the candidate power supply scheme is (Pout1+Pout3) / (Pin1+Pin3).

[0045] In one possible implementation, after determining the current power supply efficiency of each candidate power supply scheme, the candidate power supply scheme with the highest current power supply efficiency can be directly determined as the target power supply scheme.

[0046] In another possible implementation, the minimum required power supply efficiency can be determined based on the current system load. In this way, the current power supply efficiency corresponding to each candidate power supply scheme can be selected based on the minimum power supply efficiency, and the candidate power supply scheme corresponding to the current power supply efficiency that meets the minimum power supply efficiency can be determined as the target power supply scheme.

[0047] After determining the target power supply scheme, the operation of each power module can be controlled according to the target power supply scheme. In this embodiment, the first power module corresponding to the target power supply scheme can be controlled to enter the standby state, and then the second power module other than the first power module can be controlled to enter the power supply state.

[0048] Here, the first power module may refer to, but is not limited to, the power module in the target power supply scheme that needs to enter standby mode, while power modules other than the first power module are the second power modules. Standby mode may refer to, but is not limited to, a state where the power module does not supply power but remains powered on, while power supply mode may refer to a state where the power module supplies power to devices within the system to maintain system operation.

[0049] In this embodiment, each power module has its corresponding operating indicator light. Thus, during the process of controlling the first power module corresponding to the target power supply scheme to enter the standby state and controlling the second power module other than the first power module to enter the power supply state, the indicator lights corresponding to each power module can also be controlled to flash according to the flashing pattern corresponding to its operating state, thereby prompting the staff to the operating status of each battery module.

[0050] In this way, the operating status of each power module is controlled according to the target power supply scheme, so that the current power supply efficiency is optimized and energy waste caused by over-supply is avoided.

[0051] Step S203: Obtain system load change data and update the target power supply scheme based on the change data.

[0052] Here, the system load change data may, but is not limited to, reflect the change in the current system load compared to the initial system load, and can be used to determine whether the target power supply scheme needs to be updated.

[0053] When the changed data reaches a certain value, the previously applied target power supply scheme may no longer meet the power supply efficiency requirements of the current system load. Furthermore, after a long period of operation, the power supply efficiency of each power module may change due to various reasons, such as power supply aging. In this case, the target power supply scheme needs to be updated.

[0054] In one possible implementation, it can be detected whether the amount of change included in the change data reaches a default threshold. If it does, the current input power and output power of each power module are obtained, and the current power supply efficiency of each candidate power supply scheme is recalculated based on the input power and output power. The updated target power supply scheme is determined by using the current power supply efficiency of each candidate power supply scheme.

[0055] In another possible implementation, the change data, each power supply scheme, and the input and output power of each power module can be input into the power supply scheme update model to obtain the updated target power supply scheme output by the model.

[0056] In the above embodiments, on the one hand, by dynamically monitoring the system load, when the initial system load is less than the power supply's rated value, it is not necessary to activate all power modules to supply power to the system. At this time, multiple candidate power supply schemes are generated and their current power supply efficiency in the current scenario is evaluated. The target power supply scheme with the highest efficiency is then determined to supply power to the system, thereby improving power supply efficiency. On the other hand, the target power supply scheme is not static. By dynamically monitoring the system load, the target power supply scheme is dynamically updated, further ensuring the stability of the power supply and enabling the power modules to have the best performance in different operating scenarios.

[0057] Figure 3 A schematic diagram of the implementation process of a power control method provided in this application embodiment. Figure 2 In this embodiment of the application, the change data includes a first change in the current first system load compared to the initial system load, with reference to... Figure 3 The process of step S203 above may include the following steps: Step S301: Detect whether the first change quantity satisfies the first change value.

[0058] Here, the first system load can refer to the system load after the power modules have been powered by the target power supply scheme for a period of time. The first change can refer to the difference between the current first system load and the initial system load, which can characterize the magnitude of the change in the current first system load compared to the initial system load, and is usually expressed as a percentage. For example, if the current first system load is 65% and the initial system load is 85%, then the first change is 20%.

[0059] The first change value can be a preset threshold. When the first change value is met, it can be determined that the difference between the current first system load and the initial system load is large enough, and the current power supply scheme is no longer applicable, reaching a level that can trigger an update of the target power supply scheme. In this embodiment, the first change value can be set based on empirical values, for example, it can be set to 10% or 20%.

[0060] In some examples, the BMC can detect whether the first change quantity meets the first change value according to a preset period. The duration of the preset period can be determined according to the power supply aging time. For example, when the power supply module in the power supply state is detected to have aging phenomenon, it can be checked whether the first change value meets the first change value. In some examples, the preset period can be set according to the system application scenario, such as 12 hours.

[0061] In this embodiment of the application, in order to facilitate staff inspection, when an aging phenomenon is detected in a power supply module that is in a power supply state, the indicator light corresponding to the power supply module with the aging phenomenon can be controlled to flash according to a preset rule. The preset rule may be, but is not limited to, flashing once every certain period of time (such as 5 seconds).

[0062] In this way, by detecting whether the first change quantity meets the first change value, a timely response can be made when the system load changes significantly, thereby avoiding system malfunctions caused by the target power supply scheme being unsuitable for the current scenario and improving the stability of system operation.

[0063] Step S302: If the first change quantity satisfies the first change value, then the target power supply scheme is updated according to the current power supply efficiency corresponding to each candidate power supply scheme, and the updated target power supply scheme is obtained.

[0064] Step S303: Control the operation of each power module according to the updated target power supply scheme until the first change amount is detected to be inconsistent with the first change value.

[0065] Here, the current power supply efficiency can refer to the output efficiency of each candidate power supply scheme, calculated based on the current input and output power of each power module after a period of time of applying the target power supply scheme.

[0066] It is understandable that when the system load changes significantly, the output power of each power module may change. If the previous target power supply scheme is continued to be used, its efficiency may decrease. Therefore, it is necessary to recalculate the current power supply efficiency of each candidate power supply scheme in order to determine the updated target power supply scheme.

[0067] Regarding the method for calculating the current power supply efficiency of each candidate power supply scheme, in some examples, each candidate power supply scheme and the current input and output efficiencies of each power module can be input into the power supply efficiency calculation model, thereby obtaining the current power supply efficiency of each candidate power supply scheme output by the power supply efficiency calculation model.

[0068] In some examples, for each candidate power supply scheme, the target power modules that need to enter the power supply state in the candidate power supply scheme can be identified. Then, the input power and output power of each target power module are read, and the sum of the current input power of each target power module is divided by the sum of the current output power of each. The result is the current power supply efficiency corresponding to the candidate power supply scheme.

[0069] In this embodiment of the application, the candidate power supply scheme with the highest current power supply efficiency can be selected as the updated target power supply scheme.

[0070] After determining the updated target power supply scheme, the first power module corresponding to the updated target power supply scheme can be controlled to enter the standby state, and then the second power module other than the first power module can be controlled to enter the power supply state.

[0071] After controlling the operation of each power module based on the updated target power supply scheme, in this embodiment of the application, it will continue to detect whether the first change in the current first system load compared with the initial system load meets the first change value. If it does, the above operation will be repeated until the first change meets the first change value, indicating that the current system load scenario has not changed and the previous target power supply scheme can continue to be used.

[0072] In the above embodiments, by detecting the change in system load and comparing it with the first change value, it can be determined whether the power supply scheme needs to be adjusted. When adjustment is required, the target power supply scheme is further updated according to the current power supply efficiency of each candidate power supply scheme, thereby controlling the power supply efficiency of each power module to always be in the optimal state.

[0073] Continue to refer to Figure 3 The process of step S203 above may also include the following steps: Step S304: If the first change amount does not meet the first change value, then control each power module to enter the initial state.

[0074] Step S305: Detect whether the load of the first system is less than the rated value of the power supply, and control each power module according to the detection result.

[0075] In this embodiment, when the first change amount does not meet the first change value, it can be determined that the current system load has not changed significantly throughout the entire detection period. It is understood that power modules may age after prolonged periods of operation, leading to reduced power supply efficiency. If the same target power supply scheme is used to power the system for an extended period, power supply efficiency will decrease.

[0076] Therefore, in this embodiment, if the detected first change amount does not meet the first change value, each power module is controlled to enter the initial state. Here, the initial state may refer to, but is not limited to, a default operating mode of each power module, which may be a standby state or a power supply state.

[0077] After each power module enters its initial state, it can be re-controlled. In this embodiment, it is possible to detect whether the current first system load is less than the power supply's rated value, and obtain the detection result.

[0078] Here, the first system load is the system load detected by the BMC after each power module is initialized; the power rating can be, but is not limited to, a preset load value, which indicates that the system load requires the power module to output maximum power to maintain operation. In this embodiment, the power rating can be set based on empirical values.

[0079] Here, the test results may include whether the first system load is less than the power supply rating, or whether the first system load is not less than the power supply rating.

[0080] In this embodiment of the application, when the load of the first system is less than the rated value of the power supply, the steps in the above embodiment can be repeated to determine the target power supply scheme after the initialization of each power module, and control each power module according to the target power supply scheme after the initialization of each power module.

[0081] In the above embodiments, when the first change amount is detected to be inconsistent with the first change value, the previous target power supply scheme is not used. Instead, each power module is controlled to enter the initial state, and each power module is re-controlled based on the detection result of whether the first system load is less than the power supply rated value. This avoids the problem of powering the system with the same power module for a long time without considering the reduced output efficiency caused by its internal aging. The embodiments provided in this application improve the overall power supply efficiency by dynamically adjusting the operating state of the power modules.

[0082] Figure 4 A schematic diagram of the implementation process of a power control method provided in this application embodiment.Figure 3 In the embodiments of this application, reference is made to Figure 4 The steps provided in this application may include S401: Step S401: When the initial system load is not less than the rated power supply value, control each power module to enter the power supply state.

[0083] Here, the initial system load may refer to, but is not limited to, the total power consumed by each device in the system during operation after the control strategy of each power module is initialized. The power rating may refer to, but is not limited to, a preset load value, which indicates that the system load requires the power module to output maximum power to maintain operation. In the embodiments of this application, the power rating can be set according to empirical values.

[0084] In this embodiment of the application, when the initial system load is not less than the power supply rating, it can be determined that the current system load is large and all power modules need to supply power to maintain the normal operation of the system. Therefore, in this embodiment of the application, when the initial system load is not less than the power supply rating, the BMC can control each power module to enter the power supply state from the initial state.

[0085] For example, when multiple devices in the system are running high computing tasks simultaneously, the BMC detects that the current system load has reached or exceeded a certain power supply rating (such as 95%). At this time, the BMC further operates to put all power modules into power supply mode, thereby ensuring the stable operation of the system and avoiding service interruptions due to insufficient power.

[0086] In the above embodiments, the working state of the power modules is dynamically adjusted according to the real-time load conditions to ensure that all available power modules are in a power supply state during peak load periods. In this way, the overall power supply capacity and stability of the power modules are improved.

[0087] Continue to refer to the above. Figure 4 In this embodiment of the application, after step S401 "controlling each power module to enter the power supply state when the initial system load is not less than the rated power supply value", the following steps are also included: Step S402: Detect whether the second change in the current second system load compared to the initial system load satisfies the second change value.

[0088] Step S403: If the second change quantity does not meet the second change value, then the working state of each power module is continuously controlled to be the power supply state until the second change quantity meets the second change value.

[0089] Here, the second system load may refer to, but is not limited to, the system load detected by the BMC after all power modules have entered the power supply state; the second change is the difference between the second system load and the initial system load.

[0090] In this embodiment, the second change value is a preset threshold that characterizes whether the change in the second system load compared to the initial system load is sufficiently large. When the second change amount meets the second change value, it can be determined that the difference between the current second system load and the initial system load is large enough, and the second system load has been reduced to the point where all power modules do not need to supply power simultaneously. For example, if the initial system load is 95% and the second system load is 70%, the second change amount is 25%, and the second change value is 20%. In this case, the second change amount meets the second change value, the second system load is reduced, and all power modules do not need to supply power simultaneously. Conversely, when the second change amount does not meet the second change value, it can be determined that the change in the current second system load compared to the initial system load is not significant, and the system still requires all power modules to supply power simultaneously to maintain operation.

[0091] Therefore, in this embodiment of the application, if the second change amount does not meet the second change value, it can be determined that there is no need to change the control strategy for each power module. At this time, in order to ensure the stable operation of the system and avoid unnecessary state switching of the power modules, the working state of each power module is continuously controlled to be the power supply state, so as to ensure the normal operation of the equipment in the system.

[0092] In the above embodiments, when the second change quantity does not meet the second change value, the working state of each power module is continuously controlled to be the power supply state, avoiding unnecessary state switching of the power modules and ensuring the stable operation of the system.

[0093] Continue to refer to the above. Figure 4 In this embodiment of the application, the above method further includes the following steps: Step S404: If the second change quantity satisfies the second change value, then control each power module to enter the initial state.

[0094] In this embodiment of the application, when the second change amount satisfies the second change value, it can be determined that the difference between the current second system load and the initial system load is large enough, and the second system load has been reduced to the point where it is not necessary for all power modules to supply power at the same time. For example, if the initial system load is 95% and the second system load is 70%, the second change amount is 25% and the second change value is 20%. At this time, the second change amount satisfies the second change value, the second system load is reduced, and it is not necessary for all power modules to supply power at the same time. At this time, it is necessary to re-evaluate the optimal power supply scheme that can be selected for the current system.

[0095] In this embodiment of the application, when the second change quantity satisfies the second change value, each power module is controlled to enter the initial state. Here, the initial state may refer to, but is not limited to, a default operating mode of each power module, which may be a standby state or a power supply state.

[0096] Step S405: Detect whether the load of the second system is less than the rated value of the power supply, and control each power module according to the detection result.

[0097] In this embodiment of the application, after initializing each power module, the second system load is detected again to obtain the corresponding detection result. Here, the detection result may include the second system load being less than the power supply rated value, or the second system load being not less than the power supply rated value.

[0098] In this embodiment of the application, when the load of the second system is less than the rated value of the power supply, the steps in the above embodiment can be repeated to determine the target power supply scheme after the initialization of each power module, and control each power module according to the target power supply scheme after the initialization of each power module.

[0099] In the above embodiments, when the second change quantity is detected to meet the second change value, it can be determined that the load change of the second system in the current scenario is large, and a new power supply scheme needs to be enabled. The operation state of each power module is no longer controlled to be in the power supply state, which reduces unnecessary resource waste and presents a more flexible power control strategy.

[0100] In this application embodiment, an exemplary power control method is provided, which may include the following steps: Step a: If the initial system load is less than the power supply rating, determine at least two candidate power supply schemes.

[0101] Among the candidate power supply schemes, at least one power module is in a standby state.

[0102] Step b: Determine the target power supply scheme from among the candidate power supply schemes based on the current power supply efficiency of each candidate power supply scheme.

[0103] Step c: Control the first power module corresponding to the target power supply scheme to enter the standby state.

[0104] Step d: Control the second power module (other than the first power module) to enter the power supply state.

[0105] Step e: Obtain data on changes in system load.

[0106] The change data includes the first change in the current first system load compared to the initial system load.

[0107] Step f: Check whether the first change quantity satisfies the first change value.

[0108] Step g: If the first change quantity satisfies the first change value, then the target power supply scheme is updated according to the current power supply efficiency corresponding to each candidate power supply scheme, and the updated target power supply scheme is obtained.

[0109] Step h: Control the operation of each power module according to the updated target power supply scheme until the first change is detected to be inconsistent with the first change value.

[0110] Step i: If the first change amount does not meet the first change value, then control each power module to enter the initial state.

[0111] Step j: Detect whether the load of the first system is less than the rated value of the power supply, and control each power module according to the detection result.

[0112] Step k: When the initial system load is not less than the rated value of the power supply, control each power module to enter the power supply state.

[0113] Step 1: Detect whether the second change in the current second system load compared to the initial system load satisfies the second change value.

[0114] In step m, if the second change quantity does not meet the second change value, the working state of each power module is continuously controlled to be the power supply state until the second change quantity meets the second change value.

[0115] Step n: If the second change quantity satisfies the second change value, then control each power module to enter the initial state.

[0116] Step o: Detect whether the load of the second system is less than the rated value of the power supply, and control each power module according to the detection result.

[0117] It should be understood that although the steps in the embodiments described above are numbered sequentially, these steps are not necessarily executed in the order indicated by the numbers. Unless otherwise expressly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps involved in the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages does not have to be sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps.

[0118] The following describes the application of the embodiments of this application in a real-world scenario.

[0119] Energy efficiency is a critical issue for data center operations. When redundancy and optimal energy efficiency are required simultaneously, it's not necessary to keep all Power Supply Units (PSUs) constantly on. Related technologies have developed zero-output modes, or the power supply of each server can be controlled via a Base Control Controller (BMC). Specifically, the BMC monitors the load across the entire system; if it's less than or equal to 20%, it puts N / 2 of the power supplies into a zero-output state (standby); if it's greater than or equal to 80%, it wakes up N / 2.

[0120] However, the above control process has some problems: 1. Unable to be adjusted according to the user's environment.

[0121] 2. Once the load exceeds 80%, the system will operate using N power supply units (PSUs) until the load drops below 80%. In this situation, if the load fluctuates repeatedly within the range of 20% to 100%, the system efficiency will not reach its optimal state and will always maintain the efficiency level of operating with N power supply units.

[0122] 3. Inability to address efficiency decline due to equipment aging. For example, as equipment ages, the load limit threshold that originally operated using N power modules may no longer be 80%, but will drop to a lower level. However, in this solution, 80% is a fixed threshold (which cannot be adjusted).

[0123] In view of this, this application provides a control method for optimizing power supply output efficiency. Figure 5 A schematic diagram of the implementation process of a power control method provided in this application embodiment. Figure 4 The method may include the following steps: A. Enable N power modules.

[0124] B. Check if the current system load is greater than the rated value output by the PSU, such as 95%. If it is less than, proceed to step C; if it is greater than or equal to, proceed to step F. The load pout of each server is updated in the EEPROM every second.

[0125] C. If the system load is less than 95%, check the current power supply's output efficiency, which is updated in the EEPROM every ten seconds. Based on the output efficiency of each power supply, calculate the output efficiency corresponding to each power supply scheme. The output efficiency is the sum of the total output power of the enabled PSUs divided by the sum of the total input efficiencies ((Pout1+Pout2+……+PoutN) / (Pin1+Pin2+……+PoutN)). For example, there are two power supply modules, PSU1 and PSU2. For the power supply scheme in condition one (only PSU1 is enabled), the output efficiency is Pout1 / Pin1; for the power supply scheme corresponding to condition two (only PSU2 is enabled), the output efficiency is Pout2 / Pin2; for the power supply scheme corresponding to condition three (both PSU1 and PSU2 are enabled), the overall output efficiency is the sum of the total output power divided by the sum of the input power ((Pout1+Pout2) / (Pin1+Pin2)). It can be understood that different operating schemes use different power supply modules. Select the operating scheme with the highest output efficiency to enable the corresponding power supply module.

[0126] D. Periodically check if the load has decreased to the rated value, such as by 20%. If it has, return to step C to check if a scheme switch is needed to maintain optimal power supply output efficiency. If the load has not decreased by 20%, initialize the power supply module.

[0127] E. If the current system load is greater than or equal to 95% of the rated value, all power modules will be turned on.

[0128] F. Periodically check (every 30 minutes) whether the system load has decreased by 20%. If not, continue periodically checking; if it has decreased by 20%, then initialize.

[0129] It is understandable that different power modules, even those of the same design, can have different optimal output efficiencies due to differences in the parameters of their internal components. For example, Figure 6 The output efficiency curves of the power module under different loads are provided for embodiments of this application.

[0130] In this embodiment, the total number of power supply modules supplying power to the system is 2. When the server 1 is operating under light to medium load (10%-60%), the output efficiency of PSU1 and PSU2 can be referenced. Figure 6 In (a), when server 2 is under medium to heavy load (60%-100%), the output efficiency of PSU1 and PSU2 can be referenced. Figure 6In (b), (a) and (b), the horizontal axis represents the output efficiency, and the vertical axis represents the load size. The PSU1 and PSU2 operate in a single mode, that is, they operate according to the set rotation program. PSU1 supplies power to the system alone, or PSU2 supplies power to the system alone.

[0131] based on Figure 6 As can be seen from (a) above, when the system load is between 10% and 60%, the output efficiency of PSU1 is better than that of PSU2; based on Figure 6 As can be seen from (b), when the system load is between 60% and 100%, the output efficiency of PSU2 is better than that of PSU1.

[0132] Figure 6 (c) in the figure represents the output efficiency of the power supply under different loads after adopting the power control scheme provided in this application. It can be seen that the scheme provided in this application can identify the power supply scheme corresponding to the optimal efficiency through the BMC, thereby enabling the corresponding power supply to power the system and achieving the overall optimal efficiency.

[0133] It is understandable that aging of the power module will also lead to changes in power output efficiency. The technical solution provided in this application can optimize the operation of the power module, thereby achieving optimal power supply efficiency. For example, refer to... Figure 7 The output efficiency curves of the power module at different times provided in this application are shown in the reference diagram. Figure 7 As shown in (a), in the initial stage, PSU1 outperforms PSU2 in terms of output efficiency under system load of 10%-50%. However, after a period of use, as shown in (b), the power supply efficiency of PSU1 decreases due to aging. The technical solution provided in this application can ensure that the power supply efficiency of each power module remains optimal.

[0134] Based on the foregoing embodiments, this application provides a power control device, which includes various units and modules included in each unit. It can be implemented by a processor in a computer device; of course, it can also be implemented by specific logic circuits. In the implementation process, the processor can be a central processing unit (CPU), a microprocessor unit (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA), etc.

[0135] Figure 8This is a schematic diagram of the composition structure of a power control device provided in an embodiment of this application, as shown below. Figure 8 As shown, the power control device 800 includes: a candidate scheme determination module 801, a target scheme determination module 802, and a dynamic update module 803, wherein: The candidate scheme determination module 801 is used to determine at least two candidate power supply schemes if the initial system load is less than the power supply rating, wherein at least one power supply module in the candidate power supply scheme is in standby mode. The target scheme determination module 802 is used to determine the target power supply scheme from each candidate power supply scheme based on the current power supply efficiency corresponding to each candidate power supply scheme; The dynamic update module 803 is used to acquire data on changes in system load and update the target power supply scheme based on the changes.

[0136] In some embodiments, the change data includes a first change in the current first system load relative to the initial system load, and the dynamic update module 803 includes: The first detection unit is used to detect whether the first change quantity satisfies the first change value; The first update unit is used to update the target power supply scheme according to the current power supply efficiency corresponding to each candidate power supply scheme if the first change quantity meets the first change value, and obtain the updated target power supply scheme; and control the operation of each power module according to the updated target power supply scheme until the first change quantity is detected to not meet the first change value.

[0137] In some embodiments, the updating unit is further configured to perform: if the first change amount does not meet the first change value, control each power module to enter the initial state; detect whether the first system load is less than the power supply rated value, and control each power module according to the detection result.

[0138] In some embodiments, the power control device 800 further includes: The control module is used to control the first power module corresponding to the target power supply scheme to enter the standby state; and to control the second power module other than the first power module to enter the power supply state.

[0139] In some embodiments, the power control device 800 further includes: The maximum power supply module is used to control each power supply module to enter the power supply state when the initial system load is not less than the power supply rating.

[0140] In some embodiments, the power control device 800 further includes: The second detection module is used to detect whether the second change in the current second system load compared to the initial system load meets the second change value; The second update module is used to continuously control the working state of each power module to the power supply state if the second change quantity does not meet the second change value, until the second change quantity meets the second change value.

[0141] In some embodiments, the second update module is further configured to perform: If the second change quantity satisfies the second change value, then control each power module to enter the initial state; The system checks whether the load of the second system is less than the rated value of the power supply, and controls each power module based on the test results.

[0142] The descriptions of the apparatus embodiments above are similar to those of the method embodiments above, and have similar beneficial effects. In some embodiments, the functions or modules included in the apparatus provided in this application can be used to perform the methods described in the method embodiments above. For technical details not disclosed in the apparatus embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0143] It should be noted that, in the embodiments of this application, if the above-described power control method is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, or the part that contributes to the related technology, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, mobile hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this application are not limited to any specific hardware, software, or firmware, or any combination of hardware, software, and firmware.

[0144] This application provides a computer device including a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the program, it implements some or all of the steps in the above-described method.

[0145] This application provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements some or all of the steps in the above-described method. The computer-readable storage medium can be transient or non-transient.

[0146] This application provides a computer program including computer-readable code, wherein when the computer-readable code is executed in a computer device, a processor in the computer device performs some or all of the steps in the above-described method.

[0147] This application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program. When the computer program is read and executed by a computer, it implements some or all of the steps in the above-described method. This computer program product can be implemented specifically through hardware, software, or a combination thereof. In some embodiments, the computer program product is specifically embodied as a computer storage medium; in other embodiments, the computer program product is specifically embodied as a software product, such as a software development kit (SDK), etc.

[0148] It should be noted that the descriptions of the various embodiments above tend to emphasize the differences between them, while their similarities or commonalities can be referred to interchangeably. The descriptions of the above embodiments of the device, storage medium, computer program, and computer program product are similar to the descriptions of the above method embodiments and have similar beneficial effects. For technical details not disclosed in the embodiments of the device, storage medium, computer program, and computer program product of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0149] Figure 9 This application provides a hardware entity diagram of a computer device as an embodiment of the present application, such as... Figure 9 As shown, the hardware entity of the computer device 900 includes: a processor 901, a communication interface 902, and a memory 903, wherein: The processor 901 executes the program to implement the steps of any of the above-mentioned model adjustment methods. The processor 901 typically controls the overall operation of the computer device 900.

[0150] Communication interface 902 enables computer devices to communicate with other terminals or servers over a network.

[0151] The memory 903 is configured to store instructions and applications executable by the processor 901, and can also cache data to be processed or already processed (e.g., image data, audio data, voice communication data, and video communication data) in the processor 901 and various modules in the computer device 900. It can be implemented using flash memory or random access memory (RAM). Data transfer between the processor 901, the communication interface 902, and the memory 903 can be performed via bus 904.

[0152] This application provides a computer storage medium storing one or more programs that can be executed by one or more processors to implement the steps of the model adjustment method as described in any of the above embodiments.

[0153] It should be noted that the descriptions of the storage medium and device embodiments above are similar to those of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0154] The aforementioned processor can be at least one of the following: Application Specific Integrated Circuit (ASIC), Digital Signal Processor (DSP), Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), Central Processing Unit (CPU), Controller, Microcontroller, and Microprocessor. It is understood that other electronic devices can also implement the functions of the aforementioned processor, and this application does not specifically limit the specific implementation.

[0155] The aforementioned computer storage media / memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM), etc.; or it can be various terminals that include one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.

[0156] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.

Claims

1. A power supply control method, the method comprising: If the initial system load is less than the power supply rating, at least two candidate power supply schemes are determined, and at least one of the candidate power supply schemes is a power supply module in standby mode. Based on the current power supply efficiency corresponding to each of the candidate power supply schemes, a target power supply scheme is determined from each of the candidate power supply schemes; Acquire system load change data and update the target power supply scheme based on the change data.

2. The method according to claim 1, wherein the change data includes a first change in the current first system load compared to the initial system load, and updating the target power supply scheme according to the change data includes: Detect whether the first change amount satisfies the first change value; If the first change amount satisfies the first change value, then the target power supply scheme is updated according to the current power supply efficiency corresponding to each candidate power supply scheme to obtain the updated target power supply scheme. The operation of each power module is controlled according to the updated target power supply scheme until the first change amount is detected to be inconsistent with the first change value.

3. The method according to claim 2, further comprising: If the first change amount does not meet the first change value, then control each of the power modules to enter the initial state; The system detects whether the load of the first system is less than the rated value of the power supply, and controls each power module according to the detection result.

4. The method according to claim 1, further comprising: The first power module corresponding to the target power supply scheme is controlled to enter the standby state; Control the second power module, other than the first power module, to enter the power supply state.

5. The method according to claim 1, further comprising: When the initial system load is not less than the rated value of the power supply, each power module is controlled to enter the power supply state.

6. The method according to claim 5, further comprising, after controlling each power module to enter the power supply state when the initial system load is not less than the power supply rated value, the method includes: Detect whether the second change in the current second system load compared to the initial system load satisfies the second change value; If the second change amount does not meet the second change value, then the operating state of each of the power modules is continuously controlled to be the power supply state until the second change amount meets the second change value.

7. The method according to claim 6, further comprising: If the second change amount satisfies the second change value, then control each of the power modules to enter the initial state; The system detects whether the load of the second system is less than the rated value of the power supply, and controls each power module according to the detection result.

8. A power control device, the device comprising: The candidate scheme determination module is used to determine at least two candidate power supply schemes if the initial system load is less than the power supply rating, wherein at least one power supply module in the candidate power supply scheme is in standby mode. The target scheme determination module is used to determine the target power supply scheme from the candidate power supply schemes based on the current power supply efficiency corresponding to each candidate power supply scheme; The dynamic update module is used to acquire system load change data and update the target power supply scheme based on the change data.

9. A computer device comprising a memory and a processor, the memory storing a computer program executable on the processor, the processor executing the program to implement the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 7.