A method and device for managing server power consumption

By dynamically adjusting the fan speed and combining BMC and PID speed regulation strategies, the problem of high power consumption of servers under air-cooled heat dissipation is solved, achieving the lowest power consumption and improving heat dissipation efficiency.

CN116643952BActive Publication Date: 2024-08-23ENGINETECH COMPUTER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310927942.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-27
Publication Date
2024-08-23
Estimated Expiration
2043-07-27

AI Technical Summary

Technical Problem

It is difficult to effectively control server power consumption through air cooling with existing technology. The lowest fan speed does not correspond to the optimal point of server power consumption, resulting in high power consumption.

Method used

By dynamically adjusting the fan speed, we find the speed that meets the heat dissipation requirements while achieving the lowest power consumption. We use the minimum fan speed in the BMC steady state as the basis, gradually adjust the speed to optimize power consumption, and use PID and linear speed regulation curve strategies to determine the speed. Ensure that the speed fluctuation is within a reasonable range.

Benefits of technology

It achieves the lowest management of server power consumption, reduces the PUE of the data center, avoids the increase in power consumption caused by excessive fan speed, and improves heat dissipation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116643952B
    Figure CN116643952B
Patent Text Reader

Abstract

The present application provides a method and device for managing server power consumption, including: obtaining a first power consumption in a server running state; the first power consumption is the power consumption of the server when the fan rotates at the lowest speed when the server is running in a stable state according to the BMC; the lowest fan speed when the server is running in a stable state according to the BMC is the first fan speed; controlling the fan to dissipate heat to the server at a second speed lower than the first speed; collecting the second power consumption of the server in a running state of dissipating heat at the second speed; continuously adjusting the second speed until the second power consumption of the server corresponding to the second speed is equal to the second power consumption of the server corresponding to the last adjustment of the second speed, and managing the server power consumption with the control strategy of the current server. The present invention solves the technical problem of high power consumption of air-cooled heat dissipation servers in the prior art and optimizes the heat dissipation control strategy of the server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of servers, and in particular to a method and device for managing server power consumption. Background Art

[0002] Air cooling is one of the common cooling methods for servers. The current common air cooling control method mainly controls the fan speed through PID, Openloop or other strategies to achieve heat dissipation control of the server. However, the lowest fan speed does not correspond to the optimal point of server power consumption. It is difficult to achieve optimal control of server system power consumption by determining the lowest fan speed through PID, Openloop or other strategies. Summary of the invention

[0003] In view of this, in order to solve the technical problem of high power consumption of air-cooled servers in the prior art, the first aspect of the present invention provides a server power consumption management method, comprising:

[0004] Obtaining a first power consumption in a server operation state;

[0005] The first power consumption is the power consumption of the server when the fan rotates at the lowest speed when the server operates in a stable state according to the BMC; the lowest speed of the fan when the server operates in a stable state according to the BMC is the first speed of the fan;

[0006] Controlling the fan to dissipate heat from the server at a second rotation speed lower than the first rotation speed;

[0007] collecting a second power consumption of the server in an operating state where heat is dissipated at the second speed;

[0008] The second rotational speed is continuously adjusted until the second power consumption of the server corresponding to the second rotational speed is equal to the second power consumption of the server corresponding to the last adjustment of the second rotational speed, and the power consumption of the server is managed according to the current control strategy of the server.

[0009] In some embodiments, the method for adjusting the second speed is: decreasing and increasing the second speed of the fan in the current state by a first percentage of the current speed; in decreasing and increasing the second speed of the fan in the current state twice in adjacent sequence, the speed change of decreasing the second speed of the fan by the first percentage of the current speed is greater than the speed change of increasing the second speed of the fan by the first percentage of the current speed.

[0010] In some embodiments, if after the second speed of the fan in the current state is reduced by a first percentage of the current speed, the second power consumption of the server is greater than the second power consumption of the server before the reduction, the second speed of the fan after the reduction is increased by the first percentage of the current speed until the second power consumption of the server corresponding to the second speed is equal to the second power consumption of the server corresponding to the last adjustment of the second speed, and the power consumption of the server is managed according to the current control policy of the server.

[0011] In some embodiments, the second speed is continuously adjusted by a first percentage of the current speed which is decreasing in whole or in part until the second power consumption corresponding to the second speed is equal to the second power consumption of the server corresponding to the last adjustment of the second speed, and the power consumption of the server is managed by the current control strategy of the server.

[0012] In some embodiments, a method for continuously adjusting the second rotation speed until the second power consumption of the server corresponding to the second rotation speed is equal to the second power consumption of the server corresponding to the last adjustment of the second rotation speed is:

