A temperature adaptive control method, device and system for a computer host
By building a temperature control model and adjusting the PID controller to dynamically regulate the cooling power, the problem of low heat dissipation efficiency of the computer host in extreme environments is solved, and more efficient temperature management and system stability are achieved.
Patent Information
- Application Number
- CN202410865907.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-01
AI Technical Summary
Computer hosts are difficult to effectively dissipate heat in extreme temperature and humidity environments. Existing technology fails to fully consider the external ambient temperature and internal hardware cooling requirements, resulting in the inability to effectively regulate temperature, affecting performance and increasing the risk of failure.
By acquiring the temperature data of various hardware inside the computer host and the external environment, we build a temperature control model, analyze the hardware load and temperature fluctuations, calculate the environmental adaptability index, adjust the differential coefficient of the PID controller, and dynamically regulate the cooling power to achieve adaptive temperature control. .
It improves the heat dissipation efficiency of the computer host in complex environments, shortens the time to reach the normal temperature range, enhances the stability and reliability of the system, and avoids damage caused by overheating or overcooling.
Smart Images

Figure CN118466627B
Abstract
Description
Technical Field
[0001] The present application relates to the field of temperature control technology, and in particular to a temperature adaptive control method, device and system for a computer host. Background Art
[0002] The mainframe is a computer system designed for industrial environments. It has high stability, durability and adaptability, and can operate reliably under harsh conditions such as extreme temperature, humidity, dust and vibration. Its main functions include achieving precise real-time control, processing multiple tasks, collecting and analyzing data, and remote monitoring and control through network connections. When the computer is running, the appropriate operating temperature can ensure the optimal performance of electronic components and prevent damage caused by overheating or overcooling. Effective temperature management helps reduce system failures, extend the service life of equipment, and ensure the continuity and reliability of industrial automation processes. In addition, energy-saving temperature control systems can reduce operating costs while meeting safety standards and certification requirements, and enhancing the adaptability of the mainframe in different environmental conditions.
[0003] Due to the shell and internal structure design of the computer host, as well as the extreme temperature and humidity conditions it may face in an industrial environment, the heat generated by the internal hardware is difficult to dissipate effectively through traditional heat dissipation methods. For example, key components such as CPU and GPU will generate a lot of heat when working under high load. If this heat cannot be quickly transferred to the external environment, it may cause the component temperature to rise, thereby affecting performance and increasing the risk of failure. In addition, the heat dissipation system of the computer host usually needs to maintain stable operation under a variety of environmental conditions, including high temperature, low temperature, high humidity and dust. The temperature change of the external environment has a key impact on the heat dissipation system. In a high temperature environment, the heat dissipation system cannot effectively absorb and dissipate the heat generated by the internal hardware. Most of the existing technologies set a temperature threshold, and the heat dissipation starts when the host reaches the threshold. However, this method does not take into account the harsh external environment temperature and the urgency of the internal hardware's cooling needs, resulting in the inability to effectively dissipate heat due to the complex changes in internal and external temperatures. Summary of the invention
[0004] In order to solve the above technical problems, the purpose of this application is to provide a temperature adaptive control method, device and system for a computer host. The technical solutions adopted are as follows:
[0005] In a first aspect, an embodiment of the present application provides a temperature adaptive control method for a computer host, the method comprising the following steps:
[0006] S1, when the computer host is running, obtain the temperature of each hardware inside the computer host and the external environment temperature;
[0007] S2, constructing a temperature control model based on the temperature data inside and outside the computer host; the temperature control model is used to adjust the temperature of the computer host at the current moment according to the temperature of each hardware inside the computer host and the external environment temperature;
[0008] Constructing the temperature control model specifically includes the following steps:
[0009] A1, according to the temperature change trend and local temperature fluctuation of each hardware inside the host at each collection time, determine the local hardware load of each hardware inside the host at each collection time;
[0010] A2: Analyze the local hardware load and temperature fluctuation range of all hardware at each collection time to obtain the overall heat dissipation requirements of the host at each collection time;
[0011] A3, combining the correlation and synchronization between the external environment temperature and the temperature of each hardware inside the host, to obtain the host's environmental adaptability index;
[0012] A4, using the environmental adaptability index to correct the overall heat dissipation demand, and obtain the dynamic heat dissipation demand factor of the host at each collection moment;
[0013] A5, uses the dynamic heat dissipation demand factor to adjust the differential coefficient of the PID controller, predicts the control variable of the cooling power of the computer host at the current moment, and regulates the temperature of the computer host at the current moment.
[0014] Preferably, the temperatures of various hardware inside the computer host obtained in S1 constitute a temperature sequence of each hardware; and the ambient temperature outside the computer host is obtained to constitute an external temperature sequence.
[0015] Preferably, the method for determining the local hardware load at each acquisition moment includes:
[0016] For any element in the temperature sequence of each hardware, obtain the local temperature change trend, temperature fluctuation and overall temperature change trend within a preset window centered on the any element;
[0017] The local temperature change trend, temperature fluctuation and overall temperature change trend of any element are forwardly integrated to determine the local hardware load of any element at the acquisition time.
[0018] Preferably, the local temperature change trend is the mean difference between all adjacent elements within the preset window of any element, and the fluctuation is the standard deviation of all elements within the preset window of any element; the change trend is the slope of the fitting straight line obtained by straight-line fitting of all elements within the preset window of any element.
[0019] Preferably, the method for acquiring the overall heat dissipation demand at each collection moment includes:
[0020] Obtain the average value of the slope difference of the fitting straight line of the temperature series of any two hardware in all the same acquisition time windows, and record it as the first difference factor between the temperature series of any two hardware;
[0021] Calculate the range in the temperature series of each hardware, and record the range difference between any two temperature series of hardware as the second difference factor between any two temperature series of hardware;
[0022] Calculate the product of the first difference factor and the second difference factor as the first influencing factor between the temperature series of any two hardware;
[0023] Calculate the product of the local hardware load difference at each acquisition time in the temperature series of any two hardware and the first influencing factor as the second influencing factor at each acquisition time in the temperature series of any two hardware;
[0024] The average value of the second influencing factors of the temperature series of all arbitrary two hardware at each collection moment is taken as the overall heat dissipation requirement of the host at each collection moment.
[0025] Preferably, the method for obtaining the environmental adaptability index includes:
[0026] Obtain the correlation and fractal dimension difference between the temperature series of each hardware and the external temperature series respectively;
[0027] The mean of the correlation between the external temperature series and the temperature series of all hardware is taken as the similarity;
[0028] The average value of the fractal dimension difference between the external temperature series and the temperature series of all hardware is taken as the synchronization difference;
[0029] The similarity and the synchronization difference are reversely fused to determine the environmental adaptability index of the overall temperature change of the host.
[0030] Preferably, the dynamic heat dissipation demand factor at each collection moment is obtained by multiplying the overall heat dissipation demand at each collection moment by the environmental adaptability index.
[0031] Preferably, the method of using the dynamic heat dissipation demand factor to adjust the differential coefficient of the PID controller and predicting the control variable of the cooling power of the computer host at the current moment includes:
[0032] Map the dynamic heat dissipation demand factors at all acquisition moments in a positive correlation;
[0033] The product of the mapped dynamic heat dissipation demand factor at the current moment and the differential coefficient of the original PID controller is used as the differential coefficient of the optimized PID controller;
[0034] The external temperature sequence of the computer host and the temperature sequence of each hardware are used as the input of the optimized PID controller, the preset standard temperature is used as the control target of the optimized PID controller, and the output is the control variable of the cooling power of the computer host at the current moment.
[0035] In a second aspect, an embodiment of the present application provides a temperature adaptive control device for a computer host, the temperature adaptive control device comprising:
[0036] The computer host temperature data acquisition module is used to obtain the temperature of each hardware inside the computer host and the external environment temperature when the computer host is running;
[0037] The computer host temperature control module is used to build a temperature control model based on the temperature data inside and outside the computer host; the temperature control model is used to adjust the temperature of the computer host at the current moment according to the temperature of each hardware inside the computer host and the external environment temperature.
[0038] In a third aspect, an embodiment of the present application further provides a temperature adaptive control system for a computer host, the system comprising a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor implements the steps of any one of the above-mentioned temperature adaptive control methods for a computer host when executing the computer program.
[0039] It can be seen from the above embodiments that the temperature adaptive control method, device and system for a computer host provided by the embodiments of the present application have at least the following beneficial effects:
[0040] The present invention proposes a temperature adaptive control method, device and system for a computer host. The present application aims to solve the technical problem that the complex changes in the internal and external temperatures of the computer host lead to the inability to effectively dissipate heat. According to the demand for heat dissipation of the internal hardware temperature, the temperature change trend and local temperature fluctuation of each hardware at each acquisition time are analyzed to characterize the heat load state of each hardware inside the host at a specific time; then, the overall heat dissipation demand of the host at each acquisition time is obtained in combination with the heat load state of all hardware inside the entire host, so that the heat dissipation demand of the computer host is considered more comprehensively; secondly, according to the influence of the external ambient temperature on the heat dissipation efficiency of the host, the influence relationship between the internal and external temperatures of the computer host is analyzed in combination with correlation and synchronization, so as to express the degree of influence of the external ambient temperature change on the internal temperature, and further reflect the influence of the external ambient temperature on the heat dissipation efficiency of the host; then, the heat dissipation demand of the computer host at a specific time is quantified by combining the above two analyses, and the differential coefficient of the PID controller is adaptively adjusted according to the real-time heat dissipation demand of the computer host, so as to realize the precise control of the cooling power of the computer host, thereby effectively shortening the time for the host to reach the normal temperature range state, improving the heat dissipation efficiency, and realizing the stable operation of the computer host under complex environmental conditions, effectively solving the problem that the complex changes in the internal and external temperatures of the computer host lead to the inability to effectively dissipate heat. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0042] Figure 1 A flowchart of a temperature adaptive control method for a computer host provided in one embodiment of the present application;
[0043] Figure 2 A flowchart of the specific steps of constructing a temperature control model provided in one embodiment of the present application;
[0044] Figure 3 A flowchart of the steps for obtaining the overall heat dissipation demand at each acquisition moment provided by an embodiment of the present application;
[0045] Figure 4 A flowchart of steps for obtaining an environmental adaptability index provided in one embodiment of the present application;
[0046] Figure 5 A flowchart of the steps for predicting the control variables of the cooling power of a computer host at the current moment is provided for one embodiment of the present application. DETAILED DESCRIPTION
[0047] In order to further explain the technical means and effects adopted by the present application to achieve the predetermined invention purpose, the following is a detailed description of the temperature adaptive control method, device and system for a computer host proposed in accordance with the present application, its specific implementation method, structure, features and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0048] Unless otherwise specified and limited, terms such as "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a circuit structure, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such articles or devices. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the article or device including the element. In addition, the term "and\or" used herein includes any and all combinations of one or more related listed items. All technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of this application.
[0049] The following is a detailed description of a specific scheme of a temperature adaptive control method, device and system for a computer host provided by the present application in conjunction with the accompanying drawings.
[0050] See also Figure 1 , which shows a flowchart of the steps of a temperature adaptive control method for a computer host provided by an embodiment of the present application, the method specifically comprises:
[0051] S1, when the computer host is running, obtain the temperature of each hardware inside the computer host and the external environment temperature.
[0052] The temperature of the computer host's surroundings directly affects the heat dissipation efficiency of the computer host. In a high temperature environment, heat dissipation is more difficult, while in a low temperature environment, heat dissipation is relatively easy.
[0053] Accordingly, this embodiment sets a temperature sensor to collect temperature data outside the host, and uses Python's psutil library to obtain the temperature data of the computer's CPU, GPU, hard disk, and graphics card. The collection time interval of all the above temperature data is 0.5s, which can be set by the implementer according to the actual situation. And all the collected temperature data are normalized to form the external temperature sequence of the computer host and the temperature sequence of each hardware.
[0054] At this point, the temperature data inside and outside the computer host can be obtained through the above method, including the external temperature sequence outside the computer host and the temperature sequence of each hardware inside the computer host.
[0055] S2, constructing a temperature control model based on the temperature data inside and outside the computer host; the temperature control model is used to adjust the temperature of the computer host at the current moment according to the temperature of each hardware inside the computer host and the external environment temperature.
[0056] Due to the shell and internal structure design of the computer host, as well as the extreme temperature and humidity conditions it may face in an industrial environment, the heat generated by the internal hardware is difficult to dissipate effectively through traditional heat dissipation methods. For example, key components such as the CPU and GPU will generate a lot of heat when working under high load. If this heat cannot be quickly transferred to the external environment, it may cause the component temperature to rise, thereby affecting performance and increasing the risk of failure. In addition, the cooling system of the computer host usually needs to maintain stable operation under a variety of environmental conditions, including high temperature, low temperature, high humidity and dust. The temperature changes in the external environment have a critical impact on the cooling system. In a high temperature environment, the cooling system cannot effectively absorb and dissipate the heat generated by the internal hardware.
[0057] Most of the existing technologies set a temperature threshold and start heat dissipation only when the host reaches the threshold. However, this method does not take into account the harsh external ambient temperature and the urgency of the internal hardware's cooling needs, resulting in ineffective heat dissipation due to the complex changes in internal and external temperatures.
[0058] Based on this, the present application constructs a temperature control model based on the temperature data inside and outside the computer host to achieve control of the cooling power of the computer host; the temperature control model is used to predict the control variable of the cooling power of the computer host at the current moment according to the temperature of each hardware inside the computer host and the external environment temperature, and adjust the temperature of the computer host at the current moment. The specific steps of constructing the temperature control model are shown in the flowchart attached. Figure 2 As shown, specifically:
[0059] A1, according to the temperature change trend and local temperature fluctuation of each hardware inside the host at each collection time, determine the local hardware load of each hardware inside the host at each collection time.
[0060] When analyzing the overall temperature change range of each hardware inside the host, it is easy to ignore the local load of the hardware, that is, it is impossible to accurately detect short-term and small temperature changes. Therefore, it is necessary to analyze the temperature sequence of the hardware from a short time range to identify the load status of each hardware in the local range, specifically:
[0061] First, a window of size 1×w is constructed with each element in the temperature sequence of each hardware as the center. It should be noted that if the starting or ending position of the window exceeds the boundary of the sequence, the excess part is filled with the mean of the elements in the window that do not exceed the sequence. Then, the difference mean between all adjacent elements in the window is calculated and recorded as the local temperature change trend of each element, which is used to reflect the change trend of the element in the local range of the window where the element is located. Among them, this embodiment sets w to 7, and the implementer can set it according to the actual situation. And this embodiment uses the least squares method for straight line fitting. The least squares method is a well-known technology and will not be repeated. Other embodiments of this application can also use other straight line fitting methods for straight line fitting, which is not limited by this application.
[0062] In one embodiment of the present application, when calculating the difference, the absolute value of the difference between corresponding elements is used as the difference between them. In other embodiments of the present application, the difference can also be used to obtain the difference between the corresponding elements.
[0063] Then, the temperature fluctuation in the window of each element and the overall temperature change trend are obtained to reflect the temperature fluctuation in the window of each element and the overall temperature change trend.
[0064] In one embodiment of the present application, the temperature fluctuation is determined by the standard deviation of all elements in the element window, and in other embodiments of the present application, the variance of all elements in the element window can also be determined; the overall temperature change trend is determined by the slope of the fitted straight line obtained by linear fitting of all elements in the element window, and in other embodiments of the present application, the weighted moving average of all elements in the element window can also be obtained. Among them, the above-mentioned algorithms are all well-known technologies and will not be repeated.
[0065] Finally, the local temperature change trend, temperature fluctuation and overall temperature change trend of each element in the temperature sequence of each hardware are forward fused to determine the local hardware load corresponding to each element at the acquisition moment.
[0066] It can be understood that forward fusion is a fusion method such as addition and multiplication between data. The specific forward fusion method is determined by the implementer according to the actual situation, and this application does not impose any special restrictions.
[0067] In one embodiment of the present application, the product of the local temperature change trend, the temperature fluctuation and the overall temperature change trend of each element is used as the local hardware load corresponding to each element at the acquisition time.
[0068] In another embodiment of the present application, the sum of the local temperature change trend, the temperature fluctuation and the overall temperature change trend of each element is used as the local hardware load corresponding to each element at the acquisition time.
[0069] In other embodiments of the present application, the sum of the local temperature change trend of each element and the overall temperature change trend is multiplied by the temperature fluctuation to obtain the local hardware load corresponding to each element at the acquisition time.
[0070] It should be understood that the local temperature change trend reflects the severity of the hardware temperature change within a short time interval; the overall temperature change trend represents the overall trend of the hardware temperature change over time within the window, and the temperature fluctuation reflects the fluctuation of the temperature value within the window, indicating the degree of difference between the temperature values; the positive fusion of the three represents the intensity of the dynamic temperature change of the hardware per unit time. The larger the value, the more severe the short-term temperature change caused by the rapid increase or decrease in the heat load of the hardware; the overall temperature change trend and temperature volatility are taken into account at the same time, so as to more comprehensively reflect the heat load status of the hardware at a specific moment. The larger the local hardware load, the more complex the temperature change of the hardware and the greater the demand for heat dissipation.
[0071] A2, analyze the local hardware load and temperature fluctuation range differences of all hardware at each collection moment to obtain the overall heat dissipation requirements of the host at each collection moment.
[0072] In a computer host, due to the different heating characteristics of various hardware components (such as CPU, GPU, memory, hard disk, etc.), the temperature distribution inside the host will show irregular changes. The resulting uneven temperature distribution will affect the heat dissipation efficiency. For example, heat is concentrated in certain areas, and the cooling system cannot effectively cover these areas, then the overall heat dissipation efficiency will be reduced.
[0073] Based on this, the present application analyzes the local hardware load of the entire host at each acquisition moment, and combines the temperature fluctuation range of the hardware temperature sequence to determine the overall heat dissipation requirements of the host at each acquisition moment, specifically:
[0074] Obtain the average value of the slope difference of the fitted straight line of the temperature series of any two hardware in all the same acquisition time windows, and record it as the first difference factor between the temperature series of any two hardware; calculate the range in the temperature series of each hardware, and record the range difference between the temperature series of any two hardware as the second difference factor between the temperature series of any two hardware. Calculate the product of the first difference factor and the second difference factor as the first influencing factor between the temperature series of any two hardware; calculate the local hardware load difference at each acquisition time in the temperature series of any two hardware, and multiply it by the first influencing factor as the second influencing factor at each acquisition time in the temperature series of any two hardware; take the average value of the second influencing factors of all the temperature series of any two hardware at each acquisition time as the overall heat dissipation demand inside the host at each acquisition time.
[0075] It should be understood that the first influencing factor characterizes the degree of mutual influence between the temperature sequences of two different hardware. The larger its value, the greater the difference in temperature fluctuation between the two hardware, indicating that they may have significant differences or mismatches in heat dissipation; the second influencing factor characterizes the heat concentration and uneven heat dissipation between the temperature sequences of two different hardware. The larger its value, the more complex the thermal load state between the hardware, and the more likely there is heat concentration and uneven heat dissipation. Then, the average value of the second influencing factor between all the temperature sequences of two different hardware is calculated, and the overall heat dissipation demand of the hardware in the computer host at each acquisition moment is obtained, which reflects the overall heat dissipation demand of all hardware in the computer host. The larger the value, the greater the overall heat dissipation demand of all hardware in the computer host, and the more it is necessary to dissipate heat for the computer host.
[0076] In one embodiment of the present application, the flowchart of the steps for obtaining the overall heat dissipation demand at each collection moment is as shown in the attached figure. Figure 3 shown.
[0077] A3, combining the correlation and synchronization between the external environment temperature and the temperature of each hardware inside the host, obtains the host's environmental adaptability index.
[0078] The heat dissipation performance of the computer host is closely related to the ambient temperature. For example, in a high-temperature environment, the temperature difference between the computer host and its surrounding environment is small. Since heat is always transferred from the high-temperature area to the low-temperature area, the smaller the temperature difference, the smaller the driving force of heat transfer, and thus the heat dissipation efficiency is reduced.
[0079] Based on this, the present application obtains the correlation and fractal dimension difference between the temperature sequence of each hardware and the external temperature sequence respectively. The correlation is used to characterize the correlation between sequences, and the fractal dimension is used to characterize the irregularity of the sequence, that is, the more complex the size changes of the elements in the sequence, the larger the fractal dimension; and the fractal dimension difference is used to characterize the synchronization difference between sequences. The larger the fractal dimension difference, the more unsynchronized the changes between the two sequences.
[0080] In one embodiment of the present application, the Pearson correlation analysis is used to output the correlation between the temperature sequence of each hardware and the external temperature sequence, and then the box counting method is used to calculate the fractal dimension difference between the external temperature sequence and the temperature sequence of each hardware. In other embodiments of the present application, the negative correlation mapping of the DTW distance and the Hurst index can also be used to calculate the correlation and fractal dimension difference respectively, wherein the above algorithms are all well-known technologies and will not be repeated.
[0081] Optionally, the negative correlation mapping may be implemented by negative linear mapping, negative exponential mapping, or by setting adjustment parameters.
[0082] The similarity and the synchronization difference are reversely fused to determine the environmental adaptability index of the overall temperature change of the host.
[0083] It can be understood that reverse fusion is a fusion method such as subtraction and division between data. The specific reverse fusion method is determined by the implementer according to the actual situation, and this application does not impose any special restrictions.
[0084] In one embodiment of the present application, the ratio of the similarity to the synchronization difference is used as the environmental adaptability index of the overall temperature change of the host.
[0085] In another embodiment of the present application, the difference between the similarity and the synchronization difference is subjected to exponential mapping to obtain the environmental adaptability index of the overall temperature change of the host.
[0086] In other embodiments of the present application, the normalized value of the difference between the similarity and the synchronization difference can also be used as the environmental adaptability index of the overall temperature change of the host. It should be noted that when calculating the difference between the similarity and the synchronization difference, if the difference is a negative number, the environmental adaptability index of the overall temperature change of the host is assigned a value of 0.1, and the specific assigned value is set by the implementer.
[0087] Specifically, the similarity between the external temperature sequence and the temperature sequence of all hardware is obtained through the correlation between the external temperature sequence and the temperature sequence of all hardware. The similarity reflects the degree of influence of the external environment temperature change on the internal temperature. If the similarity is greater, it means that for every unit increase in the external temperature, the internal hardware temperature also changes accordingly, indicating that the external environment has a significant linear impact on the internal temperature. At this time, the environmental adaptability index of the overall temperature change of the host is greater.
[0088] The synchronization difference between the external temperature sequence and the temperature sequence of all hardware is obtained by the average value of the fractal dimension difference between the external temperature sequence and the temperature sequence of all hardware. By comparing the fractal dimension difference between the external temperature sequence and the hardware temperature sequence, the synchronization and consistency differences between the hardware temperature change pattern and the external environment temperature change pattern of the computer host under different ambient temperatures are quantified. This difference represents the difference in temperature pattern between the internal and external environments of the host. The larger the value, the greater the difference in temperature change between the two, that is, their temperature synchronization change patterns are inconsistent. At this time, the external environment has a smaller impact on the temperature of the internal hardware, and the environmental adaptability index of the overall temperature change of the host decreases accordingly.
[0089] In one embodiment of the present application, the flow chart of the steps for obtaining the environmental adaptability index is shown in the attached Figure 4 shown.
[0090] A4, using the environmental adaptability index to correct the overall heat dissipation demand, to obtain the dynamic heat dissipation demand factor of the host at each collection moment.
[0091] The temperature management of a computer host is not an isolated incident. It is a complex situation involving internal hardware status and external environmental factors. Relying solely on any one of the above indicators cannot fully evaluate and optimize the heat dissipation efficiency of the computer host.
[0092] Therefore, this application corrects the overall heat dissipation demand at the real-time collection moment based on the environmental adaptability index of the overall temperature change of the computer host, and analyzes the dynamic heat dissipation demand factor of the host at each collection moment. The specific correction process is: the product of the overall heat dissipation demand at each collection moment and the environmental adaptability index is used as the dynamic heat dissipation demand factor at each collection moment.
[0093] It should be understood that the environmental adaptability index represents the degree of influence of changes in external ambient temperature on the internal temperature, and the overall heat dissipation demand reflects the overall thermal load of the computer host. That is, the greater the overall heat dissipation demand, the greater the thermal load of the internal hardware, and the stronger the heat dissipation capacity is required. When the environmental adaptability index is larger, it means that the external environment has a greater impact on the internal temperature, and the cooling system needs to consider environmental factors more, that is, the dynamic heat dissipation demand factor is also larger, so that when the temperature is too high, it can respond quickly to adjust the cooling power of the computer host and realize adaptive temperature control.
[0094] A5, uses the dynamic heat dissipation demand factor to adjust the differential coefficient of the PID controller, predicts the control variable of the cooling power of the computer host at the current moment, and regulates the temperature of the computer host at the current moment.
[0095] In the PID controller, KP, KI, and KD represent the three control links of proportion, integration, and differentiation, respectively. The differential coefficient responds to the rate of change of the deviation, which can predict the future trend of the deviation, thereby adjusting the control amount in advance and reducing the overshoot and oscillation of the system. In the temperature control of the computer host, the differential control can provide a fast response to adapt to the rapid changes in the external environment or internal conditions of the host. This application adjusts the differential coefficient of the PID controller according to the dynamic heat dissipation demand factor, thereby realizing the adaptive control of the temperature of the computer host, specifically:
[0096] There is a corresponding dynamic heat dissipation demand factor at each collection moment. The dynamic heat dissipation demand factors of all collection moments are positively correlated and their sizes are mapped to the range of 0 to U. In this embodiment, the value of U is 2, and the implementer can set it according to the actual situation.
[0097] Optionally, the positive correlation mapping may be implemented by linear mapping, exponential mapping, or by setting adjustment parameters. This embodiment adopts proportional linear mapping, and in other embodiments of the present application, exponential mapping may also be used for positive correlation mapping.
[0098] The mapped dynamic heat dissipation demand factor at the current moment is multiplied by the differential coefficient of the original PID controller, and the multiplication result is the differential coefficient of the optimized PID controller.
[0099] Finally, the external temperature sequence of the computer host and the temperature sequence of each hardware are used as the input of the optimized PID controller, and the preset standard temperature is used as the control target of the optimized PID controller. The optimized PID controller is used to adaptively control the temperature of the computer host. In this embodiment, the standard temperature of the computer host is set to 50°C. In this embodiment, the proportional coefficient KP, integral coefficient KI and differential coefficient KD of the original PID controller are set to KP=40, KI=1.5, and KD=1 respectively. The output of the PID controller is the control variable of the cooling power of the computer host at the current moment, and the cooling power includes fan speed, heat sink temperature or coolant circulation rate, etc.
[0100] Since the role of the differential coefficient in the PID controller is to predict the future trend of the deviation, so as to adjust the control variable of the cooling power of the computer host in advance, the improved differential coefficient can be used to adaptively control the temperature inside the computer host according to the influence of the external environment temperature and the demand for temperature control of the internal hardware of the computer host. When the dynamic heat dissipation demand factor is larger, it means that the external environment has a greater impact on the internal hardware and the internal hardware has a greater demand for temperature adjustment. At this time, the improved differential coefficient is larger, so that the controller adjusts the cooling power of the computer host in advance, thereby further shortening the time for the computer host to reach the preset standard temperature state, and realizing the adaptive control method of the computer host temperature.
[0101] In one embodiment of the present application, a flowchart of the steps for predicting the control variables of the cooling power of the computer host at the current moment is shown in the attached figure. Figure 5 shown.
[0102] Based on the same inventive concept as the above method, an embodiment of the present application also provides a temperature adaptive control device for a computer host, including a computer host temperature data acquisition module, which is used to obtain the temperature of each hardware inside the computer host and the external environment temperature when the computer host is running; a computer host temperature control module, which is used to build a temperature control model based on the temperature data inside and outside the computer host; the temperature control model is used to control the temperature of the computer host at the current moment according to the temperature of each hardware inside the computer host and the external environment temperature input.
[0103] Based on the same inventive concept as the above method, an embodiment of the present application also provides a temperature adaptive control system for a computer host, including a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the steps of any one of the above-mentioned temperature adaptive control methods for a computer host are implemented.
[0104] The various embodiments in the present application are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0105] It should be noted that, unless otherwise specified and limited, terms such as "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a circuit structure, 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 article or device. In the absence of further restrictions, an element defined by the sentence "including one..." does not exclude the existence of other identical elements in the article or device including the element. In addition, the term "and\or" used herein includes any and all combinations of one or more related listed items.
[0106] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not invented by the present application.
[0107] It should be understood that the present application is not limited to the exact construction that has been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof.
Claims
1. A temperature adaptive control method for a computer host. It is characterized in that The method comprises the following steps: S1, when the computer host is in operation, obtain the temperature of each hardware inside the computer host and the external environment temperature, and form the hardware temperature and the external environment temperature into a temperature sequence and an external temperature sequence respectively; S2, constructing a temperature control model based on the temperature data inside and outside the computer host; the temperature control model is used to adjust the temperature of the computer host at the current moment according to the temperature of each hardware inside the computer host and the external environment temperature; Constructing the temperature control model specifically includes the following steps: A1, according to the temperature change trend and local temperature fluctuation of each hardware inside the host at each collection time, determine the local hardware load of each hardware inside the host at each collection time; A2, analyze the local hardware load and temperature fluctuation range differences of all hardware at each acquisition moment to obtain the overall heat dissipation requirement of the host at each acquisition moment; obtain the first difference factor according to the slope difference of the fitted straight line of the temperature series of two hardware in the same acquisition moment window; obtain the second difference factor according to the extreme difference between the temperature series of the two hardware; obtain the second influence factor according to the local hardware load difference at each acquisition moment in the temperature series of the two hardware, combined with the product of the first difference factor and the second difference factor; obtain the overall heat dissipation requirement at each acquisition moment according to the second influence factors of all arbitrary two hardware at each acquisition moment; A3, combining the correlation and synchronization difference between the external environment temperature and the temperature of each hardware inside the host, obtain the host's environmental adaptability index; obtain the environmental adaptability index according to the mean of the correlation between the external temperature sequence and all temperature sequences and the mean of the fractal dimension difference; A4, using the environmental adaptability index to correct the overall heat dissipation demand, and obtain the dynamic heat dissipation demand factor of the host at each collection moment; A5, uses the dynamic heat dissipation demand factor to adjust the differential coefficient of the PID controller, predicts the control variable of the cooling power of the computer host at the current moment, and regulates the temperature of the computer host at the current moment.
2. A temperature adaptive control method for a computer host as claimed in claim 1, It is characterized in that The temperatures of the various hardware inside the computer host obtained in S1 constitute a temperature sequence of the various hardware; the ambient temperature outside the computer host is obtained to constitute an external temperature sequence.
3. A temperature adaptive control method for a computer host as claimed in claim 2, It is characterized in that The method for determining the local hardware load at each acquisition moment includes: For any element in the temperature sequence of each hardware, obtain the local temperature change trend, temperature fluctuation and overall temperature change trend within a preset window centered on the any element; The local temperature change trend, temperature fluctuation and overall temperature change trend of any element are forwardly integrated to determine the local hardware load of any element at the acquisition time.
4. A temperature adaptive control method for a computer host as claimed in claim 3, It is characterized in that The local temperature change trend is the mean difference between all adjacent elements within the preset window of any element, and the fluctuation is the standard deviation of all elements within the preset window of any element; the change trend is the slope of the fitting straight line obtained by straight-line fitting of all elements within the preset window of any element.
5. A temperature adaptive control method for a computer host as claimed in claim 3, It is characterized in that The method for obtaining the overall heat dissipation demand at each collection moment includes: Obtain the average value of the slope difference of the fitting straight line of the temperature series of any two hardware in all the same acquisition time windows, and record it as the first difference factor between the temperature series of any two hardware; Calculate the range in the temperature series of each hardware, and record the range difference between any two temperature series of hardware as the second difference factor between any two temperature series of hardware; Calculate the product of the first difference factor and the second difference factor as the first influencing factor between the temperature series of any two hardware; Calculate the product of the local hardware load difference at each acquisition time in the temperature series of any two hardware and the first influencing factor as the second influencing factor at each acquisition time in the temperature series of any two hardware; The average value of the second influencing factors of the temperature series of all arbitrary two hardware at each collection moment is taken as the overall heat dissipation requirement of the host at each collection moment.
6. A temperature adaptive control method for a computer host as claimed in claim 2, It is characterized in that The method for obtaining the environmental adaptability index includes: Obtain the correlation and fractal dimension difference between each hardware's temperature series and the external temperature series respectively; The mean of the correlation between the external temperature series and the temperature series of all hardware is taken as the similarity; The average value of the fractal dimension difference between the external temperature series and the temperature series of all hardware is taken as the synchronization difference; The similarity and the synchronization difference are reversely fused to determine the environmental adaptability index of the overall temperature change of the host.
7. A temperature adaptive control method for a computer host as claimed in claim 6, It is characterized in that The dynamic heat dissipation demand factor at each collection moment is obtained by multiplying the overall heat dissipation demand at each collection moment by the environmental adaptability index.
8. A temperature adaptive control method for a computer host as claimed in claim 7, It is characterized in that The method of using the dynamic heat dissipation demand factor to adjust the differential coefficient of the PID controller and predicting the control variable of the cooling power of the computer host at the current moment includes: Map the dynamic heat dissipation demand factors at all acquisition moments in a positive correlation; The product of the mapped dynamic heat dissipation demand factor at the current moment and the differential coefficient of the original PID controller is used as the differential coefficient of the optimized PID controller; The external temperature sequence of the computer host and the temperature sequence of each hardware are used as the input of the optimized PID controller, the preset standard temperature is used as the control target of the optimized PID controller, and the output is the control variable of the cooling power of the computer host at the current moment.
9. A temperature adaptive control device for a computer host, implementing the method as claimed in claim 1, It is characterized in that The temperature self-adapting control device comprises: The computer host temperature data acquisition module is used to obtain the temperature of each hardware inside the computer host and the external environment temperature when the computer host is running; The computer host temperature control module is used to build a temperature control model based on the temperature data inside and outside the computer host; the temperature control model is used to adjust the temperature of the computer host at the current moment according to the temperature of each hardware inside the computer host and the external environment temperature.
10. A temperature adaptive control system for a computer host, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, It is characterized in that When the processor executes the computer program, the steps of the temperature adaptive control method for a computer host as described in any one of claims 1-8 are implemented.
