Fan testing method and device, equipment and storage medium
By controlling the cyclic change of the fan speed between the lowest and highest test speeds in the server, detecting the differences between the actual operating data and theoretical data of the fan, solving the problem that the fan failure cannot be detected in advance in the prior art, and improving the reliability of the server's heat dissipation sex.
Patent Information
- Application Number
- CN202411574774.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2025-01-07
AI Technical Summary
The prior art cannot detect potential failures of the server fan in advance, resulting in the server that may have a heat dissipation problem when the failure occurs, reducing the reliability of heat dissipation.
By obtaining the lowest and highest test speeds of the fan, the fan speed is controlled to cyclically change between these two ranges according to the preset speed change logic, and the actual operation data is collected and compared with the theoretical operation data to determine whether there is a potential fault in the fan.
Detect potentially faulty fans in advance to avoid server cooling problems caused by failures and improve server cooling reliability.
Smart Images

Figure CN119267293A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of server technology, and in particular to a fan testing method, device, equipment and storage medium. Background Art
[0002] As the computing power of servers increases, their power consumption also increases. As power consumption increases, how to effectively dissipate heat from servers has become an urgent problem to be solved.
[0003] Some current technologies install fans in servers and use the fans to dissipate heat for the servers. However, as the power consumption of the server increases, the speed of the fans also increases. At high speeds for a long time, the fans are prone to failure, which in turn causes the server cooling system to be abnormal. In the case of an abnormality in the cooling system of the server, the heat generated during the operation of the server will increase the temperature of its hardware, which in turn causes hardware damage or system crashes. It can be seen that the reliability of the fans is closely related to the cooling reliability of the server.
[0004] At present, some technologies can only detect fans that have already had problems. Based on this detection method, when a fan failure is detected, the heat generated by the server may have caused hardware damage and other problems. Therefore, the heat dissipation reliability of the server needs to be improved. Summary of the invention
[0005] In view of this, the present disclosure provides a fan testing method, a fan testing device, an electronic device, and a computer-readable storage medium, which can improve the heat dissipation reliability of a server.
[0006] In a first aspect, the present disclosure provides a fan testing method, the method comprising:
[0007] Get the minimum test speed and maximum test speed of the fan;
[0008] According to a preset speed change logic, the speed of the fan is controlled to cyclically change between the minimum test speed and the maximum test speed for a target time, and actual operation data of the fan is collected;
[0009] Acquiring theoretical operation data of the fan that matches the speed change logic;
[0010] A test result of the fan is determined according to a difference between the actual operation data and the theoretical operation data, and the test result is used to characterize whether the fan has a potential fault.
[0011] In a second aspect, the present disclosure provides a fan testing device, the device comprising:
[0012] A rotation speed acquisition module, used to acquire the minimum test rotation speed and the maximum test rotation speed of the fan;
[0013] A speed control module, used to control the speed of the fan to cyclically change between the minimum test speed and the maximum test speed for a target duration according to a preset speed change logic, and to collect actual operation data of the fan;
[0014] A calculation module, used for obtaining theoretical operation data of the fan that matches the speed change logic;
[0015] The test result generating module is used to determine the test result of the fan according to the difference between the actual operation data and the theoretical operation data, and the test result is used to characterize whether the fan has a potential fault.
[0016] In a third aspect, the present disclosure provides an electronic device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the above method by executing the computer instructions.
[0017] In a fourth aspect, the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the above method.
[0018] In the technical solutions of some embodiments of the present disclosure, when the speed of the fan is controlled to cycle between the lowest test speed and the highest test speed for a target time according to the speed change logic, the speed of the fan is in a dynamic change process, so that the fan needs to continuously respond to the speed adjustment to rotate at different speeds, which is equivalent to applying a certain performance pressure to the fan. In this way, when there is a potential fault problem in the fan, based on such a performance stress test, the actual operating data of the fan may show abnormal phenomena, and then, based on these abnormal phenomena, the fan with potential fault problems can be determined. In this way, fans with potential fault problems can be replaced or configured in advance to avoid server heat dissipation problems caused by fan failures, thereby improving the heat dissipation reliability of the server. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the related technologies, the drawings required for use in the specific embodiments or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0020] Figure 1is a schematic diagram of connection between a test device and a fan provided in some embodiments of the present disclosure;
[0021] Figure 2 is a flowchart of a fan testing method provided by some embodiments of the present disclosure;
[0022] Figure 3 is a schematic diagram of cyclic changes in fan speed provided by some embodiments of the present disclosure;
[0023] Figure 4 is a schematic diagram of cyclic changes in fan speed provided by other embodiments of the present disclosure;
[0024] Figure 5 is a schematic diagram of cyclic changes in fan speed provided by other embodiments of the present disclosure;
[0025] Figure 6 is a schematic diagram of cyclic changes in fan speed provided by other embodiments of the present disclosure;
[0026] Figure 7 is a flow chart of a fan test provided by some embodiments of the present disclosure;
[0027] Figure 8 is a module schematic diagram of a fan testing device provided by some embodiments of the present disclosure;
[0028] Fig. 9 is a schematic diagram of an electronic device provided by some embodiments of the present disclosure. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0030] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0031] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "some embodiments" or "the embodiment" should be understood as "at least some embodiments". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below.
[0032] Herein, unless explicitly stated, executing a step “in response to A” does not mean executing the step immediately after “A” but may include one or more intermediate steps.
[0033] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition, use, storage or deletion of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0034] It is understandable that before using the technical solutions disclosed in the various embodiments of the present disclosure, the types, scopes of use, usage scenarios, etc. of the information involved in the present disclosure should be informed to relevant users and their authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations. The relevant users may include any type of right holders, such as individuals, enterprises, and groups.
[0035] For example, in response to receiving an active request from a user, a prompt message is sent to the relevant user to clearly prompt the relevant user that the operation requested to be performed will require obtaining and using the information of the relevant user, so that the relevant user can independently choose whether to provide information to software or hardware such as an electronic device, application, server or storage medium that executes the operation of the technical solution of the present disclosure based on the prompt message.
[0036] As an optional but non-limiting implementation, in response to receiving an active request from a relevant user, a prompt message is sent to the relevant user, for example, in the form of a pop-up window, in which the prompt message may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to select "agree" or "disagree" to provide information to the electronic device.
[0037] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0038] The reliability of the fan in the server is closely related to the heat dissipation reliability of the server. At present, in some technologies, it is impossible to detect the potential failure of the fan in advance when the fan is still in normal operation, and thus it is impossible to repair or replace the fan that may fail in advance. This results in that when the fan failure is detected, the server may have already experienced problems such as downtime due to heat dissipation failure, which greatly reduces the heat dissipation reliability of the server.
[0039] To solve the above problems, we analyzed the fan's operating data and found that before the fan actually fails, its operating data will also show some abnormal phenomena, such as abnormal current changes, abnormal fan speed changes, etc. The higher the frequency of abnormal phenomena in the fan's operating data, the higher the potential risk of failure.
[0040] Based on this, the present disclosure provides a fan testing method, which can improve the heat dissipation reliability of a server. The fan testing method can be applied to a test device. The test device can be a baseboard management controller (BMC) in a server, or can be other devices independent of the server (i.e., the test device can be not one of the components in the server).
[0041] Combined with reference Figure 1 A complex programmable logic device (CPLD) and a monitoring module may be installed in the fan. The test equipment may communicate with the CPLD and the monitoring module. The test equipment may send control commands to the fan through the CPLD. For example, the test equipment may send the following command 1) to the CPLD to turn off the fan's automatic speed control function based on temperature:
[0042] 1)ipmitool.exe-I lanplus-H ip-U username-P password raw 0x30 0x300x010x00
[0043] For another example, the test equipment sends the following command 2) to the complex programmable logic device to set the fan speed:
[0044] 2)ipmitool.exe-I lanplus-H ip-U username-P password raw 0x30 0x300x020xff 0xThe percentage of the rotation speed in hexadecimal
[0045] The monitoring module may include but is not limited to components such as sensors, such as a temperature sensor, a speed sensor, a current sensor, etc. Through the monitoring module, the test device can obtain information such as the actual temperature, actual speed, and actual current of the fan.
[0046] based on Figure 1 The structure shown in the figure is combined with the reference Figure 2 , which is a flow chart of a fan testing method provided in some embodiments of the present disclosure. Figure 2 In the present invention, the fan testing method may include the following steps:
[0047] Step S201, obtaining the lowest test speed and the highest test speed of the fan.
[0048] In this embodiment, the minimum test speed may be the fan speed corresponding to when the server is in an idle state. The idle state refers to the state when the central processing unit or other hardware resources in the server are not executing tasks. In the idle state, the power consumption of the server can be low, and the heat dissipation can be less. The fan speed at this time can be used as the minimum speed during the operation of the fan. The maximum test speed may be the maximum speed allowed by the fan.
[0049] The maximum speed allowed by the fan can be burned into the complex programmable logic device of the fan. Therefore, by sending a command to the complex programmable logic device in the fan to obtain parameters, the maximum speed can be obtained, that is, the above-mentioned maximum test speed can be obtained. At the same time, the fan speed when the server is in an idle state can be obtained through server management software, etc., that is, the above-mentioned minimum test speed can be obtained.
[0050] In some other embodiments, the minimum test speed and the maximum test speed can also be set according to actual needs. For example, the maximum test speed can be less than the maximum speed allowed by the fan but greater than the minimum test speed. In these embodiments, the test device can provide a human-computer interaction interface. Through the human-computer interaction interface, the user can input the minimum test speed and the maximum test speed of the fan according to actual needs.
[0051] Step S202, according to the preset speed change logic, control the speed of the fan to cyclically change between the lowest test speed and the highest test speed for a target time, and collect actual operation data of the fan.
[0052] In this embodiment, the actual operation data may include at least one of an actual rotation speed, an actual current magnitude, an actual temperature, and an actual amplitude of the fan.
[0053] The speed change logic can be used to specify the change in fan speed and the duration of the fan at each speed. Based on different speed change logics, the fan speed can be controlled to change differently between the minimum test speed and the maximum test speed. For example, assume that the minimum test speed is 15 rpm and the maximum test speed is 250 rpm. Speed change logic A specifies that the change in fan speed is 20 rpm and the duration of the fan at each speed is 25 seconds; speed change logic B specifies that the change in fan speed gradually increases according to the rule of 10 rpm, 20 rpm, and 30 rpm, and the duration of the fan at each speed is 20 seconds. Then:
[0054] 1) When the fan speed is controlled to change from the lowest test speed to the highest test speed according to the speed change logic A, the fan can be first controlled to run at a speed of 15 rpm for 25 seconds, and then the fan speed is increased by 20 rpm, and then the fan is controlled to run at a speed of 35 rpm for 25 seconds, and then the fan speed is increased by 20 rpm, and then the fan is controlled to run at a speed of 55 rpm for 25 seconds, and so on, until the fan speed reaches the highest test speed.
[0055] 2) When the fan speed is controlled to change from the lowest test speed to the highest test speed according to the speed change logic B, the fan can be first controlled to run at 15 rpm for 20 seconds, and then the fan speed is increased by 10 rpm, and then the fan is controlled to run at 25 rpm for 20 seconds, and then the fan speed is increased by 20 rpm, and then the fan is controlled to run at 45 rpm for 20 seconds, and so on, until the fan speed reaches the highest test speed.
[0056] It can be seen from the above speed change logic A and speed change logic B that the speed change rules of the fan are different according to different speed change logics.
[0057] Furthermore, within the target duration, the fan speed can be controlled to change cyclically between the lowest test speed and the highest test speed according to the speed change logic. The so-called cyclic change means that according to the speed change logic, the fan is controlled to change from the lowest test speed to the highest test speed, then the fan is controlled to change from the highest test speed to the lowest test speed, and then the fan is controlled to change from the lowest test speed to the highest test speed, and so on, until the target duration is reached.
[0058] According to different speed change logics, when the fan speed is controlled to cycle between the minimum test speed and the maximum test speed, the target duration can be the same or different. For example, according to speed change logic A, the fan speed can be controlled to cycle between the minimum test speed and the maximum test speed for 12 hours, according to speed change logic B, the fan speed can be controlled to cycle between the minimum test speed and the maximum test speed for 10 hours, and then according to speed change logic C, the fan speed can be controlled to cycle between the minimum test speed and the maximum test speed for 12 hours.
[0059] Since the fan speed is in a dynamic change process when it is controlled to cycle between the lowest test speed and the highest test speed according to the speed change logic, the fan speed needs to continuously respond to the speed adjustment within the target time to rotate at different speeds. In this way, on the one hand, the fan's speed switching ability, as well as the fan's response time and stability when the fan switches between different speeds can be effectively detected; on the other hand, it is equivalent to applying a certain performance pressure to the fan. In this way, when there is a potential fault problem in the fan, based on such a performance stress test, the actual operation data of the fan may be abnormal, and then, based on these abnormal phenomena, the fan with a potential fault problem can be determined.
[0060] Based on the above description, controlling the fan speed to cycle between the lowest test speed and the highest test speed for a target duration according to the speed change logic can also be understood as stimulating potential problems that may exist in the fan.
[0061] Generally speaking, whether the speed change logic is reasonably designed has a direct impact on whether the potential problems that may exist in the fan can be successfully triggered. Therefore, the corresponding speed change logic can be designed based on the maximum performance pressure that the fan can withstand. In the subsequent embodiments of the present disclosure, two better speed change logics are provided, which will not be repeated here.
[0062] Continue reading Figure 1 When the fan speed is controlled to cycle between the minimum test speed and the maximum test speed according to the speed change logic, the actual operation data of the fan can be collected through complex programmable logic devices and monitoring modules (such as current sensors, temperature sensors, etc.). When the fan may have a potential fault, the actual operation data of the fan may include more abnormal information, such as a high frequency of abnormal sudden changes in the actual current size, and the actual temperature is too high. When the fan does not have a potential fault, the actual operation data of the fan may include less abnormal information, or no abnormal information.
[0063] Step S203, obtaining theoretical operation data of the fan that matches the speed change logic.
[0064] In this embodiment, the theoretical operation data may include at least one of a theoretical rotation speed, a theoretical current magnitude, a theoretical temperature, and a theoretical amplitude of the fan.
[0065] Specifically, the theoretical operation data may refer to the normal operation data changes of the fan when the speed of the fan changes according to the speed change logic when there is no potential fault in the fan, such as normal speed change, normal current change, normal temperature change, normal amplitude change, etc. For example, as the speed of the fan gradually increases, the current of the fan will also gradually increase in proportion, and there will be no or less sudden current changes. For another example, when the speed of the fan is controlled to change from 20 rpm to 30 rpm, the speed of the fan will not suddenly change to 80 rpm, etc.
[0066] Since the theoretical speed of the fan is known based on the speed change logic, the theoretical operating data such as the theoretical current size, theoretical temperature and theoretical amplitude of the fan that match the speed change logic can be calculated based on relevant theoretical calculation formulas. For example, according to the calculation formula between the fan speed and the current size, the theoretical current size of the fan corresponding to the theoretical speed can be obtained according to the theoretical speed of the fan. For another example, according to the product characteristic curve of the fan, the theoretical temperature of the fan corresponding to the theoretical speed can be determined according to the theoretical speed of the fan.
[0067] Step S24, determining the test result of the fan according to the difference between the actual operation data and the theoretical operation data.
[0068] Specifically, the test result can be used to characterize whether the fan has a potential fault. According to the relevant description of step S22, when the fan has a potential fault, its actual operation data may not be completely the same as the theoretical operation data. For example, when the fan has a potential fault, when the fan speed is controlled to change from 20 rpm to 30 rpm, the actual speed of the fan may have a sudden change of 80 rpm at a higher frequency, etc., but in the theoretical speed of the fan, there will be no or a low frequency of 80 rpm. Therefore, by comparing the actual operation data with the theoretical operation data, and according to the difference between the two, the test result of the fan can be determined.
[0069] In summary, in the technical solutions of some embodiments of the present disclosure, when the speed of the fan is controlled to cycle between the lowest test speed and the highest test speed for a target time according to the speed change logic, the speed of the fan is in a dynamic change process, so that the fan needs to continuously respond to the speed adjustment to rotate at different speeds, which is equivalent to applying a certain performance pressure to the fan. In this way, when there is a potential fault problem in the fan, based on such a performance stress test, the actual operating data of the fan may show abnormal phenomena, and then, based on these abnormal phenomena, the fan with potential fault problems can be determined. In this way, fans with potential fault problems can be replaced or configured in advance to avoid server heat dissipation problems caused by fan failures, thereby improving the heat dissipation reliability of the server.
[0070] Combined with reference Figure 3 , is a schematic diagram of the cyclic change of the fan speed provided by some embodiments of the present disclosure. Figure 3 In step S202, according to the preset speed change logic, controlling the fan speed to cycle between the minimum test speed and the maximum test speed for a target duration may include:
[0071] During the target time, the fan speed is controlled to increase gradually so that the fan speed changes from the lowest test speed to the highest test speed, and the fan speed is controlled to decrease gradually so that the fan speed changes from the highest test speed to the lowest test speed.
[0072] Specifically, the fan speed may be controlled to change from the lowest test speed to the highest test speed in the following manner:
[0073] 11) Obtain the current first actual speed of the fan.
[0074] like Figure 1 As shown, the first actual rotation speed of the fan can be obtained through a rotation speed sensor or the like.
[0075] 12) If the first actual rotation speed does not reach the maximum test rotation speed, a first target rotation speed to be increased by the rotation speed of the fan is determined based on the first actual rotation speed.
[0076] In this embodiment, the first actual speed can be proportional to the first target speed. That is, the larger the first actual speed, the larger the first target speed; the smaller the first actual speed, the smaller the first target speed. Specifically, a speed of a first preset ratio of the first actual speed can be used as the first target speed. For example, 10% of the first actual speed is used as the first target speed. That is, when the first actual speed is 20 rpm, the first target speed is 2 rpm; when the first actual speed is 30 rpm, the first target speed is 3 rpm. And so on. When the first actual speed is high, the first target speed to be increased by the fan also increases accordingly, making the speed change of the fan more obvious, which is conducive to detecting potential fault problems of the fan. When the first actual speed is low, the first target speed to be increased by the fan also decreases accordingly, so as to avoid excessive changes in the speed of the fan and the omission of potential fault problems.
[0077] 13) When the fan rotates at a first actual speed for a first preset time, controlling the fan speed to increase to a first target speed.
[0078] In this way, on the one hand, during this time period, the actual operation data of the fan at various speeds can be collected, and on the other hand, the performance stress detection scenario of the fan can also be simulated.
[0079] In some embodiments, when the first actual rotation speed reaches the maximum test rotation speed, the fan can be controlled to rotate at the maximum test rotation speed for a first preset time, and then the fan can be controlled to change from the maximum test rotation speed to the minimum test rotation speed.
[0080] Specifically, the fan speed may be controlled to change from the highest test speed to the lowest test speed in the following manner:
[0081] 21) Obtain the second current actual speed of the fan.
[0082] 22) If the second actual rotation speed does not reach the minimum test rotation speed, a second target rotation speed at which the rotation speed of the fan is to be reduced is determined based on the second actual rotation speed.
[0083] 23) When the fan rotates at the second actual speed for the second preset time, the fan speed is controlled to decrease to a second target speed.
[0084] The above steps 21) to 23) are the reverse processes of steps 11) to 13), and the principles are basically similar, which will not be described here.
[0085] In this embodiment, the first preset time length is the same as the second preset time length.
[0086] In some other embodiments, the first preset duration is different from the second preset duration.
[0087] Combined with reference Figure 3 After controlling the fan speed from the highest test speed to the lowest test speed according to the above steps 21) to 23), it can be determined whether the cyclic change duration of the fan speed reaches the target duration. If it reaches the target duration, the test ends; if it does not reach the target duration, the fan speed is controlled from the lowest test speed to the highest test speed according to the above steps 11) to 13), and the fan speed is controlled from the highest test speed to the lowest test speed according to the above steps 21) to 23, and the cycle is repeated until the target duration is reached.
[0088] exist Figure 3 In the illustrated embodiment, by controlling the fan speed to change successively between the lowest test speed and the highest test speed, the fan speed adjustment function can be detected, and then based on the actual operation data of the fan, it can be determined whether the fan has a potential fault.
[0089] Combined with reference Figure 4 , is a schematic diagram of the cyclic change of fan speed provided in some other embodiments of the present disclosure. Figure 4 and Figure 3 Basically similar, the main differences are: Figure 4 In the process, after each change in the speed of the controlled fan, it is necessary to determine whether the speed difference between the actual speed of the fan and the theoretical speed that the fan should reach reaches the speed difference threshold. If so, the fan test process is exited and information indicating the test abnormality is prompted. If not, the fan test continues.
[0090] Specifically, assuming that the first preset ratio is 10%, when the fan changes from the lowest test speed to the highest test speed, the calculation formula of the first theoretical speed can be shown as expression (1):
[0091] y1=x1+x1*10% (1)
[0092] Wherein, y1 represents the first theoretical speed, and x1 represents the first actual speed. The meaning of expression (1) is: on the basis of the first actual speed, after increasing the first target speed of 10%*the first actual speed, the obtained theoretical speed should be y1. If the test equipment sends a control instruction to the fan, and controls the fan speed to increase the first target speed, the difference between the actual fan speed detected by the sensor and the theoretical speed reaches the speed difference threshold, indicating that the speed adjustment of the fan has failed. In this case, the fan test process can be exited. In this way, invalid tests on the fan can be reduced.
[0093] Corresponding to expression (1), when the fan changes from the highest test speed to the lowest test speed, the calculation formula of the second theoretical speed can be shown as expression (2):
[0094] y2=x2-x2*10% (2)
[0095] Wherein, y2 represents the second theoretical speed, and x2 represents the second actual speed. The meaning of expression (2) is: on the basis of the second actual speed, after reducing the second target speed by 10%*the second actual speed, the second theoretical speed obtained should be y. If the test equipment sends a control instruction to the fan, and controls the fan speed to reduce the second target speed, the difference between the actual fan speed detected by the sensor and the second theoretical speed reaches the difference threshold, indicating that the speed adjustment of the fan has failed. In this case, the fan test process can be exited. In this way, invalid tests on the fan can be reduced.
[0096] Combined with reference Figure 5 , is a schematic diagram of the cyclic change of fan speed provided in some other embodiments of the present disclosure.
[0097] based on Figure 5 In step S202, according to the preset speed change logic, controlling the fan speed to cycle between the minimum test speed and the maximum test speed for a target duration may include:
[0098] determining a speed difference between a maximum test speed and a minimum test speed;
[0099] When the fan rotates at the lowest test speed for a third preset time, controlling the speed of the fan to increase the speed difference so as to adjust the speed of the fan from the lowest test speed to the highest test speed;
[0100] When the fan rotates at the maximum test speed for a fourth preset time period, the speed of the fan is controlled to reduce the speed difference, so as to adjust the speed of the fan from the maximum test speed to the minimum test speed.
[0101] Figure 5 and Figure 3 The difference is: Figure 3 It controls the fan speed to change gradually between the lowest test speed and the highest test speed. Figure 5 The fan speed is controlled to jump directly from the lowest test speed to the highest test speed, or the fan speed is controlled to jump directly from the highest test speed to the lowest test speed. In this way, different test scenarios for the fan can be constructed. Based on different test scenarios, different potential faults that may exist in the fan can be detected, and the detection of the fan is more accurate.
[0102] Specifically, with Figure 3 akin, Figure 5In the process, after controlling the fan speed to change from the highest test speed to the lowest test speed, it is necessary to determine whether the fan cycle change duration reaches the target duration. If so, exit; if not, continue the test. The relevant principles are not described here.
[0103] In this embodiment, the third preset time length is the same as the fourth preset time length.
[0104] In some other embodiments, the third preset time length is different from the fourth preset time length.
[0105] Combined with reference Figure 6 , is a schematic diagram of the cyclic change of fan speed provided in some other embodiments of the present disclosure. Figure 6 and Figure 5 Basically similar, the main difference is: after each change in the speed of the fan, it is necessary to determine whether the speed difference between the actual speed of the fan and the theoretical speed that the fan should reach reaches the speed difference threshold. If so, exit the fan test process and prompt information indicating the test abnormality. If not, continue to test the fan. For related principles, see Figure 4 The description is not repeated here.
[0106] Furthermore, in some other embodiments, each time the speed of the fan is controlled to change, the method of the present disclosure may further include:
[0107] Randomly determine the amount of change in fan speed and the duration of fan operation at each speed;
[0108] According to the randomly determined change amount, the rotation speed change of the fan is controlled, and according to the randomly determined operation time, the operation time of the fan at each rotation speed is controlled.
[0109] Relative to Figures 3 to 6 The fan speed is controlled to change according to a specific rule. In this embodiment, the fan speed is controlled randomly. Figures 3 to 6 Potential faults that cannot be detected in the method shown may be detected in this embodiment, and the detection of the fan is more comprehensive.
[0110] In some embodiments, determining the test result of the fan according to the difference between the actual operation data and the theoretical operation data in step S204 may include:
[0111] If the difference between the actual operating data and the theoretical operating data at the same speed reaches the data difference threshold, it is determined that the fan has a potential fault;
[0112] If the difference between the actual operating data and the theoretical operating data at the same speed does not reach the data difference threshold, it is determined that there is no potential fault in the fan.
[0113] Specifically, when any of the following situations occurs, it can be determined that the fan has a potential fault, otherwise, it can be determined that the fan does not have a potential fault:
[0114] When the actual operation data includes the actual rotation speed of the fan, the rotation speed difference between the actual rotation speed and the theoretical rotation speed at the same rotation speed reaches a first data difference threshold;
[0115] When the actual operation data includes the actual current of the fan, the speed difference between the actual current and the theoretical current at the same speed reaches a second data difference threshold;
[0116] When the actual operation data includes the actual temperature of the fan, the temperature difference between the actual temperature and the theoretical temperature at the same speed reaches a third data difference threshold;
[0117] When the actual operation data includes the actual amplitude of the fan, the amplitude difference between the actual amplitude and the theoretical amplitude at the same rotation speed reaches a fourth data difference threshold.
[0118] In some embodiments, the actual operation data includes a plurality of actual operation data of the fan at the same rotation speed;
[0119] When determining the test result of the fan according to the difference between the actual operation data and the theoretical operation data, the method further includes:
[0120] According to a plurality of actual operating data at the same speed, an average value of the operating data of the fan at the corresponding speed is obtained;
[0121] The test result of the fan is determined according to the distribution of the data sizes of the plurality of actual operation data relative to the average value of the operation data.
[0122] Specifically, multiple actual current magnitudes at the same speed are used as an example for explanation. If the absolute value of the difference between the actual current magnitudes exceeding a specified number and the average current magnitude among the multiple actual current magnitudes is greater than a threshold, it can be considered that the frequency of abnormal current mutations of the fan is high, and the fan may have a potential fault problem; otherwise, it can be considered that the fan does not have a potential fault problem.
[0123] The fan test results are determined by the distribution of actual operating data, and the results are relatively accurate and objective.
[0124] In summary, combined with reference Figure 7 , a flowchart of a fan test provided for some embodiments of the present disclosure.
[0125] Figure 7 In the fan test, the following steps are included:
[0126] Step S701, build a test environment and install a monitoring module on the fan.
[0127] Specifically, when setting up the test environment, it is necessary to check whether the power supply, grounding, etc. of the test environment meet the safety standards to ensure the safety of the test environment.
[0128] Also, it is necessary to verify whether the monitoring module can accurately read and record data to ensure that subsequent tests proceed normally.
[0129] Step S702: The server is turned on and enters the idle state.
[0130] Specifically, before testing, it is necessary to ensure that the server operating system has been running stably for a period of time without abnormalities. At the same time, shut down all unnecessary background services and applications to reduce interference with the test results. In simple terms, it is to prevent the server from being in an overheated state, so as to avoid the baseboard control manager controlling the fan to run faster when the server is overheated, resulting in the inability to control the fan speed as needed.
[0131] Step S703, clear the server operating system (ie, OS) and baseboard control manager (BMC) logs, and create a new fan speed and current monitoring log.
[0132] Step S704, starting the fan current monitoring process and the fan speed monitoring process of the baseboard manager control (BMC).
[0133] Step S705, controlling the rotation speed of the fan to change gradually, so that the rotation speed of the fan cycles between the lowest test rotation speed and the highest test rotation speed for a target time length.
[0134] Step S706, controlling the fan speed to switch between the lowest test speed and the highest test speed, and looping for a target time.
[0135] Step S707, collect log information for data analysis to obtain test results.
[0136] This completes the description of the method disclosed herein. The method disclosed herein can be used to detect the fan in the server before the server leaves the factory, so as to ensure the heat dissipation reliability of the server leaving the factory. Of course, the method disclosed herein can be used to detect the fan in the server during the daily maintenance of the server. Here, the use scenario of the method disclosed herein is not limited.
[0137] and Figure 2 Corresponding to the fan testing method in the present disclosure, the present disclosure also provides a fan testing device. Figure 8 , is a module schematic diagram of a fan testing device provided in some embodiments of the present disclosure. Figure 8 In the test, the fan test device includes:
[0138] A speed acquisition module is used to obtain the minimum test speed and the maximum test speed of the fan;
[0139] The speed control module is used to control the speed of the fan to cycle between the minimum test speed and the maximum test speed for a target duration according to a preset speed change logic, and collect actual operation data of the fan;
[0140] A calculation module, used to obtain theoretical operation data of the fan that matches the speed change logic;
[0141] The test result generation module is used to determine the test result of the fan according to the difference between the actual operation data and the theoretical operation data. The test result is used to characterize whether the fan has a potential fault.
[0142] In some embodiments, the speed control module is specifically configured to:
[0143] During the target time, the fan speed is controlled to increase gradually so that the fan speed changes from the lowest test speed to the highest test speed, and the fan speed is controlled to decrease gradually so that the fan speed changes from the highest test speed to the lowest test speed.
[0144] In some embodiments, the speed control module is specifically configured to:
[0145] Use the following method to control the fan speed from the lowest test speed to the highest test speed:
[0146] Get the current first actual speed of the fan;
[0147] If the first actual speed does not reach the maximum test speed, determining a first target speed to be increased for the fan speed based on the first actual speed;
[0148] When the fan rotates at a first actual speed for a first preset time, controlling the fan speed to increase to a first target speed; and
[0149] Use the following method to control the fan speed from the highest test speed to the lowest test speed:
[0150] Get the second actual speed of the fan;
[0151] If the second actual rotation speed does not reach the minimum test rotation speed, determining a second target rotation speed at which the rotation speed of the fan is to be reduced based on the second actual rotation speed;
[0152] When the fan rotates at the second actual speed for the second preset time period, the fan speed is controlled to decrease to the second target speed.
[0153] In some embodiments, the speed control module is specifically configured to:
[0154] determining a speed difference between a maximum test speed and a minimum test speed;
[0155] When the fan rotates at the lowest test speed for a third preset time, controlling the speed of the fan to increase the speed difference so as to adjust the speed of the fan from the lowest test speed to the highest test speed;
[0156] When the fan rotates at the maximum test speed for a fourth preset time period, the speed of the fan is controlled to reduce the speed difference, so as to adjust the speed of the fan from the maximum test speed to the minimum test speed.
[0157] In some embodiments, after each change in the speed of the fan, the speed control module is further configured to:
[0158] Determine whether the speed difference between the actual speed of the fan and the theoretical speed that the fan should reach reaches a speed difference threshold. If so, exit the fan test process and prompt information indicating test abnormality. If not, continue to test the fan.
[0159] In some embodiments, the actual operation data includes a plurality of actual operation data of the fan at the same rotation speed;
[0160] When determining the test result of the fan according to the difference between the actual operation data and the theoretical operation data, the test result generating module is further used to:
[0161] According to a plurality of actual operating data at the same speed, an average value of the operating data of the fan at the corresponding speed is obtained;
[0162] The test result of the fan is determined according to the distribution of the data sizes of the plurality of actual operation data relative to the average value of the operation data.
[0163] In some embodiments, the test result generation module is specifically used to:
[0164] If the difference between the actual operating data and the theoretical operating data at the same speed reaches the data difference threshold, it is determined that the fan has a potential fault;
[0165] If the difference between the actual operating data and the theoretical operating data at the same speed does not reach the data difference threshold, it is determined that there is no potential fault in the fan.
[0166] The fan testing device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0167] The fan testing device disclosed in the present invention has the same beneficial effects as the above-mentioned fan testing method, which will not be described in detail here.
[0168] The present disclosure also provides an electronic device having the above Figure 8 The fan test setup is shown.
[0169] Combined with reference Fig. 9 , is a schematic diagram of the structure of an electronic device provided by some embodiments of the present disclosure. Fig. 9 As shown, the electronic device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig. 9 A processor 10 is taken as an example.
[0170] The processor 10 may be a first PCIe device, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0171] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0172] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0173] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0174] The electronic device further comprises a communication interface 30 for the electronic device to communicate with other devices or a communication network.
[0175] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0176] A part of the present disclosure may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present disclosure through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes, but is not limited to, source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.
[0177] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A fan testing method, characterized in that: The method comprises: Get the minimum test speed and maximum test speed of the fan; According to a preset speed change logic, the speed of the fan is controlled to cyclically change between the minimum test speed and the maximum test speed for a target time, and actual operation data of the fan is collected; Acquiring theoretical operation data of the fan that matches the speed change logic; A test result of the fan is determined according to a difference between the actual operation data and the theoretical operation data, and the test result is used to characterize whether the fan has a potential fault.
2. The method according to claim 1, characterized in that The step of controlling the fan speed to cyclically change between the minimum test speed and the maximum test speed for a target duration according to a preset speed change logic includes: During the target time, the fan speed is controlled to increase gradually so that the fan speed changes from the lowest test speed to the highest test speed, and the fan speed is controlled to decrease gradually so that the fan speed changes from the highest test speed to the lowest test speed.
3. The method according to claim 2, characterized in that The step of controlling the rotation speed of the fan to increase gradually so that the rotation speed of the fan changes from the lowest test rotation speed to the highest test rotation speed, and controlling the rotation speed of the fan to decrease gradually so that the rotation speed of the fan changes from the highest test rotation speed to the lowest test rotation speed, comprises: According to the following method, the rotation speed of the fan is controlled to change from the minimum test rotation speed to the maximum test rotation speed: Obtaining a current first actual speed of the fan; If the first actual speed does not reach the maximum test speed, determining a first target speed to be increased for the speed of the fan based on the first actual speed; When the fan rotates at the first actual speed for a first preset time, controlling the speed of the fan to increase to the first target speed; and According to the following method, the rotation speed of the fan is controlled to change from the maximum test rotation speed to the minimum test rotation speed: Obtaining a second current actual speed of the fan; If the second actual speed does not reach the minimum test speed, determining a second target speed at which the speed of the fan is to be reduced based on the second actual speed; When the fan rotates at the second actual speed for a second preset time, the fan speed is controlled to decrease to the second target speed.
4. The method according to claim 1, characterized in that The step of controlling the fan speed to cyclically change between the minimum test speed and the maximum test speed for a target duration according to a preset speed change logic includes: determining a speed difference between the highest test speed and the lowest test speed; When the fan rotates at the minimum test speed for a third preset time, controlling the speed of the fan to increase the speed difference, so as to adjust the speed of the fan from the minimum test speed to the maximum test speed; When the fan rotates at the maximum test speed for the fourth preset time period, the speed of the fan is controlled to reduce the speed difference, so as to adjust the speed of the fan from the maximum test speed to the minimum test speed.
5. The method according to any one of claims 2 to 4, characterized in that: After each time the rotation speed of the fan is controlled to change, the method further includes: Determine whether the speed difference between the actual speed of the fan and the theoretical speed that the fan should reach reaches a speed difference threshold. If so, exit the test process of the fan and prompt information indicating the test abnormality. If not, continue to test the fan.
6. The method according to claim 1, characterized in that The actual operation data includes a plurality of actual operation data of the fan at the same rotation speed; When determining the test result of the fan according to the difference between the actual operation data and the theoretical operation data, the method further includes: Obtaining an average value of the operating data of the fan at the corresponding speed according to the plurality of actual operating data at the same speed; The test result of the fan is determined according to the distribution of the data sizes of the plurality of actual operation data relative to the average value of the operation data.
7. The method according to claim 1, characterized in that The step of determining the test result of the fan according to the difference between the actual operation data and the theoretical operation data includes: If the difference between the actual operation data and the theoretical operation data at the same speed reaches a data difference threshold, it is determined that the fan has a potential fault; If the difference between the actual operation data and the theoretical operation data at the same rotation speed does not reach the data difference threshold, it is determined that there is no potential fault in the fan.
8. A fan testing device, characterized in that: The device comprises: A rotation speed acquisition module, used to acquire the minimum test rotation speed and the maximum test rotation speed of the fan; A speed control module, used to control the speed of the fan to cyclically change between the minimum test speed and the maximum test speed for a target duration according to a preset speed change logic, and to collect actual operation data of the fan; A calculation module, used for obtaining theoretical operation data of the fan that matches the speed change logic; The test result generating module is used to determine the test result of the fan according to the difference between the actual operation data and the theoretical operation data, and the test result is used to characterize whether the fan has a potential fault.
9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the fan testing method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the fan testing method according to any one of claims 1 to 7.