A server fan control method and computer device
By constructing a neural network model and using the detection values of temperature sensors for online training, the problems of inaccurate speed control and poor portability in server fan control methods are solved, achieving precise control and efficient deployment of fan speed.
Patent Information
- Application Number
- CN202310498216.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-27
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-04-27
AI Technical Summary
Existing server fan control methods suffer from insufficient precision in speed control, making it impossible to quickly achieve the optimal balance between speed, power consumption, and noise. Furthermore, the algorithms have poor portability and low deployment efficiency.
An initial neural network model was constructed and trained online using the detection values of the temperature sensor inside the server. The weight coefficients were updated through a loss function to achieve precise control of the fan speed. A recurrent neural network model was used for nonlinear prediction.
It achieves precise control of fan speed, quickly reaching the optimal balance point of speed, power consumption, and noise, thus improving the portability and deployment efficiency of the algorithm.
Smart Images

Figure CN116560475B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of server heat dissipation technology, and in particular to a server fan control method and computer equipment. Background Technology
[0002] Air-cooled servers primarily use fans for heat dissipation. Meanwhile, the server's BMC (Block Controller) uses automatic speed control algorithms to balance server performance, motherboard component temperatures, power consumption, and noise. Currently, the commonly used speed control methods are piecewise linear control and PID control. However, both methods share the following drawbacks: 1. Both methods are linear control, meaning there is a fixed linear relationship between fan speeds, resulting in imprecise control and an inability to quickly achieve the optimal balance between speed, power consumption, and noise; 2. Each fan within the server needs to have an influence weight set, leading to too many preset parameters and complex algorithms. When the fan configuration varies between different servers, the algorithm needs to be modified for each server's specific situation, resulting in poor portability and low implementation efficiency.
[0003] Therefore, a server fan control solution that can achieve precise speed control and is highly portable is urgently needed in this field. Summary of the Invention
[0004] To address the aforementioned technical problems, in a first aspect of the present invention, a server fan control method is proposed. The method includes: constructing an initial neural network model, wherein an input layer of the model is constructed based on the number of temperature sensors within the server, an output layer is constructed based on the number of fans, and a hidden layer is configured between the input layer and the output layer; constructing a loss function, the loss function including sensor states, system power consumption, and system noise; training the initial neural network model online using the detection values of all temperature sensors within the server at different times, and performing backpropagation based on the accumulated loss of the loss function to update the initial weight coefficients of the initial neural network model; outputting a first neural network model in response to the accumulated loss of the loss function being less than a preset threshold; and determining the rotational speed of each fan using the first neural network model and the current detection values of all temperature sensors within the server.
[0005] In one or more embodiments, the initial neural network model includes an initial recurrent neural network model containing at least three hidden layers, the output of each hidden layer serving as an input to that hidden layer.
[0006] In one or more embodiments, the recurrent neural network model includes four hidden layers: a first hidden layer connected to the input layer contains 4N units; a second hidden layer connected to the first hidden layer contains 3N units; a third hidden layer connected to the second hidden layer contains 2N units; and a fourth hidden layer connected to the output layer contains N units, where N is the number of units in the input layer.
[0007] In one or more embodiments, the method further includes: configuring initial weight coefficients for the initial recurrent neural network model, the initial weight coefficients including: a first initial weight coefficient configured as weight coefficients between the input layer and the hidden layer and between hidden layers; a second initial weight coefficient configured as inter-layer weight coefficients between the hidden layer and the output layer; and a third initial weight coefficient configured as the weight coefficients of the self-loop of the hidden layer.
[0008] In one or more embodiments, the loss function includes:
[0009] Loss t =TempRatio t ×Power t ×Noise t ;
[0010] in, Let TempSetpoint be the detection value of the nth temperature sensor at time t. n For the set target temperature value of the nth sensor, Power t The total power consumption of the system during the period from (t-1) to t. t This refers to the average value of the system noise during the period from (t-1) to t.
[0011] In one or more embodiments, the Noise t The calculation methods include:
[0012]
[0013] Where FrameN is the total number of frames after the recording is divided into frames, and ValFreq_(r,f) is the f-th frequency point value of the r-th frame after framing.
[0014] In one or more embodiments, the step of training the initial neural network model online using the detection values of all temperature sensors inside the server at different times further includes: sending the output of the initial neural network model to the corresponding fan of the server to control the speed of the corresponding fan; and using a recorder preset inside the server to collect noise recordings inside the server in real time.
[0015] In one or more embodiments, the step of backpropagating based on the accumulated loss of the loss function to update the initial weight coefficients of the initial neural network model includes: updating the initial weight coefficients of the initial neural network model using a time-based backpropagation algorithm in response to the accumulated loss of the loss function being greater than or equal to the preset threshold.
[0016] In one or more embodiments, determining the speed of each fan using the first neural network model and the detection values of all temperature sensors in the server includes: inputting the detection values of all temperature sensors in the server into the first neural network model to obtain a first output value; and converting the first output value into multiple PWM signals and sending them to the corresponding fans of the server to control the speed of each fan.
[0017] In a second aspect of the invention, a computer device is provided, comprising: at least one processor; and a memory storing an executable computer program, which, when executed by the at least one processor, is used to implement corresponding steps of a server fan control method as described in any of the above embodiments, the steps including:
[0018] An initial neural network model is constructed, wherein the input layer of the model is constructed based on the number of temperature sensors in the server, the output layer of the model is constructed based on the number of fans, and a hidden layer is configured between the input layer and the output layer; a loss function is constructed, which includes sensor state, system power consumption, and system noise; the initial neural network model is trained online using the detection values of all temperature sensors in the server at different times, and backpropagation is performed based on the cumulative loss of the loss function to update the initial weight coefficients of the initial neural network model; in response to the cumulative loss of the loss function being less than a preset threshold, a first neural network model is output; the rotational speed of each fan is determined using the first neural network model and the current detection values of all temperature sensors in the server.
[0019] In one or more embodiments, the initial neural network model includes an initial recurrent neural network model containing at least three hidden layers, the output of each hidden layer serving as an input to that hidden layer.
[0020] In one or more embodiments, the recurrent neural network model includes four hidden layers: a first hidden layer connected to the input layer contains 4N units; a second hidden layer connected to the first hidden layer contains 3N units; a third hidden layer connected to the second hidden layer contains 2N units; and a fourth hidden layer connected to the output layer contains N units, where N is the number of units in the input layer.
[0021] In one or more embodiments, the method further includes: configuring initial weight coefficients for the initial recurrent neural network model, the initial weight coefficients including: a first initial weight coefficient configured as weight coefficients between the input layer and the hidden layer and between hidden layers; a second initial weight coefficient configured as inter-layer weight coefficients between the hidden layer and the output layer; and a third initial weight coefficient configured as the weight coefficients of the self-loop of the hidden layer.
[0022] In one or more embodiments, the loss function includes:
[0023] 〖Loss〗^t=TempRatio^t×Power^t×Noise^t;
[0024] Where TempRatio^t=max┬(1≤n≤N)((〖TempNow〗_n^t) / 〖TempSetpoint〗_n), TempNow_n^t is the detection value of the nth temperature sensor at time t, TempSetpoint_n is the set target temperature value of the nth sensor, Power^t refers to the total power consumption of the system during the period from (t-1) to t, and Noise^t refers to the average value of the system noise during the period from (t-1) to t.
[0025] In one or more embodiments, the calculation of Noise^t includes:
[0026]
[0027] Where FrameN is the total number of frames after the recording is divided into frames, and ValFreq_(r,f) is the f-th frequency point value of the r-th frame after framing.
[0028] In one or more embodiments, the step of training the initial neural network model online using the detection values of all temperature sensors inside the server at different times further includes: sending the output of the initial neural network model to the corresponding fan of the server to control the speed of the corresponding fan; and using a recorder preset inside the server to collect noise recordings inside the server in real time.
[0029] In one or more embodiments, the step of backpropagating based on the accumulated loss of the loss function to update the initial weight coefficients of the initial neural network model includes: updating the initial weight coefficients of the initial neural network model using a time-based backpropagation algorithm in response to the accumulated loss of the loss function being greater than or equal to the preset threshold.
[0030] In one or more embodiments, determining the speed of each fan using the first neural network model and the detection values of all temperature sensors in the server includes: inputting the detection values of all temperature sensors in the server into the first neural network model to obtain a first output value; and converting the first output value into multiple PWM signals and sending them to the corresponding fans of the server to control the speed of each fan.
[0031] The beneficial effects of this invention include: the method of using the loss function of this invention to train a neural network model and then using the neural network model to predict and control the fan speed can effectively reduce the configuration work of preset parameters, realize the deployment of a streamlined training and control method, and achieve high implementation efficiency; and because the model is nonlinear, the calculated fan speed is smooth and accurate. Attached Figure Description
[0032] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other embodiments can be obtained based on these drawings without creative effort.
[0033] Figure 1 This is a flowchart of a server fan control method according to an embodiment of the present invention;
[0034] Figure 2 This is a schematic diagram of the neural network model according to an embodiment of the present invention;
[0035] Figure 3 This is a flowchart illustrating the online training process of a recurrent neural network model according to an embodiment of the present invention.
[0036] Figure 4 This is a flowchart illustrating fan speed control in an application embodiment of the present invention;
[0037] Figure 5 This is a schematic diagram of the structure of a computer device according to the present invention. Detailed Implementation
[0038] To make the objectives, technical solutions, and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to specific examples and the accompanying drawings.
[0039] It should be noted that all uses of "first" and "second" in the embodiments of the present invention are for the purpose of distinguishing two entities or parameters with the same name but different names. It is clear that "first" and "second" are only for the convenience of expression and should not be construed as limiting the embodiments of the present invention. Subsequent embodiments will not explain this in detail.
[0040] To achieve precise control of the speed of each fan, in a first aspect of this invention, a server fan control method is proposed. This method uses the detection values of all temperature sensors inside the server as training samples input into a neural network model. The neural network model is iteratively trained by constructing a loss function that includes sensor states, system power consumption, and system noise. This allows the method to output precise speed control signals based on the detection values of all temperature sensors, and since there is no fixed linear relationship between the control signals, it can more quickly achieve the optimal balance between speed, power consumption, and noise. The following will describe the solution of this invention in detail with reference to the accompanying drawings.
[0041] Figure 1 This is a flowchart illustrating a server fan control method according to an embodiment of the present invention. Figure 1 As shown, a server fan control method in this embodiment includes: Step S1, constructing an initial neural network model, wherein the input layer of the model is constructed according to the number of temperature sensors in the server, the output layer of the model is constructed according to the number of fans, and a hidden layer is configured between the input layer and the output layer; Step S2, constructing a loss function, the loss function including sensor state, system power consumption, and system noise; Step S3, training the initial neural network model online using the detection values of all temperature sensors in the server at different times, and performing backpropagation based on the cumulative loss of the loss function to update the initial weight coefficients of the initial neural network model; Step S4, outputting a first neural network model in response to the cumulative loss of the loss function being less than a preset threshold; Step S5, determining the speed of each fan using the first neural network model and the detection values of all temperature sensors in the server.
[0042] Specifically, this implementation proposes using a neural network model to predict the required speed of each fan within the server based on the detection values of all temperature sensors inside the server. This differs from the traditional approach of linearly controlling fan speed based on temperature sensor readings. It can adjust the control relationship of each fan speed according to the real-time status of the temperature sensors, thereby quickly achieving an optimal balance between speed, power consumption, and noise. Furthermore, when porting the trained neural network model to servers with different numbers of temperature sensors and fans, it is only necessary to adaptively adjust the number of input and output nodes of the model according to the number of sensors and fans, and perform simple training based on the sensor data of the current server. This can significantly shorten the deployment cycle of the server cluster.
[0043] Figure 2This is a schematic diagram of the neural network model according to an embodiment of the present invention. In this embodiment, the initial neural network model is a recurrent neural network model, and the recurrent neural network model of this embodiment contains at least three hidden layers, with the output of each hidden layer serving as one input to that hidden layer.
[0044] Specifically, such as Figure 2 As shown, the number of temperature sensors in the transmission server is N, and the number of fans is M. The recurrent neural network model in this embodiment includes four hidden layers: the first hidden layer connected to the input layer contains 4N units, the second hidden layer connected to the first hidden layer contains 3N units, the third hidden layer connected to the second hidden layer contains 2N units, and the fourth hidden layer connected to the output layer contains N units. This refers to the training sample input at sequence index t, which is the normalized detection value of all temperature sensors inside the server at time t. This means the input data matrix has a dimension of N×1. Similarly, X t-1 and X t+1 These refer to the training samples input at time t-1 and time t+1, respectively. N refers to the state of the Lth hidden layer at sequence index t. L The specific value depends on the number of layers it belongs to; for example, the specific dimension of the first hidden layer is represented as follows: This refers to the predicted output of the model at sequence index t; both the hidden layer and the output layer use the sigmoid function as the activation function, as shown in the following formula:
[0045]
[0046] Where e is the natural logarithm.
[0047] In a further embodiment, the method of the present invention further includes: configuring initial weight coefficients for the initial recurrent neural network model; please continue to see... Figure 2 The initial weight coefficients include: a first initial weight coefficient (including U1-U4), configured as the weight coefficients between the input layer and the hidden layer and between hidden layers; a second initial weight coefficient (V), configured as the inter-layer weight coefficients between the hidden layer and the output layer; and a third initial weight coefficient (including W1-W4), configured as the weight coefficients of the self-loop of the hidden layer.
[0048] Specifically, U, V, and W are all weight coefficient matrices, which are the linear transformation coefficients of the model and are shared throughout the entire RNN network. This refers to the input weight coefficients of the Lth layer of the model. The dimension of the coefficient matrix depends on the number of layers. For example, the input weight coefficients of the second hidden layer are... N refers to the input weight coefficients of the Lth hidden layer in the model at the previous and next time steps;L The specific value depends on the layer number it belongs to; for example, the weight coefficient of the second hidden layer is... This refers to the weight coefficients of the hidden layer and the output layer of the model.
[0049] In a further embodiment, the loss function used in this invention includes:
[0050] Loss t =TempRatio t ×Power t ×Noise t ;
[0051] in, Let TempSetpoint be the detection value of the nth temperature sensor at time t. n For the target temperature value set for the nth sensor, Power t Let Noise be the total power consumption of the system during the period from (t-1) to t. t The average value of the system noise during the period (t-1) to t.
[0052] In a further embodiment, Noise t The calculation methods include:
[0053]
[0054] Where FrameN is the total number of frames after the recording is divided into frames, and ValFreq_(r,f) is the f-th frequency point value of the r-th frame after framing.
[0055] In a further embodiment, the initial neural network model is trained online using the detection values of all temperature sensors inside the server at different times, and the method further includes: sending the output of the initial neural network model to the corresponding fan of the server to control the speed of the corresponding fan; and using a pre-installed recorder inside the server to collect noise recordings inside the server in real time.
[0056] In a further embodiment, backpropagation is performed based on the accumulated loss of the loss function to update the initial weight coefficients of the initial neural network model, including: updating the initial weight coefficients of the initial neural network model using a time-based backpropagation algorithm in response to the accumulated loss of the loss function being greater than or equal to a preset threshold.
[0057] In a further embodiment, the rotational speed of each fan is determined using a first neural network model and the detection values of all temperature sensors in the current server, including: inputting the detection values of all temperature sensors in the current server into the first neural network model to obtain a first output value; and converting the first output value into multiple PWM signals and sending them to the corresponding fans of the server to control the rotational speed of each fan.
[0058] Figure 3 This is a flowchart illustrating the online training process of a recurrent neural network model according to an embodiment of the present invention. Please refer to [link / reference]. Figure 3 In this embodiment, the process of training the recurrent neural network model includes:
[0059] Step 10: Initialize the model; in an optional implementation, all weight coefficients of the model are initialized using a Gaussian distribution N(0,0.01).
[0060] Step 20: Obtain the real-time detection values of all sensors as input data for the model; in an optional embodiment, each round of training inputs 10 sequence data, that is, ten consecutive sets of sensor detection values in time, each set containing all sensors of the server.
[0061] Step 30: Normalize each input data point; the normalization method is calculated using the following formula:
[0062]
[0063] in, This is the original temperature measurement value; This is the theoretically achievable minimum temperature. The theoretically achievable maximum temperature; . / represents dot division; This refers to the normalized value.
[0064] Step 40: Perform forward computation on the model; specifically, forward computation includes two processes, namely Step 41 and Step 42.
[0065] Step 41: Obtain the output value of the recurrent neural network model and convert it into a PWM control signal to control the speed of the corresponding fan; wherein, the output value of the model will be converted into multiple PWM control signals, the number of which is consistent with the number of fans inside the server.
[0066] Specifically, at time t, based on the input X at the current time... t and the hidden layer state retained from the previous moment The model output at this moment is calculated using the following formula. Here, the hidden layer state is used for calculation. With the final output layer O t For example, the same logic applies to other layers:
[0067]
[0068] O^t = sigmoid(V^'H_4^t);
[0069] Where, (x) ′ To transpose matrix x, b L It is the bias coefficient corresponding to each hidden layer, and its dimension is consistent with the number of units in that layer, where L is the number of layers.
[0070] In a further embodiment, to prevent the theoretical control speed of the PWM signal from exceeding the actual speed the fan can achieve, the PWM value is rounded and truncated according to the following formula:
[0071] P t =MIN(MAX(UPPER(P) t ), PWM MIN ), PWM MAX ) t
[0072] Where UPPER(x) rounds the floating-point number x up; MIN(x,y) takes the smaller of x and y; MAX(x,y) takes the larger of x and y; PWM MIN Minimum PWM value set for the fan; PWM MAX The maximum PWM value set for the fan.
[0073] Step 42: Calculate the loss function based on the current server state; in one embodiment, the loss function designed in this embodiment includes:
[0074] Loss t =TempRatio t ×Power t ×Noise t ;
[0075] in, Let TempSetpoint be the detection value of the nth temperature sensor at time t. n For the set target temperature value of the nth sensor, Power t Let Noise be the total power consumption of the system during the period from (t-1) to t. t The average value of the system noise during the period (t-1) to t;
[0076] Specifically, the server internally uses multiple temperature sensors to monitor the temperature of different hardware components. Each sensor is pre-configured with a target temperature value. When the temperature of the corresponding hardware is greater than or equal to the target temperature value, the speed of the corresponding fan needs to be adjusted to keep the hardware temperature below the target temperature value. This can be understood as... The higher the value, the higher the corresponding fan speed. To ensure the safety of the hardware whose current temperature exceeds its safe value the most, it is necessary to reduce the fan speed. The model coefficients are updated in the direction of the direction, namely the three coefficients U, V and W in the aforementioned embodiment;
[0077] Noise t The calculation methods include:
[0078]
[0079] Where FrameN represents the total number of frames after framing the recording, and ValFreq_(r,f) represents the f-th frequency value of the r-th frame after framing. As can be seen from the calculation formula of the loss function, this invention requires obtaining the real-time system power and system noise of the server system. For calculating system power consumption, in one optional embodiment, the real-time power consumption of each hardware component can be monitored by the BMC board and summed. In another optional embodiment, a power meter can be installed on the power supply side of the server to monitor the server's power consumption in real time. For system noise, a recorder needs to be preset inside the server to collect noise recordings inside the server in real time. At this time, the fan should be able to operate according to the model output of the previous moment.
[0080] Step 50: Calculate the accumulated error (accumulated loss); specifically, when updating coefficients through backpropagation, the accumulated error of all time points before the current time needs to be considered. The calculation method is shown in the following formula.
[0081]
[0082] Here, Loss refers to the output value of the loss function at each previous time step, and T is the total number of training sequences in the current round.
[0083] Step 60: Determine whether the training termination condition is met; specifically, whether the training termination condition is met is determined based on the accumulated loss and the preset threshold; when the accumulated loss is greater than or equal to the preset threshold, proceed to step 61; when the accumulated loss is less than the preset threshold, proceed to step 62.
[0084] Step 61: Update the model weight coefficients; specifically, in this embodiment, the Back-Propagation Through Time (BPTT) algorithm is used to update the model weight coefficients, that is, to update U, V and W in the above embodiment.
[0085] Step 62: Output the weight coefficients, i.e., output the final recurrent neural network model;
[0086] Step 70: End training.
[0087] In practical applications, it is only necessary to preset the neural network model on the corresponding server and input the detection values of all sensors within the server, collected periodically, into the processor running the neural network model to output the corresponding PWM control signal. The complete process of controlling the fan speed is as follows: Figure 4 As shown, the process includes acquiring real-time sensor detection values; normalizing the input data; forward calculation; outputting a PWM signal; and controlling the fan speed. Figure 4 This is a flowchart illustrating fan speed control in an application embodiment of the present invention.
[0088] As can be seen from the above embodiments, recurrent neural networks (RNNs) are based on time-series data and can learn the correlation between different points in time (at different moments). The RNN model trained using the loss function designed in this invention can effectively reduce preset parameters, achieve streamlined training and deployment, and has high implementation efficiency; moreover, because the model is non-linear, the calculated fan speed is smooth and accurate.
[0089] Figure 5 This is a schematic diagram of the structure of a computer device according to the present invention. Figure 2 As shown, it includes: at least one processor 100; and a memory 200 storing an executable computer program, which, when executed by the at least one processor 100, is used to implement corresponding steps of a server fan control method as described in any of the above embodiments.
[0090] The method of using the loss function in the computer device of this invention to train a neural network model and then using the neural network model to predict and control the fan speed can effectively reduce the configuration work of preset parameters, realize the deployment of a streamlined training and control method, and achieve high implementation efficiency; and because the model is nonlinear, the calculated fan speed is smooth and accurate.
[0091] The above are exemplary embodiments disclosed in this invention. However, it should be noted that various changes and modifications can be made without departing from the scope of the embodiments of this invention as defined by the claims. The functions, steps, and / or actions of the methods according to the disclosed embodiments described herein do not need to be performed in any particular order. Furthermore, although the elements disclosed in the embodiments of this invention may be described or claimed individually, they may be understood as multiple unless explicitly limited to a singular number.
[0092] It should be understood that, as used herein, the singular form “a” is intended to include the plural form as well, unless the context clearly supports an exception. It should also be understood that, as used herein, “and / or” refers to any and all possible combinations of one or more of the associated listed items.
[0093] The embodiment numbers disclosed in the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0094] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of the invention (including the claims) is limited to these examples. Within the framework of the invention, technical features of the above embodiments or different embodiments can be combined, and many other variations of different aspects of the invention exist, which are not provided in the details for the sake of brevity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the invention should be included within the protection scope of the invention.
Claims
1. A server fan control method, characterized in that, The method includes: An initial neural network model is constructed, wherein the input layer of the model is constructed according to the number of temperature sensors in the server, the output layer of the model is constructed according to the number of fans, and a hidden layer is configured between the input layer and the output layer; Construct a loss function that includes sensor state, system power consumption, and system noise; The initial neural network model is trained online using the detection values of all temperature sensors inside the server at different times, and backpropagation is performed based on the cumulative loss of the loss function to update the initial weight coefficients of the initial neural network model. In response to the cumulative loss of the loss function being less than a preset threshold, the first neural network model is output; The rotational speed of each fan is determined using the first neural network model and the detection values of all temperature sensors within the server. The loss function includes: ; in, , Let be the detected value of the nth temperature sensor at time t. The target temperature value set for the nth sensor. Let be the total system power consumption during the period from (t-1) to t. Let be the average system noise during the period (t-1) to t; The The calculation methods include: Where FrameN is the total number of frames after dividing the recording into frames. This is the value of the f-th frequency point in the r-th frame after framing.
2. The server fan control method according to claim 1, characterized in that, The initial neural network model includes an initial recurrent neural network model, which contains at least three hidden layers, with the output of each hidden layer serving as an input to that hidden layer.
3. A server fan control method according to claim 2, characterized in that, The recurrent neural network model includes four hidden layers. The first hidden layer connected to the input layer contains 4N units, the second hidden layer connected to the first hidden layer contains 3N units, the third hidden layer connected to the second hidden layer contains 2N units, and the fourth hidden layer connected to the output layer contains N units, where N is the number of units in the input layer.
4. A server fan control method according to claim 2 or 3, characterized in that, The method further includes: configuring initial weight coefficients for the initial recurrent neural network model, wherein the initial weight coefficients include: The first initial weight coefficients are configured as the weight coefficients between the input layer and the hidden layer, and between the hidden layers; The second initial weight coefficient is configured as the inter-layer weight coefficient between the hidden layer and the output layer; The third initial weight coefficient is configured as the weight coefficient of the self-loop of the hidden layer.
5. A server fan control method according to claim 1, characterized in that, The online training of the initial neural network model using the detection values from all temperature sensors inside the server at different times also includes: The output of the initial neural network model is sent to the corresponding fan of the server to control the speed of the corresponding fan; The noise recording inside the server is collected in real time using a pre-installed recorder inside the server.
6. A server fan control method according to claim 1, characterized in that, The step of backpropagating based on the accumulated loss of the loss function to update the initial weight coefficients of the initial neural network model includes: In response to the cumulative loss of the loss function being greater than or equal to the preset threshold, the initial weight coefficients of the initial neural network model are updated using a time-based backpropagation algorithm.
7. A server fan control method according to claim 1, characterized in that, The step of determining the speed of each fan using the first neural network model and the detection values of all temperature sensors in the server includes: The detection values of all temperature sensors in the current server are input into the first neural network model to obtain the first output value; The first output value is converted into multiple PWM signals and sent to the corresponding fan of the server to control the speed of each fan.
8. A computer device, characterized in that, include: At least one processor; as well as A memory storing an executable computer program, which, when executed by the at least one processor, is used to implement the corresponding steps of a server fan control method as described in any one of claims 1-7.
Citation Information
Patent Citations
Fan operation control method and device, electronic equipment and storage medium
CN115915734A