[0013] If the second power consumption is greater than the first power consumption, the fan is controlled to dissipate heat for the server at a third speed that is lower than the first speed and higher than the second speed, the third power consumption of the server in the operating state of dissipating heat at the third speed is collected, the third speed of the fan is adjusted until the third power consumption of the server corresponding to the third speed is equal to the third power consumption of the server corresponding to the third speed of the fan adjusted last time, and the power consumption of the server is managed according to the current control strategy of the server;

[0014] If the second power consumption is lower than the first power consumption, the fan is controlled to dissipate heat for the server at a fourth speed lower than the second speed, the fourth power consumption of the server in the operating state where the server is dissipated at the fourth speed is collected and compared with the second power consumption, the fourth speed of the fan is continuously reduced until the fourth power consumption of the server corresponding to the fourth speed is greater than the fourth power consumption of the server corresponding to the fourth speed of the fan that was reduced last time, and the power consumption of the server is managed according to the current control strategy of the server, or the fourth speed is increased to dissipate heat for the server, the fourth power consumption of the server in the operating state where the server is dissipated at the fourth speed is collected and compared with the second power consumption, the fourth speed of the fan is continuously increased until the fourth power consumption of the server corresponding to the fourth speed is greater than the fourth power consumption of the server corresponding to the fourth speed of the fan that was increased last time, and the power consumption of the server is managed according to the current control strategy of the server.

[0015] In some embodiments, if the number of times the third speed is adjusted exceeds a first threshold, or / and, after the speed step of adjusting the third speed is lower than a second threshold, the third power consumption is greater than the first power consumption, the server power consumption is managed according to the control strategy of the server corresponding to the first power consumption.

[0016] In some embodiments, the method for determining the first power consumption is:

[0017] The BMC of the server determines, according to the server type, a linear speed regulation curve corresponding to the server type and a PID speed regulation strategy corresponding to the server type;

[0018] The BMC of the server calculates the rotation speed of the fan according to the linear speed regulation curve and the PID speed regulation strategy;

[0019] If the speed of the fan calculated by the PID speed regulation strategy is greater than the speed of the fan obtained by the linear speed regulation curve, the speed of the fan is adjusted according to the PID speed regulation strategy until the speed of the fan calculated by the PID speed regulation strategy is less than the speed of the fan obtained by the linear speed regulation curve;

[0020] If the speed of the fan obtained by the PID speed regulation strategy is less than the speed of the fan obtained by the linear speed regulation curve, the speed of the fan is adjusted according to the linear speed regulation curve;

[0021] The power consumption of the server when the rotation speed of the fan is adjusted according to the linear speed regulation curve until the rotation speed of the fan no longer changes is used as the first power consumption.

[0022] In some embodiments, if the duration that the temperature of the server exceeds the temperature threshold is greater than or equal to the duration after the speed of the fan is adjusted once, the power consumption of the server is managed according to the control strategy of the server corresponding to the BMC stable state operation.

[0023] In some embodiments, the method for obtaining the first power consumption in the running state of the server is:

[0024] The fan is continuously operated at the same first speed for a time interval exceeding a time threshold, and an average value of the power consumption of the server in the time intervals collected multiple times is taken as the first power consumption;

[0025] The method for collecting the second power consumption of the server in the operating state of dissipating heat at the second speed is:

[0026] The fan is continuously operated at the same second speed for a time interval exceeding a time threshold, and an average value of the power consumption of the server in the time intervals collected for multiple times is taken as the second power consumption.

[0027] A second aspect of the present invention provides a server power consumption management device, comprising:

[0028] a power consumption determination unit, the power consumption determination unit being configured to obtain a first power consumption in a running state of the server; the first power consumption is the power consumption of the server when the fan rotates at the lowest speed when the server operates in a stable state according to the BMC; the lowest speed of the fan when the server operates in a stable state according to the BMC is the first speed of the fan;

[0029] a rotation speed adjustment unit, the rotation speed adjustment unit being configured to control the fan to dissipate heat from the server at a second rotation speed lower than the first rotation speed;

[0030] a power consumption collection unit, the power consumption collection unit being configured to collect a second power consumption of the server in an operating state where the server performs heat dissipation at the second speed;

[0031] A power consumption management unit, wherein the power consumption management unit is configured to continuously adjust the second rotational speed until the second power consumption of the server corresponding to the second rotational speed is equal to the second power consumption of the server corresponding to the last adjustment of the second rotational speed, and manage the power consumption of the server according to the control strategy of the current server.

[0032] The present invention breaks the state of maintaining stable operation after finding the lowest fan speed, dynamically adjusts the fan speed that meets the heat dissipation requirement in stable operation under the control of the BMC, and finds the lowest power consumption value that meets both the fan heat dissipation requirement and the fan speed requirement, thereby achieving the lowest power consumption management of the server. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 This is a schematic diagram of the power consumption of a server at different fan speeds;

[0034] Figure 2 is a flow chart of a server power consumption management method shown in an exemplary embodiment of the present application;

[0035] Figure 3 is a flow chart of a server power consumption management method shown in another exemplary embodiment of the present application;

[0036] Figure 4 is a flow chart of a server power consumption management method shown in another exemplary embodiment of the present application;

[0037] Figure 5 It is a block diagram of a server power consumption management device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0038] Here, exemplary embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application.

[0039] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more associated listed items.

[0040] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0041] At present, air cooling is one of the mainstream cooling methods for servers. Under the premise of meeting the heat dissipation requirements, the power consumption of the server is reduced by reducing the power consumption of the fan, thereby reducing the PUE of the data center. The speed control strategy of mature server fans is mainly based on PID and Openloop speed control strategies, which better guarantee the heat dissipation requirements of the server.

[0042] However, the lowest fan speed does not correspond to the lowest point of server power consumption. Figure 1 The power consumption of the server first decreases with the increase of the rotation speed, but as the fan speed further increases, when it exceeds 26%, the power consumption of the server increases with the increase of the fan speed. This is mainly because: when the temperature of the CPU and other components is low, their own performance will be better released, and the power consumption called by themselves will be low. At this time, the power consumption value of the components due to the increase in temperature is greater than the power consumption value reduced by the reduction of the fan speed. The existing solution to the above problem can be tested in the early stage to obtain a power consumption optimization strategy for specific models, specific environments, and specific load ranges, but this method has a large workload in the early stage and high waste of resources.

[0043] In view of this, in order to solve the technical problem of high power consumption of air-cooled servers in the prior art, the present invention proposes to add a method of finding the fan speed corresponding to the minimum power consumption value under the traditional control strategy based on finding the fan speed that meets the server heat dissipation requirements, so that the fan speed that meets the heat dissipation stability deviates from the stable state and fluctuates up or down, thereby determining the fan speed that meets the minimum power consumption value.

[0044] Figure 2 The present invention is a flowchart of a method for managing server power consumption according to an exemplary embodiment of the present invention.

[0045] Please refer to Figure 2 The server power consumption management method provided in this embodiment includes:

[0046] S201: Obtain a first power consumption in a server operating state.

[0047] The first power consumption is the power consumption of the server when the fan rotates at the lowest speed when the server operates in a BMC stable state; the lowest speed of the fan when the server operates in a BMC stable state is the first speed of the fan.

[0048] The server operation state is to operate in accordance with the BMC stable state, which can be a heat dissipation control strategy for a server based on traditional air cooling, with the fan speed being used as the speed regulation object of PID or openloop to obtain the minimum fan speed that meets the heat dissipation needs of the server and the first power consumption corresponding to the minimum speed.

[0049] The first power consumption is the basis for adjusting the power consumption management method provided in this embodiment. The traditional server control strategy maintains stable operation after finding the lowest value of the fan speed, and continues to adjust the fan speed until the heat dissipation requirement is not met. This embodiment breaks the state of maintaining stable operation after finding the lowest value of the fan speed, and dynamically adjusts the fan speed that meets the heat dissipation requirement in stable operation under the control of the BMC, and finds the lowest power consumption value that meets both the fan heat dissipation requirement and the fan speed requirement.

[0050] S202: Control the fan to dissipate heat from the server at a second rotation speed lower than the first rotation speed.

[0051] In some embodiments, the server may be cooled by using a speed that is a percentage lower than the first speed as the second speed. For example, the speed is lowered by 1% of the first speed for stable operation, and 99% of the first speed is used as the second speed, and the fan is operated at the second speed for a period of time. The continuous operation time is not less than a certain threshold, such as 1 minute or 5 minutes, so as to avoid the power consumption collected in the following steps not accurately reflecting the actual power consumption of the server when it is running at the second speed.

[0052] It is understandable that the above-mentioned power consumption optimization strategy for the forced speed reduction adjustment of the stable operation of the first speed is to ensure that the heat dissipation effect is prioritized to avoid damaging the server. If any of the following situations occurs during the continuous operation time of the server being operated at the second speed, the power consumption optimization strategy is terminated, that is, the control of the forced speed reduction of the first speed to find the optimal power consumption is terminated, and the power consumption management strategy of the server is returned to the control strategy based on S201 in the stable operation state. The situations in which the forced speed reduction of the first speed to find the optimal power consumption is terminated include:

[0053] Trigger BMC's PID speed control of the fan speed;

[0054] When the server's ambient temperature changes by more than a threshold within a certain period of time, for example, when the server's ambient temperature changes by more than 3°C within 5 minutes;

[0055] The server has an abnormal warning;

[0056] The main high power consumption parts of the server cannot read the temperature.

[0057] S203: Collect a second power consumption of the server in an operating state where the server performs heat dissipation at the second rotation speed.

[0058] In some embodiments, the power consumption of the server in the operating state of cooling at the second speed is captured multiple times over a certain period of time, and an average value of the power consumption captured multiple times is calculated as the value of the second power consumption. For example, the second power consumption may be the power consumption of the server for 5 minutes captured by the BMC using a fan at the second speed to cool the server, and the average value of the power consumption for the 5 minutes is calculated and used as the second power consumption.

[0059] It can be understood that the power consumption used to calculate the average value may be the power consumption excluding obviously abnormal power consumption, or may be the power consumption collected within a time interval that may cause unstable fluctuations.

[0060] S204. Continue to adjust the second rotational speed until the second power consumption of the server corresponding to the second rotational speed is equal to the second power consumption of the server corresponding to the last adjustment of the second rotational speed, and manage the power consumption of the server according to the current control strategy of the server.

[0061] Adjusting the second speed includes decreasing the second speed and increasing the second speed, so as to find a fan speed that can meet the minimum power consumption of the server. The load change of the server does not affect the logic of finding the fan speed point that can meet the minimum power consumption of the server. When the load of the server changes, after the fan has reached the minimum speed under the stable state of the BMC, the steps S202-S204 provided in this embodiment are continued to find the fan speed that meets the minimum power consumption of the server under the load.

[0062] Specifically, in some optional embodiments, if the second power consumption is greater than the first power consumption, the fan is controlled to dissipate heat for the server at a third speed that is lower than the first speed and higher than the second speed, the third power consumption of the server in the operating state of dissipating heat at the third speed is collected, and the third speed of the fan is adjusted until the third power consumption of the server corresponding to the third speed is equal to the third power consumption of the server corresponding to the third speed of the fan adjusted last time, and the power consumption of the server is managed according to the current control strategy of the server.

[0063] If the second power consumption is lower than the first power consumption, the fan is controlled to dissipate heat for the server at a fourth speed lower than the second speed, the fourth power consumption of the server in the operating state where the server is dissipated at the fourth speed is collected and compared with the second power consumption, the fourth speed of the fan is continuously reduced until the fourth power consumption of the server corresponding to the fourth speed is greater than the fourth power consumption of the server corresponding to the fourth speed of the fan that was reduced last time, and the power consumption of the server is managed according to the current control strategy of the server, or the fourth speed is increased to dissipate heat for the server, the fourth power consumption of the server in the operating state where the server is dissipated at the fourth speed is collected and compared with the second power consumption, the fourth speed of the fan is continuously increased until the fourth power consumption of the server corresponding to the fourth speed is greater than the fourth power consumption of the server corresponding to the fourth speed of the fan that was increased last time, and the power consumption of the server is managed according to the current control strategy of the server.

[0064] This embodiment breaks the state of maintaining stable operation after finding the lowest fan speed, dynamically adjusts the fan speed that meets the heat dissipation requirements in stable operation under the control of the BMC, and finds the lowest power consumption value that meets both the fan heat dissipation requirements and the fan speed requirements, thereby achieving the lowest power consumption management of the server.

[0065] Figure 3 The present invention is a flowchart of a method for managing server power consumption according to another exemplary embodiment of the present invention.

[0066] Compared with the previous embodiment, the server power consumption management method provided in this embodiment searches for the lowest rotation speed value of the fan that meets the lowest power consumption requirement of the server through a rotation speed decreasing cycle and a rotation speed increasing cycle.

[0067] Please refer to Figure 3 , a flow chart of a server power consumption management method includes:

[0068] S301: Obtain a first power consumption in a server operating state.

[0069] The first power consumption is the power consumption of the server when the fan rotates at the lowest speed when the server operates in a BMC stable state; the lowest fan speed when the server operates in a BMC stable state is a speed S0 of the fan.

[0070] The server operation state is to operate in accordance with the BMC stable state, which can be a heat dissipation control strategy for a server based on traditional air cooling, with the fan speed being used as the speed regulation object of PID or openloop to obtain the minimum fan speed that meets the heat dissipation needs of the server and the first power consumption corresponding to the minimum speed.

[0071] The first power consumption is the basis for adjusting the power consumption management method provided in this embodiment. The traditional server control strategy maintains stable operation after finding the lowest value of the fan speed, and continues to adjust the fan speed until the heat dissipation requirement is not met. This embodiment breaks the state of maintaining stable operation after finding the lowest value of the fan speed, and dynamically adjusts the fan speed that meets the heat dissipation requirement in stable operation under the control of the BMC, and finds the lowest power consumption value that meets both the fan heat dissipation requirement and the fan speed requirement.

[0072] S302, reducing the speed of the fan so that the fan runs at a speed S1 which is lower than the speed S0.

[0073] The fan can be evenly decelerated by linear deceleration. After the fan is decelerated to speed S1, it is kept running at speed S1. Speed ​​S1 can be determined by specifying a deceleration ratio based on speed S0 to better accommodate the changes in fans with different speeds in different servers and avoid the effect of specifying a speed reduction step size on fans with different speeds that are too high or too low. In addition, the fan should be kept running at speed S1 for a period of time to avoid the impact of fluctuation errors. For example, keep the fan running at speed S1 for at least 5 minutes.

[0074] It can be understood that if the PWM calculated by the heat dissipation speed control strategy formulated by the BMC according to the heat dissipation logic is greater than the speed S0 while the fan is running at the speed S1, the power consumption optimization strategy of forced speed reduction adjustment is exited, and the fan is controlled by the BMC in the form of linear speed control or PID speed control, so as to ensure that the speed control logic of the power consumption optimization strategy meets the system heat dissipation logic. The logic of the power consumption optimization strategy needs to be based on satisfying the heat dissipation.

[0075] S303 , collecting the second power consumption of the server when the fan runs at a speed S1 .

[0076] The second power consumption of the server can be obtained by calculating the average power consumption of the fan running at a speed of S1 for a period of time. For example, the system power consumption of the server within 5 minutes is captured at intervals of 10 seconds, and the average power consumption of the system is recorded and calculated 30 times as the second power consumption of the server.

[0077] S304: Compare the first power consumption and the second power consumption of the server, and execute an upward or downward adjustment strategy on the fan according to the comparison result.

[0078] If the second power consumption is less than the first power consumption, the speed is further reduced by 1% of the speed S1 on the basis of the speed S1 to obtain the speed S2, so that the fan keeps running at the speed S2 for a period of time.

[0079] If the second power consumption is greater than the first power consumption, the speed is further increased by 0%-1% of the speed S1 on the basis of the speed S1 to obtain the speed S2, so that the fan keeps running at the speed S2 for a period of time.

[0080] Of course, other reasonable ratios for increasing or decreasing the speed can be used as strategies for increasing or decreasing the speed of the fan, and this embodiment is not limited to a specified speed adjustment ratio.

[0081] It can be understood that when the increase or decrease is performed at the same specified percentage, since the fan speed step before the decrease is larger than the fan speed step after the decrease, that is, the speed step difference of the decrease is larger than the speed step difference of the increase, the fan speed is adjusted twice in an opposite manner due to power consumption changes, and the speed still tends to decrease.

[0082] In addition, in order to improve the speed of finding the optimal fan speed of the power consumption optimization strategy of the forced speed reduction adjustment, it can also be performed with different percentages: the speed percentage of the first adjustment is higher, and the speed percentage of the later adjustment is lower. The second speed is continuously adjusted with the first percentage of the current speed that is all or partly decreasing, until the second power consumption corresponding to the second speed is equal to the second power consumption of the server corresponding to the last adjustment of the second speed, and the power consumption of the server is managed with the current control strategy of the server.

[0083] Considering the efficiency of the power consumption optimization strategy, especially the power consumption optimization strategy with different percentage changes, in order to avoid falling into an endless search for the best speed point, when the number of times the fan speed is adjusted exceeds the number threshold, or / and the speed step of adjusting the speed is lower than the step threshold, the adjustment of the fan speed is stopped. If the current power consumption is greater than the first power consumption, the control strategy of the server corresponding to the first power consumption is used to manage the server power consumption; if the current power consumption is less than the first power consumption, the server power consumption is managed by the current control strategy of the server.

[0084] Consistent with S302, if the sensor PID speed control calculated PWM is greater than the speed S0 while the fan is running at the speed S1, the power consumption optimization strategy of forced speed reduction adjustment is exited, and the fan is controlled by linear speed control or PID speed control through BMC.

[0085] Also consistent with S303 , the third power consumption of the server is collected when the fan runs at the speed S1 .

[0086] The third power consumption of the server can be obtained by calculating the average power consumption of the fan running at a speed of S2 for a period of time. For example, the system power consumption of the server within 5 minutes is captured at intervals of 10 seconds, and the average power consumption of the system is recorded and calculated 30 times as the third power consumption of the server.

[0087] S305, loop S302-S304 until the current power consumption of the server obtained after the fan is adjusted up or down is equal to the power consumption of the server before the fan is adjusted up or down, and the server is cooled at the current fan speed.

