This application claims priority under 35 U.S.C. § 119 to Chinese Patent Application No. 202310644792.5, filed on Jun. 1, 2023, the entire content of which is incorporated herein in its entirety.
The present application relates to a method for controlling total power consumption of a system by setting controller parameters based on temperature difference, and more particularly relates to a method, which has two sets of different control parameters and determines which set of control parameters to use by comparing a temperature difference, for controlling total power consumption of the system.
In general, in the existing technologies, an overall server system needs to undergo a test on temperature and total power consumption of the overall system and so on under a designated specific environment and condition. The overall server system is configured internally to include at least the following devices: a central processing unit (CPU), a memory, a hard disk, a network card, a graphics processing unit (GPU), and the like. In addition, in one scenario of actual test, it is required that, under an environmental temperature of 25° C. for the overall system, instantaneous maximum total power consumption of the overall system is measured to be no more than 900 W.
For a condition under which an environmental temperature is 25° C., a setpoint (SP in abbreviation) temperature Tsp for safe operation of the graphics processing unit is 72° C., and a loading pressure is continuously increased from 10% to 100%, with one set of result obtained by performing a test for every 10% increment in the loading pressure. Duration of a single test is 20 minutes. Test results show that total power consumption of the overall system in a stable phase is less than 870 W. However, there are multiple power consumption peaks of the overall system, and a maximum transient power consumption pertaining to these peaks reaches 930 W, which is significantly higher than the total power consumption 900 W set for the overall system in the stable phase. In order to satisfy the requirement that the transient total power consumption does not exceed 900 W, it is necessary to eliminate these power consumption peaks of the overall system.
In view of the prior art, total power consumption of an overall system may generate multiple power consumption peaks, which is unstable. Therefore, obtaining relatively stable total power consumption of the overall system has become an urgent issue needs to be resolved.
To resolve the problem of the prior art, an essential technical measure adopted by the present disclosure is to provide a method for controlling total power consumption of system by setting controller parameters based on temperature difference, which is applied to a system with at least one heat-generating element, one fan, and one controller, where the heat-generating element has a setpoint temperature Tsp. The method includes: setting the controller with a first control parameter and a second control parameter; reading a current temperature T(i) of the heat-generating element by the controller; and comparing the current temperature T(i) and the setpoint temperature Tsp by the controller to determine whether a feedback control is provided to the fan by the controller based on the first control parameter or the second control parameter such that a total power consumption of the system is controlled.
According to an auxiliary technical measure derived from the above-mentioned essential technical measure, a step is further included: determining whether to launch a PID speed control strategy by the controller.
According to an auxiliary technical measure derived from the above-mentioned essential technical measure, during the step of comparing temperatures, when a difference between the current temperature T(i) and the setpoint temperature Tsp is relatively small, using the first control parameter; when the difference between the current temperature T(i) and the setpoint temperature Tsp is relatively large, using the second control parameter. The first control parameter is smaller than the second control parameter.
According to an auxiliary technical measure derived from the above-mentioned essential technical measure, during the step of comparing temperatures, when the difference between the current temperature T(i) and the setpoint temperature Tsp is smaller or equal to 2, using the first control parameter; when the difference between the current temperature T(i) and the setpoint temperature Tsp is greater than 2, using the second control parameter.
In view of the above, since the method for controlling total power consumption of system by setting controller parameters based on temperature difference is a method, which has two sets of different control parameters and determines which set of control parameters to use by comparing a temperature difference, for controlling total power consumption of the system, the present disclosure is able to effectively achieve relatively stable total power consumption of the system.
Specific embodiments adopted by the present disclosure are further illustrated in accordance with the following embodiments and accompanying drawings.
References may be made to
As shown in
The method of the present disclosure includes: first, starting a test process of an experiment and setting a controller with a first control parameter and a second control parameter (Step S01); then, reading a current temperature T(i) of element 10 and a rotation speed of fan 40 by a controller (Step S02); next, determining, by the controller, whether to launch a PID speed control strategy (Step S03); if determination result is positive, launching the PID speed control strategy (Step S04).
The aforementioned PID speed control, which stands for “proportional, integral, derivative control”, has PID control values that include a proportional coefficient Kp, an integral coefficient Ki, and a derivative coefficient Kd. This is a commonly used control strategy for fan 40, which is usually launched during a loading pressurization test, with an objective to quickly adjust an appropriate rotation speed of fan 40 to meet a temperature control requirement of element 10.
Further, the controller compares the current temperature T(i) with the setpoint temperature Tsp, for example, by calculating whether a difference between the current temperature T(i) and the setpoint temperature Tsp is greater than 2 (Step S05). Reasons for using this way for calculation to perform determination, and explanations for related content may be found in subsequent description.
If it is determined that the difference between the current temperature T(i) and the setpoint temperature Tsp is not greater than 2, that is, the difference is smaller than or equal to 2, which means the difference between the current temperature T(i) and the setpoint temperature Tsp is relatively small, the controller performs calculation using the first control parameter. That is, the controller calculates a pulse-width modulation value (PWM in abbreviation) of fan 40 using relatively small parameters of the PID control values (Step S06), and outputs the PWM value as a final current PWM value PWM(i) of fan 40 (Step S08). Thus, a feedback control is provided to fan 40 by the controller to control the total power consumption of the system.
If it is determined that the difference between the current temperature T(i) and the setpoint temperature Tsp is greater than 2, that is, when the difference between the current temperature T(i) and the setpoint temperature Tsp is relatively large, the controller calculates a PWM value of fan 40 using the second control parameter. That is, the controller calculates a PWM value of fan 40 using relatively large parameters of the PID control values (Step S07), and outputs the PWM value as a final current PWM value PWM(i) of fan 40 (Step S08). Thus, a feedback control is provided to fan 40 by the controller to control the total power consumption of the system. The experiment is ended (Step S09).
It should be particularly noted that description of a way for calculating the PWM value of fan 40 using the PID speed control strategy by the controller is as follows. The controller obtains a current PWM value PWM(i) based on a PWM value at a previous moment PWM(i−1) of the fan 40 and a PWM difference value ΔPWM(i) of the fan 40, that is, PWM(i) is calculated according to the following formula: PWM(i)=PWM(i−1)+ΔPWM(i). A specific way of calculating the PWM difference value ΔPWM(i) of fan 40 is accomplished according to the following formula: ΔPWM(i)=Kp*[e(i)−e(i−1)]+Ki*e(i)+Kd*[T(i)−2*T(i−1)+T(i−2)], where e(i)=T(i)−Tsp; T(i) is a temperature of element 10 at an i-th moment, that is, a temperature at a current moment; Tsp is a setpoint temperature for safe operation of element 10; and Kp, Ki, and Kd are PID control values stored in baseboard management controller 20, which are a proportional coefficient, an integral coefficient, and a differential coefficient respectively. When a difference between the current temperature T(i) and the setpoint temperature Tsp is relatively small, corresponding PID values are substituted as the first control parameter into calculation to obtain the current PWM value PWM(i). When the difference between the current temperature T(i) and the setpoint temperature Tsp is relatively large, corresponding PID values are substituted as the second control parameter into calculation to obtain the current PWM value PWM(i). The first control parameter is smaller than the second control parameter.
Description of related hardware is presented as follows, and reference may be made to
For the test of the experiment, a specific loading pressure testing software is used to conduct the test of the experiment, which is particularly used for a graphics processing unit of the overall server system. During the experiment, power consumption of the graphics processing unit is momentarily halved and then quickly restored to full power, i.e., the power consumption is rapidly decreased and then rapidly increased, resulting in a rapid decrease followed by a rapid increase in temperature of the graphics processing unit. However, since both a heat dissipation risk point and a control point of fan 40 under a pressured loading condition are on the graphics processing unit, that is, the graphics processing unit under the pressured condition is the only element determining a rotation speed of fan 40, the graphics processing unit causes drastic fluctuations in the rotation speed of fan 40 at the end and beginning of each cycle.
Since the temperature of the graphics processing unit is closely related to its power consumption of the graphics processing unit, and the temperature of the graphics processing unit needs to be read before the rotation speed of fan 40 is adjusted, there is a certain delay in a response of the rotation speed of fan 40 to the power consumption of the graphics processing unit. This delay inevitably results in excessive adjustment of the rotation speed of fan 40, causing peaks in both the rotation speed of fan 40 and the power consumption, leading to peaks in the total power consumption of the system.
Based on the above-mentioned analysis, in order to reduce an impact of the graphics processing unit on the rotation speed of fan 40 during a process from an end to a restart of each cycle such that a goal of controlling the total power consumption of the overall system may be achieved, the following PID control strategy is proposed by the present disclosure: two different sets of parameters of PID control values are set according to a difference between a current temperature T(i) of the graphics processing unit and a setpoint temperature Tsp of the graphics processing unit for safe operation. When T(i)−Tsp≥−2 and T(i)−Tsp≤2, parameters of the PID control values corresponding to the smaller first control parameter are used, such as 2, 0.2, and 0.1. When T(i)−Tsp>2, parameters of the PID control values corresponding to the larger second control parameter are used, such as 3, 0.5, and 0.1. The present disclosure is advantageous that when the temperature of the graphics processing unit approaches its setpoint temperature Tsp, parameters of the PID control values are set to be relatively small (i.e., the first control parameter is adopted), making the rotation speed of fan 40 change slowly, which facilitates the rotation speed to stabilize rapidly. When the temperature of the graphics processing unit deviates relatively significantly from the setpoint temperature Tsp, the parameters of the PID control values are set to be relatively large (i.e., the second control parameter is adopted), making the rotation speed of fan 40 change quickly, which facilitates rapid reduction or increase in the rotation speed of fan 40, timely response to drastic changes in the temperature of the graphics processing unit, and avoidance of an out-of-range adjustment caused by a response delay of fan 40, thereby achieving a goal of reducing the maximum rotation speed of fan 40 and the total power consumption of the overall system.
By setting two different sets of parameters of the PID control values, a larger PWM difference Δ PWM(i) may be calculated when the temperature of the graphics processing unit rises relatively rapidly, allowing the rotation speed of fan 40 to be faster; and a smaller PWM difference Δ PWM(i) may be calculated when the temperature of the graphics processing unit rises relatively slowly, allowing a change in the rotation speed of fan 40 to be smaller. By using the above-mentioned strategy, an over-adjustment of fan 40 caused by rapid temperature change in the graphics processing unit may be avoided, thereby avoiding peaks to appear in the power consumption of the overall system and allowing a transient power consumption to be reduced below 900 W.
The present disclosure is applicable when the graphics processing unit is in a heating phase, and the temperature of the graphics processing unit rises rapidly after the loading is pressurized, which may even exceed 2° C. and reach 7° C. By using the strategy of the present disclosure, a larger rotation speed of fan 40 can be provided during the heating phase, which facilities to slow down a rise in the temperature of the graphics processing unit, thereby reducing a power consumption of fan 40 and a maximum total power consumption of the overall system.
A final result of the experiment shows that power consumption of the graphics processing unit during a cycle first decreases rapidly and then increases rapidly, causing all of the temperature of the graphics processing unit, the rotation speed of fan 40, the power consumption of fan 40, and the total power consumption of the overall system to decrease rapidly and then increase rapidly. Therefore, an effective PID control strategy is proposed by setting two different sets of control parameters to reduce the maximum rotation speed of fan 40 and the power consumption of fan 40, thereby achieving a goal of reducing the maximum transient total power consumption of the overall system and meeting the requirements of avoiding power consumption peaks.
It should be particularly noted that a key point of the above-mentioned strategy is the control strategy method, and the exemplified detailed PID control parameters, such as contents of the first control parameter and second control parameter, are not unique and there may still be room for further optimization and improvement. When changes occur to a wind guide cover, to the model and installation manner of the graphics processing unit, or to machine configuration and the like, values of relevant PID control parameters may need to be adjusted accordingly, yet the control strategy method remains valid. In addition, the PID control parameters can also be further adjusted and optimized according to changes in requirements, with the key point to achieve a goal of reducing a maximum rotation speed of fan 40 and a maximum total power consumption of the overall system through the strategy of the present disclosure.
In addition, it should be noted that although the above-mentioned strategy is based on an experiment result obtained from a pressure testing software which conducts actual loading pressurization on the graphics processing unit, the strategy can still be applied to other configurations of overall system and system platform that have severe fluctuations in power consumption and strict requirements for total power consumption of the overall system.
After conducting actual testing on the graphics processing unit using a loading pressure testing software, it is found that power consumption of the graphical processor first decreases rapidly and then increases rapidly, causing quick decreasing and then quick increasing of the temperature of the graphics processing unit, the rotation speed of fan 40, the power consumption of fan 40, and the total power consumption of the overall system. Therefore, an effective control strategy is provided by the present disclosure, which has the following advantages.
In view of the above, since the method for controlling total power consumption of system by setting controller parameters based on temperature difference provided by the present disclosure is a method for controlling total power consumption of the system which uses two different sets of control parameters and compares a temperature difference to determine which set of control parameters to use, the present disclosure can effectively achieve a more stable total power consumption of the system.
The above-mentioned preferred embodiments are illustrated in the hope that features and spirits of the present disclosure are described more clearly, yet the scope of the present disclosure shall not be limited by using the above-mentioned preferred embodiments being disclosed. On the contrary, the objective is to cover various alternations and equivalent arrangements within the intended scope of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
202310644792.5 | Jun 2023 | CN | national |