CN115237228A - A temperature control method, device and readable storage medium - Google Patents

A temperature control method, device and readable storage medium Download PDF

Info

Publication number
CN115237228A
CN115237228A CN202210939344.3A CN202210939344A CN115237228A CN 115237228 A CN115237228 A CN 115237228A CN 202210939344 A CN202210939344 A CN 202210939344A CN 115237228 A CN115237228 A CN 115237228A
Authority
CN
China
Prior art keywords
psu
curve
temperature
load
rated
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.)
Pending
Application number
CN202210939344.3A
Other languages
Chinese (zh)
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210939344.3A priority Critical patent/CN115237228A/en
Publication of CN115237228A publication Critical patent/CN115237228A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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)
  • Control Of Temperature (AREA)

Abstract

The application discloses a temperature control method, a temperature control device and a readable storage medium, and relates to the technical field of electronics. According to the temperature control method, the current load of the PSU and the current temperature of the PSU are obtained, the corresponding operation curve is generated according to the current load and the current temperature, the operation curve and the rated curve are compared, the comparison result is obtained, the rated curve is a curve generated in advance according to the load and the corresponding temperature when the PSU normally operates, and the load of the PSU and the operation speed of the fan are regulated and controlled according to the comparison result. The temperature curve drawing is carried out on the load and the temperature inside the PSU, so that the temperature corresponding to the load can be intuitively known, the problem of server downtime caused by insufficient regulation and control of the fan and heat dissipation can be prevented, and the problem of energy waste caused by too high running speed of the fan can be prevented.

Description

一种温度控制方法、装置及可读存储介质A temperature control method, device and readable storage medium

技术领域technical field

本申请涉及电子技术领域,特别是涉及一种温度控制方法、装置及可读存储介质。The present application relates to the field of electronic technology, and in particular, to a temperature control method, device and readable storage medium.

背景技术Background technique

近年来,随着大数据、云计算、人工智能时代的到来,互联网业务量出现爆炸式增长,伴随着的还有更多电力的消耗,节能刻不容缓。如何降低能源消耗,提高服务器和数据中的效率成为了重中之重。随着中央处理器等服务器核心器件的功耗越来越大,其工作时散发的热量越来越多,系统需要的风扇规格就越高,其风扇在系统中的功耗占比会越大,这样不利于提高整体的效率,造成一定的资源浪费。由于服务器内部部件的散热量不同,造成服务器每个区域的温度和风流量会有所差异。由于电源装置(Power Supply Unit,PSU)内置风扇,因此如何调配系统风扇和PSU的风扇是功耗优化的重点。In recent years, with the advent of the era of big data, cloud computing and artificial intelligence, the amount of Internet business has exploded, accompanied by more power consumption, and energy saving is urgent. How to reduce energy consumption and improve efficiency in servers and data has become a top priority. As the power consumption of server core devices such as the central processing unit is increasing, and the heat dissipated during operation is increasing, the higher the fan specification required by the system, the larger the power consumption ratio of the fan in the system. , which is not conducive to improving the overall efficiency, resulting in a certain waste of resources. Due to the different heat dissipation of the internal components of the server, the temperature and airflow in each area of the server will vary. Since a power supply unit (PSU) has a built-in fan, how to allocate a system fan and a PSU fan is the focus of power optimization.

现有技术中,服务器主板端内置温度传感器,板卡等部件内部有温度传感器,通过I2C通信将采集的温度传递到系统。PSU内部一般情况下内置3个温度传感器,PSU内部的微控制单元(Microcontroller Unit,MCU)采集温度数据,通过I2C传递到系统。系统根据采集到的温度,来调控风扇的运行速度,以便服务器不会超出温度spec运行,保证服务器的稳定性。而只针对于温度进行检测会导致情况较为单一,若检测到温度升高,则把风扇运行速度提高,若温度降低则把风扇运行速度降低。通常情况下PSU位于服务器后端,PSU前方一般有CPU等高热芯片,由于各部件的散热量不同,会造成服务器每个区域的温度和风流量会有所差异。若传感器正处于高温区域,则会造成系统风扇高速运转。服务器的整体功耗上升。若传感器处于低温,则可能会造成PSU内部温度过高,PSU发生保护,服务器的宕机,因此无法基于PSU的基本情况做出合理的散热应对。In the prior art, there is a built-in temperature sensor on the mainboard side of the server, and a temperature sensor is provided inside the board and other components, and the collected temperature is transmitted to the system through I2C communication. Generally, three temperature sensors are built in the PSU. The Microcontroller Unit (MCU) inside the PSU collects temperature data and transmits it to the system through I2C. The system adjusts the fan speed according to the collected temperature, so that the server does not exceed the temperature spec and ensures the stability of the server. However, only detecting the temperature will lead to a relatively simple situation. If it is detected that the temperature increases, the operating speed of the fan is increased, and if the temperature decreases, the operating speed of the fan is decreased. Usually, the PSU is located at the back end of the server, and there are usually high-heat chips such as the CPU in front of the PSU. Due to the different heat dissipation of each component, the temperature and air flow of each area of the server will be different. If the sensor is in a high temperature area, it will cause the system fan to run at high speed. The overall power consumption of the server goes up. If the sensor is at a low temperature, the internal temperature of the PSU may be too high, the PSU will be protected, and the server will be shut down. Therefore, reasonable cooling measures cannot be made based on the basic conditions of the PSU.

鉴于上述技术,寻找一种能基于PSU的基本情况做出合理的散热的温度控制方法是本领域技术人员亟待解决的问题。In view of the above technologies, it is an urgent problem for those skilled in the art to find a temperature control method that can perform reasonable heat dissipation based on the basic conditions of the PSU.

发明内容SUMMARY OF THE INVENTION

本申请的目的是提供一种温度控制方法,以便于解决若传感器正处于高温区域,则会造成系统风扇高速运转。服务器的整体功耗上升。若传感器处于低温,则可能会造成PSU内部温度过高,PSU发生保护,服务器宕机,因此无法基于PSU的基本情况做出合理的散热应对的问题。The purpose of this application is to provide a temperature control method so as to solve the problem that if the sensor is in a high temperature area, the system fan will run at a high speed. The overall power consumption of the server goes up. If the sensor is at a low temperature, the internal temperature of the PSU may be too high, the PSU will be protected, and the server will be down. Therefore, a reasonable cooling response cannot be made based on the basic conditions of the PSU.

为解决上述技术问题,本申请提供一种温度控制方法,应用于服务器主板,包括:In order to solve the above-mentioned technical problems, the present application provides a temperature control method, which is applied to a server motherboard, including:

获取PSU的当前负载以及所述PSU的当前温度;Get the current load of the PSU and the current temperature of the PSU;

根据所述当前负载以及所述当前温度生成对应的运行曲线;generating a corresponding operation curve according to the current load and the current temperature;

比较所述运行曲线与额定曲线,获取比较结果,所述额定曲线为预先根据所述PSU正常运行时的负载与对应的温度生成的曲线;Comparing the operating curve and the rated curve, and obtaining a comparison result, the rated curve is a curve generated in advance according to the load and the corresponding temperature of the PSU during normal operation;

若负载相同时,所述运行曲线对应的温度大于所述额定曲线对应的温度,则将所述PSU的当前负载的一部分转换到未超过额定负载的其他所述PSU,并增加所述PSU内部的风扇的运行速度;If the temperature corresponding to the operating curve is greater than the temperature corresponding to the rated curve when the loads are the same, a part of the current load of the PSU is converted to other PSUs that do not exceed the rated load, and the internal temperature of the PSU is increased. the operating speed of the fan;

若负载相同时,所述运行曲线对应的温度小于所述额定曲线对应的温度,则降低所述PSU内部的风扇运行速度。If the temperature corresponding to the operating curve is lower than the temperature corresponding to the rated curve when the loads are the same, the operating speed of the fan inside the PSU is reduced.

优选地,在所述获取PSU的当前负载以及所述PSU的当前温度之后,所述比较所述运行曲线与额定曲线,获取比较结果之前,还包括:Preferably, after the acquiring the current load of the PSU and the current temperature of the PSU, the comparing the operating curve and the rated curve, and before acquiring the comparison result, further includes:

判断所述PSU的当前负载是否大于额定负载;Determine whether the current load of the PSU is greater than the rated load;

若否,则进入所述比较所述运行曲线与额定曲线,获取比较结果的步骤;If not, enter the step of comparing the operating curve and the rated curve to obtain the comparison result;

若是,则将所述PSU的当前负载的一部分转换到未超过额定负载的其他所述PSU,并回到所述判断所述PSU的当前负载是否大于额定负载的步骤。If so, transfer a part of the current load of the PSU to other PSUs that do not exceed the rated load, and return to the step of judging whether the current load of the PSU is greater than the rated load.

优选地,在对所述PSU的负载和/或风扇的运行速度进行调控之后,还包括:Preferably, after adjusting the load of the PSU and/or the operating speed of the fan, the method further includes:

检测所述运行曲线是否与所述额定曲线相同;Detecting whether the operating curve is the same as the rated curve;

若否,则回到比较所述运行曲线与额定曲线,获取比较结果的步骤。If not, return to the step of comparing the running curve and the rated curve to obtain the comparison result.

优选地,在对所述PSU的负载和/或风扇的运行速度进行调控之后,还包括:Preferably, after adjusting the load of the PSU and/or the operating speed of the fan, the method further includes:

若对所述PSU的负载以及风扇的运行速度进行调控无法调整所述运行曲线等于所述额定曲线,则开启所述系统风扇进行散热处理。If the load of the PSU and the operating speed of the fan cannot be adjusted to adjust the operating curve to be equal to the rated curve, the system fan is turned on to perform heat dissipation.

优选地,还包括;Preferably, it also includes;

当所述PSU故障时,将所述PSU关闭,并将所述PSU的负载分配到其他所述PSU中。When the PSU fails, the PSU is shut down, and the load of the PSU is distributed to the other PSUs.

优选地,判断所述PSU故障的方法如下:Preferably, the method for judging the PSU failure is as follows:

若当所述PSU风扇停转时,负载相同时,所述运行曲线对应的温度小于所述额定曲线对应的温度,则确定所述PSU故障。If the temperature corresponding to the operating curve is lower than the temperature corresponding to the rated curve when the PSU fan is stopped and the load is the same, it is determined that the PSU is faulty.

为解决上述问题,本申请还提供一种温度控制装置,包括:In order to solve the above problems, the present application also provides a temperature control device, comprising:

获取模块,用于获取PSU的当前负载以及所述PSU的当前温度;an acquisition module for acquiring the current load of the PSU and the current temperature of the PSU;

生成模块,用于根据所述当前负载以及所述当前温度生成对应的运行曲线;a generating module, configured to generate a corresponding operating curve according to the current load and the current temperature;

比较模块,用于比较所述运行曲线与额定曲线,获取比较结果,所述额定曲线为预先根据所述PSU正常运行时的负载与对应的温度生成的曲线;a comparison module, configured to compare the operating curve and the rated curve to obtain a comparison result, where the rated curve is a curve generated in advance according to the load and the corresponding temperature of the PSU during normal operation;

第一调控模块,在负载相同时,所述运行曲线对应的温度大于所述额定曲线对应的温度时开启,用于将所述PSU的当前负载的一部分转换到未超过额定负载的其他所述PSU,并增加所述PSU内部的风扇的运行速度;The first regulation module is turned on when the load is the same and the temperature corresponding to the operating curve is greater than the temperature corresponding to the rated curve, and is used to convert a part of the current load of the PSU to other PSUs that do not exceed the rated load , and increase the operating speed of the fan inside the PSU;

第二调控模块,在负载相同时,所述运行曲线对应的温度小于所述额定曲线对应的温度时开启,用于降低所述PSU内部的风扇运行速度。The second regulation module is turned on when the temperature corresponding to the operating curve is lower than the temperature corresponding to the rated curve when the load is the same, so as to reduce the operating speed of the fan inside the PSU.

优选地,该装置还包括:Preferably, the device further includes:

检测模块,用于检测所述运行曲线是否与所述额定曲线相同;a detection module for detecting whether the operating curve is the same as the rated curve;

若否,则回到调控模块。If not, go back to the control module.

优选地,该装置还包括:Preferably, the device further includes:

备用模块,用于对所述PSU的负载以及风扇的运行速度进行调控无法调整所述运行曲线等于所述额定曲线,则开启所述系统风扇进行散热处理。The backup module is used for adjusting the load of the PSU and the operating speed of the fan, and if the operating curve cannot be adjusted to be equal to the rated curve, the system fan is turned on to perform heat dissipation processing.

优选地,该装置还包括;Preferably, the device further comprises;

故障模块,用于当所述PSU故障时,将所述PSU关闭,并将所述PSU的负载分配到其他所述PSU中。A failure module, configured to shut down the PSU when the PSU fails, and distribute the load of the PSU to the other PSUs.

为解决上述问题,本申请还提供一种温度控制装置,包括存储器,用于存储计算机程序;In order to solve the above problems, the present application also provides a temperature control device, comprising a memory for storing a computer program;

处理器,用于执行所述计算机程序时实现如上述的温度控制方法的步骤。The processor is configured to implement the steps of the above temperature control method when executing the computer program.

为解决上述问题,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上述的温度控制方法的步骤。In order to solve the above problem, the present application also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above temperature control method are implemented.

本申请所提供的温度控制方法,通过获取PSU的当前负载以及PSU的当前温度,根据当前负载以及当前温度生成对应的运行曲线,比较运行曲线与额定曲线,获取比较结果,额定曲线为预先根据PSU正常运行时的负载与对应的温度生成的曲线,根据比较结果,对PSU的负载以及风扇的运行速度进行调控。通过对于负载以及PSU内部的温度进行曲线绘制,从而能直观了解在对应的负载中应该对应的温度,从而进行合理的调配,既能防止由于风扇以及散热调控不足所导致的服务器宕机的问题,也可以防止由于风扇运行速度太大所导致的能源浪费的问题,因此相较于以往的温度控制方法,本申请所提供的温度控制方法能基于PSU的基本情况做出合理的散热。In the temperature control method provided by the present application, by acquiring the current load of the PSU and the current temperature of the PSU, a corresponding operation curve is generated according to the current load and the current temperature, the operation curve and the rated curve are compared, and the comparison result is obtained. The curve generated by the load during normal operation and the corresponding temperature, according to the comparison result, the load of the PSU and the operating speed of the fan are regulated. By plotting the load and the temperature inside the PSU, we can intuitively understand the corresponding temperature in the corresponding load, so as to make reasonable allocation, which can not only prevent the problem of server downtime caused by insufficient fan and cooling control, It can also prevent the problem of energy waste caused by the fan running too fast. Therefore, compared with the previous temperature control method, the temperature control method provided by the present application can make reasonable heat dissipation based on the basic situation of the PSU.

本申请所提供的温度控制装置及计算机可读存储介质与上述的温度控制方法对应,有益效果同上。The temperature control device and the computer-readable storage medium provided by the present application correspond to the above-mentioned temperature control method, and the beneficial effects are the same as above.

附图说明Description of drawings

为了更清楚地说明本申请实施例,下面将对实施例中所需要使用的附图做简单的介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to describe the embodiments of the present application more clearly, the following will briefly introduce the drawings that are used in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application, which are not relevant to ordinary skills in the art. As far as personnel are concerned, other drawings can also be obtained from these drawings on the premise of no creative work.

图1为本申请实施例提供的一种温度控制方法的流程图;1 is a flow chart of a temperature control method provided by an embodiment of the present application;

图2为本申请实施例提供的一种服务器主板结构示意图;FIG. 2 is a schematic structural diagram of a server motherboard according to an embodiment of the present application;

图3为本申请实施例提供的一种温度控制装置示意图;3 is a schematic diagram of a temperature control device provided by an embodiment of the present application;

图4为本申请另一实施例提供的温度控制装置的结构图。FIG. 4 is a structural diagram of a temperature control device provided by another embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下,所获得的所有其他实施例,都属于本申请保护范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative work fall within the protection scope of the present application.

本申请的核心是提供一种温度控制方法,以便于解决若传感器正处于高温区域,则会造成系统风扇高速运转。服务器的整体功耗上升。若传感器处于低温,则可能会造成PSU内部温度过高,PSU发生保护,服务器宕机,因此无法基于PSU的基本情况做出合理的散热应对的问题。The core of the present application is to provide a temperature control method, so as to solve the problem that if the sensor is in a high temperature area, the system fan will run at a high speed. The overall power consumption of the server goes up. If the sensor is at a low temperature, the internal temperature of the PSU may be too high, the PSU will be protected, and the server will be down. Therefore, a reasonable cooling response cannot be made based on the basic conditions of the PSU.

为了使本技术领域的人员更好地理解本申请方案,下面结合附图和具体实施方式对本申请作进一步的详细说明。In order to make those skilled in the art better understand the solution of the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

图1为本申请实施例提供的一种温度控制方法的流程图,应用于服务器主板,包括:1 is a flowchart of a temperature control method provided by an embodiment of the present application, applied to a server motherboard, including:

S10:获取PSU的当前负载以及PSU的当前温度;S10: Obtain the current load of the PSU and the current temperature of the PSU;

需要说明的是,本实施例中的负载时通过MCU采集的PSU中的电源负载程度,例如PSU的额定运行电压为10V,而当前的负载电压为5V,则当前负载为百分之五十,在本实施例中对于获取负载以及温度的具体方式不进行限定,可以理解的是,温度的获取一般是通过温度传感器进行采集的。在本实施例中对于PSU的类型以及个数均不进行限定,可以理解的是,一般是It should be noted that the power load degree in the PSU collected by the MCU during the load in this embodiment, for example, the rated operating voltage of the PSU is 10V, and the current load voltage is 5V, then the current load is 50%, In this embodiment, the specific manner of acquiring the load and the temperature is not limited, and it can be understood that the acquisition of the temperature is generally performed by a temperature sensor. In this embodiment, the type and number of PSUs are not limited. It can be understood that generally

S11:根据当前负载以及当前温度生成对应的运行曲线;S11: Generate a corresponding operation curve according to the current load and the current temperature;

需要说明的是,服务器主板,又叫主机板(mainboard)、系统板(systemboard)或母板(motherboard),它分为商用主板和工业主板两种。一般来说服务器主板安装在机箱内,是微机最基本的也是最重要的部件之一。主板一般为矩形电路板,上面安装了组成计算机的主要电路系统,一般有BIOS芯片、I/O控制芯片、键盘和面板控制开关接口、指示灯插接件、扩充插槽、主板及插卡的直流电源供电接插件等元件,主板的性能影响着整个微机系统的性能。在本实施例中对于主板的具体类型不进行限定。由于在处理过程中,负载为一个浮动的变量,因此根据负载的浮动作为变量,温度为因变量,从而绘制对应的运行曲线。It should be noted that a server motherboard, also called a mainboard, a system board or a motherboard, is divided into two types: commercial motherboards and industrial motherboards. Generally speaking, the server motherboard is installed in the chassis and is one of the most basic and important components of the computer. The main board is generally a rectangular circuit board, on which the main circuit systems that make up the computer are installed, generally including BIOS chips, I/O control chips, keyboard and panel control switch interfaces, indicator light connectors, expansion slots, motherboards and cards. DC power supply connectors and other components, the performance of the motherboard affects the performance of the entire microcomputer system. In this embodiment, the specific type of the motherboard is not limited. Since the load is a floating variable during the processing, the corresponding operation curve is drawn according to the fluctuation of the load as the variable and the temperature as the dependent variable.

可以理解的是,运行曲线是通过建立函数,将负载作为变量,温度作为因变量,因此参数则是PSU的散热功率。It can be understood that the operating curve is established by a function, with load as a variable and temperature as a dependent variable, so the parameter is the heat dissipation power of the PSU.

S12:比较运行曲线与额定曲线,判断在负载相同时,运行曲线对应的温度是否大于额定曲线对应的温度时开启,若是,进入S13,若否,进入S14;S12: Compare the operating curve and the rated curve, and judge whether the temperature corresponding to the operating curve is greater than the temperature corresponding to the rated curve when the load is the same, if yes, go to S13, if not, go to S14;

额定曲线为预先根据PSU正常运行时的负载与对应的温度生成的曲线微控制单元,又称单片微型计算机或者单片机,是把中央处理器的频率与规格做适当缩减,并将内存、计数器等周边接口,甚至驱动电路都整合在单一芯片上,形成芯片级的计算机,为不同的应用场合做不同组合控制。The rated curve is a curve generated in advance according to the load and the corresponding temperature of the PSU during normal operation. Peripheral interfaces and even driving circuits are integrated on a single chip to form a chip-level computer, which can be controlled in different combinations for different applications.

S13:将PSU的当前负载的一部分转换到未超过额定负载的其他PSU,并增加PSU内部的风扇的运行速度;S13: Transfer part of the current load of the PSU to other PSUs that do not exceed the rated load, and increase the operating speed of the fans inside the PSU;

需要说明的是,本实施例中的调整只需要将运行曲线与额定曲线调制到相同即可,至于具体使用增加风扇运行速度还是转换负载的方式或者二者结合均可,在此不进行具体限定。It should be noted that the adjustment in this embodiment only needs to modulate the operating curve and the rated curve to be the same. As for the specific use of increasing the operating speed of the fan, switching the load, or a combination of the two, it is not specifically limited here. .

S14:降低PSU内部的风扇运行速度。S14: Decrease the operating speed of the fan inside the PSU.

例如,根据不同负载和不同环境和温度实测的PSU散热数据得出三个传感器温度的数据曲线,将曲线存储到PSU的MCU中。系统通过I2C访问单片机中的温度曲线。正常情况下入风口温度最低,内部第二个温度居中,第三个温度最高。PSU拥有PSU A和PSU B两个PSU用于供电,在以往的工作状态中,正常工作若PSU A的入风口温度较高,首先PSU A内部风扇会提高运行速度,增加风流量,以便降低温度。For example, according to the measured PSU heat dissipation data of different loads and different environments and temperatures, the data curves of the temperature of the three sensors are obtained, and the curves are stored in the MCU of the PSU. The system accesses the temperature curve in the microcontroller through I2C. Under normal circumstances, the temperature of the air inlet is the lowest, the temperature of the second inside is in the middle, and the temperature of the third is the highest. The PSU has two PSUs, PSU A and PSU B, which are used for power supply. In the previous working state, if the temperature of the air inlet of PSU A was high during normal operation, the fan inside PSU A would first increase the operating speed and increase the air flow in order to reduce the temperature. .

若入风口的传感器处于高温区域,则可能会出现入风口温度大于内部温度,此时PSU A的风扇已经处于全速运行,但是入风口温度仍然很高。同时去采集PSU的负载,若负载较低小于50%的PSU的额定输出,同时系统检测到A模块内部三个温度与存储在MCU中的曲线偏离时,系统同时去判断另外一个并机PSU B模块是否正常工作,若正常工作,且PSU B风扇未满转运行。则调控PSU B模块的风扇,提高PSU B风扇运行速度,加快PSU入风口的风量。若可以使PSU A模块温度正常,则保持B的运行速度。若不能A模块温度正常,则降低A模块风扇运行速度,使更多的热量从B模块流出。若不能满足要求,系统则根据系统负载大小控制A模块关机,只使用B模块供电。若负载大于50%的PSU的额定输出,系统则可以通过控制分配PSU的负载达到温度要求,即曲线内。若B模块温度正常,则将B模块负载提高,以此降低A模块的负载,保证A和B模块的三个温度都不会引起系统风扇提高。若以上都不能满足要求,则提高系统的风扇,以降低PSU温度。If the sensor of the air inlet is in a high temperature area, the temperature of the air inlet may be higher than the internal temperature. At this time, the fan of PSU A is already running at full speed, but the temperature of the air inlet is still high. At the same time, the load of the PSU is collected. If the load is lower than 50% of the rated output of the PSU, and the system detects that the three temperatures inside the A module deviate from the curve stored in the MCU, the system simultaneously determines another parallel PSU B. Check whether the module is working properly, if so, and the PSU B fan is not running at full speed. Then adjust the fans of the PSU B module, increase the running speed of the PSU B fans, and increase the air volume of the PSU air inlets. If the temperature of the PSU A module can be normalized, keep the operating speed of B. If the temperature of module A cannot be normal, reduce the fan speed of module A to allow more heat to flow out from module B. If the requirements cannot be met, the system controls the A module to shut down according to the system load, and only uses the B module to supply power. If the load is greater than 50% of the rated output of the PSU, the system can control the distribution of the PSU load to meet the temperature requirements, that is, within the curve. If the temperature of module B is normal, increase the load of module B to reduce the load of module A and ensure that the three temperatures of modules A and B will not cause the system fan to increase. If none of the above can meet the requirements, increase the fan of the system to reduce the temperature of the PSU.

若入风口温度传感器处于低温区域,PSU内部温度会触发风扇调控点,是PSU的风扇运行速度提高。若不能满足温度要求,则提高系统的风扇运行速度。If the air inlet temperature sensor is in a low temperature area, the internal temperature of the PSU will trigger the fan control point, which means that the fan running speed of the PSU increases. If the temperature requirements cannot be met, increase the fan speed of the system.

本申请所提供的温度控制方法,通过获取PSU的当前负载以及PSU的当前温度,根据当前负载以及当前温度生成对应的运行曲线,比较运行曲线与额定曲线,获取比较结果,额定曲线为预先根据PSU正常运行时的负载与对应的温度生成的曲线,根据比较结果,对PSU的负载以及风扇的运行速度进行调控。通过对于负载以及PSU内部的温度进行曲线绘制,从而能直观了解在对应的负载中应该对应的温度,从而进行合理的调配,既能防止由于风扇以及散热调控不足所导致的服务器宕机的问题,也可以防止由于风扇运行速度太大所导致的能源浪费的问题,因此相较于以往的温度控制方法,本申请所提供的温度控制方法能基于PSU的基本情况做出合理的散热。In the temperature control method provided by the present application, by acquiring the current load of the PSU and the current temperature of the PSU, a corresponding operation curve is generated according to the current load and the current temperature, the operation curve and the rated curve are compared, and the comparison result is obtained. The curve generated by the load during normal operation and the corresponding temperature, according to the comparison result, the load of the PSU and the operating speed of the fan are regulated. By plotting the load and the temperature inside the PSU, we can intuitively understand the corresponding temperature in the corresponding load, so as to make reasonable allocation, which can not only prevent the problem of server downtime caused by insufficient fan and cooling control, It can also prevent the problem of energy waste caused by the fan running too fast. Therefore, compared with the previous temperature control method, the temperature control method provided by the present application can make reasonable heat dissipation based on the basic situation of the PSU.

考虑到对于检测时PSU本身运行状态的影响,在此提供优选方案,在获取PSU的当前负载以及PSU的当前温度之后,比较运行曲线与额定曲线,获取比较结果之前,还包括:Considering the influence on the operating state of the PSU itself during the detection, a preferred solution is provided here. After obtaining the current load of the PSU and the current temperature of the PSU, compare the operating curve with the rated curve, and before obtaining the comparison result, also include:

判断PSU的当前负载是否大于额定负载;Determine whether the current load of the PSU is greater than the rated load;

若否,则进入比较运行曲线与额定曲线,获取比较结果的步骤;If not, enter the step of comparing the running curve and the rated curve to obtain the comparison result;

若是,则将PSU的当前负载的一部分转换到未超过额定负载的其他PSU,并回到判断PSU的当前负载是否大于额定负载的步骤。If so, transfer part of the current load of the PSU to other PSUs that do not exceed the rated load, and return to the step of judging whether the current load of the PSU is greater than the rated load.

需要说明的是,在本实施例中提出了预先检测负载是否大于额定负载并通过,在本实施例中对于额定负载的具体数值不进行限定,需要说明的是,在本实施例中对于上述的PSU的当前负载的具体采集方式以及运行曲线的绘制和额定曲线的绘制方式均不进行限定。It should be noted that, in this embodiment, it is proposed to detect whether the load is greater than the rated load in advance and pass the test. In this embodiment, the specific value of the rated load is not limited. It should be noted that in this embodiment, the above-mentioned The specific collection method of the current load of the PSU and the drawing method of the operation curve and the rated curve are not limited.

本实施例中通过循环的方式,从而在最终判定PSU的负载大于额定负载的情况下,进行负载均分的方式,从而保证在不启动系统风扇的情况下,做到温度的合理调节。In this embodiment, the cycle method is used, so that when the load of the PSU is finally determined to be greater than the rated load, the load sharing method is performed, so as to ensure reasonable temperature adjustment without starting the system fan.

在根据比较结果,对PSU的负载以及风扇的运行速度进行调控之后,还包括:After adjusting the load of the PSU and the operating speed of the fan according to the comparison results, it also includes:

检测运行曲线是否与额定曲线相同;Check whether the running curve is the same as the rated curve;

若否,则回到根据比较结果,对PSU的负载以及风扇的运行速度进行调控的步骤。If not, go back to the step of adjusting the load of the PSU and the operating speed of the fan according to the comparison result.

需要说明的是,在本实施例中对于运行曲线与额定曲线的比较相同的定义的方式不进行限定,这里的相同也可以是近似相同,即在一个区间内的曲线的曲率等等进行重合即可,可以理解的是,由于PSU本身具有It should be noted that, in this embodiment, the way of defining the same comparison between the operating curve and the rated curve is not limited, and the same here can also be approximately the same, that is, the curvatures of the curves in an interval overlap, that is, Yes, it is understandable that since the PSU itself has

在根据比较结果,对PSU的负载以及风扇的运行速度进行调控之后,还包括:After adjusting the load of the PSU and the operating speed of the fan according to the comparison results, it also includes:

若对PSU的负载以及风扇的运行速度进行调控无法调整运行曲线等于额定曲线,则开启系统风扇进行散热处理。If the load of the PSU and the running speed of the fan cannot be adjusted and the running curve cannot be adjusted to be equal to the rated curve, turn on the system fan for heat dissipation.

由于可能遇到多个PSU中其中一个PSU故障,在此提供优先方案,还包括;Due to the possibility of encountering the failure of one of the multiple PSUs, priority solutions are provided here, including;

当PSU故障时,将PSU关闭,并将PSU的负载分配到其他PSU中。When a PSU fails, shut down the PSU and distribute the load of the PSU to other PSUs.

判断PSU故障的方法如下:The methods for judging the PSU fault are as follows:

若当PSU风扇停转时,负载相同时,运行曲线对应的温度小于额定曲线对应的温度,则确定PSU故障。If the temperature corresponding to the operating curve is lower than the temperature corresponding to the rated curve when the PSU fan is stopped and the load is the same, it is determined that the PSU is faulty.

通过上述方案,则可以总结出PSU的散热方式,图2为本申请实施例提供的一种服务器主板结构示意图,如图2所示,例如,PSU内部有对应的PSU风扇调控策略,PSU的三个温度传感器到达温控点后,PSU风扇会提高运行速度,增加风流量,以便满足PSU散热需求。系统实时采集PSU的温度和PSU的负载(功率)。根据不同负载和不同环温实测的PSU散热数据得出三个传感器温度的数据曲线,将曲线存储到PSU的MCU中。系统通过I2C访问MCU中的温度曲线。正常情况下入风口温度最低,内部第二个温度居中,第三个温度最高。正常工作若PSU A的入风口温度较高,首先PSU A内部风扇会提高运行速度,增加风流量,以便降低温度。Through the above solution, the heat dissipation method of the PSU can be summarized. FIG. 2 is a schematic structural diagram of a server motherboard provided by an embodiment of the application, as shown in FIG. 2 , for example, the PSU has a corresponding PSU fan control strategy, and the three After each temperature sensor reaches the temperature control point, the PSU fan will increase the operating speed and increase the air flow to meet the PSU cooling requirements. The system collects the temperature of the PSU and the load (power) of the PSU in real time. According to the PSU heat dissipation data measured by different loads and different ambient temperatures, the data curves of the three sensor temperatures are obtained, and the curves are stored in the MCU of the PSU. The system accesses the temperature profile in the MCU through I2C. Under normal circumstances, the temperature of the air inlet is the lowest, the temperature of the second inside is in the middle, and the temperature of the third is the highest. In normal operation, if the temperature of the air inlet of PSU A is high, first the internal fan of PSU A will increase the operating speed and increase the air flow in order to reduce the temperature.

若入风口的传感器处于高温区域,则可能会出现入风口温度大于内部温度,此时PSU A的风扇已经处于全速运行,但是入风口温度仍然很高。同时去采集PSU的负载,若负载较低小于50%PSU的额定输出,同时系统检测到A模块内部三个温度与存储在MCU中的曲线偏离时,系统同时去判断另外一个并机PSU B模块是否正常工作,若正常工作,且PSU B风扇未满转运行。则调控PSU B模块的风扇,提高PSU B风扇运行速度,加快PSU入风口的风量。若可以使PSU A模块温度正常,则保持B的运行速度。若不能A模块温度正常,则降低A模块风扇运行速度,使更多的热量从B模块流出。若不能满足要求,系统则根据系统负载大小控制A模块关机,只使用B模块供电。若负载大于50%PSU的额定输出,系统则可以通过控制分配PSU的负载达到温度要求,即曲线内。若B模块温度正常,则将B模块负载提高,以此降低A模块的负载,保证A和B模块的三个温度都不会引起系统风扇提高。若以上都不能满足要求,则提高系统的风扇,以降低PSU温度。If the sensor of the air inlet is in a high temperature area, the temperature of the air inlet may be higher than the internal temperature. At this time, the fan of PSU A is already running at full speed, but the temperature of the air inlet is still high. At the same time, the load of the PSU is collected. If the load is lower than 50% of the rated output of the PSU, and the system detects that the three temperatures inside the A module deviate from the curve stored in the MCU, the system simultaneously judges another parallel PSU module B. Whether it is working normally, if it is working normally, and the fan of PSU B is not running at full speed. Then adjust the fans of the PSU B module, increase the running speed of the PSU B fans, and increase the air volume of the PSU air inlets. If the temperature of the PSU A module can be normalized, keep the operating speed of B. If the temperature of module A cannot be normal, reduce the fan speed of module A to allow more heat to flow out of module B. If the requirements cannot be met, the system controls the A module to shut down according to the system load, and only uses the B module to supply power. If the load is greater than 50% of the rated output of the PSU, the system can control the distribution of the PSU load to meet the temperature requirements, that is, within the curve. If the temperature of module B is normal, increase the load of module B to reduce the load of module A and ensure that the three temperatures of modules A and B will not cause the system fan to increase. If none of the above can meet the requirements, increase the fan of the system to reduce the temperature of the PSU.

在上述实施例中,对于温度控制方法进行了详细描述,本申请还提供温度控制装置对应的实施例。需要说明的是,本申请从两个角度对装置部分的实施例进行描述,一种是基于功能模块的角度,另一种是基于硬件的角度。In the above embodiments, the temperature control method is described in detail, and the present application also provides corresponding embodiments of the temperature control device. It should be noted that this application describes the embodiments of the device part from two perspectives, one is based on the perspective of functional modules, and the other is based on the perspective of hardware.

图3为本申请实施例提供的一种温度控制装置示意图,如图3所示,该装置包括:FIG. 3 is a schematic diagram of a temperature control device provided by an embodiment of the application. As shown in FIG. 3 , the device includes:

获取模块10,用于获取PSU的当前负载以及PSU的当前温度;an acquisition module 10 for acquiring the current load of the PSU and the current temperature of the PSU;

生成模块11,用于根据当前负载以及当前温度生成对应的运行曲线;A generating module 11 is used to generate a corresponding operating curve according to the current load and the current temperature;

比较模块12,用于比较运行曲线与额定曲线,获取比较结果,额定曲线为预先根据PSU正常运行时的负载与对应的温度生成的曲线;The comparison module 12 is used to compare the operation curve and the rated curve, and obtain the comparison result, and the rated curve is a curve generated in advance according to the load and the corresponding temperature during the normal operation of the PSU;

第一调控模块13,在负载相同时,运行曲线对应的温度大于额定曲线对应的温度时开启,用于将PSU的当前负载的一部分转换到未超过额定负载的其他PSU,并增加PSU内部的风扇的运行速度;The first control module 13 is turned on when the load is the same and the temperature corresponding to the operating curve is greater than the temperature corresponding to the rated curve, and is used to convert a part of the current load of the PSU to other PSUs that do not exceed the rated load, and increase the fan inside the PSU running speed;

第二调控模块14,在负载相同时,运行曲线对应的温度小于额定曲线对应的温度时开启,用于降低PSU内部的风扇运行速度。The second regulation module 14 is turned on when the temperature corresponding to the operating curve is lower than the temperature corresponding to the rated curve when the load is the same, so as to reduce the operating speed of the fan inside the PSU.

优选地,该装置还包括:Preferably, the device further includes:

检测模块,用于检测运行曲线是否与额定曲线相同;Detection module, used to detect whether the running curve is the same as the rated curve;

若否,则回到调控模块。If not, go back to the control module.

优选地,该装置还包括:Preferably, the device further includes:

备用模块,用于对PSU的负载以及风扇的运行速度进行调控无法调整运行曲线等于额定曲线,则开启系统风扇进行散热处理。The backup module is used to control the load of the PSU and the running speed of the fan. If the running curve cannot be adjusted to be equal to the rated curve, the system fan is turned on for heat dissipation.

优选地,该装置还包括;Preferably, the device further comprises;

故障模块,用于当PSU故障时,将PSU关闭,并将PSU的负载分配到其他PSU中。The fault module is used to shut down the PSU when the PSU fails, and distribute the load of the PSU to other PSUs.

由于装置部分的实施例与方法部分的实施例相互对应,因此装置部分的实施例及其对应的有益效果请参见方法部分的实施例的描述,这里暂不赘述。Since the embodiments of the apparatus part and the embodiments of the method part correspond to each other, the embodiments of the apparatus part and the corresponding beneficial effects may refer to the description of the embodiments of the method part, which will not be repeated here.

本实施例所提供的温度控制装置,拥有获取模块,生成模块,比较模块,第一调控模块,第二调控模块,通过获取PSU的当前负载以及PSU的当前温度,根据当前负载以及当前温度生成对应的运行曲线,比较运行曲线与额定曲线,获取比较结果,额定曲线为预先根据PSU正常运行时的负载与对应的温度生成的曲线,根据比较结果,对PSU的负载以及风扇的运行速度进行调控。通过对于负载以及PSU内部的温度进行曲线绘制,从而能直观了解在对应的负载中应该对应的温度,从而进行合理的调配,既能防止由于风扇以及散热调控不足所导致的服务器宕机的问题,也可以防止由于风扇运行速度太大所导致的能源浪费的问题,因此相较于以往的温度控制方法,本申请所提供的温度控制方法能基于PSU的基本情况做出合理的散热。The temperature control device provided in this embodiment has an acquisition module, a generation module, a comparison module, a first regulation module, and a second regulation module. By acquiring the current load of the PSU and the current temperature of the PSU, a corresponding module is generated according to the current load and the current temperature. Compare the operating curve with the rated curve to obtain the comparison result. The rated curve is a curve generated in advance according to the load and the corresponding temperature of the PSU during normal operation. According to the comparison result, the load of the PSU and the operating speed of the fan are regulated. By plotting the load and the temperature inside the PSU, we can intuitively understand the corresponding temperature in the corresponding load, so as to make reasonable allocation, which can not only prevent the problem of server downtime caused by insufficient fan and cooling control, It can also prevent the problem of energy waste caused by the fan running too fast. Therefore, compared with the previous temperature control method, the temperature control method provided by the present application can make reasonable heat dissipation based on the basic situation of the PSU.

图4为本申请另一实施例提供的温度控制装置的结构图,如图4所示,温度控制装置包括:存储器20,用于存储计算机程序;FIG. 4 is a structural diagram of a temperature control device provided by another embodiment of the application. As shown in FIG. 4 , the temperature control device includes: a memory 20 for storing a computer program;

处理器21,用于执行计算机程序时实现如上述实施例中所提到的温度控制方法的步骤。The processor 21 is configured to implement the steps of the temperature control method mentioned in the above embodiments when executing the computer program.

本实施例提供的温度控制装置可以包括但不限于智能手机、平板电脑、笔记本电脑或台式电脑等。The temperature control device provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, or a desktop computer.

其中,处理器21可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器21可以采用数字信号处理(Digital Signal Processor,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable LogicArray,PLA)中的至少一种硬件形式来实现。处理器21也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称中央处理器(CentralProcessing Unit,CPU);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器21可以在集成有图像处理器(Graphics Processing Unit,GPU),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器21还可以包括人工智能(Artificial Intelligence,AI)处理器,该AI处理器用于处理有关机器学习的计算操作。The processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 21 may be implemented by at least one hardware form among digital signal processing (Digital Signal Processor, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). . The processor 21 may also include a main processor and a coprocessor. The main processor is a processor used to process data in the wake-up state, also called a central processing unit (CPU); A low-power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a graphics processor (Graphics Processing Unit, GPU), and the GPU is used for rendering and drawing the content that needs to be displayed on the display screen. In some embodiments, the processor 21 may further include an artificial intelligence (Artificial Intelligence, AI) processor for processing computing operations related to machine learning.

存储器20可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器20还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。本实施例中,存储器20至少用于存储以下计算机程序201,其中,该计算机程序被处理器21加载并执行之后,能够实现前述任一实施例公开的温度控制方法的相关步骤。另外,存储器20所存储的资源还可以包括操作方法202和数据203等,存储方式可以是短暂存储或者永久存储。其中,操作方法202可以包括Windows、Unix、Linux等。数据203可以包括但不限于上述温度控制方法中涉及的数据等。Memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201 , where, after the computer program is loaded and executed by the processor 21 , the relevant steps of the temperature control method disclosed in any of the foregoing embodiments can be implemented. In addition, the resources stored in the memory 20 may also include an operation method 202 and data 203, etc., and the storage mode may be short-term storage or permanent storage. The operation method 202 may include Windows, Unix, Linux, and the like. The data 203 may include, but is not limited to, the data involved in the above temperature control method, and the like.

在一些实施例中,温度控制装置还可包括有显示屏22、输入输出接口23、通信接口24、电源25以及通信总线26。In some embodiments, the temperature control device may further include a display screen 22 , an input/output interface 23 , a communication interface 24 , a power supply 25 and a communication bus 26 .

本领域技术人员可以理解,图4中示出的结构并不构成对温度控制装置的限定,可以包括比图示更多或更少的组件。Those skilled in the art can understand that the structure shown in FIG. 4 does not constitute a limitation on the temperature control device, and may include more or less components than those shown in the drawings.

本申请实施例提供的温度控制装置,包括存储器和处理器,处理器在执行存储器存储的程序时,能够实现如下方法:上述实施例中涉及的温度控制方法。The temperature control device provided by the embodiment of the present application includes a memory and a processor, and when the processor executes a program stored in the memory, the processor can implement the following method: the temperature control method involved in the foregoing embodiments.

本申请所提供的温度控制装置,包括存储器以及处理器,在存储器中的存储的程序被处理器执行时,可以达到通过获取PSU的当前负载以及PSU的当前温度,根据当前负载以及当前温度生成对应的运行曲线,比较运行曲线与额定曲线,获取比较结果,额定曲线为预先根据PSU正常运行时的负载与对应的温度生成的曲线,根据比较结果,对PSU的负载以及风扇的运行速度进行调控。通过对于负载以及PSU内部的温度进行曲线绘制,从而能直观了解在对应的负载中应该对应的温度,从而进行合理的调配,既能防止由于风扇以及散热调控不足所导致的服务器宕机的问题,也可以防止由于风扇运行速度太大所导致的能源浪费的问题,因此相较于以往的温度控制方法,本申请所提供的温度控制方法能基于PSU的基本情况做出合理的散热。The temperature control device provided by the present application includes a memory and a processor, and when a program stored in the memory is executed by the processor, the current load of the PSU and the current temperature of the PSU can be obtained, and the corresponding current load and current temperature can be generated according to the current load and the current temperature. Compare the operating curve with the rated curve to obtain the comparison result. The rated curve is a curve generated in advance according to the load and the corresponding temperature of the PSU during normal operation. According to the comparison result, the load of the PSU and the operating speed of the fan are regulated. By plotting the load and the temperature inside the PSU, we can intuitively understand the corresponding temperature in the corresponding load, so as to make reasonable allocation, which can not only prevent the problem of server downtime caused by insufficient fan and cooling control, It can also prevent the problem of energy waste caused by the fan running too fast. Therefore, compared with the previous temperature control method, the temperature control method provided by the present application can make reasonable heat dissipation based on the basic situation of the PSU.

由于装置部分的实施例与方法部分的实施例相互对应,因此装置部分的实施例及其对应的有益效果请参见方法部分的实施例的描述,这里暂不赘述。Since the embodiments of the apparatus part and the embodiments of the method part correspond to each other, the embodiments of the apparatus part and the corresponding beneficial effects may refer to the description of the embodiments of the method part, which will not be repeated here.

最后,本申请还提供一种计算机可读存储介质对应的实施例。计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上述方法实施例中记载的步骤。Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor, the steps described in the foregoing method embodiments are implemented.

可以理解的是,如果上述实施例中的方法以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。It can be understood that, if the methods in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , to execute all or part of the steps of the methods in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes .

由于可读存储介质部分的实施例与方法部分的实施例相互对应,因此装置部分的实施例请参见方法部分的实施例的描述,这里暂不赘述。Since the embodiments of the readable storage medium part correspond to the embodiments of the method part, the embodiments of the apparatus part refer to the description of the embodiments of the method part, which will not be repeated here.

本申请所提供的计算机可读存储介质,在被计算机程序执行时,可以达到通过获取PSU的当前负载以及PSU的当前温度,根据当前负载以及当前温度生成对应的运行曲线,比较运行曲线与额定曲线,获取比较结果,额定曲线为预先根据PSU正常运行时的负载与对应的温度生成的曲线,根据比较结果,对PSU的负载以及风扇的运行速度进行调控。通过对于负载以及PSU内部的温度进行曲线绘制,从而能直观了解在对应的负载中应该对应的温度,从而进行合理的调配,既能防止由于风扇以及散热调控不足所导致的服务器宕机的问题,也可以防止由于风扇运行速度太大所导致的能源浪费的问题,因此相较于以往的温度控制方法,本申请所提供的温度控制方法能基于PSU的基本情况做出合理的散热。The computer-readable storage medium provided by the present application, when executed by a computer program, can obtain the current load of the PSU and the current temperature of the PSU, generate a corresponding operating curve according to the current load and the current temperature, and compare the operating curve and the rated curve. , and obtain the comparison result. The rated curve is a curve generated in advance according to the load of the PSU during normal operation and the corresponding temperature. According to the comparison result, the load of the PSU and the operating speed of the fan are regulated. By plotting the load and the temperature inside the PSU, we can intuitively understand the corresponding temperature in the corresponding load, so as to make reasonable allocation, which can not only prevent the problem of server downtime caused by insufficient fan and cooling control, It can also prevent the problem of energy waste caused by the fan running too fast. Therefore, compared with the previous temperature control method, the temperature control method provided by the present application can make reasonable heat dissipation based on the basic situation of the PSU.

以上对本申请所提供的一种温度控制方法、装置及计算机可读存储介质进行了详细介绍。说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以对本申请进行若干改进和修饰,这些改进和修饰也落入本申请权利要求的保护范围内。The temperature control method, device and computer-readable storage medium provided by the present application have been described in detail above. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method. It should be pointed out that for those of ordinary skill in the art, without departing from the principles of the present application, several improvements and modifications can also be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.

还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities or operations. There is no such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article, or device that includes the element.

Claims (9)

1.一种温度控制方法,其特征在于,应用于服务器主板,包括:1. a temperature control method, is characterized in that, is applied to server mainboard, comprises: 获取PSU的当前负载以及所述PSU的当前温度;Get the current load of the PSU and the current temperature of the PSU; 根据所述当前负载以及所述当前温度生成对应的运行曲线;generating a corresponding operation curve according to the current load and the current temperature; 比较所述运行曲线与额定曲线,获取比较结果,所述额定曲线为预先根据所述PSU正常运行时的负载与对应的温度生成的曲线;Comparing the operating curve and the rated curve, and obtaining a comparison result, the rated curve is a curve generated in advance according to the load and the corresponding temperature of the PSU during normal operation; 若负载相同时,所述运行曲线对应的温度大于所述额定曲线对应的温度,则将所述PSU的所述当前负载的一部分转换到未超过额定负载的其他所述PSU,并增加所述PSU的风扇的运行速度;If the temperature corresponding to the operating curve is greater than the temperature corresponding to the rated curve when the loads are the same, a part of the current load of the PSU is converted to other PSUs that do not exceed the rated load, and the PSU is increased the operating speed of the fan; 若负载相同时,所述运行曲线对应的温度小于所述额定曲线对应的温度,则降低所述PSU的风扇的运行速度。If the temperature corresponding to the operating curve is lower than the temperature corresponding to the rated curve when the loads are the same, the operating speed of the fan of the PSU is reduced. 2.根据权利要求1所述的温度控制方法,其特征在于,在所述获取PSU的当前负载以及所述PSU的当前温度之后,所述比较所述运行曲线与额定曲线,获取比较结果之前,还包括:2 . The temperature control method according to claim 1 , wherein, after the acquiring the current load of the PSU and the current temperature of the PSU, the comparing the operating curve and the rated curve, and before acquiring the comparison result, 2 . Also includes: 判断所述PSU的当前负载是否大于额定负载;Determine whether the current load of the PSU is greater than the rated load; 若否,则进入所述比较所述运行曲线与额定曲线,获取比较结果的步骤;If not, enter the step of comparing the operating curve and the rated curve to obtain the comparison result; 若是,则将所述PSU的当前负载的一部分转换到未超过额定负载的其他所述PSU,并回到所述判断所述PSU的当前负载是否大于额定负载的步骤。If so, transfer a part of the current load of the PSU to other PSUs that do not exceed the rated load, and return to the step of judging whether the current load of the PSU is greater than the rated load. 3.根据权利要求2所述的温度控制方法,其特征在于,在对所述PSU的负载和/或风扇的运行速度进行调控之后,还包括:3. The temperature control method according to claim 2, characterized in that, after regulating the load of the PSU and/or the operating speed of the fan, further comprising: 检测所述运行曲线是否与所述额定曲线相同;Detecting whether the operating curve is the same as the rated curve; 若否,则回到比较所述运行曲线与额定曲线,获取比较结果的步骤。If not, return to the step of comparing the running curve and the rated curve to obtain the comparison result. 4.根据权利要求3所述的温度控制方法,其特征在于,在对所述PSU的负载和/或风扇的运行速度进行调控之后,还包括:4. The temperature control method according to claim 3, wherein after adjusting the load of the PSU and/or the operating speed of the fan, the method further comprises: 若对所述PSU的负载以及所述PSU的风扇的运行速度进行调控无法调整所述运行曲线等于所述额定曲线,则开启所述系统风扇进行散热处理。If the operating curve of the PSU cannot be adjusted to be equal to the rated curve by adjusting the load of the PSU and the operating speed of the fan of the PSU, the system fan is turned on to perform heat dissipation processing. 5.根据权利要求1至4任意一项所述的温度控制方法,其特征在于,还包括;5. The temperature control method according to any one of claims 1 to 4, characterized in that, further comprising: 当所述PSU故障时,将所述PSU关闭,并将所述PSU的负载分配到其他所述PSU中。When the PSU fails, the PSU is shut down, and the load of the PSU is distributed to the other PSUs. 6.根据权利要求5所述的温度控制方法,其特征在于,判断所述PSU故障的方法如下:6. temperature control method according to claim 5, is characterized in that, the method for judging described PSU failure is as follows: 若当所述PSU的风扇停转时,负载相同时,所述运行曲线对应的温度小于所述额定曲线对应的温度,则确定所述PSU故障。If the temperature corresponding to the operating curve is lower than the temperature corresponding to the rated curve when the fan of the PSU is stopped and the load is the same, it is determined that the PSU is faulty. 7.一种温度控制装置,其特征在于,包括:7. A temperature control device, characterized in that, comprising: 获取模块,用于获取PSU的当前负载以及所述PSU的当前温度;an acquisition module for acquiring the current load of the PSU and the current temperature of the PSU; 生成模块,用于根据所述当前负载以及所述当前温度生成对应的运行曲线;a generating module, configured to generate a corresponding operating curve according to the current load and the current temperature; 比较模块,用于比较所述运行曲线与额定曲线,获取比较结果,所述额定曲线为预先根据所述PSU正常运行时的负载与对应的温度生成的曲线;a comparison module, configured to compare the operating curve and the rated curve to obtain a comparison result, where the rated curve is a curve generated in advance according to the load and the corresponding temperature of the PSU during normal operation; 第一调控模块,在负载相同时,所述运行曲线对应的温度大于所述额定曲线对应的温度时开启,用于将所述PSU的当前负载的一部分转换到未超过额定负载的其他所述PSU,并增加所述PSU内部的风扇的运行速度;The first regulation module is turned on when the load is the same and the temperature corresponding to the operating curve is greater than the temperature corresponding to the rated curve, and is used to convert a part of the current load of the PSU to other PSUs that do not exceed the rated load , and increase the operating speed of the fan inside the PSU; 第二调控模块,在负载相同时,所述运行曲线对应的温度小于所述额定曲线对应的温度时开启,用于降低所述PSU内部的风扇运行速度。The second regulation module is turned on when the temperature corresponding to the operating curve is lower than the temperature corresponding to the rated curve when the load is the same, so as to reduce the operating speed of the fan inside the PSU. 8.一种温度控制装置,其特征在于,包括存储器,用于存储计算机程序;8. A temperature control device, comprising a memory for storing a computer program; 处理器,用于执行所述计算机程序时实现如权利要求1至6任一项所述的温度控制方法的步骤。The processor is configured to implement the steps of the temperature control method according to any one of claims 1 to 6 when executing the computer program. 9.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至6任一项所述的温度控制方法的步骤。9. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the temperature according to any one of claims 1 to 6 is realized The steps of the control method.
CN202210939344.3A 2022-08-05 2022-08-05 A temperature control method, device and readable storage medium Pending CN115237228A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210939344.3A CN115237228A (en) 2022-08-05 2022-08-05 A temperature control method, device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210939344.3A CN115237228A (en) 2022-08-05 2022-08-05 A temperature control method, device and readable storage medium

Publications (1)

Publication Number Publication Date
CN115237228A true CN115237228A (en) 2022-10-25

Family

ID=83679117

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210939344.3A Pending CN115237228A (en) 2022-08-05 2022-08-05 A temperature control method, device and readable storage medium

Country Status (1)

Country Link
CN (1) CN115237228A (en)

Similar Documents

Publication Publication Date Title
TWI438615B (en) Power management method and device thereof
US10254808B2 (en) System and method for aggressively budgetting power allocation for an information handling system using redundant configuration of power supply units
US10360114B2 (en) Hardware recovery systems
US9235252B2 (en) Dynamic balancing of power across a plurality of processor domains according to power policy control bias
US8332675B2 (en) Latency based platform coordination
US8607080B2 (en) Optimizing voltage on a power plane using a host control unit to control a networked voltage regulation module array
US20090125737A1 (en) Power Management of an Electronic System
CN102566739A (en) Multi-core processor system and its dynamic power management method and control device
TWI243983B (en) System and method of power management
US20160110132A1 (en) Dynamic Adjustment Of Speed of Memory
EP2972660B1 (en) Controlling power supply unit power consumption during idle state
US10860085B2 (en) Modified sleep state graphics processing system
EP2972826B1 (en) Multi-core binary translation task processing
KR20150145241A (en) Generic host-based controller latency method and apparatus
CN109185208B (en) A kind of fan speed regulation method and related device
CN101414208B (en) Electric energy sharing circuit
CN200969053Y (en) Power Supplies with Intelligent Cooling Control
US20220214965A1 (en) System and method for storage class memory tiering
US20110060923A1 (en) Port Power Control
CN115237228A (en) A temperature control method, device and readable storage medium
CN1746815A (en) Computer system and method for switching computer between working state and standby state
US20040006719A1 (en) Performance control method for a computer
CN1280688C (en) Power management system for computer systems
CN102103403A (en) Power supply management method and computer system applying same
US11500402B2 (en) Power-availability-based power delivery configuration system

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