CN112360788B - Fan stability testing method and device, computer equipment and storage medium - Google Patents

Fan stability testing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112360788B
CN112360788B CN202011100462.2A CN202011100462A CN112360788B CN 112360788 B CN112360788 B CN 112360788B CN 202011100462 A CN202011100462 A CN 202011100462A CN 112360788 B CN112360788 B CN 112360788B
Authority
CN
China
Prior art keywords
fan
rotating speed
value
rotation speed
stability test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011100462.2A
Other languages
Chinese (zh)
Other versions
CN112360788A (en
Inventor
许飞
秦晓宁
魏冰清
刘国华
王永懿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nettrix Information Industry Beijing Co Ltd
Original Assignee
Nettrix Information Industry Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nettrix Information Industry Beijing Co Ltd filed Critical Nettrix Information Industry Beijing Co Ltd
Priority to CN202011100462.2A priority Critical patent/CN112360788B/en
Publication of CN112360788A publication Critical patent/CN112360788A/en
Application granted granted Critical
Publication of CN112360788B publication Critical patent/CN112360788B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D27/00Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids
    • F04D27/001Testing thereof; Determination or simulation of flow characteristics; Stall or surge detection, e.g. condition monitoring
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D27/00Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids
    • F04D27/004Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids by varying driving speed

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Control Of Positive-Displacement Pumps (AREA)
  • Testing Of Devices, Machine Parts, Or Other Structures Thereof (AREA)

Abstract

The application relates to a fan stability testing method, a fan stability testing device, computer equipment and a storage medium. The method comprises the following steps: the BMC determines the fan rotating speed parameter under the current fan duty ratio according to the fan model, sends a configuration instruction carrying the fan rotating speed parameter to the fan, performs command timeliness verification on the fan according to the configuration instruction, acquires an actual rotating speed value of the fan if the fan passes the command timeliness verification, and performs stability test on the fan according to the fan rotating speed parameter and the actual rotating speed value to obtain a stability test result of the fan. In the method, the BMC can determine the fan rotating speed parameter under the current fan duty ratio according to the fan model, so as to meet the test requirements of the fans of different types in a self-adaptive manner, the test result can be more accurate, and command timeliness verification is carried out on the fans before the fan rotating speed test is carried out, so that the stability state of the fans can be preliminarily determined, and the efficiency of the stability test of the fan rotating speed is improved.

Description

Fan stability testing method and device, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of testing technologies, and in particular, to a method and apparatus for testing fan stability, a computer device, and a storage medium.
Background
Along with the continuous forward of independent research and development steps of the server, the server testing technology is required to be improved continuously, and in order to obtain the running condition of each component on the server more accurately, each component on the server is required to be tested in a targeted manner. The stability test of the fan on the server plays an important role in the stable operation of the server.
The prior art is based on the same test standard, and the stability test of the fan on the server is realized by controlling the rotating speed of the fan through a baseboard management controller (Baseboard Management Controlle, BMC).
The prior art has the problem of inaccurate fan rotating speed test results for different models.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a fan stability test method, apparatus, computer device, and storage medium capable of adaptively determining a rated fan speed.
In a first aspect, a method for testing stability of a fan is provided, the method comprising:
determining a fan rotating speed parameter under the current fan duty ratio according to the fan model;
sending a configuration instruction carrying a fan rotating speed parameter to the fan, and checking command timeliness of the fan according to the configuration instruction;
if the fan passes the command timeliness verification, acquiring an actual rotating speed value of the fan, and performing stability test on the fan according to the rotating speed parameter and the actual rotating speed value of the fan to obtain a stability test result of the fan.
In this embodiment, the BMC may determine the fan rotation speed parameter under the current fan duty cycle according to the fan model, so as to achieve the test requirement of adaptively using different types of fans, so that the test result may be more accurate, and perform command timeliness verification on the fan before performing the fan rotation speed test, so that the stability state of the fan may be primarily determined, and the efficiency of the stability test of the fan rotation speed is improved.
In one embodiment, the fan rotation speed parameter includes a fan rotation speed rated value, and the command timeliness verification for the fan according to the configuration instruction includes:
detecting the current rotating speed value of the fan;
when the current rotating speed value reaches the rated fan rotating speed value, acquiring a first time stamp when a configuration instruction is sent and a second time stamp when the current rotating speed value of the fan reaches the rated fan rotating speed value;
and calculating the time difference between the first time stamp and the second time stamp, and checking the command timeliness of the fan according to the time difference.
In this embodiment, the BMC performs the command timeliness verification on the fan according to the difference between the first timestamp and the second timestamp, that is, it can determine the running efficiency from the time when the fan receives the configuration command to the time when the actual rotation speed reaches the rated rotation speed of the fan.
In one embodiment, the verifying the command timeliness of the fan according to the time difference includes:
if the time difference is out of the preset time threshold range, determining that the fan fails the command timeliness check, and outputting reminding information; the reminding information is used for reminding that the rotating speed of the fan is unstable;
if the time difference is within the preset time threshold range, determining that the fan passes the command timeliness check.
In this embodiment, before testing the stability of the fan, command timeliness test is performed on the fan, so as to implement preliminary inspection on the stability of the rotational speed of the fan, and improve the testing efficiency of the stability of the rotational speed of the fan.
In one embodiment, the fan rotation speed parameter includes a fan rotation speed rated value, and the stability test is performed on the fan according to the fan rotation speed parameter and the actual rotation speed value to obtain a stability test result of the fan, including:
calculating the difference between the actual rotation speed value and the rated fan rotation speed value;
if the difference value is within the preset rotating speed difference value range, determining that the stability test result of the fan is that the rotating speed is stable;
if the difference value is out of the preset rotating speed difference value range, determining that the stability test result of the fan is unstable rotating speed.
In this embodiment, the BMC determines the stability of the current fan according to the calculated difference, and allows a reasonable deviation between the actual rotation speed value of the fan and the rated rotation speed value of the fan, so that the fan stability test result is more reasonable.
In one embodiment, the fan rotation speed parameter includes a fan rotation speed value range, and the stability test is performed on the fan according to the fan rotation speed parameter and the actual rotation speed value to obtain a stability test result of the fan, and further includes:
if the actual rotation speed value is in the range of the rotation speed value of the fan, determining that the stability test result of the fan is that the rotation speed is stable;
if the actual rotation speed value is out of the range of the rotation speed value of the fan, determining that the stability test result of the fan is unstable rotation speed.
In this embodiment, the BMC determines the stability of the current fan according to the preset fan rotation speed value range, and determines the stability test result of the fan with a more flexible amplitude, so that the obtained test result is more accurate.
In one embodiment, determining the fan rotation speed parameter under the current fan duty cycle according to the fan model includes:
and determining the fan rotating speed parameters corresponding to the current fan under different fan duty ratios according to the corresponding relation among the fan duty ratio, the model and the fan rotating speed parameters of the fan.
In this embodiment, the BMC determines, according to a pre-constructed correspondence between a fan duty cycle, a model, and fan rotation speed parameters, fan rotation speed parameters corresponding to a current fan under different fan duty cycles, so as to adaptively determine fan rotation speed parameters corresponding to different models of fans, thereby implementing accurate testing of the fans.
In one embodiment, the method further comprises:
if the fan duty ratio of the fan is a first value, calling a preset first pressure tool to add memory pressure, and obtaining an actual rotating speed value of the fan after pressurization;
if the fan duty ratio of the fan is a second value, a preset second pressure tool is called to add CPU pressure, and an actual rotating speed value of the fan after pressurization is obtained; the second value is greater than the first value.
In this embodiment, the BMC adds the memory pressure or the CPU pressure under different fan duty cycles, so as to change the system test environment and check the stability of the fan rotation speed under different environments, so that the arrangement can also ensure that the CPU and the memory are not damaged by excessive temperature or generate excessive loss.
In a second aspect, there is provided a fan stability testing apparatus, the apparatus comprising:
the determining module is used for determining a fan rotating speed parameter under the current fan duty cycle according to the fan model;
the verification module is used for sending a configuration instruction carrying a fan rotating speed parameter to the fan, and carrying out command timeliness verification on the fan according to the configuration instruction;
and the testing module is used for acquiring the actual rotating speed value of the fan if the fan passes the command timeliness verification, and carrying out stability test on the fan according to the rotating speed parameter and the actual rotating speed value of the fan to obtain a stability test result of the fan.
In a third aspect, a computer device is provided, comprising a memory storing a computer program and a processor implementing the fan stability test method according to any of the first aspects above when the computer program is executed.
In a fourth aspect, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the method for testing fan stability according to any one of the first aspects.
According to the fan stability testing method, the device, the computer equipment and the storage medium, the baseboard management controller BMC determines the fan rotating speed parameter under the current fan duty ratio according to the fan model, sends the configuration instruction carrying the fan rotating speed parameter to the fan, performs command timeliness verification on the fan according to the configuration instruction, acquires the actual rotating speed value of the fan if the fan passes the command timeliness verification, and performs stability testing on the fan according to the fan rotating speed parameter and the actual rotating speed value to obtain the stability testing result of the fan. In the method, the BMC can determine the fan rotating speed parameter under the current fan duty ratio according to the fan type, so that the test requirement of the fan with different types is met in a self-adaptive mode, the test result can be more accurate, and command timeliness verification is carried out on the fan before the fan rotating speed test is carried out, the stability state of the fan can be preliminarily determined, and the efficiency of the stability test of the fan rotating speed is improved.
Drawings
FIG. 1 is a diagram of an application environment of a fan stability testing method according to an embodiment;
FIG. 2 is a flow chart of a fan stability testing method according to an embodiment;
FIG. 3 is a flow chart of a fan stability testing method according to an embodiment;
FIG. 4 is a flow chart of a fan stability testing method according to an embodiment;
FIG. 5 is a flow chart of a fan stability testing method according to an embodiment;
FIG. 6 is a block diagram of a fan stability testing apparatus according to one embodiment;
FIG. 7 is a block diagram of a fan stability test apparatus according to one embodiment;
fig. 8 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The fan stability testing method provided by the application can be applied to an application environment shown in fig. 1. Wherein the baseboard management controller BMC101 communicates with the fan 102. The BMC101 may set a fan duty cycle of the fan 102, control the fan 102 to operate in different working modes, and obtain a rotation speed value of the fan 102.
The following will specifically describe the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems by means of examples and with reference to the accompanying drawings. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. It should be noted that, in the fan stability testing method provided in the embodiments of fig. 2 to 5 of the present application, the execution body is the baseboard management controller BMC, and may also be a fan stability testing device, where the fan stability testing device may be a part or all of the BMC in a mode of software, hardware, or a combination of software and hardware. In the following method embodiments, the execution subject is a BMC.
In one embodiment, as shown in fig. 2, a method for testing stability of a fan is provided, which relates to a process that a computer device adaptively determines a fan rotation speed parameter under a current fan duty cycle according to a fan model, sends a configuration instruction carrying the fan rotation speed parameter to the fan, performs command timeliness verification on the fan according to the configuration instruction, and performs stability test on the fan under the condition that the fan passes the command timeliness verification, so as to obtain a test result, and includes the following steps:
s201, determining a fan rotating speed parameter under the current fan duty ratio according to the fan model.
The fan duty ratio may be a parameter determined according to actual situations, for example, the fan duty ratio may be 10%, 20%,. The term, 100%, and different types of fans correspond to different fan rotation speed parameters under different fan duty ratios, where the fan rotation speed parameters include other parameters such as a fan rotation speed rated value, a fan rotation speed range, a fan rotation speed precision, and the like.
In this embodiment, the corresponding relationship of the fan rotation speed parameters under different fan duty ratios may be constructed according to the type of the fan, the BMC obtains the type of the fan and the current fan duty ratio, determines the fan of the current type according to the corresponding relationship, and the fan rotation speed parameters corresponding under the current fan duty ratio are not limited in this embodiment.
S202, sending a configuration instruction carrying a fan rotating speed parameter to the fan, and carrying out command timeliness verification on the fan according to the configuration instruction.
Wherein the configuration instruction refers to an instruction for making the fan rotation speed reach a specified fan rotation speed parameter.
In this embodiment, the BMC sends the configuration instruction to the fan, so that after the processor of the fan obtains the configuration instruction, the rotational speed of the fan is increased or decreased according to the fan rotational speed parameter carried in the configuration instruction to reach the fan rotational speed parameter value; alternatively, the configuration instructions may be sent to the fan when the fan is stationary, or may be sent during operation of the fan. For example, the configuration instruction may carry a fan rotation speed rated value of 5000, and the bmc performs command timeliness verification on the current fan according to a timestamp of sending the configuration instruction and a timestamp of when the fan rotation speed reaches 5000, and according to the two timestamps, verifies whether the consumed time meets the command timeliness requirement when the fan rotation speed reaches 5000, which is not limited in this embodiment.
And S203, if the fan passes the command timeliness verification, acquiring an actual rotation speed value of the fan, and performing stability test on the fan according to the rotation speed parameter and the actual rotation speed value of the fan to obtain a stability test result of the fan.
In this embodiment, the BMC determines that the fan passes the command timeliness check, that is, preliminarily determines that the rotational speed of the fan is in a normal state, at this time, the BMC may obtain an actual rotational speed value of the fan according to a preset period, and perform a stability test on the actual rotational speed value and the determined rotational speed parameter of the fan, or alternatively, the BMC may compare the actual rotational speed value with a rated value in the rotational speed parameter of the fan to determine the stability of the rotational speed parameter of the fan; the BMC can also compare the actual rotation speed value with the rated rotation speed range in the fan rotation speed parameter to determine the stability of the fan rotation speed parameter. Correspondingly, the BMC compares the actual rotation speed value with the rated rotation speed range in the fan rotation speed parameters, if the actual rotation speed value is in the rated rotation speed range, the current rotation speed of the fan is in a normal state, the stability test result of the fan is that the rotation speed is stable, and the embodiment is not limited to the rotation speed.
In the above fan stability test method, the baseboard management controller BMC determines the fan rotation speed parameter under the current fan duty cycle according to the fan model, sends a configuration instruction carrying the fan rotation speed parameter to the fan, performs command timeliness verification on the fan according to the configuration instruction, obtains the actual rotation speed value of the fan if the fan passes the command timeliness verification, and performs stability test on the fan according to the fan rotation speed parameter and the actual rotation speed value to obtain the stability test result of the fan. In the method, the BMC can determine the fan rotating speed parameter under the current fan duty ratio according to the fan model, so as to meet the test requirements of the fans of different types in a self-adaptive manner, the test result can be more accurate, and command timeliness verification is carried out on the fans before the fan rotating speed test is carried out, so that the stability state of the fans can be preliminarily determined, and the efficiency of the stability test of the fan rotating speed is improved.
In one embodiment, as shown in fig. 3, the fan rotation speed parameter includes a fan rotation speed rated value, and the command timeliness checking of the fan according to the configuration instruction includes:
s301, detecting the current rotation speed value of the fan.
In this embodiment, the BMC may obtain the current rotation speed value of the fan according to a preset period to determine whether the current rotation speed value of the fan reaches the specified rotation speed rated value of the fan.
S302, when the current rotating speed value reaches the rated fan rotating speed value, acquiring a first time stamp when a configuration instruction is sent and a second time stamp when the current rotating speed value of the fan reaches the rated fan rotating speed value.
The fan rotating speed rated value refers to the fan rotating speed rated value appointed in the current command timeliness test. In this embodiment, when determining that the current rotation speed value of the fan reaches the instructed fan rotation speed rated value, the BMC obtains a first time stamp when sending the configuration instruction, and obtains a second time stamp when the fan rotation speed value reaches the specified fan rotation speed rated value, where it is to be noted that the first time stamp and the second time stamp are both time stamps based on a BMC time axis, and there is no deviation of the time axes.
S303, calculating the time difference between the first time stamp and the second time stamp, and checking the command timeliness of the fan according to the time difference.
In this embodiment, the BMC calculates a difference value between the first timestamp and the second timestamp according to the obtained first timestamp and the second timestamp, and performs command timeliness verification on the fan, that is, determines whether the current operation efficiency of the fan meets the command timeliness requirement according to the difference value, if the difference value is too large, the operation efficiency of the fan does not meet the command timeliness requirement, that is, the rotation speed of the fan is unstable without passing the command timeliness verification, which is not limited in this embodiment.
In this embodiment, the BMC performs the command timeliness verification on the fan according to the difference between the first timestamp and the second timestamp, that is, it can determine the running efficiency from the time when the fan receives the configuration command to the time when the actual rotation speed reaches the rated rotation speed of the fan.
Optionally, based on the time difference between the first time stamp and the second time stamp, the BMC performs the fan command timeliness check, and in one embodiment, performs the command timeliness check on the fan according to the time difference, including two cases:
if the time difference is out of the preset time threshold range, determining that the fan fails the command timeliness check, and outputting reminding information; the reminding information is used for reminding that the rotating speed of the fan is unstable.
The preset time threshold value refers to a threshold value determined according to the actual condition of the fan and the communication condition.
In this embodiment, the BMC determines whether the time difference calculated by the first timestamp and the second timestamp is within a preset time threshold range, if the time difference is outside the time threshold range, it means that the time period from the time when the fan receives the instruction to the time when the fan reaches the specified rotation speed is too long, where the reason for this too long time includes various reasons, so that the reason for checking the fan is needed, so that the fan rotation speed stability test is not continuously performed, that is, it is determined that the fan fails the command timeliness check, and the reminder information is output.
If the time difference is within the preset time threshold range, determining that the fan passes the command timeliness check.
In this embodiment, the BMC determines that the time difference is within the time threshold, which means that the time from the time when the fan receives the command to the time when the fan reaches the specified rotation speed is a reasonable time, at this time, the BMC may continue to perform the fan rotation speed stability test, that is, determine that the fan passes the command timeliness check, which is not limited in this embodiment.
In this embodiment, before testing the stability of the fan, command timeliness test is performed on the fan, so as to implement preliminary inspection on the stability of the rotational speed of the fan, and improve the testing efficiency of the stability of the rotational speed of the fan.
The BMC may determine a stability test result of the fan by calculating a difference between an actual rotational speed value and a rated rotational speed value of the fan, and in one embodiment, as shown in fig. 4, the fan rotational speed parameter includes a rated rotational speed value of the fan, and the stability test is performed on the fan according to the fan rotational speed parameter and the actual rotational speed value to obtain the stability test result of the fan, including:
s401, calculating a difference value between the actual rotation speed value and the rated fan rotation speed value.
The fan rotating speed rated value is determined according to the fan model and the current fan duty ratio.
In this embodiment, after the BMC obtains the actual rotation speed value, the BMC calculates the difference between the two values according to the corresponding rated rotation speed value of the fan, and performs a stability test on the current fan according to the difference between the two values, and optionally, the BMC may further perform absolute value processing on the difference value, that is, take the positive number part of the difference value, and perform the determination of the rotation speed stability.
S402, if the difference value is in a preset rotating speed difference value range, determining that the stability test result of the fan is that the rotating speed is stable.
The preset rotating speed difference range refers to a rotating speed difference range determined according to the rated value and reasonable deviation of the rotating speed of the fan on the premise that the rotating speed of the fan is stable.
In this embodiment, the BMC determines that the difference is within the rotation speed difference range, that is, indicates that the deviation between the actual rotation speed value of the current fan and the rated rotation speed value of the fan is acceptable, and is a reasonable deviation, and at this time, the BMC determines that the stability test result of the current fan is that the rotation speed is stable.
S403, if the difference value is out of the preset rotating speed difference value range, determining that the stability test result of the fan is unstable rotating speed.
In this embodiment, the BMC determines that the difference is outside the rotation speed difference range, that is, indicates that the deviation between the actual rotation speed value of the current fan and the rated rotation speed value of the fan is large, or even exceeds a reasonable deviation range, and at this time, the BMC determines that the stability test result of the current fan is that the rotation speed is unstable.
In this embodiment, the BMC determines the stability of the current fan according to the calculated difference, and allows a reasonable deviation between the actual rotation speed value of the fan and the rated rotation speed value of the fan, so that the fan stability test result is more reasonable.
The BMC may further obtain a stability test result of the fan by another method, where in one embodiment, the fan rotation speed parameter includes a fan rotation speed value range, and the performing stability test on the fan according to the fan rotation speed parameter and the actual rotation speed value to obtain the stability test result of the fan includes:
if the actual rotation speed value is in the range of the rotation speed value of the fan, determining that the stability test result of the fan is stable rotation speed.
The fan speed value range may be determined according to the fan speed rated value, or may be a threshold value range set directly.
In this embodiment, the BMC determines whether the current actual rotation speed value of the fan is within the fan rotation speed range, and if the current actual rotation speed value of the fan is within the fan rotation speed range, it indicates that the current actual rotation speed value of the fan is within the normal range, and at this time, determines that the stability test result of the fan is that the rotation speed is stable.
If the actual rotation speed value is out of the range of the rotation speed value of the fan, determining that the stability test result of the fan is unstable rotation speed.
In this embodiment, if the BMC determines that the current actual rotation speed value of the fan is outside the fan rotation speed value range, it indicates that the current actual rotation speed value of the fan is outside the normal rotation speed range, and the fan may have an abnormal condition, and at this time, it determines that the stability test result of the fan is that the rotation speed is unstable, which is not limited in this embodiment.
In this embodiment, the BMC determines the stability of the current fan according to the preset fan rotation speed value range, and determines the stability test result of the fan with a more flexible amplitude, so that the obtained test result is more accurate.
The BMC may pre-construct a correspondence between a fan duty cycle, a model, and a fan speed parameter of the fan to determine the fan speed parameter of the fan model at the current fan duty cycle, and in one embodiment, determining the fan speed parameter at the current fan duty cycle according to the fan model includes:
and determining the fan rotating speed parameters corresponding to the current fan under different fan duty ratios according to the corresponding relation among the fan duty ratio, the model and the fan rotating speed parameters of the fan.
In this embodiment, the correspondence between the fan duty cycle, the model, and the fan rotation speed parameter of the fan may be pre-configured, that is, different types of fans may be configured, and the rotation speed parameters of the fan may be determined at different fan duty cycles, so that before the fan rotation speed stability test is performed, the BMC may determine the fan of the current model according to the configured correspondence, and the fan rotation speed parameter may be determined at the current fan duty cycle.
In this embodiment, the BMC determines, according to a pre-constructed correspondence between a fan duty cycle, a model, and fan rotation speed parameters, fan rotation speed parameters corresponding to a current fan under different fan duty cycles, so as to adaptively determine fan rotation speed parameters corresponding to different models of fans, thereby implementing accurate testing of the fans.
In order to make the environment in which the fan is located closer to the environment in which it is actually operating, in one embodiment, the method further comprises:
if the fan duty ratio of the fan is a first value, a preset first pressure tool is called to add the memory pressure, and the actual rotating speed value of the fan after pressurization is obtained.
In this embodiment, for example, according to expert experience and multiple tests, the first value may be 50%, that is, when the duty ratio of the fan reaches 50%, the BMC may call a preset first pressure tool to add the memory pressure, where the first pressure tool may be a DIMM pressure tool, and the BMC obtains the actual rotation speed value of the fan after adding the pressure, so as to perform the test of rotation speed stability according to the actual rotation speed value under the action of the pressure.
If the fan duty ratio of the fan is a second value, a preset second pressure tool is called to add CPU pressure, and an actual rotating speed value of the fan after pressurization is obtained; the second value is greater than the first value.
In this embodiment, for example, the second value may be 80%, that is, when the duty ratio of the fan reaches 80%, the BMC may call a preset second pressure tool to add the CPU pressure, the second pressure tool may be the CPU pressure tool, and the BMC obtains the actual rotation speed value of the fan after adding the pressure, so as to perform the test of rotation speed stability according to the actual rotation speed value under the action of the pressure. It should be noted that, the working temperature of the CPU is higher than the working temperature of the memory, so when the duty cycle of the fan reaches 80%, the BMC adds the CPU pressure, and when the duty cycle of the fan reaches 50%, the BMC adds the memory pressure, so that the running environment of the fan is closer to the actual running environment, which is not limited in this embodiment.
In this embodiment, the BMC adds the memory pressure or the CPU pressure under different fan duty cycles, so as to change the system test environment and check the stability of the fan rotation speed under different environments, so that the arrangement can also ensure that the CPU and the memory are not damaged by excessive temperature or generate excessive loss.
In order to better illustrate the above method, as shown in fig. 5, the present embodiment provides a fan stability testing method, which specifically includes:
s101, determining fan rotating speed parameters corresponding to the current fan under different fan duty cycles according to the corresponding relation among the fan duty cycle, the model and the fan rotating speed parameters of the fan;
s102, detecting the current rotation speed value of the fan;
s103, when the current rotating speed value reaches the rated fan rotating speed value, acquiring a first time stamp when a configuration instruction is sent and a second time stamp when the current rotating speed value of the fan reaches the rated fan rotating speed value;
s104, calculating the time difference between the first time stamp and the second time stamp, and carrying out command timeliness verification on the fan according to the time difference;
s105, if the time difference is out of a preset time threshold range, determining that the fan fails to pass the command timeliness check, and outputting reminding information; the reminding information is used for reminding that the rotating speed of the fan is unstable;
s106, if the time difference is within a preset time threshold range, determining that the fan passes the command timeliness check;
s107, acquiring an actual rotation speed value of the fan, and performing stability test on the fan according to the rotation speed parameter and the actual rotation speed value of the fan to obtain a stability test result of the fan.
In this embodiment, the BMC may determine the fan rotation speed parameter under the current fan duty cycle according to the fan model, so as to achieve the test requirement of adaptively using different types of fans, so that the test result may be more accurate, and perform command timeliness verification on the fan before performing the fan rotation speed test, so that the stability state of the fan may be primarily determined, and the efficiency of the stability test of the fan rotation speed is improved.
The fan stability testing method provided in the above embodiment has similar implementation principles and technical effects to those of the above method embodiment, and will not be described herein.
It should be understood that, although the steps in the flowcharts of fig. 2-5 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2-5 may include multiple steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the steps or stages in other steps or other steps.
In one embodiment, as shown in fig. 6, there is provided a fan stability testing apparatus, comprising: a determining module 01, a checking module 02 and a testing module 03, wherein:
a determining module 01, configured to determine a fan rotation speed parameter under a current fan duty cycle according to a fan model;
the verification module 02 is used for sending a configuration instruction carrying a fan rotating speed parameter to the fan, and carrying out command timeliness verification on the fan according to the configuration instruction;
and the test module 03 is used for acquiring an actual rotation speed value of the fan if the fan passes the command timeliness verification, and carrying out stability test on the fan according to the rotation speed parameter and the actual rotation speed value of the fan to obtain a stability test result of the fan.
In one embodiment, the fan rotation speed parameter includes a fan rotation speed rated value, and the verification module 02 is specifically configured to detect a current rotation speed value of the fan; when the current rotating speed value reaches the rated fan rotating speed value, acquiring a first time stamp when a configuration instruction is sent and a second time stamp when the current rotating speed value of the fan reaches the rated fan rotating speed value; and calculating the time difference between the first time stamp and the second time stamp, and checking the command timeliness of the fan according to the time difference.
In one embodiment, the verification module 02 is specifically configured to determine that the fan fails the command time efficiency verification if the time difference is outside a preset time threshold range, and output a reminder; the reminding information is used for reminding that the rotating speed of the fan is unstable; if the time difference is within the preset time threshold range, determining that the fan passes the command timeliness check.
In one embodiment, the fan rotation speed parameter includes a fan rotation speed rated value, and the test module 03 is specifically configured to calculate a difference between the actual rotation speed value and the fan rotation speed rated value; if the difference value is within the preset rotating speed difference value range, determining that the stability test result of the fan is that the rotating speed is stable; if the difference value is out of the preset rotating speed difference value range, determining that the stability test result of the fan is unstable rotating speed.
In one embodiment, the fan rotation speed parameter includes a fan rotation speed value range, and the test module 03 is specifically configured to determine that the stability test result of the fan is that the rotation speed is stable if the actual rotation speed value is within the fan rotation speed value range; if the actual rotation speed value is out of the range of the rotation speed value of the fan, determining that the stability test result of the fan is unstable rotation speed.
In one embodiment, the determining module 01 is specifically configured to determine, according to a corresponding relationship between a fan duty cycle, a model number, and a fan rotation speed parameter of the fan, a fan rotation speed parameter corresponding to the current fan under different fan duty cycles.
In one embodiment, as shown in fig. 7, the fan stability testing apparatus further includes a first pressurizing module 04 and a second pressurizing module 05, where:
the first pressurizing module 04 is used for calling a preset first pressure tool to add the memory pressure under the condition that the fan duty ratio of the fan is a first value, and acquiring the actual rotating speed value of the fan after pressurization;
the second pressurizing module 05 is configured to invoke a preset second pressure tool to add the CPU pressure when the fan duty ratio of the fan is a second value, and obtain an actual rotation speed value of the fan after pressurization; the second value is greater than the first value.
For specific limitations of the fan stability test apparatus, reference may be made to the limitations of the fan stability test method hereinabove, and no further description is given herein. The modules in the fan stability testing apparatus described above may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 8. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program when executed by a processor implements a method for fan stability testing. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 8 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
determining a fan rotating speed parameter under the current fan duty ratio according to the fan model;
sending a configuration instruction carrying a fan rotating speed parameter to the fan, and checking command timeliness of the fan according to the configuration instruction;
if the fan passes the command timeliness verification, acquiring an actual rotating speed value of the fan, and performing stability test on the fan according to the rotating speed parameter and the actual rotating speed value of the fan to obtain a stability test result of the fan.
The computer device provided in the foregoing embodiments has similar implementation principles and technical effects to those of the foregoing method embodiments, and will not be described herein in detail.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
determining a fan rotating speed parameter under the current fan duty ratio according to the fan model;
sending a configuration instruction carrying a fan rotating speed parameter to the fan, and checking command timeliness of the fan according to the configuration instruction;
if the fan passes the command timeliness verification, acquiring an actual rotating speed value of the fan, and performing stability test on the fan according to the rotating speed parameter and the actual rotating speed value of the fan to obtain a stability test result of the fan.
The computer readable storage medium provided in the above embodiment has similar principle and technical effects to those of the above method embodiment, and will not be described herein.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. A method for testing fan stability, the method comprising:
determining a fan rotating speed parameter under the current fan duty ratio according to the fan model; the fan speed parameter comprises a fan speed rating;
sending a configuration instruction carrying the fan rotating speed parameter to a fan, determining the time difference between a first time stamp and a second time stamp according to the first time stamp sent by the configuration instruction and the second time stamp when the current rotating speed value of the fan reaches the rated value of the fan rotating speed, and carrying out command timeliness verification on the fan according to the time difference;
if the fan passes the command timeliness verification, acquiring an actual rotating speed value of the fan, and performing stability test on the fan according to the rotating speed parameter of the fan and the actual rotating speed value to obtain a stability test result of the fan; the fan stability test is performed on the fan according to the fan rotation speed parameter and the actual rotation speed value, and a stability test result of the fan is obtained, including: and obtaining a difference value between the actual rotating speed value and the rated fan rotating speed value, and determining a stability test result of the fan according to the difference value.
2. The method of claim 1, wherein after sending a configuration instruction to a fan carrying the fan speed parameter, the method further comprises:
and detecting the current rotating speed value of the fan.
3. The method of claim 2, wherein said performing a command timeliness check on said fan based on said time difference comprises:
if the time difference is out of the preset time threshold range, determining that the fan fails the command timeliness check, and outputting reminding information; the reminding information is used for reminding that the rotating speed of the fan is unstable;
and if the time difference is within the preset time threshold range, determining that the fan passes the command timeliness check.
4. The method of claim 1, wherein said determining a stability test result for said fan based on said difference comprises:
if the difference value is within a preset rotating speed difference value range, determining that the stability test result of the fan is that the rotating speed is stable;
and if the difference value is out of the preset rotating speed difference value range, determining that the stability test result of the fan is unstable rotating speed.
5. The method of claim 1, wherein the fan speed parameter comprises a fan speed value range, the stability test is performed on the fan according to the fan speed parameter and the actual speed value, and a stability test result of the fan is obtained, further comprising:
if the actual rotation speed value is in the range of the rotation speed value of the fan, determining that the stability test result of the fan is stable rotation speed;
and if the actual rotating speed value is out of the rotating speed value range of the fan, determining that the stability test result of the fan is unstable rotating speed.
6. The method of any of claims 1-5, wherein determining the fan speed parameter for the current fan duty cycle based on the fan model comprises:
and determining the fan rotating speed parameters corresponding to the current fan under different fan duty ratios according to the corresponding relation among the fan duty ratio, the model and the fan rotating speed parameters of the fan.
7. The method according to any one of claims 1-5, further comprising:
if the fan duty ratio of the fan is a first value, a preset first pressure tool is called to add memory pressure, and an actual rotating speed value of the fan after pressurization is obtained;
if the fan duty ratio of the fan is a second value, a preset second pressure tool is called to add CPU pressure, and an actual rotating speed value of the fan after pressurization is obtained; the second value is greater than the first value.
8. A fan stability testing apparatus, the apparatus comprising:
the determining module is used for determining a fan rotating speed parameter under the current fan duty cycle according to the fan model; the fan speed parameter comprises a fan speed rating;
the verification module is used for sending a configuration instruction carrying the fan rotating speed parameter to a fan, determining the time difference between the first time stamp and the second time stamp according to the first time stamp sending the configuration instruction and the second time stamp when the current rotating speed value of the fan reaches the rated value of the rotating speed of the fan, and carrying out command timeliness verification on the fan according to the time difference;
the test module is used for acquiring an actual rotating speed value of the fan if the fan passes the command timeliness verification, and carrying out stability test on the fan according to the rotating speed parameter of the fan and the actual rotating speed value to obtain a stability test result of the fan; the fan stability test is performed on the fan according to the fan rotation speed parameter and the actual rotation speed value, and a stability test result of the fan is obtained, including: and obtaining a difference value between the actual rotating speed value and the rated fan rotating speed value, and determining a stability test result of the fan according to the difference value.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202011100462.2A 2020-10-15 2020-10-15 Fan stability testing method and device, computer equipment and storage medium Active CN112360788B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011100462.2A CN112360788B (en) 2020-10-15 2020-10-15 Fan stability testing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011100462.2A CN112360788B (en) 2020-10-15 2020-10-15 Fan stability testing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112360788A CN112360788A (en) 2021-02-12
CN112360788B true CN112360788B (en) 2023-04-21

Family

ID=74506727

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011100462.2A Active CN112360788B (en) 2020-10-15 2020-10-15 Fan stability testing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112360788B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113204473B (en) * 2021-06-08 2024-05-24 宁畅信息产业(北京)有限公司 Heat dissipation test method and device, user terminal and storage medium
CN113864999A (en) * 2021-09-22 2021-12-31 珠海格力电器股份有限公司 Air conditioning system energy consumption prediction method and device and air conditioning system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193855A (en) * 2010-03-12 2011-09-21 鸿富锦精密工业(深圳)有限公司 Abnormity alarm circuit for fan
CN103511306A (en) * 2012-06-18 2014-01-15 光宝电子(广州)有限公司 Fan model detection method, fan control method and control circuit and device
CN105045693A (en) * 2015-07-24 2015-11-11 浪潮电子信息产业股份有限公司 CPU and memory pressure change testing method based on PTU tool
JP6312645B2 (en) * 2015-10-09 2018-04-18 ファナック株式会社 Motor driving apparatus capable of reporting abnormal operation of fan and method thereof
US10866006B2 (en) * 2018-06-25 2020-12-15 Dell Products L.P. Systems and methods for fan typing and anomaly detection

Also Published As

Publication number Publication date
CN112360788A (en) 2021-02-12

Similar Documents

Publication Publication Date Title
CN112360788B (en) Fan stability testing method and device, computer equipment and storage medium
CN104763665A (en) Fan fault detection method and device of network device
Ajay et al. 3DGates: An instruction-level energy analysis and optimization of 3D printers
CN115689534B (en) Method, device, equipment and medium for managing service life of equipment based on big data
CN111240929A (en) Mobile machine room supervision method and device, computer equipment and storage medium
CN113254153B (en) Method and device for processing flow task, computer equipment and storage medium
CN115858311A (en) Operation and maintenance monitoring method and device, electronic equipment and readable storage medium
US8428914B2 (en) Method and simulator for real-time calculation of state variables of a process model
CN112392688B (en) Unit debugging method, device, system, equipment and storage medium
CN112346552B (en) Power supply monitoring method, device, computer equipment and storage medium
CN116148600A (en) Method, device and equipment for correcting stress application line fault positioning model of aero-engine
CN107506275B (en) Software protection energy consumption evaluation method based on ARM instruction virtualization
CN116680131A (en) Server test system, server test method, electronic device, and storage medium
CN113689042B (en) Fault source prediction method for monitoring node
CN113808727A (en) Equipment monitoring method and device, computer equipment and readable storage medium
CN112650672A (en) Model testing system, method and device based on Junit
CN112416671A (en) CPU stability testing method and device, computer equipment and storage medium
CN115424551B (en) Flat panel display detection method and device, electronic equipment and medium
CN115061866B (en) Analog data generation method, system and computer equipment
US20230419009A1 (en) Computer-implemented method for simulating an electrical circuit by means of a real-time platform
JP6815930B2 (en) Information processing equipment and system monitoring program
CN117092504A (en) Automatic calibration test method, device, equipment and storage medium for motor
CN108917979B (en) Sample testing method, sample testing device, computer equipment and storage medium
CN106991028A (en) The temperature anomaly processing method and system of a kind of computer
CN112485754A (en) Detection method and device of electric energy metering device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant