CN113534929B - Method and device for regulating speed of server fan, terminal equipment and storage medium - Google Patents
Method and device for regulating speed of server fan, terminal equipment and storage medium Download PDFInfo
- Publication number
- CN113534929B CN113534929B CN202110745405.8A CN202110745405A CN113534929B CN 113534929 B CN113534929 B CN 113534929B CN 202110745405 A CN202110745405 A CN 202110745405A CN 113534929 B CN113534929 B CN 113534929B
- Authority
- CN
- China
- Prior art keywords
- value
- fan
- server
- target device
- temperature
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 230000001105 regulatory effect Effects 0.000 title claims abstract description 7
- 230000033228 biological regulation Effects 0.000 claims abstract description 27
- 230000001276 controlling effect Effects 0.000 claims abstract description 19
- 238000004590 computer program Methods 0.000 claims description 20
- 238000004422 calculation algorithm Methods 0.000 claims description 11
- 238000004364 calculation method Methods 0.000 claims description 3
- 230000017525 heat dissipation Effects 0.000 abstract description 3
- 230000000875 corresponding effect Effects 0.000 description 16
- 239000000306 component Substances 0.000 description 12
- 238000010586 diagram Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000008844 regulatory mechanism Effects 0.000 description 2
- 101100134058 Caenorhabditis elegans nth-1 gene Proteins 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 239000008358 core component Substances 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 235000019800 disodium phosphate Nutrition 0.000 description 1
- 230000003828 downregulation Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010438 heat treatment Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000003827 upregulation Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/16—Constructional details or arrangements
- G06F1/20—Cooling means
- G06F1/206—Cooling means comprising thermal management
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Control Of Temperature (AREA)
- Cooling Or The Like Of Electrical Apparatus (AREA)
Abstract
The application is applicable to the technical field of server heat dissipation, and provides a server fan speed regulating method, a device, terminal equipment and a storage medium, wherein the server fan speed regulating method comprises the following steps: acquiring an ideal temperature value and an actual temperature value of each target device in a server; calculating a difference value between the ideal temperature value and the actual temperature value of each target device, and taking the minimum value in the difference value as an adjustment reference value for indicating the comprehensive temperature deviation of the server; and controlling the operation of the fan based on the adjustment reference value. The method can reduce the complexity of a speed regulation strategy under the condition of ensuring the regulation precision.
Description
Technical Field
The application belongs to the technical field of server heat dissipation, and particularly relates to a speed regulation method and device for a server fan, terminal equipment and a storage medium.
Background
With the development of server technology, the architecture of the server is also greatly changed, compared with a large-scale server architecture, the existing server is smaller and smaller in size, and the density of internal integrated components is higher and higher, and because the density of the internal integrated components is higher and higher, each component has higher heating power consumption in operation, a server fan is required to be used for heat dissipation, and the speed regulation control of the server fan directly influences the power consumption and the performance of the system operation.
The current speed regulation method of the server fan mainly adopts an environment speed regulation mechanism and a key component PID (Proportion INTEGRAL DIFFERENTIAL, proportional integral derivative) speed regulation mechanism, and the speed regulation strategy of the server fan is complex, the debugging time is longer and the regulation precision is lower due to a plurality of key components. Therefore, how to reduce the complexity of the speed regulation strategy under the condition of ensuring the regulation precision becomes an important problem to be solved urgently.
Disclosure of Invention
The embodiment of the application provides a server fan speed regulation method, a device, terminal equipment and a storage medium, which can reduce the complexity of a speed regulation strategy under the condition of ensuring the regulation precision.
A first aspect of an embodiment of the present application provides a server fan speed regulation method, where the server fan speed regulation method includes:
acquiring an ideal temperature value and an actual temperature value of each target device in a server;
Calculating a difference value between the ideal temperature value and the actual temperature value of each target device, and taking the minimum value in the difference value as an adjustment reference value for indicating the comprehensive temperature deviation of the server;
and controlling the operation of the fan based on the adjustment reference value.
A second aspect of an embodiment of the present application provides a server fan speed adjusting device, including:
the acquisition module is used for acquiring an ideal temperature value and an actual temperature value of each target device in the server;
the calculation module is used for calculating the difference value between the ideal temperature value and the actual temperature value of each target device, and taking the minimum value in the difference value as an adjustment reference value for indicating the comprehensive temperature deviation of the server;
and the control module is used for controlling the operation of the fan based on the adjustment reference value.
A third aspect of an embodiment of the present application provides a terminal device, including: the server fan speed regulation method according to the first aspect is realized by a memory, a processor and a computer program stored in the memory and capable of running on the processor when the processor executes the computer program.
A fourth aspect of the embodiments of the present application provides a computer readable storage medium storing a computer program, which when executed by a processor implements the server fan speed regulation method described in the first aspect.
A fifth aspect of an embodiment of the present application provides a computer program product, which when run on a terminal device, causes the terminal device to perform the server fan speed regulation method of the first aspect.
In the embodiment of the application, the ideal temperature and the actual temperature of each target device are obtained, the smallest difference value in the differences of the target devices is taken as the adjusting reference value for indicating the comprehensive temperature deviation of the server, the fan is controlled to operate based on the adjusting reference value, and the adjusting reference value for indicating the comprehensive temperature deviation of the server is obtained.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for speed regulation of a server fan according to an embodiment of the present application;
Fig. 2 is a flowchart two of a method for adjusting speed of a fan of a server according to an embodiment of the present application;
FIG. 3 is a block diagram of a speed governor of a server fan according to an embodiment of the present application;
Fig. 4 is a block diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
It should be understood that, the sequence number of each step in this embodiment does not mean the execution sequence, and the execution sequence of each process should be determined by its function and internal logic, and should not limit the implementation process of the embodiment of the present application in any way.
In order to illustrate the technical scheme of the application, the following description is given by specific examples.
Referring to fig. 1, a flowchart of a method for adjusting speed of a server fan according to an embodiment of the present application is shown, and as shown in fig. 1, a method for adjusting speed of a server fan includes the following steps:
And step 101, acquiring an ideal temperature value and an actual temperature value of each target device in the server.
In the server, each target device has its own ideal temperature value, and when each target device operates at its own ideal temperature, the service life of the target device itself can be increased, and the service life of the server can be also increased.
The target device may refer to a key device in the server, the key device refers to a relatively important device in the server, such as a power supply, a processor, a hard disk and the like, the target device may be selected from a plurality of key devices in the server according to different application scenarios, and the specific type of the target device is not limited by the present application.
In the embodiment of the present application, the ideal temperature value of each target device in the server may be formulated by the user according to the optimal operation performance of the target device, taking the target device as the processor as an example, if the operation performance of the processor is optimal (the operation performance includes the operation speed and the operation frequency) when the processor operates at 60 degrees, the user may directly set the ideal temperature value of the processor to 60 degrees. And the actual temperature value of each target device in the server can be provided with a temperature sensor on each target device so as to acquire the actual temperature value of each target device.
In one possible implementation, obtaining the desired temperature value for each target device includes:
acquiring the rated temperature of each target device and the weight value corresponding to each target device;
The product of the rated temperature and the weight value of each target device is taken as an ideal temperature value of each target device.
Wherein the rated temperature of each target device may refer to the highest temperature at which the target device is capable of long-term operation. The weight value corresponding to each target device can be set according to the importance degree of the target device in the server, and the weight value can be in the range of 0 and 1, wherein the smaller the weight value is, the higher the importance degree of the target device in the server is.
In the embodiment of the application, the ideal temperature value of each target device can be obtained according to the importance degree of the target device in the server and the highest temperature of the target device capable of operating for a long time, and the ideal temperature value of the target device can be obtained by multiplying the highest temperature of the target device capable of operating for a long time with the importance degree of the target device in the server.
For example, for the processor in the server, the processor is responsible for the operation and control of the whole server in the server and is the most core component affecting the performance of the server, so the weight value corresponding to the processor can be set to be 0.8, and the ideal temperature value of the processor can be obtained to be 64 degrees because the highest temperature of the processor capable of running for a long time is 80 degrees.
It should be understood that, in the embodiment of the present application, the weight value may be set according to the importance degree of the target device in the server, and in different application scenarios, the importance degree of each target device is different. For example, when playing a game, the running speed of the processor is more important, and the performance of the display card is lower in importance than the running speed of the processor, and the weight value of the processor can be set to be smaller than that of the display card; when the server is used for watching the video, the display performance of the display card is more important, and the running speed of the processor is lower than the display performance of the display card, so that the weight value of the display card can be set smaller than the weight value of the processor. In general, the user can adaptively adjust the weight value of each target device according to different application scenarios.
Step 102, calculating the difference between the ideal temperature value and the actual temperature value of each target device, and taking the minimum value in the difference as an adjustment reference value for indicating the comprehensive temperature deviation of the server.
In the embodiment of the application, the difference value between the ideal temperature value and the actual temperature value of each target device refers to the difference value obtained by subtracting the actual temperature value from the ideal temperature value of each target device, and if the difference value is a positive value, the actual temperature value of each target device is smaller than the ideal temperature value, so that the running requirement of a server is met, and the rotating speed of a system fan can be adjusted down according to the deviation. If the minimum value in the difference is a negative value, the actual temperature value of the target device with the negative value is higher than the ideal temperature value of the target device, and the system fan rotating speed needs to be up-regulated according to the deviation to cool the target device, so that the actual temperature value of the target device can reach the ideal temperature value of the target device.
The minimum value in the difference value is used as an adjusting reference value for indicating the comprehensive temperature deviation of the server, the difference value is positive, and the rotating speed of the system fan is subjected to down-regulation treatment to improve the temperature of the target device. The deviation between the actual temperature of the target device and the actual temperature value and the ideal temperature value of the target device is minimum (wherein the deviation is obtained by taking the negative value of the difference between the actual temperature value and the ideal temperature value of the target device), and the minimum deviation value is used as an adjusting reference value for indicating the comprehensive temperature deviation of the server, so that the actual temperature value of other target devices in the rotating speed of the server after the rotating speed is adjusted downwards can be ensured to be smaller than or equal to the ideal temperature value of the server.
And when the difference value is negative, the rotating speed of the system fan is subjected to up-regulation treatment to reduce the temperature of the target device. The deviation between the actual temperature value and the ideal temperature value of the target device is the largest (wherein the deviation is obtained by taking the negative value of the difference between the actual temperature value and the ideal temperature value of the target device), and the maximum deviation value is used as an adjusting reference value for indicating the comprehensive temperature deviation of the server, so that the actual temperature values of other target devices in the server can be ensured to be smaller than or equal to the ideal temperature value of the target device.
In the embodiment of the present application, the server integrated temperature deviation may refer to a difference between the server integrated temperature and a server integrated temperature threshold, and the server integrated temperature may be specifically expressed by the following formula:
keyT=Taim-Min((Ar·Tah-Ta),(Br·Tbh-Tb),(Cr·Tch-Tc)…)
Wherein keyT refers to the server integrated temperature; taim refers to the server integrated temperature threshold, having a target value that can be understood to be the server integrated temperature; ar, br and Cr respectively refer to weight values corresponding to the device A, the device B and the device C; tah, tbh, tch refers to the rated temperature of device a, device B, and device C, respectively; ta, tb, tc refer to the actual temperature values of device A, device B, and device C, respectively; min (a, b, c) is the minimum value of a, b, c.
The above formula can be used to obtain the comprehensive temperature deviation of the server as follows:
e(n)=keyT(n)-Taim
=-Min((Ar·Tah-Ta(n)),(Br·Tbh-Tb(n)),(Cr·Tch-Tc(n))…)
Wherein e (n) is the comprehensive temperature deviation of the server at the nth moment, and n is the nth moment; ta (n), tb (n), tc (n) refer to actual temperature values of the devices a, B, and C at the nth time, respectively.
It should be understood that the server integrated temperature is an integrated temperature corresponding to all target devices in the server, and the server integrated temperature threshold is an ideal value of the server integrated temperature, where the server integrated temperature threshold may be obtained based on a weight value of each target device and may be set by a user according to the ideal temperature value of each target device.
Step 103, controlling the operation of the fan based on the adjustment reference value.
In the embodiment of the application, the adjustment reference value is used for indicating the server integrated temperature deviation, and the fan operation is controlled based on the adjustment reference value, namely, the adjustment reference value is used for adjusting the integrated temperature deviation so that the server integrated temperature can be close to the server integrated temperature threshold, and when the adjusted integrated temperature deviation can enable the server integrated temperature to be close to the server integrated temperature threshold, a fan control signal is output to control the fan operation.
In one possible embodiment, controlling the operation of the fan based on the adjustment reference value includes:
When the adjustment reference value is a negative value in the difference value between the ideal temperature value and the actual temperature value of each target device, adjusting the current rotation speed of the fan to the target fan rotation speed based on the adjustment reference value;
based on the target fan speed, fan operation is controlled.
In the embodiment of the application, when the adjustment reference value is a negative value in the difference value between the ideal temperature value and the actual temperature value of each target device, it can be obtained that the actual temperature value of the target device is greater than the ideal temperature value of the target device in all the target devices. Since the adjustment reference value refers to the smallest difference value among the differences between the ideal temperature value and the actual temperature value of each target device, if the smallest difference value is a negative value, it is indicated that the target device corresponding to the smallest difference value is the target device with the largest difference between the actual temperature value and the ideal temperature value, so the rotation speed of the fan should be adjusted based on the adjustment reference value, the current rotation speed of the fan is adjusted to the target rotation speed of the fan, and the operation of the fan is controlled based on the target rotation speed of the fan.
It should be appreciated that the target fan speed may be such that the actual temperature value of the target device corresponding to the minimum difference is less than or equal to its own desired temperature value.
In one possible embodiment, adjusting the current rotational speed of the fan to the target fan rotational speed based on the adjustment reference value includes:
taking negative value for adjusting reference value;
Based on the negative value of the adjusting reference value, obtaining a fan control signal through a PID control algorithm;
and controlling the fan to adjust the current rotating speed to the target rotating speed of the fan according to the fan control signal.
In the embodiment of the application, because the server integrated temperature deviation is the difference between the server integrated temperature and the server integrated temperature threshold, when the server integrated temperature is greater than the server integrated temperature threshold, the server integrated temperature deviation is obtained as a positive value, and the adjustment reference value for indicating the server integrated temperature deviation is a negative value, so that the adjustment reference value should be taken as a negative value first, the negative value of the adjustment reference value equal to the server integrated temperature deviation is obtained, and because the negative value of the adjustment reference value is equal to the server integrated temperature deviation, the adjustment of the negative value of the adjustment reference value can refer to the adjustment of the server integrated temperature deviation, the server integrated temperature deviation is input into the PID control algorithm, and the fan control signal is obtained until the server integrated temperature is less than or equal to the server integrated temperature threshold.
The PID control algorithm can adopt an incremental PID control algorithm, and a control formula of the incremental PID control algorithm can be expressed by the following equation:
where u (n) refers to the fan speed at the nth time (i.e., the target fan speed), and u (n-1) refers to the fan speed at the nth-1 time; kp refers to the proportional term coefficient in the PID control algorithm, Refers to integral term coefficients in a PID control algorithm,The derivative term coefficients in the PID control algorithm; e (n) is the n-th moment server integrated temperature deviation, e (n-1) is the n-1-th moment server integrated temperature deviation, and e (n-2) is the n-2-th moment server integrated temperature deviation.
The target fan speed of the fan is obtained according to the above equation, and the current speed of the fan is adjusted to the target fan speed according to the obtained fan control signal.
In one possible embodiment, controlling the fan to adjust from the current rotational speed to the target fan rotational speed in accordance with the fan control signal includes:
The current rotational speed of the fan is adjusted to a target fan rotational speed based on a PWM (Pulse Width Modulation, pulse width modulated) duty cycle signal.
In the embodiment of the application, the ideal temperature and the actual temperature of each target device are obtained, the smallest difference value in the differences of the target devices is taken as the adjusting reference value for indicating the comprehensive temperature deviation of the server, the fan is controlled to operate based on the adjusting reference value, and the adjusting reference value for indicating the comprehensive temperature deviation of the server is obtained.
Referring to fig. 2, a second flowchart of a server fan speed regulation method according to an embodiment of the present application is shown, and as shown in fig. 2, a server fan speed regulation method includes the following steps:
in step 201, an ideal temperature value and an actual temperature value of each target device in the server are obtained.
Step 202, calculating the difference between the ideal temperature value and the actual temperature value of each target device, and taking the minimum value in the difference as an adjustment reference value for indicating the comprehensive temperature deviation of the server.
In step 203, when the adjustment reference value is a negative value in the difference between the ideal temperature value and the actual temperature value of each target device, the current rotation speed of the fan is adjusted up to the target rotation speed of the fan based on the adjustment reference value, and the operation of the fan is controlled based on the target rotation speed of the fan.
Steps 201 to 203 of this embodiment are the same as steps 101 to 103 of the foregoing embodiment, and can be referred to each other, and the description of this embodiment is omitted here.
Step 204, when the adjustment reference value is a positive value in the difference between the ideal temperature value and the actual temperature value of each target device, the current rotation speed of the fan is adjusted up to the target rotation speed of the fan based on the adjustment reference value, and the operation of the fan is controlled based on the target rotation speed of the fan.
In the embodiment of the present application, since the adjustment reference value refers to the minimum value of the differences between the ideal temperature value and the actual temperature value of each target device, if the minimum value is a positive value, it is indicated that the actual temperature value of each target device is smaller than the ideal temperature value thereof.
It will be appreciated that when the actual temperature value of each target device is less than its own ideal temperature value, then the fan down-turn speed may be controlled in order to achieve lower power consumption and noise levels.
Illustratively, assume that actual temperature values and ideal temperature values of device a, device B, and device C in the server are shown in table 1, where the rated temperature of device a is 85 degrees and the corresponding weight value is 0.7; the rated temperature of the device B is 100 ℃, and the corresponding weight value is 0.65; the rated temperature of the device C is 105 degrees, and the corresponding weight value is 0.6; and the server integrated temperature threshold is set to 80, so that the following server integrated temperature and corresponding fan action can be obtained.
TABLE 1
Compared with the first embodiment, the embodiment shows the corresponding action of the fan when the actual temperature value of each target device is smaller than the ideal temperature value of the target device, the fan is controlled to downwards regulate the rotation speed, the resources operated by the server are reduced, so that the occupancy rate of the resources of the server is reduced, meanwhile, the embodiment of the application also enumerates the corresponding action of the fan when the actual temperature value is larger than the ideal temperature value of the target device of the server, and the weight value in the method can be set by a user according to the actual scene requirement, so that the advantages of good openness architecture and expandability of the method are exhibited.
Referring to fig. 3, a block diagram of a server fan speed adjusting device according to an embodiment of the present application is shown, and for convenience of explanation, only a portion related to the embodiment of the present application is shown.
The server fan speed regulation module specifically may include the following modules:
an obtaining module 301, configured to obtain an ideal temperature value and an actual temperature value of each target device in the server;
the calculating module 302 is configured to calculate a difference between the ideal temperature value and the actual temperature value of each target device, and use a minimum value in the difference as an adjustment reference value for indicating the integrated temperature deviation of the server;
the control module 303 is configured to control the fan to operate based on the adjustment reference value.
In the embodiment of the present application, the obtaining module 301 may specifically include the following sub-modules:
The weight acquisition sub-module is used for acquiring the rated temperature of each target device and the weight value corresponding to each target device;
And the product determination submodule is used for taking the product of the rated temperature of each target device and the weight value as an ideal temperature value of each target device.
In the embodiment of the present application, the control module 303 may specifically include the following sub-modules:
The first rotation adjustment sub-module is used for downwards adjusting the current rotation speed of the fan to the target fan rotation speed when the adjustment reference value is one positive value in the difference value between the ideal temperature value and the actual temperature value of each target device;
and the first rotating speed control sub-module is used for controlling the operation of the fan based on the target rotating speed of the fan.
The second rotating speed adjusting sub-module is used for adjusting the current rotating speed of the fan to the target rotating speed of the fan based on the adjusting reference value when the adjusting reference value is a negative value in the difference value between the ideal temperature value and the actual temperature value of each target device;
and the second rotating speed control sub-module is used for controlling the operation of the fan based on the target rotating speed of the fan.
In the embodiment of the present application, the rotation speed adjustment submodule may specifically include the following units:
A negative value acquisition unit for taking negative value for the adjustment reference value;
The signal output unit is used for obtaining a fan control signal through a PID control algorithm based on the negative value of the adjustment reference value;
And the fan control unit is used for controlling the fan to adjust from the current rotating speed to the target rotating speed of the fan according to the fan control signal.
In an embodiment of the present application, the fan control unit may specifically be configured to:
And adjusting the current rotating speed of the fan to the target rotating speed of the fan according to the PWM duty ratio signal.
In an embodiment of the present application, the calculation module 302 may specifically include:
The server integrated temperature deviation refers to a difference between a server integrated temperature and a server integrated temperature threshold, wherein the server integrated temperature is an integrated temperature corresponding to all target devices in the server, and the server integrated temperature threshold is an ideal value of the server integrated temperature.
The server fan speed regulating device provided by the embodiment of the application can be applied to the method embodiment, and details of the method embodiment are described in the above, and are not repeated here.
Fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 4, the terminal device 400 of this embodiment includes: at least one processor 410 (only one shown in fig. 4), a memory 420, and a computer program 421 stored in the memory 420 and executable on the at least one processor 410, the processor 410, when executing the computer program 421, implementing the steps in any of the various server fan pacing method embodiments described above.
The terminal device 400 may be a computing device such as a desktop computer, a notebook computer, a palm computer, and a cloud server. The terminal device may include, but is not limited to, a processor 410, a memory 420. It will be appreciated by those skilled in the art that fig. 4 is merely an example of a terminal device 400 and is not limiting of the terminal device 400, and may include more or fewer components than shown, or may combine certain components, or different components, such as may also include input-output devices, network access devices, etc.
The Processor 410 may be a central processing unit (Central Processing Unit, CPU), the Processor 410 may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL processors, DSPs), application SPECIFIC INTEGRATED Circuits (ASICs), off-the-shelf Programmable gate arrays (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 420 may in some embodiments be an internal storage unit of the terminal device 400, such as a hard disk or a memory of the terminal device 400. The memory 420 may also be an external storage device of the terminal device 400 in other embodiments, such as a plug-in hard disk, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD) or the like, which are provided on the terminal device 400. Further, the memory 420 may also include both an internal storage unit and an external storage device of the terminal device 400. The memory 420 is used to store an operating system, application programs, boot Loader (Boot Loader), data, and other programs, such as program code of the computer program. The memory 420 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other manners. For example, the apparatus/terminal device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
The present application may also be implemented by a computer program product for implementing all or part of the steps of the above embodiments of the method, when the computer program product is run on a terminal device, for enabling the terminal device to execute the steps of the above embodiments of the method.
The above embodiments are only for illustrating the technical solution of the present application, and are not limited thereto. Although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.
Claims (9)
1. A method for regulating speed of a fan of a server, the method comprising:
acquiring an ideal temperature value and an actual temperature value of each target device in a server;
Calculating a difference value between the ideal temperature value and the actual temperature value of each target device, and taking the minimum value in the difference value as an adjustment reference value for indicating the comprehensive temperature deviation of the server;
Controlling the fan to operate based on the adjustment reference value; the obtaining the ideal temperature value of each target device comprises the following steps:
Acquiring the rated temperature of each target device and a weight value corresponding to each target device, wherein the weight value is set according to the importance degree of the target device in a server, and the importance degree of each target device is different in different application scenes;
And taking the product of the rated temperature of each target device and the weight value as an ideal temperature value of each target device.
2. The server fan speed regulation method of claim 1, wherein controlling fan operation based on the regulation reference value comprises:
When the adjustment reference value is a positive value in the difference value between the ideal temperature value and the actual temperature value of each target device, the current rotating speed of the fan is adjusted down to the target fan rotating speed;
and controlling the operation of the fan based on the target fan speed.
3. The server fan speed regulation method of claim 1, wherein controlling fan operation based on the regulation reference value comprises:
When the adjustment reference value is a negative value in the difference value between the ideal temperature value and the actual temperature value of each target device, the current rotating speed of the fan is adjusted to the target rotating speed of the fan based on the adjustment reference value;
and controlling the operation of the fan based on the target fan speed.
4. A server fan speed adjustment method as claimed in claim 2 or 3, wherein said adjusting the current rotational speed of the fan to a target fan rotational speed based on the adjustment reference value comprises:
taking the negative of the adjustment reference value;
based on the negative value of the adjusting reference value, obtaining a fan control signal through a PID control algorithm;
and controlling the fan to adjust from the current rotating speed to the target rotating speed of the fan according to the fan control signal.
5. The server fan speed regulation method of claim 4, wherein the fan control signal is a duty cycle signal of PWM for controlling the operation of the fan, and controlling the fan from the current rotational speed to the target fan rotational speed according to the fan control signal comprises:
and adjusting the current rotating speed of the fan to the target rotating speed of the fan according to the PWM duty ratio signal.
6. The server fan speed regulation method of claim 1, wherein the server integrated temperature deviation is a difference between a server integrated temperature and a server integrated temperature threshold, the server integrated temperature is an integrated temperature corresponding to all the target devices in the server, and the server integrated temperature threshold is an ideal value of the server integrated temperature.
7. A server fan speed adjustment device, the server fan speed adjustment device comprising:
the acquisition module is used for acquiring an ideal temperature value and an actual temperature value of each target device in the server;
the calculation module is used for calculating the difference value between the ideal temperature value and the actual temperature value of each target device, and taking the minimum value in the difference value as an adjustment reference value for indicating the comprehensive temperature deviation of the server;
the control module is used for controlling the operation of the fan based on the adjustment reference value;
the acquisition module comprises:
The weight acquisition sub-module is used for acquiring the rated temperature of each target device and the weight value corresponding to each target device, wherein the weight value is set according to the importance degree of the target device in a server, and in different application scenes, the importance degree of each target device is different;
and the product determination submodule is used for taking the product of the rated temperature of each target device and the weight value as an ideal temperature value of each target device.
8. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 6 when executing the computer program.
9. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110745405.8A CN113534929B (en) | 2021-06-30 | 2021-06-30 | Method and device for regulating speed of server fan, terminal equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110745405.8A CN113534929B (en) | 2021-06-30 | 2021-06-30 | Method and device for regulating speed of server fan, terminal equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113534929A CN113534929A (en) | 2021-10-22 |
CN113534929B true CN113534929B (en) | 2024-07-05 |
Family
ID=78097626
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110745405.8A Active CN113534929B (en) | 2021-06-30 | 2021-06-30 | Method and device for regulating speed of server fan, terminal equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113534929B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114135513A (en) * | 2021-12-10 | 2022-03-04 | 锐捷网络股份有限公司 | Fan control method, device, equipment and storage medium |
CN114635868B (en) * | 2022-03-25 | 2024-10-11 | 峰米(重庆)创新科技有限公司 | Method and device for controlling rotation speed of cooling fan, computer equipment and storage medium |
CN115263793B (en) * | 2022-07-26 | 2024-01-23 | 苏州浪潮智能科技有限公司 | Speed regulation method, speed regulation device, equipment and medium for server fan |
CN115657822A (en) * | 2022-10-31 | 2023-01-31 | 中科可控信息产业有限公司 | Hard disk performance adjusting method, device, server, storage medium and program product |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101660539A (en) * | 2009-09-21 | 2010-03-03 | 中兴通讯股份有限公司 | Method and device for controlling rotating speed of fan |
WO2017020696A1 (en) * | 2015-07-31 | 2017-02-09 | 中兴通讯股份有限公司 | Fan control method and device for multiple service boards |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101316178B1 (en) * | 2006-08-29 | 2013-10-08 | 엘지전자 주식회사 | Apparatus and Method of FAN control |
JP5878737B2 (en) * | 2011-11-17 | 2016-03-08 | 株式会社神戸製鋼所 | Compression device |
KR101539067B1 (en) * | 2015-02-10 | 2015-07-22 | 엘아이지넥스원 주식회사 | Apparatus for controlling fan |
CN108302059B (en) * | 2015-12-10 | 2020-05-15 | 中国长城科技集团股份有限公司 | Fan rotating speed control method and device |
-
2021
- 2021-06-30 CN CN202110745405.8A patent/CN113534929B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101660539A (en) * | 2009-09-21 | 2010-03-03 | 中兴通讯股份有限公司 | Method and device for controlling rotating speed of fan |
WO2017020696A1 (en) * | 2015-07-31 | 2017-02-09 | 中兴通讯股份有限公司 | Fan control method and device for multiple service boards |
Also Published As
Publication number | Publication date |
---|---|
CN113534929A (en) | 2021-10-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113534929B (en) | Method and device for regulating speed of server fan, terminal equipment and storage medium | |
US8265799B2 (en) | Circuit for controlling dynamic rotation speed of fan, method of controlling dynamic rotation speed of fan, and program for controlling dynamic rotation speed of fan | |
CN113133286B (en) | Heat dissipation control method, device, equipment and storage medium | |
US20130228632A1 (en) | Controlling a cooling system for a computer system | |
CN112671232B (en) | LLC resonant circuit control method and device and terminal equipment | |
CN111258398A (en) | AI server fan speed adjusting method, system, terminal device and storage medium | |
CN117570049B (en) | Fan control method and device, baseboard management controller and server | |
US20140358288A1 (en) | Fan speed control system, method, and computing device | |
CN107800338B (en) | Stepping motor speed increasing and decreasing control method based on FPGA | |
CN116360566A (en) | Fan speed regulating method, device, computer equipment, storage medium and program product | |
US20110245991A1 (en) | Fan Speed Duplication | |
CN114922842B (en) | Fan speed regulation control method, device, equipment and readable storage medium | |
CN116442759A (en) | Thermal management control method, thermal management control device, electronic equipment and computer readable storage medium | |
CN114635868B (en) | Method and device for controlling rotation speed of cooling fan, computer equipment and storage medium | |
CN111523653A (en) | Arithmetic device and method | |
CN113672065B (en) | Method and device for regulating speed of fan and storage medium | |
CN112181105A (en) | Heat dissipation device, driving method and computer readable storage medium | |
CN107870660B (en) | Fan control method of electronic device | |
CN118349365B (en) | Resource scheduling method and device, electronic equipment and storage medium | |
CN113726196B (en) | Midpoint balance control method, device and terminal of Vienna rectifying circuit in power supply | |
CN112154670A (en) | Video processing method and device and storage medium | |
CN117873714B (en) | Processor over-frequency method, device, equipment and computer readable medium | |
CN117072473A (en) | Fan speed regulating method and device, electronic equipment and storage medium | |
CN118819244A (en) | Self-adaptive method and device for rotating speed of server fan | |
CN118361409A (en) | Fan speed regulation method, device, equipment and storage medium based on CPU temperature jump |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |