A server fan control method and electronic device
By acquiring the server's air pressure, current, and temperature values, adjusting their weights, and querying the fan speed configuration table, the problem of inaccurate fan speed adjustment was solved, ensuring good heat dissipation for the server under various operating conditions and improving the heat dissipation effect.
Patent Information
- Application Number
- CN202511262078.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-05
- Publication Date
- 2025-11-14
- Estimated Expiration
- 2045-09-05
AI Technical Summary
Existing server fan control methods suffer from low precision in fan speed adjustment, leading to energy waste under low load and inadequate heat dissipation under high load.
By acquiring the air pressure, current, and temperature values of the server environment, adjusting their respective weights, and querying the fan speed configuration table for a matching fan control strategy, the fan speed is precisely adjusted.
It achieves precise matching between fan speed and server heat dissipation requirements, improving the server's heat dissipation performance under various operating conditions and avoiding energy waste and equipment overheating.
Smart Images

Figure CN120743071B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of hardware testing technology, and in particular to a server fan control method and electronic device. Background Technology
[0002] During server operation, critical components such as the Central Processing Unit (CPU), Graphics Processing Unit (GPU), and memory continuously generate a significant amount of heat. If this heat cannot be dissipated in time, it will cause the component temperatures to rise, thereby reducing device performance and even causing hardware damage. Currently, most servers employ a fan control strategy based on temperature sensor feedback. This involves using temperature sensors to monitor the temperature of critical components inside the server in real time. When the temperature exceeds a preset threshold, the fan speed increases to enhance heat dissipation; when the temperature decreases, the fan speed decreases accordingly.
[0003] This single temperature control strategy has significant drawbacks. Firstly, adjusting fan speed solely based on temperature fails to accurately reflect the server's actual cooling needs. For instance, in low-load scenarios, while server components generate heat, current consumption is low, resulting in minimal cooling requirements. Increasing fan speed based on a temperature threshold in such cases leads to unnecessary energy waste and increased operating costs. Secondly, when the server experiences a sudden surge in load, component current increases dramatically, causing a sharp rise in heat. However, due to the lag in temperature changes, the fan speed may not increase in time before the temperature reaches the threshold, potentially leading to performance degradation or malfunction due to rapid overheating.
[0004] It is evident that improving the accuracy of fan speed adjustment is a problem that needs to be solved by those skilled in the art. Summary of the Invention
[0005] This application provides a server fan control method and electronic device to at least solve the problem of low fan speed adjustment accuracy in related technologies.
[0006] This application provides a server fan control method, including:
[0007] Obtain the air pressure value of the server's environment, as well as the server's current and temperature values;
[0008] The weights of air pressure, current, and temperature are adjusted based on changes in air pressure, current, and temperature.
[0009] The target fan control strategy that matches the air pressure value, current value, temperature value and their respective weights is retrieved from the speed configuration table. The speed configuration table records the fan control strategies corresponding to different air pressure ranges, different current ranges and different temperature ranges under different weight configurations.
[0010] Adjust the server fan speed according to the target fan control strategy.
[0011] This application also provides a server fan control device, including an acquisition unit, a weight adjustment unit, a query unit, and a speed adjustment unit;
[0012] The acquisition unit is used to acquire the air pressure value of the environment where the server is located, as well as the current value and temperature value of the server;
[0013] The weighting adjustment unit is used to adjust the weights of the air pressure, current, and temperature values according to the changes in air pressure, current, and temperature values.
[0014] The query unit is used to query the target fan control strategy that matches the air pressure value, current value, temperature value and their respective weights from the speed configuration table; wherein, the speed configuration table records the fan control strategies corresponding to different air pressure ranges, different current ranges and different temperature ranges under different weight configurations.
[0015] The speed adjustment unit is used to adjust the server fan speed according to the target fan control strategy.
[0016] This application also provides an electronic device, including: a memory for storing a computer program; and a processor for executing the computer program to implement the steps of any of the above-described server fan control methods.
[0017] This application also provides a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of any of the above-described server fan control methods.
[0018] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of any of the above-described server fan control methods.
[0019] This application obtains the air pressure, current, and temperature values of the server's environment. Changes in these values reflect the server's operating conditions. The impact of air pressure, current, and temperature on heat dissipation requirements varies under different operating conditions. To achieve precise server heat dissipation, the weights of each air pressure, current, and temperature value can be adjusted based on changes in these values. To quickly and accurately adjust fan speeds, a fan speed configuration table can be pre-built. This table records the fan control strategies corresponding to different air pressure, current, and temperature ranges under different weight configurations. The target fan control strategy matching the air pressure, current, and temperature values and their respective weights can be queried from the fan speed configuration table. The server fan speed is then adjusted according to the target fan control strategy. In this application, by reasonably adjusting the weights of air pressure, current, and temperature values, the fan speed can be more accurately matched to the server's heat dissipation needs, ensuring the server maintains good heat dissipation under various operating conditions, thereby improving the heat dissipation effect. Attached Figure Description
[0020] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 A flowchart illustrating a server fan control method provided in this application embodiment;
[0022] Figure 2 A flowchart illustrating a method for adjusting the weights of air pressure, current, and temperature values, as provided in an embodiment of this application.
[0023] Figure 3 This is a schematic diagram of a server fan control device provided in an embodiment of this application. Detailed Implementation
[0024] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.
[0025] It should be noted that, in the description of this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. The terms "first," "second," etc., in this application are used to distinguish similar objects and are not used to describe a specific order or sequence.
[0026] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0027] Figure 1 A flowchart of a server fan control method provided in this application embodiment includes:
[0028] S101: Obtain the air pressure value of the server's environment, as well as the server's current value and temperature value.
[0029] Relying solely on temperature changes to adjust server fan speed often fails to accurately reflect the server's actual cooling needs. This can lead to insufficient cooling under high load conditions. Furthermore, a malfunctioning temperature sensor can directly impact server cooling. Therefore, this application proposes a scheme that comprehensively considers air pressure, temperature, and current values to control server fan speed.
[0030] In practical applications, a barometric pressure sensor can be used to obtain the barometric pressure value of the server's environment.
[0031] Temperature sensors are used to acquire the ambient temperature of the server and the internal temperature of the server. Considering the large number of components inside a server, in practical applications, the temperature of components that have a significant impact on heat dissipation can be collected, such as the CPU and motherboard. When adjusting server fan settings, the temperature of these components can be evaluated individually.
[0032] Hall effect current sensors are used to collect real-time current at major current nodes within the server. For example, the operating current of critical components such as the CPU, GPU, and Power Supply Unit (PSU) is collected.
[0033] By comprehensively considering multiple factors such as air pressure, current, and temperature, the actual heat dissipation requirements of the server can be more accurately reflected, avoiding insufficient or excessive heat dissipation caused by a single temperature control. This effectively ensures that the key components of the server operate stably within a reasonable temperature range, thereby improving the overall performance and reliability of the server.
[0034] S102: Adjust the weights of air pressure, current and temperature values according to their changes.
[0035] Changes in air pressure, current, and temperature can reflect the server's operating conditions. The impact of air pressure, current, and temperature on heat dissipation requirements varies under different operating conditions. To achieve precise server heat dissipation, the weights of each of these values can be adjusted based on changes in air pressure, current, and temperature.
[0036] The sum of the weights corresponding to the air pressure, current, and temperature values is one. Initially, the weights for air pressure, current, and temperature can be set to 0.3, 0.3, and 0.4, respectively.
[0037] In practical applications, the changes in air pressure, current, and temperature values over a set time period can be statistically analyzed. These changes can include variations in air pressure, temperature, and current. The weights corresponding to the air pressure, current, and temperature values are then adjusted according to the weighting rules assigned to these changes.
[0038] The weighting adjustment rules include how to adjust the weights of air pressure, current, and temperature values under different changes. For example, in high-altitude areas, air pressure decreases with increasing altitude. When temperature and current values are within normal ranges, if the air pressure change is large, the fan will still operate at its original speed, reducing the cooling effect. Therefore, in this scenario, the weight of the air pressure value can be increased. Since the sum of the weights of air pressure, current, and temperature values is one, increasing the weight of the air pressure value allows for a corresponding decrease in the weights of temperature and current values.
[0039] S103: Query the target fan control strategy that matches the air pressure value, current value, temperature value and their respective weights from the speed configuration table.
[0040] To achieve precise fan speed control, simulation tests can be used to determine the optimal control strategies for different air pressure ranges, current ranges, and temperature ranges under varying weight configurations. This information can be pre-recorded in a speed configuration table. In other words, the speed configuration table records the fan control strategies corresponding to different air pressure ranges, current ranges, and temperature ranges under different weight configurations.
[0041] After adjusting the weights of the air pressure, current, and temperature values, the matching fan control strategy can be retrieved from the speed configuration table based on the air pressure, current, and temperature values and their respective weights.
[0042] Since the speed configuration table contains a large number of fan control strategies, for ease of differentiation, the fan control strategy matched with the air pressure value, current value, temperature value and their respective weights can be called the target fan control strategy.
[0043] S104: Adjust the server fan speed according to the target fan control strategy.
[0044] The target fan control strategy includes methods for adjusting the fan speed. These methods can include the desired fan speed or the percentage adjustment required based on the current speed.
[0045] After adjusting the server fan speed, the system can provide administrators with feedback information on air pressure, current, temperature, and fan status to keep track of the server's heat dissipation.
[0046] As can be seen from the above technical solution, the air pressure, current, and temperature of the server's environment are obtained; changes in these values reflect the server's operating conditions. The impact of air pressure, current, and temperature on heat dissipation requirements varies under different operating conditions. To achieve precise server heat dissipation, the weights of each air pressure, current, and temperature value can be adjusted based on changes in these values. To quickly and accurately adjust fan speed, a fan speed configuration table can be pre-built. This table records the fan control strategies corresponding to different air pressure, current, and temperature ranges under different weight configurations. The target fan control strategy matching the air pressure, current, and temperature values and their respective weights can be queried from the fan speed configuration table. The server fan speed is then adjusted according to the target fan control strategy. In this application, by reasonably adjusting the weights of air pressure, current, and temperature values, the fan speed can be more accurately matched to the server's heat dissipation requirements, ensuring the server maintains good heat dissipation under various operating conditions, thereby improving the heat dissipation effect.
[0047] Figure 2 A flowchart illustrating a method for adjusting the weights of air pressure, current, and temperature values, as provided in this application embodiment, is included.
[0048] S201: If the air pressure in the server's environment is less than the set air pressure threshold and the air pressure change is less than the set air pressure change, adjust the weight of the air pressure value according to the adjustment method matched to the air pressure change, and decrease the weight of the temperature value and the current value.
[0049] Once the environment in which the server is located is fixed, the corresponding atmospheric pressure is relatively stable.
[0050] Considering that external factors may interfere with practical applications, causing short-term fluctuations in air pressure values, to ensure the accuracy of server condition assessment, the air pressure change over a set time period can be statistically analyzed to evaluate air pressure stability. The air pressure change can be the difference between the maximum and minimum air pressure values collected within the set time period.
[0051] If the change in air pressure is less than the set limit, it indicates that there is no sudden change in air pressure. Furthermore, if the air pressure in the server's environment is less than the set threshold, it means the server is in a low-pressure environment. Low-pressure environments can include servers located at high altitudes or in poorly ventilated, enclosed spaces.
[0052] In environments with low air pressure, if the fan continues to operate at its original speed under normal air pressure, its cooling effect will be weakened. To ensure effective server cooling, the weighting of air pressure values can be increased, while the weighting of temperature and current values can be decreased, based on the adjustment method matched to the change in air pressure.
[0053] The air pressure threshold, air pressure change amount, and adjustment methods matching different air pressure change amounts can all be flexibly set according to actual needs.
[0054] Weight adjustments alter the magnitude of fan speed regulation. For instance, with a higher air pressure weight, even small changes in air pressure can trigger significant fan speed adjustments to adapt to changes in heat dissipation capacity caused by air pressure variations. Conversely, when the current weight increases, fluctuations in current lead to even greater changes in fan speed, effectively addressing heat variations caused by load changes in the equipment.
[0055] S202: If the temperature change of the server exceeds the set temperature threshold, the weight of the temperature value will be increased and the weight of the current value and air pressure value will be decreased according to the adjustment method matched to the temperature value.
[0056] When the temperature change of the server exceeds the set temperature threshold, it indicates that the temperature value is an important factor affecting the server's heat dissipation. At this time, the weight of the temperature value can be increased and the weight of the current value and air pressure value can be decreased according to the adjustment method matched to the temperature value.
[0057] In this embodiment, a correspondence between different temperature ranges and adjustment ratios can be pre-established. When the temperature change of the server exceeds a set temperature threshold, the adjustment method matching the current temperature can be determined by querying this correspondence. The adjustment method may include the required adjustment values for temperature weight, current weight, and air pressure weight.
[0058] Servers operate within a defined normal temperature range. When the temperature exceeds this range, the higher the temperature, the greater the impact on fan speed. Therefore, in practical applications, three temperature ranges can be set, ordered from lowest to highest: the first, second, and third temperature ranges. The first temperature range can be considered the normal operating range. The maximum values of these three temperature ranges differ by 15°C.
[0059] For adjusting the temperature weight, the temperature weight can be increased by 0.1 for every 15°C increase, while the air pressure weight and current weight can be decreased by 0.05 each.
[0060] The first temperature range can be from 35℃ to 65℃, including 35℃ but excluding 65℃; the temperature weight corresponding to the first temperature range is 0.3, the air pressure weight is 0.3, and the current weight is 0.4.
[0061] The second temperature range is 65℃ to 80℃, including 65℃ but excluding 80℃; the temperature weight corresponding to the second temperature range is 0.4, the air pressure weight is 0.25, and the current weight is 0.35.
[0062] The third temperature range is 80℃ to 95℃, including 80℃ but excluding 95℃; the temperature weight corresponding to the third temperature range is 0.5, the air pressure weight is 0.2, and the current weight is 0.3.
[0063] When the temperature is greater than or equal to 95℃, a high temperature alarm can be triggered directly.
[0064] For example, assuming the current weight is 0.3 for temperature, 0.3 for air pressure, and 0.4 for current, when the temperature exceeds 80°C, the weight of temperature can be increased to 0.5, the weight of air pressure can be reduced to 0.2, and the weight of current can be reduced to 0.3.
[0065] Properly adjusting the temperature weighting allows fan speed to more accurately match the device's cooling needs, thereby improving heat dissipation. In high-temperature environments, increasing the temperature weighting makes the fan more focused on responding to temperature changes, increasing its speed to enhance heat dissipation and prevent performance degradation or malfunction due to overheating. When the temperature weighting is increased, the fan speed will increase more quickly if the temperature rises. This is because the influence of temperature is amplified in calculating fan speed, so temperature changes have a more significant impact on fan speed, enabling the fan to respond rapidly to the device's cooling requirements.
[0066] S203: If the change in server current exceeds the set current threshold, the weight of the current value will be increased and the weight of the temperature and air pressure values will be decreased according to the adjustment method matched to the current value.
[0067] When the change in server current exceeds the set current threshold, it indicates that the current value is an important factor affecting server heat dissipation. At this time, the weight of the current value can be increased and the weight of the temperature value and air pressure value can be decreased according to the adjustment method matched to the current value.
[0068] In this embodiment of the application, a correspondence between different current ranges and adjustment ratios can be established in advance. When the current change of the server exceeds the set current threshold, the matching adjustment method can be determined by querying the correspondence.
[0069] S204: When the changes in temperature and current do not match, adjust the weights of temperature and current according to the set fault adjustment rules.
[0070] In practical applications, temperature and current values often exhibit similar trends. For instance, under high load, servers process large amounts of data quickly, leading to increased internal current and temperature. If temperature and current changes do not match, it indicates a potential malfunction in either the temperature or current sensor. Adjusting the weighting of these sensors can mitigate their impact on server heat dissipation.
[0071] The fault adjustment rules may include weight adjustment rules for temperature sensor failure and weight adjustment rules for current sensor failure.
[0072] In this embodiment, by evaluating the changes in air pressure, temperature, and current in the server's environment, and whether the changes in temperature and current match, an appropriate weight adjustment rule is determined, thereby achieving precise adjustment of the fan speed and ensuring timely heat dissipation of the server.
[0073] In a fan speed control system, the temperature sensor is a key component for sensing the core temperature of the equipment. However, when the temperature sensor fails due to drift, wire breakage, or aging, it will output incorrect temperature data, leading to inaccurate fan speed control.
[0074] When a temperature sensor fails, two abnormal situations may occur. The first situation is that the temperature sensor is stuck and always outputs a fixed temperature value, such as a constant 50°C. The second situation is that the temperature sensor drifts, and the output temperature deviates from the actual temperature by more than 15°C. For example, if the actual temperature is 65°C, the temperature sensor may only display 48°C.
[0075] When a temperature sensor malfunctions, a large change in current often occurs, while the change in temperature is relatively small. Therefore, in practical applications, if the server's current change exceeds the set current threshold, the current stabilization time exceeds the set time threshold, and the temperature change is less than the set temperature change, it indicates that the temperature sensor is malfunctioning. In this case, the weight corresponding to the current value can be increased according to the first adjustment ratio, while the weight corresponding to the temperature value can be decreased.
[0076] For example, suppose a server's load suddenly switches from a regular office scenario to a big data computing scenario due to business needs. In a regular office scenario, the current is 8A, but in a big data computing scenario, the current rises to 14A. At this point, the device's power consumption increases significantly, and the actual internal temperature of the server will rise from 45℃ to 68℃ within 10 minutes. However, a malfunctioning temperature sensor consistently outputs 50℃, causing the system to calculate the fan speed based on this 50℃ temperature. Even when the fan speed is slightly adjusted from 1800rpm to 2000rpm, the current monitoring module will detect an abnormal signal indicating a sudden jump in current from 8A to 14A, exceeding the normal fluctuation threshold of 5A, and this jump continues for 10 minutes without subsiding.
[0077] The system has preset current thresholds of 4A, time thresholds of 5 minutes, and temperature change thresholds of 5°C. When the temperature change ΔI > 4A and the current stabilization time > 5 minutes, while the temperature change ΔT < 5°C, the temperature sensor is deemed potentially faulty. Subsequently, the system automatically activates a redundancy strategy, increasing the weight of the current value and decreasing the weight of the temperature value according to a first adjustment ratio. For example, the current weight can be increased from 0.3 to 0.6, the temperature weight reduced to 0.1, and the air pressure weight maintained at 0.3. Based on the adjusted weights, the fan speed is re-determined. According to the new weights, a high current of 14A will drive the fan speed to quickly increase to 2800rpm, matching the actual heat dissipation requirements and preventing the equipment from overheating due to temperature sensor failure.
[0078] Regarding temperature sensor drift, the deviation between the current value and the current range corresponding to the temperature value is often significant. Therefore, in this embodiment, if the deviation between the current value and the standard current range is greater than a set current deviation threshold and the duration is greater than a set time threshold, it indicates that temperature sensor drift has occurred. In this case, the weight corresponding to the current value can be increased according to the second adjustment ratio, and the weight corresponding to the temperature value can be decreased; wherein, the standard current range is the current range matched to the current temperature value; and the second adjustment ratio is greater than the first adjustment ratio.
[0079] For example, after prolonged server operation, temperature sensors are prone to drift. When the actual CPU temperature reaches 72℃, approaching the overheating threshold of 75℃, the temperature sensor may only display 55℃. Based on this erroneous temperature reading, the system will only maintain the fan speed at 2200rpm, failing to effectively dissipate heat. However, the current monitoring module detects that the current is currently stable at 14.5A. According to historical data, at 55℃, the normal current should be between 10A and 11A. The current current is 3.5A higher than the normal range, which is significantly abnormal.
[0080] The system has a preset current deviation threshold of 2A and a time threshold of 5 minutes. When the deviation of the current value from the standard current range at the corresponding temperature exceeds 2A and lasts for more than 5 minutes, the temperature sensor data is deemed unreliable. Subsequently, the system automatically uses current as the core reference, increases the current weight to 0.7, and, combined with air pressure data, adjusts the fan speed to 3000 rpm. Simultaneously, an alarm for a temperature sensor malfunction is issued to alert maintenance personnel for inspection.
[0081] In the embodiments of this application, a dynamic deviation can be added to the current range matched by the temperature value to obtain a standard current range.
[0082] In practice, the correspondence between current range and temperature range under different load conditions can be recorded; the target current range that matches the current load state and temperature value of the server can be queried from the correspondence; and the target current range can be adjusted according to the deviation threshold matched by the current load state of the server to obtain the standard current range.
[0083] The correspondence between current range and temperature range under different load conditions can be determined through testing.
[0084] Load status can include low load status, normal load status, and high load status.
[0085] Different deviation thresholds can be set for different load conditions. The deviation threshold can be set higher under high load conditions and lower under low load conditions.
[0086] In practical applications, a load greater than or equal to the first load threshold can be considered a high load state, and the deviation threshold is set to the first deviation value. A load less than or equal to the second load threshold can be considered a low load state, and the deviation threshold is set to the second deviation value. When the load is within the range of the second and first load thresholds, that is, when the load is greater than the second load threshold but less than the first load threshold, it is considered a normal load state, and the deviation threshold can be set to zero.
[0087] The second deviation value is smaller than the first deviation value.
[0088] For example, the deviation threshold can be set to 3A under high load and 1.5A under low load.
[0089] In this embodiment, by recording the correspondence between current range and temperature range under different load conditions, the normal current range corresponding to each temperature interval can be clearly defined, providing a basis for anomaly judgment. By setting a time threshold to evaluate the duration, misjudgment caused by instantaneous current fluctuations is avoided. Only when the duration of the abnormal situation exceeds the time threshold is the weight adjustment triggered, ensuring the accuracy of the judgment.
[0090] In cases of current sensor failure, a large temperature change often occurs, while the current change is small. Therefore, in practical applications, when the server's temperature change exceeds a set temperature threshold, the current change is less than a set current change, and the duration exceeds a set time threshold, the weight corresponding to the temperature value is increased according to the third adjustment ratio, while the weight corresponding to the current value is decreased.
[0091] For example, the system can preset a temperature threshold of 15℃, a time threshold of 5 minutes, and a current change of 0.5A. When the temperature change ΔT > 15℃, the temperature change ΔI < 0.5A, and the duration > 5 minutes, the current sensor is deemed to be potentially faulty. Subsequently, the system automatically activates a redundancy strategy, increasing the weight corresponding to the temperature value according to the third adjustment ratio and decreasing the weight corresponding to the current value. For example, the temperature weight can be increased from 0.3 to 0.6, the current weight reduced to 0.1, and the air pressure weight maintained at 0.3. The fan speed is then re-determined based on the adjusted weights.
[0092] In this embodiment, considering that current is directly related to device power consumption, and power consumption is positively correlated with heat generation, there is a stable correlation between current and temperature. By comprehensively considering changes in temperature and current values, current anomalies can be used as a criterion for determining temperature sensor failure, and temperature anomalies can be used as a criterion for determining current sensor failure, thus improving fault tolerance. When there is a mismatch between changes in temperature and current values, by comprehensively analyzing the changes in current and temperature values and adjusting the temperature and current weights, the impact of failure of a certain type of sensor can be effectively reduced.
[0093] In this embodiment, in addition to adjusting the weights based on changes in air pressure, current, and temperature, the weights can also be adjusted based on changes in server load. In practical applications, if the server load change exceeds a set load threshold, the weights of temperature and current can be increased, while the weight of air pressure can be decreased, according to an adjustment method matched to the load change.
[0094] Different load variation ranges can be set for different load variations, and each load variation range has its corresponding temperature weight, current weight, and air pressure weight.
[0095] Load is often expressed as a percentage. The first load variation range can be 0 to 20%, including 0 and excluding 20%. The second load variation range can be greater than or equal to 20%.
[0096] The weighting for temperature is 0.3, for current is 0.4, and for air pressure is 0.3 for the first load variation range; the weighting for temperature is 0.4, for current is 0.5, and for air pressure is 0.1 for the second load variation range.
[0097] In practical applications, historical data can be used to predict short-term load changes, allowing for advance adjustment of fan speeds.
[0098] Figure 2 This paper introduces a method for adjusting the weights of air pressure, current, and temperature values based on weight adjustment rules. In this application's embodiments, besides adjusting weights based on rules, machine learning algorithms can also be used to adjust the weights.
[0099] The implementation process for adjusting weights using machine learning algorithms can include: acquiring historical data; training the speed analysis model using the historical data to obtain a well-trained speed analysis model with speed adjustment accuracy meeting the requirements; and directly inputting the acquired air pressure, current, and temperature values into the trained speed analysis model to determine the weights corresponding to each air pressure, current, and temperature value.
[0100] For example, when the speed analysis model analyzes the current value within a certain range and the temperature value continues to rise, it will automatically increase the temperature weight and current weight to optimize the fan speed control.
[0101] Historical data can include historical air pressure data, historical current data, and historical temperature data, as well as the corresponding fan speeds. The fan speed analysis model can employ a neural network model.
[0102] In this embodiment, a rotational speed analysis model is trained using historical data. Historical air pressure data, historical current data, and historical temperature data, along with corresponding fan speeds, are used as training samples, allowing the model to learn the optimal weight allocation under different data combinations. During server operation, the rotational speed analysis model can dynamically calculate and output appropriate weights based on the latest collected air pressure, current, and temperature values, achieving both automatic weight adjustment and ensuring the rationality of weight settings.
[0103] In this embodiment, to improve heat dissipation, in addition to adjusting the fan speed, the fan's operating power can also be adjusted. After obtaining the air pressure value of the server's environment, as well as the server's current and temperature values, a target power matching the temperature value can be determined based on the correlation between temperature and power; the server fan's operating power is then adjusted to the target power.
[0104] For example, the maximum temperature of a CPU is 80 degrees Celsius. When the CPU temperature is 60 degrees Celsius, the fan can run at 80% power; when the CPU temperature is 70 degrees Celsius, the fan can run at 90% power.
[0105] To avoid misjudgments caused by sudden changes in air pressure, temperature, and current values, before adjusting the weights of air pressure, current, and temperature values based on their changes, it is advisable to first determine whether the air pressure value, current value, and temperature value are all within the same order of magnitude for consecutive settings.
[0106] If the air pressure value is continuously set to the same air pressure order of magnitude, the current value is continuously set to the same current order of magnitude, and the temperature value is continuously set to the same temperature order of magnitude, it indicates that there are no instantaneous changes in the air pressure, temperature, and current values. In this case, the operation steps of adjusting the weights of the air pressure, current, and temperature values according to their changes can be performed.
[0107] In this embodiment, by detecting the air pressure, current, and temperature values within a set number of consecutive cycles, it is ensured that the air pressure, current, and temperature values are all within the corresponding order of magnitude within the set number of consecutive cycles, thereby effectively avoiding misjudgment caused by instantaneous changes and providing reliable data support for adjusting the fan speed.
[0108] After adjusting the server fan speed according to the target fan control strategy, it can be determined whether the server's current and temperature values are within their respective normal ranges within the set recovery time. If the server's current or temperature values are not within their respective normal ranges within the set recovery time, the steps of adjusting the weights of air pressure, current, and temperature values based on changes in these values can be returned to readjust the fan control strategy.
[0109] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method.
[0110] Figure 3 A schematic diagram of a server fan control device provided in an embodiment of this application includes an acquisition unit 31, a weight adjustment unit 32, a query unit 33, and a speed adjustment unit 34.
[0111] The acquisition unit 31 is used to acquire the air pressure value of the environment where the server is located, as well as the current value and temperature value of the server.
[0112] The weight adjustment unit 32 is used to adjust the weights of the air pressure, current and temperature values according to the changes in air pressure, current and temperature values.
[0113] The query unit 33 is used to query the target fan control strategy that matches the air pressure value, current value, temperature value and their respective weights from the speed configuration table; wherein, the speed configuration table records the fan control strategies corresponding to different air pressure ranges, different current ranges and different temperature ranges under different weight configurations;
[0114] The speed adjustment unit 34 is used to adjust the speed of the server fan according to the target fan control strategy.
[0115] In some embodiments, the weight adjustment unit is used to statistically analyze the changes in air pressure, current, and temperature values over a set time period; wherein the changes include changes in air pressure, temperature, and current; and adjust the weights corresponding to the air pressure, current, and temperature values according to the weight adjustment rules matched to the changes.
[0116] In some embodiments, the weight adjustment unit includes a first adjustment subunit, a second adjustment subunit, a third adjustment subunit, and a fourth adjustment subunit;
[0117] The first adjustment subunit is used to adjust the weight of the air pressure value according to the adjustment method matched by the air pressure change when the air pressure value of the server environment is less than the set air pressure threshold and the air pressure change is less than the set air pressure change. The weight of the air pressure value, the current value and the temperature value are reduced. The sum of the weights of the air pressure value, the current value and the temperature value is one.
[0118] The second adjustment subunit is used to increase the weight of the temperature value and decrease the weight of the current value and air pressure value according to the adjustment method matched with the temperature value when the temperature change of the server exceeds the set temperature threshold.
[0119] The third adjustment subunit is used to increase the weight of the current value and decrease the weight of the temperature value and air pressure value according to the adjustment method matched to the current value when the change in the server current exceeds the set current threshold.
[0120] The fourth adjustment subunit is used to adjust the weights of temperature and current values according to the set fault adjustment rules when the changes in temperature and current values do not match. The fault adjustment rules include the weight adjustment rules corresponding to the failure of the temperature sensor and the weight adjustment rules corresponding to the failure of the current sensor.
[0121] In some embodiments, the fourth adjustment subunit is used to increase the weight corresponding to the current value and decrease the weight corresponding to the temperature value according to the first adjustment ratio when the current change of the server is greater than the set current threshold, the current value stabilization time is greater than the set time threshold, and the temperature change is less than the set temperature change.
[0122] If the deviation of the current value from the standard current range is greater than the set current deviation threshold and the duration is greater than the set time threshold, the weight corresponding to the current value is increased according to the second adjustment ratio, and the weight corresponding to the temperature value is decreased; wherein, the standard current range is the current range matched by the current temperature value; the second adjustment ratio is greater than the first adjustment ratio;
[0123] If the server's temperature change exceeds the set temperature threshold, the current change is less than the set current change, and the duration exceeds the set time threshold, the weight corresponding to the temperature value will be increased according to the third adjustment ratio, and the weight corresponding to the current value will be decreased.
[0124] In some embodiments, the device further includes a recording unit, a matching unit, and a current adjustment unit for determining the standard current range;
[0125] The recording unit is used to record the correspondence between current range and temperature range under different load conditions;
[0126] The matching unit is used to query the target current range that matches the server's current load status and temperature value from the corresponding relationship;
[0127] The current adjustment unit is used to adjust the target current range according to the deviation threshold matched to the current load state of the server in order to obtain the standard current range.
[0128] In some embodiments, a fourth adjustment subunit is also included;
[0129] The fourth adjustment subunit is used to increase the weight of temperature and current values and decrease the weight of air pressure value according to the adjustment method matched to the load change when the load change exceeds the set load threshold.
[0130] In some embodiments, the weight adjustment unit includes an acquisition subunit, a training subunit, and an output subunit;
[0131] The acquisition subunit is used to acquire historical data, including historical air pressure data, historical current data, historical temperature data, and the corresponding fan speed.
[0132] The training subunit is used to train the speed analysis model using historical data to obtain a well-trained speed analysis model whose speed adjustment accuracy meets the accuracy requirements.
[0133] The output subunit is used to input the acquired air pressure, current and temperature values into the trained rotational speed analysis model to determine the weights corresponding to the air pressure, current and temperature values.
[0134] In some embodiments, after obtaining the air pressure value of the environment where the server is located, as well as the current value and temperature value of the server, the system further includes a power determination unit and a power adjustment unit.
[0135] The power determination unit is used to determine the target power that matches the temperature value based on the correspondence between temperature and power.
[0136] The power adjustment unit is used to adjust the operating power of the server fan to the target power.
[0137] In some embodiments, a stability determination unit is also included;
[0138] The stability judgment unit is used to determine whether the air pressure value, the current value, and the temperature value are all within the same order of magnitude for a continuous number of settings. If the air pressure value, the current value, and the temperature value are all within the same order of magnitude for a continuous number of settings, the weight adjustment unit is triggered to perform the operation steps of adjusting the weights of the air pressure value, the current value, and the temperature value according to the changes in the air pressure value, the current value, and the temperature value.
[0139] In some embodiments, a recovery determination unit is also included;
[0140] The recovery judgment unit is used to determine whether the server's current value and temperature value are within their respective normal ranges within the set recovery time. If the server's current value or temperature value is not within its respective normal range within the set recovery time, the weight adjustment unit is triggered to perform the operation steps of adjusting the weights of the air pressure value, current value, and temperature value according to the changes in the air pressure value, current value, and temperature value.
[0141] For a description of the features in the embodiment of the server fan control device, please refer to the relevant description of the embodiment of the server fan control method, which will not be repeated here.
[0142] As can be seen from the above technical solution, the air pressure, current, and temperature of the server's environment are obtained; changes in these values reflect the server's operating conditions. The impact of air pressure, current, and temperature on heat dissipation requirements varies under different operating conditions. To achieve precise server heat dissipation, the weights of each air pressure, current, and temperature value can be adjusted based on changes in these values. To quickly and accurately adjust fan speed, a fan speed configuration table can be pre-built. This table records the fan control strategies corresponding to different air pressure, current, and temperature ranges under different weight configurations. The target fan control strategy matching the air pressure, current, and temperature values and their respective weights can be queried from the fan speed configuration table. The server fan speed is then adjusted according to the target fan control strategy. In this application, by reasonably adjusting the weights of air pressure, current, and temperature values, the fan speed can be more accurately matched to the server's heat dissipation requirements, ensuring the server maintains good heat dissipation under various operating conditions, thereby improving the heat dissipation effect.
[0143] Embodiments of this application also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above-described server fan control method embodiments.
[0144] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above-described server fan control method embodiments when running.
[0145] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0146] The embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above-described server fan control method embodiments.
[0147] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in any of the above-described server fan control method embodiments.
[0148] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0149] The server fan control method and electronic device provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only intended to help understand the method and core ideas of this application. It should be noted that those skilled in the art can make several improvements and modifications to this application without departing from the principles of this application, and these improvements and modifications also fall within the protection scope of this application.
Claims
1. A server fan control method, characterized in that, include: Obtain the air pressure value of the server's environment, as well as the server's current and temperature values; Based on the changes in the air pressure value, the current value, and the temperature value, the weights corresponding to the air pressure value, the current value, and the temperature value are adjusted respectively. The target fan control strategy that matches the air pressure value, the current value, the temperature value, and their respective weights is retrieved from the speed configuration table; wherein, the speed configuration table records the fan control strategies corresponding to different air pressure ranges, different current ranges, and different temperature ranges under different weight configurations; Adjust the server fan speed according to the target fan control strategy; Based on the changes in the air pressure value, the current value, and the temperature value, the weights corresponding to the air pressure value, the current value, and the temperature value are adjusted, including: The changes in the air pressure, current, and temperature values over a set time period are statistically analyzed; wherein the changes include changes in air pressure, temperature, and current. According to the weight adjustment rules matched to the changes, the weights corresponding to the air pressure value, the current value, and the temperature value are adjusted respectively; if the change in the temperature value does not match the change in the current value, the weights of the temperature value and the current value are adjusted according to the set fault adjustment rules; wherein, the fault adjustment rules include the weight adjustment rules corresponding to the failure of the temperature sensor and the weight adjustment rules corresponding to the failure of the current sensor.
2. The server fan control method according to claim 1, characterized in that, According to the weighting adjustment rules matched to the changes, the weights corresponding to the air pressure value, the current value, and the temperature value are adjusted, including: If the air pressure of the server's environment is less than a set air pressure threshold and the air pressure change is less than a set air pressure change, the weight of the air pressure value is increased and the weights of the temperature value and the current value are decreased according to the adjustment method matched to the air pressure change; wherein, the sum of the weights of the air pressure value, the current value, and the temperature value is one. If the temperature change of the server exceeds the set temperature threshold, the weight corresponding to the temperature value is increased and the weight corresponding to the current value and the air pressure value is decreased according to the adjustment method matched to the temperature value. If the change in the server current exceeds a set current threshold, the weight corresponding to the current value is increased and the weights corresponding to the temperature value and the air pressure value are decreased, according to the adjustment method matched to the current value.
3. The server fan control method according to claim 2, characterized in that, If the change in temperature value does not match the change in current value, the weights of the temperature value and the current value are adjusted according to the set fault adjustment rules, including: If the current change of the server is greater than the set current threshold, the current value stabilization time is greater than the set time threshold, and the temperature change is less than the set temperature change, the weight corresponding to the current value is increased according to the first adjustment ratio, and the weight corresponding to the temperature value is decreased. If the deviation of the current value from the standard current range is greater than a set current deviation threshold and the duration is greater than a set time threshold, the weight corresponding to the current value is increased by a second adjustment ratio, and the weight corresponding to the temperature value is decreased; wherein, the standard current range is the current range matched by the current temperature value; the second adjustment ratio is greater than the first adjustment ratio; If the temperature change of the server is greater than the set temperature threshold, the current change is less than the set current change, and the duration is greater than the set time threshold, the weight corresponding to the temperature value is increased according to the third adjustment ratio, and the weight corresponding to the current value is decreased.
4. The server fan control method according to claim 3, characterized in that, Regarding the determination of the standard current range, the method further includes: Record the correspondence between current range and temperature range under different load conditions; Query the target current range that matches the current load status of the server and the temperature value from the correspondence; The target current range is adjusted according to the deviation threshold matched to the current load state of the server to obtain the standard current range.
5. The server fan control method according to claim 2, characterized in that, Also includes: If the load change of the server exceeds the set load threshold, the weight of the temperature value and the current value is increased, and the weight of the air pressure value is decreased, according to the adjustment method matched to the load change.
6. The server fan control method according to claim 1, characterized in that, After obtaining the atmospheric pressure, current, and temperature of the server's environment, the following is also included: Based on the correlation between temperature and power, the target power matching the temperature value is determined; Adjust the operating power of the server fan to the target power.
7. The server fan control method according to claim 1, characterized in that, Before adjusting the weights of the air pressure, current, and temperature values based on changes in the air pressure, current, and temperature values, the process further includes: Determine whether the air pressure value, the current value, and the temperature value are all within the same order of magnitude for a series of consecutive settings; When the air pressure value is continuously set to the same air pressure order of magnitude, the current value is continuously set to the same current order of magnitude, and the temperature value is continuously set to the same temperature order of magnitude, the operation step of adjusting the weights corresponding to the air pressure value, the current value, and the temperature value according to the changes in the air pressure value, the current value, and the temperature value is executed.
8. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the server fan control method as described in any one of claims 1 to 7 when executing the computer program.
Citation Information
Patent Citations
Fan rotation speed control method and device
CN105650022A
Server fan rotating speed control method and device, equipment and medium
CN113534936A