Fan control method, device and equipment and computer readable storage medium

By using the proportional integral differential calculation formula to generate control signals in the server, the fan speed response is optimized, the problem of temperature control lag is solved, and timely response to changes in component power consumption and stable cooling are achieved.

CN118622749APending Publication Date: 2024-09-10INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410867564.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-30
Publication Date
2024-09-10

Smart Images

  • Figure CN118622749A
    Figure CN118622749A
Patent Text Reader

Abstract

The invention discloses a fan control method, device and equipment and a computer readable storage medium, and relates to the technical field of servers. Obtaining a first control signal increment according to the power consumption and the temperature of the target component and a first proportional integral differential calculation formula; the proportional term of the first proportional integral differential calculation formula is the product of the power consumption variable quantity of the target component and the first proportionality coefficient; obtaining a second control signal increment according to the temperature of the target component and a second proportional integral differential calculation formula; a proportional term in the second proportional integral differential calculation formula is a product of the temperature variation of the target component and a second proportionality coefficient; obtaining a first control signal according to the first control signal increment, and obtaining a second control signal according to the second control signal increment; and selecting the maximum value of the first control signal and the second control signal, and controlling the fan according to the maximum value. According to the method, temperature overshoot can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of server technology, and in particular to a fan control method, device, equipment and computer-readable storage medium. Background Art

[0002] Servers are often equipped with cooling fans, which are used to dissipate heat from the components in the server to prevent the components from overheating. The current control method for cooling fans in servers is mainly based on the temperature of the components. However, the performance of component temperature has a lag. When the load and power consumption of the components change, it takes some time for the temperature of the components to rise or fall. Especially when the power consumption of the components changes significantly, waiting for the temperature of the components to change and then controlling the fan speed according to the temperature may cause the fan speed to respond untimely and the temperature of the components to overheat for a short time.

[0003] Therefore, how to solve the above technical defects has become a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention

[0004] The purpose of the present application is to provide a fan control method, device, equipment and computer-readable storage medium, which can avoid temperature overshoot.

[0005] To solve the above technical problems, the present application provides a fan control method, comprising:

[0006] Get the power consumption and temperature of the target component at the current moment;

[0007] According to the power consumption and temperature of the target component at the current moment and a first proportional-integral-differential calculation formula, a first control signal increment is obtained; the proportional term of the first proportional-integral-differential calculation formula is the product of the power consumption change of the target component and a first proportional coefficient;

[0008] According to the temperature of the target component at the current moment and the second proportional-integral-differential calculation formula, a second control signal increment is obtained; the proportional term in the second proportional-integral-differential calculation formula is the product of the temperature change of the target component and the second proportional coefficient;

[0009] Obtain a first control signal according to the increment of the first control signal, and obtain a second control signal according to the increment of the second control signal;

[0010] Selecting a maximum value between the first control signal and the second control signal;

[0011] The rotation speed of the fan is controlled according to the maximum value.

[0012] In some embodiments, according to the power consumption and temperature of the target component at the current moment and the first proportional-integral-differential calculation formula, obtaining the first control signal increment includes:

[0013] Subtract the power consumption of the target component at time k from the power consumption of the target component at time k-1 to obtain the power consumption change, and multiply the power consumption change by the first proportional coefficient to obtain the proportional term of the first proportional-integral-differential calculation formula; time k represents the current time;

[0014] Subtract the temperature of the target component at time k from the temperature control point to obtain a temperature difference, and multiply the temperature difference by a first integral coefficient to obtain an integral term of the first proportional-integral-differential calculation formula;

[0015] Subtract the power consumption of the target component at time k from twice the power consumption of the target component at time k-1, and sum the difference with the power consumption of the target component at time k-2 to obtain the differential term of the first proportional integral differential calculation formula;

[0016] The proportional term, the integral term and the differential term of the first proportional-integral-differential calculation formula are added together to obtain the first control signal increment.

[0017] In some embodiments, according to the temperature of the target component at the current moment and the second proportional-integral-differential calculation formula, obtaining the second control signal increment includes:

[0018] Subtract the temperature of the target component at time k from the temperature of the target component at time k-1 to obtain the temperature change, and multiply the temperature change by the second proportional coefficient to obtain the proportional term of the second proportional-integral-differential calculation formula; time k represents the current time;

[0019] Subtract the temperature of the target component at time k from the temperature control point to obtain a temperature difference, and multiply the difference by a second integral coefficient to obtain an integral term of the second proportional-integral-differential calculation formula;

[0020] Subtract the temperature of the target component at time k from twice the temperature of the target component at time k-1, and sum the obtained difference with the temperature of the target component at time k-2 to obtain the differential term of the second proportional integral differential calculation formula;

[0021] The proportional term, the integral term and the differential term of the second proportional-integral-differential calculation formula are added together to obtain the second control signal increment.

[0022] In some embodiments, obtaining a first control signal according to the first control signal increment, and obtaining a second control signal according to the second control signal increment comprises:

[0023] Adding the first control signal increment to the control signal calculated at the previous moment to obtain the first control signal at the current moment;

[0024] The second control signal increment is added to the control signal calculated at the previous moment to obtain the second control signal at the current moment.

[0025] In some embodiments, it also includes:

[0026] Setting the proportional coefficient, integral coefficient and differential coefficient of the first proportional-integral-differential calculation formula;

[0027] The proportional coefficient, integral coefficient and differential coefficient of the second proportional-integral-differential calculation formula are set.

[0028] In some embodiments, setting the proportional coefficient of the first proportional-integral-differential calculation formula includes:

[0029] The proportional coefficient of the first proportional-integral-differential calculation formula is set according to the power consumption of the target component in no-load condition, the power consumption during full-voltage test, and the target value of the proportional term increase control signal when the target component reaches the full-voltage power consumption.

[0030] In some embodiments, it also includes:

[0031] Obtaining a third control signal according to the corresponding relationship between the power consumption of the target component and the control signal;

[0032] Selecting a maximum value among the first control signal, the second control signal and the third control signal;

[0033] Control the fan speed according to the selected maximum value;

[0034] Among them, the first control signal is obtained by adding the first control signal increment to the control signal calculated at the previous moment; the power consumption of the target component at time k is subtracted from the power consumption of the target component at time k-1 to obtain the power consumption change, and the power consumption change is multiplied by the first proportional coefficient to obtain the proportional term of the first proportional-integral-differential calculation formula; time k represents the current moment; the temperature of the target component at time k is subtracted from the temperature control point to obtain the temperature difference, and the temperature difference is multiplied by the first integral coefficient to obtain the integral term of the first proportional-integral-differential calculation formula; the power consumption of the target component at time k is subtracted from twice the power consumption of the target component at time k-1, and the obtained difference is summed with the power consumption of the target component at time k-2 to obtain the differential term of the first proportional-integral-differential calculation formula; the proportional term, integral term and differential term of the first proportional-integral-differential calculation formula are added to obtain the first control signal increment ; The second control signal is obtained by adding the second control signal increment to the control signal calculated at the previous moment; the temperature of the target component at moment k is subtracted from the temperature of the target component at moment k-1 to obtain the temperature change, and the temperature change is multiplied by the second proportional coefficient to obtain the proportional term of the second proportional-integral-differential calculation formula; moment k represents the current moment; the temperature of the target component at moment k is subtracted from the temperature control point to obtain the temperature difference, and the temperature difference is multiplied by the second integral coefficient to obtain the integral term of the second proportional-integral-differential calculation formula; the temperature of the target component at moment k is subtracted from twice the temperature of the target component at moment k-1, and the difference is summed with the temperature of the target component at moment k-2 to obtain the differential term of the second proportional-integral-differential calculation formula; the proportional term, the integral term and the differential term of the second proportional-integral-differential calculation formula are added to obtain the second control signal increment.

[0035] In order to solve the above technical problems, the present application also provides a fan control device, comprising:

[0036] An acquisition module is used to obtain the power consumption and temperature of the target component at the current moment;

[0037] A first calculation module, configured to obtain a first control signal increment according to the power consumption and temperature of the target component at the current moment and a first proportional-integral-differential calculation formula; the proportional term of the first proportional-integral-differential calculation formula is the product of the power consumption change of the target component and a first proportional coefficient;

[0038] A second calculation module, used to obtain a second control signal increment according to the temperature of the target component at the current moment and a second proportional-integral-differential calculation formula; the proportional term in the second proportional-integral-differential calculation formula is the product of the temperature change of the target component and a second proportional coefficient;

[0039] a third calculation module, configured to obtain a first control signal according to the increment of the first control signal, and obtain a second control signal according to the increment of the second control signal;

[0040] A selection module, used for selecting a maximum value between the first control signal and the second control signal;

[0041] A control module is used to control the rotation speed of the fan according to the maximum value.

[0042] In order to solve the above technical problems, the present application also provides a fan control device, including:

[0043] Memory for storing computer programs;

[0044] The processor is used to implement the steps of the fan control method described above when executing the computer program.

[0045] In order to solve the above technical problem, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the fan control method described above are implemented.

[0046] In order to solve the above technical problem, the present application also provides a computer program product, including a computer program / instruction, which implements the steps of the fan control method described above when executed by a processor.

[0047] The fan control method provided in the present application includes: obtaining the power consumption and temperature of the target component at the current moment; obtaining a first control signal increment according to the power consumption, temperature and a first proportional-integral-differential calculation formula of the target component at the current moment; the proportional term of the first proportional-integral-differential calculation formula is the product of the power consumption change of the target component and a first proportional coefficient; obtaining a second control signal increment according to the temperature of the target component at the current moment and a second proportional-integral-differential calculation formula; the proportional term in the second proportional-integral-differential calculation formula is the product of the temperature change of the target component and a second proportional coefficient; obtaining a first control signal according to the first control signal increment, and obtaining a second control signal according to the second control signal increment; selecting the maximum value between the first control signal and the second control signal; and controlling the speed of the fan according to the maximum value.

[0048] It can be seen that the fan control method provided by the present application uses the power consumption and temperature of the target component to control the fan at the same time. When the power consumption of the target component changes significantly, the product of the power consumption change of the target component and the first proportional coefficient can take the lead in playing a role and greatly increase the fan speed. When the temperature of the target component begins to change significantly with the increase of power consumption, the product of the temperature change of the target component and the second proportional coefficient gradually plays a leading role and increases the fan speed. In this way, the first control signal increment obtained according to the power consumption, temperature and the first proportional integral differential calculation formula of the target component at the current moment and the second control signal increment obtained according to the temperature of the target component at the current moment and the second proportional integral differential calculation formula can ensure that when the power consumption changes significantly, the fan speed is increased in time to avoid temperature overshoot, and the fan speed can be effectively controlled after the power consumption stabilizes.

[0049] The fan control device, equipment, computer-readable storage medium and computer program product provided in this application all have the above-mentioned technical effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the prior art and the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0051] Figure 1 A schematic diagram of a flow chart of a fan control method provided in an embodiment of the present application;

[0052] Figure 2 A schematic diagram of a corresponding relationship between power consumption and control signals provided in an embodiment of the present application;

[0053] Figure 3 A schematic diagram of a fan control device provided in an embodiment of the present application;

[0054] Figure 4 A schematic diagram of a fan control device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0055] The core of this application is to provide a fan control method, device, equipment and computer-readable storage medium, which can avoid temperature overshoot.

