Fan speed regulation method, device, computer device, storage medium and program product

The temperature information of the server heating components is obtained through multi-stage sensors, combined with temperature and power consumption strategies, optimized fan speed regulation, and solved the high power consumption and noise problems when fan abnormalities in traditional methods, achieving lower power consumption and noise server cooling.

CN116360566BActive Publication Date: 2025-07-18SUMA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310143938.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-21
Publication Date
2025-07-18
Estimated Expiration
2043-02-21

AI Technical Summary

Technical Problem

Traditional server fan speed regulation method will cause excessive server power consumption and noise when the temperature sensor is abnormal.

Method used

The temperature information of the heating component is obtained through multi-stage sensors, and appropriate fan speed regulation strategies are selected according to different situations, including speed regulation strategies based on temperature information or temperature and power consumption to control the fan speed.

Benefits of technology

It effectively reduces the overall power consumption and noise of the server during the heat dissipation process, ensuring that the temperature of the heating components is within a safe range.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116360566B_ABST
    Figure CN116360566B_ABST
Patent Text Reader

Abstract

The present application relates to a method and device for regulating the speed of a fan, a computer device, a storage medium, and a computer program product. The method includes: obtaining temperature information of heat-generating components in a server; determining a target fan speed regulation strategy from a first preset fan speed regulation strategy and a second preset fan speed regulation strategy according to the temperature information of the heat-generating components; the first preset fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fan in the server according to the temperature information of the heat-generating components, and the second preset fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fan in the server according to the temperature information of the heat-generating components and the power consumption of the heat-generating components; controlling the rotation speed of the fan in the server according to the target fan speed regulation strategy. By using this method, multiple preset fan speed regulation strategies can be adopted to selectively control the rotation speed of the fan in the server. Furthermore, the overall power consumption and noise of the server can be reduced during the heat dissipation process of the server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of server heat dissipation, and particularly to a fan speed regulation method, device, computer device, storage medium, and computer program product. Background Art

[0002] With the continuous increase in the power consumption of servers, server heat dissipation becomes increasingly important. During the process of dissipating heat from a server, heat dissipation is mainly achieved through fans installed inside the server. Generally, when dissipating heat from a server using a fan, the server mainly uses the temperature sensors inside it to detect the real-time temperature, and then controls the fan speed based on the real-time temperature.

[0003] However, in the process of controlling the fan speed based on the real-time temperature inside the server by traditional methods, there are problems of relatively high overall power consumption and noise of the server. Summary of the Invention

[0004] Based on this, in view of the above technical problems, it is necessary to provide a fan speed regulation method, device, computer device, computer-readable storage medium, and computer program product that can reduce the overall power consumption and noise of the server when dissipating heat from the server.

[0005] In a first aspect, the present application provides a fan speed regulation method. The method includes:

[0006] Obtaining temperature information of heat-generating components inside the server;

[0007] Determining a target fan speed regulation strategy from a first preset fan speed regulation strategy and a second preset fan speed regulation strategy according to the temperature information of the heat-generating components; the first preset fan speed regulation strategy is a speed regulation strategy for controlling the speed of the fans inside the server according to the temperature information of the heat-generating components, and the second preset fan speed regulation strategy is a speed regulation strategy for controlling the speed of the fans inside the server according to the temperature information of the heat-generating components and the power consumption of the heat-generating components;

[0008] Controlling the speed of the fans inside the server according to the target fan speed regulation strategy.

[0009] Embodiments of the present application can determine a target fan speed regulation strategy from a first preset fan speed regulation strategy and a second preset fan speed regulation strategy according to the obtained temperature information of the heat-generating components in the server. Therefore, according to the determined target fan speed regulation strategy, it is possible to control the rotation speed of the fans in the server only based on the temperature information of the heat-generating components, or to control the rotation speed of the fans in the server based on the temperature information of the heat-generating components and the power consumption of the heat-generating components, so that multiple preset fan speed regulation strategies can be adopted to selectively control the rotation speed of the fans in the server. Furthermore, it avoids the problem that when only controlling the rotation speed of the fans in the server based on the temperature information of the heat-generating components, the overall power consumption and noise of the server are relatively large when the temperature information of the heat-generating components is abnormal. Thus, it is possible to reduce the overall power consumption and noise of the server during the heat dissipation process of the server.

[0010] In one embodiment, the obtaining the temperature information of the heat-generating components in the server includes:

[0011] Obtaining first-level temperature information of the heat-generating components in the server through a first-level sensor; the first-level sensor is a sensor disposed inside the heat-generating component;

[0012] If the first-level temperature information is normal, then use the first-level temperature information as the temperature information of the heat-generating component;

[0013] If the first-level temperature information is abnormal, then obtain second-level temperature information of the heat-generating components in the server through a second-level sensor, and use the second-level temperature information as the temperature information of the heat-generating component; the second-level sensor is a sensor disposed within a preset range around the heat-generating component.

[0014] In this embodiment, first-level temperature information of the heat-generating components in the server is obtained through a first-level sensor; if the first-level temperature information is normal, then use the first-level temperature information as the temperature information of the heat-generating component; if the first-level temperature information is abnormal, then obtain second-level temperature information of the heat-generating components in the server through a second-level sensor, and use the second-level temperature information as the temperature information of the heat-generating component. This embodiment uses multiple-level sensors. When the first-level sensor is abnormal, the second-level sensor can be used to determine the temperature information of the heat-generating component, so that the temperature information of the heat-generating component can be continuously obtained, ensuring that the temperature of the heat-generating components in the server is within a safe range.

[0015] In one embodiment, the first preset fan speed regulation strategy includes a primary fan speed regulation strategy, and the primary fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the primary temperature information; if the primary temperature information is normal, then determining a target fan speed regulation strategy from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy according to the temperature information of the heat-generating component includes:

[0016] According to the primary temperature information, using the primary fan speed regulation strategy as the target fan speed regulation strategy;

[0017] Controlling the rotation speed of the fans in the server according to the target fan speed regulation strategy includes:

[0018] Controlling the rotation speed of the fans in the server according to the primary fan speed regulation strategy.

[0019] In this embodiment, according to the primary temperature information, the primary fan speed regulation strategy is used as the target fan speed regulation strategy; according to the primary fan speed regulation strategy, the rotation speed of the fans in the server is controlled. If the primary temperature information is normal, the rotation speed of the fans in the server can be controlled according to the primary fan speed regulation strategy, that is, the rotation speed of the fans in the server can be controlled only according to the primary temperature information of the heat-generating component.

[0020] In one embodiment, the first preset fan speed regulation strategy includes a secondary fan speed regulation strategy, and the secondary fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the secondary temperature information; if the primary temperature information is abnormal and the secondary temperature information is normal, then determining a target fan speed regulation strategy from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy according to the temperature information of the heat-generating component includes:

[0021] According to the secondary temperature information, using the secondary fan speed regulation strategy as the target fan speed regulation strategy;

[0022] Controlling the rotation speed of the fans in the server according to the target fan speed regulation strategy includes:

[0023] Controlling the rotation speed of the fans in the server according to the secondary fan speed regulation strategy.

[0024] In this embodiment, according to the secondary temperature information, the secondary fan speed regulation strategy is used as the target fan speed regulation strategy; according to the secondary fan speed regulation strategy, the rotation speed of the fans in the server is controlled. If the primary temperature information is abnormal and the secondary temperature information is normal, the rotation speed of the fans in the server can be controlled according to the secondary fan speed regulation strategy, that is, the rotation speed of the fans in the server can be controlled only based on the secondary temperature information of the heat-generating components.

[0025] In one embodiment, if the secondary temperature information is abnormal, then determining the target fan speed regulation strategy from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy according to the temperature information of the heat-generating components includes:

[0026] According to the secondary temperature information, using the second preset fan speed regulation strategy as the target fan speed regulation strategy;

[0027] Controlling the rotation speed of the fans in the server according to the target fan speed regulation strategy includes:

[0028] Controlling the rotation speed of the fans in the server according to the second preset fan speed regulation strategy.

[0029] In this embodiment, according to the secondary temperature information, the second preset fan speed regulation strategy is used as the target fan speed regulation strategy; according to the second preset fan speed regulation strategy, the rotation speed of the fans in the server is controlled. If the secondary temperature information is abnormal, the rotation speed of the fans in the server can be controlled according to the second preset fan speed regulation strategy, that is, the rotation speed of the fans in the server can be controlled based on the temperature information of the heat-generating components and the power consumption of the heat-generating components.

[0030] In one embodiment, controlling the rotation speed of the fans in the server according to the second preset fan speed regulation strategy includes:

[0031] Obtaining the power consumption of the heat-generating component and the power consumption-rotation speed correspondence relationship of the heat-generating component at the current ambient temperature;

[0032] According to the power consumption of the heat-generating component and the power consumption-rotation speed correspondence relationship, determining the target rotation speed corresponding to the power consumption of the heat-generating component;

[0033] Controlling the rotation speed of the fans in the server according to the target rotation speed.

[0034] In this embodiment, the power consumption of the heating component and the corresponding relationship between the power consumption and the rotational speed of the heating component at the current ambient temperature are obtained; according to the power consumption of the heating component and the corresponding relationship between the power consumption and the rotational speed, the target rotational speed corresponding to the power consumption of the heating component is determined; and the rotational speed of the fan in the server is controlled according to the target rotational speed. When the secondary temperature information is abnormal, the target rotational speed can be determined according to the power consumption of the heating component and the corresponding relationship between the power consumption and the rotational speed of the heating component at the current ambient temperature, so that the rotational speed of the fan in the server can be controlled according to the target rotational speed.

[0035] In a second aspect, the present application further provides a fan speed regulation device. The device includes:

[0036] a temperature information acquisition module, configured to acquire the temperature information of the heating component in the server;

[0037] a target fan speed regulation strategy determination module, configured to determine a target fan speed regulation strategy from a first preset fan speed regulation strategy and a second preset fan speed regulation strategy according to the temperature information of the heating component; the first preset fan speed regulation strategy is a speed regulation strategy for controlling the rotational speed of the fan in the server according to the temperature information of the heating component, and the second preset fan speed regulation strategy is a speed regulation strategy for controlling the rotational speed of the fan in the server according to the temperature information of the heating component and the power consumption of the heating component;

[0038] a control module, configured to control the rotational speed of the fan in the server according to the target fan speed regulation strategy.

[0039] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the steps of the method in any one of the embodiments in the first aspect are implemented.

[0040] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method in any one of the embodiments in the first aspect are implemented.

[0041] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the method in any one of the embodiments in the first aspect are implemented.

[0042] The above-mentioned fan speed regulation method, device, computer equipment, storage medium and computer program product obtain the temperature information of the heat-generating components in the server; determine the target fan speed regulation strategy from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy according to the temperature information of the heat-generating components; the first preset fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the temperature information of the heat-generating components, and the second preset fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the temperature information of the heat-generating components and the power consumption of the heat-generating components; control the rotation speed of the fans in the server according to the target fan speed regulation strategy. The present application can determine the target fan speed regulation strategy from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy according to the obtained temperature information of the heat-generating components in the server. Therefore, according to the determined target fan speed regulation strategy, it is possible to control the rotation speed of the fans in the server only according to the temperature information of the heat-generating components, or to control the rotation speed of the fans in the server according to the temperature information of the heat-generating components and the power consumption of the heat-generating components, so that it is possible to adopt a variety of preset fan speed regulation strategies and selectively control the rotation speed of the fans in the server. Furthermore, it avoids the problem that when only controlling the rotation speed of the fans in the server according to the temperature information of the heat-generating components, the overall power consumption and noise of the server are relatively large when the temperature information of the heat-generating components is abnormal. Thus, it is possible to reduce the overall power consumption and noise of the server during the heat dissipation process of the server. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 FIG. is an application environment diagram of the fan speed regulation method in an embodiment;

[0044] Figure 2 FIG. is a flowchart of the fan speed regulation method in an embodiment;

[0045] Figure 3 FIG. is a flowchart of the temperature information acquisition step in an embodiment;

[0046] Figure 4 FIG. is a structural diagram of a temperature sensor in an embodiment;

[0047] Figure 5 FIG. is a flowchart of the first control step in an embodiment;

[0048] Figure 6 FIG. is a flowchart of the second control step in an embodiment;

[0049] Figure 7 FIG. is a flowchart of the third control step in an embodiment;

[0050] Figure 8 FIG. is a flowchart of the target rotation speed control step in an embodiment;

[0051] Figure 9 is a schematic flowchart of a fan speed regulation method in an alternative embodiment;

[0052] Figure 10 is a structural block diagram of a fan speed regulation device in an embodiment;

[0053] Figure 11 is a structural block diagram of a baseboard management controller in an embodiment;

[0054] Figure 12 is an internal structure diagram of a computer device in an embodiment. Detailed implementation manners

[0055] In order to make the objectives, technical solutions and advantages of the present application more clear and understandable, the present application will be further described in detail below with reference to 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.

[0056] With the continuous increase of the power consumption of the server, the heat dissipation of the server becomes increasingly important. During the process of dissipating heat from the server, heat dissipation is mainly achieved by means of a fan provided inside the server. Generally, when dissipating heat from the server through the fan, the server mainly detects the real-time temperature through a temperature sensor inside it, and then controls the rotation speed of the fan based on the real-time temperature.

[0057] However, when a temperature sensor inside the server has an abnormal temperature reading in the traditional fan speed regulation method, the fan speed is usually directly adjusted to the maximum to ensure that the server does not exceed the safe temperature. However, at this time, the fan will generate a large amount of power consumption and noise. Therefore, there are problems of relatively large overall power consumption and noise of the server in the process of controlling the fan speed based on the real-time temperature inside the server.

[0058] The fan speed regulation method provided by the embodiments of the present application can be applied to, for example Figure 1In the application environment shown, it includes a server 120, and within the server 120, there are heat-generating components 122 and corresponding fans 124 for the heat-generating components. The server 120 obtains the temperature information of the heat-generating components 122 within the server; the server 120 determines a target fan speed regulation strategy from a first preset fan speed regulation strategy and a second preset fan speed regulation strategy according to the temperature information of the heat-generating components 122; the first preset fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans 124 within the server 120 according to the temperature information of the heat-generating components 122, and the second preset fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans 124 within the server 120 according to the temperature information of the heat-generating components 122 and the power consumption of the heat-generating components 122; the server 120 controls the rotation speed of the fans 124 within the server 120 according to the target fan speed regulation strategy. The server 120 can be implemented by an independent server or a server cluster composed of multiple servers.

[0059] In one embodiment, as Figure 2 shown, a fan speed regulation method is provided. Taking the method applied to the Figure 1 server 120 in it as an example for illustration, it includes the following steps:

[0060] Step 220, obtain the temperature information of the heat-generating components within the server.

[0061] Optionally, since temperature sensors are installed on each of the heat-generating components within the server, and the temperature sensors are used to measure the temperature information of each of the heat-generating components within the server. Therefore, the temperature information measured by the temperature sensors can be directly stored in the server 120, so that the server 120 can obtain the temperature information of each of the heat-generating components within the server 120 through the temperature sensors installed on each of the heat-generating components. Among them, the temperature sensors in the embodiments of the present application include multiple temperature sensors arranged at different positions of each heat-generating component. The temperature sensors in the embodiments of the present application include but are not limited to DacroMon temperature sensors (Sensor).

[0062] Step 240, determine a target fan speed regulation strategy from a first preset fan speed regulation strategy and a second preset fan speed regulation strategy according to the temperature information of the heat-generating components; the first preset fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans within the server according to the temperature information of the heat-generating components, and the second preset fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans within the server according to the temperature information of the heat-generating components and the power consumption of the heat-generating components.

[0063] Optionally, the first preset fan speed regulation strategy is a strategy that controls the rotation speed of the fans in the server only based on the temperature information of the heat-generating components, and the second preset fan speed regulation strategy is a strategy that controls the rotation speed of the fans in the server based on the temperature information of the heat-generating components and the power consumption of the heat-generating components. Of course, the embodiments of the present application include but are not limited to two preset fan speed regulation strategies. The embodiments of the present application can also set the third preset fan speed regulation strategy as a strategy that controls the rotation speed of the fans in the server only based on the power consumption of the heat-generating components. After setting multiple preset fan speed regulation strategies, the server 120 can determine the target fan speed regulation strategy from multiple preset fan speed regulation strategies according to the temperature information of the heat-generating components in the server 120. Exemplarily, when the temperature information of the heat-generating components in the server 120 is normal, the server 120 can determine the first preset fan speed regulation strategy as the target fan speed regulation strategy; when the temperature information of the heat-generating components in the server 120 is abnormal, the server 120 can determine the second preset fan speed regulation strategy as the target fan speed regulation strategy.

[0064] Step 260, control the rotation speed of the fans in the server according to the target fan speed regulation strategy.

[0065] Optionally, the server 120 can control the fans in the server 120 to run at the rotation speed corresponding to the target fan speed regulation strategy according to the determined target fan speed regulation strategy. Among them, the fan speed regulation strategy refers to the specific method of calculating the rotation speed based on the temperature information of the heat-generating components in the server or based on the power consumption of the heat-generating components in the server. The fan speed regulation strategy includes the weight of each fan, the corresponding relationship between temperature and rotation speed, etc. When the first preset fan speed regulation strategy is determined as the target fan speed regulation strategy, the server 120 can control the rotation speed of the fans in the server 120 only based on the temperature information of the heat-generating components; when the second preset fan speed regulation strategy is determined as the target fan speed regulation strategy, the server 120 can control the rotation speed of the fans in the server 120 based on the temperature information of the heat-generating components and the power consumption of the heat-generating components.

[0066] In the above fan speed regulation method, the temperature information of the heat-generating components in the server is obtained; according to the temperature information of the heat-generating components, a target fan speed regulation strategy is determined from a first preset fan speed regulation strategy and a second preset fan speed regulation strategy; the first preset fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the temperature information of the heat-generating components, and the second preset fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the temperature information of the heat-generating components and the power consumption of the heat-generating components; according to the target fan speed regulation strategy, the rotation speed of the fans in the server is controlled. In the embodiments of the present application, a target fan speed regulation strategy can be determined from a first preset fan speed regulation strategy and a second preset fan speed regulation strategy according to the obtained temperature information of the heat-generating components in the server. Therefore, according to the determined target fan speed regulation strategy, the rotation speed of the fans in the server can be controlled only according to the temperature information of the heat-generating components, or the rotation speed of the fans in the server can be controlled according to the temperature information of the heat-generating components and the power consumption of the heat-generating components, so that multiple preset fan speed regulation strategies can be adopted to selectively control the rotation speed of the fans in the server. Furthermore, the problem that when the rotation speed of the fans in the server is controlled only according to the temperature information of the heat-generating components, the overall power consumption and noise of the server are relatively large when the temperature information of the heat-generating components is abnormal is avoided. Thus, the overall power consumption and noise of the server can be reduced during the heat dissipation process of the server.

[0067] In one embodiment, as Figure 3 shown, obtaining the temperature information of the heat-generating components in the server includes:

[0068] Step 320, obtaining the primary temperature information of the heat-generating components in the server through a primary sensor; the primary sensor is a sensor disposed inside the heat-generating component.

[0069] Optionally, as Figure 4 shown, Figure 4 is a schematic structural diagram of a temperature sensor in one embodiment. Among them, temperature sensors are installed on each heat-generating component in the server, and the temperature sensors are used to measure the temperature information of each heat-generating component in the server. The temperature sensors in the embodiments of the present application include multiple temperature sensors disposed at different positions of each heat-generating component. Among them, the temperature sensors include primary sensors, and the primary sensors are sensors disposed inside the heat-generating components. The temperature sensors in the embodiments of the present application include, but are not limited to, Degromon temperature sensors (Sensor). The server 120 can obtain the primary temperature information inside each heat-generating component in the server through the primary sensors installed on each heat-generating component.

[0070] Step 340, if the primary temperature information is normal, then use the primary temperature information as the temperature information of the heat-generating component.

[0071] Optionally, the server 120 can determine whether there is an abnormality in the primary temperature information. If the server 120 determines that there is no abnormality in the primary temperature information, the server 120 can use the primary temperature information as the temperature information of the heating component. Herein, no abnormality in the primary temperature information indicates that the heating component is in place and the primary sensor can obtain the primary temperature information.

[0072] Step 360, if there is an abnormality in the primary temperature information, obtain the secondary temperature information of the heating component in the server through the secondary sensor, and use the secondary temperature information as the temperature information of the heating component; the secondary sensor is a sensor arranged within a preset range around the heating component.

[0073] Optionally, as shown in Figure 4 The temperature sensor further includes a secondary sensor, which is a sensor arranged within a preset range around the heating component. The relationship between the primary sensor and the secondary sensor can be a one-to-one relationship or a one-to-many relationship. Exemplarily, the secondary sensor can be arranged on the on-board around the heating component. The temperature sensor in the embodiment of the present application includes but is not limited to the DacroMon temperature sensor. Since the server 120 can determine whether there is an abnormality in the primary temperature information, if the server 120 determines that there is an abnormality in the primary temperature information, the server 120 can obtain the secondary temperature information of the heating component in the server through the secondary sensors installed on each heating component. And the server 120 can determine whether there is an abnormality in the secondary temperature information. If there is no abnormality in the secondary temperature information, the secondary temperature information is used as the temperature information of the heating component. Herein, an abnormality in the primary temperature information indicates that the heating component is in place, but the primary sensor fails to read the primary temperature information continuously for a preset number of times. Of course, the preset number of times can be set according to the actual situation, and the embodiment of the present application does not limit the preset number of times. No abnormality in the secondary temperature information indicates that the heating component is in place and the secondary sensor can obtain the secondary temperature information.

[0074] In this embodiment, the primary temperature information of the heating component in the server is obtained through the primary sensor; if there is no abnormality in the primary temperature information, the primary temperature information is used as the temperature information of the heating component; if there is an abnormality in the primary temperature information, the secondary temperature information of the heating component in the server is obtained through the secondary sensor, and the secondary temperature information is used as the temperature information of the heating component. This embodiment adopts a multi-level sensor. When the primary sensor is abnormal, the secondary sensor can be used to determine the temperature information of the heating component, so that the temperature information of the heating component can be continuously obtained, ensuring that the temperature of the heating component in the server is within a safe range.

[0075] In one embodiment, as shown in Figure 5As shown, the first preset fan speed regulation strategy includes a primary fan speed regulation strategy, which is a speed regulation strategy for controlling the speed of the fans in the server according to the primary temperature information; if the primary temperature information is normal, then according to the temperature information of the heat-generating components, determine the target fan speed regulation strategy from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy, including:

[0076] Step 520, according to the primary temperature information, use the primary fan speed regulation strategy as the target fan speed regulation strategy.

[0077] Optionally, if the server 120 determines that the primary temperature information is normal, then the server 120 can use the primary fan speed regulation strategy as the target fan speed regulation strategy according to the temperature information of the heat-generating components corresponding to the primary temperature information. Among them, the first preset fan speed regulation strategy includes a primary fan speed regulation strategy, which is a speed regulation strategy for controlling the speed of the fans in the server only according to the primary temperature information of the heat-generating components.

[0078] Control the speed of the fans in the server according to the target fan speed regulation strategy, including:

[0079] Step 540, according to the primary fan speed regulation strategy, control the speed of the fans in the server.

[0080] Optionally, when it is determined that the primary fan speed regulation strategy is the target fan speed regulation strategy, the server 120 can obtain the corresponding relationship between the primary temperature information of the heat-generating components and the speed of the fans in the server according to the primary fan speed regulation strategy. After that, the server 120 can determine the first target speed of the fans in the server according to the primary temperature information of the heat-generating components and the corresponding relationship between the primary temperature information of the heat-generating components and the speed of the fans in the server, and control the fans in the server to run at the first target speed, so as to control the speed of the fans in the server only according to the primary temperature information of the heat-generating components.

[0081] In this embodiment, according to the primary temperature information, use the primary fan speed regulation strategy as the target fan speed regulation strategy; according to the primary fan speed regulation strategy, control the speed of the fans in the server. If the primary temperature information is normal, then the speed of the fans in the server can be controlled according to the primary fan speed regulation strategy, that is, the speed of the fans in the server can be controlled only according to the primary temperature information of the heat-generating components.

[0082] In one embodiment, as Figure 6As shown, the first preset fan speed regulation strategy includes a two - level fan speed regulation strategy, and the two - level fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the two - level temperature information; if the first - level temperature information is abnormal and the two - level temperature information is normal, then according to the temperature information of the heat - generating components, determine the target fan speed regulation strategy from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy, including:

[0083] Step 620, according to the two - level temperature information, use the two - level fan speed regulation strategy as the target fan speed regulation strategy.

[0084] Optionally, if the server 120 determines that the first - level temperature information is abnormal and the two - level temperature information is normal, then the server 120 can use the two - level fan speed regulation strategy as the target fan speed regulation strategy according to the temperature information of the heat - generating components corresponding to the two - level temperature information. Among them, the first preset fan speed regulation strategy includes a two - level fan speed regulation strategy, and the two - level fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server only according to the two - level temperature information of the heat - generating components.

[0085] Controlling the rotation speed of the fans in the server according to the target fan speed regulation strategy includes:

[0086] Step 640, according to the two - level fan speed regulation strategy, control the rotation speed of the fans in the server.

[0087] Optionally, when it is determined that the two - level fan speed regulation strategy is the target fan speed regulation strategy, the server 120 can obtain the corresponding relationship between the two - level temperature information of the heat - generating components and the rotation speed of the fans in the server according to the two - level fan speed regulation strategy. After that, the server 120 can determine the second target rotation speed of the fans in the server according to the two - level temperature information of the heat - generating components and the corresponding relationship between the two - level temperature information of the heat - generating components and the rotation speed of the fans in the server, and control the fans in the server to run at the second target rotation speed, so as to control the rotation speed of the fans in the server only according to the two - level temperature information of the heat - generating components.

[0088] In this embodiment, according to the two - level temperature information, use the two - level fan speed regulation strategy as the target fan speed regulation strategy; according to the two - level fan speed regulation strategy, control the rotation speed of the fans in the server. If the first - level temperature information is abnormal and the two - level temperature information is normal, then it is possible to control the rotation speed of the fans in the server according to the two - level fan speed regulation strategy, that is, only according to the two - level temperature information of the heat - generating components, it is possible to control the rotation speed of the fans in the server.

[0089] In one embodiment, as Figure 7 shown, if the two - level temperature information is abnormal, then according to the temperature information of the heat - generating components, determine the target fan speed regulation strategy from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy, including:

[0090] Step 720: According to the secondary temperature information, use the second preset fan speed regulation strategy as the target fan speed regulation strategy.

[0091] Optionally, if the server 120 determines that the primary temperature information is abnormal and the secondary temperature information is abnormal, the server 120 may use the second preset fan speed regulation strategy as the target fan speed regulation strategy according to the abnormal secondary temperature information. Among them, the second preset fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the temperature information of the heat generating components and the power consumption of the heat generating components. Among them, the abnormal secondary temperature information means that the heat generating components are in place, but the secondary sensor cannot read the secondary temperature information continuously for a preset number of times. Of course, the preset number of times can be set according to the actual situation, and the embodiments of the present application do not limit the preset number of times.

[0092] Controlling the rotation speed of the fans in the server according to the target fan speed regulation strategy includes:

[0093] Step 740: Control the rotation speed of the fans in the server according to the second preset fan speed regulation strategy.

[0094] Optionally, when it is determined that the second preset fan speed regulation strategy is the target fan speed regulation strategy, the server 120 may obtain the real-time power consumption of the heat generating components according to the second preset fan speed regulation strategy. Then, the server 120 may determine the third target rotation speed of the fans in the server according to the real-time power consumption of the heat generating components, and control the fans in the server to operate at the third target rotation speed, so as to control the rotation speed of the fans in the server according to the temperature information of the heat generating components and the power consumption of the heat generating components.

