Control method and device for heat dissipation equipment, storage medium and electronic equipment
By deploying sensors and controllers in servers and using predictive models to adjust the rotational speed of cooling equipment, the problem of low cooling efficiency in the control of cooling equipment in the existing technology is solved, and more efficient temperature management and energy utilization are achieved.
Patent Information
- Application Number
- CN202410942431.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-15
AI Technical Summary
In the existing technology, the control efficiency of the heat dissipation equipment of the server is low, which makes it difficult to effectively manage the temperature of the server and affects performance and reliability.
Using a combination of sensors and cooling equipment controllers, the temperature information and temperature distribution information of the monitoring server is input into the target prediction model, and the rotational speed of the cooling equipment is predicted and adjusted to achieve more precise temperature control.
It improves the control efficiency of heat dissipation equipment, ensures effective heat dissipation of the server under different temperature changes, extends the service life of the server and reduces energy consumption.
Smart Images

Figure CN118466724B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computers, and more specifically, to a control method and device for a heat dissipation device, a storage medium, and an electronic device. Background Art
[0002] As one of the important infrastructures supporting cloud computing, the heat dissipation problem of servers has become a major obstacle to the development of servers. Good heat dissipation capacity is the key to ensure the stable, normal and long-term operation of servers. When the server is running, the CPU (Central Processing Unit), GPU (Graphics Processing Unit), memory and hard disk will release a lot of heat. The resulting temperature increase will reduce the performance of the server and even damage the server. Moreover, with the continuous increase in data volume and computing volume, the heat dissipation requirements for servers are also getting higher and higher.
[0003] As the requirements for server performance continue to increase, the hardware integration inside the server is becoming more and more dense, and the requirements for server heat dissipation are also getting higher and higher. In the related art, when controlling the speed of the server's heat dissipation device (for example, a fan), one way is to control the heat dissipation device to run at a fixed speed, and the other way is to establish a corresponding relationship between the fixed server temperature and the speed of the heat dissipation device. It can be understood that both methods determine the speed of the fixed heat dissipation device based on the server temperature, which may result in poor heat dissipation effect of the server. Summary of the invention
[0004] The embodiments of the present application provide a control method and device for a heat dissipation device, a storage medium, and an electronic device, so as to at least solve the problem of low control efficiency of the heat dissipation device in the related art.
[0005] According to an embodiment of the present application, a method for controlling a heat dissipation device is provided, wherein a heat dissipation device, a sensor and a heat dissipation device controller are deployed on a server, the heat dissipation device is used to control the temperature of the server, the heat dissipation device is connected to the heat dissipation device controller, and the method is applied to the heat dissipation device controller, the method comprising: monitoring the heat dissipation state of the server; when the heat dissipation state is monitored to indicate that the temperature of the server is abnormal, extracting the temperature information and temperature distribution information of the server collected by the sensor, wherein the temperature information is used to characterize the temperature of the server at the current time, and the temperature distribution information is used to characterize the temperature of the server from the historical time to the current time. changes, the historical time is earlier than the current time; the temperature information and the temperature distribution information are input into the target prediction model deployed in the heat dissipation device controller to obtain the target speed of the heat dissipation device output by the target prediction model, wherein the target prediction model is obtained by training an initial prediction model using sample data labeled with sample speeds, the sample data includes: sample temperature and sample temperature distribution, the sample temperature distribution is used to characterize the change of the temperature of the server from a first time to a second time, the second time is the time when the temperature of the server is the sample temperature, and the first time is before the second time; the heat dissipation device is controlled to operate at the target speed.
[0006] In an exemplary embodiment, the temperature information and the temperature distribution information are input into a target prediction model deployed in the heat dissipation device controller to obtain a target rotational speed of the heat dissipation device output by the target prediction model, including: extracting an initial temperature feature vector corresponding to the temperature information, and extracting an initial temperature distribution feature vector corresponding to the temperature distribution information; and predicting the target rotational speed based on the initial temperature feature vector and the initial temperature distribution feature vector.
[0007] In an exemplary embodiment, extracting the initial temperature feature vector corresponding to the temperature information includes:
[0008] The initial temperature feature vector corresponding to the temperature information is extracted by the following formula:
[0009]
[0010] in, is the initial temperature eigenvector, is the temperature information, Indicates that an embedding operation is performed on the temperature information.
[0011] In an exemplary embodiment, extracting the initial temperature distribution feature vector corresponding to the temperature distribution information includes: extracting the initial temperature distribution feature vector corresponding to the temperature distribution information by using the following formula:
[0012]
[0013] in, is the initial temperature distribution eigenvector, is the temperature distribution information, It represents that the initial temperature distribution feature vector corresponding to the temperature distribution information is extracted through a long short-term memory network.
[0014] In an exemplary embodiment, predicting the target speed based on the initial temperature characteristic vector and the initial temperature distribution characteristic vector includes: determining a target temperature characteristic vector corresponding to the initial temperature characteristic vector; and determining a target temperature fusion characteristic vector based on the initial temperature distribution characteristic vector and the target temperature characteristic vector; predicting the target speed based on the target temperature characteristic vector, the target temperature fusion characteristic vector and the initial temperature distribution characteristic vector.
[0015] In an exemplary embodiment, determining the target temperature feature vector corresponding to the initial temperature feature vector includes: determining the target temperature feature vector by the following formula:
[0016]
[0017] in, is the target temperature feature vector, is the first weight matrix, is the initial temperature eigenvector, is the first bias matrix.
[0018] In an exemplary embodiment, determining the target temperature fusion feature vector according to the initial temperature distribution feature vector and the target temperature feature vector includes: determining the target temperature fusion feature vector by the following formula:
[0019]
[0020] in, is the target temperature fusion feature vector, is the second weight matrix, is the third weight matrix, is the target temperature feature vector, Indicates that The dimensions are adjusted to The same dimension as is the initial temperature distribution eigenvector, is the second bias matrix, represents the first normalization function, Indicates that The calculated values are normalized to the interval [0,1]. represents the hyperbolic tangent function, Representation calculation The value of the hyperbolic tangent function of .
[0021] In an exemplary embodiment, predicting the target speed based on the target temperature feature vector, the target temperature fusion feature vector and the initial temperature distribution feature vector includes: extracting a target speed feature vector based on the target temperature feature vector, the target temperature fusion feature vector and the initial temperature distribution feature vector; and predicting the target speed based on the target speed feature vector.
[0022] In an exemplary embodiment, extracting the target speed feature vector according to the target temperature feature vector, the target temperature fusion feature vector and the initial temperature distribution feature vector includes: extracting the target speed feature vector by the following formula:
[0023]
[0024] in, is the target speed feature vector, is the fourth weight matrix, is the target temperature feature vector, is the third bias matrix, Fusion feature vector for target temperature The i-th row vector in is the initial temperature distribution characteristic vector The i-th row vector in M is the target temperature fusion feature vector The total number of rows, represents the second normalization function, Indicates that The calculated values are normalized to the range [0,1].
[0025] In an exemplary embodiment, predicting the target speed based on the target speed feature vector includes: when the dimension of the target speed feature vector is 1*N, predicting the speed of the i-th heat dissipation device among N heat dissipation devices by executing the following steps, wherein the heat dissipation devices include the N heat dissipation devices, N is a positive integer, and i is a positive integer less than or equal to N: extracting the i-th eigenvalue corresponding to the i-th heat dissipation device from the target speed feature vector; predicting the speed of the i-th heat dissipation device based on the i-th eigenvalue and the speed threshold corresponding to the i-th heat dissipation device.
[0026] In an exemplary embodiment, predicting the rotational speed of the ith heat dissipation device based on the ith eigenvalue and the rotational speed threshold corresponding to the ith heat dissipation device includes: dividing the ith eigenvalue by 1 to obtain an ith ratio, wherein the ith eigenvalue is greater than or equal to 0 and less than or equal to 1; performing a multiplication operation on the ith ratio and the rotational speed threshold corresponding to the ith heat dissipation device to obtain an ith product value, and determining the ith product value as the rotational speed of the ith heat dissipation device.
[0027] In an exemplary embodiment, before monitoring the heat dissipation status of the server, the method further includes: extracting updated temperature information of the server collected by the sensor while controlling the heat dissipation device to operate at a reference speed, wherein the reference speed is obtained by inputting the extracted reference temperature information and reference temperature distribution information collected by the sensor into an initial prediction model, the reference temperature information is used to characterize the temperature of the server at a third time, the temperature distribution information is used to characterize the change in the temperature of the server from a fourth time to a third time, the fourth time is earlier than the third time, the updated temperature information is used to characterize the temperature of the server at a fifth time, the third time is earlier than the fifth time, and the time difference between the third time and the fifth time is equal to a preset time difference; adjusting the parameters of the initial prediction model according to the updated temperature information and the temperature threshold corresponding to the server, and stopping adjusting the parameters of the initial prediction model when the parameters of the initial prediction model meet convergence conditions to obtain the target prediction model.
[0028] In an exemplary embodiment, adjusting the parameters of the initial prediction model according to the updated temperature information and the temperature threshold corresponding to the server includes: calculating a reward value according to the updated temperature information and the temperature threshold corresponding to the server; and adjusting the parameters of the initial prediction model according to the reward value.
[0029] In an exemplary embodiment, calculating the reward value according to the updated temperature information and the temperature threshold corresponding to the server includes: calculating the reward value by the following formula:
[0030]
[0031] in, is the reward value, is the temperature of the server at the fifth time represented by the updated temperature information, is the temperature threshold corresponding to the server, is the coefficient that balances energy consumption and temperature control, is the energy consumption corresponding to the heat dissipation device at the reference speed.
[0032] According to another embodiment of the present application, a control device for a heat dissipation device is provided, wherein a heat dissipation device, a sensor and a heat dissipation device controller are deployed on a server, the heat dissipation device is used to control the temperature of the server, the heat dissipation device is connected to the heat dissipation device controller, the device is applied to the heat dissipation device controller, and the method comprises: a monitoring module, used to monitor the heat dissipation state of the server; a first extraction module, used to extract the temperature information and temperature distribution information of the server collected by the sensor when the heat dissipation state is monitored to indicate that the temperature of the server is abnormal, wherein the temperature information is used to characterize the temperature of the server at the current time, and the temperature distribution information is used to characterize the temperature of the server from the historical time to the current time. The temperature information and the temperature distribution information are input into a target prediction model deployed in the heat dissipation device controller to obtain a target speed of the heat dissipation device output by the target prediction model, wherein the target prediction model is obtained by training an initial prediction model using sample data labeled with sample speeds, and the sample data includes: sample temperature and sample temperature distribution, and the sample temperature distribution is used to characterize the change of the temperature of the server from a first time to a second time, the second time is the time when the temperature of the server is the sample temperature, and the first time is before the second time; a control module is used to control the heat dissipation device to operate at the target speed.
[0033] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.
[0034] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0035] According to another embodiment of the present application, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0036] Through the present application, when the heat dissipation status is monitored to indicate that the temperature of the server is abnormal, the temperature information and temperature distribution information of the server can be input into the prediction model, and the rotation speed of the heat dissipation device can be predicted by the prediction model. In this way, the rotation speed of the heat dissipation device can be accurately predicted based on the change in the temperature of the server to the temperature at the current time. For example, when the temperature of the server at the current time is 50°C and the temperature of the server rises from 30°C to 50°C, and when the temperature of the server at the current time is 60°C and the temperature of the server drops from 60°C to 50°C, even if the current temperature of the server is 50°C, through the embodiments of the present application, different rotation speeds can be predicted for the heat dissipation device in these two cases, thereby improving the control efficiency of the heat dissipation device. Therefore, the problem of low control efficiency of the heat dissipation device can be solved, thereby achieving the effect of improving the control efficiency of the heat dissipation device. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a hardware structure block diagram of a server device of a control method for a heat dissipation device according to an embodiment of the present application;
[0038] Figure 2 is a schematic diagram of an application scenario of an optional control method for a heat dissipation device according to an embodiment of the present application;
[0039] Figure 3 is a schematic diagram of an optional control method for a heat dissipation device according to an embodiment of the present application;
[0040] Figure 4 is a flow chart of a control method for a heat dissipation device according to an embodiment of the present application;
[0041] Figure 5 is a schematic diagram of an optional target prediction model according to an embodiment of the present application;
[0042] Figure 6 It is a structural block diagram of a control device for a heat dissipation device according to an embodiment of the present application. DETAILED DESCRIPTION
[0043] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0044] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0045] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of a control method for a heat dissipation device according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0046] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the control method of the heat dissipation device in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0047] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0048] In this embodiment, a control method for a heat dissipation device is provided. The control method for the heat dissipation device in the embodiment of the present application can be explained and illustrated by taking, but not limited to, an example in which the heat dissipation device includes a fan and a heat dissipation device controller deployed in an FPGA chip. The control method can be applied to, but not limited to, the embodiment of the present application.
[0049] Figure 2 is a schematic diagram of an application scenario of an optional control method for a heat dissipation device according to an embodiment of the present application, such as Figure 2 As shown, heat dissipation devices 1 to 4, sensors 1 to 4, memory, GPU and CPU are deployed on the server, wherein heat dissipation device 1 is used to control the temperature of the memory, sensor 1 is used to collect the temperature of the memory, heat dissipation device 2 is used to control the temperature of the GPU, sensor 2 is used to collect the temperature of the GPU, heat dissipation devices 3 and 4 are used to control the temperature of the CPU, and sensors 3 and 4 are used to collect the temperature of the CPU.
[0050] The server is equipped with a heat dissipation device, a sensor, and a heat dissipation device controller. The heat dissipation device controller is deployed in a Field Programmable Gate Array (FPGA), and a target prediction model (or reinforcement learning model) is deployed in the heat dissipation device controller.
[0051] First, the reinforcement learning model of fan control is established by combining the real-time temperature processing module and the sequential temperature analysis module. Then the model is trained to optimize the parameters of the model. After the training is completed, the model is transplanted to the FPGA for operation. Figure 3 is a schematic diagram of an optional control method for a heat dissipation device according to an embodiment of the present application, such as Figure 3As shown, the server sensor obtains the temperature information of the server (equivalent to the temperature distribution data) and transmits it to the FPGA. The reinforcement learning model deployed in the FPGA calculates and outputs the control result of the fan (for example, the fan speed), which is transmitted to the BMC (Baseboard Management Controller). The fan speed can be adjusted by, but not limited to, calling the BMC fan control API (Application Programming Interface), for example, controlling the fan to run at a target speed.
[0052] In the embodiment of the present application, a model is constructed using the prediction and fitting capabilities of a neural network to achieve precise control of the fan speed, thereby improving the heat dissipation capacity of the server, reducing energy consumption, stabilizing server performance, and increasing server service life.
[0053] In this embodiment, a control method for a heat dissipation device is provided. A heat dissipation device, a sensor, and a heat dissipation device controller are deployed on a server. The heat dissipation device is used to control the temperature of the server. The heat dissipation device is connected to the heat dissipation device controller. The method is applied to the heat dissipation device controller. Figure 4 is a flow chart of a control method for a heat dissipation device according to an embodiment of the present application. Figure 4 As shown, the process includes the following steps:
[0054] Step S402, monitoring the heat dissipation status of the server;
[0055] Step S404, when the heat dissipation state is monitored to indicate that the temperature of the server is abnormal, extracting the temperature information and temperature distribution information of the server collected by the sensor, wherein the temperature information is used to characterize the temperature of the server at the current time, and the temperature distribution information is used to characterize the change of the temperature of the server from a historical time to the current time, and the historical time is earlier than the current time;
[0056] Step S406, inputting the temperature information and the temperature distribution information into a target prediction model deployed in the heat dissipation device controller to obtain a target rotation speed of the heat dissipation device output by the target prediction model, wherein the target prediction model is obtained by training an initial prediction model using sample data labeled with sample rotation speeds, the sample data including: sample temperature and sample temperature distribution, the sample temperature distribution being used to characterize a change in the temperature of the server from a first time to a second time, the second time being a time when the temperature of the server is the sample temperature, and the first time being before the second time;
[0057] Step S408: controlling the heat dissipation device to operate according to the target rotation speed.
[0058] Through the above steps, through the present application, when the heat dissipation status is monitored to indicate that the temperature of the server is abnormal, the temperature information and temperature distribution information of the server can be input into the prediction model, and the rotation speed of the heat dissipation device can be predicted by the prediction model. In this way, the rotation speed of the heat dissipation device can be accurately predicted according to the change of the temperature of the server to the temperature at the current time. For example, when the temperature of the server at the current time is 50°C and the temperature of the server rises from 30°C to 50°C, and when the temperature of the server at the current time is 60°C and the temperature of the server drops from 60°C to 50°C, even if the current temperature of the server is 50°C, through the embodiments of the present application, different rotation speeds can be predicted for the heat dissipation device in these two cases, thereby improving the control efficiency of the heat dissipation device. Therefore, the problem of low control efficiency of the heat dissipation device can be solved, thereby achieving the effect of improving the control efficiency of the heat dissipation device.
[0059] In the technical solution provided in the above step S402, the temperature of the server may include but is not limited to the temperature of the server's hardware such as a processor and a memory, for example, the server's CPU temperature, GPU temperature, memory temperature, hard disk temperature, etc.
[0060] Optionally, in this embodiment, the heat dissipation device may be, but is not limited to, used to lower or raise the temperature of the server or to maintain the temperature of the server at a constant temperature. As an optional example, the heat dissipation device may be, but is not limited to, include a heat dissipation device that allows the temperature of the server to be controlled by rotation, such as a fan on the server.
[0061] Optionally, in this embodiment, the sensor may be used for, but not limited to, collecting the temperature of the server. For example, the sensor may be used for, but not limited to, collecting the CPU temperature, GPU temperature, memory temperature, and hard disk temperature of the server.
[0062] Optionally, in this embodiment, the heat dissipation device controller may be but is not limited to being deployed in a chip of the server, such as an FPGA chip, etc., or the heat dissipation device controller may also be but is not limited to being deployed in a BMC of the server. The embodiment of the present application does not limit the deployment location of the heat dissipation device controller.
[0063] Optionally, in this embodiment, the heat dissipation status of the server can be monitored in the following manner but is not limited to: detecting whether the temperature represented by the temperature information of the server collected by the sensor is within a preset normal temperature range; when it is detected that the temperature represented by the temperature information of the server collected by the sensor is not within the preset normal temperature range, determining that the heat dissipation status is used to indicate that the temperature of the server is abnormal; when it is detected that the temperature represented by the temperature information of the server collected by the sensor is within the preset normal temperature range, determining that the heat dissipation status is used to indicate that the temperature of the server is normal.
[0064] Optionally, in this embodiment, different hardware of the server has corresponding normal temperature ranges. For example, the normal temperature ranges corresponding to the CPU, GPU, memory and hard disk of the server may be but are not limited to different. When at least one of the temperatures of the server's hardware such as the CPU, GPU, memory and hard disk at the current time is not within the corresponding normal temperature range, the heat dissipation status is determined to indicate that the temperature of the server is abnormal.
[0065] In an exemplary embodiment, before monitoring the heat dissipation status of the server, the method further includes: extracting updated temperature information of the server collected by the sensor while controlling the heat dissipation device to operate at a reference speed, wherein the reference speed is obtained by inputting the extracted reference temperature information and reference temperature distribution information collected by the sensor into an initial prediction model, the reference temperature information is used to characterize the temperature of the server at a third time, the temperature distribution information is used to characterize the change of the temperature of the server from a fourth time to a third time, the fourth time is earlier than the third time, the updated temperature information is used to characterize the temperature of the server at a fifth time, the third time is earlier than the fifth time, and the time difference between the third time and the fifth time is equal to a preset time difference; adjusting the parameters of the initial prediction model according to the updated temperature information and the temperature threshold corresponding to the server, and stopping adjusting the parameters of the initial prediction model when the parameters of the initial prediction model meet convergence conditions to obtain the target prediction model.
[0066] Optionally, in this embodiment, the temperature threshold corresponding to the server can be but is not limited to being used to represent the ideal temperature for the server operation, at which the server's operating performance is better. For example, the ideal temperatures of the server's CPU, GPU, memory, and hard disk can be but are not limited to 45°C, 50°C, 40°C, and 40°C, respectively.
[0067] Optionally, in this embodiment, after controlling the heat dissipation device to run at a reference speed, the temperature information of the server can be extracted at intervals of a preset first time difference (for example, 1 minute or 2 minutes, etc., which is not limited in this application) but is not limited thereto.
[0068] In an exemplary embodiment, the parameters of the initial prediction model can be adjusted according to the updated temperature information and the temperature threshold corresponding to the server in the following manner but is not limited to: calculating a reward value according to the updated temperature information and the temperature threshold corresponding to the server; and adjusting the parameters of the initial prediction model according to the reward value.
[0069] Optionally, in this embodiment, the parameters of the initial prediction model may be adjusted by, but not limited to, the following formula:
[0070]
[0071] in, are the parameters used by the initial prediction model at time t+1, are the parameters used by the initial prediction model at time t, is the amplitude of each update of the parameters of the initial prediction model, is the reward value, is the reward discount factor, Represents the state of the initial prediction model at time t and the overall expected value of action A; Represents the state of the initial prediction model at time t+1 and actions The overall expected value generated. means to select the maximum expected value, express The gradient descent of Represents the state S of the initial prediction model at time t t and action A t The overall expected value generated by .
[0072] After a certain amount of data is collected, training is started. In the server field, unsupervised learning methods can be used, but are not limited to them. The server can continuously interact with the environment and evaluate the quality of the action through environmental feedback. After completing the interaction between the model and the environment, the collection of server temperature distribution data, and the calculation of the reward value, only the parameters need to be updated during training. First, the training data is obtained from the memory bank. After obtaining the data, the parameters of the initial prediction model are continuously updated until the iterative training converges and the process ends.
[0073] As an optional example, after the reinforcement learning model (equivalent to the target prediction model) is trained, the trained weights can be exported to a file for saving. Then, the neural network structure can be re-implemented using C++, and the trained weights can be introduced into the C++ model in the form of a file. The network model is then converted into a hardware description language code with the help of a tool, and the code is pipelined to improve performance. After optimization, the code is integrated into the FPGA development environment, a bitstream is generated, and the bitstream is loaded into the FPGA device. Then, the data input and output mechanism of the FPGA device is set: the input data (equivalent to temperature information and temperature distribution information) is generated by the temperature sensor, and the output data is transmitted to the BMC to control the fan speed. Finally, the FPGA device is made, and the reinforcement learning model takes effect in the server. In this way, the target prediction model is deployed in the FPGA, the FPGA runs faster, and the fan speed is dynamically and quickly controlled, which improves the control efficiency of the server's heat dissipation equipment and reduces the energy consumption required to control the heat dissipation equipment.
[0074] In an exemplary embodiment, the reward value may be calculated by, but is not limited to, the following formula:
[0075]
[0076] in, is the reward value, is the temperature of the server at the fifth time represented by the updated temperature information, is the temperature threshold corresponding to the server, is the coefficient that balances energy consumption and temperature control, is the energy consumption corresponding to the heat dissipation device at the reference speed.
[0077] Optionally, in this embodiment, the reward value is the direction of model optimization. The reinforcement learning model aims to maximize the cumulative reward value. The actions that the model needs to output in each scenario are different, so the calculation method of the reward value is also different. The ideal temperatures of the CPU, GPU, memory, and hard disk can be set to 45°C, 50°C, 40°C, and 40°C respectively, but are not limited to. The data constitutes the vector . Equivalent to the temperature threshold, after executing the decision action, the temperature distribution T at this time can be collected (equivalent to updating the temperature information) after an interval of 1 minute (or 5 minutes, etc.), but not limited to. By calculating the reward value, the model can be guided to output control actions in the direction of the ideal temperature. As an optional example, the closer to the ideal temperature, the higher the reward value.
[0078] In the technical solution provided in the above step S404, when the heat dissipation status is monitored to indicate abnormal temperature of the server, it can be indicated that the temperature of the server at the current time is not within the normal temperature range. It can be understood that the temperature of the server at the current time may be too high, or the temperature of the server at the current time may also be too low.
[0079] Optionally, in this embodiment, the temperature information may be, but is not limited to, used to characterize the temperature of the server's hardware at the current time, for example, the temperature of the server's CPU, GPU, memory, hard disk, etc. at the current time.
[0080] Optionally, in this embodiment, the temperature distribution information may be used, but is not limited to, to characterize the change of the temperature of the server from the historical time to the current time. For example, the change of the temperature of the server from the historical time to the current time may include, but is not limited to, at least one of an increase in the temperature of the server, a decrease in the temperature of the server, or a constant temperature of the server. For example, the temperature of the server keeps increasing, or the temperature of the server first increases and then decreases, etc.
[0081] For example, when the temperature of the server is 40°C at the current time, the temperature change information may be, but is not limited to, used to indicate that the temperature of the server rises from 30°C to 40°C; or, when the temperature of the server is 40°C at the current time, the temperature change information may be, but is not limited to, used to indicate that the temperature of the server drops from 50°C to 40°C, and so on.
[0082] Optionally, in this embodiment, the historical time can be but is not limited to before the current time. For example, the historical time includes within 30 minutes before the current time, or within 1 hour before the current time, etc. This application does not impose any restrictions on this.
[0083] In the technical solution provided in the above step S406, the target speed to which the heat dissipation device needs to be adjusted can be predicted by the target prediction model according to the temperature information and the temperature distribution information, but is not limited to. In this way, the target prediction model controls the speed of the heat dissipation device (for example, the fan), and the heat dissipation device (for example, the fan) is controlled dynamically and accurately, which can significantly improve the heat dissipation capacity of the server, stabilize the performance of the server, reduce energy consumption, reduce power usage and heat emissions, and extend the service life of the server.
[0084] In an exemplary embodiment, the temperature information and the temperature distribution information are input into a target prediction model deployed in the heat dissipation device controller to obtain a target rotational speed of the heat dissipation device output by the target prediction model, including: extracting an initial temperature feature vector corresponding to the temperature information, and extracting an initial temperature distribution feature vector corresponding to the temperature distribution information; and predicting the target rotational speed based on the initial temperature feature vector and the initial temperature distribution feature vector.
[0085] Optionally, in this embodiment, an instant temperature processing module and a sequential temperature analysis module are deployed in the target prediction model, which can, but is not limited to, extracting the initial temperature feature vector corresponding to the temperature information through the instant temperature processing module, and extracting the initial temperature distribution feature vector corresponding to the temperature distribution information through the sequential temperature analysis module.
[0086] Optionally, in this embodiment, the dimension of the initial temperature feature vector may be but is not limited to 1*n, and the dimension of the initial temperature distribution feature vector may be but is not limited to M*n, wherein n is the number of neurons in the network, and M is the value obtained by dividing the second time difference between the historical time and the current time by the unit time. For example, the second time difference between the historical time and the current time is 30 minutes, and the unit time is 1 minute, then M is equal to 30.
[0087] In an exemplary embodiment, the initial temperature feature vector corresponding to the temperature information may be extracted by, but is not limited to, the following formula:
[0088]
[0089] in, is the initial temperature eigenvector, is the temperature information, Indicates that an embedding operation is performed on the temperature information.
[0090] Optionally, in this embodiment, after the target prediction model is built, the server is run normally, and a fixed running time interval is set to 1 minute (or 2 minutes, half an hour, etc., which is not limited in this application). Every 1 minute, the target prediction model can, but is not limited to, obtain the temperature distribution at the current time (for example, set to time t) through the data collection module. ,in, is the temperature of the server's CPU at the current time, is the temperature of the server's GPU at the current time, is the temperature of the server's memory at the current time, is the temperature of the hard disk of the server at the current time. The temperature distribution of the server at the current moment (equivalent to the current time) can be, but is not limited to, passed to the instant temperature processing module to extract the feature vector (equivalent to the initial temperature feature vector).
[0091] In an exemplary embodiment, the initial temperature distribution feature vector corresponding to the temperature distribution information may be extracted by, but is not limited to, the following formula:
[0092]
[0093] in, is the initial temperature distribution eigenvector, is the temperature distribution information, It represents that the initial temperature distribution feature vector corresponding to the temperature distribution information is extracted through a long short-term memory network.
[0094] Optionally, in this embodiment, the target prediction model may, but is not limited to, obtain historical temperature distribution (equivalent to temperature distribution information) through a data collection module. ,in, The temperature distribution information of the server's CPU over historical time. The temperature distribution information of the GPU of the server, The temperature distribution information of the server's memory. The temperature distribution information of the hard disk of the server can be, but is not limited to, transferring the historical temperature distribution to the time series temperature analysis module to extract the characteristic vector (equivalent to the initial temperature distribution characteristic vector).
[0095] Optionally, in this embodiment, the initial temperature distribution feature vector can also be extracted through but not limited to other neural networks, such as convolutional neural networks (CNN (Convolutional Neural Networks), bidirectional long short-term memory networks (Bi-LSTM, Bidirectional Long Short-Term Memory), etc., and this application does not impose any restrictions on this.
[0096] In an exemplary embodiment, the target speed can be predicted based on the initial temperature characteristic vector and the initial temperature distribution characteristic vector in the following manner, but is not limited to: determining the target temperature characteristic vector corresponding to the initial temperature characteristic vector; and determining the target temperature fusion characteristic vector based on the initial temperature distribution characteristic vector and the target temperature characteristic vector; predicting the target speed based on the target temperature characteristic vector, the target temperature fusion characteristic vector and the initial temperature distribution characteristic vector.
[0097] Optionally, in this embodiment, the target speed may be but is not limited to being less than the current speed of the heat dissipation device, or the target speed may be but is not limited to being greater than the current speed of the heat dissipation device, or the target speed may be but is not limited to being equal to the current speed of the heat dissipation device, and so on.
[0098] Optionally, in this embodiment, the dimension of the target temperature feature vector may be but is not limited to 1*n, and the dimension of the target temperature fusion feature vector may be but is not limited to M*n, wherein n is the number of neurons in the network, and M is the value obtained by dividing the second time difference between the historical time and the current time by the unit time. For example, the second time difference between the historical time and the current time is 30 minutes, and the unit time is 1 minute, then M is equal to 30.
[0099] In an exemplary embodiment, the target temperature feature vector may be determined by the following formula in the following manner but is not limited to:
[0100]
[0101] in, is the target temperature feature vector, is the first weight matrix, is the initial temperature eigenvector, is the first bias matrix.
[0102] Optionally, in this embodiment, a fully connected layer is deployed in the target prediction model, and the target temperature feature vector can be determined by but is not limited to the fully connected layer. The target temperature feature vector can be but is not limited to a vector used to represent the temperature of the server at the current time, for example, a vector of the temperature of the server's CPU, GPU, memory, hard disk, etc., and so on.
[0103] In an exemplary embodiment, the target temperature fusion feature vector may be determined by, but is not limited to, the following formula:
[0104]
[0105] in, is the target temperature fusion feature vector, is the second weight matrix, is the third weight matrix, is the target temperature feature vector, Indicates that The dimensions are adjusted to The same dimension as is the initial temperature distribution eigenvector, is the second bias matrix, represents the first normalization function, Indicates that The calculated values are normalized to the interval [0,1]. represents the hyperbolic tangent function, Representation calculation The value of the hyperbolic tangent function of .
[0106] Optionally, in this embodiment, an attention layer is deployed in the target prediction model, and the target temperature fusion feature vector can be determined by the attention layer but is not limited to the attention layer. The attention layer fuses the current temperature feature (equivalent to ) and the characteristics of the historical temperature distribution (equivalent to ) and then output the attention weight (equivalent to ). The combined use of fully connected layers and attention mechanisms can better learn the complex relationships between features.
[0107] In an exemplary embodiment, the target speed can be predicted based on the target temperature feature vector, the target temperature fusion feature vector and the initial temperature distribution feature vector in the following manner but is not limited to: extracting a target speed feature vector based on the target temperature feature vector, the target temperature fusion feature vector and the initial temperature distribution feature vector; predicting the target speed based on the target speed feature vector.
[0108] Optionally, in this embodiment, when the dimension of the target temperature feature vector is 1*n, the dimension of the target temperature fusion feature vector is M*n, and the dimension of the initial temperature distribution feature vector is 1*n, the dimension of the target speed feature vector is 1*N, where N is the number of cooling devices deployed on the server.
[0109] In an exemplary embodiment, the target speed feature vector may be extracted by, but is not limited to, the following formula:
[0110]
[0111] in, is the target speed feature vector, is the fourth weight matrix, is the target temperature feature vector, is the third bias matrix, Fusion feature vector for target temperature The i-th row vector in is the initial temperature distribution characteristic vector The i-th row vector in M is the target temperature fusion feature vector The total number of rows, represents the second normalization function, Indicates that The calculated values are normalized to the range [0,1].
[0112] Optionally, in this embodiment, the output of each neuron can be normalized using a sigmoid function in the last layer, but is not limited to, so that the value of each result is in the interval [0, 1] to obtain a target speed feature vector.
[0113] Optionally, in this embodiment, each eigenvalue in the target speed eigenvector corresponds to a heat dissipation device, for example, =[0.2,0.4,0.5,0.6] indicates that there are 4 cooling devices deployed on the server, among which cooling device 1 corresponds to 0.2, cooling device 2 corresponds to 0.4, cooling device 3 corresponds to 0.5, and cooling device 4 corresponds to 0.6.
[0114] In an exemplary embodiment, when the dimension of the target speed feature vector is 1*N, the speed of the i-th heat dissipation device among N heat dissipation devices can be predicted by, but is not limited to, executing the following steps, wherein the heat dissipation devices include the N heat dissipation devices, N is a positive integer, and i is a positive integer less than or equal to N: extracting the i-th eigenvalue corresponding to the i-th heat dissipation device from the target speed feature vector; and predicting the speed of the i-th heat dissipation device based on the i-th eigenvalue and the speed threshold corresponding to the i-th heat dissipation device.
[0115] Optionally, in this embodiment, different heat dissipation devices have corresponding speed thresholds. It can be understood that the speed thresholds corresponding to different heat dissipation devices may be different or the same. For example, the speed threshold corresponding to heat dissipation device 1 is 2000r / min, and the speed threshold corresponding to heat dissipation device 2 is 4000r / min.
[0116] In an exemplary embodiment, the rotational speed of the i-th heat dissipation device can be predicted based on the i-th eigenvalue and the rotational speed threshold corresponding to the i-th heat dissipation device in the following manner, but not limited to: dividing the i-th eigenvalue by 1 to obtain an i-th ratio, wherein the i-th eigenvalue is greater than or equal to 0 and less than or equal to 1; performing a multiplication operation on the i-th ratio and the rotational speed threshold corresponding to the i-th heat dissipation device to obtain an i-th product value, and determining the i-th product value as the rotational speed of the i-th heat dissipation device.
[0117] Optionally, in this embodiment, after obtaining the target speed feature vector, the feature values in the target speed feature vector may be mapped to the speed of the corresponding heat dissipation device, but not limited to, for example, the fan speed interval may be set to [0, 12000]. The value in the [0, 1] interval output by the model (equivalent to the target speed feature vector) will be mapped to the [0, 12000] interval, and the fan speed is finally obtained.
[0118] For example, =[0.2,0.4,0.5,0.6], the fan speed range is set to [0,12000], then the speed of fan 1 is 0.2 times 12000 equals 2400, then the speed of fan 1 is 0.4 times 12000 equals 4800, and so on.
[0119] In the technical solution provided in the above step S402, the heat dissipation device is controlled to run at a target speed. It is understandable that the target speed may be less than the current speed of the heat dissipation device, or the target speed may be greater than the current speed of the heat dissipation device, and so on.
[0120] In order to better understand the control method of the heat dissipation device in the embodiment of the present application, the control method of the heat dissipation device in the embodiment of the present application is explained and illustrated in combination with optional embodiments below, which can be applicable to but not limited to the embodiment of the present application.
[0121] The embodiments of this application design unique input and output data, reward functions and data fusion methods. These designs are mainly used in the three stages of data collection, action reasoning and training, which constitute the entire process of model generation.
[0122] Data collection: Mainly collects all the data generated during each model run, from receiving data to completing action reasoning, executing actions, and starting the next reasoning. These data are stored in the memory bank and used to train the model. The collected data can be divided into the following categories: input data, output data, and reward data. The input data is the temperature distribution of the server. The output data is the fan speed, and the reward data is the reward value corresponding to the fan speed output under the current temperature distribution.
[0123] Action reasoning: Receive input data and generate output actions. The input data is divided into two parts: real-time temperature distribution and historical temperature distribution. The temperature distribution includes: CPU temperature, GPU temperature, memory temperature, and hard disk temperature. The real-time temperature distribution can include, but is not limited to, a 1*4 vector representing the current temperature distribution. The historical temperature distribution can include, but is not limited to, a 30*4 vector representing the temperature distribution in the last 30 minutes. The two vectors are processed in different network layers, features are extracted, and then the current temperature state and the predicted value of the future temperature state are integrated to make control actions.
[0124] Training: Use the data collected in the data collection phase and a unique reward function to optimize the model parameters so that they gradually meet the heat dissipation requirements of the server.
[0125] The control method of the heat dissipation device in the embodiment of the present application can be implemented by, but not limited to, the following steps:
[0126] (1) Set up a data collection module and memory on the server: The data collection module uses sensors to obtain the temperature distribution of the server, which may include but is not limited to CPU temperature, GPU temperature, memory temperature, hard disk temperature, etc. The memory is used to store the collected data. When storing, each piece of data occupies a line. In addition to storing the temperature distribution of the server at this moment, each line also needs to reserve the corresponding fan decision action under this state, the temperature distribution of the server after the decision action is executed, and the storage space of the reward value. During the training process, as the model strategy is continuously optimized, early data will lose its training value. The memory needs to periodically forget the early data. When the number of training times reaches 100, the data before 100 times is deleted.
[0127] (2) Build a neural network model on the server (equivalent to the target prediction model): Figure 5 is a schematic diagram of an optional target prediction model according to an embodiment of the present application, such as Figure 5 As shown, the neural network model (equivalent to the target prediction model) can include but is not limited to an instant temperature processing module, a time series temperature analysis module and a data fusion layer. The neural network model receives real-time temperature distribution and historical temperature distribution data, processes them using different modules, and then fuses them to generate actions. After obtaining the current temperature distribution (or real-time temperature distribution, equivalent to h1) and the features of the historical temperature distribution (equivalent to h2) of the server, they are processed using a fully connected layer and an attention layer respectively. The attention layer fuses the current temperature features (equivalent to ) and the characteristics of the historical temperature distribution (equivalent to h2), and then output the attention weight (equivalent to y), and finally use the attention weight to adjust the fused feature vector. The output of the fully connected layer and the output of the attention layer can be input into the feedforward neural network, but it is not limited to using the sigmoid function to normalize the output of each neuron in the feedforward neural network so that the value of each result is in the interval [0,1] to obtain the target speed feature vector. The eigenvalues in the target speed feature vector can be mapped to the corresponding speeds to obtain the fan speed.
[0128] (3) Calculate and collect reward values.
[0129] (4) Start training after collecting a certain amount of data.
[0130] (5) The target prediction model can be deployed into FPGA but is not limited to it.
[0131] (6) Test the effectiveness of the strategy.
[0132] In order to verify the effectiveness of the fan control strategy, a series of tasks can be run on the server for testing, but are not limited to. Large-scale neural networks are trained on the server using the CPU and GPU to increase the load on the CPU and GPU, and the temperatures of the CPU, GPU, memory, and hard disk are monitored. Through monitoring, it was found that the CPU temperature did not exceed 65°, the GPU temperature did not exceed 75°, and the memory and hard disk temperatures were also kept within the normal operating range. The reinforcement learning model (equivalent to the target prediction model) performed well.
[0133] Through the embodiments of the present application. The real-time temperature processing module and the sequential temperature analysis module can analyze the temperature data of the server, and the analysis results promote the parametric simulation of the correlation between the heat diffusion of the server and the fan speed. And the reinforcement learning model is actually applied to the method of server fan control, the reinforcement learning model is written into the FPGA, the model reasoning process is accelerated, the control speed is improved, and the temperature sensor and BMC are connected using the FPGA device. The fan speed of different parts can be controlled according to the different temperatures of different components. It has better adaptability, can be adjusted in time according to environmental changes, improves control efficiency, and reduces control energy consumption.
[0134] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0135] In this embodiment, a control device for a heat dissipation device is also provided, and the device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0136] In this embodiment, a control device for a heat dissipation device is also provided. A heat dissipation device, a sensor and a heat dissipation device controller are deployed on a server. The heat dissipation device is used to control the temperature of the server. The heat dissipation device is connected to the heat dissipation device controller. The device is applied to the heat dissipation device controller. Figure 6 is a structural block diagram of a control device for a heat dissipation device according to an embodiment of the present application, such as Figure 6 As shown, the device comprises:
[0137] A monitoring module 602, used to monitor the heat dissipation status of the server;
[0138] A first extraction module 604 is used to extract the temperature information and temperature distribution information of the server collected by the sensor when the heat dissipation state is monitored to indicate that the temperature of the server is abnormal, wherein the temperature information is used to represent the temperature of the server at the current time, and the temperature distribution information is used to represent the change of the temperature of the server from a historical time to the current time, and the historical time is earlier than the current time;
[0139] The processing module 606 is used to input the temperature information and the temperature distribution information into the target prediction model deployed in the heat dissipation device controller to obtain the target rotation speed of the heat dissipation device output by the target prediction model, wherein the target prediction model is obtained by training an initial prediction model using sample data labeled with sample rotation speeds, and the sample data includes: sample temperature and sample temperature distribution, and the sample temperature distribution is used to characterize the change of the temperature of the server from a first time to a second time, the second time is the time when the temperature of the server is the sample temperature, and the first time is before the second time;
[0140] The control module 608 is used to control the heat dissipation device to operate according to the target rotation speed.
[0141] Through the above-mentioned device and the present application, when the heat dissipation status is monitored to indicate that the temperature of the server is abnormal, the temperature information and temperature distribution information of the server can be input into the prediction model, and the rotation speed of the heat dissipation device can be predicted by the prediction model. In this way, the rotation speed of the heat dissipation device can be accurately predicted according to the change of the temperature of the server to the temperature at the current time. For example, when the temperature of the server at the current time is 50°C and the temperature of the server rises from 30°C to 50°C, and when the temperature of the server at the current time is 60°C and the temperature of the server drops from 60°C to 50°C, even if the current temperature of the server is 50°C, through the embodiments of the present application, different rotation speeds can be predicted for the heat dissipation device in these two cases, thereby improving the control efficiency of the heat dissipation device. Therefore, the problem of low control efficiency of the heat dissipation device can be solved, thereby achieving the effect of improving the control efficiency of the heat dissipation device.
[0142] In an exemplary embodiment, the processing module 606 includes:
[0143] An extraction unit, used to extract an initial temperature feature vector corresponding to the temperature information, and to extract an initial temperature distribution feature vector corresponding to the temperature distribution information;
[0144] A prediction unit is used to predict the target rotation speed according to the initial temperature feature vector and the initial temperature distribution feature vector.
[0145] In an exemplary embodiment, the extraction unit is used to:
[0146] The initial temperature feature vector corresponding to the temperature information is extracted by the following formula:
[0147]
[0148] in, is the initial temperature eigenvector, is the temperature information, Indicates that an embedding operation is performed on the temperature information.
[0149] In an exemplary embodiment, the extraction unit is used to:
[0150] The initial temperature distribution feature vector corresponding to the temperature distribution information is extracted by the following formula:
[0151]
[0152] in, is the initial temperature distribution eigenvector, is the temperature distribution information, It represents that the initial temperature distribution feature vector corresponding to the temperature distribution information is extracted through a long short-term memory network.
[0153] In an exemplary embodiment, the prediction unit is configured to:
[0154] Determine a target temperature feature vector corresponding to the initial temperature feature vector; and determine a target temperature fusion feature vector based on the initial temperature distribution feature vector and the target temperature feature vector;
[0155] The target rotation speed is predicted according to the target temperature feature vector, the target temperature fusion feature vector and the initial temperature distribution feature vector.
[0156] In an exemplary embodiment, the prediction unit is configured to:
[0157] The target temperature characteristic vector is determined by the following formula:
[0158]
[0159] in, is the target temperature feature vector, is the first weight matrix, is the initial temperature eigenvector, is the first bias matrix.
[0160] In an exemplary embodiment, the prediction unit is configured to:
[0161] The target temperature fusion feature vector is determined by the following formula:
[0162]
[0163] in, is the target temperature fusion feature vector, is the second weight matrix, is the third weight matrix, is the target temperature feature vector, Indicates that The dimensions are adjusted to The same dimension as is the initial temperature distribution eigenvector, is the second bias matrix, represents the first normalization function, Indicates that The calculated values are normalized to the interval [0,1]. represents the hyperbolic tangent function, Representation calculation The value of the hyperbolic tangent function of .
[0164] In an exemplary embodiment, the prediction unit is configured to:
[0165] Extracting a target speed feature vector according to the target temperature feature vector, the target temperature fusion feature vector and the initial temperature distribution feature vector;
[0166] The target speed is predicted according to the target speed feature vector.
[0167] In an exemplary embodiment, the prediction unit is configured to:
[0168] The target speed feature vector is extracted by the following formula:
[0169]
[0170] in, is the target speed feature vector, is the fourth weight matrix, is the target temperature feature vector, is the third bias matrix, Fusion feature vector for target temperature The i-th row vector in is the initial temperature distribution characteristic vector The i-th row vector in M is the target temperature fusion feature vector The total number of rows, represents the second normalization function, Indicates that The calculated values are normalized to the range [0,1].
[0171] In an exemplary embodiment, the prediction unit is configured to:
[0172] When the dimension of the target speed feature vector is 1*N, the speed of the i-th heat sink among the N heat sinks is predicted by executing the following steps, wherein the heat sink includes the N heat sinks, N is a positive integer, and i is a positive integer less than or equal to N:
[0173] Extracting an i-th eigenvalue corresponding to the i-th heat dissipation device from the target speed eigenvector;
[0174] The rotation speed of the i-th heat dissipation device is predicted according to the i-th characteristic value and the rotation speed threshold corresponding to the i-th heat dissipation device.
[0175] In an exemplary embodiment, the prediction unit is configured to:
[0176] Dividing the i-th eigenvalue by 1 to obtain an i-th ratio, wherein the i-th eigenvalue is greater than or equal to 0 and less than or equal to 1;
[0177] A product operation is performed on the ith ratio and the rotation speed threshold corresponding to the ith heat dissipation device to obtain an ith product value, and the ith product value is determined as the rotation speed of the ith heat dissipation device.
[0178] In an exemplary embodiment, the apparatus further comprises:
[0179] a second extraction module, configured to extract the updated temperature information of the server collected by the sensor before monitoring the heat dissipation state of the server, while controlling the heat dissipation device to operate at a reference speed, wherein the reference speed is obtained by inputting the reference temperature information and reference temperature distribution information collected by the sensor into an initial prediction model, the reference temperature information is used to characterize the temperature of the server at a third time, the temperature distribution information is used to characterize the change of the temperature of the server from a fourth time to a third time, the fourth time is earlier than the third time, the updated temperature information is used to characterize the temperature of the server at a fifth time, the third time is earlier than the fifth time, and the time difference between the third time and the fifth time is equal to a preset time difference;
[0180] An adjustment module is used to adjust the parameters of the initial prediction model according to the updated temperature information and the temperature threshold corresponding to the server, and stop adjusting the parameters of the initial prediction model when the parameters of the initial prediction model meet the convergence conditions to obtain the target prediction model.
[0181] In an exemplary embodiment, the adjustment module includes:
[0182] a calculation unit, configured to calculate a reward value according to the updated temperature information and a temperature threshold corresponding to the server;
[0183] An adjustment unit is used to adjust the parameters of the initial prediction model according to the reward value.
[0184] In an exemplary embodiment, the computing unit is configured to:
[0185] The reward value is calculated by the following formula:
[0186]
[0187] in, is the reward value, is the temperature of the server at the fifth time represented by the updated temperature information, is the temperature threshold corresponding to the server, is the coefficient that balances energy consumption and temperature control, is the energy consumption corresponding to the heat dissipation device at the reference speed.
[0188] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0189] An embodiment of the present application further provides a computer-readable storage medium (1), in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0190] In an exemplary embodiment, the computer-readable storage medium (1) may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0191] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0192] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0193] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.
[0194] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0195] An embodiment of the present application also provides a computer program, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium (2); a processor of a computer device reads the computer instructions from the computer-readable storage medium (2), and the processor executes the computer instructions, so that the computer device executes the steps in any one of the above method embodiments.
[0196] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0197] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0198] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A control method for a heat dissipation device, characterized in that: A heat dissipation device, a sensor and a heat dissipation device controller are deployed on the server. The heat dissipation device is used to control the temperature of the server. The heat dissipation device is connected to the heat dissipation device controller. The method is applied to the heat dissipation device controller. The method includes: Monitoring the heat dissipation status of the server; In the case where the heat dissipation state is monitored to indicate that the temperature of the server is abnormal, extracting the temperature information and temperature distribution information of the server collected by the sensor, wherein the temperature information is used to characterize the temperature of the server at the current time, and the temperature distribution information is used to characterize the change of the temperature of the server from a historical time to the current time, and the historical time is earlier than the current time; Inputting the temperature information and the temperature distribution information into a target prediction model deployed in the heat dissipation device controller to obtain a target rotation speed of the heat dissipation device output by the target prediction model, wherein the target prediction model is obtained by training an initial prediction model using sample data labeled with sample rotation speeds, the sample data including: sample temperature and sample temperature distribution, the sample temperature distribution being used to characterize a change in the temperature of the server from a first time to a second time, the second time being a time when the temperature of the server is the sample temperature, and the first time being before the second time; Controlling the heat dissipation device to operate according to the target speed; The step of inputting the temperature information and the temperature distribution information into a target prediction model deployed in the heat dissipation device controller to obtain a target speed of the heat dissipation device output by the target prediction model comprises: extracting an initial temperature feature vector corresponding to the temperature information, and extracting an initial temperature distribution feature vector corresponding to the temperature distribution information; predicting the target speed according to the initial temperature feature vector and the initial temperature distribution feature vector; Wherein, predicting the target speed according to the initial temperature feature vector and the initial temperature distribution feature vector includes: determining a target temperature feature vector corresponding to the initial temperature feature vector; and determining a target temperature fusion feature vector according to the initial temperature distribution feature vector and the target temperature feature vector; predicting the target speed according to the target temperature feature vector, the target temperature fusion feature vector and the initial temperature distribution feature vector; Among them, predicting the target speed based on the target temperature feature vector, the target temperature fusion feature vector and the initial temperature distribution feature vector includes: extracting the target speed feature vector based on the target temperature feature vector, the target temperature fusion feature vector and the initial temperature distribution feature vector; predicting the target speed based on the target speed feature vector.
2. The method according to claim 1, characterized in that The extracting the initial temperature feature vector corresponding to the temperature information includes: The initial temperature feature vector corresponding to the temperature information is extracted by the following formula: in, is the initial temperature eigenvector, is the temperature information, Indicates that an embedding operation is performed on the temperature information.
3. The method according to claim 1, characterized in that The extracting the initial temperature distribution feature vector corresponding to the temperature distribution information includes: The initial temperature distribution feature vector corresponding to the temperature distribution information is extracted by the following formula: in, is the initial temperature distribution eigenvector, is the temperature distribution information, It represents that the initial temperature distribution feature vector corresponding to the temperature distribution information is extracted through a long short-term memory network.
4. The method according to claim 1, characterized in that: The determining of the target temperature feature vector corresponding to the initial temperature feature vector includes: The target temperature characteristic vector is determined by the following formula: in, is the target temperature feature vector, is the first weight matrix, is the initial temperature eigenvector, is the first bias matrix.
5. The method according to claim 1, characterized in that The step of determining a target temperature fusion feature vector according to the initial temperature distribution feature vector and the target temperature feature vector comprises: The target temperature fusion feature vector is determined by the following formula: in, is the target temperature fusion feature vector, is the second weight matrix, is the third weight matrix, is the target temperature feature vector, Indicates that The dimensions are adjusted to The same dimension as is the initial temperature distribution eigenvector, is the second bias matrix, represents the first normalization function, Indicates that The calculated values are normalized to the interval [0,1]. represents the hyperbolic tangent function, Representation calculation The value of the hyperbolic tangent function of .
6. The method according to claim 1, characterized in that The step of extracting a target speed feature vector according to the target temperature feature vector, the target temperature fusion feature vector and the initial temperature distribution feature vector comprises: The target speed feature vector is extracted by the following formula: in, is the target speed feature vector, is the fourth weight matrix, is the target temperature feature vector, is the third bias matrix, Fusion feature vector for target temperature The i-th row vector in is the initial temperature distribution characteristic vector The i-th row vector in M is the target temperature fusion feature vector The total number of rows, represents the second normalization function, Indicates that The calculated values are normalized to the range [0,1].
7. The method according to claim 1, characterized in that The predicting the target speed according to the target speed feature vector includes: When the dimension of the target speed feature vector is 1*N, the speed of the i-th heat sink among the N heat sinks is predicted by executing the following steps, wherein the heat sink includes the N heat sinks, N is a positive integer, and i is a positive integer less than or equal to N: Extracting an i-th eigenvalue corresponding to the i-th heat dissipation device from the target speed eigenvector; The rotation speed of the i-th heat dissipation device is predicted according to the i-th characteristic value and the rotation speed threshold corresponding to the i-th heat dissipation device.
8. The method according to claim 7, characterized in that The predicting the rotation speed of the i-th heat dissipation device according to the i-th characteristic value and the rotation speed threshold corresponding to the i-th heat dissipation device includes: Dividing the i-th eigenvalue by 1 to obtain an i-th ratio, wherein the i-th eigenvalue is greater than or equal to 0 and less than or equal to 1; A product operation is performed on the ith ratio and the rotation speed threshold corresponding to the ith heat dissipation device to obtain an ith product value, and the ith product value is determined as the rotation speed of the ith heat dissipation device.
9. The method according to claim 1, characterized in that: Before monitoring the heat dissipation status of the server, the method further includes: Under the condition that the heat dissipation device is controlled to operate at a reference speed, updated temperature information of the server collected by the sensor is extracted, wherein the reference speed is obtained by inputting the reference temperature information and reference temperature distribution information collected by the sensor extracted into an initial prediction model, the reference temperature information is used to characterize the temperature of the server at a third time, the temperature distribution information is used to characterize the change of the temperature of the server from a fourth time to the third time, the fourth time is earlier than the third time, the updated temperature information is used to characterize the temperature of the server at a fifth time, the third time is earlier than the fifth time, and the time difference between the third time and the fifth time is equal to a preset time difference; According to the updated temperature information and the temperature threshold corresponding to the server, the parameters of the initial prediction model are adjusted, and when the parameters of the initial prediction model meet the convergence conditions, the adjustment of the parameters of the initial prediction model is stopped to obtain the target prediction model.
10. The method according to claim 9, characterized in that The adjusting the parameters of the initial prediction model according to the updated temperature information and the temperature threshold corresponding to the server includes: Calculating a reward value according to the updated temperature information and a temperature threshold corresponding to the server; According to the reward value, the parameters of the initial prediction model are adjusted.
11. The method according to claim 10, characterized in that The calculating the reward value according to the updated temperature information and the temperature threshold corresponding to the server includes: The reward value is calculated by the following formula: in, is the reward value, is the temperature of the server at the fifth time represented by the updated temperature information, is the temperature threshold corresponding to the server, is the coefficient that balances energy consumption and temperature control, is the energy consumption corresponding to the heat dissipation device at the reference speed.
12. A control device for a heat dissipation device, characterized in that: A heat dissipation device, a sensor and a heat dissipation device controller are deployed on the server. The heat dissipation device is used to control the temperature of the server. The heat dissipation device is connected to the heat dissipation device controller. The device is applied to the heat dissipation device controller. The device includes: A monitoring module, used for monitoring the heat dissipation status of the server; A first extraction module is used to extract the temperature information and temperature distribution information of the server collected by the sensor when the heat dissipation state is monitored to indicate that the temperature of the server is abnormal, wherein the temperature information is used to represent the temperature of the server at the current time, and the temperature distribution information is used to represent the change of the temperature of the server from a historical time to the current time, and the historical time is earlier than the current time; a processing module, configured to input the temperature information and the temperature distribution information into a target prediction model deployed in the heat dissipation device controller, and obtain a target rotation speed of the heat dissipation device output by the target prediction model, wherein the target prediction model is obtained by training an initial prediction model using sample data labeled with sample rotation speeds, and the sample data includes: a sample temperature and a sample temperature distribution, and the sample temperature distribution is used to characterize a change in the temperature of the server from a first time to a second time, the second time being a time when the temperature of the server is the sample temperature, and the first time is before the second time; A control module, used for controlling the heat dissipation device to operate according to the target speed; The processing module includes: an extraction unit for extracting an initial temperature characteristic vector corresponding to the temperature information and an initial temperature distribution characteristic vector corresponding to the temperature distribution information; a prediction unit for predicting the target speed according to the initial temperature characteristic vector and the initial temperature distribution characteristic vector; Wherein, the prediction unit is used to: determine the target temperature feature vector corresponding to the initial temperature feature vector; and determine the target temperature fusion feature vector according to the initial temperature distribution feature vector and the target temperature feature vector; predict the target speed according to the target temperature feature vector, the target temperature fusion feature vector and the initial temperature distribution feature vector; Wherein, the prediction unit is used to: extract a target speed feature vector according to the target temperature feature vector, the target temperature fusion feature vector and the initial temperature distribution feature vector; and predict the target speed according to the target speed feature vector.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 11 when executed by a processor.
14. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 11 are implemented.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, Implement the steps of the method described in any one of claims 1 to 11.
