Server fan management method and device, equipment and storage medium

By monitoring and determining the performance type of server fans, the baseboard management controller executes appropriate heat dissipation strategies and replaces fans, thus solving the problem of wasted fan resources and improving the server's heat dissipation efficiency and resource utilization.

CN118912019APending Publication Date: 2024-11-08INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411117784.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

In existing server fan management solutions, fan resource allocation is unreasonable, resulting in high-configuration servers having fans that run at full speed for extended periods and wear out quickly, while low-configuration servers have wasted fan resources, and the range of fan speeds that the BMC can adjust is limited.

Method used

By monitoring the current tachometer of the server fan, its stable operating status is determined, and the fan performance type is judged based on the actual speed value. The baseboard management controller executes the corresponding heat dissipation strategy based on the performance type consistency judgment result, and replaces the fan when necessary to optimize resource utilization.

Benefits of technology

It enables the rational allocation of fan resources based on server configuration requirements, improves heat dissipation, reduces fan resource waste, and optimizes fan management strategies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118912019A_ABST
    Figure CN118912019A_ABST
Patent Text Reader

Abstract

The invention provides a server fan management method and device, equipment and a storage medium, and relates to the technical field of computers.The server fan management method comprises the steps that fans are controlled to be started and run based on target rotating speed values preset for all cooling fans in a target server, and current rotating speed tables of the fans are monitored in real time; if the current cooling fans enter the stable operation state, the current actual rotating speed value is determined through the current tachometers of the cooling fans, and the performance types of the fans are determined; and judging whether the performance types of the cooling fans are consistent or not, reporting a corresponding performance type consistency judgment result to a substrate management controller in the target server so as to execute a target cooling strategy, and determining whether the cooling fans need to be replaced or not. Therefore, the cooling fans with different performances can be accurately judged through the actual rotating speed value, corresponding cooling strategies can be executed, a plurality of cooling fans can be selected and replaced, the cooling effect of the fans can be improved, and waste of fan resources can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a server fan management method, device, equipment and storage medium. Background Art

[0002] When designing a server, it is necessary to consider the configuration requirements of different customers. Therefore, at the beginning of the design, a server motherboard will be designed with different combinations, such as storage configuration of multiple hard disk backplanes, computing configuration of multiple CPUs (Central Processing Units), and configuration of a single CPU. Different configuration requirements have different requirements for fan cooling strategies. The fan control chip will intelligently control the fan according to different configurations. For example, in the shutdown state, the CPLD (Complex Programmable Logic Device) chip controls the fan fixed speed to achieve cooling requirements; in the boot state, the BMC (Baseboard Manager Controller) chip controls the fan speed: BMC can monitor the temperature of the air inlet and outlet of the server in real time, and adjust the fan speed in real time according to the real-time temperature changes. However, this solution is suitable for servers with the same motherboard, the performance of the fans selected is consistent, and the fan speed range that the BMC can adjust is limited; for high-configuration servers, the fan speed requirement is too high, the fan keeps full rotation for a long time, and the fan wears out quickly; for low-configuration servers, the speed is continuously low, and from a cost perspective, there is a problem of fan cost waste.

[0003] It can be seen that how to reasonably utilize server fan resources and reduce resource waste is a problem that technical personnel in this field need to solve. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a server fan management method, device, equipment and storage medium, which can accurately determine the cooling fans with different performances through the actual speed value, execute the corresponding cooling strategy, and can choose to replace some of the cooling fans, which can improve the cooling effect of the fans and solve the problem of fan resource waste.

[0005] To solve the above technical problems, in a first aspect, an embodiment of the present application provides a server fan management method, including:

[0006] Controlling each cooling fan in the target server to start running based on the target speed value pre-set for each cooling fan, and monitoring the current speed meter of each cooling fan in real time;

[0007] Determining whether each of the cooling fans has currently entered a stable operating state;

[0008] If the cooling fans have entered a stable operation state, the current speed table of each cooling fan is used to determine the current actual speed value of each cooling fan, and the fan performance type corresponding to each cooling fan is determined based on the current actual speed value of each cooling fan;

[0009] Determine whether the fan performance types corresponding to each of the cooling fans are consistent to obtain a corresponding performance type consistency determination result, and report the performance type consistency determination result to the baseboard management controller in the target server, so that the baseboard management controller controls each of the cooling fans to execute the target cooling strategy corresponding to the performance type consistency determination result, and determines whether the cooling fan in the target server needs to be replaced based on the performance type consistency determination result.

[0010] Optionally, the determining whether each of the cooling fans has currently entered a stable operating state includes:

[0011] After controlling each cooling fan to start running, recording the corresponding fan running time;

[0012] When the fan operation time reaches the pre-configured target operation time, it is determined that each of the heat dissipation fans has currently entered a stable operation state.

[0013] Optionally, the determining the current actual speed value of each of the cooling fans by using the current speed table of each of the cooling fans includes:

[0014] Collecting square wave signals of current tachometers of each cooling fan;

[0015] The current actual rotation speed value of each cooling fan under the current fixed duty cycle is calculated based on the square wave signal; the current fixed duty cycle is the proportion of the high level of the square wave signal in one cycle of the pulse signal.

[0016] Optionally, the determining the fan performance type corresponding to each of the cooling fans based on the current actual rotation speed value of each of the cooling fans includes:

[0017] Determine respectively whether the current actual speed value corresponding to each of the cooling fans is greater than a preset speed threshold value to obtain a corresponding speed value determination result;

[0018] Determining the fan performance type corresponding to each of the cooling fans based on the rotation speed value judgment result of each of the cooling fans;

[0019] Among them, if the speed value judgment result of the cooling fan is that the current actual speed value is greater than the preset speed threshold, the fan performance type of the cooling fan is marked as a high-performance type; if the speed value judgment result of the cooling fan is that the current actual speed value is less than the preset speed threshold, the fan performance type of the cooling fan is marked as a low-performance type.

[0020] Optionally, the determining whether the fan performance types corresponding to the cooling fans are consistent with each other to obtain a corresponding performance type consistency determination result, and reporting the performance type consistency determination result to the baseboard management controller in the target server includes:

[0021] Determine whether the fan performance types corresponding to the cooling fans are all the high-performance types or all the low-performance types;

[0022] If the fan performance types corresponding to the cooling fans are all the high-performance types or all the low-performance types, the pre-specified performance type consistency flag is set to a flag value indicating that the fan performance types corresponding to the cooling fans are consistent, and the performance type consistency flag and the fan performance type corresponding to the cooling fans are reported to the baseboard management controller in the target server through a preset data transmission bus;

[0023] If the fan performance types corresponding to the cooling fans are not all the high-performance type or the low-performance type, the performance type consistency flag is set to a flag value indicating that the fan performance types corresponding to the cooling fans are inconsistent, and the performance type consistency flag, the fan performance types corresponding to the cooling fans, and the target fan performance expected type determined based on the quantity difference between the first quantity and the second quantity are reported to the baseboard management controller through the preset data transmission bus, so that the baseboard management controller generates corresponding alarm information and sends it to the preset operation and maintenance party, so that the preset operation and maintenance party determines the cooling fan to be replaced in the current target server according to the performance type consistency flag and based on the target fan performance expected type;

[0024] The first number is the number of cooling fans whose fan performance type is the high-performance type among the cooling fans, and the second number is the number of cooling fans whose fan performance type is the low-performance type among the cooling fans.

[0025] Optionally, the baseboard management controller controls each of the cooling fans to execute a target cooling strategy corresponding to the performance type consistency determination result, including:

[0026] If the performance type consistency flag in the performance type consistency determination result indicates that the fan performance types corresponding to each of the cooling fans are consistent, the baseboard management controller determines the corresponding first target cooling strategy or the second target cooling strategy according to the fan performance type corresponding to each of the cooling fans, and controls each of the cooling fans to execute the first target cooling strategy or the second target cooling strategy;

[0027] The first target heat dissipation strategy is a heat dissipation strategy corresponding to the high-performance type, and the second target heat dissipation strategy is a heat dissipation strategy corresponding to the low-performance type.

[0028] Optionally, the process of determining the expected type of target fan performance includes:

[0029] If the first number is not less than the second number, determining the target fan performance expected type as the high performance type; otherwise, determining the target fan performance expected type as the low performance type;

[0030] Accordingly, determining the cooling fan to be replaced in the current target server based on the expected performance type of the target fan includes:

[0031] The cooling fan in the current target server whose fan performance type is different from the expected performance type of the target fan is used as the current cooling fan to be replaced.

[0032] In a second aspect, an embodiment of the present application provides a server fan management device, including:

[0033] A fan monitoring module, used to control each cooling fan in the target server to start running based on the target speed value pre-set for each cooling fan, and to monitor the current speed meter of each cooling fan in real time;

[0034] A fan status determination module is used to determine whether each of the cooling fans has currently entered a stable operating state;

[0035] a fan performance determination module, configured to determine the current actual speed value of each of the cooling fans by using the current speed table of each of the cooling fans when each of the cooling fans has entered a stable operation state, and determine the fan performance type corresponding to each of the cooling fans based on the current actual speed value of each of the cooling fans;

[0036] The fan management module is used to determine whether the fan performance types corresponding to each of the cooling fans are consistent, so as to obtain a corresponding performance type consistency determination result, and report the performance type consistency determination result to the baseboard management controller in the target server, so that the baseboard management controller controls each of the cooling fans to execute a target cooling strategy corresponding to the performance type consistency determination result, and determines whether the cooling fan in the target server needs to be replaced based on the performance type consistency determination result.

[0037] In a third aspect, an embodiment of the present application provides a server fan management device, including:

[0038] Memory for storing computer programs;

[0039] The processor is used to execute the computer program to implement the steps of the above-mentioned server fan management method.

[0040] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the server fan management method as described above are implemented.

[0041] It can be seen from the above technical scheme that the present application controls the start-up and operation of each cooling fan in the target server based on the target speed value pre-set for each cooling fan, and monitors the current speed table of each cooling fan in real time; then determines whether each cooling fan has currently entered a stable operating state; if each cooling fan has currently entered a stable operating state, the current speed table of each cooling fan is used to determine the current actual speed value of each cooling fan, and determines the fan performance type corresponding to each cooling fan based on the current actual speed value of each cooling fan; then determines whether the fan performance types corresponding to each cooling fan are consistent, so as to obtain the corresponding performance type consistency determination result, and reports the performance type consistency determination result to the baseboard management controller in the target server, so that the baseboard management controller controls each cooling fan to execute the target cooling strategy corresponding to the performance type consistency determination result, and determines whether the cooling fan in the target server needs to be replaced based on the performance type consistency determination result. In this way, the present application can monitor the operating status of the cooling fan and accurately determine the cooling fans with different performances through the actual speed value, and can realize the cooling control of the fan through the baseboard management controller, and can choose to replace the cooling fan according to the performance type consistency judgment result, so that the corresponding cooling strategy can be executed according to the performance of the cooling fan, which can improve the cooling effect of the fan and reduce the waste of fan resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0043] Figure 1 A flow chart of a server fan management method disclosed in this application;

[0044] Figure 2 A flow chart of a specific server fan management method disclosed in this application;

[0045] Figure 3 A flowchart of another specific server fan management method disclosed in this application;

[0046] Figure 4 This is a schematic diagram of the structure of a server fan management device disclosed in this application;

[0047] Figure 5 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0049] The terms "including" and "having" in the specification of the present invention and the above-mentioned drawings, as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.

[0050] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0051] Next, a server fan management method provided by an embodiment of the present invention is described in detail. Figure 1 A server fan management method provided in an embodiment of the present invention includes:

[0052] Step S11: Control each cooling fan in the target server to start running based on the target speed value pre-set for each cooling fan, and monitor the current speed of each cooling fan in real time.

[0053] In this application, the management process of the cooling fans in the target server can be achieved by the combination of the SCM (secure control module) board CPLD (Complex Programmable Logic Device) and the BMC (Baseboard Manager Controller) in the server motherboard. The CPLD first fixes the fan speed, controls the start-up of each cooling fan through the pre-set target speed value for each cooling fan, and then obtains the fan tach (tachometer) to monitor the current tachometer of each cooling fan in real time, so as to calculate the actual speed value of each cooling fan.

[0054] Step S12: determining whether the cooling fans have currently entered a stable operating state.

[0055] In the embodiment of the present application, in the process of real-time detection of the current tachometer of each cooling fan, it can be determined whether each cooling fan has entered a stable operating state, and a more accurate actual speed value of the cooling fan can be calculated in the stable operating state. In a specific embodiment, the determination of whether each cooling fan has entered a stable operating state can include: after controlling each cooling fan to start running, recording the corresponding fan running time; when the fan running time reaches the pre-configured target running time, it is determined that each cooling fan has entered a stable operating state. Specifically, after the cooling fan starts running, the fan running time can be recorded, and by comparing the fan running time with the pre-set target running time, it is determined whether each cooling fan has entered a stable operating state; for example, if the target running time is thirty seconds, the current tachometer of the relevant cooling fan can be monitored when the fan running time of the cooling fan reaches thirty seconds, and it is considered that the monitored current tachometer is the tachometer of the cooling fan when it is running stably.

[0056] In a specific embodiment, the process of determining whether each cooling fan has currently entered a stable operating state can determine the stable operating state of the fan by the difference between several values ​​of the tachometer within a period of time; specifically, when the difference between several values ​​of the tachometer of each cooling fan is monitored to be less than a preset difference threshold within a preset continuous time period, it can be determined at the end of the time period that each cooling fan has currently entered a stable operating state; in this way, the stable operating state of the cooling fan can also be determined by comparing the difference between several consecutive values ​​of the tachometer.

[0057] Step S13: If the cooling fans have entered a stable operation state, the current speed table of each cooling fan is used to determine the current actual speed value of each cooling fan, and the fan performance type corresponding to each cooling fan is determined based on the current actual speed value of each cooling fan.

[0058] In an embodiment of the present application, after determining through the above steps that each cooling fan has currently entered a stable operating state, the actual speed value of each cooling fan can be further calculated. Specifically, the current speed table of each cooling fan is used to calculate the corresponding current actual speed value; and then the fan performance type of each cooling fan is determined based on the calculated actual speed value.

[0059] In a specific embodiment, the use of the current tachometer of each cooling fan to determine the current actual speed value of each cooling fan may include: collecting the square wave signal of the current tachometer of each cooling fan; calculating the current actual speed value of each cooling fan under the current fixed duty cycle based on the square wave signal; the current fixed duty cycle is the proportion of the high level of the square wave signal in a pulse signal cycle. Specifically, the actual speed value of the fan under the current fixed duty cycle can be calculated through the square wave information of the current tachometer of each cooling fan, and the actual speed value obtained at this time is a specific value.

[0060] In another specific embodiment, the determining of the fan performance type corresponding to each of the cooling fans based on the current actual speed value of each of the cooling fans may include: respectively determining whether the current actual speed value corresponding to each of the cooling fans is greater than a preset speed threshold value to obtain a corresponding speed value determination result; determining the fan performance type corresponding to each of the cooling fans based on the speed value determination result of each of the cooling fans; wherein, if the speed value determination result of the cooling fan is that the current actual speed value is greater than the preset speed threshold value, the fan performance type of the cooling fan is marked as a high performance type; if the speed value determination result of the cooling fan is that the current actual speed value is less than the preset speed threshold value, the fan performance type of the cooling fan is marked as a low performance type. Specifically, in the process of determining the fan performance type of the cooling fan, the magnitude relationship between the current actual speed value corresponding to the cooling fan and the preset speed threshold value is determined; if the current actual speed value corresponding to the cooling fan is greater than the preset speed threshold value, the fan performance type of the cooling fan may be marked as a high performance type; if the current actual speed value corresponding to the cooling fan is greater than the preset speed threshold value, the fan performance type of the cooling fan may be marked as a low performance type.

[0061] Step S14, determine whether the fan performance types corresponding to each of the cooling fans are consistent to obtain a corresponding performance type consistency determination result, and report the performance type consistency determination result to the baseboard management controller in the target server, so that the baseboard management controller controls each of the cooling fans to execute the target cooling strategy corresponding to the performance type consistency determination result, and determines whether the cooling fan in the target server needs to be replaced based on the performance type consistency determination result.

[0062] In an embodiment of the present application, after determining the fan performance type corresponding to each cooling fan, it is necessary to judge the consistency between the fan performance types to obtain the corresponding performance type consistency determination result; the performance type consistency determination result can then be reported to the baseboard management controller of the target server, and the baseboard manager executes the target cooling strategy for the relevant cooling fans according to the performance type consistency determination result, and the baseboard management controller can determine whether it is necessary to replace some cooling fans in the target server based on the performance type consistency determination result.

[0063] In a specific embodiment, the determination of whether the fan performance types corresponding to each of the cooling fans are consistent to obtain a corresponding performance type consistency determination result, and reporting the performance type consistency determination result to the baseboard management controller in the target server may include: determining whether the fan performance types corresponding to each of the cooling fans are all the high-performance type or all the low-performance type; if the fan performance types corresponding to each of the cooling fans are all the high-performance type or all the low-performance type, setting a pre-specified performance type consistency flag to a flag value indicating that the fan performance types corresponding to each of the cooling fans are consistent, and reporting the performance type consistency flag and the fan performance type corresponding to each of the cooling fans to the baseboard management controller in the target server through a preset data transmission bus; if the fan performance types corresponding to each of the cooling fans are not all the high-performance type, type or the low-performance type, the performance type consistency flag is set to a flag value characterizing that the fan performance types corresponding to each of the cooling fans are inconsistent, and the performance type consistency flag, the fan performance type corresponding to each of the cooling fans, and the target fan performance expected type determined based on the quantity difference between the first quantity and the second quantity are reported to the baseboard management controller through the preset data transmission bus, so that the baseboard management controller generates corresponding alarm information and sends it to the preset operation and maintenance party, so that the preset operation and maintenance party determines the cooling fan to be replaced in the current target server according to the performance type consistency flag and based on the target fan performance expected type; wherein the first number is the number of cooling fans whose fan performance type is the high-performance type among each of the cooling fans, and the second number is the number of cooling fans whose fan performance type is the low-performance type among each of the cooling fans. Specifically, the fan performance type of the cooling fan can be divided into a high-performance type and a low-performance type. If the performance consistency judgment result indicates that the fan performance types of all cooling fans are high-performance types or all are low-performance types, the pre-specified performance consistency flag can be set to a flag value indicating consistent fan performance, and the performance consistency flag and the fan performance type corresponding to each cooling fan can be reported to the baseboard management controller of the target server through the integrated circuit bus, so as to inform the baseboard management controller of the performance type of the cooling fan in the target server, and the performance types of all cooling fans are consistent.Correspondingly, if the fan performance types corresponding to all the cooling fans in the target server are inconsistent, that is, some fans are of high-performance type and other fans are of low-performance type, then the performance type consistency flag needs to be set to a flag value representing the inconsistency, and the target fan performance expectation type for the target server is determined based on the number of high-performance type fans and the number of low-performance type fans in all the cooling fans. The target fan performance expectation type represents the fan performance type that should exist in the target server, and can determine the fan that needs to be replaced; then the performance consistency flag, the fan performance type corresponding to each cooling fan, and the target fan performance expectation type can be reported to the baseboard management controller of the target server, so that the baseboard management controller can choose to replace the relevant cooling fans based on this information.

[0064] It should be pointed out that if the performance type consistency determination result indicates that there are both high-performance types and low-performance types in the fan performance types corresponding to all cooling fans in the target server, it is necessary to set the pre-specified performance consistency flag to a flag value indicating inconsistent fan performance, so as to inform the baseboard management controller that the relevant cooling fans need to be managed and replaced; and it is necessary to further determine the number of fans of the high-performance type and the number of fans of the low-performance type among all cooling fans, so as to obtain a first number and a second number; according to the difference in quantity between the first number and the second number, the performance types corresponding to most fans among all cooling fans can be determined, and the fan performance types corresponding to the majority of fans can be determined as the target fan performance expected type, that is, it is expected that the performance types of all cooling fans in the target server are the target fan performance expected type; in other words, if the performance types of all cooling fans in the target server are inconsistent, it is necessary to determine the fan performance types corresponding to the majority of cooling fans as the target fan performance expected type, so as to inform the baseboard management controller through the target fan performance expected type to replace the cooling fans that do not belong to the target fan performance expected type, that is, to determine the fans to be replaced from all cooling fans of the target server through the target fan performance expected type.

[0065] In another specific embodiment, the process of determining the target fan performance expected type may include: if the first number is not less than the second number, determining the target fan performance expected type as the high performance type, otherwise determining the target fan performance expected type as the low performance type; accordingly, determining the cooling fan to be replaced in the current target server based on the target fan performance expected type may include: using the cooling fan whose fan performance type is different from the target fan performance expected type in the current target server as the current cooling fan to be replaced. Specifically, in the process of determining the target fan performance expected type, it is determined according to the number of fans of different performance types. If the first number is not less than the second number, the high performance type is determined as the target fan performance expected type; if the first number is less than the second number, the target fan performance expected type is determined as the low performance type. Further, in the process of determining the fans to be replaced, several cooling fans whose fan performance types are different from the target fan performance expected type are determined from all the cooling fans of the target server according to the target fan performance expected type. For example, if the high performance type is the target fan performance expected type, several fans of the low performance type among all the cooling fans are determined as the fans to be replaced.

[0066] It should be pointed out that, in a specific embodiment, a first speed threshold and a second speed threshold may be pre-set in the process of determining the performance type of the cooling fan, wherein the first speed threshold is greater than the second speed threshold; then, the performance type of the cooling fan is determined based on the relationship between the current actual speed value corresponding to the cooling fan and the first speed threshold and the second speed threshold; if the current actual speed value of the cooling fan is greater than the first preset speed threshold, the cooling fan is determined to be a high-performance type; if the current actual speed value of the cooling fan is less than the second preset speed threshold, the cooling fan is determined to be a low-performance type; if the current actual speed value of the cooling fan is between the first speed threshold and the second speed threshold, these cooling fans may be marked in advance, such as by specially marking the fan performance types of these cooling fans as medium-performance fans, in order to distinguish cooling fans with different performances. Furthermore, in the process of determining the expected performance type of the target fan, the number of high-performance type fans is recorded as the third number, the number of low-performance type fans is recorded as the fourth number, and the medium-performance type fans is recorded as the fifth number; then, based on the size relationship between the third number and the fourth number, the target fan performance expected type can be determined. At this time, based on the target fan performance expected type, the medium-performance type fans can be selected to be marked as fans to be replaced; of course, the target fan performance expected type can also be determined from the three performance types based on the size relationship between the third number, the fourth number, and the fifth number; the determination process of the target fan performance expected type in this embodiment can be freely selected according to actual conditions, and the default is to retain the cooling fans with the largest number of the same performance type.

[0067] In another specific embodiment, the baseboard management controller controls each of the cooling fans to execute a target cooling strategy corresponding to the performance type consistency determination result, which may include: if the performance type consistency flag in the performance type consistency determination result indicates that the fan performance types corresponding to each of the cooling fans are consistent, then the baseboard management controller determines the corresponding first target cooling strategy or the second target cooling strategy according to the fan performance type corresponding to each of the cooling fans, and controls each of the cooling fans to execute the first target cooling strategy or the second target cooling strategy; wherein the first target cooling strategy is a cooling strategy corresponding to the high performance type, and the second target cooling strategy is a cooling strategy corresponding to the low performance type. Specifically, the baseboard management controller first determines whether the fan performance types of the cooling fans in the target server are consistent according to the performance type consistency flag. If they are consistent, the corresponding first target cooling strategy for the high performance type or the second target cooling strategy for the low performance type can be executed according to the high performance type or the low performance type corresponding to all the cooling fans.

[0068] It can be seen that the present application adopts fans of different performances for different configurations of the server. The CPLD can monitor the operating status of the cooling fan in the target server and the actual speed value can accurately determine the cooling fans of different performances, which can adapt to the fan requirements of different configurations of the server; the baseboard management controller can be used to realize the cooling control of the fan, and some of the cooling fans can be replaced according to the performance type of the fan in the server and the number of fans of different performance types. In this way, the corresponding cooling strategy can be executed according to the performance of the cooling fan, which can improve the cooling effect of the fan and reduce the waste of fan resources.

[0069] The following embodiments will introduce in detail the process of CPLD and BMC cooperating to manage and control the cooling fan in the server in combination with specific usage scenarios. The embodiment of the present application discloses a server fan management method, including:

[0070] In the present application embodiment, Figure 2As shown in the figure, the process of CPLD managing the cooling fan in the target server, CPLD can set the target speed value of the fan speed in advance, such as 60%, and control the fan to start running according to the target speed value; then read back the fan's tach data in real time, and determine whether the fan is in a stable operating state; for example, after waiting for 30s and the fan rotor basically rotates stably, it can be determined that the cooling fan is in a stable operating state at this time; at this time, the actual speed value of the fan under a fixed duty (duty cycle) can be calculated. Further, if the actual speed value of the fan is higher than the preset threshold, such as higher than 13000, it can be determined that the cooling fan is a high-performance fan, and if it is lower than 13000, it is determined to be a low-performance fan. It can be understood that after all the cooling fans in the server need to be judged by the SCM board CPLD, if the high and low performance judgment results of all the cooling fans are consistent, the judgment result data is considered valid, and the performance type consistency flag is set to a high level representing the valid bit (the performance type consistency of all cooling fans represents the valid result), and the high and low performance judgment results of each fan are reported to the BMC through I2C (Inter-Integrated Circuit, integrated circuit bus) communication;

[0071] Correspondingly, if all the cooling fans in the server are judged by performance type, some of them are high-performance and others are low-performance, that is, the performance type judgment results corresponding to all cooling fans are inconsistent, then the performance type consistency flag is set to a low level representing the invalid bit to consider the judgment result data invalid (the inconsistent performance type corresponding to all cooling fans represents the invalid result); at this time, the CPLD can report the judgment result to the BMC, so that the BMC can handle the alarm and notify the operation and maintenance personnel, and at the same time report each fan performance judgment result to the BMC through I2C communication; it can be understood that if the fan performance type judgment results corresponding to all cooling fans are inconsistent, the SCM board CPLD can further determine the number of fans of different performance types, and take the performance of most fans as the expected fan performance type (target fan performance expected type), and report the expected performance type to the BMC. For example, if there are 6 fans, if more than 3 or more fans have high performance, the expected performance type is reported as high performance type; if more than 3 or more fans have low performance, the expected performance type is reported as low performance type. Furthermore, after the BMC obtains the flag information indicating the inconsistent performance of all the cooling fans of the server, it can trigger the corresponding alarm information, so that after the operation and maintenance personnel view the fan performance alarm through the BMC, they can continue to confirm the specific performance judgment result of each fan, and replace the cooling fans in the server according to the current configuration, replacing the high-performance type of fan with the low-performance type of fan, or replacing the low-performance type of fan with the high-performance type of fan. After the fan update is completed, the operation and maintenance personnel can manually trigger the command from the BMC to the CPLD via I2C, informing the CPLD that the fan performance judgment needs to be restarted. If the judgment result is consistent and valid, the CPLD will inform the BMC through I2C communication to release the alarm.

[0072] In the present application embodiment, Figure 3As shown, the BMC can read the fan performance determination result reported by the CPLD, which may include a performance consistency flag indicating whether the performance of all cooling fans is consistent, the fan performance type corresponding to each cooling fan, and the target fan performance expected type. Based on the fan performance determination result and in combination with the server temperature sensor value read, the BMC performs intelligent regulation on all cooling fans of the server. Specifically, if the fan performance determination result flag obtained by the BMC is at a high level, indicating that the performance type of all cooling fans is consistent, an alarm is generated at this time, and the corresponding cooling strategy can be directly executed regardless of the fan performance determination result; if the fan performance determination result flag read by the BMC is at a low level, indicating that the performance type corresponding to all cooling fans is inconsistent, an alarm needs to be triggered at this time, and the BMC can first default to executing the corresponding cooling strategy according to the target fan performance expected type in the fan performance determination result reported by the CPLD, and at the same time trigger an alarm message for fan performance to remind the operation and maintenance personnel that there is a mismatch in fan performance, and the fan to be replaced whose fan performance type is different from the target fan performance expected type needs to be replaced in time. Furthermore, after the operation and maintenance personnel complete the replacement of the fan, they manually send an I2C command to the CPLD and wait for the fan performance test result again. When the performance types of all cooling fans are consistent, the BMC can cancel the alarm information about the fan performance.

[0073] It should be pointed out that the fan performance detection and determination process is implemented by the SCM board CPLD. In a dual-node or multi-node server architecture, the SCM board CPLD can simultaneously inform the multi-node server BMC. When one of the nodes is unplugged, the BMC of the remaining nodes can continue to intelligently control the fan.

[0074] It can be seen that the present application completes the management and control of the cooling fans in the server by the combination of the SCM board CPLD and the BMC in the server mainboard. In view of the situation where fans with different performances are used for different server configurations, the CPLD can monitor the operating status of the cooling fans in the target server and accurately determine the cooling fans with different performances through the actual speed value, which can adapt to the fan requirements of different server configurations; the baseboard management controller can be used to realize the cooling control of the fans, and some of the cooling fans can be replaced according to the performance type of the fans in the server and the number of fans of different performance types. In this way, the corresponding cooling strategy can be executed according to the performance of the cooling fans, which can improve the cooling effect of the fans and reduce the waste of fan resources.

[0075] Figure 4 A schematic structural diagram of a server fan management device provided by an embodiment of the present invention includes:

[0076] The fan monitoring module 11 is used to control each cooling fan in the target server to start running based on the target speed value pre-set for each cooling fan, and monitor the current speed meter of each cooling fan in real time;

[0077] A fan state determination module 12 is used to determine whether each of the cooling fans has currently entered a stable operation state;

[0078] a fan performance determination module 13, configured to determine the current actual speed value of each of the cooling fans by using the current speed table of each of the cooling fans when each of the cooling fans has entered a stable operation state, and determine the fan performance type corresponding to each of the cooling fans based on the current actual speed value of each of the cooling fans;

[0079] The fan management module 14 is used to determine whether the fan performance types corresponding to each of the cooling fans are consistent, so as to obtain a corresponding performance type consistency determination result, and report the performance type consistency determination result to the baseboard management controller in the target server, so that the baseboard management controller controls each of the cooling fans to execute the target cooling strategy corresponding to the performance type consistency determination result, and determines whether the cooling fan in the target server needs to be replaced based on the performance type consistency determination result.

[0080] It can be seen that the present application can monitor the operating status of the cooling fan and accurately determine the cooling fans with different performances through the actual speed value, and can realize the cooling control of the fan through the baseboard management controller, and can choose to replace the cooling fan according to the performance type consistency judgment result, so that the corresponding cooling strategy can be executed according to the performance of the cooling fan, which can improve the cooling effect of the fan and reduce the waste of fan resources.

[0081] In a specific embodiment, the fan status determination module 12 may include:

[0082] An operation time recording unit, used for recording the operation time of the corresponding fan after controlling each cooling fan to start running;

[0083] The stable operation state determining unit is used to determine that each of the heat dissipation fans has entered a stable operation state when the operation time of the fan reaches a pre-configured target operation time.

[0084] In a specific embodiment, the fan performance determination module 13 may include:

[0085] A square wave signal acquisition unit, used for acquiring the square wave signal of the current tachometer of each cooling fan;

[0086] The speed value calculation unit is used to calculate the current actual speed value of each cooling fan under the current fixed duty cycle based on the square wave signal; the current fixed duty cycle is the proportion of the high level of the square wave signal in one cycle of the pulse signal.

[0087] In a specific embodiment, the fan performance determination module 13 may include:

[0088] A speed value judgment unit, used to judge whether the current actual speed value corresponding to each of the cooling fans is greater than a preset speed threshold value, so as to obtain a corresponding speed value judgment result;

[0089] a fan performance type determination unit, configured to determine the fan performance type corresponding to each of the cooling fans based on the rotation speed value determination result of each of the cooling fans;

[0090] Among them, if the speed value judgment result of the cooling fan is that the current actual speed value is greater than the preset speed threshold, the fan performance type of the cooling fan is marked as a high-performance type; if the speed value judgment result of the cooling fan is that the current actual speed value is less than the preset speed threshold, the fan performance type of the cooling fan is marked as a low-performance type.

[0091] In a specific embodiment, the fan management module 14 may include:

[0092] A fan performance type determination unit, used to determine whether the fan performance types corresponding to the cooling fans are all the high-performance types or all the low-performance types;

[0093] A first reporting unit is used for, when the fan performance types corresponding to the cooling fans are all the high-performance types or all the low-performance types, setting a pre-specified performance type consistency flag to a flag value indicating that the fan performance types corresponding to the cooling fans are all consistent, and reporting the performance type consistency flag and the fan performance type corresponding to the cooling fans to the baseboard management controller in the target server through a preset data transmission bus;

[0094] A second reporting submodule is configured to, when the fan performance types corresponding to the cooling fans are not all the high-performance type or the low-performance type, set the performance type consistency flag to a flag value indicating that the fan performance types corresponding to the cooling fans are inconsistent, and report the performance type consistency flag, the fan performance types corresponding to the cooling fans, and the target fan performance expected type determined based on the quantity difference between the first quantity and the second quantity to the baseboard management controller through the preset data transmission bus, so that the baseboard management controller generates corresponding alarm information and sends it to a preset operation and maintenance party, so that the preset operation and maintenance party determines the cooling fan to be replaced in the current target server according to the performance type consistency flag and based on the target fan performance expected type;

[0095] The first number is the number of cooling fans whose fan performance type is the high-performance type among the cooling fans, and the second number is the number of cooling fans whose fan performance type is the low-performance type among the cooling fans.

[0096] In a specific embodiment, the fan management module 14 may include:

[0097] a cooling strategy execution unit, configured to, when the performance type consistency flag in the performance type consistency determination result indicates that the fan performance types corresponding to each of the cooling fans are consistent, determine by the baseboard management controller a corresponding first target cooling strategy or a second target cooling strategy according to the fan performance types corresponding to each of the cooling fans, and control each of the cooling fans to execute the first target cooling strategy or the second target cooling strategy;

[0098] The first target heat dissipation strategy is a heat dissipation strategy corresponding to the high-performance type, and the second target heat dissipation strategy is a heat dissipation strategy corresponding to the low-performance type.

[0099] In another specific embodiment, the second reporting submodule may include:

[0100] an expected type determining unit, configured to determine the target fan performance expected type as the high-performance type when the first number is not less than the second number, and otherwise determine the target fan performance expected type as the low-performance type;

[0101] Accordingly, the fan management module 14 may include:

[0102] The fan-to-be-replaced determining unit is configured to take the cooling fan in the current target server whose fan performance type is different from the target fan performance expected type as the current cooling fan to be replaced.

[0103] Furthermore, the present application also discloses an electronic device. Figure 5 This is a structural diagram of an electronic device according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.

[0104] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the server fan management method disclosed in any of the aforementioned embodiments. In addition, the electronic device in this embodiment may specifically be an electronic computer.

[0105] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device; the communication interface 24 can create a data transmission channel between the electronic device and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0106] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0107] The operating system 221 is used to manage and control various hardware devices on the electronic device and the computer program 222, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the server fan management method performed by the electronic device disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.

[0108] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the aforementioned disclosed server fan management method. For the specific steps of the method, reference may be made to the corresponding contents disclosed in the aforementioned embodiments, and no further description will be given here.

[0109] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0110] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0111] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0112] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0113] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technicians in this field, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A server fan management method, characterized in that: include: Controlling each cooling fan in the target server to start running based on the target speed value pre-set for each cooling fan, and monitoring the current speed meter of each cooling fan in real time; Determining whether each of the cooling fans has currently entered a stable operating state; If the cooling fans have entered a stable operation state, the current speed table of each cooling fan is used to determine the current actual speed value of each cooling fan, and the fan performance type corresponding to each cooling fan is determined based on the current actual speed value of each cooling fan; Determine whether the fan performance types corresponding to each of the cooling fans are consistent to obtain a corresponding performance type consistency determination result, and report the performance type consistency determination result to the baseboard management controller in the target server, so that the baseboard management controller controls each of the cooling fans to execute the target cooling strategy corresponding to the performance type consistency determination result, and determines whether the cooling fan in the target server needs to be replaced based on the performance type consistency determination result.