[0088] It is understandable that the heat dissipation requirements of the server take precedence over the above-mentioned power consumption optimization strategy of forced speed reduction adjustment. If there are factors that may affect the operation of the server, the power consumption optimization strategy of forced speed reduction adjustment will be exited. Factors that may affect the operation of the server include but are not limited to:

[0089] Trigger BMC's PID speed control of the fan speed;

[0090] When the server's ambient temperature changes by more than a threshold within a certain period of time, for example, when the server's ambient temperature changes by more than 3°C within 5 minutes;

[0091] The server has an abnormal warning;

[0092] The main high power consumption parts of the server cannot read the temperature.

[0093] This embodiment limits the search for a fan speed that is continuously reduced or increased under a stable state, and cyclically searches for a fan speed corresponding to a minimum power consumption value that satisfies both the fan heat dissipation requirements and the fan speed requirements, thereby achieving the lowest power consumption management of the server. In addition, this embodiment proposes that in the process of searching for the speed corresponding to the minimum power consumption value, the efficiency of searching for the fan speed corresponding to the minimum power consumption value that satisfies both the fan heat dissipation requirements and the fan speed requirements is improved by adjusting the speed step size and the speed percentage.

[0094] Figure 4 The present invention is a flowchart of a method for managing server power consumption according to another exemplary embodiment of the present invention.

[0095] Compared with the previous embodiment, the server power consumption management method provided in this embodiment refines the strategy for determining the first power consumption of the server when the BMC is running in a stable state.

[0096] Please refer to Figure 4 , a flow chart of a server power consumption management method includes:

[0097] S401, reading the operation data of the server according to the BMC.

[0098] The operating data of the server includes: temperature, speed regulation type, firmware version, etc.

[0099] S402: Determine, according to the server type, a linear speed regulation curve corresponding to the server type and a PID speed regulation strategy corresponding to the server type.

[0100] S403: Calculate the rotation speed of the fan according to the linear speed regulation curve and the PID speed regulation strategy.

[0101] If the speed of the fan calculated by the PID speed control strategy is greater than the speed of the fan obtained by the linear speed control curve, the speed of the fan is adjusted according to the PID speed control strategy until the speed of the fan calculated by the PID speed control strategy is less than the speed of the fan obtained by the linear speed control curve; if the speed of the fan calculated by the PID speed control strategy is less than the speed of the fan obtained by the linear speed control curve, the speed of the fan is adjusted according to the linear speed control curve.

[0102] In some specific embodiments: if the server has abnormal temperature and speed alarms, the BMC executes the corresponding abnormal speed regulation strategy, and matches the linear speed regulation curve corresponding to the server type and the PID speed regulation strategy corresponding to the server type according to the speed regulation type.

[0103] If the server does not have abnormal temperature or speed alarms, then check whether the BMC can effectively read the temperatures of key components such as the network card temperature, CPU temperature, GPU temperature (if the server involves GPU), Raid temperature, and U.2 temperature. If the BMC cannot effectively read the temperatures of all key components such as the network card temperature, CPU temperature, GPU temperature (if the server involves GPU), Raid temperature, and U.2 temperature, then the BMC will adjust the temperature according to the linear speed regulation and PID speed regulation strategies until the BMC can effectively read the temperatures of all key components such as the network card temperature, CPU temperature, GPU temperature (if the server involves GPU), Raid temperature, and U.2 temperature.

[0104] Determine the relationship between the fan speed calculated by the PID strategy and the fan speed calculated by the linear speed regulation. If the fan speed calculated by the PID strategy is greater than the fan speed of the linear speed regulation, the PID speed regulation strategy is used for control until the fan speed calculated by the PID strategy is greater than the fan speed of the linear speed regulation, and the linear speed regulation is used for control.

[0105] This embodiment sequentially performs the control sequence from PID strategy to linear speed regulation strategy. The PID strategy based on the heat dissipation conditions of the components in the server system is used to control the fan speed, which takes precedence over the linear speed regulation strategy based on the low power consumption of the server as the control of the fan speed, so as to avoid the linear speed regulation failing to meet the heat dissipation of the server under greater pressure.

[0106] S404: The server power consumption is adjusted by using the linear speed regulation curve until the speed of the fan no longer changes, as the first power consumption.

[0107] S405: Slow down the fan so that the fan maintains a second rotation speed lower than the rotation speed of the server in the first power consumption operation state to dissipate heat for the server.

[0108] S406: Collect a second power consumption of the server in an operating state where heat is dissipated at the second rotation speed.

[0109] S407. Continue to adjust the second rotational speed until the second power consumption of the server corresponding to the second rotational speed is equal to the second power consumption of the server corresponding to the last adjustment of the second rotational speed, and manage the power consumption of the server according to the current control strategy of the server.