[0056] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0057] Please refer to Figure 1 , Figure 1 A schematic diagram of a fan control method provided in an embodiment of the present application is provided. Figure 1 As shown, the method includes:

[0058] S101: Obtain the power consumption and temperature of the target component at the current moment;

[0059] The fan in the server is usually controlled by a BMC (Baseboard Management Controller), so the execution subject of the fan control method provided in this embodiment can be a BMC. During the normal operation of the server, the BMC obtains the power consumption and temperature of the target component. The target component can be a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), etc.

[0060] Among them, since the temperature will change 3 to 5 seconds after the power consumption changes, the BMC needs to obtain the power consumption of the target component in time. Preferably, the BMC obtains the power consumption of the target component every 0.5 to 1.0 seconds, that is, the power consumption of the target component is updated every 0.5 to 1.0 seconds.

[0061] S102: Obtaining a first control signal increment according to the power consumption and temperature of the target component at the current moment and a first proportional-integral-differential calculation formula; the proportional term of the first proportional-integral-differential calculation formula is the product of the power consumption change of the target component and a first proportional coefficient;

[0062] On the basis of obtaining the power consumption and temperature of the target component at the current moment, the first control signal increment is obtained according to the power consumption and temperature of the target component at the current moment and the first proportional integral differential calculation formula. The proportional term of the first proportional integral differential calculation formula is the product of the power consumption change of the target component and the first proportional coefficient. When the power consumption of the target component changes significantly, the product of the power consumption change of the target component and the first proportional coefficient can take the lead in playing a role and controlling the fan in advance of the temperature change.

[0063] In some embodiments, obtaining the first control signal increment according to the power consumption and temperature of the target component at the current moment and the first proportional integral differential calculation formula includes:

[0064] Subtract the power consumption of the target component at time k from the power consumption of the target component at time k-1 to obtain the power consumption change, and multiply the power consumption change by the first proportional coefficient to obtain the proportional term of the first proportional-integral-differential calculation formula; time k represents the current time;

[0065] Subtract the temperature of the target component at time k from the temperature control point to obtain a temperature difference, and multiply the temperature difference by a first integral coefficient to obtain an integral term of the first proportional-integral-differential calculation formula;

[0066] Subtract the power consumption of the target component at time k from twice the power consumption of the target component at time k-1, and sum the difference with the power consumption of the target component at time k-2 to obtain the differential term of the first proportional integral differential calculation formula:

[0067] The proportional term, the integral term and the differential term of the first proportional-integral-differential calculation formula are added together to obtain the first control signal increment.

[0068] The first control signal increment may be a PWM control signal increment. The first proportional integral differential calculation formula may be expressed as follows:

[0069]

[0070] is the first control signal increment, Kp is the proportional coefficient, Ki is the integral coefficient, Kd is the differential coefficient, P(k) is the power consumption of the target component at moment k, that is, the power consumption of the target component at the current moment, P(k-1) is the power consumption of the target component at moment k-1, P(k-2) is the power consumption of the target component at moment k-2, T(k) is the temperature of the target component at moment k, that is, the temperature of the target component at the current moment, Tsp is the set temperature control point, that is, the highest temperature that the target component is expected to reach during the operation of the server.

[0071] In this embodiment, the product of the difference between the power consumption of the target component at time k and the power consumption of the target component at time k-1 and the proportional coefficient is used as the proportional term, which can ensure that the fan responds in advance and avoid the problem of component overheating caused by untimely fan response. The product of the difference between the temperature of the target component at time k and the temperature control point and the integral coefficient is used as the integral term, and the temperature can be used as a stable measurement standard to ensure that the fan speed regulation process can achieve balance.

[0072] S103: obtaining a second control signal increment according to the temperature of the target component at the current moment and a second proportional-integral-differential calculation formula; the proportional term in the second proportional-integral-differential calculation formula is the product of the temperature change of the target component and a second proportional coefficient;

[0073] On the basis of obtaining the temperature of the target component at the current moment, according to the temperature of the target component at the current moment, according to the second proportional integral differential calculation formula, the second control signal increment is obtained. Among them, the proportional term of the second proportional integral differential calculation formula is the product of the temperature change of the target component and the second proportional coefficient. When the temperature of the target component changes greatly, the product of the temperature change of the target component and the second proportional coefficient can gradually play a leading role and increase the fan speed.

[0074] In some embodiments, according to the temperature of the target component at the current moment and the second proportional-integral-differential calculation formula, obtaining the second control signal increment includes:

[0075] Subtract the temperature of the target component at time k from the temperature of the target component at time k-1 to obtain the temperature change, and multiply the temperature change by the second proportional coefficient to obtain the proportional term of the second proportional-integral-differential calculation formula; time k represents the current time;

[0076] Subtract the temperature of the target component at time k from the temperature control point to obtain a temperature difference, and multiply the temperature difference by a second integral coefficient to obtain an integral term of the second proportional-integral-differential calculation formula;

[0077] Subtract the temperature of the target component at time k from twice the temperature of the target component at time k-1, and sum the obtained difference with the temperature of the target component at time k-2 to obtain the differential term of the second proportional integral differential calculation formula;

[0078] The proportional term, the integral term and the differential term of the second proportional-integral-differential calculation formula are added together to obtain the second control signal increment.

[0079] The second control signal increment may be a PWM control signal increment. The second proportional integral differential calculation formula may be expressed as follows:

[0080]

