Fan state detection method and device and server
By obtaining the operating status of the fan and calculating the deviation ratio, accurately positioning the status of the fan, the problem of inaccurate fan status detection in the existing technology is solved, and a more refined preventive maintenance strategy is realized, reducing the risk of server failure.
Patent Information
- Application Number
- CN202411763763.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-03
- Publication Date
- 2025-03-21
AI Technical Summary
The prior art is difficult to accurately locate the specific status of the fan, resulting in poor heat dissipation of the server, which may lead to hardware overheating and performance degradation.
By obtaining the operating status of the fan, including the maximum allowable speed, the minimum speed threshold, the current speed, the duty cycle of the PWM signal and the current power, the speed deviation ratio and the power deviation ratio are calculated, and then determining whether the fan's state is in abnormal speed, aging or damaged.
It realizes a more detailed and accurate classification of fan status, helping users or administrators to quickly locate problems and take corresponding measures to reduce the risk of server failure and improve system stability and reliability.
Smart Images

Figure CN119664703A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of fan detection, and in particular to a fan status detection method, device and server. Background Art
[0002] In recent years, with the rapid development of intelligent networking, the application scope of servers has become increasingly extensive, covering almost every aspect of modern technology. From basic website hosting and data storage to complex cloud computing and artificial intelligence applications, servers play a key role. In enterprises, servers are used to manage and store large amounts of data, supporting employee collaboration and the operation of business processes. In the Internet field, servers are the infrastructure for websites, applications, and services, supporting the daily online activities of countless users. In addition, servers also play an important role in the fields of medical care, education, finance, etc., providing stable and efficient computing and storage support for various applications. In general, servers are one of the indispensable infrastructures of modern society, and their wide application makes them one of the pillars of the information age.
[0003] Fans are important components of servers. The normal operation of fans ensures the heat dissipation of the server and keeps the hardware temperature within a safe range. If the fan fails or does not operate smoothly, the hardware may overheat, resulting in server performance degradation or even hardware damage. Therefore, timely monitoring of fan status, detection of problems and timely handling are crucial to ensure stable operation of the server and data security. Summary of the invention
[0004] In view of this, the present application provides a fan status detection method, device and server to accurately locate the specific status of the fan to facilitate maintenance operations by users or managers.
[0005] Specifically, the present application is implemented through the following technical solutions:
[0006] A first aspect of the present application provides a fan status detection method, which is applied to a server and includes:
[0007] For each fan currently in place, the operating status of the fan in place is obtained; wherein the operating status includes a maximum allowable speed, a minimum speed threshold, a current speed, a duty cycle of a PWM signal currently used to control the fan, and a current power;
[0008] Calculating a current expected speed according to the duty cycle and a predetermined corresponding relationship between the duty cycle and the expected speed, and calculating a speed deviation ratio according to the current speed, the current expected speed and the maximum allowable speed;
[0009] When the current rotation speed is less than or equal to the minimum rotation speed threshold, or the rotation speed deviation ratio is greater than or equal to a first preset deviation ratio, it is determined that the fan is currently in an abnormal rotation speed state;
[0010] When the current speed is greater than the minimum speed threshold and the speed deviation ratio is less than the first preset deviation ratio, the standard power corresponding to the fan at the current speed is determined according to the current speed and a predetermined correspondence between the speed and the standard power related to the fan, and the power deviation ratio is calculated according to the standard power and the current power;
[0011] When the power deviation ratio is greater than the second preset deviation ratio, it is determined that the fan is currently in an aging state; when the power deviation ratio is less than the third preset deviation ratio, it is determined that the fan is currently in a damaged state; when the power deviation ratio is greater than or equal to the third preset deviation ratio and less than or equal to the second preset deviation ratio, it is determined that the fan is currently in a normal state;
[0012] Among them, the first preset deviation ratio is a value selected from the first floating range; the second preset deviation ratio is a value selected from the second floating range; the third preset deviation ratio is a value selected from the third floating range; the third preset deviation ratio is a negative value; the second preset deviation ratio is a positive value; the second preset deviation ratio decreases as the first preset deviation ratio increases; the third preset deviation ratio increases as the second preset deviation ratio increases.
[0013] A second aspect of the present application provides a fan status detection device, the device comprising an acquisition module, a calculation module and a determination module; wherein:
[0014] The acquisition module is used to acquire the operating status of each fan currently in place; wherein the operating status includes the maximum allowable speed, the minimum speed threshold, the current speed, the duty cycle of the PWM signal currently used to control the fan, and the current power;
[0015] The calculation module is used to calculate the current expected speed according to the duty cycle and the predetermined corresponding relationship between the duty cycle and the expected speed, and calculate the speed deviation ratio according to the current speed, the current expected speed and the maximum allowable speed;
[0016] The determination module is configured to determine that the fan is currently in an abnormal speed state when the current speed is less than or equal to the minimum speed threshold, or when the speed deviation ratio is greater than or equal to a first preset deviation ratio;
[0017] The calculation module is further configured to determine the standard power corresponding to the fan at the current speed according to the current speed and a predetermined correspondence between the speed and the standard power related to the fan when the current speed is greater than the minimum speed threshold and the speed deviation ratio is less than the first preset deviation ratio, and calculate the power deviation ratio according to the standard power and the current power;
[0018] The determination module is further configured to determine that the fan is currently in an aging state when the power deviation ratio is greater than a second preset deviation ratio, determine that the fan is currently in a damaged state when the power deviation ratio is less than a third preset deviation ratio, and determine that the fan is currently in a normal state when the power deviation ratio is greater than or equal to the third preset deviation ratio and less than or equal to the second preset deviation ratio;
[0019] Among them, the first preset deviation ratio is a value selected from the first floating range; the second preset deviation ratio is a value selected from the second floating range; the third preset deviation ratio is a value selected from the third floating range; the third preset deviation ratio is a negative value; the second preset deviation ratio is a positive value; the second preset deviation ratio decreases as the first preset deviation ratio increases; the third preset deviation ratio increases as the second preset deviation ratio increases.
[0020] The third aspect of the present application provides a server, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any one of the methods provided in the first aspect of the present application are implemented.
[0021] The fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the methods provided in the first aspect of the present application.
[0022] The fan status detection method, device and server provided by the present application, on the one hand, obtain the operating status of the fan, and classify the status of the fan in a more detailed and richer manner based on the operating status, with more accurate and detailed precision. Through more precise fan status determination, users or administrators can more accurately capture different types of problems, so as to have a clearer grasp of the specific status of the fan, so as to facilitate users or managers to locate problems more quickly and accurately and take corresponding measures. In addition, by subdividing the fan status, a more refined preventive maintenance strategy can be implemented, potential problems can be discovered and resolved in a timely manner, the risk of server failure can be reduced, and system stability and reliability can be improved. Finally, subdividing the fan status helps to improve the overall server management and maintenance level, enabling server managers to have a more comprehensive understanding of the server status and make more informed decisions, thereby improving the performance and availability of the entire server system.
[0023] Secondly, when determining the status of the fan, by setting different floating ranges and preset deviation ratios, the detection standard of the fan status can be adjusted according to the specific situation to make it more in line with actual needs and adapt to different hardware configurations, workloads and environmental conditions. In addition, by making the second preset deviation ratio decrease as the first preset deviation ratio increases, and the third preset deviation ratio increase as the first preset deviation ratio increases, the fault tolerance of the system for abnormal fan conditions can be enhanced. Further, as the first preset deviation ratio increases, the system's tolerance for abnormal fan conditions decreases accordingly, which helps to reduce false alarms and improve the reliability and stability of the system. By dynamically adjusting the second and third preset deviation ratios, the server can achieve optimal performance under different workloads. When the system load is light, the sensitivity to the fan status can be reduced and unnecessary intervention can be reduced; when the system load is heavy, the detection accuracy of the fan status can be improved to ensure the stability and reliability of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 A flowchart of a first embodiment of a fan status detection method provided in the present application;
[0025] Figure 2 A flowchart of a second embodiment of a fan status detection method provided in the present application;
[0026] Figure 3 A hardware structure diagram of a server where the fan status detection device provided in this application is located;
[0027] Figure 4 This is a structural diagram of a first embodiment of a fan status detection device provided in the present application. DETAILED DESCRIPTION
[0028] Here, exemplary embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application.
[0029] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more associated listed items.
[0030] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0031] Specific embodiments are given below to introduce the technical solution of the present application in detail.
[0032] Figure 1 This is a flow chart of the first embodiment of the fan status detection method provided by this application. Please refer to Figure 1 The method provided in this embodiment is applied to a server and includes:
[0033] S101. Obtain the operating status of each fan currently in place; wherein the operating status includes a maximum allowable speed, a minimum speed threshold, a current speed, a duty cycle of a PWM signal currently used to control the fan, and a current power.
[0034] Specifically, an in-place fan indicates that the fan has been inserted into the server. Only when the fan has been inserted into the server is the fan an in-place fan, and the operating status of the in-place fan can be further obtained.
[0035] Optionally, in a possible implementation manner, before obtaining the operating status of the in-place fan, the method further includes:
[0036] The on-location signals of the fans on the server are obtained, and the on-location fans currently in place are determined according to the on-location signals of the fans.
[0037] Specifically, the in-position signal indicates whether the fan is inserted into the server, which includes in-position and out-position. When the in-position signal is 0, it indicates that the fan is in-position and the fan has been inserted into the server. When the in-position signal is 1, it indicates that the fan is not in-position and the fan has not been inserted into the server (specifically, one end of the fan slot is connected to a pull-up resistor and the other end is grounded. When the fan is inserted into the fan slot, the path from the pull-up resistor to the ground is connected, and the in-position signal is low level. When the fan is not inserted into the fan slot, due to the effect of the pull-up resistor, the in-position signal is high level).
[0038] In specific implementation, the presence signal of each fan can be obtained through the motherboard level detection chip on the server motherboard, and the fan with a presence signal of 0 is determined as the currently in-place fan, and the fan with a presence signal of 1 is determined as the currently out-of-place fan.
[0039] Furthermore, after the fan in place is determined, the operating status of the fan in place can be obtained, wherein the operating status of the fan in place includes the maximum allowable speed, the minimum speed threshold, the current speed, the duty cycle of the PWM signal currently used to control the fan, and the current power.
[0040] Specifically, the maximum allowable speed represents the maximum speed value that the fan can reach, which is provided by the fan manufacturer and is set according to actual needs. In this embodiment, its specific value is not limited. Further, the minimum speed threshold represents the lowest threshold of the fan speed, that is, the fan speed cannot be lower than the minimum speed threshold. Its value is related to the maximum allowable speed. In this embodiment, it is not limited. For example, in one embodiment, the minimum speed threshold is 10% of the maximum allowable speed.
[0041] Furthermore, the current speed represents the current real-time speed of the fan in rpm / min, which is collected by the fan body and reported to the server. The PWM (Pulse Width Modulation) signal currently used to control the fan is sent by the server to the fan to control the speed of the fan. In this step, the duty cycle of the PWM signal can be directly obtained through the server.
[0042] Furthermore, the current power represents the power consumption of the current fan, which is obtained by multiplying the circuit current of the fan by the fan voltage, wherein the fan voltage is fixed and the circuit current of the fan is monitored by a mainboard power management chip on the mainboard of the server.
[0043] S102, calculating a current expected speed according to the duty cycle and a predetermined corresponding relationship between the duty cycle and the expected speed, and calculating a speed deviation ratio according to the current speed, the current expected speed and the maximum allowable speed.
[0044] Specifically, the expected speed refers to the ideal speed level that the fan is expected to reach, which is usually set according to the heat dissipation requirements and noise requirements of the system. Furthermore, the correspondence between the predetermined duty cycle and the expected speed is determined according to a related method, which is not limited in this embodiment. For example, in one embodiment, the correspondence between the predetermined duty cycle and the expected speed is that the expected speed is equal to the product of the duty cycle and the maximum allowable speed, and the expected speed can be calculated according to the following formula:
[0045] RPM1=PWM*RPMMAX
[0046] Wherein, the RPM1 is the desired rotation speed; the PWM is the duty cycle; and the RPMMAX is the maximum allowable rotation speed.
[0047] In specific implementation, the duty cycle may be substituted into a predetermined correspondence relationship between the duty cycle and the desired rotational speed to obtain the current desired rotational speed corresponding to the duty cycle.
[0048] Furthermore, the speed deviation ratio represents the difference between the current speed (actual speed) of the fan and the current expected speed. The smaller the speed deviation ratio, the better the stability of the fan. The larger the speed deviation ratio, the worse the stability of the fan and the more likely it is to fail.
[0049] Further, the calculating the speed deviation ratio according to the current speed, the current expected speed and the maximum allowable speed includes:
[0050] (1) Calculating a speed deviation between the current speed and the current expected speed.
[0051] Specifically, the speed deviation represents the difference between the current speed and the current expected speed.
[0052] In specific implementation, the speed deviation between the current speed and the current expected speed can be calculated according to the following formula:
[0053] RPM0 = RPM – RPM1
[0054] Among them, the RPM0 is the speed deviation; the RPM is the current speed; and the RPM1 is the current expected speed.
[0055] (2) Calculating a ratio of the rotational speed deviation to the maximum allowable rotational speed, and determining the ratio as the rotational speed deviation ratio.
[0056] In specific implementation, the speed deviation ratio can be determined according to the following formula:
[0057] ΔRPM=RPM0 / RPMMAX
[0058] Wherein, the ΔRPM is the speed deviation ratio; the RPM0 is the speed deviation; and the RPMMAX is the maximum allowable speed.
[0059] S103: When the current rotation speed is less than or equal to the minimum rotation speed threshold, or the rotation speed deviation ratio is greater than or equal to a first preset deviation ratio, determine that the fan is currently in an abnormal rotation speed state.
[0060] Specifically, in combination with the above description, the minimum speed threshold represents the lowest threshold of the fan speed, that is, the fan speed cannot be lower than the minimum speed threshold, and its value is related to the maximum allowable speed, which is not limited in this embodiment. For example, in one embodiment, the minimum speed threshold is 10% of the maximum allowable speed.
[0061] Further, the first preset deviation ratio is set according to actual needs, and is not limited in this embodiment. Optionally, in a possible implementation of the present application, the first preset deviation ratio is a value selected from the first floating range. For example, in one embodiment, the first floating range is 10% to 12%, and the first preset deviation ratio is 10%.
[0062] In one possible implementation, the abnormal speed state indicates that the speed of the fan is too low and a fault has occurred. In another possible implementation, the abnormal speed state indicates that there is a huge difference between the current speed and the current expected speed, and a speed abnormality has occurred. Because when the rotor system of the fan fails, it will cause a huge difference between the current speed and the current expected speed. For example: the maximum allowable speed of the fan RPMMAX = 10000 (i.e. 10,000 revolutions per minute), when PWM = 0.5, it means that the current expected speed of the fan is: 0.5*10000 = 5000 revolutions per minute. But if the current speed of the fan RPM = 4000 revolutions per minute at this time, then ΔRPM = 20%, which exceeds 10%, indicating that the current speed of the fan is too different from the current expected speed, and it is determined that the fan has failed, that is, the fan is currently in an abnormal speed state.
[0063] In specific implementation, when the speed of the fan is too low, that is, the current speed is less than or equal to the minimum speed threshold, it is determined that the fan is currently in an abnormal speed state. When the speed deviation ratio of the fan is greater than or equal to the first preset deviation ratio, it is determined that the fan is currently in an abnormal speed state.
[0064] S104. When the current speed is greater than the minimum speed threshold and the speed deviation ratio is less than the first preset deviation ratio, the standard power corresponding to the fan at the current speed is determined according to the current speed and the predetermined correspondence between the speed and the standard power related to the fan, and the power deviation ratio is calculated according to the standard power and the current power.
[0065] Specifically, when the current rotation speed is greater than the minimum rotation speed threshold and the rotation speed deviation ratio is less than the first preset deviation ratio, it indicates that there is no abnormal rotation speed of the fan. At this time, the state of the fan is further judged.
[0066] Specifically, the standard power refers to the ideal power level of the fan at a specified speed. The predetermined correspondence between the speed and the standard power of the fan is determined according to a relevant method, and this embodiment is not limited to this. For example, in one embodiment, the process of determining the predetermined correspondence between the speed and the standard power of the fan includes:
[0067] (1) For the fan, measure the actual power of a new fan of the same type as the fan at each of a plurality of preset speeds to obtain a plurality of data pairs, wherein each data pair consists of a speed and a power.
[0068] Specifically, the multiple preset speeds are set according to actual needs, and this embodiment is not limited thereto. For example, in one embodiment, the multiple preset speeds may be 10%RPMMAX, 20%RPMMAX, ..., 80%RPMMAX. In other words, when the maximum speed is 10,000 rpm, the multiple preset speeds are 1,000 rpm, 2,000 rpm, 3,000 rpm, 4,000 rpm, ..., 8,000 rpm.
[0069] In a specific implementation, for a certain fan, a number of new fans of the same type as the fan are taken, and the actual power of these new fans at multiple preset speeds is measured (for example, the multiple preset speeds are 1000 rpm, 2000 rpm, 3000 rpm, 4000 rpm, ..., 8000 rpm). For each new fan, the speed of the new fan and the measured actual power are stored as a pair of data. In the same way, multiple data pairs corresponding to all new fans are stored.
[0070] (2) Using the multiple data pairs, fit the corresponding relationship between the rotation speed and the power, and determine the corresponding relationship obtained by fitting as the corresponding relationship between the rotation speed and the standard power related to the fan.
[0071] Specifically, a linear regression model is constructed using a machine learning algorithm such as linear regression or polynomial regression, and multiple data pairs are input into the linear regression model to fit the corresponding relationship between the rotational speed and the power, thereby obtaining the corresponding relationship between the rotational speed and the standard power related to the fan.
[0072] Furthermore, for a certain fan, after the corresponding relationship between the speed and the standard power of the fan is predetermined, the standard power corresponding to the fan at the current speed can be found according to the current speed based on the predetermined corresponding relationship between the speed and the standard power of the fan. That is, the current speed is substituted into the corresponding relationship to obtain the standard power corresponding to the fan at the current speed.
[0073] Furthermore, the power deviation ratio indicates the difference between the current power (actual power) and the standard power of the fan. When the power deviation ratio is too large, it indicates that the fan may be aged. When the power deviation ratio is too small, it indicates that the fan may be damaged. When the power deviation ratio approaches 0, it indicates that the fan is normal.
[0074] Optionally, in a possible implementation manner, calculating the power deviation ratio according to the standard power and the current power includes:
[0075] (1) Calculating the power deviation between the current power and the standard power.
[0076] Specifically, the power deviation represents the difference between the current power and the standard power.
[0077] In specific implementation, the difference between the current power and the standard power is determined as the power deviation, that is, the power deviation is calculated according to the following formula:
[0078] P1=P–PSPEC
[0079] Among them, the P1 is the power deviation; the P is the current power; and the PSPEC is the standard power.
[0080] (2) Calculating a ratio of the power deviation to the standard power, and determining the ratio as the power deviation ratio.
[0081] In specific implementation, the power deviation ratio can be determined according to the following formula:
[0082] ΔP=P1 / PSPEC
[0083] Wherein, the ΔP is the power deviation ratio; the P1 is the power deviation; and the PSPEC is the standard power.
[0084] S105. When the power deviation ratio is greater than the second preset deviation ratio, it is determined that the fan is currently in an aging state; when the power deviation ratio is less than the third preset deviation ratio, it is determined that the fan is currently in a damaged state; when the power deviation ratio is greater than or equal to the third preset deviation ratio and less than or equal to the second preset deviation ratio, it is determined that the fan is currently in a normal state.
[0085] It should be noted that, since the rotation speed of the aging fan will not be affected, but due to the long rotation time, the wear of the rotor and the controller will cause the speed resistance to increase. At the same speed, the current power of the aging fan will be higher than that of the normal fan. Therefore, a second preset deviation ratio is set, and when the power deviation ratio is greater than the second preset deviation ratio, it is determined that the fan is in an aging state. Further, due to the entry of hard foreign matter into the interior of the fan, the fan blades are broken. At this time, the speed of the fan will not be abnormal, but because some of the blades are broken, the wind resistance of the fan will become smaller. At the same speed, the current power of the fan with broken blades will be lower than that of the normal fan. Therefore, a third preset deviation ratio is set, and when the power deviation ratio is less than the third preset deviation ratio, it is determined that the fan is in a damaged state. Correspondingly, when the power deviation ratio is greater than or equal to the third preset deviation ratio and less than or equal to the second preset deviation ratio, it is determined that the fan is in a normal state.
[0086] Specifically, the second preset deviation ratio and the third preset deviation ratio are set according to actual needs, and are not limited in this embodiment. It should be noted that the second preset deviation ratio is a value selected from the second floating range, and the third preset deviation ratio is a value selected from the third floating range. The second preset deviation ratio is a positive value, and the third preset deviation ratio is a negative value.
[0087] For example, in combination with the above example, in one embodiment, the second floating range is 20% to 22%, and the second preset deviation ratio is 20%; the third floating range is -22% to -20%, and the third preset deviation ratio is -20%.
[0088] Furthermore, the second preset deviation ratio decreases as the first preset deviation ratio increases, and the third preset deviation ratio increases as the first preset deviation ratio increases.
[0089] Specifically, the second preset deviation ratio decreases as the first preset deviation ratio increases, and increases as the first preset deviation ratio decreases; the third preset deviation ratio increases as the first preset deviation ratio increases, and decreases as the first preset deviation ratio decreases.
[0090] For example, in one embodiment, in combination with the above example, the first floating range is 10% to 12%, the second floating range is 22% to 20%, and the third floating range is -22% to -20%. When the first preset deviation ratio increases from 10% to 11%, correspondingly, the second preset deviation ratio decreases from 21% to 20%, and the third preset deviation ratio increases from -22% to -20%.
[0091] For another example, in another embodiment, in combination with the above example, the first floating range is 12% to 10%, the second floating range is 20% to 22%, and the third floating range is -20% to -22%. When the first preset deviation ratio decreases from 11% to 10%, correspondingly, the second preset deviation ratio increases from 20% to 21%, and the third preset deviation ratio decreases from -20% to -22%.
[0092] Optionally, in a possible implementation of the present application, a degree of change of the second preset deviation ratio as the first preset deviation ratio changes is less than a degree of change of the third preset deviation ratio as the first preset deviation ratio changes.
[0093] It should be noted that, by making the second preset deviation ratio decrease as the first preset deviation ratio increases, and the third preset deviation ratio increase as the first preset deviation ratio increases, on the one hand, it can better adapt to the changes in different fan models and different working environments. It enables adaptive adjustment according to the working characteristics and environmental conditions of the fan, thereby improving the accuracy and stability of detection.
[0094] On the second hand, by making the second preset deviation ratio decrease as the first preset deviation ratio increases, and the third preset deviation ratio increase as the first preset deviation ratio increases, the system's fault tolerance for fan abnormalities can be enhanced. As the first preset deviation ratio increases, the system's tolerance for fan abnormalities decreases accordingly, which helps reduce false alarms and improves the reliability and stability of the system.
[0095] Thirdly, by dynamically adjusting the second and third preset deviation ratios, the server can achieve optimal performance under different workloads. When the system load is light, the sensitivity to the fan status can be reduced to reduce unnecessary intervention; when the system load is heavy, the detection accuracy of the fan status can be improved to ensure the stability and reliability of the system.
[0096] By making the degree of change of the second preset deviation ratio as the first preset deviation ratio changes smaller than the degree of change of the third preset deviation ratio as the first preset deviation ratio changes, higher judgment standards and higher requirements are put forward for damage to improve the accuracy of judgment.
[0097] The method provided in this embodiment, on the one hand, obtains the running status of the fan, and classifies the status of the fan in a more detailed and richer manner based on the running status, with higher accuracy and more detail. Through more accurate fan status determination, users or administrators can more accurately capture different types of problems, so as to have a clearer grasp of the specific status of the fan, so as to facilitate users or managers to locate problems more quickly and accurately and take corresponding measures. In addition, by subdividing the fan status, a more refined preventive maintenance strategy can be implemented, potential problems can be discovered and solved in a timely manner, the risk of server failure can be reduced, and system stability and reliability can be improved. Finally, subdividing the fan status helps to improve the overall server management and maintenance level, so that server managers can have a more comprehensive understanding of the server status and make more informed decisions, thereby improving the performance and availability of the entire server system; on the other hand, when determining the status of the fan, by setting different floating ranges and preset deviation ratios, the detection standard of the fan status can be adjusted according to the specific situation to make it more in line with actual needs to adapt to different hardware configurations, workloads and environmental conditions.
[0098] Figure 2 This is a flow chart of the second embodiment of the fan status detection method provided by this application. Please refer to Figure 2 , the method provided in this embodiment may include:
[0099] S201, obtaining the presence signal of each fan on the server, and determining whether each fan is a present fan, if so, executing step S202; if not, executing step S209.
[0100] S202. For each fan in place, obtain the operating status of the fan in place; wherein the operating status includes a maximum allowable rotation speed, a minimum rotation speed threshold, a current rotation speed, a duty cycle of a PWM signal currently used to control the fan, and a current power.
[0101] S203, calculating the current expected speed according to the duty cycle and the predetermined corresponding relationship between the duty cycle and the expected speed, and calculating the speed deviation ratio according to the current speed, the current expected speed and the maximum allowable speed.
[0102] S204, determine whether the current rotation speed is less than or equal to the minimum rotation speed threshold, if so, execute step S210; otherwise, execute step S205.
[0103] S205, determining whether the rotation speed deviation ratio is greater than or equal to a first preset deviation ratio, if so, executing step S210, otherwise executing step S206.
[0104] S206, determining the standard power corresponding to the fan at the current speed according to the current speed and the predetermined correspondence between the speed and the standard power related to the fan, and calculating the power deviation ratio according to the standard power and the current power.
[0105] S207, determining whether the power deviation ratio is greater than a second preset deviation ratio, if so, executing step S211; if not, executing step S208.
[0106] S208. Determine whether the power deviation ratio is less than a third preset deviation ratio. If so, execute step S212; if not, execute step S213.
[0107] S209: Determine that the fan is currently unplugged.
[0108] S210: Determine that the fan is currently in an abnormal speed state.
[0109] S211. Determine that the fan is currently in an aging state.
[0110] S212: Determine that the fan is currently in a damaged state.
[0111] S213: Determine that the fan is currently in a normal state.
[0112] Specifically, the specific implementation process and implementation principle of steps S201-S213 can be referred to the description in the above embodiment, which will not be repeated here.
[0113] The method provided in this embodiment, on the one hand, obtains the running status of the fan, and classifies the status of the fan in a more detailed and richer manner based on the running status, with higher accuracy and more detail. Through more accurate fan status determination, users or administrators can more accurately capture different types of problems, so as to have a clearer grasp of the specific status of the fan, so as to facilitate users or managers to locate problems more quickly and accurately and take corresponding measures. In addition, by subdividing the fan status, a more refined preventive maintenance strategy can be implemented, potential problems can be discovered and solved in a timely manner, the risk of server failure can be reduced, and system stability and reliability can be improved. Finally, subdividing the fan status helps to improve the overall server management and maintenance level, so that server managers can have a more comprehensive understanding of the server status and make more informed decisions, thereby improving the performance and availability of the entire server system; on the other hand, when determining the status of the fan, by setting different floating ranges and preset deviation ratios, the detection standard of the fan status can be adjusted according to the specific situation to make it more in line with actual needs to adapt to different hardware configurations, workloads and environmental conditions.
[0114] Corresponding to the aforementioned embodiment of a fan status detection method, the present application also provides an embodiment of a fan status detection device.
[0115] The fan status detection device provided in this application can be applied on a server. The device embodiment can be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, the processor of the server where it is located reads the corresponding computer program instructions in the non-volatile memory into the memory and runs them. From the hardware level, if Figure 3 As shown, it is a hardware structure diagram of the server where the fan status detection device provided by the present application is located, except Figure 3 In addition to the processor, memory, network interface, and non-volatile memory shown, the fan status detection device in the embodiment where the device is located may also include other hardware according to the actual function of the fan status detection device, which will not be described in detail.
[0116] Figure 4 This is a schematic diagram of the structure of the fan status detection device embodiment 1 provided in this application. Figure 4 , the device provided in this embodiment includes an acquisition module 410, a calculation module 420 and a determination module 430; wherein,
[0117] The acquisition module 410 is used to acquire the operating status of each fan currently in place; wherein the operating status includes the maximum allowable speed, the minimum speed threshold, the current speed, the duty cycle of the PWM signal currently used to control the fan, and the current power;
[0118] The calculation module 420 is used to calculate the current expected speed according to the duty cycle and the predetermined corresponding relationship between the duty cycle and the expected speed, and calculate the speed deviation ratio according to the current speed, the current expected speed and the maximum allowable speed;
[0119] The determination module 430 is configured to determine that the fan is currently in an abnormal speed state when the current speed is less than or equal to the minimum speed threshold, or when the speed deviation ratio is greater than or equal to a first preset deviation ratio;
[0120] The calculation module 420 is further configured to determine the standard power corresponding to the fan at the current speed according to the current speed and a predetermined correspondence between the speed and the standard power related to the fan when the current speed is greater than the minimum speed threshold and the speed deviation ratio is less than the first preset deviation ratio, and calculate the power deviation ratio according to the standard power and the current power;
[0121] The determination module 430 is further configured to determine that the fan is currently in an aging state when the power deviation ratio is greater than a second preset deviation ratio, determine that the fan is currently in a damaged state when the power deviation ratio is less than a third preset deviation ratio, and determine that the fan is currently in a normal state when the power deviation ratio is greater than or equal to the third preset deviation ratio and less than or equal to the second preset deviation ratio;
[0122] Among them, the first preset deviation ratio is a value selected from the first floating range; the second preset deviation ratio is a value selected from the second floating range; the third preset deviation ratio is a value selected from the third floating range; the third preset deviation ratio is a negative value; the second preset deviation ratio is a positive value; the second preset deviation ratio decreases as the first preset deviation ratio increases; the third preset deviation ratio increases as the second preset deviation ratio increases.
[0123] The device provided in this embodiment, on the one hand, obtains the running status of the fan, and classifies the status of the fan in a more detailed and richer manner based on the running status, with more accurate and detailed accuracy. Through more accurate fan status determination, users or administrators can more accurately capture different types of problems, so as to have a clearer grasp of the specific status of the fan, so as to facilitate users or managers to locate problems more quickly and accurately and take corresponding measures. In addition, by subdividing the fan status, a more refined preventive maintenance strategy can be implemented, potential problems can be discovered and solved in a timely manner, the risk of server failure can be reduced, and system stability and reliability can be improved. Finally, subdividing the fan status helps to improve the overall server management and maintenance level, so that server managers can have a more comprehensive understanding of the server status and make more informed decisions, thereby improving the performance and availability of the entire server system; on the other hand, when determining the status of the fan, by setting different floating ranges and preset deviation ratios, the detection standard of the fan status can be adjusted according to the specific situation, so that it is more in line with actual needs, so as to adapt to different hardware configurations, workloads and environmental conditions.
[0124] The device of this embodiment can be used to perform Figure 1 The steps, specific implementation principles and implementation processes of the method embodiment shown are similar and will not be repeated here.
[0125] Please continue to refer to Figure 3 The present application also provides a server, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any one of the methods provided in the first aspect of the present application are implemented.
[0126] The present application also provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the steps of any one of the methods provided in the present application are implemented.
[0127] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.
[0128] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.
[0129] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A fan status detection method, characterized in that: The method is applied to a server, and the method comprises: For each fan currently in place, the operating status of the fan in place is obtained; wherein the operating status includes a maximum allowable speed, a minimum speed threshold, a current speed, a duty cycle of a PWM signal currently used to control the fan, and a current power; Calculating a current expected speed according to the duty cycle and a predetermined corresponding relationship between the duty cycle and the expected speed, and calculating a speed deviation ratio according to the current speed, the current expected speed and the maximum allowable speed; When the current rotation speed is less than or equal to the minimum rotation speed threshold, or the rotation speed deviation ratio is greater than or equal to a first preset deviation ratio, it is determined that the fan is currently in an abnormal rotation speed state; When the current speed is greater than the minimum speed threshold and the speed deviation ratio is less than the first preset deviation ratio, the standard power corresponding to the fan at the current speed is determined according to the current speed and a predetermined correspondence between the speed and the standard power related to the fan, and the power deviation ratio is calculated according to the standard power and the current power; When the power deviation ratio is greater than the second preset deviation ratio, it is determined that the fan is currently in an aging state; when the power deviation ratio is less than the third preset deviation ratio, it is determined that the fan is currently in a damaged state; when the power deviation ratio is greater than or equal to the third preset deviation ratio and less than or equal to the second preset deviation ratio, it is determined that the fan is currently in a normal state; Among them, the first preset deviation ratio is a value selected from the first floating range; the second preset deviation ratio is a value selected from the second floating range; the third preset deviation ratio is a value selected from the third floating range; the third preset deviation ratio is a negative value; the second preset deviation ratio is a positive value; the second preset deviation ratio decreases as the first preset deviation ratio increases; the third preset deviation ratio increases as the first preset deviation ratio increases.
2. The method according to claim 1, characterized in that The degree of change of the second preset deviation ratio as the first preset deviation ratio changes is smaller than the degree of change of the third preset deviation ratio as the first preset deviation ratio changes.
3. The method according to claim 1, characterized in that The process of determining the predetermined corresponding relationship between the speed and the standard power of the fan includes: For the fan, measuring the actual power of a new fan of the same type as the fan at each of a plurality of preset speeds to obtain a plurality of data pairs, wherein each data pair consists of a speed and a power; The corresponding relationship between the rotation speed and the power is fitted by using the multiple data pairs, and the corresponding relationship obtained by fitting is determined as the corresponding relationship between the rotation speed and the standard power related to the fan.
4. The method according to claim 1, characterized in that: The calculating the power deviation ratio according to the standard power and the current power includes: Calculating a power deviation between the current power and the standard power; The ratio of the power deviation to the standard power is calculated, and the ratio is determined as the power deviation ratio.
5. The method according to claim 1, characterized in that The calculating the speed deviation ratio according to the current speed, the current expected speed and the maximum allowable speed includes: Calculating a speed deviation between the current speed and the current expected speed; A ratio of the rotational speed deviation to the maximum allowable rotational speed is calculated, and the ratio is determined as the rotational speed deviation ratio.
6. The method according to claim 1, characterized in that Before obtaining the operating status of the fan in place, the method further includes: The on-location signals of the fans on the server are obtained, and the on-location fans currently in place are determined according to the on-location signals of the fans.
7. A fan status detection device, characterized in that: The device includes an acquisition module, a calculation module and a determination module; wherein, The acquisition module is used to acquire the operating status of each fan currently in place; wherein the operating status includes the maximum allowable speed, the minimum speed threshold, the current speed, the duty cycle of the PWM signal currently used to control the fan, and the current power; The calculation module is used to calculate the current expected speed according to the duty cycle and the predetermined corresponding relationship between the duty cycle and the expected speed, and calculate the speed deviation ratio according to the current speed, the current expected speed and the maximum allowable speed; The determination module is configured to determine that the fan is currently in an abnormal speed state when the current speed is less than or equal to the minimum speed threshold, or when the speed deviation ratio is greater than or equal to a first preset deviation ratio; The calculation module is further configured to determine the standard power corresponding to the fan at the current speed according to the current speed and a predetermined correspondence between the speed and the standard power related to the fan when the current speed is greater than the minimum speed threshold and the speed deviation ratio is less than the first preset deviation ratio, and calculate the power deviation ratio according to the standard power and the current power; The determination module is further configured to determine that the fan is currently in an aging state when the power deviation ratio is greater than a second preset deviation ratio, determine that the fan is currently in a damaged state when the power deviation ratio is less than a third preset deviation ratio, and determine that the fan is currently in a normal state when the power deviation ratio is greater than or equal to the third preset deviation ratio and less than or equal to the second preset deviation ratio; Among them, the first preset deviation ratio is a value selected from the first floating range; the second preset deviation ratio is a value selected from the second floating range; the third preset deviation ratio is a value selected from the third floating range; the third preset deviation ratio is a negative value; the second preset deviation ratio is a positive value; the second preset deviation ratio decreases as the first preset deviation ratio increases; the third preset deviation ratio increases as the first preset deviation ratio increases.
8. The device according to claim 7, characterized in that The degree of change of the second preset deviation ratio as the first preset deviation ratio changes is smaller than the degree of change of the third preset deviation ratio as the first preset deviation ratio changes.
9. A server, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 6 when executing the program.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Fan state detection method and device, electronic equipment and storage medium
CN120759791A