Fan speed regulation method, computer device and readable storage medium

CN122880771APending Publication Date: 2026-10-09ENGINETECH COMPUTER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611377011.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-07
Publication Date
2026-10-09

AI Technical Summary

Technical Problem

然而,风扇高速旋转时产生的高流速气流及夹杂的噪音会直接作用于硬盘,导致硬盘振动,进而降低其读写性能

Benefits of technology

[0014]本申请通过获取硬盘的性能影响参数识别受干扰硬盘,使调速触发与硬盘性能状态直接关联;根据硬盘与风扇的空间位置关系将关联风扇划分为第一类型和第二类型,精确定位调速对象;根据性能影响参数和当前转速降低第一类型风扇转速,减少气流冲击和噪声对受干扰硬盘的干扰;根据第一类型风扇降速导致的散热损失和第二类型风扇的散热贡献,提高第二类型风扇转速以补偿散热,避免局部散热不足。通过上述方式,实现了在降低风扇对硬盘干扰的同时保障散热性能。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122880771A_ABST
    Figure CN122880771A_ABST
Patent Text Reader

Abstract

The application discloses a fan speed regulation method, computer equipment and a readable storage medium, relates to the server heat dissipation technical field, and the method comprises the following steps: obtaining the performance influence parameter of a hard disk, identifying the disturbed hard disk based on the performance influence parameter; according to the spatial position relationship between the hard disk and the fan, the fan associated with the disturbed hard disk is divided into the first type fan and the second type fan; according to the performance influence parameter and the current rotating speed of the first type fan, the rotating speed reduction amount of the first type fan is calculated, and the rotating speed of the first type fan is reduced according to the rotating speed reduction amount; according to the rotating speed reduction amount, the heat dissipation loss amount of the first type fan is calculated, the heat dissipation contribution of the second type fan is calculated according to the spatial position relationship, the rotating speed improvement amount of the second type fan is calculated by combining the heat dissipation loss amount and the heat dissipation contribution of the second type fan, and the rotating speed of the second type fan is improved according to the rotating speed improvement amount. By using the method, the interference of the fan on the hard disk can be reduced, and the heat dissipation performance can be ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of server heat dissipation technology, and in particular to a fan speed control method, computer equipment, and readable storage medium. Background Technology

[0002] As data center server performance continues to improve, the number of hard drives inside the chassis has increased significantly, leading to a surge in heat generation. To ensure heat dissipation, servers are typically equipped with multiple high-speed fans. However, the high-speed airflow and accompanying noise generated by the fans directly affect the hard drives, causing them to vibrate and consequently reducing their read and write performance. Summary of the Invention

[0003] Therefore, it is necessary to provide a fan speed control method, computer device, and readable storage medium that can reduce fan interference with hard drives while ensuring heat dissipation performance, in order to address the aforementioned technical problems.

[0004] To solve the above-mentioned technical problems, firstly, a fan speed control method is provided, the method comprising: Obtain hard drive performance impact parameters and identify affected hard drives based on these parameters; Based on the spatial relationship between the hard drive and the fan, the fans associated with the affected hard drive are divided into Type I fans and Type II fans; Based on the performance impact parameters and the current speed of the first type of fan, calculate the speed reduction of the first type of fan, and reduce the speed of the first type of fan according to the speed reduction. The heat loss of the first type of fan is calculated based on the reduction in speed. The heat dissipation contribution of the second type of fan is calculated based on the spatial relationship. The increase in speed of the second type of fan is calculated by combining the heat loss and the heat dissipation contribution of the second type of fan. The speed of the second type of fan is then increased based on the increase in speed.

[0005] In one embodiment, obtaining hard drive performance impact parameters and identifying the affected hard drive based on these parameters includes: Obtain the real-time read / write performance parameters and baseline performance parameters of each hard drive; The impact rate of each hard drive is calculated based on real-time read / write performance parameters and baseline performance parameters, and the impact rate is used as the performance impact parameter. Compare the impact rate of each hard drive with a preset threshold; Hard drives with an impact rate greater than a preset threshold are identified as affected hard drives.

[0006] In one embodiment, classifying the fans associated with the interfered hard drive into a first type of fan and a second type of fan based on the spatial relationship between the hard drive and the fan includes: Obtain the three-dimensional spatial coordinates of each hard drive and each fan; The weighted distances between each hard drive and each fan are calculated based on three-dimensional spatial coordinates to form a distance matrix; Based on the distance matrix, the fan with the smallest weighted distance to the interfered hard drive is identified as the first type of fan, and the fans associated with the interfered hard drive other than the first type of fan are identified as the second type of fan.

[0007] In one embodiment, calculating the speed reduction of the first type of fan based on the performance impact parameters and the current speed of the first type of fan includes: The reduction in the speed of the first type of fan is calculated based on the affected rate, the current speed of the first type of fan, and the first calculation formula. The first calculation formula is expressed as follows: △V near =V near ×α×(R i -R dead ) β ; Wherein, △V near V represents the amount of speed reduction. near R represents the current rotational speed. i R represents the rate of impact. dead α represents the preset threshold, β represents the speed regulation coefficient, and β represents the exponential coefficient.

[0008] In one embodiment, the heat dissipation loss of the first type of fan is calculated based on the reduction in rotational speed, and the heat dissipation contribution of the second type of fan is calculated based on spatial position, including: The heat loss of the first type of fan is calculated based on the reduction in speed and the second calculation formula. The heat dissipation contribution of the second type of fan is calculated based on the spatial relationship and the third calculation formula; The second calculation formula is expressed as follows: Q loss =η i,near ×△V near ; Among them, Q loss Indicates heat loss due to heat dissipation, i represents the hard drive serial number, and η represents heat loss due to heat dissipation. i,near ΔV represents the heat dissipation contribution of the first type of fan to hard drive i. near Indicates the amount of speed reduction; The third calculation formula is expressed as follows: ; Where, η i,k D represents the heat dissipation contribution of the second type of fan k to hard drive i. i,k γ represents the weighted distance between hard disk i and second-type fan k, and γ represents the attenuation factor.

[0009] In one embodiment, calculating the increase in the rotational speed of the second type of fan by combining the heat loss and the heat dissipation contribution of the second type of fan includes: The increase in the speed of the second type of fan is calculated by combining the heat loss, the heat dissipation contribution of the second type of fan, and the fourth calculation formula. The fourth calculation formula is expressed as follows: ; Wherein, △V k Indicates the increase in rotational speed, η i,k ∑η represents the heat dissipation contribution of the second type of fan k to hard drive i. i,far Q represents the total cooling contribution of all secondary fans. loss λ represents the heat loss due to heat dissipation, and λ is the heat dissipation redundancy compensation coefficient.

[0010] In one embodiment, when there are multiple affected hard drives, the method further includes: Obtain the required increase in fan speed for the target type II fan for each affected hard drive; The maximum value among the various speed increase amounts is taken as the final speed increase amount of the target second type of fan; Increase the speed of the target type II fan based on the final increase in speed.

[0011] In one embodiment, the method further includes: Get the target speed of the second type of fan at the current moment; Get the final speed of the second type of fan at the previous moment; The final speed of the second type of fan at the current moment is determined based on the difference between the target speed and the final speed at the previous moment, as well as the preset smoothing step size.

[0012] To address the aforementioned technical problems, a second aspect provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to perform the following steps: the processor executes the computer program to perform the steps of the method described in the first aspect.

[0013] In order to solve the above-mentioned technical problems, in a third aspect, this application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method described in the first aspect.

[0014] This application identifies the affected hard drive by acquiring its performance impact parameters, directly linking speed adjustment triggering to the hard drive's performance status. Based on the spatial relationship between the hard drive and the fan, associated fans are categorized into a first type and a second type, precisely locating the target for speed adjustment. The speed of the first type of fan is reduced based on the performance impact parameters and the current fan speed, minimizing airflow impact and noise interference to the affected hard drive. The speed of the second type of fan is increased to compensate for heat loss due to the reduced speed of the first type of fan and the heat dissipation contribution of the second type of fan, preventing localized insufficient heat dissipation. Through these methods, heat dissipation performance is maintained while reducing fan interference with the hard drive. Attached Figure Description

[0015] 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.

[0016] Figure 1 This is a flowchart illustrating the fan speed control method in related technologies; Figure 2 This is a schematic diagram of the fan speed control system in one embodiment; Figure 3 This is a structural block diagram of a fan speed control device in one embodiment; Figure 4 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0017] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0018] In one embodiment, such as Figure 1 As shown, a fan speed control method is provided, which includes the following steps: Step 101: Obtain the performance impact parameters of the hard drive, and identify the affected hard drive based on the performance impact parameters.

[0019] It can obtain the real-time read / write performance parameters and baseline performance parameters of each hard drive; calculate the impact rate of each hard drive based on the real-time read / write performance parameters and baseline performance parameters, and use the impact rate as the performance impact parameter; compare the impact rate of each hard drive with a preset threshold; and identify hard drives with an impact rate greater than the preset threshold as interfered hard drives.

[0020] During server operation, hard drive read / write performance is not constant. The airflow and vibration generated by the high-speed fan can interfere with normal hard drive read / write operations, causing its actual performance to deviate from normal levels. To quantify the degree of this interference, two types of performance parameters are needed: one is the hard drive's actual read / write performance at the current moment, including but not limited to input / output operations per second (IOPS) and throughput; the other is the hard drive's baseline performance parameters, which are the nominal performance value or historical best performance value of the hard drive under undisturbed conditions. These parameters can be pre-stored in the storage module or obtained from the specifications book by reading the hard drive model information. By monitoring the hard drive's read / write performance in real time, replacing traditional temperature feedback as the speed adjustment trigger condition, the system can detect anomalies the instant that hard drive performance is affected, thus achieving a faster response.

[0021] The impact rate of each hard drive can be calculated based on the obtained real-time performance parameters and baseline performance parameters to quantify the current degree of interference to the hard drive. Specifically, the formula for calculating the impact rate is as follows: R i =(P 基准,i -P 实际,i ) / P 基准,i ; Among them, R i P represents the impact rate of the i-th hard drive. 基准,i P represents the baseline performance parameter of the i-th hard drive. 实际,i This represents the real-time performance parameters of the i-th hard drive.

[0022] Taking IOPS as an example, if a hard drive has a nominal IOPS of 10,000, but the actual IOPS is only 8,500, then the impact rate is (10,000-8,500) / 10,000=0.15, which means that the performance of the hard drive has decreased by 15% due to interference.

[0023] A higher impact rate indicates a more severe interference from fan vibration / noise to the hard drive, thus providing a quantitative basis for subsequent speed adjustment decisions. Using this impact rate as a performance impact parameter allows the speed adjustment range to be directly linked to the degree of hard drive performance degradation, achieving precise speed adjustment.

[0024] Different hard drive models have varying sensitivities to vibration and noise, therefore, it is necessary to set appropriate threshold values ​​for each hard drive. Pre-stored threshold values ​​R can be stored in the storage module. th1This preset threshold is used to determine whether the hard drive is under interference. If the hard drive's interference rate is higher than this threshold, it indicates that the hard drive's performance has significantly degraded, requiring fan speed adjustment intervention; if it is lower than this threshold, it indicates that the hard drive's performance fluctuation is within an acceptable range, and speed adjustment is not necessary. By setting a threshold, frequent adjustments to the fan speed can be avoided when there are slight fluctuations in hard drive performance, ensuring the stability of system operation. Preferably, R th1 It can be set to 0.10.

[0025] All affected hard drives that require fan speed intervention are identified and a list of affected hard drives is created. The fans associated with the affected hard drives are then adjusted to avoid ineffective speed control.

[0026] Step 102: Based on the spatial relationship between the hard drive and the fan, the fans associated with the interfered hard drive are divided into first-type fans and second-type fans.

[0027] Obtain the three-dimensional spatial coordinates of each hard drive and each fan; calculate the weighted distance between each hard drive and each fan based on the three-dimensional spatial coordinates to form a distance matrix; based on the distance matrix, determine the fan with the smallest weighted distance to the interfered hard drive as the first type of fan, and designate the fans associated with the interfered hard drive other than the first type of fan as the second type of fan.

[0028] Inside a server chassis, hard drives and fans are housed in fixed slots and fixed positions, respectively. To accurately describe the spatial relationship between the hard drives and fans, a three-dimensional coordinate system needs to be established.

[0029] Please see Figure 2 In the three-dimensional coordinate system, the X-axis represents the depth direction, indicating the front-to-back distance between the hard drive and the fan. This direction is the main direction of airflow, meaning that the airflow generated by the fan flows along the X-axis and blows towards the hard drive. Therefore, the distance in the X-axis direction has the greatest impact on the vibration / noise interference experienced by the hard drive. The Y-axis represents the width direction, indicating the left-to-right distance between the hard drive and the fan, affecting whether the airflow is aligned with the center of the hard drive. The Z-axis represents the height direction, indicating the vertical distance between the hard drive and the fan, affecting whether the airflow covers the surface of the hard drive.

[0030] After establishing a three-dimensional spatial coordinate system, obtain the coordinates (X, Y, F, Z) of the geometric center of each hard disk. i ,Y i Z i ) and the geometric center coordinates (X) of each fan j ,Y j Z j The three-dimensional coordinates of each hard drive and fan are pre-stored in the storage module. Here, subscript i represents the i-th hard drive, and subscript j represents the j-th fan. The storage module pre-stores the three-dimensional coordinate information of each hard drive and fan so that the control module can query and retrieve it in real time during speed adjustment, eliminating the need to repeatedly calculate the coordinate values ​​and thus improving system response speed.

[0031] After obtaining the three-dimensional spatial coordinates, the spatial relationship between the hard drive and the fan can be determined based on these coordinates. Specifically, this can be achieved by calculating the spatial distance between the fan and the hard drive. For example, this can be calculated using the following formula: D i,j =ωX·|X i -X j |+ωY·|Y i -Y j |+ωZ·|Z i -Z j |; Among them, D i,j, Let ωX, ωY, and ωZ represent the spatial distance between the i-th hard drive and the j-th fan, respectively. ωX, ωY, and ωZ are the distance weighting coefficients along the X, Y, and Z axes, respectively, satisfying ωX > ωY ≥ ωZ > 0. Since the X-axis is the dominant airflow direction, the airflow generated by the fan directly in front of the hard drive directly impacts the hard drive surface, resulting in significantly greater vibration / noise interference than fans located to the side or above / below. Therefore, the X-axis direction has the largest weight. The influence of the Y and Z axes is relatively smaller, and their weights are correspondingly smaller.

[0032] Using weighted distance as a metric ensures that, within the same spatial distance, the fan located directly in front of the affected hard drive (in the X-axis direction) is preferentially identified as the source of interference, thus achieving precise location.

[0033] After calculating the weighted distances between all hard drives and all fans, the distances are stored in the storage module to form a distance matrix for subsequent steps to query and retrieve.

[0034] The weighted distances between the affected hard drive and each fan can be retrieved from the distance matrix. The fan with the smallest weighted distance is selected as the first-type fan. The first-type fan is the near-end fan of the affected hard drive. Since the X-axis direction has the largest weight in the weighted distance, the fan with the smallest weighted distance is actually the fan located directly in front of the affected hard drive, causing the greatest vibration / noise interference. After identifying this fan as the first-type fan, subsequent steps will perform a speed reduction operation on it to reduce airflow impact and noise interference to the hard drive.