[0081] Kp is the proportional coefficient, Ki is the integral coefficient, and Kd is the differential coefficient. T(k), T(k-1), and T(k-2) are the temperature values ​​detected by the sensor at time k, k-1, and k-2, respectively. Tsp is the set temperature control point, that is, the highest temperature value that the target component temperature is expected to reach during the operation of the server. Kp*[T(k)-T(k-1)] is the proportional term, which represents the difference between the temperature at time k and the temperature at time k-1. When the temperature of the target component changes, the proportional term can be used to respond quickly. When the temperature of the target component increases, the proportional term is positive, which can increase the fan speed; when the temperature of the target component decreases, the proportional term is negative, which can reduce the fan speed; Ki(T(k)-Tsp) is the integral term, which represents the difference between the temperature at time k and the temperature control point. When the temperature of the target component is higher than the temperature control point, the integral term is positive, which can increase the fan speed; when the temperature of the target component is lower than the temperature control point, the integral term is negative, which can reduce the fan speed. The temperature control point in the integral term determines the stable value of the temperature during the control process. Kd*[T(k)-2*T(k-1)+T(k-2)] is the differential term.

[0082] S104: obtaining a first control signal according to the increment of the first control signal, and obtaining a second control signal according to the increment of the second control signal;

[0083] In some embodiments, obtaining a first control signal according to the first control signal increment, and obtaining a second control signal according to the second control signal increment comprises:

[0084] Adding the first control signal increment to the control signal calculated at the previous moment to obtain the first control signal at the current moment;

[0085] The second control signal increment is added to the control signal calculated at the previous moment to obtain the second control signal at the current moment.

[0086] The first control signal increment is added to the control signal at the previous moment to obtain the first control signal. The second control signal increment is added to the control signal at the previous moment to obtain the second control signal. The control signal at the previous moment is not the control signal actually output to the fan, but a virtual control signal calculated at the previous moment.

[0087] If the control signal increment is the PWM control signal increment, then the control signal is the PWM control signal. The PWM control signal can be expressed as follows:

[0088] PWM(k)=PWM(k-1)+VPWM. PWM(k-1) is the virtual PWM control signal calculated at time k-1, and PWM(k) is the control signal calculated at time k, i.e., the current time.

[0089] S105: Selecting a maximum value between the first control signal and the second control signal;

[0090] S106: Control the speed of the fan according to the selected maximum value.

[0091] The maximum value between the first control signal and the second control signal is selected and output to the fan, thereby controlling the rotation speed of the fan.

[0092] In some embodiments, it also includes:

[0093] Setting the proportional coefficient, integral coefficient and differential coefficient of the first proportional-integral-differential calculation formula;

[0094] The proportional coefficient, integral coefficient and differential coefficient of the second proportional-integral-differential calculation formula are set.

[0095] In some embodiments, setting the proportional coefficient of the first proportional-integral-differential calculation formula includes:

[0096] The proportional coefficient of the first proportional-integral-differential calculation formula is set according to the power consumption of the target component in no-load condition, the power consumption during full-voltage test, and the target value of the proportional term increase control signal when the target component reaches the full-voltage power consumption.

[0097] The setting of the proportional coefficient Kp in the first proportional integral differential calculation formula is set differently according to the type of the target component. When the power consumption of the target component may vary greatly, the proportional coefficient Kp is set smaller to avoid the first control signal increment calculated by the proportional term causing the fan to rotate at full speed when the power consumption fluctuates greatly.

[0098] For the setting of the proportional coefficient Kp in Kp*[P(k)-P(k-1)], the power consumption of the target component in normal idle conditions after power-on and the power consumption during full-voltage test are listed. According to the change in power consumption from idle power consumption to full-voltage power consumption, i.e., the power consumption during full-voltage test of the target component and the heat dissipation risk when the target component reaches full-voltage power consumption, the target value of PWM for the proportional term increase is formulated, and then the initial proportional coefficient Kp is obtained.

[0099] For example, as shown in Table 1, the heat dissipation risk of NVME and DIMM is relatively small, and the target value of the proportional item PWM can be set to 77 (30% duty). The full-voltage power consumption of the CPU and GPU is high, and the change from idle power consumption to full-voltage power consumption is large. The target value of the proportional item PWM can be set to 102 (40% duty), from which the initial proportional coefficient Kp can be obtained.

[0100] Table 1

[0101] Part Name IDLE Power Consumption Full voltage power consumption The proportional term increases the PWM target value Kp NVME 2 18 77 4.8 DIMM 2 10 77 9.6 CPU 100 350 102 0.3 GPU 12 500 102 0.2

[0102] The setting value of the integral coefficient Ki is usually between 0.1 and 0.5. In order to ensure that the integral term can increase the fan speed in time when the temperature rises, and reduce the fan speed in time when the temperature drops, the integral coefficient Ki is generally set to 0.3. The differential coefficient Kd is generally set to 0.3.

[0103] Test according to the set coefficients. If the fan speed increases significantly first, then decreases significantly, and then tends to be stable, a large peak appears in the response curve, and the temperature curve shows a gentle slope rise, it means that the fan response is too large during the speed regulation process, and the proportional coefficient Kp and the integral coefficient Ki need to be appropriately reduced to reduce or eliminate the amplitude of the fan speed peak. If the fan speed PWM gradually stabilizes after the power consumption value has been stable for a long time, and the temperature curve has a short-term overshoot phenomenon that is higher than the stable temperature value, it means that the fan response speed is slow, and the proportional coefficient Kp and the integral coefficient Ki need to be appropriately increased to increase the fan response speed. If the fan speed can stabilize in a short time after the power consumption value and the temperature value tend to be stable, and there is no obvious speed and temperature overshoot during the response process, then it is judged that the parameter value at this time is more reasonable.

[0104] In some embodiments, it also includes:

[0105] Obtaining a third control signal according to the corresponding relationship between the power consumption of the target component and the control signal;

[0106] Selecting a maximum value among the first control signal, the second control signal and the third control signal;