[0110] The power consumption optimization strategy for the forced speed reduction adjustment in S405-S407 of this embodiment is the same as that in the previous embodiment, and its principle and technical effect are consistent with those in the previous embodiment, which will not be described in detail here.

[0111] The above is a detailed introduction to the server power consumption management method proposed in the present invention. Corresponding to the aforementioned server power consumption management method, the following introduces the server power consumption management device provided by the present invention.

[0112] Figure 5 The present invention is a block diagram of a server power consumption management device according to an exemplary embodiment of the present invention.

[0113] Please refer to Figure 5 , a server power consumption management device provided in this embodiment includes:

[0114] A power consumption determination unit 501, wherein the power consumption determination unit is configured to obtain a first power consumption in a running state of the server; the first power consumption is the power consumption of the server when the fan rotates at the lowest speed when the server operates in a stable state according to the BMC; the lowest speed of the fan when the server operates in a stable state according to the BMC is the first speed of the fan;

[0115] a rotation speed adjustment unit 502, the rotation speed adjustment unit being configured to control the fan to dissipate heat from the server at a second rotation speed lower than the first rotation speed;

[0116] a power consumption collection unit 503, configured to collect a second power consumption of the server in an operation state of dissipating heat at the second speed;

[0117] The power consumption management unit 504 is configured to continuously adjust the second rotational speed until the second power consumption of the server corresponding to the second rotational speed is equal to the second power consumption of the server corresponding to the last adjustment of the second rotational speed, and manage the power consumption of the server according to the control strategy of the current server.

[0118] It can be understood that the device of this embodiment is used to perform the following steps: Figure 2-Figure 4 The other implementation principles and technical effects of the server power consumption management method are similar and will not be described here.

[0119] This embodiment breaks the state of maintaining stable operation after finding the lowest fan speed, dynamically adjusts the fan speed that meets the heat dissipation requirements in stable operation under the control of the BMC, and finds the lowest power consumption value that meets both the fan heat dissipation requirements and the fan speed requirements, thereby achieving the lowest power consumption management of the server.

[0120] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A method for managing server power consumption, It is characterized in that include: Obtaining a first power consumption in a server operation state; The first power consumption is the power consumption of the server when the fan rotates at the lowest speed when the server operates in a stable state according to the BMC; the lowest speed of the fan when the server operates in a stable state according to the BMC is the first speed of the fan; Controlling the fan to dissipate heat from the server at a second rotation speed lower than the first rotation speed; collecting a second power consumption of the server in an operating state where heat is dissipated at the second speed; continuously adjusting the second rotation speed until the second power consumption of the server corresponding to the second rotation speed is equal to the second power consumption of the server corresponding to the last adjustment of the second rotation speed, and managing the power consumption of the server with the current control strategy of the server; The PID strategy for controlling the fan speed based on the heat dissipation conditions of the components in the server system takes precedence over the linear speed control strategy for controlling the fan speed; The method for determining the first power consumption is: the BMC of the server determines a linear speed regulation curve corresponding to the server type and a PID speed regulation strategy corresponding to the server type according to the server type; Determine the relationship between the fan speed calculated by the PID speed control strategy and the fan speed calculated by the linear speed control; if the fan speed calculated by the PID speed control strategy is greater than the fan speed of the linear speed control, control is performed using the PID speed control strategy until the fan speed calculated by the PID speed control strategy is less than the fan speed of the linear speed control, and then control is performed using the linear speed control; The power consumption of the server when the rotation speed of the fan is adjusted according to the linear speed regulation curve until the rotation speed of the fan no longer changes is used as the first power consumption.

2. The server power consumption management method according to claim 1, It is characterized in that The method for adjusting the second speed is: reducing and increasing the second speed of the fan in the current state by a first percentage of the current speed; in decreasing and increasing the second speed of the fan in the current state twice in an adjacent sequence, the speed change of decreasing the second speed of the fan by the first percentage of the current speed is greater than the speed change of increasing the second speed of the fan by the first percentage of the current speed.

3. The server power consumption management method according to claim 1, It is characterized in that If the second power consumption of the server is greater than the second power consumption of the server before the decrease after the second speed of the fan in the current state is decreased by a first percentage of the current speed, the second speed of the fan after the decrease is increased by the first percentage of the current speed until the second power consumption of the server corresponding to the second speed is equal to the second power consumption of the server corresponding to the last adjustment of the second speed, and the power consumption of the server is managed according to the current control policy of the server.