[0035] When a fan is running, the airflow it generates gradually attenuates as it propagates within the chassis. This attenuation consists of two parts: energy loss due to air viscosity and turbulent dissipation, and local resistance loss due to the airflow structure (such as obstacles, bends, and cross-sectional changes). The farther the airflow travels, the greater the attenuation. Furthermore, the attenuation characteristics differ in different spatial directions. The X-axis (the main airflow direction) is the axial direction of the fan's exhaust; airflow in this direction has high dynamic pressure and directionality, resulting in relatively slow attenuation. Conversely, the Y-axis and Z-axis are the radial directions of the fan's exhaust; airflow in these directions is primarily diffusion and entrainment, leading to relatively faster attenuation.

[0036] This application sets up a distance weighting coefficient for different axial directions that can be calculated based on the airflow attenuation characteristics of the fan. Specifically, for any axial direction p, where p belongs to any one of the X-axis, Y-axis, or Z-axis directions, the weighting coefficient ωp is expressed as: ; Where ωp represents the distance weighting coefficient corresponding to any axial direction, P0 represents the base air pressure at the fan outlet (or the real-time air pressure at the current fan speed), and L p τ represents the distance between the hard drive and the fan in the p direction. p G represents the linear attenuation coefficient in the p direction. p P represents the nonlinear attenuation coefficient in the p-direction. ref q represents the reference wind pressure value. p q represents the directional attenuation correction factor in the p direction. For the X-axis direction, q p The value equals 1; for the Y-axis and Z-axis directions, 0 < q p <1, and q in the Y-axis direction p q is greater than or equal to the z-axis direction p .

[0037] g of this application p With q p The values ​​can be obtained through offline experimental calibration or computational fluid dynamics simulation. For a specific chassis model, the airflow velocity at different spatial locations within the chassis is measured at different fan speeds. The linear and nonlinear attenuation coefficients in each direction are determined by fitting the velocity attenuation curve. After calibration, the attenuation coefficients are pre-stored in the storage module for use by the control module during runtime.

[0038] During actual operation, the base air pressure at the fan outlet changes as the fan speed changes. The control module acquires the current speed of each fan in real time, determines the air pressure at the current speed based on the fan performance curve, and updates the distance weighting coefficients in each direction by substituting the air pressure at the current speed into the formula mentioned above. If any fan speed change is detected to exceed a preset threshold (e.g., the rate of change exceeds 5%), the weighting coefficients are updated to ensure that the weighting coefficients always match the current operating conditions.

[0039] The second type of fan consists of all fans other than the first type. These second-type fans are located at the furthest point of the affected hard drive. They are used to share the heat dissipation compensation task. When the first type of fan slows down, causing a decrease in heat dissipation capacity, the speed of the second type of fan is increased to compensate for the heat loss and avoid localized insufficient heat dissipation. There can be one or more second-type fans. Through this method, the fan causing the greatest interference to the affected hard drive is accurately located based on three-dimensional spatial coordinates and weighted distance, providing a precise basis for subsequent differentiated speed reduction. Simultaneously, other fans are considered as candidate targets for heat dissipation compensation, laying the foundation for multi-fan coordinated speed control.

[0040] This application establishes distance weighting coefficients for different axial directions based on the airflow attenuation characteristics of fans. Through a combination of linear and nonlinear attenuation terms and a directional attenuation correction factor, the distance weighting coefficients in the X, Y, and Z directions can respectively reflect the differences in airflow attenuation characteristics in their respective directions. Simultaneously, the weighting coefficients can dynamically and adaptively adjust according to the fan's operating status, making the weighted distance calculation more closely resemble the actual physical process. Based on this, the weighted distance calculated using dynamic weights can accurately locate the first type of fan that causes the greatest interference to the affected hard drive, while accurately quantifying the heat dissipation contribution of each second type of fan. This provides a precise spatial positioning basis and a quantitative basis for heat dissipation capacity for subsequent coordinated speed adjustment, including near-end speed reduction and far-end speed increase compensation based on heat dissipation contribution, thereby effectively ensuring heat dissipation performance while reducing fan vibration / noise interference to the hard drive.

[0041] Step 103: Calculate the speed reduction of the first type of fan based on the performance impact parameters and the current speed of the first type of fan, and reduce the speed of the first type of fan based on the speed reduction.

[0042] The reduction in the speed of the first type of fan is calculated based on the affected rate, the current speed of the first type of fan, and the first calculation formula. The first calculation formula is expressed as follows: △V near =V near ×α×(R i -R dead ) β ; Wherein, △V nearV represents the amount of speed reduction. near R represents the current speed of the first type of fan. i R represents the rate of impact. dead This represents a preset threshold to avoid R. i Frequent fluctuations in the vicinity cause frequent changes in fan speed, i.e., a secondary small-range reduction in the impact rate, such as 0.03, etc. α represents the speed regulation coefficient, which is an adjustable positive number used to control the speed regulation range. It can be calibrated and adjusted according to the actual system characteristics (such as fan performance curves, chassis airflow structure, etc.). β represents the exponential coefficient, (R... i -R dead ) β Indicates the effective speed regulation amount, when R i Greater than R dead When the effective speed regulation is positive, speed reduction is executed. i Less than or equal to R dead When the effective speed regulation value is zero or negative, speed reduction will not be implemented to avoid frequent fluctuations in fan speed. dead This feature avoids the system frequently adjusting fan speed when hard drive performance fluctuates within a small range, thus ensuring system stability.

[0043] Once the fan speed reduction amount is obtained, the speed of the first type of fan can be reduced from its current speed to the difference between the current speed and the reduction amount, thereby reducing the airflow impact and noise generated by the fan on the affected hard drive. In this way, the degree of hard drive performance degradation (affect rate) is directly mapped to the fan speed reduction amount, realizing quantitative driving from performance feedback to speed adjustment execution, replacing the blind speed adjustment method that relies on trial and error and step adjustments in traditional solutions.

[0044] Step 104: Calculate the heat loss of the first type of fan based on the reduction in speed, calculate the heat dissipation contribution of the second type of fan based on the spatial relationship, calculate the increase in speed of the second type of fan by combining the heat loss and the heat dissipation contribution of the second type of fan, and increase the speed of the second type of fan based on the increase in speed.

[0045] The reduced speed of the first type of fan leads to a decrease in airflow in the area where the fan is located, resulting in a corresponding decrease in heat dissipation capacity. To quantitatively assess this heat loss, it is necessary to calculate the heat loss of the first type of fan based on the speed reduction. Specifically, the heat loss of the first type of fan is calculated based on the speed reduction and the second calculation formula; the heat dissipation contribution of the second type of fan is calculated based on the spatial relationship and the third calculation formula. The second calculation formula is expressed as follows: Q loss =η i,near ×△V near ; Among them, Q lossIndicates heat loss due to heat dissipation, and indicates the decrease in heat dissipation capacity due to the reduced speed of the first type of fan; i represents the hard drive serial number, η i,near This represents the heat dissipation contribution of the first type of fan to hard drive i, reflecting the fan's ability to improve hard drive cooling; △V near Indicates the amount of speed reduction; To determine how much heat dissipation compensation each of the second-type fans can provide to the affected hard drive, it is necessary to calculate the heat dissipation contribution of each second-type fan based on the spatial relationship and a third calculation formula, which is expressed as follows: ; Where, η i,k This represents the heat dissipation contribution of the second type of fan k to hard drive i, reflecting the fan's ability to improve hard drive cooling; D i,k γ represents the weighted distance between hard drive i and the second-type fan k, and γ represents the attenuation factor, used to control the rate at which the heat dissipation contribution decreases with increasing distance. It can be understood that D... i,k It can be based on D i,j It can be found in the distance matrix formed by the corresponding calculation formula.

[0046] After obtaining the heat loss and the heat dissipation contribution of each second type of fan, it is necessary to determine how much the speed of each second type of fan should be increased to make up for the heat loss caused by the speed reduction of the first type of fan. The speed increase of the second type of fan is calculated by combining the heat loss, the heat dissipation contribution of the second type of fan and the fourth calculation formula. The fourth calculation formula is expressed as follows: ; Wherein, △V k Indicates the increase in rotational speed, η i,k ∑η represents the heat dissipation contribution of the second type of fan k to hard drive i. i,far Q represents the total cooling contribution of all secondary fans. loss λ represents the heat loss due to heat dissipation, and λ is the heat dissipation redundancy compensation coefficient, which is a positive number greater than or equal to 1 (preferably 1.1~1.3). It is used to compensate for the energy loss in the actual heat dissipation process and ensure that the compensation amount is sufficient to make up for the actual heat dissipation loss.

[0047] After calculating the speed increase for each type of second-generation fan, the target speed for each type of second-generation fan is: V k,target =V k +△V k ; Among them, V k,target V represents the target speed that the k-th type II fan should achieve after speed adjustment. k This represents the current rotational speed of the kth type-2 fan.

[0048] In this way, each second-type fan is allocated a heat dissipation compensation task according to its heat dissipation contribution to the total contribution. The fan with the greater heat dissipation contribution undertakes more compensation tasks, thereby achieving precise quantitative allocation of heat dissipation compensation and effectively avoiding localized insufficient heat dissipation caused by the reduction in speed of the first-type fan.

[0049] In real-world server operation scenarios, the chassis typically houses multiple hard drives. When multiple hard drives are simultaneously subjected to fan vibration / noise interference, multiple affected hard drives may be identified, each corresponding to a different set of first-type and second-type fans.

[0050] In this situation, it's possible for the same fan to be selected as the second type of fan by multiple affected hard drives simultaneously. For example, fan A might be the second type of fan (for heat dissipation compensation) for hard drive 1, and also for hard drive 2. In this case, hard drive 1 and hard drive 2 each calculate a required increase in fan speed for fan A based on their own heat loss and the heat dissipation contribution of fan A. These two required values ​​may differ, even significantly. If the system cannot handle this conflicting demand, it may lead to chaotic speed adjustment decisions, making it impossible to simultaneously meet the heat dissipation compensation needs of multiple hard drives.

[0051] To address this technical issue, this application sets up a system where, when multiple hard drives are affected, the required speed increase for the target second-type fan is obtained for each affected hard drive. The maximum value among these speed increase values ​​is taken as the final speed increase for the target second-type fan. The speed of the target second-type fan is then increased based on this final speed increase. In a server chassis, multiple hard drives are typically configured. The same second-type fan may be selected as the heat dissipation compensation target by multiple affected hard drives simultaneously. Each affected hard drive calculates its own required speed increase based on its heat loss and the fan's heat dissipation contribution. Since the cooling effect resulting from the increased fan speed is shared by all hard drives, executing the speed increase based on the highest requirement ensures that the cooling needs of all affected hard drives are met, avoiding the risk of some hard drives overheating due to insufficient cooling.

[0052] For example, consider the requirement of multiple affected hard drives for the same fan k: ΔV k,final =max(ΔV) k,1 ΔV k,2 ΔV k,3 ...); Where, ΔV k,final ΔV represents the final increase in fan speed k. k,1 ΔV k,2 ΔV k,3 These represent the required increase in fan speed for each affected hard drive.

[0053] When the fan speed is increased, the airflow and cooling effect are shared by all hard drives. Boosting the speed based on the highest demand ensures that the cooling needs of all affected hard drives are met; conversely, using average or minimum speeds may result in some hard drives not meeting their cooling needs, potentially leading to localized overheating.

[0054] In the above steps, the first type of fan performs a speed reduction operation, and the second type of fan performs a speed increase operation. The speed adjustment range is quantitatively calculated based on hard drive performance impact parameters and heat dissipation loss. However, if the fan speed changes drastically within a single control cycle, it may cause the following problems: sudden speed changes may generate additional transient vibrations and noise impacts, which may cause new interference to the hard drive; sudden speed changes may cause drastic fluctuations in the airflow state within the air duct, affecting heat dissipation stability; and simultaneous large speed adjustments by multiple fans may cause system oscillations, reducing the smoothness of system operation.

[0055] To avoid the above problems, this application sets up a smooth transition mechanism to limit the rate of change of fan speed, so that the speed changes gradually cycle by cycle, preventing sudden changes in speed from causing system oscillation or additional noise impact.

[0056] In each control cycle t, two types of speed data are first acquired: the target speed of the second type of fan at the current moment, calculated by the fourth calculation formula, reflecting the theoretically achievable speed value based on heat dissipation requirements; and the final speed of the fan at the previous moment (t-1), which is the actual output speed value after smoothing in the previous cycle. The time interval between the two moments corresponds to the system's control cycle, which is a preset fixed duration (e.g., speed adjustment calculation is performed every 100ms or 500ms). Using the actual output value of the previous cycle as the benchmark and the target value of the current cycle as the trend direction, the difference between the two is used to control the magnitude of speed change, thereby achieving a smooth transition.

[0057] To obtain the target rotational speed at the current moment, V k,target(t) The final rotational speed V at the previous moment k,final(t-1) Then, calculate the difference between the two, multiply this difference by a preset smoothing step size, and add it to the final rotational speed at the previous moment to obtain the final rotational speed at the current moment. V k,final(t) =V k,final(t-1) +δ×[V k,target(t) -V k,final(t-1) ]; Where δ is the smoothing step size (0 < δ ≤ 1), used to control the rate of change of rotational speed. The smaller the smoothing step size, the smoother the change in rotational speed; the larger the smoothing step size, the faster the rotational speed approaches the target value. Preferably, δ can be taken as 0.2 to prevent sudden changes in rotational speed.

[0058] The final speed at the current moment is shifted one step towards the target speed from the final speed at the previous moment. The size of the step is controlled by the smoothing step size δ. In this way, the fan speed will not jump directly to the target value in a single cycle, but will gradually approach it cycle by cycle, thus achieving a smooth transition.

[0059] When hard drive performance degrades due to fan vibration / noise interference, the speed of the first type of fan is reduced to eliminate the interference, while the speed of the second type of fan is increased to compensate for heat dissipation. However, in extreme cases, if the speed reduction of the first type of fan is too large, the heat dissipation compensation of the second type of fan is insufficient, or the ambient temperature of the chassis suddenly rises, the hard drive temperature may exceed the safe operating range.

[0060] To ensure the absolute safety of the system and prevent hard drive overheating and damage due to the speed reduction operation, this application sets up a temperature protection mechanism with the highest priority. When the temperature safety is threatened, the speed reduction operation will be terminated immediately and unconditionally to avoid further deterioration of heat dissipation.

[0061] The fan speed control method provided in this application also includes: real-time monitoring of the temperature of each hard drive; when the margin between the current temperature of any hard drive and the preset critical temperature is less than 3°C, the speed reduction operation of the first type of fan is terminated.

[0062] The 3°C critical margin setting was achieved through comprehensive consideration. If the margin is too large (e.g., 10°C), the protection mechanism will intervene too early, the first type of fan will not be able to reduce its speed sufficiently, the interference elimination effect will be greatly reduced, and the core speed regulation objective of this application will be difficult to achieve. If the margin is too small (e.g., 1°C), the response time between triggering protection and the actual temperature exceeding the limit will be insufficient. The delay between the temperature sensor sampling period and the fan speed regulation response time (usually on the order of seconds) may cause the system to be unable to react in time, posing a risk of overheating and damage. Therefore, 3°C is the optimal value after comprehensively balancing the speed regulation response time, the rate of temperature rise, and the hard drive's temperature sensitivity.

[0063] Terminating the speed reduction operation can either immediately stop further speed reduction of the Type 1 fan corresponding to the hard drive, restoring the fan speed to its pre-slowdown value, or forcibly increase the fan speed based on the current temperature to ensure that the hard drive temperature does not continue to rise and remains within a safe range. This termination operation is a forced interruption, and its priority is higher than normal speed reduction commands; any speed reduction requests are ignored when temperature protection is triggered.

[0064] The temperature protection mechanism has the highest priority, meaning that the execution of this protection logic takes precedence over all other speed control steps in this application (including speed reduction, speed increase, multi-hard drive conflict handling, smooth transition, etc.). This is to ensure that the system prioritizes hardware safety in case of a conflict between the speed control strategy and thermal safety under extreme operating conditions.

[0065] It should be understood that, although Figure 1 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 1 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.

[0066] Please continue reading. Figure 2 This application provides a fan speed control system, including a server chassis, multiple hard drives, multiple fans, a storage module, a performance monitoring module, and a control module.

[0067] The chassis serves as the physical support structure for the fan speed control system, housing and securing multiple hard drives and fans within it. The chassis contains pre-set hard drive bays and fan mounting positions. The physical layout of these bays and positions within the chassis determines their spatial relationship, thus affecting the airflow generated by the fans for heat dissipation and the degree of vibration / noise interference.

[0068] Multiple hard drives are installed in fixed slots within the chassis. Hard drives are the primary storage medium of the server, used to store the operating system, applications, and user data. Their read / write performance directly affects the server's data processing capabilities and response speed. The geometric center position of the hard drive within the chassis can be precisely represented by three-dimensional spatial coordinates. In the fan speed control method of this application, the real-time read / write performance parameters of the hard drive (such as IOPS and throughput) serve as the basis for determining whether the hard drive is affected by fan vibration / noise interference, and as the quantitative input parameters for driving fan speed control.

[0069] Multiple fans are fixed in positions within the chassis. These fans drive airflow within the chassis, creating forced convection airflow to dissipate heat generated by the hard drive and other components, keeping them within their permissible operating temperature range. The geometric center of each fan within the chassis can be precisely represented using three-dimensional coordinates. While providing cooling for the system, the high-speed rotation of the fans generates airflow impacts and noise that can cause vibration / noise interference to the hard drive, leading to a decrease in hard drive read / write performance. Therefore, the fan is both a heat dissipation source and a source of interference.

[0070] The storage module is used to store the three-dimensional coordinate information, distance matrix, and preset thresholds of each hard drive and fan.

[0071] The performance monitoring module is used to acquire real-time read and write performance parameters for each hard drive. These parameters include, but are not limited to, input / output operations per second (IOPS) and throughput. The performance monitoring module interacts with the underlying operating system driver via a hard drive controller interface (such as SATA, SAS, or NVMe), continuously acquiring real-time read and write performance parameters for each hard drive at a preset acquisition period, and then transmitting the acquired data to the control module.

[0072] Through the performance monitoring module, the system can sense changes in hard drive read and write performance in real time. When the hard drive is subjected to fan vibration / noise interference, its read and write performance parameters will reflect this change in real time, thus providing a direct basis for the control module to trigger speed adjustment, replacing the traditional temperature feedback and making the speed adjustment response more timely.

[0073] The control module, either a BMC (Baseboard Management Controller) or a CPU (Central Processing Unit), is used to execute the fan speed control method of this application. The control module is communicatively connected to the storage module, the performance monitoring module, and multiple fans.

[0074] Specifically, the control module obtains real-time read / write performance parameters of each hard drive from the performance monitoring module, and reads the baseline read / write performance parameters, three-dimensional coordinate information, distance matrix, and preset threshold of each hard drive from the storage module; calculates the impact rate of each hard drive based on the real-time read / write performance parameters and the baseline read / write performance parameters, and identifies the interfered hard drive based on the impact rate; locates the first type fan and the second type fan corresponding to the interfered hard drive based on the distance matrix and the weighted distance; calculates the speed reduction of the first type fan based on the impact rate and the current speed of the first type fan and performs speed reduction; calculates the heat dissipation loss based on the speed reduction, calculates the heat dissipation contribution of the second type fan based on the weighted distance, and calculates the speed increase of the second type fan based on the heat dissipation loss and heat dissipation contribution and performs speed increase.

[0075] In addition, the control module also performs auxiliary functions such as multi-hard drive conflict handling, smooth transition, and temperature protection to achieve precise speed regulation of multiple fans in coordination.

[0076] The above system enables precise speed control of multiple fans based on hard drive performance feedback, ensuring hard drive heat dissipation performance while reducing fan vibration / noise interference.

[0077] In one embodiment, such as Figure 3 As shown, a fan speed control device is provided, including: an acquisition module 20, a division module 21, and a processing module 22, wherein: The acquisition module 20 is used to acquire the performance impact parameters of the hard drive and identify the interfered hard drive based on the performance impact parameters; The partitioning module 21 is used to partition the fans associated with the interfered hard drive into a first type of fan and a second type of fan according to the spatial relationship between the hard drive and the fan; Processing module 22 is used to calculate the speed reduction of the first type of fan based on the performance impact parameters and the current speed of the first type of fan, and reduce the speed of the first type of fan based on the speed reduction. The heat loss of the first type of fan is calculated based on the reduction in speed. The heat dissipation contribution of the second type of fan is calculated based on the spatial relationship. The increase in speed of the second type of fan is calculated by combining the heat loss and the heat dissipation contribution of the second type of fan. The speed of the second type of fan is then increased based on the increase in speed.

[0078] Specific limitations regarding the fan speed control device can be found in the limitations of the fan speed control method above, and will not be repeated here. Each module in the aforementioned fan speed control device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0079] In one embodiment, this application also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions, and when the program instructions are executed by a computer, the computer is able to execute the fan speed control methods provided by the above methods.

[0080] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 4As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database stores data used in the fan speed control method. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it implements a fan speed control method.

[0081] Those skilled in the art will understand that Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0082] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0083] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0084] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application.

Claims

1. A fan speed control method, characterized in that, include: Obtain hard drive performance impact parameters, and identify the affected hard drive based on the performance impact parameters; Based on the spatial relationship between the hard drive and the fan, the fans associated with the interfered hard drive are divided into a first type of fan and a second type of fan; Based on the performance impact parameters and the current speed of the first type of fan, calculate the speed reduction of the first type of fan, and reduce the speed of the first type of fan according to the speed reduction. The heat loss of the first type of fan is calculated based on the decrease in speed. The heat dissipation contribution of the second type of fan is calculated based on the spatial relationship. The increase in speed of the second type of fan is calculated by combining the heat loss and the heat dissipation contribution of the second type of fan. The speed of the second type of fan is increased based on the increase in speed.

2. The method according to claim 1, characterized in that, The step of acquiring hard drive performance impact parameters and identifying the interfered hard drive based on the performance impact parameters includes: Obtain the real-time read / write performance parameters and baseline performance parameters of each hard drive; The impact rate of each hard drive is calculated based on the real-time read / write performance parameters and the baseline performance parameters, and the impact rate is used as the performance impact parameter. Compare the impact rate of each hard drive with a preset threshold; Hard drives with an impact rate greater than the preset threshold are identified as the interfered hard drives.

3. The method according to claim 1, characterized in that, The step of classifying the fans associated with the interfered hard drive into a first type of fan and a second type of fan based on the spatial relationship between the hard drive and the fan includes: Obtain the three-dimensional spatial coordinates of each hard drive and each fan; Calculate the weighted distance between each hard drive and each fan based on the three-dimensional spatial coordinates to form a distance matrix; Based on the distance matrix, the fan with the smallest weighted distance to the interfered hard drive is determined as the first type of fan, and the fans associated with the interfered hard drive other than the first type of fan are determined as the second type of fan.

4. The method according to claim 2, characterized in that, The step of calculating the speed reduction of the first type of fan based on the performance impact parameters and the current speed of the first type of fan includes: The reduction in the speed of the first type of fan is calculated based on the affected rate, the current speed of the first type of fan, and the first calculation formula. The first calculation formula is expressed as: △V near =V near ×α×(R i -R dead ) β ; Wherein, △V near V represents the amount of speed reduction. near R represents the current rotational speed. i R represents the rate of impact. dead α represents the preset threshold, β represents the speed regulation coefficient, and β represents the exponential coefficient.

5. The method according to claim 1, characterized in that, The calculation of the heat dissipation loss of the first type of fan based on the reduction in rotational speed, and the calculation of the heat dissipation contribution of the second type of fan based on the spatial relationship, include: The heat loss of the first type of fan is calculated based on the reduction in rotational speed and the second calculation formula. The heat dissipation contribution of the second type of fan is calculated based on the spatial relationship and the third calculation formula; The second calculation formula is expressed as follows: Q loss =h i,near ×△V near ; Among them, Q loss Indicates heat loss due to heat dissipation, i represents the hard drive serial number, and η represents heat loss due to heat dissipation. i,near ΔV represents the heat dissipation contribution of the first type of fan to hard drive i. near Indicates the amount of speed reduction; The third calculation formula is expressed as follows: ; Where, η i,k D represents the heat dissipation contribution of the second type of fan k to hard drive i. i,k γ represents the weighted distance between hard disk i and second-type fan k, and γ represents the attenuation factor.

6. The method according to claim 1, characterized in that, The calculation of the speed increase of the second type of fan by combining the heat loss and the heat dissipation contribution of the second type of fan includes: The increase in the rotational speed of the second type of fan is calculated by combining the heat loss, the heat dissipation contribution of the second type of fan, and the fourth calculation formula. The fourth calculation formula is expressed as follows: ; Wherein, △V k Indicates the increase in rotational speed, η i,k ∑η represents the heat dissipation contribution of the second type of fan k to hard drive i. i,far Q represents the total cooling contribution of all secondary fans. loss λ represents the heat loss due to heat dissipation, and λ is the heat dissipation redundancy compensation coefficient.

7. The method according to claim 1, characterized in that, When there are multiple affected hard drives, the method further includes: Obtain the required increase in fan speed for the target type II fan for each affected hard drive; The maximum value among the various speed increase amounts is taken as the final speed increase amount of the target type II fan; The target second type of fan speed is increased according to the final speed increase amount.

8. The method according to claim 1, characterized in that, The method further includes: Obtain the target speed of the second type of fan at the current moment; Get the final speed of the second type of fan at the previous moment; The final speed of the second type of fan at the current moment is determined based on the difference between the target speed and the final speed at the previous moment, as well as a preset smoothing step size.

9. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 8.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 8.