[0107] Control the fan speed according to the selected maximum value;

[0108] Among them, the first control signal is obtained by adding the first control signal increment to the control signal calculated at the previous moment; the power consumption of the target component at time k is subtracted from the power consumption of the target component at time k-1 to obtain the power consumption change, and the power consumption change is multiplied by the first proportional coefficient to obtain the proportional term of the first proportional-integral-differential calculation formula; time k represents the current moment; the temperature of the target component at time k is subtracted from the temperature control point to obtain the temperature difference, and the temperature difference is multiplied by the first integral coefficient to obtain the integral term of the first proportional-integral-differential calculation formula; the power consumption of the target component at time k is subtracted from twice the power consumption of the target component at time k-1, and the obtained difference is summed with the power consumption of the target component at time k-2 to obtain the differential term of the first proportional-integral-differential calculation formula; the proportional term, integral term and differential term of the first proportional-integral-differential calculation formula are added to obtain the first control signal increment ; The second control signal is obtained by adding the second control signal increment to the control signal calculated at the previous moment; the temperature of the target component at moment k is subtracted from the temperature of the target component at moment k-1 to obtain the temperature change, and the temperature change is multiplied by the second proportional coefficient to obtain the proportional term of the second proportional-integral-differential calculation formula; moment k represents the current moment; the temperature of the target component at moment k is subtracted from the temperature control point to obtain the temperature difference, and the temperature difference is multiplied by the second integral coefficient to obtain the integral term of the second proportional-integral-differential calculation formula; the temperature of the target component at moment k is subtracted from twice the temperature of the target component at moment k-1, and the difference is summed with the temperature of the target component at moment k-2 to obtain the differential term of the second proportional-integral-differential calculation formula; the proportional term, the integral term and the differential term of the second proportional-integral-differential calculation formula are added to obtain the second control signal increment.

[0109] In this embodiment, the control signal is determined based on the linearity of power consumption as an auxiliary to the proportional-integral-differential calculation, so that when the power consumption increases, the fan speed is first slightly increased according to the linear corresponding speed. Specifically, according to the corresponding relationship between the power consumption of the target component and the control signal, a third control signal is obtained, and then the maximum value is selected from the first control signal, the second control signal and the third control signal; the fan speed is controlled according to the selected maximum value. If the first control signal is the maximum value, the fan speed is controlled according to the first control signal. If the second control signal is the maximum value, the fan speed is controlled according to the second control signal. If the third control signal is the maximum value, the fan speed is controlled according to the third control signal.

[0110] For example, when the fan is fully rotated, it rotates at 18,000 revolutions per minute, and the corresponding fan operation duty cycle is 100% duty. The corresponding PWM control signal of the fan operation duty cycle of 100% duty is 255. If the PWM control signal determined according to the current power consumption of the target component is 255, then when the fan speed is controlled by this PWM control signal, the fan speed rotates at a speed of 18,000 revolutions per minute.

[0111] According to the corresponding relationship between the power consumption of the target component and the control signal, the hysteresis power consumption is considered in the process of obtaining the third control signal. The function of the hysteresis power consumption is to reduce the fluctuation of the fan speed caused by the small fluctuation of the power consumption, so as to keep the fan speed as stable as possible.

[0112] When calculating the third control signal, from the beginning of using the UP curve, i.e., rising, to the determination that the DOWN curve needs to be used, i.e., falling, the third control signal is calculated each time using the highest power consumption in the time period. When the difference between the highest power consumption in the time period and the current power consumption is greater than or equal to the hysteresis power consumption, it is determined that the DOWN curve is used.

[0113] For example, refer to Figure 2 As shown, the initial power consumption is 25, the default is the UP curve (record P_MAX=25), the hysteresis power consumption is assumed to be 2, and when the power consumption increases to 26, it is still the UP curve (record P_MAX=26). When the power consumption drops to P=25, it is determined that the power consumption has dropped, but the drop is small, and P_MAX=26 is still, P_MAX-P<2, so that it has a stabilizing effect, and the fan speed corresponds to the speed when the power consumption is 26. When the power consumption is further reduced to 24, P_MAX-P≥2, and the power consumption difference reaches the hysteresis power consumption, so it switches to the Down curve. Among them, because the hysteresis power consumption is 2, the speed corresponding to 24 of the Down curve is consistent with the speed corresponding to 26 of the UP curve.

[0114] After switching to the DOWN curve, during the entire time period from the beginning of using the DOWN curve to the determination that the UP curve needs to be used, the lowest power consumption in the time period is used each time to calculate the third control signal. When the difference between the current power consumption and the lowest power consumption in the time period is greater than or equal to the hysteresis power consumption, it is determined to use the UP curve.

[0115] For example, refer to Figure 2As shown, when the power consumption is 24 (record P_MIN=24), it is already in the Down curve. When the power consumption is reduced to 23, it is still in the Down curve (record P_MIN=23); when the power consumption increases to P=24, it is determined that the power consumption has increased, but the increase is small, and P_MIN=23 is still, P-P_MIN<2, so as to achieve a stabilizing effect, and the fan speed still corresponds to the speed at 24. When the power consumption further increases to 25, PP MIN≥2, the power consumption interpolation reaches the hysteresis power consumption, so it switches to the UP curve. Among them, because the hysteresis power consumption is 2, the speed corresponding to 25 of the UP curve is consistent with the speed corresponding to 23 of the Down curve.