4. The server power consumption management method according to claim 2, It is characterized in that The second speed is continuously adjusted by a first percentage of the current speed that is fully or partially decreasing until the second power consumption corresponding to the second speed is equal to the second power consumption of the server corresponding to the last adjustment of the second speed, and the power consumption of the server is managed by the current control strategy of the server.

5. The server power consumption management method according to claim 1, It is characterized in that The method of continuously adjusting the second rotation speed until the second power consumption of the server corresponding to the second rotation speed is equal to the second power consumption of the server corresponding to the last adjustment of the second rotation speed is: If the second power consumption is greater than the first power consumption, the fan is controlled to dissipate heat for the server at a third speed that is lower than the first speed and higher than the second speed, the third power consumption of the server in the operating state of dissipating heat at the third speed is collected, the third speed of the fan is adjusted until the third power consumption of the server corresponding to the third speed is equal to the third power consumption of the server corresponding to the third speed of the fan adjusted last time, and the power consumption of the server is managed according to the current control strategy of the server; If the second power consumption is lower than the first power consumption, the fan is controlled to dissipate heat for the server at a fourth speed lower than the second speed, the fourth power consumption of the server in the operating state where the server is dissipated at the fourth speed is collected and compared with the second power consumption, the fourth speed of the fan is continuously reduced until the fourth power consumption of the server corresponding to the fourth speed is greater than the fourth power consumption of the server corresponding to the fourth speed of the fan that was reduced last time, and the power consumption of the server is managed according to the current control strategy of the server, or the fourth speed is increased to dissipate heat for the server, the fourth power consumption of the server in the operating state where the server is dissipated at the fourth speed is collected and compared with the second power consumption, the fourth speed of the fan is continuously increased until the fourth power consumption of the server corresponding to the fourth speed is greater than the fourth power consumption of the server corresponding to the fourth speed of the fan that was increased last time, and the power consumption of the server is managed according to the current control strategy of the server.

6. The server power consumption management method according to claim 5, It is characterized in that If the number of times the third speed is adjusted exceeds the first threshold, or / and, after the speed step of adjusting the third speed is lower than the second threshold, the third power consumption is greater than the first power consumption, the server power consumption is managed according to the control strategy of the server corresponding to the first power consumption.

7. The server power consumption management method according to claim 1, It is characterized in that If the duration that the temperature of the server exceeds the temperature threshold is greater than or equal to the duration after the rotation speed of the fan is adjusted once, the power consumption of the server is managed according to the control strategy of the server corresponding to the BMC stable state operation.

8. The server power consumption management method according to claim 1, It is characterized in that The method for obtaining the first power consumption in the running state of the server is: The fan is continuously operated at the same first speed for a time interval exceeding a time threshold, and an average value of the power consumption of the server in the time intervals collected multiple times is taken as the first power consumption; The method for collecting the second power consumption of the server in the operating state of dissipating heat at the second speed is: The fan is continuously operated at the same second speed for a time interval exceeding a time threshold, and an average value of the power consumption of the server in the time intervals collected for multiple times is taken as the second power consumption.

9. A server power consumption management device, It is characterized in that include: a power consumption determining unit, the power consumption determining unit being configured to obtain a first power consumption in a running state of the server; The first power consumption is the power consumption of the server when the fan rotates at the lowest speed when the server runs in a stable BMC state; the first speed of the fan at the lowest speed when the server runs in a stable BMC state; a rotation speed adjustment unit, the rotation speed adjustment unit being configured to control the fan to dissipate heat from the server at a second rotation speed lower than the first rotation speed; a power consumption collection unit, the power consumption collection unit being configured to collect a second power consumption of the server in an operating state where the server performs heat dissipation at the second speed; a power consumption management unit, wherein the power consumption management unit is configured to continuously adjust the second rotation speed until the second power consumption of the server corresponding to the second rotation speed is equal to the second power consumption of the server corresponding to the last adjustment of the second rotation speed, and manage the power consumption of the server according to the control strategy of the current server; The PID strategy for controlling the fan speed based on the heat dissipation conditions of the components in the server system takes precedence over the linear speed control strategy for controlling the fan speed; The method for determining the first power consumption is: the BMC of the server determines a linear speed regulation curve corresponding to the server type and a PID speed regulation strategy corresponding to the server type according to the server type; Determine the relationship between the fan speed calculated by the PID speed control strategy and the fan speed calculated by the linear speed control; if the fan speed calculated by the PID speed control strategy is greater than the fan speed of the linear speed control, control is performed using the PID speed control strategy until the fan speed calculated by the PID speed control strategy is less than the fan speed of the linear speed control, and then control is performed using the linear speed control; The power consumption of the server when the rotation speed of the fan is adjusted according to the linear speed regulation curve until the rotation speed of the fan no longer changes is used as the first power consumption.