Fan rotating speed smooth regulation method and system, terminal and storage medium
By setting the correspondence between fans and key components and calculating fan speeds using weighted averages, the problem of fan speed oscillation during sudden load changes in servers was solved, achieving stable fan speed control and energy consumption optimization.
Patent Information
- Application Number
- CN202310721665.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-16
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2043-06-16
AI Technical Summary
Existing server fan cooling methods cannot respond promptly and accurately to sudden changes in load power consumption, resulting in fluctuating fan speeds, high noise, high power consumption, and low overall energy efficiency.
By setting the correspondence between the fan and key components, collecting the power consumption and temperature of the key components, pre-setting the power consumption speed level mapping strategy, calculating and weighting the fan speed, and combining the temperature control strategy to generate the second fan speed, a stable fan speed is finally determined.
It achieves stable fan speed control, reduces the possibility of drastic changes in server temperature and speed, improves fan control precision, reduces energy consumption, and achieves the goal of making the server more energy-efficient over time.
Smart Images

Figure CN116498592B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of server technology, specifically relating to a method, system, terminal, and storage medium for stable fan speed control. Background Technology
[0002] Currently, server cooling mainly relies on fans, which are directly controlled by the BMC (Band Controlled Management System) on the motherboard. The system collects temperature values from the temperature sensor on the motherboard and compares them with preset thresholds to determine if the temperature inside the chassis is too high. If the preset threshold is reached, the fan speed is adjusted using PWM (Pulse Width Control).
[0003] In addition to linear algorithms based on threshold comparison, server fan speed control methods also include PID algorithms, which calculate the corresponding output speed based on the internal temperature of the server using PID proportional-integral-derivative control algorithms; and partition-based fan speed control methods, which set different speeds for fans in different locations based on the temperature of specific key components inside the server and considering the correspondence between the key components and fans in different locations.
[0004] The main drawback of current server fan cooling methods is that they cannot respond promptly and accurately to temperature rises caused by sudden changes in load power consumption. When the power consumption of critical components suddenly increases, the heat dissipation of critical components increases sharply. The fan speed adjustment behavior lags behind the speed of heat accumulation, causing the temperature of critical components to quickly exceed the high speed threshold. The fan speed will be adjusted drastically, resulting in high fan noise and high power consumption. After the fan overshoots, it will switch back to low speed, causing fan speed oscillation. The energy consumed by the fan in total is greater than when the fan maintains a steady speed, resulting in low overall fan energy efficiency. Summary of the Invention
[0005] To address the problems of high fan noise and high power consumption caused by drastic adjustments to fan speed in response to sudden power consumption fluctuations in existing technologies, this invention provides a method, system, terminal, and storage medium for stable fan speed control, thereby solving the aforementioned technical problems.
[0006] In a first aspect, the present invention provides a method for smoothly controlling the speed of a fan, comprising:
[0007] The correspondence between the fan and key components is established based on their location distances.
[0008] Collect data on the power consumption of key components and the system power consumption, as well as ambient temperature and the temperature of key components;
[0009] A power consumption speed level mapping strategy is pre-set, and the first fan speed corresponding to the power consumption of key components and ambient temperature is calculated based on the strategy according to the power consumption of key components and system power consumption.
[0010] The second fan speed is generated based on the temperature of key components and temperature control strategies;
[0011] Set the weighted sum of the first speed and the second speed as the fan speed.
[0012] In an optional implementation, the correspondence between the fan and the critical component is set based on the positional distance between the fan and the critical component:
[0013] The server's internal space is divided into multiple areas;
[0014] Determine the fan's heat dissipation area based on the fan's airflow direction and location;
[0015] The fan's cooling area is set to have a corresponding weight relationship with the fan based on the deviation between the fan's cooling area and the area where the key components are located.
[0016] In an optional implementation, a power consumption speed level mapping strategy is set, including:
[0017] Set the power consumption level of key components, the system power consumption level, and the ambient temperature and temperature level of key components;
[0018] The server is monitored to be in a stable state, and the fluctuation values of the power consumption of key components, system power consumption, ambient temperature, key component temperature and fan speed of the server in the stable state do not exceed the set fluctuation threshold.
[0019] The analysis includes the power consumption of key components, the power consumption of the system, and the ambient temperature under steady-state conditions, as well as the fan speed corresponding to the key components.
[0020] The mapping relationship between the power consumption level of key components, the power consumption level of the system, the ambient temperature level, and the maximum speed of the corresponding fan is solidified into a power consumption speed level mapping strategy.
[0021] The confidence level of the mapping relationship is set based on the number of successful verifications of the power consumption speed gear mapping strategy.
[0022] In an optional implementation, the second fan speed is generated based on the temperature of key components and a temperature control strategy, including:
[0023] The theoretical rotational speed corresponding to the temperature of key components is calculated using the existing BMC control strategy.
[0024] Determine if the fan corresponds to multiple key components:
[0025] If so, the maximum speed is selected from the theoretical speeds of multiple key components as the second speed of the fan;
[0026] If not, the theoretical speed calculated based on the temperature of the corresponding key component will be set as the second speed of the fan.
[0027] In an optional implementation, the weighted sum of the first speed and the second speed is set as the fan speed, including:
[0028] A first weight is set for the first rotational speed based on the confidence level of the mapping relationship used to generate the first rotational speed.
[0029] A second weight for the second rotational speed is set based on the first weight, and the sum of the first weight and the second weight is 1;
[0030] The fan speed is obtained by calculating the weighted sum of the first speed and the second speed based on the first weight and the second weight;
[0031] The fan speed is sent to the controller of the corresponding fan.
[0032] In an optional implementation, the method further includes, before setting the weighted sum of the first speed and the second speed as the fan speed:
[0033] Calculate the product of the first rotational speed and the first weight;
[0034] Determine whether the second rotational speed exceeds the product:
[0035] If so, then the weighted sum of the first speed and the second speed is set as the fan speed;
[0036] If not, then the product is set to the fan speed.
[0037] In an optional implementation, after setting the weighted sum of the first speed and the second speed as the fan speed, the method further includes:
[0038] Continuously monitor fluctuations in the power consumption of key server components, system power consumption, ambient temperature, key component temperature, and fan speed.
[0039] Confirm that the fluctuation values do not exceed the fluctuation threshold, and analyze the current key component power consumption, system power consumption, and ambient temperature corresponding to the key component power consumption level, system power consumption level, and ambient temperature level.
[0040] The power consumption levels of key components, system power consumption levels, ambient temperature levels, and current fan speed are used as the verification mapping relationship;
[0041] Determine whether the power consumption speed level mapping strategy contains a target mapping relationship that matches the verification mapping relationship for the power consumption level of key components, the system power consumption level, and the ambient temperature level.
[0042] If so, increment the confidence level of the target mapping relationship by 1, and compare the fan speed in the verification mapping relationship with that in the target mapping relationship. If they are consistent, the non-fan speed in the target mapping relationship remains unchanged. If they are inconsistent, take a weighted average of the fan speed in the verification mapping relationship and the fan speed in the target mapping relationship and update the fan speed in the target mapping relationship.
[0043] If not, the verification mapping relationship is saved as a new mapping relationship for the power consumption speed gear mapping strategy.
[0044] In a second aspect, the present invention provides a fan speed stabilization control system, comprising:
[0045] The relationship setting module is used to set the correspondence between the fan and key components based on their positional distance.
[0046] The parameter acquisition module is used to collect power consumption of key components, system power consumption, ambient temperature, and temperature of key components.
[0047] The first calculation module is used to pre-set a power consumption speed level mapping strategy, and calculate the first fan speed corresponding to the power consumption of key components and the ambient temperature based on the strategy, according to the power consumption of key components and the system power consumption.
[0048] The second calculation module is used to generate the second fan speed based on the temperature of key components and temperature control strategies.
[0049] The third calculation module is used to set the weighted sum of the first speed and the second speed as the fan speed.
[0050] In an optional implementation, the relationship setting module includes:
[0051] A region partitioning unit is used to divide the internal space of a server into multiple regions;
[0052] The heat dissipation area acquisition unit is used to acquire the heat dissipation area of the fan based on the fan's airflow direction and position.
[0053] The region matching unit is used to set a weighted relationship with the fan based on the deviation between the fan heat dissipation area and the area where the key components are located.
[0054] In an optional implementation, a power consumption speed level mapping strategy is set, including:
[0055] Set the power consumption level of key components, the system power consumption level, and the ambient temperature and temperature level of key components;
[0056] The server is monitored to be in a stable state, and the fluctuation values of the power consumption of key components, system power consumption, ambient temperature, key component temperature and fan speed of the server in the stable state do not exceed the set fluctuation threshold.
[0057] The analysis includes the power consumption of key components, the power consumption of the system, and the ambient temperature under steady-state conditions, as well as the fan speed corresponding to the key components.
[0058] The mapping relationship between the power consumption level of key components, the power consumption level of the system, the ambient temperature level, and the maximum speed of the corresponding fan is solidified into a power consumption speed level mapping strategy.
[0059] The confidence level of the mapping relationship is set based on the number of successful verifications of the power consumption speed gear mapping strategy.
[0060] In an optional implementation, the second computing module includes:
[0061] The temperature calculation unit is used to calculate the theoretical rotational speed corresponding to the temperature of key components using the original BMC control strategy.
[0062] The quantity determination unit is used to determine whether the fan corresponds to multiple key components;
[0063] The second speed filtering unit is used to filter the maximum speed from the theoretical speeds of multiple key components if the fan corresponds to multiple key components, and use the maximum speed as the second speed of the fan.
[0064] The second speed setting unit is used to set the theoretical speed calculated based on the temperature of the corresponding key components as the second speed of the fan if the fan does not correspond to multiple key components.
[0065] In an optional implementation, the third computing module includes:
[0066] The first weight calculation unit is used to set a first weight for the first rotational speed based on the confidence level of the mapping relationship used to generate the first rotational speed.
[0067] The second weight calculation unit is used to set a second weight for the second rotational speed based on the first weight, wherein the sum of the first weight and the second weight is 1;
[0068] The weighted speed calculation unit is used to calculate the weighted sum of the first speed and the second speed based on the first weight and the second weight to obtain the fan speed;
[0069] The speed transmission unit is used to transmit the fan speed to the controller of the corresponding fan.
[0070] In an optional implementation, the system further includes:
[0071] The product calculation module is used to calculate the product of the first rotational speed and the first weight;
[0072] A speed comparison module is used to determine whether the second speed exceeds the product;
[0073] A weighted summation module is used to set the weighted sum of the first speed and the second speed as the fan speed if the second speed exceeds the product.
[0074] The product setting module is used to set the product to the fan speed if no.
[0075] In an optional implementation, the system further includes:
[0076] The status monitoring module is used to continuously monitor the fluctuations in power consumption of key server components, system power consumption, ambient temperature, key component temperature, and fan speed.
[0077] The parameter parsing module is used to confirm that the fluctuation values do not exceed the fluctuation threshold, and to parse the current key component power consumption, system power consumption, and ambient temperature corresponding to the key component power consumption level, system power consumption level, and ambient temperature level.
[0078] The verification generation module is used to map the power consumption level of key components, the power consumption level of the system, the ambient temperature level, and the current fan speed as a verification relationship.
[0079] The mapping matching module is used to determine whether there is a target mapping relationship in the power consumption speed level mapping strategy that is consistent with the verification mapping relationship in terms of the power consumption level of key components, the power consumption level of the system, and the ambient temperature level.
[0080] The mapping verification module is used to increment the confidence level of the target mapping relationship by 1 if there is a target mapping relationship in the power consumption speed level mapping strategy that is consistent with the power consumption level of key components, the power consumption level of the system, and the ambient temperature level. The module compares the fan speed in the verification mapping relationship with that in the target mapping relationship. If the two are consistent, the non-fan speed in the target mapping relationship remains unchanged. If the two are inconsistent, the fan speed in the target mapping relationship is updated by taking a weighted average of the fan speed in the verification mapping relationship and the fan speed in the target mapping relationship.
[0081] The mapping update module is used to save the verification mapping relationship as a new mapping relationship for the power consumption speed level mapping strategy if there is no target mapping relationship in the power consumption speed level mapping strategy that matches the power consumption level of key components, system power consumption level, and ambient temperature level.
[0082] Thirdly, a terminal is provided, including:
[0083] Processor, memory, among which,
[0084] This memory is used to store computer programs.
[0085] The processor is used to retrieve and run the computer program from memory, causing the terminal to perform the terminal method described above.
[0086] Fourthly, a computer storage medium is provided, wherein instructions are stored therein, which, when executed on a computer, cause the computer to perform the methods described in the above aspects.
[0087] The beneficial effects of this invention are as follows: The fan speed smooth control method, system, terminal, and storage medium provided by this invention calculate the corresponding fan speed based on power consumption and temperature respectively, and then set the weighted sum of the two fan speeds as the actual fan speed. In this way, both power consumption and temperature are used as control factors for the fan. On the basis of the existing temperature-based fan speed control method, a fan speed control method based on key power consumption and current is added. By accumulating and iteratively updating the historical working state of the current server, the fan speed at different locations under different key component or system-level power consumption and current under different ambient temperature conditions is statistically analyzed. A mapping table of power consumption and current to fan speed is established. When power consumption and current change abruptly, it is ensured that the server fan speed will not deviate too much from the mapping value, reducing the possibility of drastic changes in server temperature and speed. Moreover, with the long-term operation of the server, the fan speed predicted based on power consumption and current can become more and more accurate, achieving the goal of the server becoming more and more energy-efficient over time.
[0088] This invention improves the control accuracy of fan speed by setting a correspondence between fans and key components and detecting the temperature and power consumption of key components to achieve independent control of different fans.
[0089] This invention monitors the stable state of the server and collects parameters related to heat dissipation control under stable conditions. It then sets a confidence level for the mapping relationship in the power consumption speed level mapping strategy, thereby continuously updating the strategy. At the same time, it converts the confidence level of the mapping relationship into a weight of the fan speed based on power consumption calculation, thereby effectively reducing the adverse effects of the error of the fan speed based on power consumption prediction on the overall control.
[0090] Furthermore, the design principle of this invention is reliable, the structure is simple, and it has a very wide range of application prospects. Attached Figure Description
[0091] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0092] Figure 1This is a schematic flowchart of a method according to an embodiment of the present invention.
[0093] Figure 2 This is another illustrative flowchart of a method according to an embodiment of the present invention.
[0094] Figure 3 This is a flowchart illustrating the generation process of a power consumption speed gear mapping strategy according to an embodiment of the present invention.
[0095] Figure 4 This is a schematic block diagram of a system according to an embodiment of the present invention.
[0096] Figure 5 This is a schematic diagram of the structure of a terminal provided in an embodiment of the present invention. Detailed Implementation
[0097] To enable those skilled in the art to better understand the technical solutions of this invention, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this invention.
[0098] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
[0099] The key terms used in this invention will be explained below.
[0100] BMC, short for Baseboard Management Controller, is a remote server management controller. It allows for operations such as firmware upgrades and device monitoring even when the machine is not powered on. Fully implementing IPMI functionality in a BMC requires a powerful 16-bit or 32-bit microcontroller, RAM for data storage, flash memory for non-volatile data storage, and firmware. It provides basic remote manageability for secure remote reboots, secure power-on, LAN alerts, and system health monitoring. In addition to basic IPMI and system monitoring functions, the mBMC can also enable fast BIOS component selection and protection by utilizing one of the two flash memories to store the previous BIOS. For example, if the system fails to boot after a remote BIOS upgrade, remote administrators can switch back to the previous BIOS image to boot the system. Once the BIOS is upgraded, the BIOS image can also be locked to effectively prevent virus attacks.
[0101] The fan speed smooth control method provided in this embodiment of the invention is executed by a computer device, and correspondingly, the fan speed smooth control system runs in the computer device.
[0102] Figure 1 This is a schematic flowchart illustrating a method according to an embodiment of the present invention. Wherein, Figure 1 The implementing entity can be a fan speed regulation system. Depending on different requirements, the order of steps in this flowchart can be changed, and some steps can be omitted.
[0103] like Figure 1 As shown, the method includes:
[0104] Step 110: Set the correspondence between the fan and the key components based on their positional distances;
[0105] Step 120: Collect data on the power consumption of key components and the system power consumption, as well as the ambient temperature and the temperature of key components;
[0106] Step 130: Pre-set the power consumption speed level mapping strategy, and calculate the first speed of the fan corresponding to the power consumption of the key components based on the strategy and the power consumption of the system.
[0107] Step 140: Generate the second fan speed based on the temperature of key components and the temperature control strategy;
[0108] Step 150: Set the weighted sum of the first speed and the second speed as the fan speed.
[0109] To facilitate understanding of the present invention, the following description further illustrates the fan speed smooth control method provided by the present invention, based on the principle of the fan speed smooth control method and the process of smooth control of fan speed in the embodiments.
[0110] For details, please refer to Figure 2 Methods for smoothly controlling fan speed include:
[0111] S1. Set the correspondence between the fan and key components based on the positional distance between the fan and key components.
[0112] The server's internal space is divided into multiple areas; the fan's heat dissipation area is determined based on the fan's airflow direction and location; key components located in the same area as the fan's heat dissipation area are configured to correspond to the fan.
[0113] Specifically, the user inputs the correspondence between fans and key components. For example, the service has several temperature detection points, and the detected temperature is used to adjust the fan speed. The system inputs temperature detection points Tin, Ta, Tb, Tc, Td, etc., where Ta, Tb, and Tc are located on key components A, B, and C, respectively. Key components A and B support power consumption and current detection (power consumption and current information can be converted to each other; the following description will unify it to power consumption information). For example, key CPU components and key GPU components have power consumption detection points Pa and Pb. There is also system power consumption detection. The system also has several fans, denoted as fans A, B, C, etc., with fan speeds Fa, Fb, Fc, etc. Fan A corresponds to key component A, and fan B corresponds to key component B.
[0114] S2. Collect power consumption of key components, system power consumption, and temperature of key components.
[0115] Temperature and current sensors are installed on key components. All sensors are connected to the BMC (Body Control Controller). The BMC acquires the temperature and current of the key components, calculates the product of the current and the standard voltage to obtain the power consumption. At the same time, the total power consumption is obtained by multiplying the server's total current and the standard voltage. The power consumption of the fans is also calculated separately to obtain the total fan power consumption. The difference between the total power consumption and the total fan power consumption is taken as the system power consumption.
[0116] S3. Pre-set a power consumption speed level mapping strategy, and calculate the first speed of the fan corresponding to the power consumption of the key components based on the strategy and the power consumption of the system.
[0117] The method for setting a power consumption and fan speed level mapping strategy includes: setting a power consumption level, a system power consumption level, and a temperature level for key components; monitoring that the server is in a stable state, wherein the fluctuation values of the power consumption of key components, the system power consumption, the temperature of key components, and the fan speed of the server in the stable state do not exceed a set fluctuation threshold; parsing the power consumption of key components, the system power consumption, and the temperature of key components in the stable state to their respective key component power consumption level, system power consumption level, and key component temperature level, as well as the fan speed corresponding to the key component; solidifying the mapping relationship between the power consumption level of key components, the system power consumption level, the temperature level of key components, and the maximum speed of the corresponding fan into a power consumption and fan speed level mapping strategy; and setting the confidence level of the mapping relationship based on the number of times the power consumption and fan speed level mapping strategy passes verification.
[0118] Specifically, such as Figure 3 As shown, the system periodically detects the speed of each fan, the power consumption of each key component, the system power consumption excluding the fans, the input temperature, and the process parameters of the fan speed control algorithm. The system power consumption excluding the fans is the remaining power consumption after subtracting the read fan power consumption from the read system power consumption, denoted as Psys. When the power consumption of each key component, the system power consumption excluding the fans, and the input temperature remain unchanged or change within a similar range after multiple consecutive reads, the power consumption of the key components / system and the input temperature can be identified and recorded in a graded manner, and appropriate jitter filtering is performed. Multiplying the number of reads by the time interval can ensure that the system environment and load power consumption remain unchanged within a certain period of time, and the server temperature and fan speed are initially stabilized. At this time, the correlation between each fan speed and the power consumption of each key component, the system power consumption, and the input temperature is recorded. When the fan speed of fan A is identified as being taken from temperature detection point N, where the maximum value among Faa, Fab, and Fain is FaN, if a critical component power consumption detection point Pn exists at point N, the control mapping relationship between the input temperature Tin, critical component power consumption Pn, and fan speed Fa is recorded. If no critical component power consumption detection point exists at point N, the system power consumption Psys (excluding the fan) is recorded, along with the control mapping relationship level of Tin, Psys, and Fa at this time. Similarly, for fan B, the control mapping relationship level of Tin, Pm, and Fb is recorded. Finally, a control mapping relationship table is established, corresponding to the fan speed, critical component / system power consumption, and input temperature. This mapping relationship table represents the power consumption and speed level mapping strategy.
[0119] In the fan speed control method based on the power consumption and current of key components, the current input temperature, the power consumption of each key component, and the power consumption of the system excluding the fan are periodically retrieved (and filtered). The control mapping relationship table of input temperature, power consumption of key components / system, and fan speed is retrieved. Multiple control mapping relationship levels are matched, and multiple different speed values of different fans are brought out. For each fan, the maximum speed value among multiple values is taken to obtain the expected control speed of the fan based on the power consumption of key components, which is recorded as the first speed.
[0120] S4. Generate the second fan speed based on ambient temperature, key component temperature, and temperature control strategy.
[0121] The theoretical speed corresponding to the temperature of the key component is calculated using the original BMC control strategy; it is then determined whether the fan corresponds to multiple key components: if so, the maximum speed is selected from the theoretical speeds of multiple key components as the second speed of the fan; if not, the theoretical speed calculated based on the temperature of the corresponding key component is set as the second speed of the fan.
[0122] Specifically, the out-of-band management system periodically detects Ta, Tb, Tin, etc., and derives the corresponding fan speeds accordingly. Ta corresponds to Faa, Fba, Fca; Tb corresponds to Fab, Fbb, Fcb; and Tin corresponds to Fain, Fbin, Fcin. The final fan speed is the maximum value among the multiple corresponding speeds, such as Fa being the maximum value among Faa, Fab, and Fain.
[0123] S5. Set the weighted sum of the first speed and the second speed as the fan speed.
[0124] A first weight is set for the first speed based on the confidence level of the mapping relationship that generates the first speed; a second weight is set for the second speed based on the first weight, and the sum of the first weight and the second weight is 1; a weighted sum of the first speed and the second speed is calculated based on the first weight and the second weight to obtain the fan speed; and the fan speed is sent to the controller of the corresponding fan.
[0125] When setting the first weight based on confidence level, assuming the maximum confidence level is 10 and the current confidence level is 2, then the first weight is 2 ÷ 10 = 0.2, and the second weight is 0.8.
[0126] In addition, before performing the enhanced summation of fan speeds, the product of the first speed and the first weight is calculated; it is determined whether the second speed exceeds the product: if yes, the weighted sum of the first speed and the second speed is set as the fan speed; if no, the product is set as the fan speed.
[0127] Specifically, the expected control speed of the fan based on the power consumption of key components is obtained and compared with the fan speed value calculated by the fan speed control method based on temperature and zone. If the speed value of a single fan based on temperature is lower than x% of the expected speed value based on the power consumption of key components, then the speed of this fan is set to x% of the expected speed value based on the power consumption of key components, or a weighted average of the speed value based on temperature and the expected speed value based on the power consumption of key components is performed using other methods. For different components or component-level / system-level expected speed values based on power consumption, different x% or weighted average algorithms can be selected. The expected threshold or weighted average algorithm for the power consumption of key components (x%) can be adjusted based on the confidence weight value of the corresponding control mapping level. When the confidence level is low (i.e., the number of recorded samples is small), x% should be far from 100%, or the weighted average algorithm should be far from the expected speed value based on the power consumption of key components. When the confidence level is high (i.e., the number of repeated recorded samples is large), x% can be close to 100%, or the weighted average algorithm should be close to the expected speed value based on the power consumption of key components. This ensures that the longer the running time, the more accurate the expected fan speed based on the power consumption of key components, and the higher the proportion of control based on the power consumption of key components, the more accurate the fan control. When the system undergoes significant configuration changes that affect the system's heat dissipation control, the confidence level and control mapping table can be cleared and re-recorded.
[0128] S6. Update the power consumption and speed gear mapping strategy.
[0129] Continuously monitor the fluctuations in power consumption of key server components, system power consumption, key component temperature, and fan speed; confirm that the fluctuation values do not exceed the fluctuation threshold, and analyze the key component power consumption level, system power consumption level, and key component temperature level corresponding to the current key component power consumption, system power consumption, and key component temperature; use the key component power consumption level, system power consumption level, and key component temperature level and the current fan speed as a verification mapping relationship; determine whether there is a target mapping relationship in the power consumption and speed level mapping strategy that matches the key component power consumption level, system power consumption level, and key component temperature level with the verification mapping relationship: if so, compare the consistency of the fan speed in the verification mapping relationship and the target mapping relationship; if they match, increment the confidence of the target mapping relationship by 1; if they do not match, decrement the confidence of the target mapping relationship by 1; if not, save the verification mapping relationship as a new mapping relationship for the power consumption and speed level mapping strategy.
[0130] This involves monitoring the server's stable state and using the power consumption, temperature, system power consumption, and corresponding fan speed of key components under stable server conditions as verification data for the power consumption and speed level mapping strategy. This allows for continuous updates to the power consumption and speed level mapping strategy, thereby improving the accuracy of fan speed control.
[0131] In some embodiments, the fan speed smoothing control system 400 may include multiple functional modules composed of computer program segments. The computer programs for each program segment in the fan speed smoothing control system 400 may be stored in the memory of a computer device and executed by at least one processor to perform (see details). Figure 1 (Description) The function of smoothly controlling the fan speed.
[0132] In this embodiment, the fan speed stabilization system 400 can be divided into multiple functional modules according to its functions, such as... Figure 4 As shown. The functional modules may include: a relationship setting module 410, a parameter acquisition module 420, a first calculation module 430, a second calculation module 440, and a third calculation module 450. The module referred to in this invention is a series of computer program segments that can be executed by at least one processor and perform a fixed function, and are stored in memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.
[0133] The relationship setting module 410 is used to set the correspondence between the fan and the key components based on the positional distance between the fan and the key components;
[0134] The parameter acquisition module 420 is used to acquire the power consumption of key components and the system power consumption, as well as the ambient temperature and the temperature of key components.
[0135] The first calculation module 430 is used to pre-set a power consumption speed level mapping strategy, and calculate the first speed of the fan corresponding to the power consumption of the key components based on the strategy and the power consumption of the system.
[0136] The second calculation module 440 is used to generate the second speed of the fan based on the ambient temperature, the temperature of key components and the temperature control strategy.
[0137] The third calculation module 450 is used to set the weighted sum of the first speed and the second speed as the fan speed.
[0138] Optionally, as an embodiment of the present invention, the relationship setting module includes:
[0139] A region partitioning unit is used to divide the internal space of a server into multiple regions;
[0140] The heat dissipation area acquisition unit is used to acquire the heat dissipation area of the fan based on the fan's airflow direction and position.
[0141] The region matching unit is used to set a weighted relationship with the fan based on the deviation between the fan heat dissipation area and the area where the key components are located.
[0142] Optionally, as an embodiment of the present invention, a power consumption speed level mapping strategy is set, including:
[0143] Set the power consumption level of key components, the system power consumption level, and the ambient temperature and temperature level of key components;
[0144] The server is monitored to be in a stable state, and the fluctuation values of the power consumption of key components, system power consumption, ambient temperature, key component temperature and fan speed of the server in the stable state do not exceed the set fluctuation threshold.
[0145] The analysis includes the power consumption of key components, the power consumption of the system, and the ambient temperature under steady-state conditions, as well as the fan speed corresponding to the key components.
[0146] The mapping relationship between the power consumption level of key components, the power consumption level of the system, the ambient temperature level, and the maximum speed of the corresponding fan is solidified into a power consumption speed level mapping strategy.
[0147] The confidence level of the mapping relationship is set based on the number of successful verifications of the power consumption speed gear mapping strategy.
[0148] Optionally, as an embodiment of the present invention, the second calculation module includes:
[0149] The temperature calculation unit is used to calculate the theoretical rotational speed corresponding to the temperature of key components using the original BMC control strategy.
[0150] The quantity determination unit is used to determine whether the fan corresponds to multiple key components;
[0151] The second speed filtering unit is used to filter the maximum speed from the theoretical speeds of multiple key components if the fan corresponds to multiple key components, and use the maximum speed as the second speed of the fan.
[0152] The second speed setting unit is used to set the theoretical speed calculated based on the temperature of the corresponding key components as the second speed of the fan if the fan does not correspond to multiple key components.
[0153] Optionally, as an embodiment of the present invention, the third calculation module includes:
[0154] The first weight calculation unit is used to set a first weight for the first rotational speed based on the confidence level of the mapping relationship used to generate the first rotational speed.
[0155] The second weight calculation unit is used to set a second weight for the second rotational speed based on the first weight, wherein the sum of the first weight and the second weight is 1;
[0156] The weighted speed calculation unit is used to calculate the weighted sum of the first speed and the second speed based on the first weight and the second weight to obtain the fan speed;
[0157] The speed transmission unit is used to transmit the fan speed to the controller of the corresponding fan.
[0158] Optionally, as an embodiment of the present invention, the system further includes:
[0159] The product calculation module is used to calculate the product of the first rotational speed and the first weight;
[0160] A speed comparison module is used to determine whether the second speed exceeds the product;
[0161] A weighted summation module is used to set the weighted sum of the first speed and the second speed as the fan speed if the second speed exceeds the product.
[0162] The product setting module is used to set the product to the fan speed if no.
[0163] Optionally, as an embodiment of the present invention, the system further includes:
[0164] The status monitoring module is used to continuously monitor the fluctuations in power consumption of key server components, system power consumption, ambient temperature, key component temperature, and fan speed.
[0165] The parameter parsing module is used to confirm that the fluctuation values do not exceed the fluctuation threshold, and to parse the current key component power consumption, system power consumption, and ambient temperature corresponding to the key component power consumption level, system power consumption level, and ambient temperature level.
[0166] The verification generation module is used to map the power consumption level of key components, the power consumption level of the system, the ambient temperature level, and the current fan speed as a verification relationship.
[0167] The mapping matching module is used to determine whether there is a target mapping relationship in the power consumption speed level mapping strategy that is consistent with the verification mapping relationship in terms of the power consumption level of key components, the power consumption level of the system, and the ambient temperature level.
[0168] The mapping verification module is used to increment the confidence level of the target mapping relationship by 1 if there is a target mapping relationship in the power consumption speed level mapping strategy that is consistent with the power consumption level of key components, the power consumption level of the system, and the ambient temperature level. The module compares the fan speed in the verification mapping relationship with that in the target mapping relationship. If the two are consistent, the non-fan speed in the target mapping relationship remains unchanged. If the two are inconsistent, the fan speed in the target mapping relationship is updated by taking a weighted average of the fan speed in the verification mapping relationship and the fan speed in the target mapping relationship.
[0169] The mapping update module is used to save the verification mapping relationship as a new mapping relationship for the power consumption speed level mapping strategy if there is no target mapping relationship in the power consumption speed level mapping strategy that matches the power consumption level of key components, system power consumption level, and ambient temperature level.
[0170] Figure 5 This is a schematic diagram of a terminal 500 provided in an embodiment of the present invention. The terminal 500 can be used to execute the fan speed smooth control method provided in the embodiment of the present invention.
[0171] The terminal 500 may include a processor 510, a memory 520, and a communication module 530. These components communicate via one or more buses. Those skilled in the art will understand that the server structure shown in the figure does not constitute a limitation of the present invention. It may be a bus topology or a star topology, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0172] The memory 520 can be used to store the execution instructions of the processor 510. The memory 520 can be implemented using any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. When the execution instructions in the memory 520 are executed by the processor 510, the terminal 500 is able to perform some or all of the steps in the above method embodiments.
[0173] The processor 510 serves as the control center of the storage terminal, connecting various parts of the electronic terminal via various interfaces and lines. It executes software programs and / or modules stored in the memory 520, and calls data stored in the memory to perform various functions of the electronic terminal and / or process data. The processor can be composed of integrated circuits (ICs), such as a single packaged IC or multiple packaged ICs with the same or different functions connected together. For example, the processor 510 may consist only of a central processing unit (CPU). In this embodiment of the invention, the CPU may have a single processing core or include multiple processing cores.
[0174] The communication module 530 is used to establish a communication channel, enabling the storage terminal to communicate with other terminals. It receives user data sent by other terminals or sends user data to other terminals.
[0175] The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, which, when executed, may include some or all of the steps provided in the embodiments of the present invention. The storage medium may be a magnetic disk, an optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0176] Therefore, this invention calculates the corresponding fan speed based on power consumption and temperature respectively, and then sets the weighted sum of the two fan speeds as the actual fan speed. In this way, both power consumption and temperature are used as control factors for the fan. On the basis of the existing temperature-based fan speed control method, a fan speed control method based on key power consumption and current is added. By accumulating and iteratively updating the historical working state of the current server, the fan speed at different locations under different key component or system-level power consumption and current under different ambient temperature conditions is statistically analyzed. A mapping table of power consumption and current to fan speed is established. When power consumption and current change abruptly, it is ensured that the server fan speed will not deviate too much from the mapping value, reducing the possibility of drastic changes in server temperature and speed. Moreover, with the long-term operation of the server, the fan speed predicted based on power consumption and current can become more and more accurate, achieving the goal of the server becoming more and more energy-efficient over time. The technical effects achieved by this embodiment can be referred to in the description above, and will not be repeated here.
[0177] Those skilled in the art will clearly understand that the techniques in the embodiments of the present invention can be implemented using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of the present invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, or any other medium capable of storing program code. It includes several instructions to cause a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
[0178] The same or similar parts between the various embodiments in this specification can be referred to mutually. In particular, the terminal embodiments are basically similar to the method embodiments, so the description is relatively simple, and the relevant parts can be referred to the description in the method embodiments.
[0179] In the embodiments provided by this invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between systems or modules may be electrical, mechanical, or other forms.
[0180] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0181] In addition, the functional modules in the various embodiments of the present invention can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module.
[0182] Although the present invention has been described in detail with reference to the accompanying drawings and preferred embodiments, the invention is not limited thereto. Various equivalent modifications or substitutions can be made to the embodiments of the invention by those skilled in the art without departing from the spirit and essence of the invention, and such modifications or substitutions should all be within the scope of the invention. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the invention should also be covered within the protection scope of the invention. Therefore, the protection scope of the invention should be determined by the scope of the claims.
Claims
1. A method for smoothly controlling fan speed, characterized in that, include: The correspondence between the fan and key components is established based on their location distances. Collect data on the power consumption of key components and the system power consumption, as well as ambient temperature and the temperature of key components; A power consumption speed level mapping strategy is pre-set, and the first fan speed corresponding to the power consumption of key components and ambient temperature is calculated based on the strategy according to the power consumption of key components and system power consumption. The second fan speed is generated based on the temperature of key components and temperature control strategies; Set the weighted sum of the first speed and the second speed as the fan speed; The system power consumption calculation method includes: calculating the product of the server's total current and the standard voltage to obtain the total power consumption, calculating the power consumption of the fans to obtain the total fan power consumption, and taking the difference between the total power consumption and the total fan power consumption as the system power consumption. Configure the power consumption and RPM level mapping strategy, including: Set the power consumption level of key components, the system power consumption level, and the ambient temperature and temperature level of key components; The server is monitored to be in a stable state, and the fluctuation values of the power consumption of key components, system power consumption, ambient temperature, key component temperature and fan speed of the server in the stable state do not exceed the set fluctuation threshold. The analysis includes the power consumption of key components, the power consumption of the system, and the ambient temperature under steady-state conditions, as well as the fan speed corresponding to the key components. The mapping relationship between the power consumption level of key components, the power consumption level of the system, the ambient temperature level, and the maximum speed of the corresponding fan is solidified into a power consumption speed level mapping strategy. The confidence level of the mapping relationship is set based on the number of times the power consumption speed level mapping strategy passes verification. The weighted sum of the first speed and the second speed is set as the fan speed, including: A first weight is set for the first rotational speed based on the confidence level of the mapping relationship used to generate the first rotational speed. A second weight for the second rotational speed is set based on the first weight, and the sum of the first weight and the second weight is 1; The fan speed is obtained by calculating the weighted sum of the first speed and the second speed based on the first weight and the second weight; The fan speed is sent to the controller of the corresponding fan.
2. The method according to claim 1, characterized in that, The correspondence between the fan and key components is established based on their location distances. The server's internal space is divided into multiple areas; Determine the fan's heat dissipation area based on the fan's airflow direction and location; The fan's cooling area is set to have a corresponding weight relationship with the fan based on the deviation between the fan's cooling area and the area where the key components are located.
3. The method according to claim 1, characterized in that, The second fan speed is generated based on the temperature of key components and temperature control strategies, including: The theoretical rotational speed corresponding to the temperature of key components is calculated using the existing BMC control strategy. Determine if the fan corresponds to multiple key components: If so, the maximum speed is selected from the theoretical speeds of multiple key components as the second speed of the fan; If not, the theoretical speed calculated based on the temperature of the corresponding key component will be set as the second speed of the fan.
4. The method according to claim 1, characterized in that, Before setting the weighted sum of the first speed and the second speed as the fan speed, the method further includes: Calculate the product of the first rotational speed and the first weight; Determine whether the second rotational speed exceeds the product: If so, then the weighted sum of the first speed and the second speed is set as the fan speed; If not, then the product is set to the fan speed.
5. The method according to claim 1, characterized in that, After setting the weighted sum of the first speed and the second speed as the fan speed, the method further includes: Continuously monitor fluctuations in the power consumption of key server components, system power consumption, ambient temperature, key component temperature, and fan speed. Confirm that the fluctuation values do not exceed the fluctuation threshold, and analyze the current key component power consumption, system power consumption, and ambient temperature corresponding to the key component power consumption level, system power consumption level, and ambient temperature level. The power consumption levels of key components, system power consumption levels, ambient temperature levels, and current fan speed are used as the verification mapping relationship; Determine whether the power consumption speed level mapping strategy contains a target mapping relationship that matches the verification mapping relationship for the power consumption level of key components, the system power consumption level, and the ambient temperature level. If so, increment the confidence level of the target mapping relationship by 1, and compare the fan speed in the verification mapping relationship with that in the target mapping relationship. If they are consistent, the fan speed in the target mapping relationship remains unchanged. If they are inconsistent, take a weighted average of the fan speed in the verification mapping relationship and the fan speed in the target mapping relationship and update the fan speed in the target mapping relationship. If not, the verification mapping relationship is saved as a new mapping relationship for the power consumption speed gear mapping strategy.
6. A fan speed smoothing control system, characterized in that, include: The relationship setting module is used to set the correspondence between the fan and key components based on their positional distance. The parameter acquisition module is used to collect power consumption of key components, system power consumption, ambient temperature, and temperature of key components. The first calculation module is used to pre-set a power consumption speed level mapping strategy, and calculate the first fan speed corresponding to the power consumption of the key components based on the strategy, the power consumption of the system, and the ambient temperature. The second calculation module is used to generate the second fan speed based on the temperature of key components and temperature control strategies. The third calculation module is used to set the weighted sum of the first speed and the second speed as the fan speed; The system power consumption calculation method includes: calculating the product of the server's total current and the standard voltage to obtain the total power consumption, calculating the power consumption of the fans to obtain the total fan power consumption, and taking the difference between the total power consumption and the total fan power consumption as the system power consumption. Configure the power consumption and RPM level mapping strategy, including: Set the power consumption level of key components, the system power consumption level, and the ambient temperature and temperature level of key components; The server is monitored to be in a stable state, and the fluctuation values of the power consumption of key components, system power consumption, ambient temperature, key component temperature and fan speed of the server in the stable state do not exceed the set fluctuation threshold. The analysis includes the power consumption of key components, the power consumption of the system, and the ambient temperature under steady-state conditions, as well as the fan speed corresponding to the key components. The mapping relationship between the power consumption level of key components, the power consumption level of the system, the ambient temperature level, and the maximum speed of the corresponding fan is solidified into a power consumption speed level mapping strategy. The confidence level of the mapping relationship is set based on the number of times the power consumption speed level mapping strategy passes verification. The weighted sum of the first speed and the second speed is set as the fan speed, including: A first weight is set for the first rotational speed based on the confidence level of the mapping relationship used to generate the first rotational speed. A second weight for the second rotational speed is set based on the first weight, and the sum of the first weight and the second weight is 1; The fan speed is obtained by calculating the weighted sum of the first speed and the second speed based on the first weight and the second weight; The fan speed is sent to the controller of the corresponding fan.
7. A terminal, characterized in that, include: Memory, used to store the fan speed regulation program; The processor is configured to implement the steps of the fan speed smoothing control method as described in any one of claims 1-5 when executing the fan speed smoothing control program.
8. A computer-readable storage medium storing a computer program, characterized in that, The readable storage medium stores a fan speed stabilization program, which, when executed by a processor, implements the steps of the fan speed stabilization method as described in any one of claims 1-5.
Citation Information
Patent Citations
Heat dissipation power consumption optimization regulation and control method compatible with environment temperature speed regulation
CN104571439A
Area detection control method for temperature of server mainboard
CN104635797A