[0116] Each component in the server may correspond to a fan. According to the method described in the above embodiment, by controlling the fan corresponding to the component, the component can be effectively cooled to avoid temperature overshoot. In the case where multiple components in the server correspond to one fan, the power consumption and temperature of each component at the current moment can be obtained, and the maximum power consumption can be selected from each power consumption, and the maximum temperature can be selected from each temperature. According to the maximum power consumption and the maximum temperature and the first proportional integral differential calculation formula, the first control signal increment is obtained; according to the maximum temperature and the second proportional integral differential calculation formula, the second control signal increment is obtained; according to the first control signal increment, the first control signal is obtained, and according to the second control signal increment, the second control signal is obtained; the maximum value of the first control signal and the second control signal is selected; and the fan speed is controlled according to the maximum value.

[0117] In summary, the fan control method provided by the present application uses the power consumption and temperature of the target component to control the fan at the same time. When the power consumption of the target component changes significantly, the product of the power consumption change of the target component and the first proportional coefficient can take the lead in playing a role and greatly increase the fan speed. When the temperature of the target component begins to change significantly with the increase of power consumption, the product of the temperature change of the target component and the second proportional coefficient gradually plays a leading role and increases the fan speed. In this way, the first control signal increment obtained according to the power consumption, temperature and the first proportional integral differential calculation formula of the target component at the current moment and the second control signal increment obtained according to the temperature of the target component at the current moment and the second proportional integral differential calculation formula can ensure that when the power consumption changes significantly, the fan speed is increased in time to avoid temperature overshoot, and the fan speed can be effectively controlled after the power consumption stabilizes.

[0118] The present application also provides a fan control device, and the device described below can be referred to in correspondence with the method described above. Figure 3 , Figure 3 A schematic diagram of a fan control device provided in an embodiment of the present application, combined with Figure 3As shown, the device comprises:

[0119] An acquisition module 10 is used to acquire the power consumption and temperature of the target component at the current moment;

[0120] A first calculation module 20, configured to obtain a first control signal increment according to the power consumption and temperature of the target component at the current moment and a first proportional-integral-differential calculation formula; the proportional term of the first proportional-integral-differential calculation formula is the product of the power consumption change of the target component and a first proportional coefficient;

[0121] A second calculation module 30 is used to obtain a second control signal increment according to the temperature of the target component at the current moment and a second proportional-integral-differential calculation formula; the proportional term in the second proportional-integral-differential calculation formula is the product of the temperature change of the target component and a second proportional coefficient;

[0122] A third calculation module 40, configured to obtain a first control signal according to the increment of the first control signal, and obtain a second control signal according to the increment of the second control signal;

[0123] A selection module 50, configured to select a maximum value between the first control signal and the second control signal;

[0124] The control module 60 is used to control the rotation speed of the fan according to the maximum value.

[0125] In some embodiments, the first computing module 20 includes:

[0126] A first calculation unit is used for subtracting the power consumption of the target component at time k from the power consumption of the target component at time k-1 to obtain the power consumption change, and multiplying the power consumption change by the first proportional coefficient to obtain a proportional term of the first proportional-integral-differential calculation formula; time k represents the current time;

[0127] A second calculation unit is used to subtract the temperature of the target component at time k from the temperature control point to obtain a temperature difference, and multiply the temperature difference by a first integral coefficient to obtain an integral term of the first proportional integral differential calculation formula;

[0128] A third calculation unit is used to subtract the power consumption of the target component at time k from twice the power consumption of the target component at time k-1, and sum the obtained difference with the power consumption of the target component at time k-2 to obtain the differential term of the first proportional integral differential calculation formula;

[0129] The fourth calculation unit is used to add the proportional term, the integral term and the differential term of the first proportional-integral-differential calculation formula to obtain the first control signal increment.

[0130] In some embodiments, the second calculation module 30 includes:

[0131] A fifth calculation unit is used for subtracting the temperature of the target component at time k from the temperature of the target component at time k-1 to obtain the temperature change, and multiplying the temperature change by the second proportional coefficient to obtain a proportional term of the second proportional-integral-differential calculation formula; time k represents the current time;

[0132] A sixth calculation unit, configured to obtain a temperature difference by subtracting the temperature of the target component at time k from the temperature control point, and multiply the temperature difference by a second integral coefficient to obtain an integral term of the second proportional-integral-differential calculation formula;

[0133] a seventh calculation unit, configured to subtract the temperature of the target component at time k from twice the temperature of the target component at time k-1, and sum the obtained difference with the temperature of the target component at time k-2 to obtain a differential term of the second proportional integral differential calculation formula;

[0134] An eighth calculation unit is used to add the proportional term, the integral term and the differential term of the second proportional-integral-differential calculation formula to obtain the second control signal increment.

[0135] In some embodiments, the third computing module includes:

[0136] a ninth calculation unit, configured to add the first control signal increment to the control signal calculated at the previous moment to obtain the first control signal at the current moment;

[0137] The tenth calculation unit is used to add the second control signal increment to the control signal calculated at the previous moment to obtain the second control signal at the current moment.

[0138] In some embodiments, it also includes:

[0139] A first setting module, used to set the proportional coefficient, integral coefficient and differential coefficient of the first proportional-integral-differential calculation formula;

[0140] The second setting module is used to set the proportional coefficient, integral coefficient and differential coefficient of the second proportional-integral-differential calculation formula.

[0141] In some embodiments, the first setting module is specifically used to:

[0142] The proportional coefficient of the first proportional-integral-differential calculation formula is set according to the power consumption of the target component in no-load condition, the power consumption during full-voltage test, and the target value of the proportional term increase control signal when the target component reaches the full-voltage power consumption.

[0143] In some embodiments, it also includes:

[0144] a fourth calculation module, configured to obtain a third control signal according to a corresponding relationship between the power consumption of the target component and the control signal;

[0145] A second selection module, used for selecting a maximum value among the first control signal, the second control signal and the third control signal;

[0146] A second control module, used to control the speed of the fan according to the selected maximum value;