2. The server fan management method according to claim 1, characterized in that: The determining whether each of the cooling fans has currently entered a stable operating state comprises: After controlling each cooling fan to start running, recording the corresponding fan running time; When the fan operation time reaches the pre-configured target operation time, it is determined that each of the heat dissipation fans has currently entered a stable operation state.

3. The server fan management method according to claim 1, characterized in that: The method of using the current speed table of each cooling fan to determine the current actual speed value of each cooling fan includes: Collecting square wave signals of current tachometers of each cooling fan; The current actual rotation speed value of each cooling fan under the current fixed duty cycle is calculated based on the square wave signal; the current fixed duty cycle is the proportion of the high level of the square wave signal in one cycle of the pulse signal.

4. The server fan management method according to any one of claims 1 to 3, characterized in that: The determining the fan performance type corresponding to each of the cooling fans based on the current actual rotation speed value of each of the cooling fans includes: Determine respectively whether the current actual speed value corresponding to each of the cooling fans is greater than a preset speed threshold value to obtain a corresponding speed value determination result; Determining the fan performance type corresponding to each of the cooling fans based on the rotation speed value judgment result of each of the cooling fans; Among them, if the speed value judgment result of the cooling fan is that the current actual speed value is greater than the preset speed threshold, the fan performance type of the cooling fan is marked as a high-performance type; if the speed value judgment result of the cooling fan is that the current actual speed value is less than the preset speed threshold, the fan performance type of the cooling fan is marked as a low-performance type.

5. The server fan management method according to claim 4, characterized in that: The determining whether the fan performance types corresponding to the cooling fans are consistent with each other to obtain a corresponding performance type consistency determination result, and reporting the performance type consistency determination result to the baseboard management controller in the target server includes: Determine whether the fan performance types corresponding to the cooling fans are all the high-performance types or all the low-performance types; If the fan performance types corresponding to the cooling fans are all the high-performance types or all the low-performance types, the pre-specified performance type consistency flag is set to a flag value indicating that the fan performance types corresponding to the cooling fans are consistent, and the performance type consistency flag and the fan performance type corresponding to the cooling fans are reported to the baseboard management controller in the target server through a preset data transmission bus; If the fan performance types corresponding to the cooling fans are not all the high-performance type or the low-performance type, the performance type consistency flag is set to a flag value indicating that the fan performance types corresponding to the cooling fans are inconsistent, and the performance type consistency flag, the fan performance types corresponding to the cooling fans, and the target fan performance expected type determined based on the quantity difference between the first quantity and the second quantity are reported to the baseboard management controller through the preset data transmission bus, so that the baseboard management controller generates corresponding alarm information and sends it to the preset operation and maintenance party, so that the preset operation and maintenance party determines the cooling fan to be replaced in the current target server according to the performance type consistency flag and based on the target fan performance expected type; The first number is the number of cooling fans whose fan performance type is the high-performance type among the cooling fans, and the second number is the number of cooling fans whose fan performance type is the low-performance type among the cooling fans.

6. The server fan management method according to claim 5, characterized in that: The baseboard management controller controls each of the cooling fans to execute a target cooling strategy corresponding to the performance type consistency determination result, including: If the performance type consistency flag in the performance type consistency determination result indicates that the fan performance types corresponding to each of the cooling fans are consistent, the baseboard management controller determines the corresponding first target cooling strategy or the second target cooling strategy according to the fan performance type corresponding to each of the cooling fans, and controls each of the cooling fans to execute the first target cooling strategy or the second target cooling strategy; The first target heat dissipation strategy is a heat dissipation strategy corresponding to the high-performance type, and the second target heat dissipation strategy is a heat dissipation strategy corresponding to the low-performance type.

7. The server fan management method according to claim 6, characterized in that: The process of determining the expected type of target fan performance includes: If the first number is not less than the second number, the target fan performance expected type is determined as the high performance type; otherwise, the target fan performance expected type is determined as the low performance type; Accordingly, determining the cooling fan to be replaced in the current target server based on the expected performance type of the target fan includes: The cooling fan in the current target server whose fan performance type is different from the expected performance type of the target fan is used as the current cooling fan to be replaced.

8. A server fan management device, characterized in that: include: A fan monitoring module, used to control each cooling fan in the target server to start running based on the target speed value pre-set for each cooling fan, and to monitor the current speed meter of each cooling fan in real time; A fan status determination module is used to determine whether each of the cooling fans has currently entered a stable operating state; a fan performance determination module, configured to determine the current actual speed value of each of the cooling fans by using the current speed table of each of the cooling fans when each of the cooling fans has entered a stable operation state, and determine the fan performance type corresponding to each of the cooling fans based on the current actual speed value of each of the cooling fans; The fan management module is used to determine whether the fan performance types corresponding to each of the cooling fans are consistent, so as to obtain a corresponding performance type consistency determination result, and report the performance type consistency determination result to the baseboard management controller in the target server, so that the baseboard management controller controls each of the cooling fans to execute a target cooling strategy corresponding to the performance type consistency determination result, and determines whether the cooling fan in the target server needs to be replaced based on the performance type consistency determination result.

9. A server fan management device, characterized in that: include: Memory for storing computer programs; A processor is used to execute the computer program to implement the steps of the server fan management method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the server fan management method according to any one of claims 1 to 7 are implemented.