Fan control method and device, baseboard management controller and server

By dynamically adjusting the fan speed according to the server's monitoring mode, the existing problems of high server startup energy consumption and loud noise are solved, and energy consumption and noise are reduced.

CN117570049BActive Publication Date: 2024-10-01SHANGHAI HEXIN DIGITAL TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311872969.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-30
Publication Date
2024-10-01
Estimated Expiration
2043-12-30

AI Technical Summary

Technical Problem

During the startup process of existing servers, the fan is directly configured to full rotation for a fixed time, resulting in high energy consumption and high noise.

Method used

By determining the current monitoring mode, the target parameter information and speed control strategy corresponding to the mode are obtained, and the fan speed is controlled according to the target parameter information and speed control strategy to achieve dynamic adjustment of the fan, ensure that the fan speed is consistent with the actual scenario, and reduce energy consumption and reduce noise.

Benefits of technology

It effectively reduces the energy consumption of the server and the noise during startup, and achieves reasonable control of fan speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117570049B_ABST
    Figure CN117570049B_ABST
Patent Text Reader

Abstract

The present application relates to a fan control method and device, a baseboard management controller and a server. In the fan control method, by determining the current monitoring mode, the target parameter information and target speed control strategy corresponding to the current monitoring mode are obtained, wherein different monitoring modes correspond to different parameter types and speed control strategies, and finally the rotation speed of at least one fan is controlled according to the target parameter information and the target speed control strategy, so that the rotation speed of the fan is controlled based on the obtained target parameter information and the target speed control strategy, and the rotation speed of the fan can be more consistent with the rotation speed required by the actual scenario, rather than being directly configured to be fully rotated for a fixed time to achieve reasonable control of the rotation speed of each fan, thereby reducing the energy consumption of the server and also reducing the noise during the server startup process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of servers, and in particular to a fan control method and device, a baseboard management controller and a server. Background Art

[0002] Currently, most manufacturers will directly configure each internal fan to fully rotate for a fixed time (about 30 seconds) during the server startup process, which results in high energy consumption of the server during the startup process. Summary of the invention

[0003] Based on this, it is necessary to provide a fan control method and device, a baseboard management controller and a server that can reduce the energy consumption of the server in order to address the above technical problems.

[0004] In a first aspect, the present application provides a method for controlling a fan. The method comprises:

[0005] Determine the current monitoring mode;

[0006] Acquire target parameter information and target speed control strategy corresponding to the current monitoring mode, wherein parameter types and speed control strategies of parameter information corresponding to different monitoring modes are different;

[0007] The rotation speed of at least one of the fans is controlled according to the target parameter information and the target speed control strategy.

[0008] In one embodiment, the acquiring target parameter information corresponding to the current monitoring mode includes:

[0009] When the current monitoring mode is the component monitoring mode, obtaining a control coefficient of a target mainboard component and first parameter information of a first target fan group, wherein the target mainboard component corresponds to the first target fan group, and the first target fan group includes at least one of the fans;

[0010] The controlling the rotation speed of at least one of the fans according to the target parameter information and the target speed control strategy includes:

[0011] Determine first speed control information of the first target fan group according to a preset first calculation formula, the first parameter information and the regulation coefficient;

[0012] The rotation speed of at least one of the fans in the first target fan group is controlled according to the first rotation speed control information.

[0013] In one embodiment, the method further comprises:

[0014] Acquire temperature information of the target mainboard component;

[0015] The temperature information of the target mainboard component is compared with the corresponding operating temperature threshold, and the first speed control information is adjusted according to the comparison result.

[0016] In one embodiment, the acquiring target parameter information corresponding to the current monitoring mode includes:

[0017] In a case where the current monitoring mode is the processor monitoring mode, obtaining utilization information of a target central processor and second parameter information of a second target fan group, wherein the target central processor corresponds to the second target fan group, and the second target fan group includes at least one of the fans;

[0018] The controlling the rotation speed of at least one of the fans according to the target parameter information and the target speed control strategy includes:

[0019] Determine second speed control information of the second target fan group according to a preset second calculation formula, the second parameter information and the utilization information;

[0020] The rotation speed of at least one of the fans in the second target fan group is controlled according to the second rotation speed control information.

[0021] In one embodiment, the method further comprises:

[0022] When receiving the speed control switching instruction, obtaining the temperature information of the target central processing unit;

[0023] The temperature information of the target central processing unit is compared with the corresponding operating temperature threshold, and the second speed control information is adjusted according to the comparison result.

[0024] In one embodiment, the acquiring target parameter information corresponding to the current monitoring mode includes:

[0025] When the current monitoring mode is the power consumption monitoring mode, obtaining current total power consumption information and total rated power consumption information, wherein the current total power consumption information includes the sum of the current power consumption of each power supply, and the total rated power consumption signal includes the sum of the rated power consumption of each power supply;

[0026] The controlling the rotation speed of at least one of the fans according to the target parameter information and the target speed control strategy includes:

[0027] Determining third speed control information of each of the fans according to a preset third calculation formula, the current total power consumption information and the total rated power consumption information;

[0028] The rotation speed of each of the fans is controlled according to the third rotation speed control information.

[0029] In one embodiment, the method further comprises:

[0030] Acquire first position information of each mainboard component and second position information of each fan;

[0031] The fans are grouped according to the first position information and the second position information to determine a fan group corresponding to each mainboard component, wherein each fan group includes at least one fan.

[0032] In a second aspect, the present application also provides a fan control device. The device comprises:

[0033] A determination module, used to determine the current monitoring mode;

[0034] A parameter adjustment module, used to obtain target parameter information and target speed control strategy corresponding to the current monitoring mode, wherein the parameter type and speed control strategy of the parameter information corresponding to different monitoring modes are different;

[0035] A control module is used to control the rotation speed of at least one of the fans according to the target parameter information and the target speed control strategy.

[0036] In a third aspect, the present application further provides a baseboard management controller. The baseboard management controller includes a memory and a processor, the memory stores a computer program, and the processor implements the fan control method in any method embodiment when executing the computer program.

[0037] In a fourth aspect, the present application further provides a server, which includes a mainboard and a baseboard management controller in the above embodiment arranged on the mainboard, wherein the mainboard is provided with at least one fan, a plurality of mainboard components and at least one central processing unit.

[0038] In a fifth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the fan control method in any method embodiment is implemented.

[0039] In a sixth aspect, the present application further provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the fan control method in any of the above method embodiments is implemented.

[0040] The above-mentioned fan control method and device, baseboard management controller, server, computer-readable storage medium and computer program product, wherein the fan control method can be executed by the baseboard management controller. In the fan control method, by determining the current monitoring mode, the target parameter information and target speed control strategy corresponding to the current monitoring mode are obtained, wherein different monitoring modes correspond to different parameter types and speed control strategies, and finally the rotation speed of at least one fan is controlled according to the target parameter information and the target speed control strategy, so that the rotation speed of each fan is controlled based on the obtained target parameter information and the target speed control strategy, and the rotation speed of each fan can be more consistent with the rotation speed required by the actual scenario, rather than being directly configured as a full rotation fixed time, thereby achieving reasonable control of the rotation speed of each fan, reducing the energy consumption of the server, and also reducing the noise during the server startup process. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 is a flow chart of a fan control method in one embodiment;

[0042] Figure 2 is a flow chart of a fan control method in one embodiment;

[0043] Figure 3 is a flow chart of step 104 and step 106 in one embodiment;

[0044] Figure 4 is a flow chart of a fan control method in one embodiment;

[0045] Figure 5 is a flow chart of step 104 and step 106 in one embodiment;

[0046] Figure 6 is a flow chart of a fan control method in one embodiment;

[0047] Figure 7 is a flow chart of step 104 and step 106 in one embodiment;

[0048] Figure 8 A schematic diagram of the working process of a server in a component monitoring mode in an embodiment;

[0049] Fig. 9 A schematic diagram of the workflow of a server in a processor monitoring mode in an embodiment;

[0050] Fig.10 A schematic diagram of a working process of a server in a power consumption monitoring mode in an embodiment;

[0051] Fig.11 FIG. 4 is a structural block diagram of a fan control device in an embodiment. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0053] The fan control method provided in the embodiment of the present application can be applied to a server or a terminal, specifically to the boot process of the server, and can also be applied to the work and operation process of the server; wherein, the server may include a mainboard, and the mainboard may be provided with a BMC (Baseboard Management Controller), a BIOS (Basic Input / Output System), a plurality of mainboard components and a plurality of fans. The mainboard is a circuit board, and a plurality of components are provided thereon, for example, the mainboard component may be, but is not limited to, a graphics card, a memory, a CPU (Central Processing Uni, a central processing unit) or a power supply. The fan can be used to cool the mainboard components to cool the mainboard and ensure that the temperature of the mainboard is within the normal operating temperature range. The power supply can be used to power the mainboard components. The fan control method provided in the embodiment of the present application can be executed by the above-mentioned BMC.

[0054] In one embodiment, Figure 1 As shown, a fan control method is provided. The fan control method can be executed by a BMC. The fan control method includes the following steps 102 to 106.

[0055] Step 102, determine the current monitoring mode.

[0056] Among them, there may be multiple monitoring modes, such as component monitoring mode, processor monitoring mode and power consumption monitoring mode, and the component monitoring mode, processor monitoring mode and power consumption monitoring mode are different from each other. Various monitoring modes are used to monitor the server, and the content of server monitoring is different in different monitoring modes, such as monitoring the parameters and status of the mainboard components in the server, monitoring the status of the central processing unit in the server, or monitoring the power consumption of the power supply in the server. Based on the monitoring content of the server, the speed of each fan can be controlled, and different monitoring contents correspond to different control strategies. For example, the content of server monitoring in the component monitoring mode, processor monitoring mode and power consumption monitoring mode is different, so the control strategy for the speed of each fan in the component monitoring mode, processor monitoring mode and power consumption monitoring mode is different.

[0057] After the BMC is started, the BMC determines the current monitoring mode, that is, determines the current monitoring mode. The current monitoring mode can be determined according to the mode selection instruction issued by the user, for example, the current monitoring mode is determined as a component monitoring mode, a processor monitoring mode, or a power consumption monitoring mode according to the mode selection instruction issued by the user. The current monitoring mode can also be determined according to the specific model of the server, so that the determined current monitoring mode matches the model of the server and has a high degree of fit, so that the control strategy for the rotation speed of each fan is more consistent with the model of the server, which is conducive to better control of the rotation speed of each fan and greatly reduces energy consumption. After the current monitoring mode is determined, the monitoring mode does not need to be determined again during the entire startup and subsequent operation of the server, until the current monitoring mode can be re-determined after the server is powered on next time.

[0058] Step 104 , obtaining target parameter information and target speed control strategy corresponding to the current monitoring mode, wherein the parameter types and speed control strategies of the parameter information corresponding to different monitoring modes are different.

[0059] Among them, different parameter information can reflect different actual scenario speed requirements. The parameter information corresponding to a monitoring mode may include multiple parameter types, that is, multiple parameter types may correspond to one monitoring mode. The multiple parameter types corresponding to one monitoring mode and the multiple parameter types corresponding to another monitoring mode may be different or partially the same. The parameter type may be, but is not limited to, the control coefficient of the mainboard component, the temperature of the mainboard component, the utilization rate of the central processing unit, the temperature of the central processing unit, the power consumption of the power supply, the position of the fan, the preset sorting number of the fan, the initial duty cycle of the fan, the total number of fans on the mainboard, the current power consumption of the power supply or the rated power consumption of the power supply, etc. The parameter information corresponding to the current monitoring mode is the target parameter information.

[0060] Different speed control strategies can be targeted to match and meet the speed control requirements of different actual scenarios. Different speed control strategies can include different calculation rules, such as different calculation formulas. One monitoring mode can correspond to one speed control strategy. The speed control strategy corresponding to the current monitoring mode is the target speed control strategy.

[0061] Step 106: Control the speed of at least one fan according to the target parameter information and the target speed control strategy.

[0062] The BMC may output a control signal to each fan according to the target parameter information and the target speed control strategy to control the speed of each fan. For example, the BMC outputs a PWM signal to each fan according to the target parameter information and the target speed control strategy to control the speed of each fan.

[0063] In the above-mentioned fan control method, the current monitoring mode is determined, and then the target parameter information and target speed control strategy corresponding to the current monitoring mode are obtained, and finally the speed of each fan is controlled according to the target parameter information and the target speed control strategy. In this way, the speed of each fan is controlled based on the obtained target parameter information and the target speed control strategy. The speed of each fan can be more consistent with the speed required by the actual scenario, rather than being directly configured as a full-speed fixed time, thereby achieving reasonable control of the speed of each fan, reducing server energy consumption, and also reducing noise during server startup.

[0064] In one embodiment, Figure 2 As shown, the fan control method further includes the following steps 202 to 204 , and steps 202 to 204 can be performed after step 106 .

[0065] Step 202: Acquire first position information of each mainboard component and second position information of each fan.

[0066] Among them, the first position information and the second position information can use the same reference benchmark. The motherboard component can be, but is not limited to, a graphics card, a memory, a central processing unit (CPU) or a power supply. The first position information of the motherboard component and the second position information of the fan can be pre-acquired and stored. It can also be that after the BIOS is started, the BIOS obtains the first position information of the motherboard component, and then the BMC obtains the first position information of the motherboard component from the BIOS, wherein the BMC can obtain the first position information of the motherboard component from the BIOS through multiple buses in-band or out-of-band. Using BIOS as the information acquisition source is conducive to making the information acquisition more stable. During the boot process, when the BMS interacts with the BIOS for data, the data transmission method can be selected according to the blocking and delay of the message channel, for example, a blocking method or a non-blocking method can be selected for access.

[0067] Step 204: group the fans according to the first position information and the second position information to determine fan groups corresponding to the mainboard components, wherein each fan group includes at least one fan.

[0068] The distance between the mainboard component and the fan can be calculated based on the first position information of the mainboard component and the second position information of the fan. Whether the mainboard component is covered by the wind field of the corresponding fan can be determined based on whether the distance between the mainboard component and the corresponding fan is within a preset distance range. For example, if the distance between the mainboard component and the corresponding fan is within a preset distance range, it can be determined that the mainboard component is covered by the wind field of the corresponding fan. The fans whose wind fields cover the same mainboard component can be divided into a fan group, that is, one mainboard component can correspond to one fan group, one fan group includes at least one fan, the wind field of each fan in the fan group covers the corresponding mainboard component, and one fan can only be divided into one fan group instead of being divided into multiple fan groups at the same time.

[0069] In this embodiment, by obtaining the first position information of each mainboard component and the second position information of each fan, and then grouping the fans around the mainboard component, the fan group corresponding to each mainboard component is determined, which can help control the speed of each fan by group, thereby achieving better control over the speed of each fan.

[0070] In one embodiment, Figure 3 As shown, in step 104, obtaining target parameter information corresponding to the current monitoring mode includes the following steps 302.

[0071] Step 302, when the current monitoring mode is the component monitoring mode, obtain the control coefficient of the target motherboard component and the first parameter information of the first target fan group, wherein the target motherboard component corresponds to the first target fan group, and the first target fan group includes at least one fan.

[0072] The target motherboard component is any one of the multiple motherboard components on the main board. A control coefficient can be pre-configured for each motherboard component according to the type of each motherboard component. Each control coefficient is greater than 0 and less than 1. In a server, a motherboard component that is a key or important device due to its type can be configured with a larger control coefficient, and a motherboard component that is a common device due to its type can be configured with a smaller control coefficient. The control coefficients of each motherboard component on the motherboard can be related, for example, the sum of the control coefficients of each motherboard component on the motherboard is 1.

[0073] The fan group corresponding to the target mainboard component is the first target fan group, that is, the target mainboard component corresponds to the first target fan group. The wind field of each fan in the first target fan group covers the target mainboard component. The first parameter information of the first target fan group may include the position, preset sorting number and initial duty cycle of each fan in the first target fan group. The first parameter information of the first target fan group may also include the total number of fans on the mainboard. The preset sorting number of the fan can be configured according to the total number of fans on the mainboard. For example, if the total number of fans on the mainboard is 15, the preset sorting numbers of the multiple fans on the mainboard can be 1 to 15. The initial duty cycle of the fan can be the duty cycle of the PWM signal corresponding to the initial speed of the fan at the moment the fan is powered on.

[0074] Continue to refer Figure 3 , step 106 includes the following steps 304 to 306.

[0075] Step 304: Determine first speed control information of the first target fan group according to a preset first calculation formula, first parameter information, and a control coefficient.

[0076] The first speed control information may be a duty cycle of a PWM signal. The PWM signal duty cycle of each fan in the first target fan group may be determined according to the first calculation formula, the first parameter information, and the control coefficient, and then the first speed control information may be determined according to the average value of the PWM signal duty cycles of all fans in the first target fan group.

[0077] Exemplarily, the PWM signal duty cycle of each fan in the first target fan group is determined according to the first calculation formula, the first parameter information and the regulation coefficient, and the average value of the PWM signal duty cycle of all fans in the first target fan group is used as the first speed control information, wherein the first calculation formula is:

[0078] P(n)=a((x / n)*b)+c;

[0079] Among them, n is the preset sorting number of the fan, P(n) is the PWM signal duty cycle of the fan with the preset sorting number n, a is the position of the fan with the preset sorting number n, c is the initial duty cycle of the fan with the preset sorting number n, b is the regulation coefficient of the target motherboard component, and x is the total number of fans on the motherboard.

[0080] Step 306: Control the rotation speed of at least one fan in the first target fan group according to the first rotation speed control information.

[0081] The rotation speed of each fan in the first target fan group may be controlled according to the first rotation speed control information. At this time, the rotation speed of each fan in the first target fan group is the same.

[0082] In this embodiment, when the current monitoring mode is the component monitoring mode, by obtaining the regulation coefficient of the target mainboard component and the first parameter information of the first target fan group, and then determining the first speed control information of the first target fan group according to the preset first calculation formula, the first parameter information and the regulation coefficient, the speed of each fan in the first target fan group is controlled according to the first speed control information, and the speed of each fan can be accurately controlled according to the information of the mainboard component in the server, thereby reducing the energy consumption of the server, and also reducing the noise during the server startup process.

[0083] In one embodiment, Figure 4 As shown, the fan control method further includes the following steps 402 to 404.

[0084] Step 402, obtaining temperature information of a target mainboard component.

[0085] When the current monitoring mode is the component monitoring mode, the BIOS may obtain the temperature information of the motherboard components after the BIOS is started, and then the BMC obtains the temperature information of the motherboard components from the BIOS through multiple in-band or out-of-band buses. Alternatively, the BMC may directly obtain the temperature information of the motherboard components from relevant sensors after the BMC is started.

[0086] Step 404, comparing the temperature information of the target mainboard component with the corresponding operating temperature threshold, and adjusting the first speed control information according to the comparison result.

[0087] The operating temperature threshold of the mainboard component may be the highest temperature value in the normal operating temperature range of the mainboard component. The temperature information of the target mainboard component may be obtained in real time, and the temperature information of the target mainboard component may be compared with the operating temperature threshold of the target mainboard component in real time, and the first speed control information may be adjusted according to the comparison result. When the temperature information of the target mainboard component exceeds the operating temperature threshold of the target mainboard component, the duty cycle of the PWM signal included in the first speed control information may be adjusted to increase, so as to increase the speed of each fan in the first target fan group corresponding to the target mainboard component.

[0088] In this embodiment, by acquiring the temperature information of the target mainboard component, and then comparing the temperature information of the target mainboard component with the corresponding operating temperature threshold, the first speed control information is adjusted according to the comparison result, and the speed of each fan can be further regulated so that the speed of each fan is precisely matched with the speed required by the actual situation, thereby further reducing the energy consumption of the server and further reducing the noise during the server startup process.

[0089] In one embodiment, Figure 5As shown, in step 104, obtaining target parameter information corresponding to the current monitoring mode includes the following steps 502.

[0090] Step 502, when the current monitoring mode is the processor monitoring mode, obtain utilization information of the target central processor and second parameter information of the second target fan group, wherein the target central processor corresponds to the second target fan group, and the second target fan group includes at least one fan.

[0091] The target central processor is any one of at least one central processor (CPU) on the main board. The utilization information of the central processor (CPU) includes the real-time utilization of the central processor (CPU). Generally, the real-time utilization is greater than 0 and less than 1.

[0092] The fan group corresponding to the target central processor is the second target fan group, that is, the target central processor corresponds to the second target fan group. The wind field of each fan in the second target fan group covers the target central processor. The second parameter information of the second target fan group may include the position, preset sorting number and initial duty cycle of each fan in the second target fan group, and may also include the total number of fans on the mainboard. The preset sorting number of the fan can be configured according to the total number of fans on the mainboard. For example, if the total number of fans on the mainboard is 15, the preset sorting numbers of the multiple fans on the mainboard can be 1 to 15. The initial duty cycle of the fan can be the duty cycle of the PWM signal corresponding to the initial speed of the fan at the moment the fan is powered on.

[0093] Continue to refer Figure 5 , step 106 includes the following steps 504 to 506.

[0094] Step 504: Determine second speed control information of the second target fan group according to a preset second calculation formula, second parameter information, and utilization information.

[0095] The first speed control information may be a duty cycle of a PWM signal. The PWM signal duty cycle of each fan in the second target fan group may be determined according to the second calculation formula, the second parameter information, and the utilization information, and the second speed control information may be determined according to the average value of the PWM signal duty cycles of all fans in the second target fan group.

[0096] Exemplarily, the PWM signal duty cycle of each fan in the second target fan group is determined according to the second calculation formula, the second parameter information and the utilization information, and the average value of the PWM signal duty cycle of all fans in the second target fan group is used as the second speed control information, wherein the second calculation formula is:

[0097] P'(n) = a((x / n)*b') + c;

[0098] Among them, n is the preset sorting number of the fan, P'(n) is the PWM signal duty cycle of the fan with the preset sorting number n, a is the position of the fan with the preset sorting number n, c is the initial duty cycle of the fan with the preset sorting number n, b' is the utilization information of the target motherboard component, and x is the total number of fans on the motherboard.

[0099] Step 506: Control the rotation speed of at least one fan in the second target fan group according to the second rotation speed control information.

[0100] The rotation speed of each fan in the second target fan group may be controlled according to the second rotation speed control information. At this time, the rotation speed of each fan in the second target fan group is the same.

[0101] In this embodiment, when the current monitoring mode is the processor monitoring mode, by obtaining the utilization information of the target central processor and the second parameter information of the second target fan group, and then determining the second speed control information of the second target fan group according to the preset second calculation formula, the second parameter information and the utilization information, the speed of each fan in the second target fan group is controlled according to the second speed control information, and the speed of each fan can be accurately controlled according to the utilization information of the central processor in the server, thereby reducing the energy consumption of the server and also reducing the noise during the server startup process. Generally, the higher the utilization rate of the central processor, the greater the power consumption and the faster the temperature rises. The control strategy for the speed of each fan in the processor monitoring mode provided in this embodiment is suitable for server models with multiple central processors installed inside because it controls the speed of each fan according to the utilization information of the central processor in the server.

[0102] In one embodiment, Figure 6 As shown, the fan control method further includes the following steps 602-604.

[0103] Step 602: upon receiving the speed control switching instruction, obtaining the temperature information of the target central processing unit.

[0104] When the current monitoring mode is the processor monitoring mode, if a speed control switch instruction is received, the temperature information of the target CPU is obtained. The temperature information of the CPU can be obtained by the BIOS, and then the BMC obtains the temperature information of the CPU from the BIOS through multiple in-band or out-of-band buses. Alternatively, the BMC can directly obtain the temperature information of the CPU from relevant sensors.

[0105] Step 604, comparing the temperature information of the target central processing unit with the corresponding operating temperature threshold, and adjusting the second speed control information according to the comparison result.

[0106] The operating temperature threshold of the CPU may be the highest temperature value in the normal operating temperature range of the CPU. The temperature information of the target CPU may be acquired in real time, and the temperature information of the target CPU may be compared with the operating temperature threshold of the target CPU in real time, and the second speed control information may be adjusted according to the comparison result. When the temperature information of the target CPU exceeds the operating temperature threshold of the target CPU, the duty cycle of the PWM signal included in the second speed control information may be adjusted to increase, so as to increase the speed of each fan in the second target fan group corresponding to the target CPU.

[0107] In this embodiment, when the current monitoring mode is the processor monitoring mode, if a speed control switching instruction is received, the speed of each fan is no longer controlled based on the utilization information of the central processor in the server, but based on the temperature information of the central processor in the server. That is, in the processor monitoring mode, the user can switch the control strategy to the utilization information of the central processor in the server or the temperature information of the central processor in the server according to actual needs, so as to achieve more accurate control of the speed of each fan.

[0108] In one embodiment, Figure 7 As shown, in step 104, obtaining target parameter information corresponding to the current monitoring mode includes the following steps 702.

[0109] Step 702: when the current monitoring mode is the power consumption monitoring mode, obtain current total power consumption information and total rated power consumption information, wherein the current total power consumption information includes the sum of the current power consumptions of the power supplies.

[0110] The server may include at least one power supply. The BMC may obtain the current working data of each power supply, for example, the BMC obtains the current working data of each power supply from the corresponding power supply chip through LPC (Low Pin Count, low-speed bus), and then determines the current power consumption of each power supply according to the current working data of each power supply, and sums the current power consumption of each power supply to obtain the total power consumption information. The total rated power consumption information includes the sum of the rated power consumption of each power supply.

[0111] Continue to refer Figure 7 , step 106 includes the following steps 704 to 706.

[0112] Step 704: Determine third speed control information of each fan according to a preset third calculation formula, current total power consumption information, and total rated power consumption information.

[0113] The third speed control information may be a duty cycle of a PWM signal. The BMC may determine the third speed control information of each fan according to a third calculation formula, the current total power consumption information, and the total rated power consumption information. Exemplarily, the second calculation formula is the product of a ratio and a full duty cycle of a PWM signal (i.e., a maximum duty cycle of a PWM signal), wherein the ratio is the ratio of the current total power consumption information to the total rated power consumption information.

[0114] Step 706: Control the rotation speed of each fan according to the third rotation speed control information.

[0115] The rotation speed of each fan in the server can be controlled according to the third rotation speed control information. At this time, the rotation speed of each fan in the server is the same.

[0116] In this embodiment, when the current monitoring mode is the power consumption monitoring mode, by obtaining the current total power consumption information and the total rated power consumption information, and then determining the third speed control information of each fan according to the preset third calculation formula, the current total power consumption information and the total rated power consumption information, and controlling the speed of each fan according to the third speed control information, the speed of each fan can be accurately controlled according to the power consumption information of the power supply in the server, thereby reducing the energy consumption of the server and also reducing the noise during the server startup process. The control strategy for the speed of each fan in the power consumption monitoring mode provided in this embodiment is suitable for high-power-consuming server models and server models with multiple power supplies installed inside because it controls the speed of each fan according to the power consumption information of the power supply in the server.

[0117] The following combination Figures 8 to 10 , the scheme of the embodiment of the present application is further exemplified:

[0118] When the server is powered on, the fans are powered on, and the BMC and BIOS are started. The BMC determines the current monitoring mode based on the mode selection command issued by the user:

[0119] like Figure 8 As shown, when the current monitoring mode is the component monitoring mode, the BIOS obtains the temperature information of the motherboard component, the BIOS starts up and enters the system, and the boot is completed at this time. At the same time, the BMC obtains the temperature information of the motherboard component from the BIOS, and the BMC obtains the control coefficient of the target motherboard component and the first parameter information of the first target fan group. The BMC determines the first speed control information of the first target fan group according to the preset first calculation formula, the first parameter information and the control coefficient. The BMC controls the speed of at least one fan in the first target fan group according to the first speed control information, and the BMC adjusts the first speed control information in real time according to the temperature information. If the BMC fails to successfully determine the first speed control information, the BMC controls the speed of each fan to the maximum.

[0120] like Fig. 9 As shown, when the current monitoring mode is the processor monitoring mode, the BMC obtains the utilization information of the target central processor and the second parameter information of the second target fan group, and the BMC determines the second speed control information of the second target fan group according to the preset second calculation formula, the second parameter information and the utilization information, and the BMC controls the speed of at least one fan in the second target fan group according to the second speed control information. If the BMC fails to successfully determine the second speed control information, the BMC controls the speed of each fan to the maximum.

[0121] like Fig.10 As shown, when the current monitoring mode is the power consumption monitoring mode, the BMC obtains the previous total power consumption information and the total rated power consumption information of each power supply, and determines the third speed control information of each fan according to the preset third calculation formula, the current total power consumption information and the total rated power consumption information, and controls the speed of each fan according to the third speed control information. If the BMC fails to successfully determine the third speed control information, the BMC controls the speed of each fan to the maximum.

[0122] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0123] Based on the same inventive concept, the embodiment of the present application also provides a fan control device for implementing the fan control method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the control device for one or more fans provided below can refer to the limitations of the fan control method above, and will not be repeated here.

[0124] In one embodiment, Fig.11As shown, a fan control device is provided, and the fan control device includes: a determination module 1110, a parameter adjustment module 1120 and a control module 1130. The determination module 1110 is used to determine the current monitoring mode. The parameter adjustment module 1120 is used to obtain the target parameter information and the target speed control strategy corresponding to the current monitoring mode, wherein the parameter type and speed control strategy of the parameter information corresponding to different monitoring modes are different. The control module 1130 is used to control the speed of each fan according to the target parameter information and the target speed control strategy.

[0125] In one embodiment, the parameter adjustment module 1120 is also used to obtain the adjustment coefficient of the target mainboard component and the first parameter information of the first target fan group when the current monitoring mode is the component monitoring mode, wherein the target mainboard component corresponds to the first target fan group, and the first target fan group includes at least one fan; and the control module 1130 is also used to determine the first speed control information of the first target fan group according to a preset first calculation formula, the first parameter information and the adjustment coefficient; and control the speed of at least one fan in the first target fan group according to the first speed control information.

[0126] In one embodiment, the fan control device further comprises a first temperature speed regulating module. The first temperature speed regulating module is used to obtain temperature information of a target motherboard component, compare the temperature information of the target motherboard component with a corresponding operating temperature threshold, and adjust the first speed control information according to the comparison result.

[0127] In one embodiment, the parameter adjustment module 1120 is also used to obtain utilization information of the target central processor and second parameter information of the second target fan group when the current monitoring mode is the processor monitoring mode, wherein the target central processor corresponds to the second target fan group, and the second target fan group includes at least one fan; and the control module 1130 is also used to determine second speed control information of the second target fan group based on a preset second calculation formula, second parameter information and utilization information; and control the speed of at least one fan in the second target fan group according to the second speed control information.

[0128] In one embodiment, the fan control device further includes a second temperature speed regulating module. The second temperature speed regulating module is used to obtain the temperature information of the target central processor when receiving the speed control switching instruction; compare the temperature information of the target central processor with the corresponding operating temperature threshold, and adjust the second speed control information according to the comparison result.

[0129] In one embodiment, the parameter adjustment module 1120 is also used to obtain the current total power consumption information and the total rated power consumption information when the current monitoring mode is the power consumption monitoring mode, wherein the current total power consumption information includes the sum of the current power consumption of each power supply; and the control module 1130 is also used to determine the third speed control information of each fan according to a preset third calculation formula, the current total power consumption information and the total rated power consumption information; and control the speed of each fan according to the third speed control information.

[0130] In one embodiment, the fan control device further includes a grouping module. The grouping module is used to obtain the first position information of each mainboard component and the second position information of each fan; group the fans according to the first position information and the second position information, and determine the fan group corresponding to each mainboard component, wherein each fan group includes at least one fan.

[0131] Each module in the above-mentioned fan control device can be implemented in whole or in part by software, hardware or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.

[0132] Those skilled in the art will understand that Fig.11 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0133] In one embodiment, a baseboard management controller is provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.

[0134] In one embodiment, a server is provided, comprising: a mainboard and the baseboard management controller in the above embodiment; wherein the mainboard is provided with a plurality of fans, a plurality of mainboard components and at least one central processing unit (CPU).

[0135] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the fan control method in any of the above embodiments are implemented.

[0136] In one embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps of the fan control method in any of the above embodiments.

[0137] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0138] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0139] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for controlling a fan, characterized in that: The fan is a fan in a server, and the method comprises: Determine a current monitoring mode, wherein the current monitoring mode is one of a component monitoring mode, a processor monitoring mode, and a power consumption monitoring mode of the server, wherein the parameter type of the parameter information corresponding to the component monitoring mode includes a control coefficient of a mainboard component, the parameter type of the parameter information corresponding to the processor monitoring mode includes utilization information of a central processing unit, the parameter type of the parameter information corresponding to the power consumption monitoring mode includes power consumption of a power supply, and different monitoring modes correspond to different speed control strategies; Acquire target parameter information and target speed control strategy corresponding to the current monitoring mode, wherein the parameter information corresponding to the current monitoring mode is the target parameter information, and the speed control strategy corresponding to the current monitoring mode is the target speed control strategy; The rotation speed of at least one of the fans is controlled according to the target parameter information and the target speed control strategy.

2. The method according to claim 1, characterized in that The acquiring target parameter information corresponding to the current monitoring mode includes: When the current monitoring mode is the component monitoring mode, obtaining a control coefficient of a target mainboard component and first parameter information of a first target fan group, wherein the target mainboard component corresponds to the first target fan group, and the first target fan group includes at least one of the fans; The controlling the rotation speed of at least one of the fans according to the target parameter information and the target speed control strategy includes: Determine first speed control information of the first target fan group according to a preset first calculation formula, the first parameter information and the regulation coefficient; The rotation speed of at least one of the fans in the first target fan group is controlled according to the first rotation speed control information.

3. The method according to claim 2, characterized in that The method further comprises: Acquire temperature information of the target mainboard component; The temperature information of the target mainboard component is compared with the corresponding operating temperature threshold, and the first speed control information is adjusted according to the comparison result.

4. The method according to claim 1, characterized in that: The acquiring target parameter information corresponding to the current monitoring mode includes: In a case where the current monitoring mode is the processor monitoring mode, obtaining utilization information of a target central processor and second parameter information of a second target fan group, wherein the target central processor corresponds to the second target fan group, and the second target fan group includes at least one of the fans; The controlling the rotation speed of at least one of the fans according to the target parameter information and the target speed control strategy includes: Determine second speed control information of the second target fan group according to a preset second calculation formula, the second parameter information and the utilization information; The rotation speed of at least one of the fans in the second target fan group is controlled according to the second rotation speed control information.

5. The method according to claim 4, characterized in that The method further comprises: When receiving the speed control switching instruction, obtaining the temperature information of the target central processing unit; The temperature information of the target central processing unit is compared with the corresponding operating temperature threshold, and the second speed control information is adjusted according to the comparison result.

6. The method according to claim 1, characterized in that The acquiring target parameter information corresponding to the current monitoring mode includes: When the current monitoring mode is the power consumption monitoring mode, obtaining current total power consumption information and total rated power consumption information, wherein the current total power consumption information includes the sum of the current power consumption of each power supply, and the total rated power consumption information includes the sum of the rated power consumption of each power supply; The controlling the rotation speed of at least one of the fans according to the target parameter information and the target speed control strategy includes: Determining third speed control information of each of the fans according to a preset third calculation formula, the current total power consumption information and the total rated power consumption information; The rotation speed of each of the fans is controlled according to the third rotation speed control information.

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Acquire first position information of each mainboard component and second position information of each fan; The fans are grouped according to the first position information and the second position information to determine a fan group corresponding to each mainboard component, wherein each fan group includes at least one fan.

8. A fan control device, characterized in that: The fan is a fan in a server, and the device comprises: A determination module, used to determine a current monitoring mode, wherein the current monitoring mode is one of a component monitoring mode, a processor monitoring mode, and a power consumption monitoring mode of the server, wherein the parameter type of the parameter information corresponding to the component monitoring mode includes a control coefficient of a mainboard component, the parameter type of the parameter information corresponding to the processor monitoring mode includes utilization information of a central processing unit, the parameter type of the parameter information corresponding to the power consumption monitoring mode includes power consumption of a power supply, and different monitoring modes correspond to different speed control strategies; A parameter adjustment module, used to obtain target parameter information and a target speed control strategy corresponding to the current monitoring mode, wherein the parameter information corresponding to the current monitoring mode is the target parameter information, and the speed control strategy corresponding to the current monitoring mode is the target speed control strategy; A control module is used to control the rotation speed of at least one of the fans according to the target parameter information and the target speed control strategy.

9. A baseboard management controller, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and wherein the processor implements the method according to any one of claims 1 to 7 when executing the computer program.

10. A server, characterized in that: include: A mainboard and a baseboard management controller as claimed in claim 9 arranged on the mainboard; wherein at least one fan, a plurality of mainboard components and at least one central processing unit are arranged on the mainboard.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.