[go: up one dir, main page]

CN116360566A - Fan speed regulating method, device, computer equipment, storage medium and program product - Google Patents

Fan speed regulating method, device, computer equipment, storage medium and program product Download PDF

Info

Publication number
CN116360566A
CN116360566A CN202310143938.8A CN202310143938A CN116360566A CN 116360566 A CN116360566 A CN 116360566A CN 202310143938 A CN202310143938 A CN 202310143938A CN 116360566 A CN116360566 A CN 116360566A
Authority
CN
China
Prior art keywords
speed regulation
fan
regulation strategy
temperature information
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310143938.8A
Other languages
Chinese (zh)
Other versions
CN116360566B (en
Inventor
李萧纹
程枫
张盈盈
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhongke Controllable Information Industry Co Ltd
Original Assignee
Zhongke Controllable Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhongke Controllable Information Industry Co Ltd filed Critical Zhongke Controllable Information Industry Co Ltd
Priority to CN202310143938.8A priority Critical patent/CN116360566B/en
Publication of CN116360566A publication Critical patent/CN116360566A/en
Application granted granted Critical
Publication of CN116360566B publication Critical patent/CN116360566B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/20Cooling means
    • G06F1/206Cooling means comprising thermal management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Cooling Or The Like Of Electrical Apparatus (AREA)

Abstract

The application relates to a fan speed regulation method, a fan speed regulation device, computer equipment, a storage medium and a computer program product. The method comprises the following steps: acquiring temperature information of a heating component 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 temperature information of the heating component; the first preset fan speed regulation strategy is a speed regulation strategy for controlling the rotating 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 rotating speed of the fan in the server according to the temperature information of the heating component and the power consumption of the heating component; and controlling the rotating speed of the fan in the server according to the target fan speed regulation strategy. The method can adopt various preset fan speed regulation strategies to selectively control the rotating speed of the fan in the server. Further, the overall power consumption and noise of the server can be reduced in the process of radiating the heat of the server.

Description

风扇调速方法、装置、计算机设备、存储介质和程序产品Fan speed regulation method, device, computer equipment, storage medium and program product

技术领域technical field

本申请涉及服务器散热技术领域,特别是涉及一种风扇调速方法、装置、计算机设备、存储介质和计算机程序产品。The present application relates to the technical field of server heat dissipation, and in particular to a fan speed regulation method, device, computer equipment, storage medium and computer program product.

背景技术Background technique

随着服务器功耗的不断增加,服务器的散热就显得愈加重要。在对服务器进行散热的过程中,主要是通过设置在服务器内部的风扇来实现散热。一般情况下,在通过风扇对服务器进行散热时,服务器主要通过其内部的温度传感器来检测实时温度,然后,基于实时温度来控制风扇的转速。With the continuous increase of server power consumption, the heat dissipation of the server becomes more and more important. In the process of dissipating heat from the server, the heat dissipation is mainly realized by a fan arranged inside the server. Generally, when the server is cooled by a fan, the server mainly detects the real-time temperature through its internal temperature sensor, and then controls the speed of the fan based on the real-time temperature.

然而,传统方法在基于服务器内的实时温度来控制风扇转速的过程中,存在服务器整体功耗及噪音较大的问题。However, in the process of controlling the fan speed based on the real-time temperature in the server in the traditional method, there are problems of high overall power consumption and noise of the server.

发明内容Contents of the invention

基于此,有必要针对上述技术问题,提供一种能够在对服务器进行散热时减小服务器整体功耗及噪音的风扇调速方法、装置、计算机设备、计算机可读存储介质和计算机程序产品。Based on this, it is necessary to address the above technical problems and provide a fan speed regulation method, device, computer equipment, computer readable storage medium and computer program product that can reduce the overall power consumption and noise of the server when cooling the server.

第一方面,本申请提供了一种风扇调速方法。所述方法包括:In a first aspect, the present application provides a fan speed regulation method. The methods include:

获取服务器内发热部件的温度信息;Obtain temperature information of heating components in the server;

根据所述发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略;所述第一预设风扇调速策略为根据所述发热部件的温度信息对所述服务器内风扇的转速进行控制的调速策略,所述第二预设风扇调速策略为根据所述发热部件的温度信息、所述发热部件的功耗对所述服务器内风扇的转速进行控制的调速策略;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 based on the heat generation The temperature information of the component controls the speed regulation strategy of the fan in the server, and the second preset fan speed regulation strategy is to control the speed of the server according to the temperature information of the heat-generating component and the power consumption of the heat-generating component. The speed regulation strategy to control the speed of the internal fan;

根据所述目标风扇调速策略,对所述服务器内风扇的转速进行控制。According to the target fan speed regulation policy, the speed of the fan in the server is controlled.

本申请实施例能够根据获取的服务器内发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定出目标风扇调速策略。因此,根据确定出的目标风扇调速策略,能够只根据发热部件的温度信息对服务器内风扇的转速进行控制,或者根据发热部件的温度信息以及发热部件的功耗对服务器内风扇的转速进行控制,从而能够采用多种预设风扇调速策略、有选择地对服务器内风扇的转速进行控制。进而,避免了只根据发热部件的温度信息对服务器内风扇的转速进行控制,在发热部件的温度信息存在异常时,造成服务器整体功耗及噪音较大的问题。从而,就能够在对服务器进行散热的过程中减小服务器的整体功耗及噪音。The embodiment of 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 acquired temperature information of the heat-generating components in the server. Therefore, according to the determined target fan speed regulation strategy, the speed of the fan in the server can be controlled only according to the temperature information of the heat-generating component, or the speed of the fan in the server can be controlled according to the temperature information of the heat-generating component and the power consumption of the heat-generating component , so that multiple preset fan speed regulation strategies can be used to selectively control the speed of the fan in the server. Furthermore, the speed of the fan in the server is controlled only based on the temperature information of the heat-generating component, and when the temperature information of the heat-generating component is abnormal, the problem of high overall power consumption and noise of the server is avoided. Therefore, the overall power consumption and noise of the server can be reduced during the process of cooling the server.

在其中一个实施例中,所述获取服务器内发热部件的温度信息,包括:In one of the embodiments, the acquiring the temperature information of the heat-generating components in the server includes:

通过一级传感器获取服务器内发热部件的一级温度信息;所述一级传感器为设置于所述发热部件内部的传感器;Obtaining the primary temperature information of the heating component in the server through the primary sensor; the primary sensor is a sensor arranged inside the heating component;

若所述一级温度信息不存在异常,则将所述一级温度信息作为所述发热部件的温度信息;If there is no abnormality in the primary temperature information, using the primary temperature information as the temperature information of the heat-generating component;

若所述一级温度信息存在异常,则通过二级传感器获取服务器内发热部件的二级温度信息,将所述二级温度信息作为所述发热部件的温度信息;所述二级传感器为设置于所述发热部件周围预设范围内的传感器。If there is an abnormality in the primary temperature information, the secondary temperature information of the heat-generating component in the server is obtained through the secondary sensor, and the secondary temperature information is used as the temperature information of the heat-generating component; the secondary sensor is set at A sensor within a preset range around the heating component.

本实施例中,通过一级传感器获取服务器内发热部件的一级温度信息;若一级温度信息不存在异常,则将一级温度信息作为发热部件的温度信息;若一级温度信息存在异常,则通过二级传感器获取服务器内发热部件的二级温度信息,将二级温度信息作为发热部件的温度信息。本实施例采用了多级传感器,当一级传感器存在异常时,能够采用二级传感器确定发热部件的温度信息,从而能够不间断地获取发热部件的温度信息,保证了服务器内发热部件的温度处于安全范围。In this embodiment, the first-level temperature information of the heat-generating components in the server is acquired through a first-level sensor; if there is no abnormality in the first-level temperature information, the first-level temperature information is used as the temperature information of the heat-generating component; if there is an abnormality in the first-level temperature information, Then, the secondary temperature information of the heating component in the server is acquired through the secondary sensor, and the secondary temperature information is used as the temperature information of the heating component. This embodiment uses multi-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 obtained continuously, ensuring that the temperature of the heat-generating component in the server is at safe range.

在其中一个实施例中,所述第一预设风扇调速策略包括一级风扇调速策略,所述一级风扇调速策略为根据所述一级温度信息对所述服务器内风扇的转速进行控制的调速策略;若所述一级温度信息不存在异常,则所述根据所述发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略,包括:In one of the embodiments, the first preset fan speed regulation strategy includes a primary fan speed regulation strategy, and the primary fan speed regulation strategy is to adjust the speed of the fan in the server according to the primary temperature information. Speed regulation strategy for control; if there is no abnormality in the primary temperature information, then according to the temperature information of the heat-generating component, determine the target from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy Fan speed regulation strategy, including:

根据所述一级温度信息,将所述一级风扇调速策略作为目标风扇调速策略;Using the primary fan speed regulation strategy as the target fan speed regulation strategy according to the primary temperature information;

所述根据所述目标风扇调速策略,对所述服务器内风扇的转速进行控制,包括:The controlling the speed of the fan in the server according to the target fan speed regulation strategy includes:

根据所述一级风扇调速策略,对所述服务器内风扇的转速进行控制。According to the first-level fan speed regulation strategy, the speed of the fan in the server is controlled.

本实施例中,根据一级温度信息,将一级风扇调速策略作为目标风扇调速策略;根据一级风扇调速策略,对服务器内风扇的转速进行控制。若一级温度信息不存在异常,则能够根据一级风扇调速策略控制服务器内风扇的转速,即只根据发热部件的一级温度信息,就能够对服务器内风扇的转速进行控制。In this embodiment, according to the first-level temperature information, the first-level fan speed regulation strategy is used as the target fan speed regulation strategy; according to the first-level fan speed regulation strategy, the speed of the fan in the server is controlled. If there is no abnormality in the first-level temperature information, the speed of the fan in the server can be controlled according to the first-level fan speed regulation strategy, that is, the speed of the fan in the server can be controlled only according to the first-level temperature information of the heat-generating component.

在其中一个实施例中,所述第一预设风扇调速策略包括二级风扇调速策略,所述二级风扇调速策略为根据所述二级温度信息对所述服务器内风扇的转速进行控制的调速策略;若所述一级温度信息存在异常,且所述二级温度信息不存在异常,则所述根据所述发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略,包括:In one of the embodiments, the first preset fan speed regulation strategy includes a secondary fan speed regulation strategy, and the secondary fan speed regulation strategy is to adjust the speed of the fan in the server according to the secondary temperature information. The speed regulation strategy of the control; if there is an abnormality in the primary temperature information and there is no abnormality in the secondary temperature information, then according to the temperature information of the heat-generating component, the first preset fan speed regulation strategy and the second The target fan speed regulation strategy is determined in the preset fan speed regulation strategy, including:

根据所述二级温度信息,将所述二级风扇调速策略作为目标风扇调速策略;Using the secondary fan speed regulation strategy as the target fan speed regulation strategy according to the secondary temperature information;

所述根据所述目标风扇调速策略,对所述服务器内风扇的转速进行控制,包括:The controlling the speed of the fan in the server according to the target fan speed regulation strategy includes:

根据所述二级风扇调速策略,对所述服务器内风扇的转速进行控制。According to the secondary fan speed regulation strategy, the speed of the fan in the server is controlled.

本实施例中,根据二级温度信息,将二级风扇调速策略作为目标风扇调速策略;根据二级风扇调速策略,对服务器内风扇的转速进行控制。若一级温度信息存在异常,且二级温度信息不存在异常,则能够根据二级风扇调速策略控制服务器内风扇的转速,即只根据发热部件的二级温度信息,就能够对服务器内风扇的转速进行控制。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 speed of the fan in the server is controlled. If there is an abnormality in the primary temperature information and there is no abnormality in the secondary temperature information, the speed of the fan in the server can be controlled according to the secondary fan speed regulation strategy. speed control.

在其中一个实施例中,若所述二级温度信息存在异常,则所述根据所述发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略,包括:In one of the embodiments, if the secondary temperature information is abnormal, the target is determined 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. Fan speed regulation strategy, including:

根据所述二级温度信息,将所述第二预设风扇调速策略作为目标风扇调速策略;Taking the second preset fan speed regulation strategy as the target fan speed regulation strategy according to the secondary temperature information;

所述根据所述目标风扇调速策略,对所述服务器内风扇的转速进行控制,包括:The controlling the speed of the fan in the server according to the target fan speed regulation strategy includes:

根据所述第二预设风扇调速策略,对所述服务器内风扇的转速进行控制。According to the second preset fan speed regulation strategy, the speed of the fan in the server is controlled.

本实施例中,根据二级温度信息,将第二预设风扇调速策略作为目标风扇调速策略;根据第二预设风扇调速策略,对服务器内风扇的转速进行控制。若二级温度信息存在异常,则能够根据第二预设风扇调速策略控制服务器内风扇的转速,即根据发热部件的温度信息、以及发热部件的功耗,就能够对服务器内风扇的转速进行控制。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 speed of the fan in the server is controlled. If there is an abnormality in the secondary temperature information, the speed of the fan in the server can be controlled according to the second preset fan speed regulation strategy, that is, the speed of the fan in the server can be adjusted according to the temperature information of the heat-generating component and the power consumption of the heat-generating component. control.

在其中一个实施例中,所述根据所述第二预设风扇调速策略,对所述服务器内风扇的转速进行控制,包括:In one of the embodiments, the controlling the speed of the fan in the server according to the second preset fan speed regulation strategy includes:

获取所述发热部件的功耗及所述发热部件在当前环境温度下的功耗转速对应关系;Obtaining the power consumption of the heating component and the corresponding relationship between the power consumption and rotational speed of the heating component at the current ambient temperature;

根据所述发热部件的功耗及所述功耗转速对应关系,确定与所述发热部件的功耗对应的目标转速;determining a target rotational speed corresponding to the power consumption of the heating component according to the corresponding relationship between the power consumption of the heating component and the power consumption rotational speed;

根据所述目标转速对所述服务器内风扇的转速进行控制。The rotational speed of the fan in the server is controlled according to the target rotational speed.

本实施例中,获取发热部件的功耗及发热部件在当前环境温度下的功耗转速对应关系;根据发热部件的功耗及功耗转速对应关系,确定与发热部件的功耗对应的目标转速;根据目标转速对服务器内风扇的转速进行控制。在二级温度信息存在异常的情况下,能够根据发热部件的功耗及发热部件在当前环境温度下的功耗转速对应关系确定出目标转速,从而能够根据目标转速对服务器内风扇的转速进行控制。In this embodiment, the corresponding relationship between the power consumption of the heating component and the power consumption speed of the heating component at the current ambient temperature is obtained; according to the corresponding relationship between the power consumption of the heating component and the power consumption speed of the heating component, the target speed corresponding to the power consumption of the heating component is determined ; Control the speed of the fan in the server according to the target speed. In the case of abnormality in the secondary temperature information, the target speed can be determined according to the power consumption of the heat-generating component and the corresponding relationship between the power consumption and speed of the heat-generating component at the current ambient temperature, so that the speed of the fan in the server can be controlled according to the target speed .

第二方面,本申请还提供了一种风扇调速装置。所述装置包括:In a second aspect, the present application also provides a fan speed regulating device. The devices include:

温度信息获取模块,用于获取服务器内发热部件的温度信息;A temperature information acquisition module, configured to acquire temperature information of heating components in the server;

目标风扇调速策略确定模块,用于根据所述发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略;所述第一预设风扇调速策略为根据所述发热部件的温度信息对所述服务器内风扇的转速进行控制的调速策略,所述第二预设风扇调速策略为根据所述发热部件的温度信息、所述发热部件的功耗对所述服务器内风扇的转速进行控制的调速策略;The target fan speed regulation strategy determination module is used to 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 Assuming that the fan speed regulation strategy is a speed regulation strategy for controlling the speed of the fan in the server according to the temperature information of the heat-generating component, the second preset fan speed regulation strategy is based on the temperature information of the heat-generating component, the A speed regulation strategy in which the power consumption of the heat-generating components controls the speed of the fan in the server;

控制模块,用于根据所述目标风扇调速策略,对所述服务器内风扇的转速进行控制。The control module is configured to control the speed of the fan in the server according to the target fan speed regulation strategy.

第三方面,本申请还提供了一种计算机设备。所述计算机设备包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现上述第一方面中任一项实施例中的方法的步骤。In a third aspect, the present application also provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the method in any one embodiment of the first aspect above when executing the computer program.

第四方面,本申请还提供了一种计算机可读存储介质。所述计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述第一方面中任一项实施例中的方法的步骤。In a fourth aspect, the present application also provides a computer-readable storage medium. The computer-readable storage medium has a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method in any one embodiment of the above-mentioned first aspect are implemented.

第五方面,本申请还提供了一种计算机程序产品。所述计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述第一方面中任一项实施例中的方法的步骤。In a fifth aspect, the present application also 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 embodiment of the first aspect above are implemented.

上述风扇调速方法、装置、计算机设备、存储介质和计算机程序产品,获取服务器内发热部件的温度信息;根据发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略;第一预设风扇调速策略为根据发热部件的温度信息对服务器内风扇的转速进行控制的调速策略,第二预设风扇调速策略为根据发热部件的温度信息、发热部件的功耗对服务器内风扇的转速进行控制的调速策略;根据目标风扇调速策略,对服务器内风扇的转速进行控制。本申请能够根据获取的服务器内发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定出目标风扇调速策略。因此,根据确定出的目标风扇调速策略,能够只根据发热部件的温度信息对服务器内风扇的转速进行控制,或者根据发热部件的温度信息以及发热部件的功耗对服务器内风扇的转速进行控制,从而能够采用多种预设风扇调速策略、有选择地对服务器内风扇的转速进行控制。进而,避免了只根据发热部件的温度信息对服务器内风扇的转速进行控制,在发热部件的温度信息存在异常时,造成服务器整体功耗及噪音较大的问题。从而,就能够在对服务器进行散热的过程中减小服务器的整体功耗及噪音。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 in the speed strategy; the first preset fan speed regulation strategy is to control the 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 to The temperature information and the power consumption of the heat-generating components are used to control the speed of the fan in the server; according to the target fan speed regulation strategy, the speed of the fan in the server is controlled. 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 acquired temperature information of the heat-generating components in the server. Therefore, according to the determined target fan speed regulation strategy, the speed of the fan in the server can be controlled only according to the temperature information of the heat-generating component, or the speed of the fan in the server can be controlled according to the temperature information of the heat-generating component and the power consumption of the heat-generating component , so that multiple preset fan speed regulation strategies can be used to selectively control the speed of the fan in the server. Furthermore, the speed of the fan in the server is controlled only based on the temperature information of the heat-generating component, and when the temperature information of the heat-generating component is abnormal, the problem of high overall power consumption and noise of the server is avoided. Therefore, the overall power consumption and noise of the server can be reduced during the process of cooling the server.

附图说明Description of drawings

图1为一个实施例中风扇调速方法的应用环境图;Fig. 1 is the application environment diagram of fan speed regulation method in an embodiment;

图2为一个实施例中风扇调速方法的流程示意图;Fig. 2 is a schematic flow chart of a fan speed regulation method in an embodiment;

图3为一个实施例中温度信息获取步骤的流程示意图;Fig. 3 is a schematic flow chart of the temperature information acquisition step in an embodiment;

图4为一个实施例中温度传感器的结构示意图;Fig. 4 is the structural representation of temperature sensor in an embodiment;

图5为一个实施例中第一控制步骤的流程示意图;Fig. 5 is a schematic flow chart of the first control step in one embodiment;

图6为一个实施例中第二控制步骤的流程示意图;Fig. 6 is a schematic flow chart of the second control step in one embodiment;

图7为一个实施例中第三控制步骤的流程示意图;Fig. 7 is a schematic flow chart of the third control step in one embodiment;

图8为一个实施例中目标转速控制步骤的流程示意图;Fig. 8 is a schematic flow chart of the target rotational speed control step in one embodiment;

图9为一个可选的实施例中风扇调速方法的流程示意图;Fig. 9 is a schematic flowchart of a fan speed regulation method in an optional embodiment;

图10为一个实施例中风扇调速装置的结构框图;Fig. 10 is a structural block diagram of a fan speed regulating device in an embodiment;

图11为一个实施例中基板管理控制器的结构框图;Fig. 11 is a structural block diagram of a baseboard management controller in an embodiment;

图12为一个实施例中计算机设备的内部结构图。Figure 12 is a diagram of the internal structure of a computer device in one embodiment.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

随着服务器功耗的不断增加,服务器的散热就显得愈加重要。在对服务器进行散热的过程中,主要是通过设置在服务器内部的风扇来实现散热。一般情况下,在通过风扇对服务器进行散热时,服务器主要通过其内部的温度传感器来检测实时温度,然后,基于实时温度来控制风扇的转速。With the continuous increase of server power consumption, the heat dissipation of the server becomes more and more important. In the process of dissipating heat from the server, the heat dissipation is mainly realized by a fan arranged inside the server. Generally, when the server is cooled by a fan, the server mainly detects the real-time temperature through its internal temperature sensor, and then controls the speed of the fan based on the real-time temperature.

然而,传统的风扇调速方法在服务器内的某个温度传感器出现读温异常时,通常直接将风扇转速调整至最大以保证服务器不超过安全温度,但此时风扇会产生很大的功耗和噪音。因此,传统方法在基于服务器内的实时温度来控制风扇转速的过程中,存在服务器整体功耗及噪音较大的问题。However, the traditional fan speed adjustment method usually directly adjusts the fan speed to the maximum to ensure that the server does not exceed the safe temperature when a certain temperature sensor in the server has an abnormal temperature reading, but at this time the fan will generate a lot of power consumption and noise. Therefore, in the process of controlling the rotation speed of the fan based on the real-time temperature in the server in the traditional method, there are problems of high overall power consumption and noise of the server.

本申请实施例提供的风扇调速方法,可以应用于如图1所示的应用环境中,包括服务器120,服务器120内包括发热部件122及与发热部件对应的风扇124。服务器120获取服务器内发热部件122的温度信息;服务器120根据发热部件122的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略;第一预设风扇调速策略为根据发热部件122的温度信息对服务器120内风扇124的转速进行控制的调速策略,第二预设风扇调速策略为根据发热部件122的温度信息、发热部件122的功耗对服务器120内风扇124的转速进行控制的调速策略;服务器120根据目标风扇调速策略,对服务器120内风扇124的转速进行控制。服务器120可以用独立的服务器或者是多个服务器组成的服务器集群来实现。The fan speed regulation method provided in the embodiment of the present application can be applied to the application environment shown in FIG. 1 , including a server 120, which includes a heat generating component 122 and a fan 124 corresponding to the heat generating component. The server 120 obtains the temperature information of the heat generating component 122 in the server; the server 120 determines 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 122; the first The preset fan speed regulation strategy is a speed regulation strategy for controlling the speed of the fan 124 in the server 120 according to the temperature information of the heating component 122, and the second preset fan speed regulation strategy is based on the temperature information of the heating component 122 and the The power consumption controls the speed regulation strategy of the fan 124 in the server 120; the server 120 controls the speed of the fan 124 in 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.

在一个实施例中,如图2所示,提供了一种风扇调速方法,以该方法应用于图1中的服务器120为例进行说明,包括以下步骤:In one embodiment, as shown in FIG. 2 , a fan speed regulation method is provided, and the method is applied to the server 120 in FIG. 1 as an example for illustration, including the following steps:

步骤220,获取服务器内发热部件的温度信息。Step 220, acquiring temperature information of heating components in the server.

可选地,由于服务器内的各发热部件上安装有温度传感器,且温度传感器用于测量服务器内各发热部件的温度信息。因此,温度传感器测量出的温度信息可以直接存储在服务器120中,从而服务器120可以通过各发热部件上安装的温度传感器获取服务器120内各发热部件的温度信息。其中,本申请实施例中的温度传感器包括多个设置在各发热部件不同位置的温度传感器。本申请实施例中的温度传感器包括但不局限于德克罗蒙温度传感器(Sensor)。Optionally, since each heat generating component in the server is installed with a temperature sensor, and the temperature sensor is used to measure temperature information of each heat generating component in the server. Therefore, the temperature information measured by the temperature sensor can be directly stored in the server 120, so that the server 120 can obtain the temperature information of each heat-generating component in the server 120 through the temperature sensor installed on each heat-generating component. Wherein, the temperature sensor in the embodiment of the present application includes a plurality of temperature sensors arranged at different positions of each heat generating component. The temperature sensor in the embodiment of the present application includes but is not limited to a Decromont temperature sensor (Sensor).

步骤240,根据发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略;第一预设风扇调速策略为根据发热部件的温度信息对服务器内风扇的转速进行控制的调速策略,第二预设风扇调速策略为根据发热部件的温度信息、发热部件的功耗对服务器内风扇的转速进行控制的调速策略。Step 240: 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 based on the temperature of the heat-generating component The second preset fan speed regulation strategy is a speed regulation strategy for controlling the speed of the fan in the server according to the temperature information of the heating component and the power consumption of the heating component.

可选地,第一预设风扇调速策略为只根据发热部件的温度信息对服务器内风扇的转速进行控制的调速策略,第二预设风扇调速策略为根据发热部件的温度信息、以及发热部件的功耗对服务器内风扇的转速进行控制的调速策略。当然,本申请实施例中包括但不局限于两种预设风扇调速策略。本申请实施例也可以设置第三预设风扇调速策略为只根据发热部件的功耗对服务器内风扇的转速进行控制的调速策略。在设置好多种预设风扇调速策略之后,服务器120可以根据服务器120内发热部件的温度信息,从多种预设风扇调速策略中确定目标风扇调速策略。示例性的,当服务器120内发热部件的温度信息不存在异常时,服务器120可以确定第一预设风扇调速策略为目标风扇调速策略;当服务器120内发热部件的温度信息存在异常时,服务器120可以确定第二预设风扇调速策略为目标风扇调速策略。Optionally, the first preset fan speed regulation strategy is a speed regulation strategy that only controls the speed of the fan in the server based on the temperature information of the heat-generating component, and the second preset fan speed regulation strategy is based on the temperature information of the heat-generating component, and A speed regulation strategy that controls the speed of the fan in the server by the power consumption of the heat-generating components. Of course, the embodiment of the present application includes but is not limited to two preset fan speed regulation strategies. In the embodiment of the present application, the third preset fan speed regulation strategy may also be set as a speed regulation strategy that controls the speed of the fan in the server only according to the power consumption of the heat-generating components. After setting various preset fan speed regulation strategies, the server 120 can determine a target fan speed regulation strategy from the various preset fan speed regulation strategies according to the temperature information of the heat-generating components in the server 120 . Exemplarily, when there is no abnormality in the temperature information of the heat-generating components in the server 120, the server 120 may determine that the first preset fan speed regulation strategy is the target fan speed regulation strategy; The server 120 may determine the second preset fan speed regulation strategy as the target fan speed regulation strategy.

步骤260,根据目标风扇调速策略,对服务器内风扇的转速进行控制。Step 260: Control the speed of the fan in the server according to the target fan speed regulation strategy.

可选地,服务器120可以根据确定出的目标风扇调速策略,控制服务器120内的风扇以目标风扇调速策略对应的转速运行。其中,风扇调速策略是指根据服务器内发热部件的温度信息或者根据服务器内发热部件的功耗去计算转速的具体方法,风扇调速策略中包括各风扇所占的权重、温度与转速之间的对应关系等。当确定出第一预设风扇调速策略为目标风扇调速策略时,服务器120可以只根据发热部件的温度信息对服务器120内风扇的转速进行控制;当确定出第二预设风扇调速策略为目标风扇调速策略时,服务器120可以根据发热部件的温度信息以及发热部件的功耗对服务器120内风扇的转速进行控制。Optionally, the server 120 may control the fans in the server 120 to run at the 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 a specific method for calculating the speed based on the temperature information of the heat-generating components in the server or the power consumption of the heat-generating components in the server. The fan speed regulation strategy includes the weight of each fan, the relationship between the temperature and the speed corresponding relationship, etc. When it is determined that the first preset fan speed regulation strategy is the target fan speed regulation strategy, the server 120 can only control the speed of the fan in the server 120 according to the temperature information of the heat-generating components; when the second preset fan speed regulation strategy is determined When the target fan speed adjustment strategy is used, the server 120 may control the speed of the fan in the server 120 according to the temperature information of the heat-generating component and the power consumption of the heat-generating component.

上述风扇调速方法中,获取服务器内发热部件的温度信息;根据发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略;第一预设风扇调速策略为根据发热部件的温度信息对服务器内风扇的转速进行控制的调速策略,第二预设风扇调速策略为根据发热部件的温度信息、发热部件的功耗对服务器内风扇的转速进行控制的调速策略;根据目标风扇调速策略,对服务器内风扇的转速进行控制。本申请实施例能够根据获取的服务器内发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定出目标风扇调速策略。因此,根据确定出的目标风扇调速策略,能够只根据发热部件的温度信息对服务器内风扇的转速进行控制,或者根据发热部件的温度信息以及发热部件的功耗对服务器内风扇的转速进行控制,从而能够采用多种预设风扇调速策略、有选择地对服务器内风扇的转速进行控制。进而,避免了只根据发热部件的温度信息对服务器内风扇的转速进行控制,在发热部件的温度信息存在异常时,造成服务器整体功耗及噪音较大的问题。从而,就能够在对服务器进行散热的过程中减小服务器的整体功耗及噪音。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, the target fan speed regulation strategy is determined from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy; the second The first preset fan speed regulation strategy is to control the speed of the fan in the server according to the temperature information of the heating component. The second preset fan speed regulation strategy is to control the speed of the server according to the temperature information of the heating component and the power consumption of the heating component. The speed regulation strategy for controlling the speed of the internal fan; according to the target fan speed regulation strategy, the speed of the fan in the server is controlled. The embodiment of 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 acquired temperature information of the heat-generating components in the server. Therefore, according to the determined target fan speed regulation strategy, the speed of the fan in the server can be controlled only according to the temperature information of the heat-generating component, or the speed of the fan in the server can be controlled according to the temperature information of the heat-generating component and the power consumption of the heat-generating component , so that multiple preset fan speed regulation strategies can be used to selectively control the speed of the fan in the server. Furthermore, the speed of the fan in the server is controlled only based on the temperature information of the heat-generating component, and when the temperature information of the heat-generating component is abnormal, the problem of high overall power consumption and noise of the server is avoided. Therefore, the overall power consumption and noise of the server can be reduced during the process of cooling the server.

在一个实施例中,如图3所示,获取服务器内发热部件的温度信息,包括:In one embodiment, as shown in Figure 3, obtaining the temperature information of the heat-generating components in the server includes:

步骤320,通过一级传感器获取服务器内发热部件的一级温度信息;一级传感器为设置于发热部件内部的传感器。Step 320, acquire primary temperature information of the heat-generating component in the server through the primary sensor; the primary sensor is a sensor arranged inside the heat-generating component.

可选地,如图4所示,图4为一个实施例中温度传感器的结构示意图。其中,服务器内的各发热部件上安装有温度传感器,且温度传感器用于测量服务器内各发热部件的温度信息。本申请实施例中的温度传感器包括多个设置在各发热部件不同位置的温度传感器。其中,温度传感器包括一级传感器,一级传感器为设置于发热部件内部的传感器。本申请实施例中的温度传感器包括但不局限于德克罗蒙温度传感器(Sensor)。服务器120可以通过各发热部件上安装的一级传感器获取服务器内各发热部件内部的一级温度信息。Optionally, as shown in FIG. 4, FIG. 4 is a schematic structural diagram of a temperature sensor in an embodiment. Wherein, each heat generating component in the server is installed with a temperature sensor, and the temperature sensor is used to measure temperature information of each heat generating component in the server. The temperature sensor in the embodiment of the present application includes a plurality of temperature sensors arranged at different positions of each heat generating component. Wherein, the temperature sensor includes a primary sensor, and the primary sensor is a sensor arranged inside the heating component. The temperature sensor in the embodiment of the present application includes but is not limited to a Decromont temperature sensor (Sensor). The server 120 may acquire primary temperature information inside each heat generating component in the server through a primary sensor installed on each heat generating component.

步骤340,若一级温度信息不存在异常,则将一级温度信息作为发热部件的温度信息。Step 340, if there is no abnormality in the primary temperature information, use the primary temperature information as the temperature information of the heat-generating component.

可选地,服务器120可以判断一级温度信息是否存在异常。若服务器120判断出一级温度信息不存在异常,则服务器120可以将一级温度信息作为发热部件的温度信息。其中,一级温度信息不存在异常表示发热部件在位、且一级传感器可以获取一级温度信息。Optionally, the server 120 may determine whether the primary temperature information is abnormal. If the server 120 determines that there is no abnormality in the primary temperature information, the server 120 may use the primary temperature information as the temperature information of the heat-generating component. Wherein, if there is no abnormality in the primary temperature information, it means that the heating component is in place, and the primary sensor can obtain the primary temperature information.

步骤360,若一级温度信息存在异常,则通过二级传感器获取服务器内发热部件的二级温度信息,将二级温度信息作为发热部件的温度信息;二级传感器为设置于发热部件周围预设范围内的传感器。Step 360, if the primary temperature information is abnormal, 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 preset around the heating component sensors in range.

可选地,结合图4所示,温度传感器还包括二级传感器,二级传感器为设置于发热部件周围预设范围内的传感器。一级传感器和二级传感器之间可以是一对一的关系或者多对一的关系。示例性的,二级传感器可以设置在发热部件周围的板载上。本申请实施例中的温度传感器包括但不局限于德克罗蒙温度传感器(Sensor)。由于服务器120可以判断一级温度信息是否存在异常,因此,若服务器120判断出一级温度信息存在异常,则服务器120可以通过各发热部件上安装的二级传感器获取服务器内发热部件的二级温度信息。且服务器120可以判断二级温度信息是否存在异常,若二级温度信息不存在异常,则将二级温度信息作为发热部件的温度信息。其中,一级温度信息存在异常表示发热部件在位、但一级传感器连续预设次数无法读取一级温度信息,当然,预设次数可以根据实际情况进行设置,本申请实施例对预设次数不做限定。二级温度信息不存在异常表示表示发热部件在位、且二级传感器可以获取二级温度信息。Optionally, as shown in FIG. 4 , the temperature sensor further includes a secondary sensor, and the secondary sensor is a sensor disposed within a preset range around the heat generating component. There may be a one-to-one relationship or a many-to-one relationship between the primary sensor and the secondary sensor. Exemplarily, the secondary sensor can be arranged on the board around the heat generating component. The temperature sensor in the embodiment of the present application includes but is not limited to a Decromont temperature sensor (Sensor). Since the server 120 can determine whether the primary temperature information is abnormal, if the server 120 determines that the primary temperature information is abnormal, the server 120 can obtain the secondary temperature of the heat-generating components in the server through the secondary sensors installed on each heat-generating component. information. And the server 120 can determine whether there is abnormality in the secondary temperature information, and if there is no abnormality in the secondary temperature information, use the secondary temperature information as the temperature information of the heat-generating component. Among them, the presence of abnormality in the primary temperature information indicates that the heating component is in place, but the primary sensor cannot read the primary temperature information for a predetermined number of consecutive times. Of course, the preset number of times can be set according to the actual situation. No limit. If there is no abnormality in the secondary temperature information, it means that the heating component is in place, and the secondary sensor can obtain the secondary temperature information.

本实施例中,通过一级传感器获取服务器内发热部件的一级温度信息;若一级温度信息不存在异常,则将一级温度信息作为发热部件的温度信息;若一级温度信息存在异常,则通过二级传感器获取服务器内发热部件的二级温度信息,将二级温度信息作为发热部件的温度信息。本实施例采用了多级传感器,当一级传感器存在异常时,能够采用二级传感器确定发热部件的温度信息,从而能够不间断地获取发热部件的温度信息,保证了服务器内发热部件的温度处于安全范围。In this embodiment, the first-level temperature information of the heat-generating components in the server is acquired through a first-level sensor; if there is no abnormality in the first-level temperature information, the first-level temperature information is used as the temperature information of the heat-generating component; if there is an abnormality in the first-level temperature information, Then, the secondary temperature information of the heating component in the server is acquired through the secondary sensor, and the secondary temperature information is used as the temperature information of the heating component. This embodiment uses multi-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 obtained continuously, ensuring that the temperature of the heat-generating component in the server is at safe range.

在一个实施例中,如图5所示,第一预设风扇调速策略包括一级风扇调速策略,一级风扇调速策略为根据一级温度信息对服务器内风扇的转速进行控制的调速策略;若一级温度信息不存在异常,则根据发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略,包括:In one embodiment, as shown in FIG. 5 , the first preset fan speed regulation strategy includes a first-level fan speed regulation strategy, and the first-level fan speed regulation strategy is to control the speed of the fan in the server according to the primary temperature information. speed strategy; if there is no abnormality in the first-level temperature information, 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:

步骤520,根据一级温度信息,将一级风扇调速策略作为目标风扇调速策略。Step 520, according to the primary temperature information, set the primary fan speed regulation strategy as the target fan speed regulation strategy.

可选地,若服务器120判断出一级温度信息不存在异常,则服务器120可以根据一级温度信息对应的发热部件的温度信息,将一级风扇调速策略作为目标风扇调速策略。其中,第一预设风扇调速策略包括一级风扇调速策略,一级风扇调速策略为只根据发热部件的一级温度信息对服务器内风扇的转速进行控制的调速策略。Optionally, if the server 120 determines that there is no abnormality in the primary temperature information, the server 120 may use the primary fan speed regulation strategy as the target fan speed regulation strategy according to the temperature information of the heat generating component corresponding to the primary temperature information. Wherein, the first preset fan speed regulation strategy includes a first-level fan speed regulation strategy, and the first-level fan speed regulation strategy is a speed regulation strategy that only controls the speed of the fan in the server according to the primary temperature information of the heat-generating component.

根据目标风扇调速策略,对服务器内风扇的转速进行控制,包括:According to the target fan speed regulation strategy, the speed of the fan in the server is controlled, including:

步骤540,根据一级风扇调速策略,对服务器内风扇的转速进行控制。Step 540: Control the speed of the fan in the server according to the first-level fan speed regulation strategy.

可选地,当确定出一级风扇调速策略为目标风扇调速策略时,服务器120可以根据一级风扇调速策略获取发热部件的一级温度信息与服务器内风扇的转速之间的对应关系。之后,服务器120可以根据发热部件的一级温度信息、以及发热部件的一级温度信息与服务器内风扇的转速之间的对应关系,确定出服务器内风扇的第一目标转速,并控制服务器内的风扇以第一目标转速运行,从而只根据发热部件的一级温度信息对服务器内风扇的转速进行控制。Optionally, when the primary fan speed regulation strategy is determined to be the target fan speed regulation strategy, the server 120 may obtain the correspondence between the primary temperature information of the heat-generating components and the rotational speed of the fan in the server according to the primary fan speed regulation strategy . Afterwards, the server 120 can determine the first target speed of the fan in the server according to the primary temperature information of the heat-generating component and the correspondence between the primary temperature information of the heat-generating component and the speed of the fan in the server, and control the temperature of the fan in the server. The fan runs at the first target speed, so that the speed of the fan in the server is controlled only according to the primary temperature information of the heat generating component.

本实施例中,根据一级温度信息,将一级风扇调速策略作为目标风扇调速策略;根据一级风扇调速策略,对服务器内风扇的转速进行控制。若一级温度信息不存在异常,则能够根据一级风扇调速策略控制服务器内风扇的转速,即只根据发热部件的一级温度信息,就能够对服务器内风扇的转速进行控制。In this embodiment, according to the first-level temperature information, the first-level fan speed regulation strategy is used as the target fan speed regulation strategy; according to the first-level fan speed regulation strategy, the speed of the fan in the server is controlled. If there is no abnormality in the first-level temperature information, the speed of the fan in the server can be controlled according to the first-level fan speed regulation strategy, that is, the speed of the fan in the server can be controlled only according to the first-level temperature information of the heat-generating component.

在一个实施例中,如图6所示,第一预设风扇调速策略包括二级风扇调速策略,二级风扇调速策略为根据二级温度信息对服务器内风扇的转速进行控制的调速策略;若一级温度信息存在异常,且二级温度信息不存在异常,则根据发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略,包括:In one embodiment, as shown in FIG. 6, the first preset fan speed regulation strategy includes a secondary fan speed regulation strategy, and the secondary fan speed regulation strategy is to control the speed of the fan in the server according to the secondary temperature information. speed strategy; if there is an abnormality in the primary temperature information, and there is no abnormality in the secondary temperature information, the target fan is determined 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 Speed regulation strategies, including:

步骤620,根据二级温度信息,将二级风扇调速策略作为目标风扇调速策略。Step 620, according to the secondary temperature information, use the secondary fan speed regulation strategy as the target fan speed regulation strategy.

可选地,若服务器120判断出一级温度信息存在异常,且二级温度信息不存在异常,则服务器120可以根据二级温度信息对应的发热部件的温度信息,将二级风扇调速策略作为目标风扇调速策略。其中,第一预设风扇调速策略包括二级风扇调速策略,二级风扇调速策略为只根据发热部件的二级温度信息对服务器内风扇的转速进行控制的调速策略。Optionally, if the server 120 determines that there is an abnormality in the primary temperature information, and there is no abnormality in the secondary temperature information, the server 120 may use the secondary fan speed regulation strategy as Target fan speed regulation policy. Wherein, 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 that only controls the speed of the fan in the server according to the secondary temperature information of the heat-generating component.

根据目标风扇调速策略,对服务器内风扇的转速进行控制,包括:According to the target fan speed regulation strategy, the speed of the fan in the server is controlled, including:

步骤640,根据二级风扇调速策略,对服务器内风扇的转速进行控制。Step 640: Control the speed of the fan in the server according to the secondary fan speed regulation strategy.

可选地,当确定出二级风扇调速策略为目标风扇调速策略时,服务器120可以根据二级风扇调速策略获取发热部件的二级温度信息与服务器内风扇的转速之间的对应关系。之后,服务器120可以根据发热部件的二级温度信息、以及发热部件的二级温度信息与服务器内风扇的转速之间的对应关系,确定出服务器内风扇的第二目标转速,并控制服务器内的风扇以第二目标转速运行,从而只根据发热部件的二级温度信息对服务器内风扇的转速进行控制。Optionally, when it is determined that the secondary fan speed regulation strategy is the target fan speed regulation strategy, the server 120 may obtain the correspondence between the secondary temperature information of the heat-generating components and the rotational speed of the fan in the server according to the secondary fan speed regulation strategy . Afterwards, the server 120 can determine the second target rotational speed of the fan in the server according to the secondary temperature information of the heat-generating component and the corresponding relationship between the secondary temperature information of the heat-generating component and the rotational speed of the fan in the server, and control the second target rotational speed of the fan in the server. The fan runs at the second target speed, so that the speed of the fan in the server is controlled only according to the secondary temperature information of the heat-generating component.

本实施例中,根据二级温度信息,将二级风扇调速策略作为目标风扇调速策略;根据二级风扇调速策略,对服务器内风扇的转速进行控制。若一级温度信息存在异常,且二级温度信息不存在异常,则能够根据二级风扇调速策略控制服务器内风扇的转速,即只根据发热部件的二级温度信息,就能够对服务器内风扇的转速进行控制。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 speed of the fan in the server is controlled. If there is an abnormality in the primary temperature information and there is no abnormality in the secondary temperature information, the speed of the fan in the server can be controlled according to the secondary fan speed regulation strategy. speed control.

在一个实施例中,如图7所示,若二级温度信息存在异常,则根据发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略,包括:In one embodiment, as shown in FIG. 7, if the secondary temperature information is abnormal, the target fan is determined 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. Speed regulation strategies, including:

步骤720,根据二级温度信息,将第二预设风扇调速策略作为目标风扇调速策略。Step 720, according to the secondary temperature information, use the second preset fan speed regulation strategy as the target fan speed regulation strategy.

可选地,若服务器120判断出一级温度信息存在异常,且二级温度信息存在异常,则服务器120可以根据存在异常的二级温度信息,将第二预设风扇调速策略作为目标风扇调速策略。其中,第二预设风扇调速策略为根据发热部件的温度信息、以及发热部件的功耗对服务器内风扇的转速进行控制的调速策略。其中,二级温度信息存在异常表示发热部件在位、但二级传感器连续预设次数无法读取二级温度信息,当然,预设次数可以根据实际情况进行设置,本申请实施例对预设次数不做限定。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 according to the abnormal secondary temperature information. fast strategy. Wherein, the second preset fan speed regulation strategy is a speed regulation strategy for controlling the speed of the fan in the server according to the temperature information of the heat-generating component and the power consumption of the heat-generating component. Among them, the presence of abnormality in the secondary temperature information indicates that the heating component is in place, but the secondary sensor cannot read the secondary temperature information for a predetermined number of consecutive times. Of course, the preset number of times can be set according to the actual situation. No limit.

根据目标风扇调速策略,对服务器内风扇的转速进行控制,包括:According to the target fan speed regulation strategy, the speed of the fan in the server is controlled, including:

步骤740,根据第二预设风扇调速策略,对服务器内风扇的转速进行控制。Step 740: Control the speed of the fan in the server according to the second preset fan speed regulation strategy.

可选地,当确定出第二预设风扇调速策略为目标风扇调速策略时,服务器120可以根据第二预设风扇调速策略获取发热部件的实时功耗。之后,服务器120可以根据发热部件的实时功耗,确定出服务器内风扇的第三目标转速,并控制服务器内的风扇以第三目标转速运行,从而根据发热部件的温度信息、以及发热部件的功耗对服务器内风扇的转速进行控制。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. Afterwards, the server 120 can determine the third target speed of the fan in the server according to the real-time power consumption of the heat-generating component, and control the fan in the server to run at the third target speed, so that according to the temperature information of the heat-generating component and the function of the heat-generating component The power consumption controls the speed of the fans in the server.

本实施例中,根据二级温度信息,将第二预设风扇调速策略作为目标风扇调速策略;根据第二预设风扇调速策略,对服务器内风扇的转速进行控制。若二级温度信息存在异常,则能够根据第二预设风扇调速策略控制服务器内风扇的转速,即根据发热部件的温度信息、以及发热部件的功耗,就能够对服务器内风扇的转速进行控制。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 speed of the fan in the server is controlled. If there is an abnormality in the secondary temperature information, the speed of the fan in the server can be controlled according to the second preset fan speed regulation strategy, that is, the speed of the fan in the server can be adjusted according to the temperature information of the heat-generating component and the power consumption of the heat-generating component. control.

在一个实施例中,如图8所示,根据第二预设风扇调速策略,对服务器内风扇的转速进行控制,包括:In one embodiment, as shown in FIG. 8, the speed of the fan in the server is controlled according to the second preset fan speed regulation strategy, including:

步骤820,获取发热部件的功耗及发热部件在当前环境温度下的功耗转速对应关系。Step 820, obtaining the corresponding relationship between the power consumption of the heating component and the power consumption speed of the heating component at the current ambient temperature.

可选地,当确定出第二预设风扇调速策略为目标风扇调速策略时,服务器120可以根据第二预设风扇调速策略获取发热部件的实时功耗,服务器120还可以获取在当前环境温度下的发热部件的功耗与服务器内风扇的转速之间的对应关系。其中,不同的环境温度下对应的发热部件的功耗与服务器内风扇的转速之间的对应关系是不同的。可选地,环境温度的范围为-10℃-50℃。在本实施例中,选取35℃环境温度下的发热部件的功耗与服务器内风扇的转速之间的对应关系。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, and the server 120 may also obtain the current Correspondence between the power consumption of heat-generating components at the ambient temperature and the rotation speed of the fan in the server. Wherein, the corresponding relationship between the power consumption of the heat-generating component and the rotational speed of the fan in the server is different under different ambient temperatures. Optionally, the ambient temperature ranges from -10°C to 50°C. In this embodiment, the corresponding relationship between the power consumption of the heat-generating component and the rotational speed of the fan in the server at an ambient temperature of 35° C. is selected.

步骤840,根据发热部件的功耗及功耗转速对应关系,确定与发热部件的功耗对应的目标转速。Step 840: Determine a target rotational speed corresponding to the power consumption of the heat-generating component according to the corresponding relationship between the power consumption of the heat-generating component and the power consumption speed.

可选地,服务器120可以根据发热部件的实时功耗、以及在当前环境温度下的发热部件的功耗与服务器内风扇的转速之间的对应关系,确定出在当前环境温度下,与服务器内发热部件的功耗对应的目标转速,该目标转速即为二级温度信息存在异常时风扇的第三目标转速。Optionally, the server 120 may determine, according to the real-time power consumption of the heat-generating component and the corresponding relationship between the power consumption of the heat-generating component and the rotational speed of the fan in the server at the current ambient temperature, the The target speed corresponding to the power consumption of the heat-generating component is the third target speed of the fan when the secondary temperature information is abnormal.

步骤860,根据目标转速对服务器内风扇的转速进行控制。Step 860, controlling the rotation speed of the fan in the server according to the target rotation speed.

可选地,服务器120可以将风扇的转速调整为目标转速,即服务器120可以控制服务器内的风扇以与服务器内发热部件的功耗对应的目标转速运行,从而可以在二级温度信息存在异常时,根据发热部件的温度信息、以及发热部件的功耗对服务器内风扇的转速进行控制。Optionally, the server 120 can adjust the speed of the fan to the target speed, that is, the server 120 can control the fan in the server to run at the target speed corresponding to the power consumption of the heat-generating components in the server, so that when the secondary temperature information is abnormal , according to the temperature information of the heat-generating component and the power consumption of the heat-generating component, the speed of the fan in the server is controlled.

本实施例中,获取发热部件的功耗及发热部件在当前环境温度下的功耗转速对应关系;根据发热部件的功耗及功耗转速对应关系,确定与发热部件的功耗对应的目标转速;根据目标转速对服务器内风扇的转速进行控制。在二级温度信息存在异常的情况下,能够根据发热部件的功耗及发热部件在当前环境温度下的功耗转速对应关系确定出目标转速,从而能够根据目标转速对服务器内风扇的转速进行控制。In this embodiment, the corresponding relationship between the power consumption of the heating component and the power consumption speed of the heating component at the current ambient temperature is obtained; according to the corresponding relationship between the power consumption of the heating component and the power consumption speed of the heating component, the target speed corresponding to the power consumption of the heating component is determined ; Control the speed of the fan in the server according to the target speed. In the case of abnormality in the secondary temperature information, the target speed can be determined according to the power consumption of the heat-generating component and the corresponding relationship between the power consumption and speed of the heat-generating component at the current ambient temperature, so that the speed of the fan in the server can be controlled according to the target speed .

在一个可选地实施例中,如图9所示,提供了一种风扇调速方法,应用于服务器120,包括:In an optional embodiment, as shown in FIG. 9, a fan speed regulation method is provided, which is applied to the server 120, including:

步骤902,通过一级传感器获取服务器内发热部件的一级温度信息;一级传感器为设置于发热部件内部的传感器;Step 902, obtain the primary temperature information of the heat-generating component in the server through the primary sensor; the primary sensor is a sensor arranged inside the heat-generating component;

步骤904,若一级温度信息不存在异常,则将一级温度信息作为发热部件的温度信息;Step 904, if there is no abnormality in the primary temperature information, use the primary temperature information as the temperature information of the heat-generating component;

步骤906,根据一级温度信息,将一级风扇调速策略作为目标风扇调速策略;一级风扇调速策略为根据一级温度信息对服务器内风扇的转速进行控制的调速策略;Step 906, according to the first-level temperature information, use the first-level fan speed regulation strategy as the target fan speed regulation strategy; the first-level fan speed regulation strategy is a speed regulation strategy for controlling the speed of the fan in the server according to the first-level temperature information;

步骤908,根据一级风扇调速策略,对服务器内风扇的转速进行控制;Step 908: Control the speed of the fan in the server according to the first-level fan speed regulation strategy;

步骤910,若一级温度信息存在异常,则通过二级传感器获取服务器内发热部件的二级温度信息,将二级温度信息作为发热部件的温度信息;二级传感器为设置于发热部件周围预设范围内的传感器;Step 910, 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 preset around the heating component sensors in range;

步骤912,若二级温度信息不存在异常,则根据二级温度信息,将二级风扇调速策略作为目标风扇调速策略;二级风扇调速策略为根据二级温度信息对服务器内风扇的转速进行控制的调速策略;Step 912, if there is no abnormality in the secondary temperature information, then according to the secondary temperature information, the secondary fan speed regulation strategy is used as the target fan speed regulation strategy; the secondary fan speed regulation strategy is based on the secondary temperature information. Speed regulation strategy for speed control;

步骤914,根据二级风扇调速策略,对服务器内风扇的转速进行控制;Step 914: Control the speed of the fan in the server according to the secondary fan speed regulation strategy;

步骤916,若二级温度信息存在异常,则根据二级温度信息,将第二预设风扇调速策略作为目标风扇调速策略;第二预设风扇调速策略为根据发热部件的温度信息、发热部件的功耗对服务器内风扇的转速进行控制的调速策略;Step 916, if the secondary temperature information is abnormal, then 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 based on the temperature information of the heat-generating components, The speed regulation strategy that controls the speed of the fan in the server by the power consumption of the heat-generating components;

步骤918,获取发热部件的功耗及发热部件在当前环境温度下的功耗转速对应关系;Step 918, obtaining the power consumption of the heating component and the corresponding relationship between the power consumption and speed of the heating component at the current ambient temperature;

步骤920,根据发热部件的功耗及功耗转速对应关系,确定与发热部件的功耗对应的目标转速;Step 920, according to the corresponding relationship between the power consumption of the heating component and the power consumption speed, determine the target speed corresponding to the power consumption of the heating component;

步骤922,根据目标转速对服务器内风扇的转速进行控制。Step 922: Control the rotation speed of the fan in the server according to the target rotation speed.

上述风扇调速方法、装置、计算机设备、存储介质和计算机程序产品,获取服务器内发热部件的温度信息;根据发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略;第一预设风扇调速策略为根据发热部件的温度信息对服务器内风扇的转速进行控制的调速策略,第二预设风扇调速策略为根据发热部件的温度信息、发热部件的功耗对服务器内风扇的转速进行控制的调速策略;根据目标风扇调速策略,对服务器内风扇的转速进行控制。本申请能够根据获取的服务器内发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定出目标风扇调速策略。因此,根据确定出的目标风扇调速策略,能够只根据发热部件的温度信息对服务器内风扇的转速进行控制,或者根据发热部件的温度信息以及发热部件的功耗对服务器内风扇的转速进行控制,从而能够采用多种预设风扇调速策略、有选择地对服务器内风扇的转速进行控制。进而,避免了只根据发热部件的温度信息对服务器内风扇的转速进行控制,在发热部件的温度信息存在异常时,造成服务器整体功耗及噪音较大的问题。从而,就能够在对服务器进行散热的过程中减小服务器的整体功耗及噪音。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 in the speed strategy; the first preset fan speed regulation strategy is to control the 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 to The temperature information and the power consumption of the heat-generating components are used to control the speed of the fan in the server; according to the target fan speed regulation strategy, the speed of the fan in the server is controlled. 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 acquired temperature information of the heat-generating components in the server. Therefore, according to the determined target fan speed regulation strategy, the speed of the fan in the server can be controlled only according to the temperature information of the heat-generating component, or the speed of the fan in the server can be controlled according to the temperature information of the heat-generating component and the power consumption of the heat-generating component , so that multiple preset fan speed regulation strategies can be used to selectively control the speed of the fan in the server. Furthermore, the speed of the fan in the server is controlled only based on the temperature information of the heat-generating component, and when the temperature information of the heat-generating component is abnormal, the problem of high overall power consumption and noise of the server is avoided. Therefore, the overall power consumption and noise of the server can be reduced during the process of cooling the server.

应该理解的是,虽然如上的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flow charts involved in the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in the flow charts involved in the above embodiments may include multiple steps or stages, and these steps or stages are not necessarily executed at the same time, but may be executed at different times, The execution order of these steps or stages is not necessarily performed sequentially, but may be executed in turn or alternately with other steps or at least a part of steps or stages in other steps.

基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的风扇调速方法的风扇调速装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个风扇调速装置实施例中的具体限定可以参见上文中对于风扇调速方法的限定,在此不再赘述。Based on the same inventive concept, an embodiment of the present application further provides a fan speed regulating device for implementing the above-mentioned fan speed regulating method. The solution to the problem provided by the device is similar to the implementation described in the above method, so the specific limitations in one or more embodiments of the fan speed control device provided below can be referred to above for the fan speed control method limited and will not be repeated here.

在一个实施例中,如图10所示,提供了一种风扇调速装置1000,包括:温度信息获取模块1020、目标风扇调速策略确定模块1040和控制模块1060,其中:In one embodiment, as shown in FIG. 10 , a fan speed regulation device 1000 is provided, including: a temperature information acquisition module 1020, a target fan speed regulation strategy determination module 1040, and a control module 1060, wherein:

温度信息获取模块1020,用于获取服务器内发热部件的温度信息。The temperature information obtaining module 1020 is configured to obtain temperature information of heat-generating components in the server.

目标风扇调速策略确定模块1040,用于根据发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略;第一预设风扇调速策略为根据发热部件的温度信息对服务器内风扇的转速进行控制的调速策略,第二预设风扇调速策略为根据发热部件的温度信息、发热部件的功耗对服务器内风扇的转速进行控制的调速策略。The target fan speed regulation strategy determining module 1040 is configured to 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 The speed strategy is a speed regulation strategy that controls the speed of the fan in the server according to the temperature information of the heating component. The second preset fan speed regulation strategy is to control the speed of the fan in the server according to the temperature information of the heating component and the power consumption of the heating component. The speed regulation strategy of the control.

控制模块1060,用于根据目标风扇调速策略,对服务器内风扇的转速进行控制。The control module 1060 is configured to control the speed of the fan in the server according to the target fan speed regulation strategy.

在其中一个实施例中,温度信息获取模块1020包括:In one of the embodiments, the temperature information acquisition module 1020 includes:

一级温度信息获取单元,用于通过一级传感器获取服务器内发热部件的一级温度信息;一级传感器为设置于发热部件内部的传感器;The first-level temperature information acquisition unit is used to obtain the first-level temperature information of the heating component in the server through the first-level sensor; the first-level sensor is a sensor arranged inside the heating component;

一级温度信息确定单元,用于若一级温度信息不存在异常,则将一级温度信息作为发热部件的温度信息;A first-level temperature information determining unit, configured to use the first-level temperature information as the temperature information of the heat-generating component if there is no abnormality in the first-level temperature information;

二级温度信息确定单元,用于若一级温度信息存在异常,则通过二级传感器获取服务器内发热部件的二级温度信息,将二级温度信息作为发热部件的温度信息;二级传感器为设置于发热部件周围预设范围内的传感器。The secondary temperature information determination unit is used to obtain the secondary temperature information of the heating component in the server through the secondary sensor if the primary temperature information is abnormal, and use the secondary temperature information as the temperature information of the heating component; the secondary sensor is set Sensors within a predetermined range around heat-generating components.

在其中一个实施例中,第一预设风扇调速策略包括一级风扇调速策略,一级风扇调速策略为根据一级温度信息对服务器内风扇的转速进行控制的调速策略;若一级温度信息不存在异常,则目标风扇调速策略确定模块1040包括:In one of the embodiments, the first preset fan speed regulation strategy includes a first-level fan speed regulation strategy, and the first-level fan speed regulation strategy is a speed regulation strategy that controls the speed of the fan in the server according to the first-level temperature information; if a If there is no abnormality in the stage temperature information, then the target fan speed regulation strategy determination module 1040 includes:

一级风扇调速策略确定单元,用于根据一级温度信息,将一级风扇调速策略作为目标风扇调速策略;A primary fan speed regulation strategy determining unit, configured to use the primary fan speed regulation strategy as a target fan speed regulation strategy according to the primary temperature information;

控制模块1060包括:Control module 1060 includes:

第一控制单元,用于根据一级风扇调速策略,对服务器内风扇的转速进行控制。The first control unit is configured to control the speed of the fan in the server according to the first-level fan speed regulation strategy.

在其中一个实施例中,第一预设风扇调速策略包括二级风扇调速策略,二级风扇调速策略为根据二级温度信息对服务器内风扇的转速进行控制的调速策略;若一级温度信息存在异常,且二级温度信息不存在异常,则目标风扇调速策略确定模块1040包括:In one of the embodiments, 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 that controls the speed of the fan in the server according to the secondary temperature information; if a If there is an abnormality in the first-level temperature information, and there is no abnormality in the second-level temperature information, then the target fan speed regulation strategy determination module 1040 includes:

二级风扇调速策略确定单元,用于根据二级温度信息,将二级风扇调速策略作为目标风扇调速策略;A secondary fan speed regulation strategy determination unit, configured to use the secondary fan speed regulation strategy as the target fan speed regulation strategy according to the secondary temperature information;

控制模块1060包括:Control module 1060 includes:

第二控制单元,用于根据二级风扇调速策略,对服务器内风扇的转速进行控制。The second control unit is configured to control the speed of the fan in the server according to the secondary fan speed regulation strategy.

在其中一个实施例中,若二级温度信息存在异常,则目标风扇调速策略确定模块1040包括:In one of the embodiments, if the secondary temperature information is abnormal, the target fan speed regulation strategy determination module 1040 includes:

第二预设风扇调速策略确定单元,用于根据二级温度信息,将第二预设风扇调速策略作为目标风扇调速策略;The second preset fan speed regulation strategy determination unit is configured to use the second preset fan speed regulation strategy as the target fan speed regulation strategy according to the secondary temperature information;

控制模块1060包括:Control module 1060 includes:

第三控制单元,用于根据第二预设风扇调速策略,对服务器内风扇的转速进行控制。The third control unit is configured to control the speed of the fan in the server according to the second preset fan speed regulation strategy.

在其中一个实施例中,第三控制单元包括:In one of the embodiments, the third control unit includes:

获取子单元,用于获取发热部件的功耗及发热部件在当前环境温度下的功耗转速对应关系;The obtaining subunit is used to obtain the power consumption of the heating component and the corresponding relationship between the power consumption and speed of the heating component at the current ambient temperature;

目标转速确定子单元,用于根据发热部件的功耗及功耗转速对应关系,确定与发热部件的功耗对应的目标转速;The target speed determination subunit is used to determine the target 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 speed;

控制子单元,用于根据目标转速对服务器内风扇的转速进行控制。The control subunit is configured to control the rotation speed of the fan in the server according to the target rotation speed.

上述风扇调速装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the above-mentioned fan speed regulating device can be fully or partially realized by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of the above modules.

在其中一个实施例中,如图11所示,提供了一种基板管理控制器1100,该基板管理控制器1100包括存储模块1120、接收模块1140以及执行模块1160。In one embodiment, as shown in FIG. 11 , a baseboard management controller 1100 is provided, and the baseboard management controller 1100 includes a storage module 1120 , a receiving module 1140 and an execution module 1160 .

其中,基板管理控制器(Baseboard Management Controller,BMC)是一种控制器,基板管理控制器可以在机器未开机的状态下,对机器进行固件升级以及查看机器对应的设备等操作。由于服务器内的风扇数量较多,因此,通常采用基板管理控制器按照预设风扇调速策略对服务器内的各风扇的转速进行控制。基板管理控制器1100中有关风扇调速功能的模块包括存储模块1120、接收模块1140以及执行模块1160。存储模块1120包括预先存储的第一预设风扇调速策略、第二预设风扇调速策略以及当前环境温度下的功耗转速对应关系。接收模块1140用于通过I2C总线获取服务器内发热部件对应的各温度传感器的在位信息和温度信息、以及发热部件的功耗。其中,温度传感器包括一级传感器以及二级传感器。执行模块1160用于根据发热部件的温度信息和/或发热部件的功耗实时计算服务器内风扇的转速,并对服务器内风扇的转速进行控制。Wherein, the baseboard management controller (Baseboard Management Controller, BMC) is a kind of controller, and the baseboard management controller can upgrade the firmware of the machine and check the equipment corresponding to the machine when the machine is not turned on. Due to the large number of fans in the server, a baseboard management controller is usually used to control the speed of each fan 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 a corresponding relationship between power consumption and rotation speed under the current ambient temperature. The receiving module 1140 is configured to obtain the presence information and temperature information of each temperature sensor corresponding to the heat-generating component in the server, as well as the power consumption of the heat-generating component through the I2C bus. Wherein, the temperature sensor includes a primary sensor and a secondary sensor. The execution module 1160 is configured to calculate the speed of the fan in the server in real time according to the temperature information of the heat-generating component and/or the power consumption of the heat-generating component, and control the speed of the fan in the server.

该基板管理控制器1100主要应用于温度传感器出现异常时的风扇调速方法。本申请实施例设置了针对服务器散热的三级保护机制。当然,服务器散热保护机制的分级数量可以根据实际情况进行增加或减少,本申请对此不做限定。可选的,当发热部件对应的一级传感器获取的一级温度信息存在异常时,基板管理控制器1100可以启用该发热部件对应的二级传感器获取二级温度信息,并根据二级温度信息计算风扇的转速。当该发热部件对应的二级传感器获取的二级温度信息存在异常时,基板管理控制器1100可以控制风扇调速进入保护模式,保护模式为根据发热部件的功耗对服务器内风扇的转速进行控制的模式,保护模式与第二预设风扇调速策略相对应。在保护模式下,基板管理控制器1100可以读取存在异常的二级温度信息对应的发热部件的实时功耗,并根据当前环境温度下的功耗转速对应关系计算出该实时功耗下风扇的目标转速,从而根据目标转速对服务器内风扇的转速进行控制。The baseboard management controller 1100 is mainly applied to a fan speed regulation method when the temperature sensor is abnormal. In this 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 actual conditions, which is not limited in this application. Optionally, when the primary temperature information obtained by the primary sensor corresponding to the heat generating component is abnormal, the baseboard management controller 1100 may enable the secondary sensor corresponding to the heat generating component to obtain secondary temperature information, and calculate The speed of the fan. When the secondary temperature information obtained by the secondary sensor corresponding to the heating component is abnormal, the baseboard management controller 1100 can control the speed of the fan to enter the protection mode. The protection mode is to control the speed of the fan in the server according to the power consumption of the heating component. mode, 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 power consumption of the fan under the real-time power consumption according to the corresponding relationship of power consumption and rotation speed at the current ambient temperature. The target rotational speed, so as to control the rotational speed of the fan in the server according to the target rotational speed.

在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图12所示。该计算机设备包括处理器、存储器、输入/输出接口(Input/Output,简称I/O)和通信接口。其中,处理器、存储器和输入/输出接口通过系统总线连接,通信接口通过输入/输出接口连接到系统总线。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质和内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储风扇调速数据。该计算机设备的输入/输出接口用于处理器与外部设备之间交换信息。该计算机设备的通信接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种风扇调速方法。In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure may be as shown in FIG. 12 . The computer device includes a processor, a memory, an input/output interface (Input/Output, I/O for short), and a communication interface. Wherein, the processor, the memory and the input/output interface are connected through the system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein, the processor of the computer device is used to provide calculation 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, computer programs and databases. The internal memory provides an environment for the operation of the operating system and computer programs 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 for exchanging 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, a fan speed regulation method is realized.

本领域技术人员可以理解,图12中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in Figure 12 is only a block diagram of a part of the structure related to the solution of this application, and does not constitute a limitation to the computer equipment on which the solution of this application is applied. The specific computer equipment can be More or fewer components than shown in the figures may be included, or some components may be combined, or have a different arrangement of components.

在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现以下步骤:In one embodiment, a computer device is provided, including a memory and a processor, a computer program is stored in the memory, and the processor implements the following steps when executing the computer program:

获取服务器内发热部件的温度信息;Obtain temperature information of heating 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 component; the first preset fan speed regulation strategy is based on the temperature information of the heat-generating component. A speed regulation strategy for controlling the speed of the internal fan, the second preset fan speed regulation strategy is a speed regulation strategy for controlling the speed of the server's internal fan according to the temperature information of the heating component and the power consumption of the heating component;

根据目标风扇调速策略,对服务器内风扇的转速进行控制。According to the target fan speed regulation policy, the speed of the fan in the server is controlled.

在一个实施例中,获取服务器内发热部件的温度信息,处理器执行计算机程序时还实现以下步骤:In one embodiment, the temperature information of the heat-generating components in the server is obtained, and the processor also implements the following steps when executing the computer program:

通过一级传感器获取服务器内发热部件的一级温度信息;一级传感器为设置于发热部件内部的传感器;The first-level temperature information of the heating components in the server is obtained through the first-level sensor; the first-level sensor is a sensor arranged inside the heating component;

若一级温度信息不存在异常,则将一级温度信息作为发热部件的温度信息;If there is no abnormality in the primary temperature information, the primary temperature information is used as the temperature information of the heat-generating 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; the secondary sensor is set within a preset range around the heating component sensor.

在一个实施例中,第一预设风扇调速策略包括一级风扇调速策略,一级风扇调速策略为根据一级温度信息对服务器内风扇的转速进行控制的调速策略;若一级温度信息不存在异常,则根据发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略,处理器执行计算机程序时还实现以下步骤:In one embodiment, the first preset fan speed regulation strategy includes a first-level fan speed regulation strategy, and the first-level fan speed regulation strategy is a speed regulation strategy that controls the speed of the fan in the server according to the primary temperature information; If there is no abnormality in the temperature information, then according to the temperature information of the heat-generating component, the target fan speed regulation strategy is determined from the first preset fan speed regulation strategy and the second preset fan speed regulation strategy, and the processor also implements the following steps when executing the computer program :

根据一级温度信息,将一级风扇调速策略作为目标风扇调速策略;According to the first-level temperature information, the first-level fan speed regulation strategy is used as the target fan speed regulation strategy;

根据目标风扇调速策略,对服务器内风扇的转速进行控制,包括:According to the target fan speed regulation strategy, the speed of the fan in the server is controlled, including:

根据一级风扇调速策略,对服务器内风扇的转速进行控制。According to the first-level fan speed regulation strategy, the speed of the fan in the server is controlled.

在一个实施例中,第一预设风扇调速策略包括二级风扇调速策略,二级风扇调速策略为根据二级温度信息对服务器内风扇的转速进行控制的调速策略;若一级温度信息存在异常,且二级温度信息不存在异常,则根据发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略,处理器执行计算机程序时还实现以下步骤: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 that controls the speed of the fan in the server according to the secondary temperature information; If there is an abnormality in the temperature information and there is no abnormality in the secondary temperature information, the target fan speed regulation strategy is determined 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, and the processor The following steps are also implemented when executing the computer program:

根据二级温度信息,将二级风扇调速策略作为目标风扇调速策略;According to the secondary temperature information, the secondary fan speed regulation strategy is used as the target fan speed regulation strategy;

根据目标风扇调速策略,对服务器内风扇的转速进行控制,包括:According to the target fan speed regulation strategy, the speed of the fan in the server is controlled, including:

根据二级风扇调速策略,对服务器内风扇的转速进行控制。According to the secondary fan speed regulation strategy, the speed of the fan in the server is controlled.

在一个实施例中,若二级温度信息存在异常,则根据发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略,处理器执行计算机程序时还实现以下步骤:In one embodiment, if the secondary temperature information is abnormal, the target fan speed regulation strategy is determined 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, and the processor The following steps are also implemented when executing the computer program:

根据二级温度信息,将第二预设风扇调速策略作为目标风扇调速策略;Taking the second preset fan speed regulation strategy as the target fan speed regulation strategy according to the secondary temperature information;

根据目标风扇调速策略,对服务器内风扇的转速进行控制,包括:According to the target fan speed regulation strategy, the speed of the fan in the server is controlled, including:

根据第二预设风扇调速策略,对服务器内风扇的转速进行控制。According to the second preset fan speed regulation strategy, the speed of the fan in the server is controlled.

在一个实施例中,根据第二预设风扇调速策略,对服务器内风扇的转速进行控制,处理器执行计算机程序时还实现以下步骤:In one embodiment, according to the second preset fan speed regulation strategy, the speed of the fan in the server is controlled, and the processor also implements the following steps when executing the computer program:

获取发热部件的功耗及发热部件在当前环境温度下的功耗转速对应关系;Obtain the power consumption of the heating component and the corresponding relationship between the power consumption and speed of the heating component at the current ambient temperature;

根据发热部件的功耗及功耗转速对应关系,确定与发热部件的功耗对应的目标转速;Determine the target speed corresponding to the power consumption of the heating component according to the corresponding relationship between the power consumption of the heating component and the power consumption speed;

根据目标转速对服务器内风扇的转速进行控制。The rotational speed of the fan in the server is controlled according to the target rotational speed.

在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

获取服务器内发热部件的温度信息;Obtain temperature information of heating 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 component; the first preset fan speed regulation strategy is based on the temperature information of the heat-generating component. A speed regulation strategy for controlling the speed of the internal fan, the second preset fan speed regulation strategy is a speed regulation strategy for controlling the speed of the server's internal fan according to the temperature information of the heating component and the power consumption of the heating component;

根据目标风扇调速策略,对服务器内风扇的转速进行控制。According to the target fan speed regulation policy, the speed of the fan in the server is controlled.

在一个实施例中,获取服务器内发热部件的温度信息,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the temperature information of the heat-generating components in the server is obtained, and when the computer program is executed by the processor, the following steps are also implemented:

通过一级传感器获取服务器内发热部件的一级温度信息;一级传感器为设置于发热部件内部的传感器;The first-level temperature information of the heating components in the server is obtained through the first-level sensor; the first-level sensor is a sensor arranged inside the heating component;

若一级温度信息不存在异常,则将一级温度信息作为发热部件的温度信息;If there is no abnormality in the primary temperature information, the primary temperature information is used as the temperature information of the heat-generating 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; the secondary sensor is set within a preset range around the heating component sensor.

在一个实施例中,第一预设风扇调速策略包括一级风扇调速策略,一级风扇调速策略为根据一级温度信息对服务器内风扇的转速进行控制的调速策略;若一级温度信息不存在异常,则根据发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the first preset fan speed regulation strategy includes a first-level fan speed regulation strategy, and the first-level fan speed regulation strategy is a speed regulation strategy that controls the speed of the fan in the server according to the primary temperature information; If there is no abnormality in the temperature information, then according to the temperature information of the heat-generating components, the target fan speed regulation strategy is determined 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, it also realizes the following step:

根据一级温度信息,将一级风扇调速策略作为目标风扇调速策略;According to the first-level temperature information, the first-level fan speed regulation strategy is used as the target fan speed regulation strategy;

根据目标风扇调速策略,对服务器内风扇的转速进行控制,包括:According to the target fan speed regulation strategy, the speed of the fan in the server is controlled, including:

根据一级风扇调速策略,对服务器内风扇的转速进行控制。According to the first-level fan speed regulation strategy, the speed of the fan in the server is controlled.

在一个实施例中,第一预设风扇调速策略包括二级风扇调速策略,二级风扇调速策略为根据二级温度信息对服务器内风扇的转速进行控制的调速策略;若一级温度信息存在异常,且二级温度信息不存在异常,则根据发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略,计算机程序被处理器执行时还实现以下步骤: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 that controls the speed of the fan in the server according to the secondary temperature information; If there is an abnormality in the temperature information and there is no abnormality in the secondary temperature information, the target fan speed regulation strategy is determined 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, and the computer program Also implements the following steps when executed by the processor:

根据二级温度信息,将二级风扇调速策略作为目标风扇调速策略;According to the secondary temperature information, the secondary fan speed regulation strategy is used as the target fan speed regulation strategy;

根据目标风扇调速策略,对服务器内风扇的转速进行控制,包括:According to the target fan speed regulation strategy, the speed of the fan in the server is controlled, including:

根据二级风扇调速策略,对服务器内风扇的转速进行控制。According to the secondary fan speed regulation strategy, the speed of the fan in the server is controlled.

在一个实施例中,若二级温度信息存在异常,则根据发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略,计算机程序被处理器执行时还实现以下步骤:In one embodiment, if there is an abnormality in the secondary temperature information, the target fan speed regulation strategy is determined 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, and the computer program Also implements the following steps when executed by the processor:

根据二级温度信息,将第二预设风扇调速策略作为目标风扇调速策略;Taking the second preset fan speed regulation strategy as the target fan speed regulation strategy according to the secondary temperature information;

根据目标风扇调速策略,对服务器内风扇的转速进行控制,包括:According to the target fan speed regulation strategy, the speed of the fan in the server is controlled, including:

根据第二预设风扇调速策略,对服务器内风扇的转速进行控制。According to the second preset fan speed regulation strategy, the speed of the fan in the server is controlled.

在一个实施例中,根据第二预设风扇调速策略,对服务器内风扇的转速进行控制,计算机程序被处理器执行时还实现以下步骤:In one embodiment, according to the second preset fan speed regulation strategy, the speed of the fan in the server is controlled, and when the computer program is executed by the processor, the following steps are also implemented:

获取发热部件的功耗及发热部件在当前环境温度下的功耗转速对应关系;Obtain the power consumption of the heating component and the corresponding relationship between the power consumption and speed of the heating component at the current ambient temperature;

根据发热部件的功耗及功耗转速对应关系,确定与发热部件的功耗对应的目标转速;Determine the target speed corresponding to the power consumption of the heating component according to the corresponding relationship between the power consumption of the heating component and the power consumption speed;

根据目标转速对服务器内风扇的转速进行控制。The rotational speed of the fan in the server is controlled according to the target rotational speed.

在一个实施例中,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

获取服务器内发热部件的温度信息;Obtain temperature information of heating 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 component; the first preset fan speed regulation strategy is based on the temperature information of the heat-generating component. A speed regulation strategy for controlling the speed of the internal fan, the second preset fan speed regulation strategy is a speed regulation strategy for controlling the speed of the server's internal fan according to the temperature information of the heating component and the power consumption of the heating component;

根据目标风扇调速策略,对服务器内风扇的转速进行控制。According to the target fan speed regulation policy, the speed of the fan in the server is controlled.

在一个实施例中,获取服务器内发热部件的温度信息,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the temperature information of the heat-generating components in the server is obtained, and when the computer program is executed by the processor, the following steps are also implemented:

通过一级传感器获取服务器内发热部件的一级温度信息;一级传感器为设置于发热部件内部的传感器;The first-level temperature information of the heating components in the server is obtained through the first-level sensor; the first-level sensor is a sensor arranged inside the heating component;

若一级温度信息不存在异常,则将一级温度信息作为发热部件的温度信息;If there is no abnormality in the primary temperature information, the primary temperature information is used as the temperature information of the heat-generating 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; the secondary sensor is set within a preset range around the heating component sensor.

在一个实施例中,第一预设风扇调速策略包括一级风扇调速策略,一级风扇调速策略为根据一级温度信息对服务器内风扇的转速进行控制的调速策略;若一级温度信息不存在异常,则根据发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the first preset fan speed regulation strategy includes a first-level fan speed regulation strategy, and the first-level fan speed regulation strategy is a speed regulation strategy that controls the speed of the fan in the server according to the primary temperature information; If there is no abnormality in the temperature information, then according to the temperature information of the heat-generating components, the target fan speed regulation strategy is determined 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, it also realizes the following step:

根据一级温度信息,将一级风扇调速策略作为目标风扇调速策略;According to the first-level temperature information, the first-level fan speed regulation strategy is used as the target fan speed regulation strategy;

根据目标风扇调速策略,对服务器内风扇的转速进行控制,包括:According to the target fan speed regulation strategy, the speed of the fan in the server is controlled, including:

根据一级风扇调速策略,对服务器内风扇的转速进行控制。According to the first-level fan speed regulation strategy, the speed of the fan in the server is controlled.

在一个实施例中,第一预设风扇调速策略包括二级风扇调速策略,二级风扇调速策略为根据二级温度信息对服务器内风扇的转速进行控制的调速策略;若一级温度信息存在异常,且二级温度信息不存在异常,则根据发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略,计算机程序被处理器执行时还实现以下步骤: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 that controls the speed of the fan in the server according to the secondary temperature information; If there is an abnormality in the temperature information and there is no abnormality in the secondary temperature information, the target fan speed regulation strategy is determined 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, and the computer program Also implements the following steps when executed by the processor:

根据二级温度信息,将二级风扇调速策略作为目标风扇调速策略;According to the secondary temperature information, the secondary fan speed regulation strategy is used as the target fan speed regulation strategy;

根据目标风扇调速策略,对服务器内风扇的转速进行控制,包括:According to the target fan speed regulation strategy, the speed of the fan in the server is controlled, including:

根据二级风扇调速策略,对服务器内风扇的转速进行控制。According to the secondary fan speed regulation strategy, the speed of the fan in the server is controlled.

在一个实施例中,若二级温度信息存在异常,则根据发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略,计算机程序被处理器执行时还实现以下步骤:In one embodiment, if there is an abnormality in the secondary temperature information, the target fan speed regulation strategy is determined 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, and the computer program Also implements the following steps when executed by the processor:

根据二级温度信息,将第二预设风扇调速策略作为目标风扇调速策略;Taking the second preset fan speed regulation strategy as the target fan speed regulation strategy according to the secondary temperature information;

根据目标风扇调速策略,对服务器内风扇的转速进行控制,包括:According to the target fan speed regulation strategy, the speed of the fan in the server is controlled, including:

根据第二预设风扇调速策略,对服务器内风扇的转速进行控制。According to the second preset fan speed regulation strategy, the speed of the fan in the server is controlled.

在一个实施例中,根据第二预设风扇调速策略,对服务器内风扇的转速进行控制,计算机程序被处理器执行时还实现以下步骤:In one embodiment, according to the second preset fan speed regulation strategy, the speed of the fan in the server is controlled, and when the computer program is executed by the processor, the following steps are also implemented:

获取发热部件的功耗及发热部件在当前环境温度下的功耗转速对应关系;Obtain the power consumption of the heating component and the corresponding relationship between the power consumption and speed of the heating component at the current ambient temperature;

根据发热部件的功耗及功耗转速对应关系,确定与发热部件的功耗对应的目标转速;Determine the target speed corresponding to the power consumption of the heating component according to the corresponding relationship between the power consumption of the heating component and the power consumption speed;

根据目标转速对服务器内风扇的转速进行控制。The rotational speed of the fan in the server is controlled according to the target rotational speed.

需要说明的是,本申请所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)和数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的信息和数据,且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准。It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all It is information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-OnlyMemory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric Random Access Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic RandomAccess Memory,DRAM)等。本申请所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本申请所提供的各实施例中所涉及的处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。Those of ordinary skill in the art can understand that realizing all or part of the processes in the methods of the above embodiments can be completed by instructing related hardware through computer programs, and the computer programs can be stored in a non-volatile computer-readable storage medium , when the computer program is executed, it may include the procedures of the embodiments of the above-mentioned methods. Wherein, any reference to storage, database or other media used in the various embodiments provided in the present application may include at least one of non-volatile and volatile storage. Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive variable memory (ReRAM), magnetic variable memory (Magnetoresistive Random Access Memory, MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (Phase Change Memory, PCM), graphene memory, etc. The volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory. As an illustration and not a limitation, RAM can be in various forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (Dynamic Random Access Memory, DRAM). The databases involved in the various embodiments provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a blockchain-based distributed database, etc., but is not limited thereto. The processors involved in the various embodiments provided by this application can be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, data processing logic devices based on quantum computing, etc., and are not limited to this.

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered to be within the range described in this specification.

以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请的保护范围应以所附权利要求为准。The above examples only express several implementation modes of the present application, and the description thereof is relatively specific and detailed, but should not be construed as limiting the patent scope of the present application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be determined by the appended claims.

Claims (10)

1.一种风扇调速方法,其特征在于,所述方法包括:1. A fan speed regulation method, characterized in that the method comprises: 获取服务器内发热部件的温度信息;Obtain temperature information of heating components in the server; 根据所述发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略;所述第一预设风扇调速策略为根据所述发热部件的温度信息对所述服务器内风扇的转速进行控制的调速策略,所述第二预设风扇调速策略为根据所述发热部件的温度信息、所述发热部件的功耗对所述服务器内风扇的转速进行控制的调速策略;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 based on the heat generation The temperature information of the component controls the speed regulation strategy of the fan in the server, and the second preset fan speed regulation strategy is to control the speed of the server according to the temperature information of the heat-generating component and the power consumption of the heat-generating component. The speed regulation strategy to control the speed of the internal fan; 根据所述目标风扇调速策略,对所述服务器内风扇的转速进行控制。According to the target fan speed regulation policy, the speed of the fan in the server is controlled. 2.根据权利要求1所述的方法,其特征在于,所述获取服务器内发热部件的温度信息,包括:2. The method according to claim 1, wherein said obtaining temperature information of heating components in the server comprises: 通过一级传感器获取服务器内发热部件的一级温度信息;所述一级传感器为设置于所述发热部件内部的传感器;Obtaining the primary temperature information of the heating component in the server through the primary sensor; the primary sensor is a sensor arranged inside the heating component; 若所述一级温度信息不存在异常,则将所述一级温度信息作为所述发热部件的温度信息;If there is no abnormality in the primary temperature information, using the primary temperature information as the temperature information of the heat-generating component; 若所述一级温度信息存在异常,则通过二级传感器获取服务器内发热部件的二级温度信息,将所述二级温度信息作为所述发热部件的温度信息;所述二级传感器为设置于所述发热部件周围预设范围内的传感器。If there is an abnormality in the primary temperature information, the secondary temperature information of the heat-generating component in the server is obtained through the secondary sensor, and the secondary temperature information is used as the temperature information of the heat-generating component; the secondary sensor is set at A sensor within a preset range around the heating component. 3.根据权利要求2所述的方法,其特征在于,所述第一预设风扇调速策略包括一级风扇调速策略,所述一级风扇调速策略为根据所述一级温度信息对所述服务器内风扇的转速进行控制的调速策略;若所述一级温度信息不存在异常,则所述根据所述发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略,包括:3. The method according to claim 2, wherein the first preset fan speed regulation strategy includes a first-level fan speed regulation strategy, and the first-level fan speed regulation strategy is based on the first-level temperature information for The speed regulation strategy for controlling the speed of the fan in the server; if there is no abnormality in the primary temperature information, the first preset fan speed regulation strategy and the second preset fan speed regulation strategy are used according to the temperature information of the heat-generating component. Determine the target fan speed regulation strategy in the fan speed regulation strategy, including: 根据所述一级温度信息,将所述一级风扇调速策略作为目标风扇调速策略;Using the primary fan speed regulation strategy as the target fan speed regulation strategy according to the primary temperature information; 所述根据所述目标风扇调速策略,对所述服务器内风扇的转速进行控制,包括:The controlling the speed of the fan in the server according to the target fan speed regulation strategy includes: 根据所述一级风扇调速策略,对所述服务器内风扇的转速进行控制。According to the first-level fan speed regulation strategy, the speed of the fan in the server is controlled. 4.根据权利要求2或3所述的方法,其特征在于,所述第一预设风扇调速策略包括二级风扇调速策略,所述二级风扇调速策略为根据所述二级温度信息对所述服务器内风扇的转速进行控制的调速策略;若所述一级温度信息存在异常,且所述二级温度信息不存在异常,则所述根据所述发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略,包括:4. The method according to claim 2 or 3, wherein the first preset fan speed regulation strategy includes a secondary fan speed regulation strategy, and the secondary fan speed regulation strategy is based on the secondary temperature information to control the speed regulation strategy of the fan speed in the server; if there is an abnormality in the primary temperature information and there is no abnormality in the secondary temperature information, then according to the temperature information of the heat-generating component, from The target fan speed regulation strategy is determined in the first preset fan speed regulation strategy and the second preset fan speed regulation strategy, including: 根据所述二级温度信息,将所述二级风扇调速策略作为目标风扇调速策略;Using the secondary fan speed regulation strategy as the target fan speed regulation strategy according to the secondary temperature information; 所述根据所述目标风扇调速策略,对所述服务器内风扇的转速进行控制,包括:The controlling the speed of the fan in the server according to the target fan speed regulation strategy includes: 根据所述二级风扇调速策略,对所述服务器内风扇的转速进行控制。According to the secondary fan speed regulation strategy, the speed of the fan in the server is controlled. 5.根据权利要求2或3所述的方法,其特征在于,若所述二级温度信息存在异常,则所述根据所述发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略,包括:5. The method according to claim 2 or 3, characterized in that if the secondary temperature information is abnormal, then according to the temperature information of the heat-generating component, the first preset fan speed regulation strategy and the second The target fan speed regulation strategy is determined in the preset fan speed regulation strategy, including: 根据所述二级温度信息,将所述第二预设风扇调速策略作为目标风扇调速策略;Taking the second preset fan speed regulation strategy as the target fan speed regulation strategy according to the secondary temperature information; 所述根据所述目标风扇调速策略,对所述服务器内风扇的转速进行控制,包括:The controlling the speed of the fan in the server according to the target fan speed regulation strategy includes: 根据所述第二预设风扇调速策略,对所述服务器内风扇的转速进行控制。According to the second preset fan speed regulation strategy, the speed of the fan in the server is controlled. 6.根据权利要求5所述的方法,其特征在于,所述根据所述第二预设风扇调速策略,对所述服务器内风扇的转速进行控制,包括:6. The method according to claim 5, wherein the controlling the speed of the fan in the server according to the second preset fan speed regulation strategy comprises: 获取所述发热部件的功耗及所述发热部件在当前环境温度下的功耗转速对应关系;Obtaining the power consumption of the heating component and the corresponding relationship between the power consumption and rotational speed of the heating component at the current ambient temperature; 根据所述发热部件的功耗及所述功耗转速对应关系,确定与所述发热部件的功耗对应的目标转速;determining a target rotational speed corresponding to the power consumption of the heating component according to the corresponding relationship between the power consumption of the heating component and the power consumption rotational speed; 根据所述目标转速对所述服务器内风扇的转速进行控制。The rotational speed of the fan in the server is controlled according to the target rotational speed. 7.一种风扇调速装置,其特征在于,所述装置包括:7. A fan speed regulating device, characterized in that the device comprises: 温度信息获取模块,用于获取服务器内发热部件的温度信息;A temperature information acquisition module, configured to acquire temperature information of heating components in the server; 目标风扇调速策略确定模块,用于根据所述发热部件的温度信息,从第一预设风扇调速策略及第二预设风扇调速策略中确定目标风扇调速策略;所述第一预设风扇调速策略为根据所述发热部件的温度信息对所述服务器内风扇的转速进行控制的调速策略,所述第二预设风扇调速策略为根据所述发热部件的温度信息、所述发热部件的功耗对所述服务器内风扇的转速进行控制的调速策略;A target fan speed regulation strategy determining module, configured to determine 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; the first preset fan speed regulation strategy Assume that the fan speed regulation strategy is a speed regulation strategy that controls the speed of the fan in the server according to the temperature information of the heat-generating component, and the second preset fan speed regulation strategy is based on the temperature information of the heat-generating component, the A speed regulation strategy in which the power consumption of the heat-generating components controls the speed of the fan in the server; 控制模块,用于根据所述目标风扇调速策略,对所述服务器内风扇的转速进行控制。The control module is configured to control the speed of the fan in the server according to the target fan speed regulation strategy. 8.一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至6中任一项所述的方法的步骤。8. A computer device, comprising a memory and a processor, the memory stores a computer program, wherein the processor implements the method according to any one of claims 1 to 6 when executing the computer program step. 9.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至6中任一项所述的方法的步骤。9. A computer-readable storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are realized. 10.一种计算机程序产品,包括计算机程序,其特征在于,该计算机程序被处理器执行时实现权利要求1至6中任一项所述的方法的步骤。10. A computer program product, comprising a computer program, characterized in that, when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
CN202310143938.8A 2023-02-21 2023-02-21 Fan speed regulation method, device, computer equipment, storage medium and program product Active CN116360566B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310143938.8A CN116360566B (en) 2023-02-21 2023-02-21 Fan speed regulation method, device, computer equipment, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310143938.8A CN116360566B (en) 2023-02-21 2023-02-21 Fan speed regulation method, device, computer equipment, storage medium and program product

Publications (2)

Publication Number Publication Date
CN116360566A true CN116360566A (en) 2023-06-30
CN116360566B CN116360566B (en) 2025-07-18

Family

ID=86931206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310143938.8A Active CN116360566B (en) 2023-02-21 2023-02-21 Fan speed regulation method, device, computer equipment, storage medium and program product

Country Status (1)

Country Link
CN (1) CN116360566B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117803595A (en) * 2024-02-29 2024-04-02 四川华鲲振宇智能科技有限责任公司 Whole machine energy-saving fan speed regulation method, system and medium
CN118409643A (en) * 2024-06-27 2024-07-30 苏州元脑智能科技有限公司 Server heat dissipation control method, server, storage medium, and program product
CN119440193A (en) * 2024-09-29 2025-02-14 东风汽车集团股份有限公司 Vehicle heat dissipation control method, device, equipment and storage medium
WO2025152623A1 (en) * 2024-01-16 2025-07-24 苏州元脑智能科技有限公司 Server, and aerodynamic-noise and heat-dissipation optimization control system therefor

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090144568A1 (en) * 2000-09-27 2009-06-04 Fung Henry T Apparatus and method for modular dynamically power managed power supply and cooling system for computer systems, server applications, and other electronic devices
CN104460902A (en) * 2014-11-28 2015-03-25 华为技术有限公司 Fan regulation and control method and device capable of optimizing power
WO2016169222A1 (en) * 2015-04-24 2016-10-27 北京百度网讯科技有限公司 Method and device for controlling server fan of complete machine cabinet
CN107957763A (en) * 2017-11-30 2018-04-24 紫光华山信息技术有限公司 The control method for fan and control device of server
WO2018076767A1 (en) * 2016-10-24 2018-05-03 广东美的环境电器制造有限公司 Fan and fan control method
CN110836197A (en) * 2019-11-05 2020-02-25 英业达科技有限公司 Strategy for automatically optimizing energy consumption
WO2020228790A1 (en) * 2019-05-15 2020-11-19 华为技术有限公司 Fan speed control method and electronic device
CN114326989A (en) * 2021-11-29 2022-04-12 苏州浪潮智能科技有限公司 Server cooling fan control method, device, server and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090144568A1 (en) * 2000-09-27 2009-06-04 Fung Henry T Apparatus and method for modular dynamically power managed power supply and cooling system for computer systems, server applications, and other electronic devices
CN104460902A (en) * 2014-11-28 2015-03-25 华为技术有限公司 Fan regulation and control method and device capable of optimizing power
WO2016169222A1 (en) * 2015-04-24 2016-10-27 北京百度网讯科技有限公司 Method and device for controlling server fan of complete machine cabinet
WO2018076767A1 (en) * 2016-10-24 2018-05-03 广东美的环境电器制造有限公司 Fan and fan control method
CN107957763A (en) * 2017-11-30 2018-04-24 紫光华山信息技术有限公司 The control method for fan and control device of server
WO2020228790A1 (en) * 2019-05-15 2020-11-19 华为技术有限公司 Fan speed control method and electronic device
CN110836197A (en) * 2019-11-05 2020-02-25 英业达科技有限公司 Strategy for automatically optimizing energy consumption
CN114326989A (en) * 2021-11-29 2022-04-12 苏州浪潮智能科技有限公司 Server cooling fan control method, device, server and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李聪聪;唐求;滕召胜;王永;: "刀片服务器风扇控制及系统实现", 计算机系统应用, no. 09, 15 September 2011 (2011-09-15) *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2025152623A1 (en) * 2024-01-16 2025-07-24 苏州元脑智能科技有限公司 Server, and aerodynamic-noise and heat-dissipation optimization control system therefor
CN117803595A (en) * 2024-02-29 2024-04-02 四川华鲲振宇智能科技有限责任公司 Whole machine energy-saving fan speed regulation method, system and medium
CN117803595B (en) * 2024-02-29 2024-05-31 四川华鲲振宇智能科技有限责任公司 Whole machine energy-saving fan speed regulation method, system and medium
CN118409643A (en) * 2024-06-27 2024-07-30 苏州元脑智能科技有限公司 Server heat dissipation control method, server, storage medium, and program product
CN119440193A (en) * 2024-09-29 2025-02-14 东风汽车集团股份有限公司 Vehicle heat dissipation control method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN116360566B (en) 2025-07-18

Similar Documents

Publication Publication Date Title
CN116360566A (en) Fan speed regulating method, device, computer equipment, storage medium and program product
US9785134B2 (en) Fan duty control for multi-node computing device
CN106194806A (en) Fan power control system, method and non-transitory computer readable storage medium
CN106990827A (en) Power budget allocation method and power budget allocation device
CN110427083A (en) A kind of control method, device and storage medium
US9117511B2 (en) Control circuits for asynchronous circuits
CN118548238B (en) Heat dissipation control method and system for industrial personal computer
US8237387B2 (en) System and method for controlling duty cycle of CPU fan
CN118244862A (en) Heat dissipation method, device, computer equipment, storage medium and program product
CN115543881A (en) PCIE (peripheral component interface express) equipment adaptation method, system, computer equipment and storage medium
CN114135513A (en) A fan control method, device, device and storage medium
CN117570049A (en) Fan control method and device, baseboard management controller and server
CN117404320A (en) A fan speed control method and server
CN119620835B (en) A dynamic heat dissipation control method, device, equipment and medium
CN114635868B (en) Method and device for controlling rotation speed of cooling fan, computer equipment and storage medium
CN120018457A (en) Combined control method, device, equipment, medium and product of liquid cooling and air cooling
CN119342777A (en) Liquid cooling system, method and computer equipment
CN116560170A (en) Projection equipment heat dissipation control method, device and projection equipment
US11703924B2 (en) Slot airflow based on a configuration of the chassis
CN109185209A (en) A kind of rotation speed of the fan method of adjustment and device
US20250363030A1 (en) Multiple-virtual-temperature-sensor-per-computing-component cooling system
CN113311926A (en) Fan speed regulation method and device, electronic equipment and computer readable storage medium
CN116293899B (en) Method, system, terminal device and storage medium for monitoring building heating status
CN115962863B (en) Temperature testing method, temperature testing device, computer equipment and storage medium
CN115972856A (en) Heating control method, device and computer equipment in vehicle cab

Legal Events

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