[0095] In this embodiment, according to the secondary temperature information, use the second preset fan speed regulation strategy as the target fan speed regulation strategy; control the rotation speed of the fans in the server according to the second preset fan speed regulation strategy. If the secondary temperature information is abnormal, the rotation speed of the fans in the server can be controlled according to the second preset fan speed regulation strategy, that is, according to the temperature information of the heat generating components and the power consumption of the heat generating components, the rotation speed of the fans in the server can be controlled.

[0096] In one embodiment, as Figure 8 shown, controlling the rotation speed of the fans in the server according to the second preset fan speed regulation strategy includes:

[0097] Step 820: Obtain the power consumption of the heat generating components and the corresponding relationship between the power consumption and rotation speed of the heat generating components at the current ambient temperature.

[0098] Optionally, when it is determined that the second preset fan speed regulation strategy is the target fan speed regulation strategy, the server 120 may obtain the real-time power consumption of the heat-generating component according to the second preset fan speed regulation strategy. The server 120 may also obtain the correspondence between the power consumption of the heat-generating component at the current ambient temperature and the rotation speed of the fan within the server. Among them, the correspondence between the power consumption of the heat-generating component and the rotation speed of the fan within the server is different at different ambient temperatures. Optionally, the range of the ambient temperature is -10°C to 50°C. In this embodiment, the correspondence between the power consumption of the heat-generating component at the ambient temperature of 35°C and the rotation speed of the fan within the server is selected.

[0099] Step 840: Determine the target rotation speed corresponding to the power consumption of the heat-generating component according to the power consumption of the heat-generating component and the power consumption-rotation speed correspondence.

[0100] Optionally, the server 120 may determine, according to the real-time power consumption of the heat-generating component and the correspondence between the power consumption of the heat-generating component at the current ambient temperature and the rotation speed of the fan within the server, the target rotation speed corresponding to the power consumption of the heat-generating component within the server at the current ambient temperature. This target rotation speed is the third target rotation speed of the fan when the secondary temperature information is abnormal.

[0101] Step 860: Control the rotation speed of the fan within the server according to the target rotation speed.

[0102] Optionally, the server 120 may adjust the rotation speed of the fan to the target rotation speed, that is, the server 120 may control the fan within the server to operate at the target rotation speed corresponding to the power consumption of the heat-generating component within the server, so that when the secondary temperature information is abnormal, the rotation speed of the fan within the server can be controlled according to the temperature information of the heat-generating component and the power consumption of the heat-generating component.

[0103] In this embodiment, the power consumption of the heat-generating component and the power consumption-rotation speed correspondence of the heat-generating component at the current ambient temperature are obtained; the target rotation speed corresponding to the power consumption of the heat-generating component is determined according to the power consumption of the heat-generating component and the power consumption-rotation speed correspondence; the rotation speed of the fan within the server is controlled according to the target rotation speed. When the secondary temperature information is abnormal, the target rotation speed can be determined according to the power consumption of the heat-generating component and the power consumption-rotation speed correspondence of the heat-generating component at the current ambient temperature, so that the rotation speed of the fan within the server can be controlled according to the target rotation speed.

[0104] In an optional embodiment, as Figure 9 shown, a fan speed regulation method is provided, which is applied to the server 120 and includes:

[0105] Step 902: Obtain the primary temperature information of the heat-generating component within the server through the primary sensor; the primary sensor is a sensor arranged inside the heat-generating component;

[0106] Step 904, if the primary temperature information is normal, use the primary temperature information as the temperature information of the heating component;

[0107] Step 906, according to the primary temperature information, use the primary fan speed regulation strategy as the target fan speed regulation strategy; the primary fan speed regulation strategy is a speed regulation strategy for controlling the speed of the fans in the server according to the primary temperature information;

[0108] Step 908, control the speed of the fans in the server according to the primary fan speed regulation strategy;

[0109] Step 910, if the primary temperature information is abnormal, obtain the secondary temperature information of the heating component in the server through a secondary sensor, and use the secondary temperature information as the temperature information of the heating component; the secondary sensor is a sensor set within a preset range around the heating component;

[0110] Step 912, if the secondary temperature information is normal, according to the secondary temperature information, use the secondary fan speed regulation strategy as the target fan speed regulation strategy; the secondary fan speed regulation strategy is a speed regulation strategy for controlling the speed of the fans in the server according to the secondary temperature information;

[0111] Step 914, control the speed of the fans in the server according to the secondary fan speed regulation strategy;

[0112] Step 916, if the secondary temperature information is abnormal, according to the secondary temperature information, use the second preset fan speed regulation strategy as the target fan speed regulation strategy; the second preset fan speed regulation strategy is a speed regulation strategy for controlling the speed of the fans in the server according to the temperature information and power consumption of the heating component;

[0113] Step 918, obtain the power consumption of the heating component and the power consumption - speed correspondence relationship of the heating component at the current ambient temperature;

[0114] Step 920, determine the target speed corresponding to the power consumption of the heating component according to the power consumption of the heating component and the power consumption - speed correspondence relationship;

[0115] Step 922, control the speed of the fans in the server according to the target speed.

[0116] The above-mentioned fan speed regulation method, device, computer device, storage medium, and computer program product obtain the temperature information of the heat-generating components in the server; determine the target fan speed regulation strategy from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy according to the temperature information of the heat-generating components; the first preset fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the temperature information of the heat-generating components, and the second preset fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the temperature information of the heat-generating components and the power consumption of the heat-generating components; control the rotation speed of the fans in the server according to the target fan speed regulation strategy. The present application can determine the target fan speed regulation strategy from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy according to the obtained temperature information of the heat-generating components in the server. Therefore, according to the determined target fan speed regulation strategy, it is possible to control the rotation speed of the fans in the server only according to the temperature information of the heat-generating components, or control the rotation speed of the fans in the server according to the temperature information of the heat-generating components and the power consumption of the heat-generating components, so that it is possible to adopt multiple preset fan speed regulation strategies and selectively control the rotation speed of the fans in the server. Furthermore, it is possible to avoid the problem that when only controlling the rotation speed of the fans in the server according to the temperature information of the heat-generating components, the overall power consumption and noise of the server are relatively large when the temperature information of the heat-generating components is abnormal. Thus, it is possible to reduce the overall power consumption and noise of the server during the heat dissipation process of the server.

[0117] It should be understood that although the steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the arrows, these steps do not necessarily need to be executed in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps does not have a strict order limit, and these steps can be executed in other orders. Moreover, at least some of the steps in the flowcharts involved in the above-mentioned embodiments may include multiple steps or multiple stages. These steps or stages do not necessarily need to be executed at the same time, but can be executed at different times. The execution order of these steps or stages does not necessarily need to be sequential, but can be executed alternately or alternately with at least some of the steps or stages in other steps or other steps.

[0118] Based on the same inventive concept, the embodiments of the present application also provide a fan speed regulation device for implementing the above-mentioned fan speed regulation method. The solution provided by this device for solving problems is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the fan speed regulation device provided below can refer to the limitations on the fan speed regulation method in the above text, and will not be repeated here.

[0119] In one embodiment, as Figure 10As shown in the figure, a fan speed control device 1000 is provided, including: a temperature information acquisition module 1020, a target fan speed control strategy determination module 1040, and a control module 1060, where:

[0120] The temperature information acquisition module 1020 is configured to acquire temperature information of heat-generating components inside the server.

[0121] The target fan speed control strategy determination module 1040 is configured to determine a target fan speed control strategy from a first preset fan speed control strategy and a second preset fan speed control strategy according to the temperature information of the heat-generating components; the first preset fan speed control strategy is a speed control strategy for controlling the rotation speed of the fans inside the server according to the temperature information of the heat-generating components, and the second preset fan speed control strategy is a speed control strategy for controlling the rotation speed of the fans inside the server according to the temperature information of the heat-generating components and the power consumption of the heat-generating components.

[0122] The control module 1060 is configured to control the rotation speed of the fans inside the server according to the target fan speed control strategy.

[0123] In one embodiment, the temperature information acquisition module 1020 includes:

[0124] A primary temperature information acquisition unit, configured to acquire primary temperature information of heat-generating components inside the server through a primary sensor; the primary sensor is a sensor disposed inside the heat-generating components;

[0125] A primary temperature information determination unit, configured to use the primary temperature information as the temperature information of the heat-generating components if the primary temperature information is normal;

[0126] A secondary temperature information determination unit, configured to acquire secondary temperature information of heat-generating components inside the server through a secondary sensor and use the secondary temperature information as the temperature information of the heat-generating components if the primary temperature information is abnormal; the secondary sensor is a sensor disposed within a preset range around the heat-generating components.

[0127] In one embodiment, the first preset fan speed control strategy includes a primary fan speed control strategy, and the primary fan speed control strategy is a speed control strategy for controlling the rotation speed of the fans inside the server according to the primary temperature information; if the primary temperature information is normal, the target fan speed control strategy determination module 1040 includes:

[0128] A primary fan speed control strategy determination unit, configured to use the primary fan speed control strategy as the target fan speed control strategy according to the primary temperature information;

[0129] The control module 1060 includes:

[0130] A first control unit, configured to control the rotation speed of the fans inside the server according to the primary fan speed control strategy.

[0131] In one embodiment, the first preset fan speed regulation strategy includes a two - level fan speed regulation strategy, and the two - level fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the two - level temperature information; if the first - level temperature information is abnormal and the two - level temperature information is normal, the target fan speed regulation strategy determination module 1040 includes:

[0132] A two - level fan speed regulation strategy determination unit, configured to use the two - level fan speed regulation strategy as the target fan speed regulation strategy according to the two - level temperature information;

[0133] The control module 1060 includes:

[0134] A second control unit, configured to control the rotation speed of the fans in the server according to the two - level fan speed regulation strategy.

[0135] In one embodiment, if the two - level temperature information is abnormal, the target fan speed regulation strategy determination module 1040 includes:

[0136] A second preset fan speed regulation strategy determination unit, configured to use the second preset fan speed regulation strategy as the target fan speed regulation strategy according to the two - level temperature information;

[0137] The control module 1060 includes:

[0138] A third control unit, configured to control the rotation speed of the fans in the server according to the second preset fan speed regulation strategy.

[0139] In one embodiment, the third control unit includes:

[0140] An acquisition subunit, configured to acquire the power consumption of the heat - generating component and the power - consumption rotation - speed correspondence relationship of the heat - generating component at the current ambient temperature;

[0141] A target rotation - speed determination subunit, configured to determine the target rotation speed corresponding to the power consumption of the heat - generating component according to the power consumption of the heat - generating component and the power - consumption rotation - speed correspondence relationship;

[0142] A control subunit, configured to control the rotation speed of the fans in the server according to the target rotation speed.

[0143] Each module in the above - mentioned fan speed regulation device can be implemented in whole or in part by software, hardware, and their combination. The above - mentioned modules can be embedded in the processor of the computer device in hardware form or be independent of it, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to the above - mentioned modules.

[0144] In one embodiment, as Figure 11As shown, a baseboard management controller 1100 is provided, which includes a storage module 1120, a receiving module 1140, and an execution module 1160.

[0145] Among them, the Baseboard Management Controller (BMC) is a kind of controller. The baseboard management controller can perform operations such as firmware upgrade on the machine and view the corresponding devices of the machine when the machine is not powered on. Since there are many fans in the server, generally, the baseboard management controller controls the rotation speeds of the fans in the server according to a preset fan speed regulation strategy. The modules related to the fan speed regulation function in the baseboard management controller 1100 include a storage module 1120, a receiving module 1140, and an execution module 1160. The storage module 1120 includes a pre-stored first preset fan speed regulation strategy, a second preset fan speed regulation strategy, and the power consumption - rotation speed correspondence relationship at the current ambient temperature. The receiving module 1140 is used to obtain the presence information and temperature information of each temperature sensor corresponding to the heat - generating components in the server and the power consumption of the heat - generating components through the I2C bus. Among them, the temperature sensors include primary sensors and secondary sensors. The execution module 1160 is used to calculate the rotation speed of the fans in the server in real - time according to the temperature information of the heat - generating components and / or the power consumption of the heat - generating components, and control the rotation speed of the fans in the server.

[0146] The baseboard management controller 1100 is mainly applied to the fan speed regulation method when the temperature sensor is abnormal. In the embodiment of the present application, a three - level protection mechanism for server heat dissipation is set. Of course, the number of levels of the server heat dissipation protection mechanism can be increased or decreased according to the actual situation, and the present application does not make a limitation on this. Optionally, when the primary temperature information obtained by the primary sensor corresponding to the heat - generating component is abnormal, the baseboard management controller 1100 can enable the secondary sensor corresponding to the heat - generating component to obtain secondary temperature information, and calculate the rotation speed of the fan according to the secondary temperature information. When the secondary temperature information obtained by the secondary sensor corresponding to the heat - generating component is abnormal, the baseboard management controller 1100 can control the fan speed regulation to enter the protection mode. The protection mode is a mode of controlling the rotation speed of the fans in the server according to the power consumption of the heat - generating components, and the protection mode corresponds to the second preset fan speed regulation strategy. In the protection mode, the baseboard management controller 1100 can read the real - time power consumption of the heat - generating component corresponding to the abnormal secondary temperature information, and calculate the target rotation speed of the fan at this real - time power consumption according to the power consumption - rotation speed correspondence relationship at the current ambient temperature, so as to control the rotation speed of the fans in the server according to the target rotation speed.

[0147] In one embodiment, a computer device is provided. The computer device can be a server, and its internal structure diagram can be as Figure 12As shown in the figure. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store fan speed regulation data. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements a fan speed regulation method.

[0148] Those skilled in the art can understand that Figure 12 the structure shown in the figure is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this 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 different component arrangements.

[0149] In one embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the following steps are implemented:

[0150] Obtain the temperature information of the heat-generating components in the server;

[0151] According to the temperature information of the heat-generating components, determine the target fan speed regulation strategy from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy; the first preset fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the temperature information of the heat-generating components, and the second preset fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the temperature information of the heat-generating components and the power consumption of the heat-generating components;

[0152] According to the target fan speed regulation strategy, control the rotation speed of the fans in the server.

[0153] In one embodiment, when obtaining the temperature information of the heat-generating components in the server, the processor also implements the following steps when executing the computer program:

[0154] Obtain the primary temperature information of the heat-generating components in the server through a primary sensor; the primary sensor is a sensor disposed inside the heat-generating component;

[0155] If the primary temperature information is normal, use the primary temperature information as the temperature information of the heating component;

[0156] If the primary temperature information is abnormal, obtain the secondary temperature information of the heating component in the server through a secondary sensor, and use the secondary temperature information as the temperature information of the heating component; the secondary sensor is a sensor arranged within a preset range around the heating component.

[0157] In one embodiment, the first preset fan speed regulation strategy includes a primary fan speed regulation strategy, and the primary fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fan in the server according to the primary temperature information; if the primary temperature information is normal, then determine the target fan speed regulation strategy from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy according to the temperature information of the heating component. When the processor executes the computer program, the following steps are also implemented:

[0158] According to the primary temperature information, use the primary fan speed regulation strategy as the target fan speed regulation strategy;

[0159] Control the rotation speed of the fan in the server according to the target fan speed regulation strategy, including:

[0160] Control the rotation speed of the fan in the server according to the primary fan speed regulation strategy.

[0161] In one embodiment, the first preset fan speed regulation strategy includes a secondary fan speed regulation strategy, and the secondary fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fan in the server according to the secondary temperature information; if the primary temperature information is abnormal and the secondary temperature information is normal, then determine the target fan speed regulation strategy from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy according to the temperature information of the heating component. When the processor executes the computer program, the following steps are also implemented:

[0162] According to the secondary temperature information, use the secondary fan speed regulation strategy as the target fan speed regulation strategy;

[0163] Control the rotation speed of the fan in the server according to the target fan speed regulation strategy, including:

[0164] Control the rotation speed of the fan in the server according to the secondary fan speed regulation strategy.

[0165] In one embodiment, if the secondary temperature information is abnormal, then determine the target fan speed regulation strategy from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy according to the temperature information of the heating component. When the processor executes the computer program, the following steps are also implemented:

[0166] According to the secondary temperature information, use the second preset fan speed regulation strategy as the target fan speed regulation strategy;

[0167] Control the rotation speed of the fans in the server according to the target fan speed regulation strategy, including:

[0168] Control the rotation speed of the fans in the server according to the second preset fan speed regulation strategy.

[0169] In one embodiment, when controlling the rotation speed of the fans in the server according to the second preset fan speed regulation strategy, the processor also implements the following steps when executing the computer program:

[0170] Obtain the power consumption of the heat-generating component and the corresponding relationship between the power consumption and the rotation speed of the heat-generating component at the current ambient temperature;

[0171] Determine the target rotation speed corresponding to the power consumption of the heat-generating component according to the power consumption of the heat-generating component and the corresponding relationship between the power consumption and the rotation speed;

[0172] Control the rotation speed of the fans in the server according to the target rotation speed.

[0173] 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 following steps are implemented:

[0174] Obtain the temperature information of the heat-generating component in the server;

[0175] Determine the target fan speed regulation strategy from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy according to the temperature information of the heat-generating component; the first preset fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the temperature information of the heat-generating component, and the second preset fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the temperature information of the heat-generating component and the power consumption of the heat-generating component;

[0176] Control the rotation speed of the fans in the server according to the target fan speed regulation strategy.

[0177] In one embodiment, when obtaining the temperature information of the heat-generating component in the server, the computer program also implements the following steps when executed by the processor:

[0178] Obtain the primary temperature information of the heat-generating component in the server through a primary sensor; the primary sensor is a sensor disposed inside the heat-generating component;

[0179] If the primary temperature information is normal, use the primary temperature information as the temperature information of the heat-generating component;

[0180] If the primary temperature information is abnormal, obtain the secondary temperature information of the heat-generating component in the server through a secondary sensor, and use the secondary temperature information as the temperature information of the heat-generating component; the secondary sensor is a sensor disposed within a preset range around the heat-generating component.

[0181] In one embodiment, the first preset fan speed regulation strategy includes a primary fan speed regulation strategy, and the primary fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the primary temperature information; if the primary temperature information is normal, then according to the temperature information of the heat-generating components, determine the target fan speed regulation strategy from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy. When the computer program is executed by the processor, the following steps are also implemented:

[0182] According to the primary temperature information, use the primary fan speed regulation strategy as the target fan speed regulation strategy;

[0183] According to the target fan speed regulation strategy, control the rotation speed of the fans in the server, including:

[0184] According to the primary fan speed regulation strategy, control the rotation speed of the fans in the server.

[0185] In one embodiment, the first preset fan speed regulation strategy includes a secondary fan speed regulation strategy, and the secondary fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the secondary temperature information; if the primary temperature information is abnormal and the secondary temperature information is normal, then according to the temperature information of the heat-generating components, determine the target fan speed regulation strategy from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy. When the computer program is executed by the processor, the following steps are also implemented:

[0186] According to the secondary temperature information, use the secondary fan speed regulation strategy as the target fan speed regulation strategy;

[0187] According to the target fan speed regulation strategy, control the rotation speed of the fans in the server, including:

[0188] According to the secondary fan speed regulation strategy, control the rotation speed of the fans in the server.

[0189] In one embodiment, if the secondary temperature information is abnormal, then according to the temperature information of the heat-generating components, determine the target fan speed regulation strategy from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy. When the computer program is executed by the processor, the following steps are also implemented:

[0190] According to the secondary temperature information, use the second preset fan speed regulation strategy as the target fan speed regulation strategy;

[0191] According to the target fan speed regulation strategy, control the rotation speed of the fans in the server, including:

[0192] According to the second preset fan speed regulation strategy, control the rotation speed of the fans in the server.

[0193] In one embodiment, according to the second preset fan speed regulation strategy, the rotation speed of the fans in the server is controlled. When the computer program is executed by a processor, the following steps are further implemented:

[0194] Obtain the power consumption of the heat-generating component and the power consumption-rotation speed correspondence relationship of the heat-generating component at the current ambient temperature;

[0195] According to the power consumption of the heat-generating component and the power consumption-rotation speed correspondence relationship, determine the target rotation speed corresponding to the power consumption of the heat-generating component;

[0196] Control the rotation speed of the fans in the server according to the target rotation speed.

[0197] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the following steps are implemented:

[0198] Obtain the temperature information of the heat-generating component in the server;

[0199] According to the temperature information of the heat-generating component, determine the target fan speed regulation strategy from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy; the first preset fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the temperature information of the heat-generating component, and the second preset fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the temperature information of the heat-generating component and the power consumption of the heat-generating component;

[0200] Control the rotation speed of the fans in the server according to the target fan speed regulation strategy.

[0201] In one embodiment, when obtaining the temperature information of the heat-generating component in the server, the following steps are further implemented when the computer program is executed by a processor:

[0202] Obtain the primary temperature information of the heat-generating component in the server through a primary sensor; the primary sensor is a sensor disposed inside the heat-generating component;

[0203] If the primary temperature information is normal, use the primary temperature information as the temperature information of the heat-generating component;

[0204] If the primary temperature information is abnormal, obtain the secondary temperature information of the heat-generating component in the server through a secondary sensor, and use the secondary temperature information as the temperature information of the heat-generating component; the secondary sensor is a sensor disposed within a preset range around the heat-generating component.

[0205] In one embodiment, the first preset fan speed regulation strategy includes a primary fan speed regulation strategy, which is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the primary temperature information; if the primary temperature information is normal, then according to the temperature information of the heat-generating components, determine the target fan speed regulation strategy from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy. When the computer program is executed by the processor, the following steps are also implemented:

[0206] According to the primary temperature information, use the primary fan speed regulation strategy as the target fan speed regulation strategy;

[0207] According to the target fan speed regulation strategy, control the rotation speed of the fans in the server, including:

[0208] According to the primary fan speed regulation strategy, control the rotation speed of the fans in the server.

[0209] In one embodiment, the first preset fan speed regulation strategy includes a secondary fan speed regulation strategy, which is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the secondary temperature information; if the primary temperature information is abnormal and the secondary temperature information is normal, then according to the temperature information of the heat-generating components, determine the target fan speed regulation strategy from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy. When the computer program is executed by the processor, the following steps are also implemented:

[0210] According to the secondary temperature information, use the secondary fan speed regulation strategy as the target fan speed regulation strategy;

[0211] According to the target fan speed regulation strategy, control the rotation speed of the fans in the server, including:

[0212] According to the secondary fan speed regulation strategy, control the rotation speed of the fans in the server.

[0213] In one embodiment, if the secondary temperature information is abnormal, then according to the temperature information of the heat-generating components, determine the target fan speed regulation strategy from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy. When the computer program is executed by the processor, the following steps are also implemented:

[0214] According to the secondary temperature information, use the second preset fan speed regulation strategy as the target fan speed regulation strategy;

[0215] According to the target fan speed regulation strategy, control the rotation speed of the fans in the server, including:

[0216] According to the second preset fan speed regulation strategy, control the rotation speed of the fans in the server.

[0217] In one embodiment, according to the second preset fan speed regulation strategy, the rotation speed of the fans in the server is controlled. When the computer program is executed by the processor, the following steps are further implemented:

[0218] Obtain the power consumption of the heat-generating component and the power consumption-rotation speed correspondence relationship of the heat-generating component at the current ambient temperature;

[0219] Determine the target rotation speed corresponding to the power consumption of the heat-generating component according to the power consumption of the heat-generating component and the power consumption-rotation speed correspondence relationship;

[0220] Control the rotation speed of the fans in the server according to the target rotation speed.

[0221] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Moreover, the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of the relevant countries and regions.

[0222] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. 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 methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. 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. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processors, graphics processors, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.

[0223] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, 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, it should be considered as the scope recorded in this specification.

[0224] The above embodiments only represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.

Claims

1. A method for adjusting the speed of a fan, characterized in that, The method includes: Obtaining temperature information of heat-generating components in the server; the temperature information includes primary temperature information inside the heat-generating components and secondary temperature information within a preset range around the heat-generating components; Determining a target fan speed regulation strategy from a first preset fan speed regulation strategy and a second preset fan speed regulation strategy according to the temperature information of the heat-generating components; the first preset fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the primary temperature information of the heat-generating components when the primary temperature information is normal, or the first preset fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the secondary temperature information of the heat-generating components when the primary temperature information is abnormal and the secondary temperature information is normal, and the second preset fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the temperature information of the heat-generating components and the power consumption of the heat-generating components when the secondary temperature information is abnormal; Controlling the rotation speed of the fans in the server according to the target fan speed regulation strategy.

2. The method according to claim 1, wherein The obtaining temperature information of heat-generating components in the server includes: Obtaining the primary temperature information of heat-generating components in the server through a primary sensor; the primary sensor is a sensor arranged inside the heat-generating components; If the primary temperature information is normal, using the primary temperature information as the temperature information of the heat-generating components; If the primary temperature information is abnormal, obtaining the secondary temperature information of heat-generating components in the server through a secondary sensor and using the secondary temperature information as the temperature information of the heat-generating components; the secondary sensor is a sensor arranged within a preset range around the heat-generating components.

3. The method according to claim 2, wherein The first preset fan speed regulation strategy includes a primary fan speed regulation strategy, and the primary fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the primary temperature information; if the primary temperature information is normal, then determining the target fan speed regulation strategy from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy according to the temperature information of the heat-generating components includes: Using the primary fan speed regulation strategy as the target fan speed regulation strategy according to the primary temperature information; The controlling the rotation speed of the fans in the server according to the target fan speed regulation strategy includes: Controlling the rotation speed of the fans in the server according to the primary fan speed regulation strategy.

4. The method according to claim 2 or 3, characterized in that, The first preset fan speed regulation strategy includes a secondary fan speed regulation strategy, and the secondary fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the secondary temperature information; if the primary temperature information is abnormal and the secondary temperature information is normal, then determining the target fan speed regulation strategy from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy according to the temperature information of the heat-generating components includes: Using the secondary fan speed regulation strategy as the target fan speed regulation strategy according to the secondary temperature information; Controlling the rotation speed of the fans in the server according to the target fan speed regulation strategy includes: Controlling the rotation speed of the fans in the server according to the secondary fan speed regulation strategy.

5. The method according to claim 2 or 3, characterized in that, If the secondary temperature information is abnormal, determining the target fan speed regulation strategy from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy according to the temperature information of the heat-generating component includes: Taking the second preset fan speed regulation strategy as the target fan speed regulation strategy according to the secondary temperature information; Controlling the rotation speed of the fans in the server according to the target fan speed regulation strategy includes: Controlling the rotation speed of the fans in the server according to the second preset fan speed regulation strategy.

6. The method according to claim 5, wherein Controlling the rotation speed of the fans in the server according to the second preset fan speed regulation strategy includes: Obtaining the power consumption of the heat-generating component and the power consumption-rotation speed correspondence relationship of the heat-generating component at the current ambient temperature; Determining the target rotation speed corresponding to the power consumption of the heat-generating component according to the power consumption of the heat-generating component and the power consumption-rotation speed correspondence relationship; Controlling the rotation speed of the fans in the server according to the target rotation speed.

7. A fan speed regulating device, characterized in that, The device includes: A temperature information acquisition module for acquiring the temperature information of the heat-generating component in the server; the temperature information includes the primary temperature information inside the heat-generating component and the secondary temperature information within a preset range around the heat-generating component; A target fan speed regulation strategy determination module for determining the target fan speed regulation strategy from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy according to the temperature information of the heat-generating component; the first preset fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the primary temperature information of the heat-generating component when the primary temperature information is normal, or the first preset fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the secondary temperature information of the heat-generating component when the primary temperature information is abnormal and the secondary temperature information is normal, and the second preset fan speed regulation strategy is a speed regulation strategy for controlling the rotation speed of the fans in the server according to the temperature information and the power consumption of the heat-generating component when the secondary temperature information is abnormal; A control module for controlling the rotation speed of the fans in the server according to the target fan speed regulation strategy.

8. A computer device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method and device for controlling fan of server

    CN107957763A

  • Strategy for automatic optimization of energy consumption

    CN110836197A