Server heat dissipation regulation and control method, device and equipment and storage medium
By calculating the server's ambient temperature and component temperature difference and utilization, we find and tune the fan speed, which solves the problem of excessive fan speed in the existing technology, reduces power consumption and noise, and ensures component cooling requirements while avoiding over-temperature. damage.
Patent Information
- Application Number
- CN202410659127.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-26
- Publication Date
- 2024-09-10
AI Technical Summary
Existing server heat dissipation control methods rely on real-time component temperature acquisition, which may cause the fan speed to be too high, increase power consumption and noise, and cannot effectively handle the problem of slow temperature updates, which may lead to overheating and damage to components.
By obtaining the ambient temperature and the temperature and resource utilization of each component, calculate the temperature difference and utilization range, find the corresponding fan heat dissipation control table, and tune the fan speed to meet the heat dissipation needs while reducing the fan speed and reducing power consumption and noise. .
It is possible to lower the fan speed while meeting the heat dissipation requirements of components, reduce server power consumption and noise, avoid over-temperature damage to components, and improve the efficiency and accuracy of heat dissipation control.
Smart Images

Figure CN118625903A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, equipment and storage medium for controlling heat dissipation of a server. Background Art
[0002] At present, in order to prevent a series of components in the chassis from generating a large amount of heat and causing the temperature in the chassis to be too high, which may affect the normal operation of the air-cooled server and even damage the components of the server, the real-time temperature information of each component in the server chassis is usually obtained regularly through the BMC (Baseboard Management Controller) on the server, and then the fan speed required for cooling each component is calculated using the preset heat dissipation parameters, and the fan speeds calculated for all components are compared, and the maximum fan speed is taken as the current final fan speed, and then the actual fan speed is increased to the above-mentioned final fan speed, so as to achieve the purpose of preventing all components in the chassis from overheating.
[0003] However, when performing heat dissipation control, the current server relies heavily on the real-time and effectiveness of the BMC to obtain the component temperature, which is not conducive to the heat dissipation control of the server. For example, when the BMC obtains the component temperature, there is a situation where the component temperature cannot be obtained normally. In this case, the BMC will increase the server fan speed to a very high speed (such as 80 duty, that is, 80 fan speed percentage) to deal with the possible overheating of the component. However, the server may not actually need such a high fan speed for heat dissipation (such as only 50 duty is needed to achieve the purpose of not overheating), thereby increasing the power consumption and noise of the server. In addition, some components have the problem of slow temperature update (such as hard disks), and the BMC needs to obtain the component temperature in real time for heat dissipation control. If the temperature update is not timely, it will cause heat accumulation (especially when the pressure is high), resulting in serious consequences such as component overheating and component damage. In addition, in order to meet the heat dissipation needs of components and avoid overheating of components, a more aggressive heat dissipation regulation strategy is often used to control the fan. For example, when only a fan speed of 50 duty is required to meet the heat dissipation needs of components, a fan speed of 55 duty is often set for heat dissipation regulation to avoid overheating of components, but this increases the overall power consumption of the server. Summary of the invention
[0004] In view of this, the purpose of this application is to provide a server heat dissipation control method, device, equipment and storage medium, which can reduce the fan speed as much as possible while meeting the basic heat dissipation requirements of the components, thereby achieving the purpose of reducing server power consumption and noise. The specific scheme is as follows:
[0005] In a first aspect, the present application discloses a method for controlling heat dissipation of a server, comprising:
[0006] Acquire the current ambient temperature of the target server, as well as the temperature and resource utilization of each component in the target server, to obtain the current ambient temperature and the current component temperature and current resource utilization of each component;
[0007] Calculate the difference between the current ambient temperature of each component and the current component temperature to obtain a current temperature difference, and determine a target utilization interval corresponding to the current resource utilization and a target temperature difference interval corresponding to the current temperature difference;
[0008] Respectively obtain the type of each component in the target server, obtain the target component type, and search for a target fan heat dissipation control table corresponding to the target component type; the target fan heat dissipation control table is a table obtained by tuning the initial fan heat dissipation control table based on the correspondence between the component utilization interval, the temperature difference interval between the ambient temperature and the component temperature, and the fan speed;
[0009] The fan speed value corresponding to the target utilization interval and the target temperature difference interval is searched from the target fan heat dissipation control table to obtain the fan speed value corresponding to the corresponding component, and the maximum value is determined from the fan speed values corresponding to each component, and the maximum value is used as the current fan speed of the target server to perform heat dissipation control on the target server.
[0010] Optionally, the obtaining of the current ambient temperature of the target server, and the temperature and resource utilization of each component in the target server, before obtaining the current ambient temperature and the current component temperature and current resource utilization of each component, further includes:
[0011] Acquire first association information sent by an Agent program running in the operating system of the target server; the first association information includes historical resource utilization of each component collected within a preset period and the corresponding component number and component type;
[0012] Collecting historical temperatures of components in the target server chassis according to the preset period to obtain historical component temperatures, and associating the historical component temperatures, component types, and component numbers corresponding to each component to obtain second association information;
[0013] Collect the ambient temperature and fan speed of the target server according to the preset period to obtain the historical ambient temperature and the historical fan speed;
[0014] Traversing the first association information and the second association information corresponding to each component according to the preset period to establish a correspondence between the historical ambient temperature, the historical fan speed, the historical resource utilization rate, and the historical component temperature;
[0015] Based on the corresponding relationship, the difference between the historical ambient temperature and the historical component temperature corresponding to each component is calculated to obtain the historical temperature difference;
[0016] Determine whether the historical temperature difference is credible based on the temperature difference change and the historical resource utilization rate change;
[0017] If the historical temperature difference is credible, the corresponding fan speed value in the initial fan heat dissipation control table is optimized using the preset speed adjustment value to obtain the target fan heat dissipation control table.
[0018] Optionally, judging whether the historical temperature difference is credible based on the temperature difference change and the historical resource utilization change includes:
[0019] Under the conditions of the same utilization interval and the same temperature difference interval, the fan speed of the target server is increased multiple times according to the preset speed-up value, and the resource utilization, component temperature and corresponding temperature difference of the corresponding components after each speed-up are respectively collected to obtain the corresponding new resource utilization, new component temperature and new temperature difference;
[0020] Calculate the difference between the new temperature difference and the historical temperature difference after each speed increase to obtain a target difference, and determine whether the target difference is within a preset difference range and whether the new component temperature is higher than the historical component temperature;
[0021] If the target difference is within the preset difference range and / or the new component temperature is higher than the historical component temperature, the number of times the target difference is within the preset difference range and / or the new component temperature is higher than the historical component temperature is counted to obtain the target number;
[0022] It is determined whether the target number exceeds a first threshold value. If the target number exceeds the first threshold value, it is determined that the historical temperature difference is not credible. If the target number does not exceed the first threshold value, it is determined that the historical temperature difference is credible.
[0023] Optionally, the using of preset speed adjustment values to adjust corresponding fan speed values in the initial fan heat dissipation control table to obtain the target fan heat dissipation control table includes:
[0024] Counting the number of times after each speed increase the new temperature difference is lower than the historical temperature difference, or the new resource utilization rate is higher than the historical resource utilization rate and the new temperature difference and the historical temperature difference are within the preset difference range, to obtain the first number;
[0025] Determine whether the first number exceeds a second threshold value, and if the first number exceeds the second threshold value, reduce the corresponding fan speed value according to a preset speed adjustment value to obtain a first speed value after speed adjustment;
[0026] Counting the number of times after each speed increase the new temperature difference is higher than the historical temperature difference, or the new resource utilization rate is lower than the historical resource utilization rate and the new temperature difference and the historical temperature difference are within the preset difference range, to obtain a second number;
[0027] Determine whether the second number exceeds the second threshold value, and if the second number exceeds the second threshold value, increase the corresponding fan speed value according to the preset speed adjustment value to obtain a second speed value after speed adjustment;
[0028] The first speed-adjusted speed value and the second speed-adjusted speed value are used to replace the corresponding fan speed values in the initial fan heat dissipation control table to obtain the target fan heat dissipation control table.
[0029] Optionally, the server heat dissipation control method further includes:
[0030] If the historical temperature difference is credible, the temperature difference value that appears most frequently in the new temperature difference after each speed increase is counted to obtain the optimal temperature difference value corresponding to the corresponding utilization rate interval.
[0031] Optionally, determining a target utilization interval corresponding to the current resource utilization and a target temperature difference interval corresponding to the current temperature difference includes:
[0032] Determine whether the current temperature difference is credible based on the temperature difference change and the historical resource utilization rate change;
[0033] If the current temperature difference is credible, determining a target utilization interval corresponding to the current resource utilization and a target temperature difference interval corresponding to the current temperature difference;
[0034] If the current temperature difference is unreliable or the current component temperature cannot be obtained, the fan speed value corresponding to the current resource utilization and the corresponding optimal temperature difference value is searched from the target fan heat dissipation control table to obtain the target speed value, and the target speed value is used to control the speed of the fan of the target server.
[0035] Optionally, the server heat dissipation control method further includes:
[0036] If the current component temperature and / or the current resource utilization cannot be obtained, the speed of the fan of the target server is regulated to a preset fan speed according to a preset abnormal heat dissipation speed regulation curve.
[0037] In a second aspect, the present application discloses a server heat dissipation control device, which is applied to a baseboard management controller, including:
[0038] An information acquisition module is used to acquire the current ambient temperature of the target server, as well as the temperature and resource utilization of each component in the target server, to obtain the current ambient temperature and the current component temperature and current resource utilization of each component;
[0039] A difference calculation module, used to calculate the difference between the current ambient temperature of each component and the current component temperature, to obtain a current temperature difference;
[0040] An interval determination module, used to determine a target utilization interval corresponding to the current resource utilization, and a target temperature difference interval corresponding to the current temperature difference;
[0041] A type acquisition module, used to respectively acquire the type of each component in the target server to obtain the target component type;
[0042] A first search module is used to search for a target fan heat dissipation control table corresponding to the target component type; the target fan heat dissipation control table is a table obtained by optimizing the initial fan heat dissipation control table based on the correspondence between the component utilization interval, the temperature difference interval between the ambient temperature and the component temperature, and the fan speed;
[0043] A second search module is used to search the fan speed value corresponding to the target utilization interval and the target temperature difference interval from the target fan heat dissipation control table to obtain the fan speed value corresponding to the corresponding component;
[0044] The speed control module is used to determine a maximum value from the fan speed values corresponding to each component, and use the maximum value as the current fan speed of the target server to perform heat dissipation control on the target server.
[0045] In a third aspect, the present application discloses an electronic device, comprising a processor and a memory; wherein, when the processor executes a computer program stored in the memory, the aforementioned server heat dissipation control method is implemented.
[0046] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned server heat dissipation control method is implemented.
[0047] It can be seen that the present application is applied to a baseboard management controller, firstly obtaining the ambient temperature of the current target server, as well as the temperature and resource utilization of each component in the target server, obtaining the current ambient temperature and the current component temperature and current resource utilization of each component, then respectively calculating the difference between the current ambient temperature and the current component temperature of each component to obtain the current temperature difference, and determining the target utilization interval corresponding to the current resource utilization, and the target temperature difference interval corresponding to the current temperature difference; respectively obtaining the type of each component in the target server to obtain the target component type, and searching for the target fan heat dissipation control table corresponding to the target component type, the target fan heat dissipation control table being a table obtained by tuning the initial fan heat dissipation control table based on the correspondence between the component utilization interval, the temperature difference interval between the ambient temperature and the component temperature, and the fan speed; then searching for the fan speed value corresponding to the target utilization interval and the target temperature difference interval from the target fan heat dissipation control table to obtain the fan speed value corresponding to the corresponding component, and determining the maximum value from the fan speed values corresponding to each component, and using the maximum value as the current fan speed of the target server to perform heat dissipation control on the target server. The present application pre-creates a fan heat dissipation control table based on the correspondence between the difference between the ambient temperature and the component temperature, the component utilization interval and the fan speed interval. In this way, the fan speed value of the corresponding interval can be determined from the fan heat dissipation control table according to the difference between the current ambient temperature of the server and the temperature of each component, and the component utilization. Compared with the traditional heat dissipation control based only on the component temperature factor, the present application also combines the ambient temperature and utilization, so that the fan speed can be lowered as much as possible while meeting the basic heat dissipation requirements of the components, thereby achieving the purpose of reducing server power consumption and noise. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0049] Figure 1 This is a flow chart of a server heat dissipation control method disclosed in this application;
[0050] Figure 2 A specific Agent program processing flow chart disclosed in this application;
[0051] Figure 3 A specific data format diagram disclosed in this application;
[0052] Figure 4A specific data format diagram disclosed in this application;
[0053] Figure 5 This is a specific initial fan heat dissipation control schematic diagram disclosed in this application;
[0054] Figure 6 A specific target fan heat dissipation control expression disclosed in this application;
[0055] Figure 7 A flow chart of a specific server heat dissipation control method disclosed in this application;
[0056] Figure 8 This is a schematic diagram of the structure of a server heat dissipation control device disclosed in this application;
[0057] Fig. 9 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0058] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0059] The present application embodiment discloses a server heat dissipation control method, which is applied to a baseboard management controller, see Figure 1 As shown, the method includes:
[0060] Step S11: Acquire the current ambient temperature of the target server, and the temperature and resource utilization of each component in the target server, and obtain the current ambient temperature and the current component temperature and current resource utilization of each component.
[0061] It should be pointed out that the server heat dissipation control scheme proposed in this application is applied to the baseboard management controller (i.e., BMC). Specifically, the ambient temperature of the target server to be heat-dissipated can be obtained through the baseboard management controller according to a preset time period. The ambient temperature can be obtained by an environmental sensor located near the target server. At the same time, the temperature and resource utilization of each component in the target server are obtained to obtain the corresponding current ambient temperature and the current component temperature and current resource utilization of each component. Among them, the components include but are not limited to CPU (Central Processing Unit), memory, GPU (Graphic Processing Unit), RAID (Redundant Array of Independent Disks), NIC (Network Interface Card), hard disk, such as NVMe (Non-Volatile Memory Express), SSD (Solid State Drive), HDD (Hard Disk Drive), etc.
[0062] It should be noted that the step of obtaining the current ambient temperature of the target server, the temperature of each component in the target server and the resource utilization rate, and obtaining the current ambient temperature and the current component temperature and the current resource utilization rate of each component, specifically includes: obtaining first association information sent by an Agent program running in the operating system of the target server; the first association information includes the historical resource utilization rate of each component collected within a preset period and the corresponding component number and component type; collecting the historical temperature of each component in the chassis of the target server according to the preset period to obtain the historical component temperature, and associating the historical component temperature, the component type and the component number corresponding to each component to obtain second association information; collecting the historical resource utilization rate of each component and the corresponding component number and the corresponding component type ... obtaining the historical component temperature, the component type and the component number corresponding to each component according to the preset period; and obtaining the historical resource utilization rate of each component and the corresponding component type according to the preset period. Assume that the ambient temperature and fan speed of the target server are collected periodically to obtain the historical ambient temperature and historical fan speed; traverse the first associated information and the second associated information corresponding to each component according to the preset period to establish the correspondence between the historical ambient temperature, the historical fan speed, the historical resource utilization rate and the historical component temperature; calculate the difference between the historical ambient temperature and the historical component temperature corresponding to each component based on the correspondence to obtain the historical temperature difference; determine whether the historical temperature difference is credible based on the temperature difference change and the historical resource utilization change; if the historical temperature difference is credible, use the preset speed adjustment value to adjust the corresponding fan speed value in the initial fan heat dissipation control table to obtain the target fan heat dissipation control table. In this embodiment, refer to Figure 2As shown, the various components in the target server chassis can be classified in advance to obtain multiple component types, and then the Agent (a process file) program can be run in the target server's operating system (OS) according to a preset period to number the components of the same component type respectively to obtain the component number corresponding to each component. For example, the components of the same type, NVMe, SSD, and HDD, are numbered, and then the resource utilization of each component in the target server chassis is obtained to obtain the historical resource utilization, and the component type, component number and the historical resource utilization corresponding to each component are associated and aggregated to obtain the first associated information, and then the first associated information is sent to the BMC. Specifically, the data structure of the first associated information can be found in Figure 3 As shown, ComponentType represents the component type, ComponentId represents the component number, and ComponentUtilization represents the resource utilization of the component, and they are all integer data. In addition, when the BMC obtains the above-mentioned first association information sent by the Agent program, it can also collect the historical temperature of each component in the target server chassis according to a preset period to obtain the historical component temperature, and then associate and aggregate the historical component temperature, component type and component number corresponding to each component to obtain the second association information. For details, the data structure of the second association information can be found in Figure 4As shown, ComponentType represents the component type, ComponentId represents the component number, and ComponentTemp represents the component temperature; in addition, the BMC can also collect the ambient temperature and fan speed of the target server according to a preset period to obtain the corresponding historical ambient temperature and historical fan speed, and then traverse the first associated information and the second associated information corresponding to each component according to the preset period, so as to establish a correspondence between the historical ambient temperature, the historical fan speed, the historical resource utilization rate and the historical component temperature; further, based on the above correspondence, the difference between the historical ambient temperature and the historical component temperature corresponding to each component is calculated respectively to obtain the historical temperature difference, and then based on the temperature difference change and the historical resource utilization change, it is determined whether the historical temperature difference is credible. If the historical temperature difference is credible, the preset speed adjustment value (such as 1duty) is used to adjust the corresponding fan speed value in the initial fan heat dissipation control table, so as to obtain a target fan heat dissipation control table. It can be seen that under the condition that the temperature difference is credible, this solution pre-optimizes the initial fan heat dissipation control table based on the preset speed control value to create an optimized fan heat dissipation control table. In this way, when server heat dissipation control is required, the corresponding optimal fan speed value can be directly determined by looking up the table, thereby improving the efficiency of heat dissipation control. In addition, since the correspondence between historical ambient temperature, historical fan speed, historical resource utilization and historical component temperature is taken into account, compared with only considering the temperature factor (such as component temperature, ambient temperature, etc.), directly adjusting the fan to a higher speed, this solution also improves the accuracy of heat dissipation control.
[0063] In this embodiment, in order to avoid occupying the target server resources, the first association information and the second association information can be stored in a volatile storage medium, and during periodic updates, the corresponding historical information can be overwritten with the latest collected relevant information, thereby effectively reducing the occupation of server resources and saving server storage space. Specifically, traversing the first association information and the second association information corresponding to each component according to the preset period to establish the correspondence between the historical ambient temperature, the historical fan speed, the historical resource utilization and the historical component temperature can include: obtaining the first association information and the second association information corresponding to each component from the volatile storage medium according to the preset period, and traversing the first association information and the second association information corresponding to each component, thereby establishing the correspondence between the historical ambient temperature, the historical fan speed, the historical resource utilization and the historical component temperature.
[0064] Specifically, judging whether the historical temperature difference is credible based on the temperature difference change and the historical resource utilization change may include: under the conditions of the same utilization interval and the same temperature difference interval, speeding up the fan speed of the target server multiple times according to a preset speed-up value, and collecting the resource utilization, component temperature and corresponding temperature difference of the corresponding components after each speed-up to obtain the corresponding new resource utilization, new component temperature and new temperature difference; calculating the difference between the new temperature difference and the historical temperature difference after each speed-up to obtain a target difference, and judging whether the target difference is within a preset difference range and whether the new component temperature is higher than the historical component temperature; if the target difference is within the preset difference range and / or the new component temperature is higher than the historical component temperature, then counting the number of times the target difference is within the preset difference range and / or the new component temperature is higher than the historical component temperature to obtain the target number; judging whether the target number exceeds a first threshold, if the target number exceeds the first threshold, judging that the historical temperature difference is not credible, and if the target number does not exceed the first threshold, judging that the historical temperature difference is credible. In this embodiment, whether the temperature difference is credible can be determined based on the temperature difference change and the utilization change. Specifically, the fan speed of the target server can be increased multiple times according to the preset speed-up value under the conditions of the same utilization interval and the same temperature difference interval. For example, under the conditions of the same temperature difference interval and the utilization interval, the fan speed is increased multiple times, such as increasing 5duty. In the process of increasing, the resource utilization, component temperature and corresponding temperature difference of the corresponding components after each speed-up are collected respectively to obtain the corresponding new resource utilization, new component temperature and new temperature difference. Then, the difference between the new temperature difference after each speed-up and the historical temperature difference is calculated to obtain the target difference. Then, it is determined whether the target difference is within the preset difference range. , and whether the temperature of the new component is higher than the temperature of the historical component, that is, to determine whether there is a significant change in the temperature difference before and after the speed increase and whether a change opposite to the expectation occurs (speeding up is for cooling, if the temperature rises after speeding up, a change opposite to the expectation occurs). If the target difference is within the preset difference range and / or the temperature of the new component is higher than the temperature of the historical component, then the number of times the target difference is within the preset difference range and / or the temperature of the new component is higher than the temperature of the historical component is counted to obtain the target number of times, that is, the number of times the temperature difference has no significant change or has a change opposite to the expectation is counted. Further, it is determined whether the target number of times exceeds the first threshold (such as 10 times). If it exceeds, the historical temperature difference is determined to be unreliable, and if it does not exceed, the historical temperature difference is determined to be credible. For example, when the temperature difference is 20 and the resource utilization rate is 20%, at a reasonable speed, after the speed is increased by 5 duty, if the temperature difference still increases, it is considered that the temperature difference is less credible (i.e., unreliable).
[0065] Specifically, the use of the preset speed adjustment value to tune the corresponding fan speed value in the initial fan heat dissipation control table to obtain the target fan heat dissipation control table may include: counting the number of times the new temperature difference is lower than the historical temperature difference after each speed increase, or the new resource utilization rate is higher than the historical resource utilization rate and the new temperature difference and the historical temperature difference are within the preset difference range, to obtain a first number; judging whether the first number exceeds a second threshold, if the first number exceeds the second threshold, lowering the corresponding fan speed value according to the preset speed adjustment value, to obtain a first speed value after speed adjustment; counting the number of times the new temperature difference is higher than the historical temperature difference after each speed increase, or the new resource utilization rate is lower than the historical resource utilization rate and the new temperature difference and the historical temperature difference are within the preset difference range, to obtain a second number; judging whether the second number exceeds the second threshold, if the second number exceeds the second threshold, increasing the corresponding fan speed value according to the preset speed adjustment value, to obtain a second speed value after speed adjustment; replacing the corresponding fan speed values in the initial fan heat dissipation control table with the first speed value after speed adjustment and the second speed value after speed adjustment to obtain the target fan heat dissipation control table. In this embodiment, under the condition that the temperature difference is credible, the number of times the new temperature difference after each speed increase is lower than the historical temperature difference, or the new resource utilization rate is higher than the historical resource utilization rate and the new temperature difference and the historical temperature difference are within the preset difference range can be counted, that is, the situation where the temperature difference decreases, or the utilization rate increases but the temperature difference remains unchanged can be counted to obtain the first number, and then it is determined whether the first number exceeds the second threshold (such as 10 times). If it exceeds, the corresponding fan speed value (referring to the fan speed value before speed regulation) can be lowered according to the preset speed regulation value (such as 1duty) to obtain the speed value after the first speed regulation, and then the new temperature difference after each speed increase is higher than the historical temperature difference, or the new resource utilization rate is higher than the historical resource utilization rate. The number of times the utilization rate is lower than the historical resource utilization rate and the new temperature difference is within the preset difference range with the historical temperature difference, that is, the situation where the temperature difference increases, or the utilization rate decreases but the temperature difference remains unchanged, is counted to obtain the second number; further, it is determined whether the second number exceeds the second threshold. If so, the corresponding fan speed value is increased according to the preset speed adjustment value (such as 1duty). It should be pointed out that the maximum value can only reach the value in the initial fan heat dissipation control table, and the second speed value after speed adjustment is obtained. Then, the first speed value after speed adjustment and the second speed value after speed adjustment replace the corresponding fan speed value in the initial fan heat dissipation control table. By continuously collecting information and optimizing, the following can be obtained. Figure 6The target fan heat dissipation control table shown. It can be seen that this embodiment records the change trend of the temperature difference under the same state (temperature difference interval and utilization interval), and confirms the temperature difference credibility interval of the component by fine-tuning the fan speed value and checking the trend of the temperature difference change. The fan speed in this state can be slowly reduced, and whether there is a temperature difference change in the actual effect can be checked to confirm whether the current speed meets the actual requirements, thereby establishing a fan speed control table with a lower speed value, which is used for real-time fan speed control. By continuously adjusting the fan speed value, a lower fan speed can be used for control while meeting the heat dissipation requirements, thereby achieving the purpose of reducing server power consumption and noise.
[0066] Furthermore, it can also include: if the historical temperature difference is credible, then the temperature difference value that appears most in the new temperature difference after each speed-up is counted, and the optimal temperature difference value corresponding to the corresponding utilization interval is obtained. In this embodiment, when the temperature difference is credible, that is, in the case of the same temperature difference interval and utilization interval, the most likely temperature difference value under a certain utilization interval and the corresponding temperature difference interval range can be recorded. Specifically, the temperature difference value that appears most in the new temperature difference after each speed-up can be counted, so as to obtain the optimal temperature difference value corresponding to the corresponding utilization interval. Through this optimal temperature difference value, when only the component resource utilization is obtained, the corresponding fan speed value can be directly determined from the target fan heat dissipation control table according to the corresponding optimal temperature difference value for speed control, thereby avoiding directly and roughly raising the speed value to a higher speed, thereby reducing the power consumption and noise of the server.
[0067] Step S12: respectively calculating the difference between the current ambient temperature of each component and the current component temperature to obtain the current temperature difference, and determining the target utilization interval corresponding to the current resource utilization and the target temperature difference interval corresponding to the current temperature difference.
[0068] In this embodiment, after obtaining the current ambient temperature and the current component temperature and current resource utilization of each component, the difference between the current ambient temperature and the current component temperature corresponding to each component is further calculated to obtain the current temperature difference, and then the target utilization range corresponding to the above current resource utilization and the target temperature difference range corresponding to the above current temperature difference are determined.
[0069] It should be pointed out that the present application has pre-segmented the temperature difference and resource utilization of different types of components, and the specific division rules can be obtained based on experience. For example, the temperature difference of the components is segmented into <10, [10, 15), [15, 20), [20, 23), [23, 26), [26, 28), [28, 30), >=30; the resource utilization of the components is segmented into [0%, 25%), [25%, 40%), [40%, 50%), [50%, 60%), [60%, 80%), [80%, 100%), and the above segmentation information is stored in the BMC according to a preset data structure. In this way, the target interval corresponding to the current temperature difference and the current component resource utilization can be obtained directly by searching the segmentation information.
[0070] Step S13: respectively obtain the type of each component in the target server, obtain the target component type, and search for the target fan heat dissipation control table corresponding to the target component type; the target fan heat dissipation control table is a table obtained by tuning the initial fan heat dissipation control table based on the correspondence between the component utilization interval, the temperature difference interval between the ambient temperature and the component temperature, and the fan speed.
[0071] In this embodiment, after determining the target utilization interval corresponding to the current resource utilization and the target temperature difference interval corresponding to the current temperature difference, the numbers of the components in the target server can be obtained respectively, and then the target component type corresponding to the number is found, and then the target fan heat dissipation control table corresponding to the target component type is found; wherein the target fan heat dissipation control table is a table obtained by tuning the initial fan heat dissipation control table based on the correspondence between the component utilization interval, the temperature difference interval between the ambient temperature and the component temperature, and the fan speed. For details, see Figure 5 and Figure 6 As shown, through Figure 5 By adjusting the fan speed value in the initial fan cooling control table in Figure 6 The target fan heat dissipation control table shown, wherein the initial fan heat dissipation control table is a heat dissipation control table obtained based on experience.
[0072] Step S14: Search the fan speed value corresponding to the target utilization interval and the target temperature difference interval from the target fan heat dissipation control table, obtain the fan speed value corresponding to the corresponding component, determine the maximum value from the fan speed values corresponding to each component, and use the maximum value as the current fan speed of the target server to perform heat dissipation control on the target server.
[0073] In this embodiment, after finding the target fan heat dissipation control table corresponding to the target component type, the fan speed value corresponding to the above target utilization interval and the above target temperature difference interval can be directly found in the target fan heat dissipation control table to obtain the fan speed value corresponding to the corresponding component, for example, see Figure 6 As shown in the figure, when the target utilization interval is [25%, 40%) and the target temperature difference interval is [26, 28), the corresponding fan speed value is 46; then, the maximum value is determined from the fan speed values corresponding to all components, and the maximum value is used as the current fan speed of the target server, so that the speed of the target server is regulated according to the fan speed.
[0074] In this embodiment, it may also include: if the current component temperature and / or the current resource utilization cannot be obtained, the speed of the fan of the target server is adjusted to the preset fan speed according to the preset heat dissipation abnormal speed adjustment curve. In this embodiment, considering that the BMC cannot normally obtain the component (such as hard disk) temperature and / or resource utilization when obtaining the component temperature, in order to ensure that the heat dissipation regulation can be performed normally in this case, instead of directly raising the fan to a very high speed, the speed of the fan of the target server can be directly adjusted to the preset fan speed, such as 90duty, according to the preset heat dissipation abnormal speed adjustment curve, thereby reducing the power consumption of the server, reducing the noise of the server, and effectively avoiding permanent damage caused by overheating of the component.
[0075] It can be seen that the embodiment of the present application is applied to a baseboard management controller, firstly, the ambient temperature of the current target server, and the temperature and resource utilization of each component in the target server are obtained, and the current ambient temperature and the current component temperature and the current resource utilization of each component are obtained, and then the difference between the current ambient temperature and the current component temperature of each component is calculated to obtain the current temperature difference, and the target utilization interval corresponding to the current resource utilization and the target temperature difference interval corresponding to the current temperature difference are determined; the type of each component in the target server is obtained to obtain the target component type, and the target fan heat dissipation control table corresponding to the target component type is searched, and the target fan heat dissipation control table is a table obtained by tuning the initial fan heat dissipation control table based on the correspondence between the component utilization interval, the temperature difference interval between the ambient temperature and the component temperature, and the fan speed; then, the fan speed value corresponding to the target utilization interval and the target temperature difference interval is searched from the target fan heat dissipation control table to obtain the fan speed value corresponding to the corresponding component, and the maximum value is determined from the fan speed values corresponding to each component, and the maximum value is used as the current fan speed of the target server to perform heat dissipation control on the target server. The embodiment of the present application creates a fan heat dissipation control table in advance based on the correspondence between the difference between the ambient temperature and the component temperature, the component utilization interval and the fan speed interval. In this way, the fan speed value of the corresponding interval can be determined from the fan heat dissipation control table according to the difference between the current ambient temperature of the server and the temperature of each component, and the component utilization. Compared with the traditional heat dissipation control based only on the factor of component temperature, the embodiment of the present application also combines the ambient temperature and utilization. Therefore, the fan speed can be lowered as much as possible while meeting the basic heat dissipation requirements of the components, thereby achieving the purpose of reducing server power consumption and noise.
[0076] The present application embodiment discloses a specific server heat dissipation control method, which is applied to a baseboard management controller, see Figure 7 As shown, the method includes:
[0077] Step S21: Acquire the current ambient temperature of the target server, and the temperature and resource utilization of each component in the target server, and obtain the current ambient temperature and the current component temperature and current resource utilization of each component.
[0078] Step S22: Calculate the difference between the current ambient temperature of each component and the current component temperature to obtain the current temperature difference, and determine whether the current temperature difference is credible based on the temperature difference change and the historical resource utilization change.
[0079] In this embodiment, after respectively calculating the difference between the current ambient temperature of the component and the current component temperature to obtain the current temperature difference, it is possible to determine whether the current temperature difference is credible based on the temperature difference change and the historical resource utilization rate change. The specific determination process can refer to the corresponding content in the above steps, which will not be repeated here.
[0080] Step S23: If the current temperature difference is credible, determine the target utilization interval corresponding to the current resource utilization and the target temperature difference interval corresponding to the current temperature difference.
[0081] In this embodiment, if the current temperature difference is credible, the target utilization rate interval corresponding to the current resource utilization rate and the target temperature difference interval corresponding to the current temperature difference are further determined.
[0082] Step S24: respectively obtain the type of each component in the target server, obtain the target component type, and search for the target fan heat dissipation control table corresponding to the target component type; the target fan heat dissipation control table is a table obtained by tuning the initial fan heat dissipation control table based on the correspondence between the component utilization range, the temperature difference range between the ambient temperature and the component temperature, and the fan speed.
[0083] Step S25: Search the fan speed value corresponding to the target utilization interval and the target temperature difference interval from the target fan heat dissipation control table, obtain the fan speed value corresponding to the corresponding component, determine the maximum value from the fan speed values corresponding to each component, and use the maximum value as the current fan speed of the target server to perform heat dissipation control on the target server.
[0084] Step S26: If the current temperature difference is not credible or the current component temperature cannot be obtained, the fan speed value corresponding to the current resource utilization and the corresponding optimal temperature difference value is searched from the target fan heat dissipation control table to obtain the target speed value, and the target speed value is used to control the speed of the fan of the target server.
[0085] In this embodiment, if the current temperature difference is not credible or the current component temperature of the component cannot be obtained (such as the component temperature is unreadable), the optimal temperature difference corresponding to the current resource utilization is first determined, and then the fan speed value corresponding to the current resource utilization and the optimal temperature difference is searched from the target fan heat dissipation control table to obtain the target speed value, and then the speed of the fan of the target server is regulated by the target speed value. For example, when only the resource utilization of the component can be obtained, but the component temperature cannot be obtained or the temperature difference is not credible, the optimal temperature difference corresponding to the current component resource utilization (such as 25%) is searched, such as 20 degrees, and the fan speed value corresponding to the resource utilization and the optimal temperature difference is searched from the target fan heat dissipation control table (such as 27duty). At this time, the speed of the fan of the server can be regulated according to 27duty. Of course, the preset speed value can also be slightly increased based on the fan speed value found, so as to more effectively perform heat dissipation regulation, such as using 30duty, which is larger than 27duty, for heat dissipation regulation instead of using 90duty for speed regulation.
[0086] For more specific processing procedures of the above steps S21, S24, and S25, reference may be made to the corresponding contents disclosed in the aforementioned embodiments, which will not be described in detail here.
[0087] It can be seen that in the embodiment of the present application, if the current temperature difference is not credible or the current component temperature cannot be obtained, the fan speed value corresponding to the current resource utilization and the corresponding optimal temperature difference value is found from the target fan heat dissipation control table to obtain the target speed value, and the target speed value is used to control the speed of the fan of the target server. It can be seen that the present application takes into account the problem that some components have slow temperature information updates (such as hard disks). In order to enable heat dissipation control in this case, the heat accumulation problem that may exist in the components can be identified in advance, and an optimal temperature difference value can be set in advance, so that the component temperature difference in the credible interval is used for heat dissipation control, avoiding directly calling high speed, achieving the purpose of reducing the power consumption and noise of the server, and effectively avoiding damage caused by overheating of components.
[0088] Correspondingly, the embodiment of the present application also discloses a server heat dissipation control device, which is applied to a baseboard management controller, see Figure 8 As shown, the device comprises:
[0089] The information acquisition module 11 is used to acquire the current ambient temperature of the target server, and the temperature and resource utilization of each component in the target server, and obtain the current ambient temperature and the current component temperature and current resource utilization of each component;
[0090] The difference calculation module 12 is used to calculate the difference between the current ambient temperature of each component and the current component temperature to obtain the current temperature difference;
[0091] An interval determination module 13 is used to determine a target utilization interval corresponding to the current resource utilization, and a target temperature difference interval corresponding to the current temperature difference;
[0092] A type acquisition module 14 is used to respectively acquire the type of each component in the target server to obtain the target component type;
[0093] A first search module 15 is used to search for a target fan heat dissipation control table corresponding to the target component type; the target fan heat dissipation control table is a table obtained by optimizing the initial fan heat dissipation control table based on the correspondence between the component utilization interval, the temperature difference interval between the ambient temperature and the component temperature, and the fan speed;
[0094] A second search module 16 is used to search the fan speed value corresponding to the target utilization interval and the target temperature difference interval from the target fan heat dissipation control table to obtain the fan speed value corresponding to the corresponding component;
[0095] The speed control module 17 is used to determine a maximum value from the fan speed values corresponding to each component, and use the maximum value as the current fan speed of the target server to perform heat dissipation control on the target server.
[0096] Among them, the specific working processes of the above-mentioned modules can refer to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.
[0097] It can be seen that the embodiment of the present application is applied to a baseboard management controller, firstly, the ambient temperature of the current target server, and the temperature and resource utilization of each component in the target server are obtained, and the current ambient temperature and the current component temperature and the current resource utilization of each component are obtained, and then the difference between the current ambient temperature and the current component temperature of each component is calculated to obtain the current temperature difference, and the target utilization interval corresponding to the current resource utilization and the target temperature difference interval corresponding to the current temperature difference are determined; the type of each component in the target server is obtained to obtain the target component type, and the target fan heat dissipation control table corresponding to the target component type is searched, and the target fan heat dissipation control table is a table obtained by tuning the initial fan heat dissipation control table based on the correspondence between the component utilization interval, the temperature difference interval between the ambient temperature and the component temperature, and the fan speed; then, the fan speed value corresponding to the target utilization interval and the target temperature difference interval is searched from the target fan heat dissipation control table to obtain the fan speed value corresponding to the corresponding component, and the maximum value is determined from the fan speed values corresponding to each component, and the maximum value is used as the current fan speed of the target server to perform heat dissipation control on the target server. The embodiment of the present application creates a fan heat dissipation control table in advance based on the correspondence between the difference between the ambient temperature and the component temperature, the component utilization interval and the fan speed interval. In this way, the fan speed value of the corresponding interval can be determined from the fan heat dissipation control table according to the difference between the current ambient temperature of the server and the temperature of each component, and the component utilization. Compared with the traditional heat dissipation control based only on the factor of component temperature, the embodiment of the present application also combines the ambient temperature and utilization. Therefore, the fan speed can be lowered as much as possible while meeting the basic heat dissipation requirements of the components, thereby achieving the purpose of reducing server power consumption and noise.
[0098] In some specific embodiments, before the information acquisition module 11, the following may also be included:
[0099] A first information acquisition unit, configured to acquire first associated information sent by an Agent program running in the operating system of the target server; the first associated information includes historical resource utilization rates of various components collected within a preset period and corresponding component numbers and component types;
[0100] A second information acquisition unit is used to collect the historical temperature of each component in the chassis of the target server according to the preset period to obtain the historical component temperature, and associate the historical component temperature, the component type and the component number corresponding to each component to obtain second association information;
[0101] A first information collection unit is used to collect the ambient temperature and fan speed of the target server according to the preset period to obtain the historical ambient temperature and the historical fan speed;
[0102] A traversal unit, configured to traverse the first association information and the second association information corresponding to each component according to the preset period, so as to establish a correspondence between the historical ambient temperature, the historical fan speed, the historical resource utilization rate and the historical component temperature;
[0103] A first difference calculation unit, configured to calculate the difference between the historical ambient temperature and the historical component temperature corresponding to each component based on the corresponding relationship, to obtain a historical temperature difference;
[0104] A first judgment unit, configured to judge whether the historical temperature difference is credible based on the temperature difference change and the historical resource utilization rate change;
[0105] The tuning unit is configured to tune the corresponding fan speed value in the initial fan heat dissipation control table using a preset speed adjustment value if the historical temperature difference is credible, so as to obtain the target fan heat dissipation control table.
[0106] In some specific embodiments, the first determination unit may specifically include:
[0107] A speed-up unit, used to increase the fan speed of the target server multiple times according to a preset speed-up value under the conditions of the same utilization interval and the same temperature difference interval;
[0108] The second information collection unit is used to collect the resource utilization rate, component temperature and corresponding temperature difference of the corresponding components after each speed increase, and obtain the corresponding new resource utilization rate, new component temperature and new temperature difference;
[0109] A second difference calculation unit is used to calculate the difference between the new temperature difference and the historical temperature difference after each speed increase to obtain a target difference;
[0110] a second judgment unit, configured to judge whether the target difference is within a preset difference range, and whether the new component temperature is higher than the historical component temperature;
[0111] A first statistical unit is used for, if the target difference is within a preset difference range and / or the new component temperature is higher than the historical component temperature, to count the number of times the target difference is within the preset difference range and / or the new component temperature is higher than the historical component temperature, to obtain a target number;
[0112] A third judging unit, configured to judge whether the target number exceeds a first threshold;
[0113] a first determination unit, configured to determine that the historical temperature difference is unreliable if the target number of times exceeds the first threshold;
[0114] The second determination unit is configured to determine that the historical temperature difference is credible if the target number of times does not exceed the first threshold value.
[0115] In some specific embodiments, the tuning unit may specifically include:
[0116] A second statistical unit is used to count the number of times after each speed increase that the new temperature difference is lower than the historical temperature difference, or the new resource utilization rate is higher than the historical resource utilization rate and the new temperature difference and the historical temperature difference are within the preset difference range, to obtain the first number;
[0117] A fourth determination unit, configured to determine whether the first number of times exceeds a second threshold;
[0118] A first speed regulating unit, configured to reduce the corresponding fan speed value according to a preset speed regulating value to obtain a first speed regulating value if the first number exceeds the second threshold;
[0119] A third statistical unit is used to count the number of times after each speed increase that the new temperature difference is higher than the historical temperature difference, or the new resource utilization rate is lower than the historical resource utilization rate and the new temperature difference and the historical temperature difference are within the preset difference range, to obtain a second number;
[0120] A fifth judging unit, configured to judge whether the second number exceeds the second threshold;
[0121] A second speed regulating unit, configured to increase the corresponding fan speed value according to the preset speed regulating value to obtain a second speed regulating value if the second number exceeds the second threshold;
[0122] The speed value replacement unit is used to replace the corresponding fan speed values in the initial fan heat dissipation control table with the first speed value after speed adjustment and the second speed value after speed adjustment to obtain the target fan heat dissipation control table.
[0123] In some specific embodiments, the server heat dissipation control device may further include:
[0124] The fourth statistical unit is used to count the temperature difference values that appear most frequently in the new temperature difference after each speed increase if the historical temperature difference is credible, so as to obtain the optimal temperature difference value corresponding to the corresponding utilization rate interval.
[0125] In some specific embodiments, the interval determination module 13 may specifically include:
[0126] A sixth judgment unit, configured to judge whether the current temperature difference is credible based on the temperature difference change and the historical resource utilization rate change;
[0127] an interval determination unit, configured to determine a target utilization interval corresponding to the current resource utilization and a target temperature difference interval corresponding to the current temperature difference if the current temperature difference is credible;
[0128] A search and control unit is used to search for a fan speed value corresponding to the current resource utilization and the corresponding optimal temperature difference value from the target fan heat dissipation control table if the current temperature difference is unreliable or the current component temperature cannot be obtained, obtain a target speed value, and use the target speed value to control the speed of the fan of the target server.
[0129] In some specific embodiments, the server heat dissipation control device may further include:
[0130] The speed control unit is used to control the speed of the fan of the target server to a preset fan speed according to a preset heat dissipation abnormal speed control curve if the current component temperature and / or the current resource utilization cannot be obtained.
[0131] Furthermore, the present application also discloses an electronic device. Fig. 9 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.
[0132] Fig. 9 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the server heat dissipation control method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0133] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0134] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0135] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the server heat dissipation control method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.
[0136] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the server heat dissipation control method disclosed above is implemented. For the specific steps of the method, reference may be made to the corresponding contents disclosed in the above embodiments, and no further description will be given here.
[0137] Furthermore, an embodiment of the present application also discloses a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the server heat dissipation control method disclosed above.
[0138] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0139] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0140] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0141] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0142] The above is a detailed introduction to a server heat dissipation control method, device, equipment and storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A server heat dissipation control method, characterized in that: Applicable to baseboard management controllers, including: Acquire the current ambient temperature of the target server, as well as the temperature and resource utilization of each component in the target server, to obtain the current ambient temperature and the current component temperature and current resource utilization of each component; Calculate the difference between the current ambient temperature of each component and the current component temperature to obtain a current temperature difference, and determine a target utilization interval corresponding to the current resource utilization and a target temperature difference interval corresponding to the current temperature difference; Respectively obtain the type of each component in the target server, obtain the target component type, and search for a target fan heat dissipation control table corresponding to the target component type; the target fan heat dissipation control table is a table obtained by tuning the initial fan heat dissipation control table based on the correspondence between the component utilization interval, the temperature difference interval between the ambient temperature and the component temperature, and the fan speed; The fan speed value corresponding to the target utilization interval and the target temperature difference interval is searched from the target fan heat dissipation control table to obtain the fan speed value corresponding to the corresponding component, and the maximum value is determined from the fan speed values corresponding to each component, and the maximum value is used as the current fan speed of the target server to perform heat dissipation control on the target server.
2. The server heat dissipation control method according to claim 1, characterized in that: The step of obtaining the current ambient temperature of the target server, and the temperature and resource utilization of each component in the target server, and obtaining the current ambient temperature and the current component temperature and current resource utilization of each component, further includes: Acquire first association information sent by an Agent program running in the operating system of the target server; the first association information includes historical resource utilization of each component collected within a preset period and the corresponding component number and component type; Collecting historical temperatures of components in the target server chassis according to the preset period to obtain historical component temperatures, and associating the historical component temperatures, component types, and component numbers corresponding to each component to obtain second association information; Collect the ambient temperature and fan speed of the target server according to the preset period to obtain the historical ambient temperature and the historical fan speed; Traversing the first association information and the second association information corresponding to each component according to the preset period to establish a correspondence between the historical ambient temperature, the historical fan speed, the historical resource utilization rate, and the historical component temperature; Based on the corresponding relationship, the difference between the historical ambient temperature and the historical component temperature corresponding to each component is calculated to obtain the historical temperature difference; Determine whether the historical temperature difference is credible based on the temperature difference change and the historical resource utilization rate change; If the historical temperature difference is credible, the corresponding fan speed value in the initial fan heat dissipation control table is optimized using the preset speed adjustment value to obtain the target fan heat dissipation control table.
3. The server heat dissipation control method according to claim 2, characterized in that: The judging whether the historical temperature difference is credible based on the temperature difference change and the historical resource utilization rate change includes: Under the conditions of the same utilization interval and the same temperature difference interval, the fan speed of the target server is increased multiple times according to the preset speed-up value, and the resource utilization, component temperature and corresponding temperature difference of the corresponding components after each speed-up are respectively collected to obtain the corresponding new resource utilization, new component temperature and new temperature difference; Calculate the difference between the new temperature difference and the historical temperature difference after each speed increase to obtain a target difference, and determine whether the target difference is within a preset difference range and whether the new component temperature is higher than the historical component temperature; If the target difference is within the preset difference range and / or the new component temperature is higher than the historical component temperature, the number of times the target difference is within the preset difference range and / or the new component temperature is higher than the historical component temperature is counted to obtain the target number; It is determined whether the target number exceeds a first threshold value. If the target number exceeds the first threshold value, it is determined that the historical temperature difference is not credible. If the target number does not exceed the first threshold value, it is determined that the historical temperature difference is credible.
4. The server heat dissipation control method according to claim 3, characterized in that: The method of optimizing the corresponding fan speed values in the initial fan heat dissipation control table by using the preset speed adjustment value to obtain the target fan heat dissipation control table includes: Counting the number of times after each speed increase the new temperature difference is lower than the historical temperature difference, or the new resource utilization rate is higher than the historical resource utilization rate and the new temperature difference and the historical temperature difference are within the preset difference range, to obtain the first number; Determine whether the first number exceeds a second threshold value, and if the first number exceeds the second threshold value, reduce the corresponding fan speed value according to a preset speed adjustment value to obtain a first speed value after speed adjustment; Counting the number of times after each speed increase the new temperature difference is higher than the historical temperature difference, or the new resource utilization rate is lower than the historical resource utilization rate and the new temperature difference and the historical temperature difference are within the preset difference range, to obtain a second number; Determine whether the second number exceeds the second threshold value, and if the second number exceeds the second threshold value, increase the corresponding fan speed value according to the preset speed adjustment value to obtain a second speed value after speed adjustment; The first speed-adjusted speed value and the second speed-adjusted speed value are used to replace the corresponding fan speed values in the initial fan heat dissipation control table to obtain the target fan heat dissipation control table.
5. The server heat dissipation control method according to claim 4, characterized in that: Also includes: If the historical temperature difference is credible, the temperature difference value that appears most frequently in the new temperature difference after each speed increase is counted to obtain the optimal temperature difference value corresponding to the corresponding utilization rate interval.
6. The server heat dissipation control method according to claim 5, characterized in that: The determining of the target utilization interval corresponding to the current resource utilization and the target temperature difference interval corresponding to the current temperature difference includes: Determine whether the current temperature difference is credible based on the temperature difference change and the historical resource utilization rate change; If the current temperature difference is credible, determining a target utilization interval corresponding to the current resource utilization and a target temperature difference interval corresponding to the current temperature difference; If the current temperature difference is unreliable or the current component temperature cannot be obtained, the fan speed value corresponding to the current resource utilization and the corresponding optimal temperature difference value is searched from the target fan heat dissipation control table to obtain the target speed value, and the target speed value is used to control the speed of the fan of the target server.
7. The server heat dissipation control method according to any one of claims 1 to 6, characterized in that: Also includes: If the current component temperature and / or the current resource utilization cannot be obtained, the speed of the fan of the target server is regulated to a preset fan speed according to a preset abnormal heat dissipation speed regulation curve.
8. A server heat dissipation control device, characterized in that: Applicable to baseboard management controllers, including: An information acquisition module is used to acquire the current ambient temperature of the target server, as well as the temperature and resource utilization of each component in the target server, to obtain the current ambient temperature and the current component temperature and current resource utilization of each component; A difference calculation module, used to calculate the difference between the current ambient temperature of each component and the current component temperature, to obtain a current temperature difference; An interval determination module, used to determine a target utilization interval corresponding to the current resource utilization, and a target temperature difference interval corresponding to the current temperature difference; A type acquisition module, used to respectively acquire the type of each component in the target server to obtain the target component type; A first search module is used to search for a target fan heat dissipation control table corresponding to the target component type; the target fan heat dissipation control table is a table obtained by optimizing the initial fan heat dissipation control table based on the correspondence between the component utilization interval, the temperature difference interval between the ambient temperature and the component temperature, and the fan speed; A second search module is used to search the fan speed value corresponding to the target utilization interval and the target temperature difference interval from the target fan heat dissipation control table to obtain the fan speed value corresponding to the corresponding component; The speed control module is used to determine a maximum value from the fan speed values corresponding to each component, and use the maximum value as the current fan speed of the target server to perform heat dissipation control on the target server.
9. An electronic device, characterized in that: It comprises a processor and a memory; wherein, when the processor executes the computer program stored in the memory, the server heat dissipation control method as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the server heat dissipation control method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Server heat dissipation regulation and control method and device
CN119739269A
A server heat dissipation regulation method and device
CN119739269B
Server heat dissipation regulation and control method, device and equipment and readable storage medium
CN120523690A
Server heat dissipation control method, device, equipment and readable storage medium
CN120523690B
Server fan regulation and control method and electronic equipment
CN120743071A
