A method and device for controlling fan speed
By predicting future temperature changes of the server, combining power feedforward control and PID algorithm to optimize fan speed, the lag problem in server heat dissipation control is solved, and more accurate temperature management and resource utilization are achieved.
Patent Information
- Application Number
- CN202510872420.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-26
- Publication Date
- 2025-09-09
- Estimated Expiration
- 2045-06-26
AI Technical Summary
In existing server heat dissipation control technologies, fan speed control has lag, resulting in temperature overshoot and speed overshoot, and serious waste of resources.
By detecting the server's temperature, operating information, and thermal information, future temperature changes are predicted and the fan speed is adjusted to avoid temperature overshoot and speed overshoot. Power feedforward control combined with PID algorithm is used to optimize the fan speed.
Effectively avoid temperature overshoot and speed overshoot, improve fan speed control effect, and optimize resource utilization.
Smart Images

Figure CN120390398B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of heat dissipation technology, and in particular to a method and device for controlling a fan speed. Background Art
[0002] Server operation inevitably causes server temperatures to rise. Maintaining server operation within the permitted temperature range through a rational cooling strategy is key to extending server life. Current server cooling control technology primarily relies on closed-loop control based on temperature feedback. This cooling control technology controls fan speed based on the server's already-exposed temperature rise. This cooling control exhibits a certain degree of lag, making it prone to temperature overshoot and speed overshoot, resulting in wasted fan resources and poor fan speed control. Summary of the Invention
[0003] The present application provides a method and device for controlling fan speed, so as to at least solve the problem of poor fan speed control effect in the related art.
[0004] The present application provides a fan speed control method, comprising: upon detecting the speed of a fan of a server to be adjusted, predicting the temperature information of the server based on first operating information of the server, second operating information of the server, and thermal information of the server, wherein the first operating information is used to indicate the temperature condition of the server, the second operating information is used to indicate the operating condition of the server, the thermal information is used to indicate the heat transfer capability of the server, and the temperature information is used to indicate the temperature change of the server after the current moment; adjusting initial operating parameters based on the first operating information and the temperature information to obtain target operating parameters, wherein the initial operating parameters are used to indicate the speed of the fan at the current moment; and adjusting the speed of the fan to the speed indicated by the target operating parameters.
[0005] The present application also provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the steps of any of the above-mentioned fan speed control methods when executing the computer program.
[0006] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned fan speed control methods are implemented.
[0007] The present application also provides a computer program product, including a computer program, which implements the steps of any of the above-mentioned fan speed control methods when executed by a processor.
[0008] Through the present application, when detecting the speed of the fan of the server to be adjusted, the temperature change of the server after the current moment is predicted based on the temperature condition of the server, the operating condition of the server and the heat transfer capability of the server, the initial operating parameters of the fan are adjusted to the target operating parameters based on the temperature condition of the server and the temperature change of the server after the current moment, and the speed of the fan is adjusted from the speed indicated by the initial operating parameters to the speed indicated by the target operating parameters. The temperature condition of the server, the operating condition of the server and the heat transfer capability of the server are used to predict the temperature change of the server after the current moment. When controlling the fan speed, it is no longer based solely on the current temperature, but also fully considers future temperature changes. It can effectively avoid the occurrence of temperature overshoot of the server, and can also effectively avoid the occurrence of speed overshoot. Therefore, the technical problem of poor control effect of the fan speed can be solved, and the technical effect of improving the control effect of the fan speed can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. 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 any creative work.
[0010] Figure 1 1 is a hardware structure block diagram of a fan speed control method according to an embodiment of the present application;
[0011] Figure 2 is a flow chart of a method for controlling a fan speed according to an embodiment of the present application;
[0012] Figure 3 This is an implementation architecture diagram of a power feedforward control method during a server fan heat dissipation process according to an embodiment of the present application;
[0013] Figure 4 This is a flow chart of a power feedforward control method during a server fan heat dissipation process according to an embodiment of the present application;
[0014] Figure 5 This is a structural block diagram of a fan speed control device according to an embodiment of the present application. DETAILED DESCRIPTION
[0015] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0016] It should be noted that, in the description of this application, the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. The terms "first," "second," etc., in this application are used to distinguish similar objects, and are not used to describe a particular order or sequence.
[0017] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0018] In conjunction with the specific application environment architecture or specific hardware architecture on which the execution of the fan speed control method depends, the specific application environment architecture or specific hardware architecture is described herein.
[0019] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 FIG. 1 is a hardware structure diagram of the fan speed control method according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown) a processor 102 (the processor 102 may include but is not limited to a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. The server device may also include a transmission device 106 and an input / output device 108 for communication functions. It will be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components than shown, or with Figure 1 Different configurations shown.
[0020] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the fan speed control method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implementing the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely located relative to the processor 102, and these remote memories may be connected to a server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0021] Transmission device 106 is used to receive or transmit data via a network. A specific example of the aforementioned network may include a wireless network provided by a communication provider of the server device. In one embodiment, transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In another embodiment, transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0022] An embodiment of the present application provides a method for controlling a fan speed, and the method is described in detail in conjunction with the execution flow of the method for controlling a fan speed.
[0023] In this embodiment, a method for controlling the fan speed is provided. Figure 2 FIG. 1 is a flow chart of a method for controlling fan speed according to an embodiment of the present application. Figure 2 As shown, the method includes the following steps:
[0024] Step S202: When the fan speed of the server to be adjusted is detected, predict the temperature information of the server based on the first operating information of the server, the second operating information of the server, and the thermal information of the server, wherein the first operating information indicates the temperature of the server, the second operating information indicates the operating status of the server, the thermal information indicates the heat transfer capability of the server, and the temperature information indicates the temperature change of the server after the current moment.
[0025] Step S204: adjusting initial operating parameters according to the first operating information and the temperature information to obtain target operating parameters, wherein the initial operating parameters are used to indicate the fan speed at the current moment;
[0026] Step S206: Adjust the fan speed to the speed indicated by the target operating parameter.
[0027] Through the above steps, when detecting the rotational speed of the fan of the server to be adjusted, the temperature change of the server after the current moment is predicted according to the temperature condition of the server, the operating condition of the server and the heat transfer capability of the server, the initial operating parameters of the fan are adjusted to the target operating parameters according to the temperature condition of the server and the temperature change of the server after the current moment, and the rotational speed of the fan is adjusted from the rotational speed indicated by the initial operating parameters to the rotational speed indicated by the target operating parameters. The temperature condition of the server, the operating condition of the server and the heat transfer capability of the server are used to predict the temperature change of the server after the current moment. When controlling the fan speed, it is no longer based solely on the current temperature, but also fully considers future temperature changes. It can effectively avoid the occurrence of temperature overshoot of the server, and can also effectively avoid the occurrence of speed overshoot. Therefore, the technical problem of poor control effect of the fan speed can be solved, and the technical effect of improving the control effect of the fan speed can be achieved.
[0028] Optionally, in this embodiment, the fan may be used for, but not limited to, cooling the server. In order to improve the working efficiency of the fan, the speed of the fan may be, but not limited to, not fixed.
[0029] In the embodiment provided in step S202, the fan speed of the server to be adjusted may be determined to be detected when the temperature of the server is detected to be above a high temperature threshold, or may be determined to be detected to be detected when a load change in the server is detected. For example, the fan speed of the server to be adjusted may be determined to be detected when a processor or memory module in the server is detected to have received a pressure increase instruction, but is not limited to the case.
[0030] Optionally, in this embodiment, the first operating information can be used but is not limited to indicating the temperature condition of the server. Specifically, the first operating information can be used but is not limited to indicating the temperature of each component in the server (such as the current CPU (Central Processing Unit) temperature, GPU (Graphics Processing Unit) temperature, memory temperature, etc.), the ideal operating temperature of the server, and the temperature of the environment in which the server is located.
[0031] Optionally, in this embodiment, the second operating information may be used, but is not limited to, to indicate the operating status of the server. Specifically, the second operating information may be used, but is not limited to, to indicate the load and power consumption of the server. For example, the second operating information may be used, but is not limited to, to indicate that the CPU load has reached 80%, the power consumption is 150W, and the current memory usage is 75%.
[0032] Optionally, in this embodiment, thermal information can be used but is not limited to indicating the server's ability to transfer heat. Specifically, thermal information can be used but is not limited to indicating the server's ability to transfer heat to the outside of the server, the ease with which the server's temperature changes when the server absorbs the heat generated by the server's operation, and the ease with which the temperature of each component in the server changes when the server absorbs the heat generated by the server's operation.
[0033] Optionally, in this embodiment, the temperature information can be used, but is not limited to, to indicate the temperature change of the server after the current moment. Specifically, the temperature information can be used, but is not limited to, to indicate the difference between the temperature of the server at a future moment and the current temperature, or to indicate the temperature change curve of the server after the current moment, etc.
[0034] Optionally, in this embodiment, server temperature information prediction can be achieved through, but is not limited to, the following methods: collecting historical operating data, including first operating information, second operating information, and thermal information, and training a prediction model (such as a neural network model) to predict future temperature changes. This prediction model can learn the temperature change trends of the server under different loads and power consumption, thereby providing more accurate predictions. Alternatively, the prediction model can utilize, but is not limited to, basic thermodynamic principles, combine the server's thermal information and second operating information, and establish an accurate thermal model to calculate the temperature information at the next moment.
[0035] In the embodiment provided in step S204, adjusting the initial operating parameter of the fan, ie, the current speed, to achieve the target operating parameter (future speed) can be achieved by, but is not limited to, analyzing the first operating information and the temperature information.
[0036] Optionally, in this embodiment, the initial operating parameters can be adjusted in the following ways, but are not limited to: performing closed-loop control based on temperature feedback based on the first operating information to obtain a feedback control result; performing feedforward control based on the temperature information to obtain a feedforward control result; and combining the feedback control result and the feedforward control result to perform comprehensive speed control; or dynamically adjusting the fan start / stop and speed adjustment thresholds based on the first operating information and the predicted temperature information. For example, if the temperature is predicted to rise, the fan's low speed threshold can be lowered in advance to increase cooling efficiency in advance. That is, the original low speed threshold (i.e., the minimum temperature threshold for fan startup) can be lowered so that the fan can start at a lower speed and begin providing cooling before the predicted temperature reaches the current high speed threshold. This allows for early intervention to gradually increase cooling efficiency and avoid urgent cooling needs caused by sudden temperature increases.
[0037] Optionally, in this embodiment, the initial operating parameters can be adjusted based on the first operating information and temperature information using, but not limited to, a fuzzy logic control strategy. Fuzzy logic control is a control strategy suitable for nonlinear systems and capable of handling uncertainty and ambiguity. By defining fuzzy sets (e.g., "temperature slightly high," "temperature normal," "temperature decreasing") and fuzzy rules (e.g., "if the temperature is predicted to rise, then the PWM duty cycle should be moderately increased"), the fan speed can be adjusted in a more natural manner based on the combined information of the current temperature (the first operating information) and the predicted temperature (the temperature information).
[0038] In the embodiment provided in step S206 , the operating speed of the fan motor can be controlled by, but is not limited to, adjusting the duty cycle of a PWM (pulse width modulation) signal, thereby adjusting the rotational speed of the fan.
[0039] Optionally, in this embodiment, in order to avoid the impact caused by sudden changes in fan speed, a soft start mechanism can be designed, but is not limited to, to make the fan speed smoothly transition from the initial operating parameters to the speed indicated by the target operating parameters, thereby reducing wear and noise.
[0040] Optionally, in this embodiment, for a server configured with multiple fans or fan levels, coordinated control between different fans can be achieved, but is not limited to, according to the speed indicated by the target operating parameters to ensure thermal balance of the entire server while optimizing cooling efficiency and noise control.
[0041] As an optional embodiment, the temperature information of the server is predicted based on the first operating information of the server, the second operating information of the server and the thermal information of the server, including: predicting a first temperature parameter based on the operating temperature, the ambient temperature and the thermal information, and predicting a second temperature parameter based on the first power and the thermal information, wherein the operating temperature is the temperature of the server at the current moment, the ambient temperature is the temperature of the environment in which the server is located, the first temperature parameter is used to indicate the impact of the server's heat dissipation capacity on the server's temperature during a target time period from the current moment to a future moment after the current moment, the first operating information includes the operating temperature and the ambient temperature, the first power is the operating power of the server at the current moment, the second operating information includes the first power, and the second temperature parameter is used to indicate the impact of the heat generated by the server operation during the target time period on the server's temperature; determining the temperature change value of the server during the target time period based on the first temperature parameter and the second temperature parameter, wherein the temperature information includes the temperature change value.
[0042] Optionally, in this embodiment, it is possible but not limited to estimating the heating conditions of the server in a future time period based on the operating conditions of the server, estimating the heat dissipation conditions of the server in a future time period based on the current temperature of the server and the ambient temperature of the server, and predicting the temperature changes of the server in combination with the thermal properties of the server.
[0043] Optionally, in this embodiment, the first temperature parameter can be used, but is not limited to, to indicate the impact of the server's heat dissipation capacity on the server's temperature within a target time period from the current moment to a future moment after the current moment. The first temperature parameter can be used, but is not limited to, to represent the heat dissipation condition of the server within the target time period.
[0044] Optionally, in this embodiment, the second temperature parameter can be used, but is not limited to, to indicate the impact of the heat generated by the server operation during a target time period from the current moment to a future moment after the current moment on the temperature of the server. The second temperature parameter can be used, but is not limited to, to represent the heating condition of the server during the target time period.
[0045] Optionally, in this embodiment, determining the temperature change value of the server within the target time period according to the first temperature parameter and the second temperature parameter may include, but is not limited to, calculating the difference between the second temperature parameter and the first temperature parameter to obtain the temperature change value.
[0046] By combining the above information with thermal information, we can predict how the server's cooling mechanism will affect its temperature in the future time period and analyze how the server's primary power (i.e., the current operating power) is converted into heat, thereby affecting the server temperature. This takes into account the impact of future heat generation and cooling capacity, and can accurately predict server temperature changes.
[0047] As an optional implementation, predicting a first temperature parameter based on operating temperature, ambient temperature and thermal information includes: calculating the difference between the operating temperature and the ambient temperature to obtain a target temperature difference; calculating the quotient of the target temperature difference and the first thermal parameter to obtain a second power, wherein the second power is the heat dissipation power of the server at the current moment, the first thermal parameter is used to indicate the ability of the server to transfer heat to the outside of the server, and the thermal information includes the first thermal parameter; calculating the quotient of the second power and the second thermal parameter to obtain a first unit parameter, wherein the second thermal parameter is used to indicate the difficulty of the server's temperature change when absorbing the heat generated by the server operation, the first unit parameter is used to indicate the temperature change of the server caused by the server transferring heat to the outside of the server per unit time, and the thermal information includes the second thermal parameter; calculating the product of the first unit parameter and the target time length to obtain the first temperature parameter, wherein the target time length is the length of the target time period.
[0048] Optionally, in this embodiment, the overall heat dissipation power of the server within the target time period can be predicted based on, but not limited to, the difference between the operating temperature and the ambient temperature and the first thermal parameter. Based on the overall heat dissipation power and the second thermal parameter, a first unit parameter is obtained that quantifies the rate of change of the server temperature due to heat dissipation per unit time. The first unit parameter is then multiplied by the target time period to obtain a first temperature parameter representing the expected decrease in server temperature due to heat dissipation within the target time period.
[0049] By calculating the second power (heat dissipation power) and the first unit parameter (temperature change rate per unit time) through the above content, the server's heat dissipation efficiency can be quantified, providing an accurate reference for subsequent adjustment of the fan speed.
[0050] As an optional implementation, predicting a second temperature parameter based on the first power and thermal information includes: detecting the heat power of the server at the current moment based on the first power; calculating the quotient of the heat power and the second thermal parameter to obtain a second unit parameter, wherein the second thermal parameter is used to indicate the difficulty of the server's temperature change when the server absorbs the heat generated by the server operation, and the second unit parameter is used to indicate the temperature change of the server caused by running the server per unit time, and the thermal information includes the second thermal parameter; calculating the product of the second unit parameter and the target time length to obtain the second temperature parameter, wherein the target time length is the time length of the target time period.
[0051] Optionally, in this embodiment, the heat generation power of the server at the current moment may be detected, but is not limited to, this power may be, but is not limited to, generated by the key components of the server, such as the CPU, GPU, etc., due to the running load. Heat generation power is an important indicator to measure how much heat the server generates. Divide the heat generation power by the second thermal parameter to calculate the second unit parameter. The second thermal parameter reflects the ease with which the temperature changes when the server absorbs heat, and the second unit parameter represents the temperature change caused by the server operation per unit time. Finally, multiply the second unit parameter by the target time length to obtain the second temperature parameter. The target time length refers to the time range for predicting temperature changes, and the second temperature parameter quantifies the expected temperature rise caused by the heat generated by the server power consumption within the target time period.
[0052] Optionally, in this embodiment, a mathematical model between the server power consumption and the heat generation power can be established, but is not limited to the above. By inputting the current operating power (first power), the model can calculate the heat generation power of the key components of the server under the current conditions.
[0053] By calculating the second temperature parameter described above, based on thermodynamic principles and server thermal information, we can predict temperature trends caused by power consumption. This allows us to predict the likelihood and magnitude of future temperature increases, allowing us to prepare in advance and avoid sudden temperature overshoots.
[0054] As an optional implementation, the present application provides a power feedforward control method for a server fan during heat dissipation. Figure 3 This is a diagram of the implementation architecture of a power feedforward control method in a server fan heat dissipation process according to an embodiment of the present application. Figure 3 As shown in the figure, the core points of the power feedforward control method are: adding a feedforward function based on power changes, collecting real-time information on the power and temperature of major components such as the CPU and memory in the current state, predicting the temperature in the future, and obtaining the feedforward duty cycle value. At the same time, combining the PID (Proportional-Integral-Derivative) algorithm to obtain the feedback duty cycle, the feedforward and feedback values are added together to output the final duty cycle of the server fan. Figure 3As shown, the power feedforward control method can be applied, but is not limited to, in a server intelligent temperature control system comprising a data acquisition unit, an intelligent temperature control unit, and an execution unit. The data acquisition unit is composed of internal server sensors (i.e., power sensors and temperature sensors). It updates power (i.e., second operating information) and temperature (i.e., first operating information) at intervals and transmits these information to the intelligent temperature control unit. The intelligent temperature control unit can, but is not limited to, run in the MCU (Microcontroller Unit) on the fan board. It processes the component power consumption and temperature signals collected by the data acquisition unit, predicts future temperatures, and calculates the corresponding duty cycle based on PID feedback. The duty cycle is then output to the execution unit, i.e., the internal server fan.
[0055] As an optional embodiment, predicting the temperature information of the server based on the first operating information of the server, the second operating information of the server and the thermal information of the server includes: determining a reference operating parameter based on the first operating information and the initial operating parameter, wherein the reference operating parameter is used to indicate the speed required for the fan to eliminate the temperature difference between the operating temperature and the standard temperature, the operating temperature is the temperature of the server at the current moment, and the first operating information includes the operating temperature and the standard temperature; predicting a third temperature parameter based on the operating temperature, the ambient temperature, the reference operating parameter, the initial operating parameter and the thermal information, and predicting a second temperature parameter based on the first power and the thermal information, wherein the ambient temperature is the temperature of the environment in which the server is located at the current moment, the third temperature parameter is used to indicate the impact of the server's heat dissipation capacity on the server's temperature in a target time period from the current moment to a future moment after the current moment, the first operating information also includes the ambient temperature, the first power is the operating power of the server at the current moment, the second operating information includes the first power, and the second temperature parameter is used to indicate the impact of heat generated by the server's operation in the target time period on the server's temperature; determining a temperature change value of the server in the target time period based on the third temperature parameter and the second temperature parameter, wherein the temperature information includes the temperature change value.
[0056] Optionally, in this embodiment, it is possible but not limited to estimating the heating conditions of the server in a future time period based on the operating conditions of the server, and determining the preliminary future speed of the fan based on the current temperature and ideal temperature of the server, estimating the heat dissipation conditions of the server in a future time period in combination with the current temperature of the server, the ambient temperature of the server, the current speed of the fan and the preliminary speed, and predicting the temperature changes of the server in combination with the thermal properties of the server.
[0057] Optionally, in this embodiment, the reference operating parameter may be, but is not limited to, used to indicate the speed required for the fan to eliminate the temperature difference between the operating temperature and the standard temperature (ie, ideal temperature), and the reference operating parameter may be, but is not limited to, used to indicate the aforementioned preliminary speed in the future.
[0058] Optionally, in this embodiment, the third temperature parameter can be used, but is not limited to, to indicate the impact of the server's heat dissipation capacity on the server's temperature within a target time period from the current moment to a future moment after the current moment. The third temperature parameter can be used, but is not limited to, to represent the server's heat dissipation condition within the target time period.
[0059] Optionally, in this embodiment, the second temperature parameter can be used, but is not limited to, to indicate the impact of heat generated by the server operation during the target time period on the temperature of the server. The second temperature parameter can be used, but is not limited to, to represent the heating condition of the server during the target time period.
[0060] Optionally, in this embodiment, the reference operating parameters of the fan may be determined according to the first operating information and the initial operating parameters using a PID algorithm, but is not limited to the above.
[0061] Optionally, in this embodiment, determining the temperature change value of the server within the target time period according to the third temperature parameter and the second temperature parameter may include, but is not limited to, calculating the difference between the second temperature parameter and the third temperature parameter to obtain the temperature change value.
[0062] Through the above, the prediction of the second temperature parameter directly links power consumption changes with temperature changes, enabling a quick response to sudden power consumption increases. It also takes into account changes in fan speed, and the predicted third temperature parameter more accurately represents the heat dissipation during the target time period. By predicting the third and second temperature parameters, future temperature trends can be more accurately grasped, providing forward-looking information for fan control, helping to achieve smoother temperature fluctuations and better cooling results.
[0063] As an optional embodiment, predicting a third temperature parameter based on the operating temperature, ambient temperature, reference operating parameters, initial operating parameters and thermal information includes: calculating the difference between the operating temperature and the ambient temperature to obtain a target temperature difference; calculating the quotient of the target temperature difference and the first thermal parameter to obtain a second power, wherein the second power is the heat dissipation power of the server at the current moment, the first thermal parameter is used to indicate the ability of the server to transfer heat to the outside of the server, and the thermal information includes the first thermal parameter; determining a third power based on the second power, the reference operating parameter and the initial operating parameter, wherein the third power is the heat dissipation power of the server when the fan operates at a speed indicated by the reference operating parameter; calculating the quotient of the third power and the second thermal parameter to obtain a third unit parameter, wherein the second thermal parameter is used to indicate the difficulty of the server temperature change when absorbing heat generated by the server operation, and the third unit parameter is used to indicate the server temperature change caused by the server transferring heat to the outside of the server per unit time when the fan operates at a speed indicated by the reference operating parameter, and the thermal information includes the second thermal parameter; calculating the product of the third unit parameter and the target time length to obtain the third temperature parameter, wherein the target time length is the length of the target time period.
[0064] Optionally, in this embodiment, determining the third power based on the second power, reference operating parameters, and initial operating parameters may include, but is not limited to, inputting the second power, reference operating parameters, and initial operating parameters into a heat dissipation power prediction model, and receiving the third power output by the heat dissipation power prediction model, wherein the heat dissipation power prediction model is configured to predict the third power corresponding to the reference operating parameters based on the relationship between the reference operating parameters and the initial operating parameters, and the second power corresponding to the initial operating parameters. The heat dissipation power prediction model may be trained, but is not limited to, by the following steps: When constructing the model, a neural network, particularly a long short-term memory network or a convolutional neural network, may be selected, but is not limited to. A large dataset containing historical data such as fan speed, ambient temperature, internal temperature, and operating power is collected. The second power, reference operating parameters, and initial operating parameters are preprocessed and converted into a format suitable for model input. The neural network model is trained using time series data, and the network structure and hyperparameters (e.g., learning rate and batch size) are adjusted to optimize the accuracy of the model's prediction of the third power. The model's performance is verified using a validation dataset, and the model is adjusted until the expected prediction accuracy is achieved. Based on the above information, the cooling power prediction model can accurately predict the server's future cooling capacity based on the current cooling requirements, environmental conditions, and fan operating status, thereby avoiding temperature overshoot and speed overshoot.
[0065] As an optional implementation, the initial operating parameters are adjusted according to the first operating information and the temperature information to obtain the target operating parameters, including: determining the target adjustment parameters based on the temperature change value of the server in the target time period from the current moment to the future moment after the current moment, and determining the reference operating parameters based on the first operating information and the initial operating parameters, wherein the temperature information includes the temperature change value, the reference operating parameters are used to indicate the speed required for the fan to eliminate the temperature difference between the operating temperature and the standard temperature, the operating temperature is the temperature of the server at the current moment, and the first operating information includes the operating temperature and the standard temperature; calculating the sum of the target adjustment parameters and the reference operating parameters to obtain the target operating parameters.
[0066] Optionally, in this embodiment, before determining the target adjustment parameters based on the temperature change value of the server within the target time period, a correspondence between the temperature change value and the fan adjustment parameter can be established based on, but not limited to, historical data of the fan speed and server temperature. Determining the target adjustment parameters based on the temperature change value of the server within the target time period can include, but not limited to: matching the temperature change value with the corresponding operation adjustment parameter from the temperature change parameters and operation adjustment parameters that have a corresponding relationship to obtain the target adjustment parameter.
[0067] Optionally, in this embodiment, the reference operating parameters of the fan may be determined according to the first operating information and the initial operating parameters using a PID algorithm, but is not limited to the above.
[0068] Optionally, in this embodiment, the target operating parameter can be determined by combining, but not limited to, the target adjustment parameter of the feedforward control and the reference operating parameter of the feedback control.
[0069] As an optional implementation, the target adjustment parameter is determined based on the temperature change value of the server within a target time period from the current moment to a future moment after the current moment, including: obtaining temperature change parameters and operation adjustment parameters with corresponding relationships, wherein the temperature change parameter is the temperature difference of the server at different moments, and the operation adjustment parameter is used to indicate the speed required for the fan to eliminate the temperature difference; matching the temperature change value with the corresponding operation adjustment parameter from the temperature change parameters and operation adjustment parameters with corresponding relationships to obtain the target adjustment parameter.
[0070] Optionally, in this embodiment, the operation adjustment parameter corresponding to the temperature change parameter may be, but is not limited to, changing according to changes in the environment in which the server is located. The temperature change parameter and the operation adjustment parameter having a corresponding relationship with the current ambient temperature may be obtained, but is not limited to.
[0071] As an optional embodiment, before determining the reference operating parameters based on the first operating information and the initial operating parameters, the method also includes: detecting a reference change parameter of the server, wherein the reference change parameter is used to indicate the speed at which the temperature of the server changes over time; adjusting the initial control parameter of the fan speed according to the reference change parameter to obtain a target control parameter, wherein the target control parameter is used to indicate the degree of adjustment of the initial operating parameter according to the first operating information after the current moment.
[0072] Optionally, in this embodiment, the reference change parameter of the server can be detected by, but is not limited to, monitoring the rate of change of the internal temperature of the server over time. Based on the detected temperature change rate, the system needs to adjust the initial control parameters of the fan speed (such as the default Kp (proportional gain), Ki (integral gain) and Kd (differential gain) values) to better respond to temperature changes.
[0073] As an optional implementation, the initial control parameters of the fan speed are adjusted according to a reference change parameter, including: when the reference change parameter is greater than a first threshold, reducing the proportional coefficient and increasing the differential coefficient, wherein the fan speed is determined according to proportional, integral and differential control, and the initial control parameters include the proportional coefficient and the differential coefficient; when the reference change parameter is less than or equal to a second threshold, increasing the proportional coefficient, wherein the second threshold is less than the first threshold.
[0074] Optionally, in this embodiment, PID (ie, proportional, integral, and differential control) can be used, but is not limited to, to determine the reference operating parameters according to the first operating information and the initial operating parameters, that is, to control the speed of the fan using PID.
[0075] Optionally, in this embodiment, when the reference change parameter is greater than the first threshold, the differential coefficient (i.e., Kd) can be increased to enhance damping and reduce overshoot; the proportional coefficient (i.e., Kp) can be reduced at the same time, but is not limited to, to avoid excessive control action.
[0076] Optionally, in this embodiment, when the reference change parameter is less than or equal to the second threshold, that is, when the temperature change is relatively stable, the proportional coefficient can be restored to improve the steady-state accuracy, and the integral coefficient (i.e., Ki) can be adjusted to suppress long-term deviations to ensure the long-term stability and accuracy of the system.
[0077] As an optional implementation, detecting a reference change parameter of a server includes: detecting a temperature change rate of the server, wherein the temperature change rate is used to indicate how the temperature of the server changes over time; and determining the absolute value of the temperature change rate as a reference change parameter.
[0078] Optionally, in this embodiment, the reference change parameter may be, but is not limited to, focusing only on how fast the temperature changes over time, without focusing on whether the temperature increases or decreases over time.
[0079] As an optional embodiment, the fan speed control system includes a collector, a first controller and a second controller, wherein the collector is connected to both the first controller and the second controller, and the first controller is connected to the second controller; predicting the temperature information of the server based on the first operating information of the server, the second operating information of the server and the thermal information of the server, including: the first controller sends an information acquisition request to the collector, wherein the information acquisition request is used to request to obtain the first operating information and the second operating information; the collector sends the collected first operating information and the second operating information to the second controller; the second controller forwards the first operating information and the second operating information to the first controller; the first controller predicts the temperature information based on the thermal information and the received first operating information and the second operating information.
[0080] Optionally, in this embodiment, the collector may be but is not limited to a BMC (Baseboard Management Controller) on a server, the first controller may be but is not limited to an MCU for managing fans, and the second controller may be but is not limited to a computer device that can be connected to the BMC via a network.
[0081] Optionally, in this embodiment, after the collector collects the first operating information (e.g., CPU utilization) and the second operating information (e.g., ambient temperature), it first sends the data to the second controller. This intermediate layer allows the second controller to perform data preprocessing and verification to ensure data quality and consistency. For example, the second controller can check whether the data exceeds the valid range, contains outliers, or requires a simple linear transformation to match the input format of the first controller. This preprocessing helps improve the prediction accuracy of the first controller and reduce prediction errors caused by data quality issues. Data is transferred through the second controller rather than transmitted directly to the first controller, which enhances system data security to a certain extent. The second controller can act as a firewall, performing data security checks to prevent malicious data or abnormal signals from directly interfering with the normal operation of the first controller. Furthermore, this design facilitates data isolation between the first controller and the collector. Even if problems occur in the collector or its connected data source, the decision-making process of the first controller will not be immediately affected, thereby improving the overall stability and robustness of the system. The second controller can also act as a load balancer, managing data input from multiple collectors. This can avoid performance bottlenecks when the first controller processes large amounts of concurrent data, especially in large server clusters. By performing data aggregation, filtering, or preliminary analysis at the second controller level, the computational burden of the first controller can be reduced, allowing it to focus on more complex or critical prediction and control tasks, thereby improving the operating efficiency and response speed of the entire system.
[0082] As an optional implementation, Figure 4 This is a flow chart of a power feedforward control method in a server fan heat dissipation process according to an embodiment of the present application. Figure 4 As shown, the fan speed can be managed by combining feedforward control and feedback control, but is not limited to the above. In the predictive feedforward control scheme, according to the law of conservation of energy, the system temperature change is determined by the difference between the input power and the heat dissipation power as shown in formula (1), where C th is the system heat capacity (J / ℃) (i.e., the second thermodynamic parameter) (the amount of heat required to increase the system's unit temperature, reflecting the system's thermal inertia), R th is the system thermal resistance (°C / W) (i.e. the first thermal parameter) (the ratio of the temperature difference between the system and the environment to the thermal power, reflecting the heat dissipation capacity of the system), P in is the real-time heating power, T ambient is the ambient temperature, T is the real-time temperature of the system, and t is the time.
[0083] Formula (1): .
[0084] Because the fan controller MCU collects power and temperature information at a fixed period and periodically outputs PWM duty cycle signals, and discretization can simplify calculations by fixing the time step to adapt to the limited computing resources of the MCU, the above model (i.e., formula (1)) can be discretized as formula (2), but is not limited to it, where k is the current moment and k+1 is the next moment (i.e., the future moment).
[0085] Formula (2): .
[0086] When the CPU and memory receive the pressure increase instruction, the power is doubled. You can, but are not limited to, run the IPMItool (Intelligent Platform Management Interface tool) script on the computer to obtain the CPU and memory temperature, power information and current ambient temperature in real time, and package the information and send it to the MCU. Then, the MCU calculates the power increase components (i.e., the components in the server) according to formula (3). Temperature prediction after time T pred,k+1 That is, the predicted temperature at a future moment, T meas,k That is, the temperature of the server detected at the current moment, That is, the target time length, P in,k That is, the heating power detected at the current moment, T ambient,k That is, the current ambient temperature.
[0087] Formula (3): .
[0088] In adaptive PID control, the PID parameters can be adjusted according to, but not limited to, the temperature change rate. ) reflects the current dynamic characteristics of the system. When the system is in the rapid heating / cooling stage, The absolute value is large, so the proportional gain Kp needs to be reduced to avoid overshoot, and the differential gain Kd needs to be increased to enhance damping. When the system is close to the set value, Approaching zero, Kp needs to be restored to improve the steady state, and the integral time Ki is adjusted to suppress the oscillation. The change rate interval threshold can be divided into two types, but not limited to: low change rate ( (ie, the second threshold)), high rate of change ( (ie, the first threshold). When in the high change rate range (ie, the reference change parameter When the value is greater than the first threshold), set Kp=1.0, Ki=0.2, Kd=2.0 (to suppress overshoot), when in the low change rate range (i.e., the reference change parameter When the value is less than the first threshold value), set Kp=3.0, Ki=0.1, Kd=0.5 (to improve the response speed).
[0089] Through the solution of the present application, by adding a power-based temperature prediction function, the temperature of components at future moments is predicted to obtain the feedforward value, and the fan speed is controlled in advance by combining the feedback value obtained by the PID online adjustment parameters, thereby improving the response speed of the fan, reducing the temperature overshoot phenomenon, reducing the overshoot of the speed, and adjusting the PID parameters according to the temperature change rate, thereby improving the accuracy of the fan speed control.
[0090] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method.
[0091] The embodiment of the present application also provides a device for controlling the speed of a fan. Figure 5 FIG. 1 is a structural block diagram of a fan speed control device according to an embodiment of the present application. Figure 5 As shown, the device includes:
[0092] Prediction module 502 is configured to, upon detecting the rotational speed of a fan of the server to be adjusted, predict temperature information of the server based on first operating information of the server, second operating information of the server, and thermal information of the server, wherein the first operating information indicates the temperature of the server, the second operating information indicates the operating status of the server, the thermal information indicates the heat transfer capability of the server, and the temperature information indicates a temperature change of the server after the current moment;
[0093] a first adjustment module 504 configured to adjust initial operating parameters according to the first operating information and the temperature information to obtain target operating parameters, wherein the initial operating parameters are used to indicate a current speed of the fan;
[0094] The second adjustment module 506 is configured to adjust the rotation speed of the fan to a rotation speed indicated by the target operating parameter.
[0095] By means of the above device, when detecting the rotational speed of the fan of the server to be adjusted, the temperature change of the server after the current moment is predicted according to the temperature condition of the server, the operating condition of the server and the heat transfer capability of the server, the initial operating parameters of the fan are adjusted to the target operating parameters according to the temperature condition of the server and the temperature change of the server after the current moment, and the rotational speed of the fan is adjusted from the rotational speed indicated by the initial operating parameters to the rotational speed indicated by the target operating parameters, and the temperature change of the server after the current moment is predicted using the temperature condition of the server, the operating condition of the server and the heat transfer capability of the server. When controlling the fan speed, it is no longer based solely on the current temperature, but also fully considers future temperature changes, which can effectively avoid the occurrence of temperature overshoot of the server and the occurrence of speed overshoot. Therefore, the technical problem of poor control effect of the fan speed can be solved, and the technical effect of improving the control effect of the fan speed can be achieved.
[0096] Optionally, the prediction module includes: a first prediction unit, used to predict a first temperature parameter based on the operating temperature, ambient temperature and thermal information, and predict a second temperature parameter based on the first power and thermal information, wherein the operating temperature is the temperature of the server at the current moment, the ambient temperature is the temperature of the environment in which the server is located, and the first temperature parameter is used to indicate the impact of the server's heat dissipation capacity on the server's temperature during a target time period from the current moment to a future moment after the current moment, the first operating information includes the operating temperature and the ambient temperature, the first power is the operating power of the server at the current moment, the second operating information includes the first power, and the second temperature parameter is used to indicate the impact of the heat generated by the server's operation during the target time period on the server's temperature; a first determination unit, used to determine the temperature change value of the server during the target time period based on the first temperature parameter and the second temperature parameter, wherein the temperature information includes the temperature change value.
[0097] Optionally, the first prediction unit is also used to: calculate the difference between the operating temperature and the ambient temperature to obtain a target temperature difference; calculate the quotient of the target temperature difference and the first thermal parameter to obtain a second power, wherein the second power is the heat dissipation power of the server at the current moment, the first thermal parameter is used to indicate the ability of the server to transfer heat to the outside of the server, and the thermal information includes the first thermal parameter; calculate the quotient of the second power and the second thermal parameter to obtain a first unit parameter, wherein the second thermal parameter is used to indicate the difficulty of the server's temperature change when the server absorbs the heat generated by the server operation, the first unit parameter is used to indicate the temperature change of the server caused by the server transferring heat to the outside of the server per unit time, and the thermal information includes the second thermal parameter; calculate the product of the first unit parameter and the target time length to obtain the first temperature parameter, wherein the target time length is the length of the target time period.
[0098] Optionally, the first prediction unit is also used to: detect the heating power of the server at the current moment based on the first power; calculate the quotient of the heating power and the second thermal parameter to obtain a second unit parameter, wherein the second thermal parameter is used to indicate the difficulty of the server's temperature change when the server absorbs the heat generated by the server operation, and the second unit parameter is used to indicate the temperature change of the server caused by running the server per unit time, and the thermal information includes the second thermal parameter; calculate the product of the second unit parameter and the target time length to obtain a second temperature parameter, wherein the target time length is the time length of the target time period.
[0099] Optionally, the prediction module also includes: a second determination unit, used to determine a reference operating parameter based on the first operating information and the initial operating parameter, wherein the reference operating parameter is used to indicate the speed required for the fan to eliminate the temperature difference between the operating temperature and the standard temperature, the operating temperature is the temperature of the server at the current moment, and the first operating information includes the operating temperature and the standard temperature; a second prediction unit, used to predict a third temperature parameter based on the operating temperature, the ambient temperature, the reference operating parameter, the initial operating parameter and the thermal information, and predict the second temperature parameter based on the first power and the thermal information, wherein the ambient temperature is the temperature of the environment in which the server is located at the current moment, the third temperature parameter is used to indicate the impact of the server's heat dissipation capacity on the server's temperature in a target time period from the current moment to a future moment after the current moment, the first operating information also includes the ambient temperature, the first power is the operating power of the server at the current moment, the second operating information includes the first power, and the second temperature parameter is used to indicate the impact of the heat generated by the server's operation in the target time period on the server's temperature; a third determination unit, used to determine the temperature change value of the server in the target time period based on the third temperature parameter and the second temperature parameter, wherein the temperature information includes the temperature change value.
[0100] Optionally, the second prediction unit is further used to: calculate the difference between the operating temperature and the ambient temperature to obtain a target temperature difference; calculate the quotient of the target temperature difference and the first thermal parameter to obtain a second power, wherein the second power is the heat dissipation power of the server at the current moment, the first thermal parameter is used to indicate the ability of the server to transfer heat to the outside of the server, and the thermal information includes the first thermal parameter; determine a third power based on the second power, the reference operating parameter and the initial operating parameter, wherein the third power is the heat dissipation power of the server when the fan operates at a speed indicated by the reference operating parameter; calculate the quotient of the third power and the second thermal parameter to obtain a third unit parameter, wherein the second thermal parameter is used to indicate the difficulty of the server's temperature change when absorbing the heat generated by the server operation, and the third unit parameter is used to indicate the server's temperature change caused by the server transferring heat to the outside of the server per unit time when the fan operates at a speed indicated by the reference operating parameter, and the thermal information includes the second thermal parameter; calculate the product of the third unit parameter and the target time length to obtain a third temperature parameter, wherein the target time length is the length of the target time period.
[0101] Optionally, the first adjustment module includes: a fourth determination unit, used to determine the target adjustment parameter based on the temperature change value of the server in the target time period from the current moment to a future moment after the current moment, and determine the reference operating parameter based on the first operating information and the initial operating parameter, wherein the temperature information includes the temperature change value, the reference operating parameter is used to indicate the speed required for the fan to eliminate the temperature difference between the operating temperature and the standard temperature, the operating temperature is the temperature of the server at the current moment, and the first operating information includes the operating temperature and the standard temperature; a calculation unit, used to calculate the sum of the target adjustment parameter and the reference operating parameter to obtain the target operating parameter.
[0102] Optionally, the fourth determination unit is also used to: obtain temperature change parameters and operation adjustment parameters with corresponding relationships, wherein the temperature change parameter is the temperature difference of the server at different times, and the operation adjustment parameter is used to indicate the speed required for the fan to eliminate the temperature difference; match the temperature change value with the corresponding operation adjustment parameter from the temperature change parameters and operation adjustment parameters with corresponding relationships to obtain the target adjustment parameter.
[0103] Optionally, the first adjustment module also includes: a detection unit, used to detect a reference change parameter of the server, wherein the reference change parameter is used to indicate the speed at which the temperature of the server changes over time; an adjustment unit, used to adjust the initial control parameter of the fan speed according to the reference change parameter to obtain a target control parameter, wherein the target control parameter is used to indicate the degree of adjustment of the initial operating parameter according to the first operating information after the current moment.
[0104] Optionally, the adjustment unit is also used to: reduce the proportional coefficient and increase the differential coefficient when the reference change parameter is greater than a first threshold, wherein the fan speed is determined based on proportional, integral and differential control, and the initial control parameters include the proportional coefficient and the differential coefficient; and increase the proportional coefficient when the reference change parameter is less than or equal to a second threshold, wherein the second threshold is less than the first threshold.
[0105] Optionally, the detection unit is further used to: detect a temperature change rate of the server, wherein the temperature change rate is used to indicate a change in the temperature of the server over time; and determine an absolute value of the temperature change rate as a reference change parameter.
[0106] Optionally, the fan speed control system includes a collector, a first controller and a second controller, wherein the collector is connected to both the first controller and the second controller, and the first controller is connected to the second controller; the prediction module also includes: a first sending unit, used by the first controller to send an information acquisition request to the collector, wherein the information acquisition request is used to request to obtain the first operating information and the second operating information; a second sending unit, used by the collector to send the collected first operating information and the second operating information to the second controller; a forwarding unit, used by the second controller to forward the first operating information and the second operating information to the first controller; and a third prediction unit, used by the first controller to predict the temperature information based on the thermal information and the received first operating information and the second operating information.
[0107] For the description of the features in the embodiment corresponding to the fan speed control device, reference can be made to the relevant description of the embodiment corresponding to the fan speed control method, which will not be repeated here.
[0108] An embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps of any of the above-mentioned fan speed control method embodiments.
[0109] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any of the above-mentioned fan speed control method embodiments when running.
[0110] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0111] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of any of the above-mentioned fan speed control method embodiments are implemented.
[0112] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above-mentioned fan speed control method embodiments are implemented.
[0113] 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 above description has generally described the components and steps of each example according to their functions. 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 beyond the scope of this application.
[0114] The above is a detailed introduction to a fan speed control method and device provided by the present application. This article uses specific examples 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 ideas 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 method for controlling fan speed, characterized in that: include: When the rotation speed of a fan of a server to be adjusted is detected, predicting temperature information of the server based on first operating information of the server, second operating information of the server, and thermal information of the server, wherein the first operating information is used to indicate the temperature condition of the server, the second operating information is used to indicate the operating condition of the server, the thermal information is used to indicate the heat transfer capability of the server, and the temperature information is used to indicate the temperature change of the server after the current moment; adjusting an initial operating parameter according to the first operating information and the temperature information to obtain a target operating parameter, wherein the initial operating parameter is used to indicate a rotation speed of the fan at the current moment; adjusting the rotation speed of the fan to the rotation speed indicated by the target operating parameter; The predicting of the temperature information of the server according to the first operation information of the server, the second operation information of the server, and the thermal information of the server includes: Predicting a first temperature parameter based on the operating temperature, the ambient temperature, and the thermal information, and predicting a second temperature parameter based on the first power and the thermal information, wherein the operating temperature is the temperature of the server at the current moment, the ambient temperature is the temperature of the environment in which the server is located, and the first temperature parameter is used to indicate the impact of the heat dissipation capacity of the server on the temperature of the server during a target time period from the current moment to a future moment after the current moment, the first operating information includes the operating temperature and the ambient temperature, the first power is the operating power of the server at the current moment, the second operating information includes the first power, and the second temperature parameter is used to indicate the impact of heat generated by the operation of the server during the target time period on the temperature of the server; determining a temperature change value of the server during the target time period based on the first temperature parameter and the second temperature parameter, wherein the temperature information includes the temperature change value; Alternatively, a reference operating parameter is determined based on the first operating information and the initial operating parameter, wherein the reference operating parameter is used to indicate the speed required for the fan to eliminate the temperature difference between the operating temperature and the standard temperature, the operating temperature is the temperature of the server at the current moment, and the first operating information includes the operating temperature and the standard temperature; a third temperature parameter is predicted based on the operating temperature, the ambient temperature, the reference operating parameter, the initial operating parameter, and the thermal information, and a second temperature parameter is predicted based on the first power and the thermal information, wherein the ambient temperature is the temperature of the environment in which the server is located at the current moment, and the third temperature parameter is used to indicate the impact of the heat dissipation capacity of the server on the temperature of the server during a target time period from the current moment to a future moment after the current moment, the first operating information also includes the ambient temperature, the first power is the operating power of the server at the current moment, the second operating information includes the first power, and the second temperature parameter is used to indicate the impact of heat generated by the operation of the server during the target time period on the temperature of the server; a temperature change value of the server during the target time period is determined based on the third temperature parameter and the second temperature parameter, wherein the temperature information includes the temperature change value.
2. The fan speed control method according to claim 1, wherein: The predicting of the first temperature parameter according to the operating temperature, the ambient temperature and the thermal information includes: Calculating the difference between the operating temperature and the ambient temperature to obtain a target temperature difference; calculating a quotient of the target temperature difference and a first thermal parameter to obtain a second power, wherein the second power is the heat dissipation power of the server at the current moment, the first thermal parameter is used to indicate an ability of the server to transfer heat to an outside of the server, and the thermal information includes the first thermal parameter; calculating a quotient of the second power and a second thermal parameter to obtain a first unit parameter, wherein the second thermal parameter is used to indicate how easy it is for the server to change its temperature when absorbing heat generated by the server during operation, and the first unit parameter is used to indicate a temperature change of the server caused by heat transferred from the server to an outside of the server per unit time, and the thermal information includes the second thermal parameter; The first temperature parameter is obtained by multiplying the first unit parameter by a target time length, wherein the target time length is the time length of the target time period.
3. The fan speed control method according to claim 1, wherein: Before determining the temperature change value of the server within the target time period according to the first temperature parameter and the second temperature parameter, predicting the second temperature parameter according to the first power and the thermal information includes: detecting the heating power of the server at the current moment according to the first power; calculating a quotient of the heat generation power and a second thermal parameter to obtain a second unit parameter, wherein the second thermal parameter is used to indicate the ease with which the temperature of the server changes when the server absorbs heat generated by the operation of the server, and the second unit parameter is used to indicate the temperature change of the server caused by the operation of the server per unit time, and the thermal information includes the second thermal parameter; The product of the second unit parameter and the target time length is calculated to obtain the second temperature parameter, wherein the target time length is the time length of the target time period.
4. The fan speed control method according to claim 1, wherein: The predicting of the third temperature parameter according to the operating temperature, the ambient temperature, the reference operating parameter, the initial operating parameter, and the thermal information includes: Calculating the difference between the operating temperature and the ambient temperature to obtain a target temperature difference; calculating a quotient of the target temperature difference and a first thermal parameter to obtain a second power, wherein the second power is the heat dissipation power of the server at the current moment, the first thermal parameter is used to indicate an ability of the server to transfer heat to an outside of the server, and the thermal information includes the first thermal parameter; determining a third power according to the second power, the reference operating parameter, and the initial operating parameter, wherein the third power is the heat dissipation power of the server when the fan operates at a speed indicated by the reference operating parameter; calculating a quotient of the third power and a second thermal parameter to obtain a third unit parameter, wherein the second thermal parameter is used to indicate how easy it is for the server to change its temperature when absorbing heat generated by the server during operation, and the third unit parameter is used to indicate a temperature change of the server caused by heat transferred from the server to an outside of the server per unit time when the fan operates at a speed indicated by the reference operating parameter, and the thermal information includes the second thermal parameter; The product of the third unit parameter and the target time length is calculated to obtain the third temperature parameter, wherein the target time length is the time length of the target time period.
5. The fan speed control method according to claim 1, wherein: The adjusting the initial operating parameters according to the first operating information and the temperature information to obtain target operating parameters includes: determining a target adjustment parameter based on a temperature change value of the server within a target time period from the current moment to a future moment after the current moment, and determining a reference operating parameter based on the first operating information and the initial operating parameter, wherein the temperature information includes the temperature change value, the reference operating parameter is used to indicate a speed required for the fan to eliminate a temperature difference between an operating temperature and a standard temperature, the operating temperature is the temperature of the server at the current moment, and the first operating information includes the operating temperature and the standard temperature; The sum of the target adjustment parameter and the reference operating parameter is calculated to obtain the target operating parameter.
6. The fan speed control method according to claim 5, characterized in that: The determining the target adjustment parameter according to the temperature change value of the server within a target time period from the current moment to a future moment after the current moment includes: Acquiring a temperature change parameter and an operation adjustment parameter having a corresponding relationship, wherein the temperature change parameter is a temperature difference of the server at different times, and the operation adjustment parameter is used to indicate a speed required by the fan to eliminate the temperature difference; The target adjustment parameter is obtained by matching the temperature change value with a corresponding operation adjustment parameter from the temperature change parameters and the operation adjustment parameters.
7. The fan speed control method according to claim 5, characterized in that: Before determining the reference operating parameters according to the first operating information and the initial operating parameters, the method further includes: detecting a reference variation parameter of the server, wherein the reference variation parameter is used to indicate a rate at which the temperature of the server changes over time; The initial control parameter of the fan speed is adjusted according to the reference change parameter to obtain a target control parameter, wherein the target control parameter is used to indicate the degree of adjustment of the initial operating parameter according to the first operating information after the current moment.
8. The fan speed control method according to claim 7, characterized in that: The adjusting the initial control parameter of the fan speed according to the reference change parameter includes: When the reference change parameter is greater than a first threshold, reducing the proportional coefficient and increasing the differential coefficient, wherein the speed of the fan is determined according to proportional, integral and differential control, and the initial control parameters include the proportional coefficient and the differential coefficient; When the reference variation parameter is less than or equal to a second threshold, the proportional coefficient is increased, wherein the second threshold is less than the first threshold.
9. The fan speed control method according to claim 7, characterized in that: The detecting a reference change parameter of the server includes: detecting a temperature change rate of the server, wherein the temperature change rate is used to indicate a change in the temperature of the server over time; The absolute value of the temperature change rate is determined as the reference change parameter.
10. The fan speed control method according to claim 1, wherein: The fan speed control system includes a collector, a first controller and a second controller, wherein the collector is connected to both the first controller and the second controller, and the first controller is connected to the second controller; The predicting the temperature information of the server according to the first operation information of the server, the second operation information of the server, and the thermal information of the server includes: The first controller sends an information acquisition request to the collector, wherein the information acquisition request is used to request the first operation information and the second operation information; The collector sends the collected first operation information and the second operation information to the second controller; forwarding the first operation information and the second operation information to the first controller by the second controller; The temperature information is predicted by the first controller according to the thermal information and the received first operation information and the second operation information.
11. An electronic device, characterized in that: include: memory for storing computer programs; A processor is configured to implement the steps of the fan speed control method according to any one of claims 1 to 10 when executing the computer program.
12. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the fan speed control method according to any one of claims 1 to 10 are implemented.
13. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the fan speed control method according to any one of claims 1 to 10 are implemented.
Citation Information
Patent Citations
Server fan control system, method and device and electronic equipment
CN118567450A
Intelligent temperature control method in cold chain transportation process
CN118963444A