Server fan regulation and control method and electronic equipment
By obtaining the server's air pressure, current, and temperature values, adjusting their weights, and querying the speed configuration table, the problem of inaccurate fan speed adjustment is solved, precise heat dissipation under different working conditions is achieved, and the server's heat dissipation effect and reliability are improved.
Patent Information
- Application Number
- CN202511262078.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-05
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2045-09-05
AI Technical Summary
In existing server fan control methods, the fan speed adjustment accuracy is low, resulting in energy waste at low loads and untimely heat dissipation at high loads.
By obtaining the air pressure, current, and temperature values of the server environment, adjusting their respective weights, and querying the matching fan control strategy from the speed configuration table, the fan speed can be accurately adjusted.
The fan speed is more accurately matched to the server's cooling requirements, ensuring good cooling status under various working conditions, improving cooling effect and equipment reliability.
Smart Images

Figure CN120743071A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of hardware testing technology, and in particular to a server fan control method and electronic equipment. Background Art
[0002] During server operation, key components such as the Central Processing Unit (CPU), Graphics Processing Unit (GPU), and memory continuously generate significant heat. If this heat cannot be dissipated promptly, component temperatures will rise, reducing device performance and even causing hardware damage. Currently, most servers use a fan control strategy based on temperature sensor feedback. These temperature sensors monitor the temperature of key internal server components in real time. When the temperature exceeds a preset threshold, the fan speed is increased to enhance heat dissipation; when the temperature drops, the fan speed is reduced accordingly.
[0003] This single temperature control strategy has obvious flaws. On the one hand, adjusting fan speed based solely on temperature cannot accurately reflect the server's actual cooling needs. For example, in certain low-load operating scenarios, although server components generate heat, the current consumption is low, and the actual cooling demand is small. In this case, increasing fan speed according to the temperature threshold will cause unnecessary energy waste and increase operating costs. On the other hand, when the server encounters a sudden high-load task, the component current increases instantly, and the heat increases sharply. However, due to the lag in temperature changes, the fan speed is not increased in time before the temperature reaches the threshold. This may cause the component to overheat in a short period of time, resulting in performance degradation or failure.
[0004] It can be seen that how to improve 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] The present application provides a server fan control method and electronic device to at least solve the problem of low fan speed adjustment accuracy in the related art.
[0006] This application provides a server fan control method, including: Obtain the air pressure value of the server's environment as well as the server's current value and temperature value; According to the changes in air pressure, current and temperature, the weights corresponding to the air pressure, current and temperature are adjusted; Query the target fan control strategy that matches the air pressure value, current value, temperature value and their corresponding weights 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. Adjust the server fan speed according to the target fan control policy.
[0007] The present application also provides a server fan control device, comprising an acquisition unit, a weight adjustment unit, a query unit, and a speed adjustment unit; An acquisition unit, used to acquire the air pressure value of the environment in which the server is located, as well as the current value and temperature value of the server; A weight adjustment unit, configured to adjust the weights corresponding to the pressure value, the current value, and the temperature value according to changes in the pressure value, the current value, and the temperature value; a query unit, configured to query a target fan control strategy that matches the air pressure value, the current value, the temperature value, and their corresponding weights from a 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; The speed adjustment unit is used to adjust the speed of the server fan according to the target fan control strategy.
[0008] The present application also provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the steps of any of the above-mentioned server fan control methods when executing the computer program.
[0009] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned server fan control methods are implemented.
[0010] The present application also provides a computer program product, including a computer program, which implements the steps of any of the above-mentioned server fan control methods when executed by a processor.
[0011] This application obtains the air pressure value of the server's environment, as well as the server's current and temperature values. Changes in the air pressure, current, and temperature values can reflect the server's operating conditions. The air pressure, current, and temperature values have different impacts on heat dissipation requirements under different operating conditions. To achieve precise heat dissipation of the server, the weights corresponding to the air pressure, current, and temperature values can be adjusted based on the changes in the air pressure, current, and temperature values. To quickly and accurately adjust the fan speed, a speed configuration table can be pre-built. 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. From the speed configuration table, the target fan control strategy that matches the air pressure, current, temperature value, and their corresponding weights can be queried. The server fan speed is adjusted according to the target fan control strategy. In this application, by reasonably adjusting the weights of the air pressure, current, and temperature values, the fan speed can be more accurately matched to the server's heat dissipation requirements, ensuring that the server maintains good heat dissipation under various operating conditions, thereby improving the heat dissipation effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0013] Figure 1 A flow chart of a server fan control method provided in an embodiment of the present application; Figure 2 A flowchart of a method for adjusting the weights corresponding to air pressure, current, and temperature values provided in an embodiment of the present application; Figure 3 A schematic diagram of the structure of a server fan control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0014] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0015] It should be noted that, in the description of this application, the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. The terms "first," "second," etc., in this application are used to distinguish similar objects, and are not used to describe a particular order or sequence.
[0016] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0017] Figure 1 A flow chart of a server fan control method provided in an embodiment of the present application includes: S101: Obtain the air pressure value of the environment in which the server is located, as well as the current value and temperature value of the server.
[0018] Considering that adjusting server fan speed solely based on temperature changes often fails to accurately reflect the server's actual cooling needs, there's the issue of delayed cooling under high load conditions. Furthermore, any issues with the temperature sensor can directly impact server cooling. Therefore, in this embodiment, a solution for server fan control is proposed that comprehensively considers air pressure, temperature, and current values.
[0019] In practical applications, an air pressure sensor may be used to obtain the air pressure value of the environment in which the server is located.
[0020] Temperature sensors are used to monitor the server's ambient and internal temperatures. Given the large number of components within a server, it's important to collect the temperatures of key components that significantly impact heat dissipation, such as the CPU and motherboard. These components can be individually evaluated when controlling the server's fan speed.
[0021] Hall effect current sensors are used to collect real-time currents from major current nodes within the server. For example, they collect the operating currents of key components such as the CPU, GPU, and power supply unit (PSU).
[0022] By comprehensively considering multiple factors such as air pressure, current, and temperature, it can more accurately reflect the actual cooling needs of the server, avoid insufficient or excessive cooling problems caused by single temperature control, effectively ensure that key server components operate stably within a reasonable temperature range, and improve the overall performance and reliability of the server.
[0023] S102: 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.
[0024] Changes in air pressure, current, and temperature reflect the server's operating conditions. These factors affect cooling requirements differently under different operating conditions. To achieve precise server cooling, the weights for these values can be adjusted based on their variations.
[0025] The sum of the weights corresponding to the pressure value, current value, and temperature value is 1. In the initial state, the pressure weight, current weight, and temperature weight can be set to 0.3, 0.3, and 0.4 respectively.
[0026] In practical applications, the corresponding changes in pressure, current, and temperature values within a set time period can be counted. The changes can include pressure, temperature, and current changes. The weights of the pressure, current, and temperature values are adjusted according to the weight adjustment rules that match the changes.
[0027] The weight adjustment rules include how to adjust the weights of air pressure, current, and temperature values under different changes. For example, at high altitudes, air pressure decreases as altitude increases. When the temperature and current values are within the normal range, if the air pressure changes significantly, the fan will still run at the original speed, and the cooling effect will be weakened. Therefore, the weight of air pressure can be increased in this scenario. Since the sum of the weights of air pressure, current, and temperature is one, after increasing the weight of air pressure, the weight of temperature and current can be reduced accordingly.
[0028] S103: Querying a target fan control strategy that matches the air pressure value, the current value, the temperature value, and their corresponding weights from the speed configuration table.
[0029] To achieve precise fan speed control, simulation tests can be used to determine the optimal control strategies for different pressure ranges, current ranges, and temperature ranges under different weight configurations. This information can be pre-recorded in a speed configuration table. The speed configuration table records the fan control strategies for different pressure ranges, current ranges, and temperature ranges under different weight configurations.
[0030] After completing the adjustment of the weights corresponding to the air pressure value, current value and temperature value, the matching fan control strategy can be queried from the speed configuration table based on the air pressure value, current value, temperature value and their corresponding weights.
[0031] Since the speed configuration table includes a large number of fan control strategies, for ease of distinction, the fan control strategy that matches the air pressure value, current value, temperature value and their corresponding weights can be called a target fan control strategy.
[0032] S104: Adjust the speed of the server fan according to the target fan control policy.
[0033] The target fan control strategy includes a method for adjusting the fan speed. The adjustment method may include the speed to which the fan needs to be adjusted, or the ratio to be adjusted based on the current speed.
[0034] After adjusting the speed of the server fan, the system can provide the administrator with feedback on the relevant air pressure, current, temperature and fan status, so that the administrator can understand the heat dissipation status of the server in a timely manner.
[0035] As can be seen from the above technical solution, the air pressure value of the server's environment, as well as the server's current and temperature values, are obtained; changes in these values can reflect the server's operating conditions. The air pressure, current, and temperature values have different impacts on heat dissipation requirements under different operating conditions. To achieve precise heat dissipation for the server, the weights corresponding to these values can be adjusted based on the changes in these values. To quickly and accurately adjust the fan speed, a speed configuration table can be pre-built. The speed configuration table records the fan control strategies corresponding to different air pressure ranges, current ranges, and temperature ranges under different weight configurations. From the speed configuration table, the target fan control strategy that matches the air pressure, current, temperature values, and their corresponding weights can be retrieved. The server fan speed is adjusted according to the target fan control strategy. In this application, by rationally adjusting the weights of the air pressure, current, and temperature values, the fan speed can be more accurately matched to the server's heat dissipation requirements, ensuring that the server maintains good heat dissipation under various operating conditions, thereby improving the heat dissipation effect.
[0036] Figure 2 A flowchart of a method for adjusting weights corresponding to air pressure, current, and temperature values provided in an embodiment of the present application, the method comprising: S201: 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 corresponding to the air pressure value is increased and the weights corresponding to the temperature value and the current value are decreased according to the adjustment method matched with the air pressure change.
[0037] When the server's environment is fixed, the corresponding ambient air pressure is relatively stable.
[0038] In practice, external factors may interfere with the air pressure, causing short-term sudden changes. To ensure accurate judgment of server operating conditions, the air pressure change over a set time period can be used to assess air pressure stability. The air pressure change can be the difference between the maximum and minimum air pressure values collected during the set time period.
[0039] If the air pressure change is less than the set value, there is no sudden change in air pressure. Furthermore, if the air pressure in the server's environment is less than the set threshold, the server is experiencing low air pressure. This low air pressure scenario can include servers at high altitudes or in confined spaces with poor ventilation.
[0040] In low-pressure scenarios, if the fan continues to run at its original speed under normal pressure, its cooling effect will be weakened. To ensure effective cooling for the server, you can increase the weight corresponding to the air pressure value and decrease the weights corresponding to the temperature and current values according to the adjustment method that matches the air pressure change.
[0041] The air pressure threshold, air pressure change, and the adjustment method corresponding to different air pressure changes can be flexibly set according to actual needs.
[0042] Adjusting the weight changes the fan speed adjustment range. For example, when the air pressure weight is high, a small change in air pressure may cause a larger adjustment in fan speed to accommodate the change in cooling capacity caused by the pressure change. When the current weight is increased, current fluctuations will cause larger changes in fan speed, effectively addressing the heat fluctuations caused by load changes.
[0043] S202: When the temperature variation of the server exceeds a set temperature threshold, the weight corresponding to the temperature value is increased and the weights corresponding to the current value and the air pressure value are decreased according to the adjustment method matched with the temperature value.
[0044] When the temperature change of the server exceeds the set temperature threshold, it means that the temperature value is an important factor affecting the heat dissipation of the server. At this time, according to the adjustment method matching the temperature value, the weight corresponding to the temperature value can be increased, and the weights corresponding to the current value and air pressure value can be reduced.
[0045] In this embodiment of the present application, 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 corresponding relationship can be queried to determine the adjustment method that matches the current temperature. The adjustment method can include the values required to adjust the temperature weight, current weight, and pressure weight.
[0046] During server operation, there is a 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: the first temperature range, the second temperature range, and the third temperature range, in ascending order. The first temperature range can be the normal temperature range. The maximum values of these three temperature ranges differ by 15°C.
[0047] For the adjustment of temperature weight, the temperature weight can be increased by 0.1 for every 15°C increase in temperature, and the pressure weight and current weight can be reduced by 0.05 respectively.
[0048] The first temperature range may be 35° C. to 65° C., including 35° C. and excluding 65° C.; 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.
[0049] The second temperature range is 65°C to 80°C, including 65°C and excluding 80°C; the temperature weight corresponding to the second temperature range is 0.4, the pressure weight is 0.25, and the current weight is 0.35.
[0050] The third temperature range is 80°C to 95°C, including 80°C and excluding 95°C; 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.
[0051] When the temperature is greater than or equal to 95℃, a high temperature alarm can be directly issued.
[0052] For example, assuming that the current weight of temperature is 0.3, the weight of air pressure is 0.3, and the weight of current is 0.4, when the temperature exceeds 80°C, the temperature weight can be increased to 0.5, the air pressure weight can be reduced to 0.2, and the current weight can be reduced to 0.3.
[0053] Proper weight adjustment can more accurately match fan speed to the device's cooling requirements, thereby improving cooling effectiveness. In high-temperature environments, increasing the temperature weight allows the fan to respond more closely to temperature changes, increasing speed to enhance heat dissipation and prevent device performance degradation or failure due to overheating. When the temperature weight is increased, the fan speed increases more rapidly as the temperature rises. Because the influence of temperature factors is increased when calculating fan speed, temperature changes have a more significant impact on fan speed, allowing the fan to quickly respond to the device's cooling needs.
[0054] S203: When the current variation of the server exceeds the 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 with the current value.
[0055] When the current change of the server exceeds the set current threshold, it indicates that the current value is an important factor affecting the heat dissipation of the server. At this time, the weight corresponding to the current value can be increased according to the adjustment method matching the current value, and the weights corresponding to the temperature value and air pressure value can be reduced.
[0056] In an embodiment of the present application, a correspondence between different current ranges and adjustment ratios can be pre-established. When the current change of the server exceeds a set current threshold, the matching adjustment method can be determined by querying the correspondence.
[0057] S204: When 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 a set fault adjustment rule.
[0058] In real-world applications, temperature and current often follow similar trends. For example, when a server is under heavy load, processing large amounts of data in a short period of time can increase internal device current and temperature. If the temperature changes don't match the current changes, this could indicate a faulty temperature or current sensor. Adjusting the weights for temperature and current can mitigate the impact of these sensor failures on server cooling.
[0059] The fault adjustment rules may include a weight adjustment rule corresponding to a temperature sensor failure and a weight adjustment rule corresponding to a current sensor failure.
[0060] In an embodiment of the present application, by evaluating the air pressure value, temperature change, current change of the environment in which the server is located, and whether the change in temperature value matches the change in current value, an appropriate weight adjustment rule is determined, thereby achieving precise adjustment of the fan speed and ensuring timely heat dissipation of the server.
[0061] In a fan speed control system, the temperature sensor is a key component for sensing the core temperature of the device. However, when the temperature sensor fails due to drift, disconnection, or aging, it will output erroneous temperature data, resulting in inaccurate fan speed control.
[0062] When a temperature sensor fails, two abnormal situations may occur. The first is that the temperature sensor is stuck and always outputs a fixed temperature value, such as a constant 50°C. The second is that the temperature sensor drifts, and the output temperature deviates from the actual temperature by more than 15°C. For example, when the actual temperature is 65°C, the temperature sensor only displays 48°C.
[0063] A stuck temperature sensor often results in a large current change but a small temperature change. 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, this indicates a stuck temperature sensor. In this case, you can increase the weight corresponding to the current value and decrease the weight corresponding to the temperature value according to the first adjustment ratio.
[0064] For example, suppose a server's load suddenly switches from a regular office environment to a big data computing environment due to business needs. The current in regular office environments is 8A, but in big data computing environments, it rises to 14A. This significantly increases device power consumption, and the actual internal temperature of the server rises from 45°C to 68°C within 10 minutes. However, the failed temperature sensor continues to output 50°C, causing the system to calculate the fan speed based on the 50°C temperature data. When the speed is only slightly adjusted from 1800 rpm to 2000 rpm, the current monitoring module detects an abnormal current spike from 8A to 14A, exceeding the normal fluctuation threshold of 5A, and persisting for 10 minutes without falling back.
[0065] The system's preset current threshold can be 4A, the time threshold can be 5 minutes, and the temperature change can be 5°C. When the temperature change ΔI is greater than 4A and the current value stabilization time is greater than 5 minutes, and the temperature change ΔT is less than 5°C, it is determined that the temperature sensor may have failed. Subsequently, the system automatically starts the redundancy strategy, increases the weight corresponding to the current value according to the first adjustment ratio, and reduces the weight corresponding to the temperature value. For example, the current weight can be increased from 0.3 to 0.6, the temperature weight can be reduced to 0.1, and the air pressure weight can be maintained at 0.3. The fan speed is re-determined based on the adjusted weights. According to the new weight, the high current of 14A will drive the fan speed to 2800rpm quickly, matching the actual heat dissipation requirements and preventing the device from overheating due to temperature sensor failure.
[0066] In the case of temperature sensor drift, the current value often deviates significantly from the current range at the corresponding temperature value. Therefore, in the embodiment of the present application, if the current value deviates from the standard current range by more than a set current deviation threshold and lasts longer 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 and the weight corresponding to the temperature value can be decreased according to a second adjustment ratio; the standard current range is the current range matched by the current temperature value; and the second adjustment ratio is greater than the first adjustment ratio.
[0067] For example, after a server has been running for a long time, its temperature sensor is prone to drift. When the actual CPU temperature reaches 72°C, approaching the overheating threshold of 75°C, the temperature sensor only displays 55°C. Based on this erroneous temperature, the system maintains the fan speed at only 2200 rpm, failing to effectively dissipate heat. However, the current monitoring module detects that the current current is stable at 14.5A. According to historical data, when the temperature is 55°C, the normal current should be between 10A and 11A. The current current is 3.5A higher than the normal range, which is a significant abnormality.
[0068] The system's preset current deviation threshold can be 2A, and the time threshold can be 5 minutes. When the current value deviates from the standard current range at the corresponding temperature by more than 2A and lasts for more than 5 minutes, the temperature sensor data is deemed unreliable. The system then automatically uses current as the core reference, increases the current weight to 0.7, and, based on the air pressure data, adjusts the fan speed to 3000 rpm. It also issues an alarm indicating a temperature sensor anomaly, alerting maintenance personnel to conduct repairs.
[0069] In the embodiment of the present application, a dynamic deviation may be added to the current range matched by the temperature value, thereby obtaining a standard current range.
[0070] In a specific implementation, the correspondence between the current range and the temperature range under different load states 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 that matches the current load state of the server to obtain the standard current range.
[0071] The corresponding relationship between the current range and the temperature range under different load conditions can be determined by testing.
[0072] The load state may include a low load state, a normal load state, and a high load state.
[0073] Different deviation thresholds can be set for different load states. The deviation threshold can be set higher in a high load state, and lower in a low load state.
[0074] In practical applications, if the load is greater than or equal to the first load threshold, it can be determined to be a high load state, and the deviation threshold is set to the first deviation value. If the load is less than or equal to the second load threshold, it can be determined to be a low load state, and the deviation threshold is set to the second deviation value. If the load is within the range of the second load threshold and the first load threshold, that is, the load is greater than the second load threshold and less than the first load threshold, it is within the normal load range. In this case, the load state is normal, and the deviation threshold can be set to zero.
[0075] The second deviation value is smaller than the first deviation value.
[0076] For example, the deviation threshold may be set to 3A at high load and 1.5A at low load.
[0077] In this embodiment, by recording the corresponding relationship between current range and temperature range under different load conditions, the normal current range corresponding to each temperature interval can be clearly determined, providing a basis for abnormal 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.
[0078] In the case of a current sensor failure, the temperature change is often large, but the current change is small. Therefore, in actual applications, if the server's temperature change exceeds 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.
[0079] For example, the system's preset temperature threshold can be 15°C, the time threshold can be 5 minutes, and the current change can be 0.5A. When the temperature change ΔT is greater than 15°C, and the temperature change ΔI is less than 0.5A, and the duration is greater than 5 minutes, it is determined that the current sensor may have failed. Subsequently, the system automatically starts the redundancy strategy, increases the weight corresponding to the temperature value according to the third adjustment ratio, and reduces the weight corresponding to the current value. For example, the temperature weight can be increased from 0.3 to 0.6, the current weight can be reduced to 0.1, and the air pressure weight can be maintained at 0.3. The fan speed is re-determined based on the adjusted weights.
[0080] In the embodiments of the present application, considering that current is directly related to device power consumption, which is positively correlated with heat intensity, and that there is a stable correlation logic between current and temperature, by comprehensively considering changes in temperature and current values, current anomalies can be used as a basis for judging temperature sensor failure, and temperature anomalies can be used as a basis for judging current sensor failure, thereby improving fault tolerance. When changes in temperature and current do not match, adjusting the temperature weight and current weight by comprehensively analyzing changes in current and temperature values can effectively reduce the impact of certain sensor failures.
[0081] In the embodiments of the present application, in addition to adjusting weights based on changes in air pressure, current, and temperature, 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, and the weight of air pressure can be decreased, based on an adjustment method that matches the load change.
[0082] Different load variation ranges can be set for the load variation, and each load variation range has its corresponding temperature weight, current weight, and pressure weight.
[0083] The load is often expressed in percentage form, and the first load variation range may be 0 to 20%, including 0 and excluding 20%. The second load variation range may be greater than or equal to 20%.
[0084] The first load variation range corresponds to a temperature weight of 0.3, a current weight of 0.4, and an air pressure weight of 0.3; the second load variation range corresponds to a temperature weight of 0.4, a current weight of 0.5, and an air pressure weight of 0.1.
[0085] In practical applications, short-term load changes can be predicted through historical data, and the fan speed can be adjusted in advance.
[0086] Figure 2 The weight adjustment rules based on which the weights of the pressure value, the current value and the temperature value are adjusted are introduced. In the embodiment of the present application, in addition to adjusting the weights based on the rules, a machine learning algorithm can also be used to adjust the weights.
[0087] The implementation process for adjusting weights in a machine learning algorithm can include: acquiring historical data; using the historical data to train a speed analysis model to obtain a trained speed analysis model that meets the required speed adjustment accuracy. After the model is trained, the acquired air pressure, current, and temperature values can be directly input into the trained speed analysis model to determine the weights corresponding to each value.
[0088] For example, when the speed analysis model analyzes that the current value is within a certain range and the temperature value continues to rise, the temperature weight and the current weight are automatically increased to optimize the fan speed control.
[0089] The historical data may include historical air pressure data, historical current data, historical temperature data, and corresponding fan speeds. The speed analysis model may adopt a neural network model.
[0090] In an embodiment of the present application, a speed analysis model is trained using historical data. Historical air pressure data, historical current data, historical temperature data, and the corresponding fan speed data are used as training samples, allowing the model to learn the optimal weight distribution under different data combinations. During server operation, the speed analysis model can dynamically calculate and output appropriate weights based on the latest collected air pressure, current, and temperature values, enabling both automated weight adjustment and ensuring the rationality of weight settings.
[0091] In this embodiment of the present application, in addition to adjusting the fan speed, the fan operating power can also be adjusted to improve the heat dissipation effect. After obtaining the air pressure value of the server environment, as well as the server current and temperature values, a target power matching the temperature value can be determined based on the corresponding relationship between temperature and power; the server fan operating power is then adjusted to the target power.
[0092] For example, the CPU's maximum temperature is 80 degrees. When the CPU temperature is 60 degrees, the fan can run at 80% power; when the CPU temperature is 70 degrees, the fan can run at 90% power.
[0093] In order to avoid misjudgment caused by instantaneous mutations in air pressure, temperature and current values, before adjusting the corresponding weights of air pressure, current and temperature values according to the changes in air pressure, current and temperature values, you can first determine whether the air pressure value is at the same air pressure order of magnitude for the consecutive set times, whether the current value is at the same current order of magnitude for the consecutive set times, and whether the temperature value is at the same temperature order of magnitude for the consecutive set times.
[0094] When the air pressure values are set continuously for the same number of times, the current values are set continuously for the same number of times, and the temperature values are set continuously for the same number of times, it means that there are no instantaneous mutations in the air pressure values, temperature values, and current values. At this time, the operating steps of adjusting the weights corresponding to the air pressure values, current values, and temperature values according to the changes in the air pressure values, current values, and temperature values can be executed.
[0095] In an embodiment of the present application, by detecting the air pressure value, current value and temperature value within a set number of consecutive times, it is ensured that the air pressure value, current value and temperature value within a set number of consecutive times are all in the corresponding order of magnitude, thereby effectively avoiding misjudgment caused by instantaneous changes and providing reliable data support for adjusting the fan speed.
[0096] After adjusting the server fan speed according to the target fan control policy, it can be determined whether the server's current and temperature values are within their respective normal ranges within a set recovery time. If the server's current or temperature value is not within its respective normal range within the set recovery time, the fan control policy can be readjusted by returning to the steps of adjusting the weights corresponding to the pressure, current, and temperature values based on changes in the pressure, current, and temperature values.
[0097] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method.
[0098] Figure 3 A schematic diagram of the structure of a server fan control device provided in an embodiment of the present application, comprising an acquisition unit 31, a weight adjustment unit 32, a query unit 33 and a speed adjustment unit 34; An acquisition unit 31 is configured to acquire the air pressure value of the environment in which the server is located, as well as the current value and temperature value of the server; The weight adjustment unit 32 is used to adjust the weights corresponding to the pressure value, the current value and the temperature value according to the changes in the pressure value, the current value and the temperature value; a query unit 33 for querying a target fan control strategy that matches the air pressure value, the current value, the temperature value, and their corresponding weights from a 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; The speed adjustment unit 34 is used to adjust the speed of the server fans according to the target fan control strategy.
[0099] In some embodiments, the weight adjustment unit is used to count the corresponding changes in the air pressure value, current value and temperature value within a set time; wherein the changes include the air pressure change, temperature change and current change; according to the weight adjustment rules matched by the changes, the weights corresponding to the air pressure value, current value and temperature value are adjusted.
[0100] 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; a first adjustment subunit, configured to, when the air pressure value of the environment in which the server is located is less than a set air pressure threshold and the air pressure change is less than a set air pressure change, increase the weight corresponding to the air pressure value and decrease the weights corresponding to the temperature value and the current value according to an adjustment method matched with the air pressure change; wherein the sum of the weights corresponding to the air pressure value, the current value, and the temperature value is one; The second adjustment subunit is configured to increase the weight corresponding to the temperature value and decrease the weights corresponding to the current value and the 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; A third adjustment subunit is configured to increase the weight corresponding to the current value and decrease the weights corresponding to the temperature value and the air pressure value according to an adjustment method matched with the current value when the current change of the server exceeds a set current threshold; The fourth adjustment subunit is used to adjust the weights of the temperature value and the current value according to the set fault adjustment rules when the change in the temperature value does not match the change in the current value; 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.
[0101] In some embodiments, the fourth adjustment subunit is configured 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 a set current threshold, the stabilization time of the current value is greater than a set time threshold, and the temperature change is less than a set temperature change; When the deviation between the current value and 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; and the second adjustment ratio is greater than the first adjustment ratio; When 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 reduced.
[0102] In some embodiments, for determining the standard current range, the device further includes a recording unit, a matching unit, and a current adjustment unit; A recording unit, used to record the corresponding relationship between the current range and the temperature range under different load conditions; A matching unit, configured to query a target current range that matches the current load state and temperature value of the server from the corresponding relationship; The current adjustment unit is used to adjust the target current range according to the deviation threshold matched by the current load state of the server to obtain a standard current range.
[0103] In some embodiments, a fourth adjustment subunit is further included; The fourth adjustment subunit is configured to increase the weights of the temperature and current values and decrease the weight of the pressure value according to an adjustment method matched with the load variation when the load variation of the server exceeds a set load threshold.
[0104] In some embodiments, the weight adjustment unit includes an acquisition subunit, a training subunit, and an output subunit; An acquisition subunit, configured to acquire historical data, wherein the historical data includes historical air pressure data, historical current data, historical temperature data, and corresponding fan speeds; A training subunit is used to train the speed analysis model using historical data to obtain a trained speed analysis model whose speed adjustment accuracy meets the accuracy requirements; The output subunit is used to input the acquired air pressure value, current value and temperature value into the trained speed analysis model to determine the weights corresponding to the air pressure value, current value and temperature value.
[0105] In some embodiments, after obtaining the air pressure value of the environment in which the server is located and the current value and temperature value of the server, a power determination unit and a power adjustment unit are further included; A power determination unit, configured to determine a target power matching the temperature value based on a correspondence between temperature and power; The power adjustment unit is used to adjust the operating power of the server fan to the target power.
[0106] In some embodiments, a stability determination unit is further included; A stability judgment unit is used to judge whether the air pressure values are at the same air pressure order of magnitude for consecutive set times, whether the current values are at the same current order of magnitude for consecutive set times, and whether the temperature values are at the same temperature order of magnitude for consecutive set times; when the air pressure values are at the same air pressure order of magnitude for consecutive set times, the current values are at the same current order of magnitude for consecutive set times, and the temperature values are at the same temperature order of magnitude for consecutive set times, the weight adjustment unit is triggered to execute the operating steps of adjusting the weights corresponding to the air pressure values, current values, and temperature values according to the changes in the air pressure values, current values, and temperature values.
[0107] In some embodiments, a recovery determination unit is further included; The recovery judgment unit is used to judge whether the current value and temperature value of the server are within their respective corresponding normal ranges within the set recovery time; when the current value or temperature value of the server is not within their respective corresponding normal ranges within the set recovery time, the weight adjustment unit is triggered to execute the operating steps of adjusting the weights corresponding to the air pressure value, current value and temperature value according to the changes in the air pressure value, current value and temperature value.
[0108] For the description of the features in the embodiment corresponding to the server fan control device, please refer to the relevant description of the embodiment corresponding to the server fan control method, which will not be repeated here.
[0109] As can be seen from the above technical solution, the air pressure value of the server's environment, as well as the server's current and temperature values, are obtained; changes in these values can reflect the server's operating conditions. The air pressure, current, and temperature values have different impacts on heat dissipation requirements under different operating conditions. To achieve precise heat dissipation for the server, the weights corresponding to these values can be adjusted based on the changes in these values. To quickly and accurately adjust the fan speed, a speed configuration table can be pre-built. The speed configuration table records the fan control strategies corresponding to different air pressure ranges, current ranges, and temperature ranges under different weight configurations. From the speed configuration table, the target fan control strategy that matches the air pressure, current, temperature values, and their corresponding weights can be retrieved. The server fan speed is adjusted according to the target fan control strategy. In this application, by rationally adjusting the weights of the air pressure, current, and temperature values, the fan speed can be more accurately matched to the server's heat dissipation requirements, ensuring that the server maintains good heat dissipation under various operating conditions, thereby improving the heat dissipation effect.
[0110] An embodiment of the present application further provides 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 execute the steps of any of the above-mentioned server fan control method embodiments.
[0111] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any of the above-mentioned server fan control method embodiments when running.
[0112] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0113] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of any of the above-mentioned server fan control method embodiments are implemented.
[0114] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above-mentioned server fan control method embodiments are implemented.
[0115] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0116] The above is a detailed introduction to a server fan control method and electronic device provided by the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core ideas of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the present 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 value and temperature value; adjusting the weights corresponding to the air pressure value, the current value, and the temperature value according to changes in the air pressure value, the current value, and the temperature value; querying a target fan control strategy that matches the air pressure value, the current value, the temperature value, and their respective corresponding weights from a speed configuration table; wherein the speed configuration table records fan control strategies corresponding to different air pressure ranges, different current ranges, and different temperature ranges under different weight configurations; Adjust the speed of the server fans according to the target fan control policy.
2. The server fan control method according to claim 1, characterized in that: Adjusting the weights corresponding to the air pressure value, the current value, and the temperature value according to changes in the air pressure value, the current value, and the temperature value, respectively, includes: Counting the corresponding changes of the air pressure value, the current value and the temperature value within a set time; wherein the changes include the air pressure change, the temperature change and the current change; According to the weight adjustment rule matched by the change amount, the weights corresponding to the air pressure value, the current value, and the temperature value are adjusted.
3. The server fan control method according to claim 2, characterized in that: Adjusting the weights corresponding to the pressure value, the current value, and the temperature value according to the weight adjustment rule matched by the change includes: When the air pressure value of the environment in which the server is located is less than a set air pressure threshold and the air pressure change is less than a set air pressure change, according to the adjustment method matched with the air pressure change, the weight corresponding to the air pressure value is increased, and the weights corresponding to the temperature value and the current value are decreased; wherein the sum of the weights corresponding to the air pressure value, the current value, and the temperature value is one; When the temperature change of the server exceeds a set temperature threshold, the weight corresponding to the temperature value is increased and the weights corresponding to the current value and the air pressure value are decreased according to the adjustment method matched with the temperature value; When the current change of the server exceeds a set current threshold, the weight corresponding to the current value is increased according to the adjustment method matched with the current value, and the weights corresponding to the temperature value and the air pressure value are decreased; When 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 weight adjustment rules corresponding to temperature sensor failure and weight adjustment rules corresponding to current sensor failure.
4. The server fan control method according to claim 3, characterized in that: When the change in the temperature value does not match the change in the current value, adjusting the weights of the temperature value and the current value according to a set fault adjustment rule includes: When the current change of the server is greater than a set current threshold, the stabilization time of the current value is greater than a set time threshold, and the temperature change is less than a set temperature change, increase the weight corresponding to the current value according to a first adjustment ratio, and decrease the weight corresponding to the temperature value; When 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, the weight corresponding to the current value is increased according to 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; and the second adjustment ratio is greater than the first adjustment ratio; When 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 reduced.
5. The server fan control method according to claim 4, characterized in that: Regarding determining the standard current range, the method further includes: Record the corresponding relationship between current range and temperature range under different load conditions; querying a target current range that matches the current load state of the server and the temperature value from the corresponding relationship; The target current range is adjusted according to the deviation threshold matched by the current load state of the server to obtain the standard current range.
6. The server fan control method according to claim 3, characterized in that: Also includes: When the load variation of the server exceeds a set load threshold, the weights of the temperature value and the current value are increased, and the weight of the air pressure value is decreased according to an adjustment method matched with the load variation.
7. The server fan control method according to claim 1, characterized in that: Adjusting the weights corresponding to the air pressure value, the current value, and the temperature value according to changes in the air pressure value, the current value, and the temperature value, respectively, includes: Acquire historical data; wherein the historical data includes historical air pressure data, historical current data, historical temperature data and corresponding fan speed; Using the historical data to train the speed analysis model to obtain a trained speed analysis model whose speed adjustment accuracy meets the accuracy requirements; The obtained air pressure value, the current value, and the temperature value are input into the trained speed analysis model to determine the weights corresponding to the air pressure value, the current value, and the temperature value.
8. The server fan control method according to claim 1, wherein: After obtaining the air pressure value, current value, and temperature value of the server environment, the following is also included: Determining a target power that matches the temperature value based on a correspondence between temperature and power; The operating power of the server fan is adjusted to the target power.
9. The server fan control method according to claim 1, characterized in that: Before adjusting the weights corresponding to the air pressure value, the current value, and the temperature value according to changes in the air pressure value, the current value, and the temperature value, the method further includes: Determine whether the air pressure value is at the same air pressure order of magnitude for consecutive set times, whether the current value is at the same current order of magnitude for consecutive set times, and whether the temperature value is at the same temperature order of magnitude for consecutive set times; When the air pressure values are set continuously for the same number of times, the current values are set continuously for the same number of times, and the temperature values are set continuously for the same number of times, an operating step is performed to adjust the weights corresponding to the air pressure values, the current values, and the temperature values according to changes in the air pressure values, the current values, and the temperature values.
10. An electronic device, characterized in that: include: memory for storing computer programs; A processor is configured to implement the steps of the server fan control method according to any one of claims 1 to 9 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
Fan control method and device fusing temperature and air pressure and storage medium
CN115237227A
Server heat dissipation regulation and control method, device and equipment and storage medium
CN118625903A
Optimization control method and system for intelligent speed regulator of ultra-large fan
CN120212074A