[0147] Among them, the first control signal is obtained by adding the first control signal increment to the control signal calculated at the previous moment; the power consumption of the target component at time k is subtracted from the power consumption of the target component at time k-1 to obtain the power consumption change, and the power consumption change is multiplied by the first proportional coefficient to obtain the proportional term of the first proportional-integral-differential calculation formula; time k represents the current moment; the temperature of the target component at time k is subtracted from the temperature control point to obtain the temperature difference, and the temperature difference is multiplied by the first integral coefficient to obtain the integral term of the first proportional-integral-differential calculation formula; the power consumption of the target component at time k is subtracted from twice the power consumption of the target component at time k-1, and the obtained difference is summed with the power consumption of the target component at time k-2 to obtain the differential term of the first proportional-integral-differential calculation formula; the proportional term, integral term and differential term of the first proportional-integral-differential calculation formula are added to obtain the first control signal increment ; The second control signal is obtained by adding the second control signal increment to the control signal calculated at the previous moment; the temperature of the target component at moment k is subtracted from the temperature of the target component at moment k-1 to obtain the temperature change, and the temperature change is multiplied by the second proportional coefficient to obtain the proportional term of the second proportional-integral-differential calculation formula; moment k represents the current moment; the temperature of the target component at moment k is subtracted from the temperature control point to obtain the temperature difference, and the temperature difference is multiplied by the second integral coefficient to obtain the integral term of the second proportional-integral-differential calculation formula; the temperature of the target component at moment k is subtracted from twice the temperature of the target component at moment k-1, and the difference is summed with the temperature of the target component at moment k-2 to obtain the differential term of the second proportional-integral-differential calculation formula; the proportional term, the integral term and the differential term of the second proportional-integral-differential calculation formula are added to obtain the second control signal increment.

[0148] The present application also provides a device, referring to Figure 4 As shown, the device includes a memory 1 and a processor 2 .

[0149] Memory 1, used for storing computer programs;

[0150] Processor 2 is used to execute the computer program to implement the following steps:

[0151] Obtain the power consumption and temperature of the target component at the current moment; obtain a first control signal increment according to the power consumption, temperature and a first proportional-integral-differential calculation formula of the target component at the current moment; the proportional term of the first proportional-integral-differential calculation formula is the product of the power consumption change of the target component and a first proportional coefficient; obtain a second control signal increment according to the temperature of the target component at the current moment and a second proportional-integral-differential calculation formula; the proportional term in the second proportional-integral-differential calculation formula is the product of the temperature change of the target component and a second proportional coefficient; obtain a first control signal according to the first control signal increment, and obtain a second control signal according to the second control signal increment; select the maximum value of the first control signal and the second control signal; and control the speed of the fan according to the maximum value.

[0152] For an introduction to the equipment provided in this application, please refer to the above method embodiments, and this application will not go into details here.

[0153] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps can be implemented:

[0154] Obtain the power consumption and temperature of the target component at the current moment; obtain a first control signal increment according to the power consumption, temperature and a first proportional-integral-differential calculation formula of the target component at the current moment; the proportional term of the first proportional-integral-differential calculation formula is the product of the power consumption change of the target component and a first proportional coefficient; obtain a second control signal increment according to the temperature of the target component at the current moment and a second proportional-integral-differential calculation formula; the proportional term in the second proportional-integral-differential calculation formula is the product of the temperature change of the target component and a second proportional coefficient; obtain a first control signal according to the first control signal increment, and obtain a second control signal according to the second control signal increment; select the maximum value of the first control signal and the second control signal; and control the speed of the fan according to the maximum value.

[0155] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0156] For an introduction to the computer-readable storage medium provided in this application, please refer to the above method embodiment, and this application will not go into details here.

[0157] The present invention also provides a computer program product, comprising a computer program / instruction, wherein when the computer program / instruction is executed by a processor, the following steps are implemented:

[0158] Obtain the power consumption and temperature of the target component at the current moment; obtain a first control signal increment according to the power consumption, temperature and a first proportional-integral-differential calculation formula of the target component at the current moment; the proportional term of the first proportional-integral-differential calculation formula is the product of the power consumption change of the target component and a first proportional coefficient; obtain a second control signal increment according to the temperature of the target component at the current moment and a second proportional-integral-differential calculation formula; the proportional term in the second proportional-integral-differential calculation formula is the product of the temperature change of the target component and a second proportional coefficient; obtain a first control signal according to the first control signal increment, and obtain a second control signal according to the second control signal increment; select the maximum value of the first control signal and the second control signal; and control the speed of the fan according to the maximum value.

[0159] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the devices, equipment, and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0160] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0161] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0162] The fan control method, device, equipment and computer-readable storage medium provided by the present application are described in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

Claims

1. A fan control method, characterized in that: include: Get the power consumption and temperature of the target component at the current moment; Obtaining a first control signal increment according to the power consumption and temperature of the target component at the current moment and a first proportional-integral-differential calculation formula; The proportional term of the first proportional-integral-differential calculation formula is the product of the power consumption change of the target component and the first proportional coefficient; Obtaining a second control signal increment according to the temperature of the target component at the current moment and a second proportional-integral-differential calculation formula; The proportional term in the second proportional-integral-differential calculation formula is the product of the temperature change of the target component and the second proportional coefficient; Obtain a first control signal according to the increment of the first control signal, and obtain a second control signal according to the increment of the second control signal; Selecting a maximum value between the first control signal and the second control signal; The rotation speed of the fan is controlled according to the maximum value.

2. The fan control method according to claim 1, characterized in that: According to the power consumption, temperature and the first proportional integral differential calculation formula of the target component at the current moment, the first control signal increment is obtained including: Subtract the power consumption of the target component at time k from the power consumption of the target component at time k-1 to obtain the power consumption change, and multiply the power consumption change by the first proportional coefficient to obtain the proportional term of the first proportional-integral-differential calculation formula; time k represents the current time; Subtract the temperature of the target component at time k from the temperature control point to obtain a temperature difference, and multiply the temperature difference by a first integral coefficient to obtain an integral term of the first proportional-integral-differential calculation formula; Subtract the power consumption of the target component at time k from twice the power consumption of the target component at time k-1, and sum the difference with the power consumption of the target component at time k-2 to obtain the differential term of the first proportional integral differential calculation formula; The proportional term, the integral term and the differential term of the first proportional-integral-differential calculation formula are added together to obtain the first control signal increment.

3. The fan control method according to claim 1, characterized in that: According to the temperature of the target component at the current moment and the second proportional integral differential calculation formula, the second control signal increment is obtained including: Subtract the temperature of the target component at time k from the temperature of the target component at time k-1 to obtain the temperature change, and multiply the temperature change by the second proportional coefficient to obtain the proportional term of the second proportional-integral-differential calculation formula; time k represents the current time; Subtract the temperature of the target component at time k from the temperature control point to obtain a temperature difference, and multiply the temperature difference by a second integral coefficient to obtain an integral term of the second proportional-integral-differential calculation formula; Subtract the temperature of the target component at time k from twice the temperature of the target component at time k-1, and sum the obtained difference with the temperature of the target component at time k-2 to obtain the differential term of the second proportional integral differential calculation formula; The proportional term, the integral term and the differential term of the second proportional-integral-differential calculation formula are added together to obtain the second control signal increment.

4. The fan control method according to claim 1, characterized in that: Obtaining a first control signal according to the increment of the first control signal, and obtaining a second control signal according to the increment of the second control signal comprises: Adding the first control signal increment to the control signal calculated at the previous moment to obtain the first control signal at the current moment; The second control signal increment is added to the control signal calculated at the previous moment to obtain the second control signal at the current moment.

5. The fan control method according to claim 1, characterized in that: Also includes: Setting the proportional coefficient, integral coefficient and differential coefficient of the first proportional-integral-differential calculation formula; The proportional coefficient, integral coefficient and differential coefficient of the second proportional-integral-differential calculation formula are set.

6. The fan control method according to claim 5, characterized in that: The proportional coefficient of the first proportional-integral-differential calculation formula is set as follows: The proportional coefficient of the first proportional-integral-differential calculation formula is set according to the power consumption of the target component in no-load condition, the power consumption during full-voltage test, and the target value of the proportional term increase control signal when the target component reaches the full-voltage power consumption.

7. The fan control method according to claim 1, characterized in that: Also includes: Obtaining a third control signal according to the corresponding relationship between the power consumption of the target component and the control signal; Selecting a maximum value among the first control signal, the second control signal and the third control signal; Control the fan speed according to the selected maximum value; Wherein, the first control signal is obtained by adding the first control signal increment to the control signal calculated at the previous moment; the power consumption of the target component at moment k is subtracted from the power consumption of the target component at moment k-1 to obtain the power consumption change, and the power consumption change is multiplied by the first proportional coefficient to obtain the proportional term of the first proportional-integral-differential calculation formula; moment k represents the current moment; the temperature of the target component at moment k is subtracted from the temperature control point to obtain the temperature difference, and the temperature difference is multiplied by the first integral coefficient to obtain the integral term of the first proportional-integral-differential calculation formula; the power consumption of the target component at moment k is subtracted from twice the power consumption of the target component at moment k-1, and the obtained difference is summed with the power consumption of the target component at moment k-2 to obtain the differential term of the first proportional-integral-differential calculation formula; the proportional term, the integral term and the integral term of the first proportional-integral-differential calculation formula are multiplied by the first integral coefficient. The first control signal increment is obtained by adding the partial term and the differential term; the second control signal is obtained by adding the second control signal increment and the control signal calculated at the previous moment; the temperature of the target component at moment k is subtracted from the temperature of the target component at moment k-1 to obtain the temperature change, and the temperature change is multiplied by the second proportional coefficient to obtain the proportional term of the second proportional-integral-differential calculation formula; moment k represents the current moment; the temperature of the target component at moment k is subtracted from the temperature control point to obtain the temperature difference, and the temperature difference is multiplied by the second integral coefficient to obtain the integral term of the second proportional-integral-differential calculation formula; the temperature of the target component at moment k is subtracted from twice the temperature of the target component at moment k-1, and the obtained difference is summed with the temperature of the target component at moment k-2 to obtain the differential term of the second proportional-integral-differential calculation formula; The proportional term, the integral term and the differential term of the second proportional-integral-differential calculation formula are added together to obtain the second control signal increment.

8. A fan control device, characterized in that: include: An acquisition module is used to obtain the power consumption and temperature of the target component at the current moment; A first calculation module, used for obtaining a first control signal increment according to the power consumption and temperature of the target component at the current moment and a first proportional integral differential calculation formula; The proportional term of the first proportional-integral-differential calculation formula is the product of the power consumption change of the target component and the first proportional coefficient; A second calculation module, used for obtaining a second control signal increment according to the temperature of the target component at the current moment and a second proportional-integral-differential calculation formula; The proportional term in the second proportional-integral-differential calculation formula is the product of the temperature change of the target component and the second proportional coefficient; a third calculation module, configured to obtain a first control signal according to the increment of the first control signal, and obtain a second control signal according to the increment of the second control signal; A selection module, used for selecting a maximum value between the first control signal and the second control signal; A control module is used to control the rotation speed of the fan according to the maximum value.

9. A fan control device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the fan control method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the fan control method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Heat dissipation control method and electronic equipment

    CN120848707A