Server fan rotating speed regulation and control method, device and equipment and storage medium

By dynamically adjusting the speed adjustment point and fan speed on the CPU, the problem of excessive power consumption and noise in the server fan speed adjustment solution is solved, the CPU is quickly pulled and stabilized, and heat dissipation is achieved, reducing energy consumption. and noise.

CN118860098APending Publication Date: 2024-10-29INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411088665.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing server fan speed control solutions use fixed speed control points, which increases the risk of central processor overheating during the pressure mutation test. System power consumption and noise are too high, making it difficult to effectively solve the problem.

Method used

By detecting power consumption fluctuations at preset time intervals on the central processor, when power consumption fluctuations exceeding the preset value are detected, the speed regulation point is reset to the initial value, and the speed regulation point is dynamically adjusted, combined with the system The average power consumption and the upper and lower limits of the speed control point are used to regulate the fan speed to achieve rapid rotation and stable speed regulation.

Benefits of technology

It avoids the over-temperature of the CPU, saves energy, reduces fan noise, maintains the minimum speed requirement when power consumption is stable, and improves system efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118860098A_ABST
    Figure CN118860098A_ABST
Patent Text Reader

Abstract

The invention discloses a server fan rotating speed regulation and control method and device, equipment and a storage medium, and the method comprises the steps: carrying out the power consumption fluctuation detection of a central processing unit according to a preset time interval, and obtaining a power consumption fluctuation value of each first central processing unit; when a first central processing unit power consumption fluctuation value exceeding a first preset value is detected, resetting a current central processing unit speed regulation point to regulate and control the rotating speed of the fan; when the power consumption fluctuation value of each first central processing unit in the current period does not exceed a first preset value, a second central processing unit power consumption fluctuation value corresponding to the current period, first system average power consumption of the current period, second system average power consumption of the previous period, a current central processing unit speed regulation point, a preset speed regulation point upper limit and a preset speed regulation point lower limit are obtained; adjusting the current speed regulation point of the central processing unit; adjusting and controlling the rotating speed of the fan according to the adjusted speed adjusting point of the central processing unit. The overtemperature phenomenon caused by sudden pressure change of the central processing unit is avoided, energy is saved, and fan noise is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer application technology, and in particular to a method, device, equipment and computer-readable storage medium for controlling the speed of a server fan. Background Art

[0002] As the power consumption of the central processing unit (CPU) continues to increase, the risk of CPU overheating during stress mutation testing is getting higher and higher. In order to solve the heat dissipation problem of the CPU, the fan speed and fan power consumption are also getting higher and higher.

[0003] The current fan speed control scheme is a fixed speed control point scheme for the CPU. In order to ensure that the CPU does not have overheating risks under all stress test conditions, especially under conditions of sudden pressure changes, the system's minimum fan speed will be set higher and higher as the CPU power consumption increases. The CPU speed control point (setpoint) setting also decreases as the CPU power consumption increases, resulting in high fan speed and system power consumption regardless of whether in standby or stress state, causing energy loss and excessive fan noise.

[0004] In summary, how to effectively solve the problems of high fan speed and system power consumption, resulting in energy loss and excessive fan noise, is an urgent problem that technicians in this field need to solve. Summary of the invention

[0005] The object of the present invention is to provide a server fan speed control method, which realizes the rapid rotation of the server fan, avoids overheating due to sudden change in central processing unit pressure, saves energy, and reduces fan noise; another object of the present invention is to provide a server fan speed control device, equipment and computer-readable storage medium.

[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0007] A method for controlling the speed of a server fan, comprising:

[0008] Perform power consumption fluctuation detection on the central processing unit at a preset time interval to obtain power consumption fluctuation values ​​of each first central processing unit;

[0009] When a first CPU power consumption fluctuation value exceeding a first preset value is detected, resetting the current CPU speed adjustment point to an initial value, and performing fan speed adjustment according to the initial value;

[0010] When it is determined that the power consumption fluctuation values ​​of each first CPU detected in the current cycle do not exceed the first preset value, the power consumption fluctuation value of the second CPU corresponding to the current cycle, the first system average power consumption of the current cycle, the second system average power consumption of the previous cycle, the current CPU speed regulation point, the preset speed regulation point upper limit and the speed regulation point lower limit are obtained; wherein the preset time interval is much smaller than the acquisition period of the power consumption fluctuation value of the second CPU;

[0011] According to the power consumption fluctuation value of the second CPU, the average power consumption of the first system, the average power consumption of the second system, the current CPU speed regulation point, the speed regulation point upper limit and the speed regulation point lower limit, the current CPU speed regulation point is adjusted to obtain an adjusted CPU speed regulation point;

[0012] The fan speed is regulated according to the adjusted CPU speed regulation point.

[0013] In a specific implementation of the present invention, the current CPU speed regulation point is adjusted according to the power consumption fluctuation value of the second CPU, the average power consumption of the first system, the average power consumption of the second system, the current CPU speed regulation point, the speed regulation point upper limit and the speed regulation point lower limit to obtain the adjusted CPU speed regulation point, including:

[0014] Get the preset speed control point adjustment step;

[0015] When it is determined that the power consumption fluctuation value of the second CPU is less than a second preset value, the average power consumption of the first system is less than or equal to the average power consumption of the second system, and the current CPU speed regulation point does not exceed the speed regulation point upper limit, the current CPU speed regulation point and the speed regulation point adjustment step are summed to obtain the adjusted CPU speed regulation point;

[0016] When it is determined that the power consumption fluctuation value of the second CPU is between the third preset value and the second preset value, and the absolute value of the difference between the average power consumption of the first system and the average power consumption of the second system is less than the third preset value, determining the current CPU speed regulation point as the adjusted CPU speed regulation point;

[0017] When it is determined that the power consumption fluctuation value of the second CPU is less than the second preset value, the average power consumption of the first system is greater than the average power consumption of the second system, and the current CPU speed regulation point is not lower than the speed regulation point lower limit, the difference between the current CPU speed regulation point and the speed regulation point adjustment step is calculated to obtain the adjusted CPU speed regulation point.

[0018] In a specific implementation of the present invention, when a first CPU power consumption fluctuation value exceeding a first preset value is detected, resetting the current CPU speed adjustment point to an initial value includes:

[0019] Get the thermal design power consumption of the CPU;

[0020] When a first CPU power consumption fluctuation value exceeding a preset percentage of the thermal design power consumption is detected, the current CPU speed regulation point is reset to the initial value.

[0021] In a specific implementation of the present invention, obtaining the power consumption fluctuation value of the second central processing unit corresponding to the current cycle includes:

[0022] Get the CPU temperature specification;

[0023] Obtaining a maximum power consumption value and a minimum power consumption value in the current cycle, and calculating a difference between the maximum power consumption value and the minimum power consumption value to obtain a power consumption difference;

[0024] A quotient between the power consumption difference and the specification temperature is calculated, and the quotient is determined as the power consumption fluctuation value of the second central processing unit.

[0025] In a specific implementation of the present invention, the fan speed is controlled according to the adjusted CPU speed control point, including:

[0026] Retrieving the target control strategy document corresponding to the adjusted CPU speed control point from the control strategy document set;

[0027] The fan speed is regulated using the target regulation strategy document.

[0028] In a specific implementation of the present invention, the fan speed is controlled according to the adjusted CPU speed control point, including:

[0029] Writing the adjusted CPU speed control point into a control strategy document;

[0030] The modified control strategy document is activated, and the activated control strategy document is called to control the fan speed.

[0031] In a specific implementation of the present invention, the power consumption fluctuation detection of the central processing unit is performed at a preset time interval, including:

[0032] The CPU power consumption monitoring script is used to detect the CPU power consumption fluctuation at preset time intervals;

[0033] Correspondingly, when a first CPU power consumption fluctuation value exceeding a first preset value is detected, resetting the current CPU speed adjustment point to an initial value includes:

[0034] When receiving a CPU power consumption fluctuation emergency speed regulation mode start request sent by the CPU power consumption monitoring script, resetting the current CPU speed regulation point to the initial value;

[0035] Correspondingly, obtaining the power consumption fluctuation value of the second central processing unit corresponding to the current cycle, the average power consumption of the first system in the current cycle, the average power consumption of the second system in the previous cycle, the current central processing unit speed regulation point, the preset speed regulation point upper limit and the speed regulation point lower limit includes:

[0036] Obtaining the second CPU power consumption fluctuation value corresponding to the current cycle, the first system average power consumption of the current cycle, the second system average power consumption of the previous cycle, the current CPU speed regulation point, the speed regulation point upper limit and the speed regulation point lower limit through the CPU control point change script;

[0037] Correspondingly, adjusting the current CPU speed regulation point according to the power consumption fluctuation value of the second CPU, the average power consumption of the first system, the average power consumption of the second system, the current CPU speed regulation point, the speed regulation point upper limit and the speed regulation point lower limit includes:

[0038] Receive a central processing unit speed control point adjustment request, and adjust the current central processing unit speed control point according to the central processing unit speed control point adjustment request; wherein the central processing unit speed control point adjustment request is a request generated by the central processing unit control point change script according to the second central processing unit power consumption fluctuation value, the first system average power consumption, the second system average power consumption, the current central processing unit speed control point, the speed control point upper limit and the speed control point lower limit.

[0039] A server fan speed control device, comprising:

[0040] A first power consumption fluctuation value obtaining module, configured to perform power consumption fluctuation detection on the central processing unit at a preset time interval to obtain power consumption fluctuation values ​​of each first central processing unit;

[0041] A first speed control module is used to reset the current CPU speed control point to an initial value when a first CPU power consumption fluctuation value exceeding a first preset value is detected, and to control the fan speed according to the initial value;

[0042] A parameter acquisition module, for acquiring the power consumption fluctuation value of the second central processing unit corresponding to the current cycle, the first system average power consumption of the current cycle, the second system average power consumption of the previous cycle, the current central processing unit speed regulation point, the preset speed regulation point upper limit and the speed regulation point lower limit, when it is determined that the power consumption fluctuation values ​​of each first central processing unit detected in the current cycle do not exceed the first preset value; wherein the preset time interval is much smaller than the acquisition period of the power consumption fluctuation value of the second central processing unit;

[0043] A speed regulation point adjustment module, configured to adjust the current CPU speed regulation point according to the power consumption fluctuation value of the second CPU, the average power consumption of the first system, the average power consumption of the second system, the current CPU speed regulation point, the speed regulation point upper limit and the speed regulation point lower limit, to obtain an adjusted CPU speed regulation point;

[0044] The second speed control module is used to control the fan speed according to the adjusted central processing unit speed control point.

[0045] A server fan speed control device, comprising:

[0046] Memory for storing computer programs;

[0047] The processor is used to implement the steps of the server fan speed control method as described above when executing the computer program.

[0048] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned method for controlling the speed of a server fan are implemented.

[0049] The server fan speed control method provided by the present invention performs power consumption fluctuation detection on the central processing unit at a preset time interval to obtain power consumption fluctuation values ​​of each first central processing unit; when a first central processing unit power consumption fluctuation value exceeding the first preset value is detected, the current central processing unit speed control point is reset to an initial value, and the fan speed is controlled according to the initial value; when it is determined that the power consumption fluctuation values ​​of each first central processing unit detected in the current cycle do not exceed the first preset value, the power consumption fluctuation value of the second central processing unit corresponding to the current cycle, the first system average power consumption of the current cycle, the second system average power consumption of the previous cycle, the current central processing unit speed control point, and the preset speed control point upper limit and speed control point lower limit are obtained; wherein the preset time interval is much smaller than the acquisition period of the second central processing unit power consumption fluctuation value; according to the second central processing unit power consumption fluctuation value, the first system average power consumption, the second system average power consumption, the current central processing unit speed control point, the speed control point upper limit and the speed control point lower limit, the current central processing unit speed control point is adjusted to obtain the adjusted central processing unit speed control point; and the fan speed is controlled according to the adjusted central processing unit speed control point.

[0050] It can be seen from the above technical solution that by detecting the power consumption fluctuation of the CPU according to a set shorter preset time interval, when the first CPU power consumption fluctuation value exceeding the first preset value is detected, it indicates that the power consumption of the CPU has suddenly changed, and the current CPU speed control point is reset to the initial value, and the fan speed is adjusted according to the initial value, thereby realizing the rapid rotation of the server fan and avoiding the overheating phenomenon due to the sudden change of the CPU pressure. By adopting the method of dynamic temperature control point of the CPU, when the power consumption of the CPU tends to be stable, the CPU speed control point is adjusted in combination with the comparison of system power consumption in different computing cycles, so that the server fan speed can be adjusted to maintain the minimum speed requirement while meeting the heat dissipation requirements, thereby saving energy and reducing fan noise.

[0051] Correspondingly, the present invention also provides a server fan speed control device, equipment and computer-readable storage medium corresponding to the above-mentioned server fan speed control method, which has the above-mentioned technical effects and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0053] FIG1 is a diagram of a server fan speed control architecture in the related art;

[0054] FIG2 is a flow chart of an implementation method for controlling the speed of a server fan according to an embodiment of the present invention;

[0055] FIG3 is a flowchart of another method for controlling the speed of a server fan according to an embodiment of the present invention;

[0056] FIG4 is a diagram of a server fan speed control architecture according to an embodiment of the present invention;

[0057] FIG5 is a structural block diagram of a server fan speed control device according to an embodiment of the present invention;

[0058] FIG6 is a structural block diagram of a server fan speed control device according to an embodiment of the present invention;

[0059] Figure 7 A schematic diagram of the specific structure of a server fan speed control device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0060] See Figure 1, which is a diagram of a server fan speed control architecture in the related art. The current fan speed control scheme uses a fixed speed control point for proportional-integral-derivative (PID) speed control method, and uses the baseboard management controller (BMC) to monitor the CPU temperature in real time, and calculate the CPU fan speed value required by proportional-integral-derivative control speed control to adjust the fan speed. The specific PID speed control calculation formula is as follows:

[0061] ;

[0062] ;

[0063] in, The fan speed required by the current component, The fan speed required by the component in the previous second. is the fan speed change value, dt is taken as 1 second, Kp is the P value in the PID speed control parameter, Ki is the I value in the PID speed control parameter, Kd is the D value in the PID speed control parameter, is the current component temperature, is the component temperature in the previous second, is the component temperature in the first two seconds, and SP is the component temperature speed control point.

[0064] When the CPU load suddenly increases rapidly, the CPU temperature will also increase, but the fan speed cannot be increased to the CPU speed required within 1-2 seconds. In addition, in order to speed up the fan speed increase as much as possible, the CPU minimum fan speed requirement needs to be set higher for high-wattage CPUs. Taking a 350-watt (W) CPU as an example, the CPU minimum fan speed is usually set to 35% duty cycle, and the CPU speed control point is usually set to Tjmax-20, where Tjmax is the temperature limit of the CPU.

[0065] To this end, the server fan speed control method provided in the present application realizes the rapid rotation of the server fan, avoids overheating due to sudden changes in the pressure of the central processing unit, saves energy, and reduces fan noise.

[0066] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0067] Referring to FIG. 2 , FIG. 2 is a flow chart of an implementation method for controlling the speed of a server fan in an embodiment of the present invention. The method may include the following steps:

[0068] S201: Perform power consumption fluctuation detection on a central processing unit at a preset time interval to obtain power consumption fluctuation values ​​of each first central processing unit.

[0069] The CPU power consumption is monitored in real time using a millisecond refresh frequency, for example, the CPU power consumption fluctuation detection can be performed once every 500ms. The CPU power consumption fluctuation detection is performed at preset time intervals to obtain the power consumption fluctuation values ​​of each first CPU.

[0070] The preset time interval can be set and adjusted according to the actual situation. For example, the real-time power consumption monitoring script corresponding to the CPU can currently adjust the data refresh frequency by adjusting the i parameter value corresponding to the following command through the PTU (Performance Tuning Utility) tool, and extract the CPU power consumption value corresponding to different time points based on the captured data:

[0071] Command: . / ptu1 -mon -i 100000 –ts.

[0072] S202: When a first CPU power consumption fluctuation value exceeding a first preset value is detected, the current CPU speed adjustment point is reset to an initial value, and the fan speed is adjusted according to the initial value.

[0073] It is pre-set that the CPU speed control point is reset to the initial value when an abnormal CPU power consumption fluctuation occurs. For example, the initial value of the CPU speed control point can be pre-set to Tjmax-20, that is, the temperature limit value of the CPU -30. In the process of detecting the power consumption fluctuation of the CPU at preset time intervals, when a first CPU power consumption fluctuation value exceeding the first preset value is detected, the current CPU speed control point is reset to the initial value, and the fan speed is regulated according to the initial value. By resetting the CPU speed control point to the initial value when an abnormal CPU power consumption fluctuation is detected, it is possible to set the fan speed through the emergency speed control mode, quickly turn on the server fan, and avoid overheating due to sudden changes in CPU pressure.

[0074] In a specific implementation of the present invention, when a first CPU power consumption fluctuation value exceeding a first preset value is detected, resetting the current CPU speed adjustment point to an initial value may include the following steps:

[0075] Step 1: Obtain the thermal design power consumption of the CPU;

[0076] Step 2: When a first CPU power consumption fluctuation value exceeding a preset percentage of the thermal design power consumption is detected, the current CPU speed adjustment point is reset to an initial value.

[0077] For the convenience of description, the above two steps can be combined for explanation.

[0078] When setting the first preset value for determining whether the CPU is overheated, the thermal design power consumption of the CPU (spec temperature of the CPU) is obtained, that is, the temperature limit value of the CPU is obtained. The CPU is tested for power consumption fluctuations at preset time intervals. When the first CPU power consumption fluctuation value exceeding the preset percentage of the thermal design power consumption is detected, the current CPU speed control point is reset to the initial value, thereby performing emergency fan speed control. By setting the CPU power consumption fluctuation value exceeding the preset percentage of the thermal design power consumption as the CPU speed control point reset trigger condition, the accuracy of the fan emergency speed control trigger condition is improved.

[0079] It should be noted that the preset percentage can be set and adjusted according to actual conditions, and the embodiment of the present invention does not limit this. For example, it can be set to 30%.

[0080] S203: When it is determined that the power consumption fluctuation values ​​of the first central processing units detected in the current cycle do not exceed the first preset value, obtain the power consumption fluctuation value of the second central processing unit corresponding to the current cycle, the first system average power consumption of the current cycle, the second system average power consumption of the previous cycle, the current central processing unit speed regulation point, the preset speed regulation point upper limit and the speed regulation point lower limit.

[0081] The preset time interval is much shorter than a period for obtaining the power consumption fluctuation value of the second central processing unit.

[0082] The upper limit and the lower limit of the speed regulation point are set in advance. When it is determined that the power consumption fluctuation values ​​of each first central processing unit detected in the current cycle do not exceed the first preset value, the power consumption fluctuation value of the second central processing unit corresponding to the current cycle, the average power consumption of the first system in the current cycle, the average power consumption of the second system in the previous cycle, the current central processing unit speed regulation point, the preset upper limit and the lower limit of the speed regulation point are obtained.

[0083] It should be noted that the acquisition period of the CPU power consumption fluctuation value can be set and adjusted according to actual conditions, and the embodiment of the present invention does not limit this. For example, it can be set to 10S.

[0084] In a specific implementation of the present invention, obtaining the power consumption fluctuation value of the second central processing unit corresponding to the current cycle may include the following steps:

[0085] Step 1: Get the CPU temperature.

[0086] Step 2: Obtain the maximum power consumption value and the minimum power consumption value in the current cycle, and calculate the difference between the maximum power consumption value and the minimum power consumption value to obtain the power consumption difference;

[0087] Step 3: Calculate the quotient between the power consumption difference and the standard temperature, and determine the quotient as the power consumption fluctuation value of the second central processing unit.

[0088] For the convenience of description, the above three steps can be combined for explanation.

[0089] Obtain the specification temperature of the central processing unit, obtain the maximum power consumption value and the minimum power consumption value in the current cycle, and calculate the difference between the maximum power consumption value and the minimum power consumption value to obtain the power consumption difference, calculate the quotient between the power consumption difference and the specification temperature, and determine the quotient as the power consumption fluctuation value of the second central processing unit, which can be calculated by the following formula:

[0090] ;

[0091] in, is the CPU power consumption fluctuation value, is the maximum power consumption of the CPU in the current cycle, is the minimum power consumption of the CPU in the current cycle. is the CPU temperature specification.

[0092] The above formula can be used to quickly calculate the power consumption fluctuation value of the CPU in the current cycle, and then the CPU speed control point can be set according to the calculated power consumption fluctuation value, so as to accurately control the fan speed of the server.

[0093] S204: adjusting the current CPU speed regulation point according to the second CPU power consumption fluctuation value, the first system average power consumption, the second system average power consumption, the current CPU speed regulation point, the speed regulation point upper limit and the speed regulation point lower limit to obtain an adjusted CPU speed regulation point.

[0094] After obtaining the second central processing unit power consumption fluctuation value corresponding to the current cycle, the first system average power consumption of the current cycle, the second system average power consumption of the previous cycle, the current central processing unit speed regulation point, and the preset speed regulation point upper limit and speed regulation point lower limit, the current central processing unit speed regulation point is adjusted according to the second central processing unit power consumption fluctuation value, the first system average power consumption, the second system average power consumption, the current central processing unit speed regulation point, the speed regulation point upper limit and the speed regulation point lower limit to obtain the adjusted central processing unit speed regulation point, thereby achieving accurate adjustment of the central processing unit speed regulation point.

[0095] S205: Control the fan speed according to the adjusted CPU speed control point.

[0096] After obtaining the adjusted CPU speed point, the fan speed is regulated according to the adjusted CPU speed point. By adjusting the CPU speed point in combination with the system power consumption comparison of different computing cycles, the server fan speed can be regulated to maintain the minimum speed requirement while meeting the heat dissipation requirements, thereby saving energy and reducing fan noise.

[0097] In a specific implementation of the present invention, step S205 may include the following steps:

[0098] Step 1: retrieve the target control strategy document corresponding to the adjusted CPU speed control point from the control strategy document set;

[0099] Step 2: Use the target control strategy document to control the fan speed.

[0100] For the convenience of description, the above two steps can be combined for explanation.

[0101] Generate a control strategy (ini) document corresponding to different CPU speed control points in advance. After the adjusted CPU speed control point is obtained through calculation, call the corresponding control strategy document to participate in the proportional integral differential control speed control calculation. By pre-generating control strategy documents corresponding to different CPU speed control points and saving each control strategy document, when the adjusted CPU speed control point is obtained through calculation, directly call the target control strategy document corresponding to the adjusted CPU speed control point, and use the target control strategy document to control the fan speed, which greatly improves the convenience of fan speed control.

[0102] In a specific implementation of the present invention, step S205 may include the following steps:

[0103] Step 1: Write the adjusted CPU speed control point into the control strategy document;

[0104] Step 2: Activate the modified control strategy document, and call the activated control strategy document to control the fan speed.

[0105] For the convenience of description, the above two steps can be combined for explanation.

[0106] After the adjusted CPU speed control point is calculated, the adjusted CPU speed control point can be directly written into the control strategy document, the modified control strategy document can be activated through instructions, and the activated control strategy document can be called to control the fan speed. Thus, the fan speed can be controlled by directly rewriting the control strategy document, which improves the convenience of fan speed control.

[0107] It can be seen from the above technical solution that by detecting the power consumption fluctuation of the CPU according to a set shorter preset time interval, when the first CPU power consumption fluctuation value exceeding the first preset value is detected, it indicates that the power consumption of the CPU has suddenly changed, and the current CPU speed control point is reset to the initial value, and the fan speed is adjusted according to the initial value, thereby realizing the rapid rotation of the server fan and avoiding the overheating phenomenon due to the sudden change of the CPU pressure. By adopting the method of dynamic temperature control point of the CPU, when the power consumption of the CPU tends to be stable, the CPU speed control point is adjusted in combination with the comparison of system power consumption in different computing cycles, so that the server fan speed can be adjusted to maintain the minimum speed requirement while meeting the heat dissipation requirements, thereby saving energy and reducing fan noise.

[0108] It should be noted that, based on the above embodiment, the embodiment of the present invention also provides corresponding improved solutions. In the subsequent embodiments, the same steps or corresponding steps as those in the above embodiment can be referenced to each other, and the corresponding beneficial effects can also be referenced to each other, which will not be repeated one by one in the following improved embodiments.

[0109] Referring to FIG. 3 , FIG. 3 is a flowchart of another method for controlling the speed of a server fan according to an embodiment of the present invention. The method may include the following steps:

[0110] S301: Perform power consumption fluctuation detection on a central processing unit at a preset time interval to obtain power consumption fluctuation values ​​of each first central processing unit.

[0111] S302: When a first CPU power consumption fluctuation value exceeding a first preset value is detected, the current CPU speed adjustment point is reset to an initial value, and the fan speed is adjusted according to the initial value.

[0112] S303: When it is determined that the power consumption fluctuation values ​​of the first central processing units detected in the current cycle do not exceed the first preset value, obtain the power consumption fluctuation value of the second central processing unit corresponding to the current cycle, the first system average power consumption of the current cycle, the second system average power consumption of the previous cycle, the current central processing unit speed regulation point, the preset speed regulation point upper limit and the speed regulation point lower limit.

[0113] The preset time interval is much shorter than a period for obtaining the power consumption fluctuation value of the second central processing unit.

[0114] S304: Obtain a preset speed regulation point adjustment step.

[0115] The CPU speed adjustment point adjustment step length is preset to obtain the preset speed adjustment point adjustment step length.

[0116] It should be noted that the speed regulation point adjustment step size can be set and adjusted according to actual conditions, and the embodiment of the present invention does not limit this. For example, it can be set to 1.

[0117] S305: When it is determined that the power consumption fluctuation value of the second central processing unit is less than the second preset value, the average power consumption of the first system is less than or equal to the average power consumption of the second system, and the current central processing unit speed regulation point does not exceed the speed regulation point upper limit, the current central processing unit speed regulation point and the speed regulation point adjustment step are summed and calculated to obtain the adjusted central processing unit speed regulation point.

[0118] A second preset value is pre-set for evaluating the power consumption fluctuation value of the CPU within a cycle. After calculating the power consumption fluctuation value of the second CPU in the current cycle, and obtaining the average power consumption of the first system in the current cycle, the average power consumption of the second system in the previous cycle, and the preset speed adjustment step, it is determined whether the power consumption fluctuation value of the second CPU is less than the second preset value, the average power consumption of the first system is less than or equal to the average power consumption of the second system, and the current CPU speed adjustment point does not exceed the upper limit of the speed adjustment point. When it is determined that the power consumption fluctuation value of the second CPU is less than the second preset value, the average power consumption of the first system is less than or equal to the average power consumption of the second system, and the current CPU speed adjustment point does not exceed the upper limit of the speed adjustment point, it indicates that the overall power consumption of the server is relatively low, and the server fan needs to be slowed down. The current CPU speed adjustment point and the speed adjustment step are summed to obtain the adjusted CPU speed adjustment point. This can be described by the following process:

[0119] When ∆CP <10% and P1≤P0 in the current cycle, the CPU speed control point in the next cycle is changed to SP2=SP1+1, and it will no longer increase when SP2≥Tjmax-15. P1 is the average system power consumption in the current cycle, P0 is the average system power consumption in the previous cycle, SP1 is the CPU speed control point in the current cycle, SP2 is the CPU speed control point in the next cycle, and Tjmax is the temperature limit of the CPU. By increasing the CPU speed control point when the overall power consumption of the server is relatively low, the server fan speed can be adjusted to maintain the minimum speed requirement while meeting the heat dissipation requirements, thereby saving energy and reducing fan noise.

[0120] It should be noted that the second preset value can be set and adjusted according to actual conditions, and the embodiment of the present invention does not limit this. For example, it can be set to 10%.

[0121] S306: When it is determined that the power consumption fluctuation value of the second CPU is between the third preset value and the second preset value, and the absolute value of the difference between the average power consumption of the first system and the average power consumption of the second system is less than the third preset value, the current CPU speed regulation point is determined as the adjusted CPU speed regulation point.

[0122] A third preset value is pre-set for evaluating the power consumption fluctuation of the CPU within a cycle. After calculating the power consumption fluctuation value of the second CPU in the current cycle, and obtaining the average power consumption of the first system in the current cycle, the average power consumption of the second system in the previous cycle, and the preset speed adjustment step, it is determined whether the power consumption fluctuation value of the second CPU is between the third preset value and the second preset value, and the absolute value of the difference between the average power consumption of the first system and the average power consumption of the second system is less than the third preset value. When it is determined that the power consumption fluctuation value of the second CPU is between the third preset value and the second preset value, and the absolute value of the difference between the average power consumption of the first system and the average power consumption of the second system is less than the third preset value, it indicates that the overall power consumption of the server is relatively stable, and there is no need to reduce the speed of the server fan, and the current CPU speed adjustment point is determined as the adjusted CPU speed adjustment point. This can be described by the following process:

[0123] When 30%>∆CP>10% or P1=P0 in the current cycle, the CPU speed control point remains unchanged SP2=SP1 in the next cycle.

[0124] S307: When it is determined that the power consumption fluctuation value of the second central processing unit is less than the second preset value, the average power consumption of the first system is greater than the average power consumption of the second system, and the current central processing unit speed regulation point is not lower than the speed regulation point lower limit, the difference between the current central processing unit speed regulation point and the speed regulation point adjustment step is calculated to obtain the adjusted central processing unit speed regulation point.

[0125] After calculating the power consumption fluctuation value of the second CPU in the current cycle, and obtaining the average power consumption of the first system in the current cycle, the average power consumption of the second system in the previous cycle, and the preset speed adjustment step, determine whether the power consumption fluctuation value of the second CPU is less than the second preset value, the average power consumption of the first system is greater than the average power consumption of the second system, and the current CPU speed adjustment point is not lower than the lower limit of the speed adjustment point. When it is determined that the power consumption fluctuation value of the second CPU is less than the second preset value, the average power consumption of the first system is greater than the average power consumption of the second system, and the current CPU speed adjustment point is not lower than the lower limit of the speed adjustment point, it indicates that the overall power consumption of the server is relatively high. The difference between the current CPU speed adjustment point and the speed adjustment step is calculated to obtain the adjusted CPU speed adjustment point. This can be described by the following process:

[0126] When ∆CP <10% and P1>P0 in the current cycle, the CPU speed control point is changed to SP2=SP1-1 in the next cycle, and will not be reduced when SP2≤Tjmax-30. By lowering the CPU speed control point when the overall power consumption of the server is relatively stable, the server fan speed can be adjusted to maintain the minimum speed requirement while meeting the heat dissipation requirements, thereby saving energy and reducing fan noise.

[0127] S308: Control the fan speed according to the adjusted CPU speed control point.

[0128] The speed regulation process of the emergency speed regulation mode may include: after calculating the adjusted central processing unit speed regulation point, obtaining the current central processing unit temperature, performing PID speed regulation according to the adjusted central processing unit speed regulation point and the current central processing unit temperature, and obtaining the first calculation server fan speed; obtaining a preset first duty cycle, and calculating the first preset server fan speed corresponding to the first duty cycle; comparing the first calculation server fan speed with the first preset server fan speed, and taking the larger of the first calculation server fan speed and the first preset server fan speed as the first target server fan speed; after cooling the central server at the first target server fan speed for a preset period of time, re-obtaining the current central processing unit temperature, performing PID speed regulation according to the adjusted central processing unit speed regulation point and the current central processing unit temperature, and obtaining the second calculation server fan speed; obtaining a preset second duty cycle, and calculating the second preset server fan speed corresponding to the second duty cycle; comparing the second calculation server fan speed with the second preset server fan speed, and taking the larger of the second calculation server fan speed and the second preset server fan speed as the second target server fan speed; cooling the central server at the second target server fan speed for a preset period of time Afterwards, the current CPU temperature is acquired again, and PID speed regulation is performed according to the adjusted CPU speed regulation point and the current CPU temperature to obtain the third calculated server fan speed; the preset third duty cycle is acquired, and the third preset server fan speed corresponding to the third duty cycle is calculated; the third calculated server fan speed is compared with the third preset server fan speed, and the larger of the third calculated server fan speed and the third preset server fan speed is used as the third target server fan speed; after cooling the central server for a preset period of time at the third target server fan speed, the current CPU temperature is acquired again, and PID speed regulation is performed according to the adjusted CPU speed regulation point and the current CPU temperature to obtain the fourth calculated server fan speed; the preset fourth duty cycle is acquired, and the fourth preset server fan speed corresponding to the fourth duty cycle is calculated; the fourth calculated server fan speed is compared with the fourth preset server fan speed, and the larger of the fourth calculated server fan speed and the fourth preset server fan speed is used as the fourth target server fan speed, and the central server is cooled for a preset period of time at the third target server fan speed; wherein, the first duty cycle is greater than the second duty cycle, and the second duty cycle is greater than the third duty cycle. The third duty cycle is greater than the fourth duty cycle. By determining the larger of the server fan speed corresponding to the preset duty cycle and the server fan speed calculated according to the fixed CPU speed adjustment point as the final server fan speed, the CPU is cooled by a relatively high server fan speed in the emergency speed adjustment mode, thereby avoiding server overheating.

[0129] It should be noted that the preset duration can be set and adjusted according to actual conditions, and the embodiment of the present invention does not limit this. For example, it can be set to 10s.

[0130] In a specific implementation of the present invention, performing power consumption fluctuation detection on a central processing unit at a preset time interval may include the following steps:

[0131] The CPU power consumption monitoring script is used to detect the CPU power consumption fluctuation at preset time intervals;

[0132] Accordingly, when a first CPU power consumption fluctuation value exceeding a first preset value is detected, resetting the current CPU speed adjustment point to an initial value may include the following steps:

[0133] When receiving a CPU power fluctuation emergency speed regulation mode start request sent by a CPU power consumption monitoring script, resetting the current CPU speed regulation point to an initial value;

[0134] Correspondingly, obtaining the power consumption fluctuation value of the second central processing unit corresponding to the current cycle, the average power consumption of the first system in the current cycle, the average power consumption of the second system in the previous cycle, the current central processing unit speed adjustment point, the preset speed adjustment point upper limit and the speed adjustment point lower limit may include the following steps:

[0135] Obtain the power consumption fluctuation value of the second CPU corresponding to the current cycle, the average power consumption of the first system in the current cycle, the average power consumption of the second system in the previous cycle, the current CPU speed control point, the upper limit of the speed control point, and the lower limit of the speed control point through the CPU control point change script;

[0136] Accordingly, adjusting the current CPU speed regulation point according to the power consumption fluctuation value of the second CPU, the average power consumption of the first system, the average power consumption of the second system, the current CPU speed regulation point, the upper limit of the speed regulation point, and the lower limit of the speed regulation point may include the following steps:

[0137] Receive a CPU speed point adjustment request, and adjust the current CPU speed point according to the CPU speed point adjustment request; wherein the CPU speed point adjustment request is a request generated by a CPU control point change script based on the second CPU power consumption fluctuation value, the first system average power consumption, the second system average power consumption, the current CPU speed point, the speed point upper limit, and the speed point lower limit.

[0138] Refer to Figure 4, which is a diagram of a server fan speed control architecture in an embodiment of the present invention. A CPU power consumption monitoring script and a CPU control point change script are pre-set. The CPU power consumption monitoring script detects power consumption fluctuations of the CPU at preset time intervals. When the CPU power consumption monitoring script detects abnormal CPU power consumption fluctuations, a CPU power consumption fluctuation emergency speed control mode start request is sent to the baseboard management controller, thereby triggering emergency speed control to rotate the fan. When the baseboard management controller receives the CPU power consumption fluctuation emergency speed control mode start request sent by the CPU power consumption monitoring script, the current CPU speed control point is reset to the initial value.

[0139] The CPU control point change script is used to obtain the second CPU power consumption fluctuation value corresponding to the current cycle, the first system average power consumption of the current cycle, the second system average power consumption of the previous cycle, the current CPU speed point, the upper limit of the speed point, and the lower limit of the speed point. After the CPU power consumption fluctuation monitoring of the current cycle is completed, a CPU speed point adjustment request is generated based on the second CPU power consumption fluctuation value, the first system average power consumption, the second system average power consumption, the current CPU speed point, the upper limit of the speed point, and the lower limit of the speed point, and the CPU speed point adjustment request is sent to the baseboard management controller. The baseboard management controller receives the CPU speed point adjustment request and adjusts the current CPU speed point according to the CPU speed point adjustment request. By setting the CPU power consumption monitoring script to monitor the real-time power consumption of the CPU, the server fan can be quickly turned when the CPU power consumption fluctuation is abnormal, avoiding overheating due to sudden changes in the CPU pressure. By setting the CPU control point change script to calculate the CPU speed point, when the CPU power consumption tends to be stable, the CPU speed point can be adjusted based on the system power consumption comparison in different computing cycles. This allows the server fan speed to be adjusted to the minimum speed requirement while meeting the heat dissipation requirements, thereby saving energy and reducing fan noise.

[0140] Corresponding to the above method embodiment, the present invention further provides a server fan speed control device. The server fan speed control device described below and the server fan speed control method described above can refer to each other.

[0141] Referring to FIG. 5 , FIG. 5 is a structural block diagram of a server fan speed control device according to an embodiment of the present invention, and the device may include:

[0142] A first power consumption fluctuation value obtaining module 51 is used to perform power consumption fluctuation detection on the central processor at a preset time interval to obtain power consumption fluctuation values ​​of each first central processor;

[0143] A first speed control module 52 is used to reset the current CPU speed control point to an initial value and control the fan speed according to the initial value when a first CPU power consumption fluctuation value exceeding a first preset value is detected;

[0144] The parameter acquisition module 53 is used to acquire the power consumption fluctuation value of the second central processing unit corresponding to the current cycle, the average power consumption of the first system in the current cycle, the average power consumption of the second system in the previous cycle, the current central processing unit speed adjustment point, the preset upper limit of the speed adjustment point and the lower limit of the speed adjustment point when it is determined that the power consumption fluctuation values ​​of each first central processing unit detected in the current cycle do not exceed the first preset value; wherein the preset time interval is much smaller than the acquisition period of the power consumption fluctuation value of the second central processing unit;

[0145] The speed adjustment point adjustment module 54 is used to adjust the current CPU speed adjustment point according to the power consumption fluctuation value of the second CPU, the average power consumption of the first system, the average power consumption of the second system, the current CPU speed adjustment point, the upper limit of the speed adjustment point and the lower limit of the speed adjustment point to obtain an adjusted CPU speed adjustment point;

[0146] The second speed control module 55 is used to control the fan speed according to the adjusted CPU speed control point.

[0147] It can be seen from the above technical solution that by detecting the power consumption fluctuation of the CPU according to a set shorter preset time interval, when the first CPU power consumption fluctuation value exceeding the first preset value is detected, it indicates that the power consumption of the CPU has suddenly changed, and the current CPU speed control point is reset to the initial value, and the fan speed is adjusted according to the initial value, thereby realizing the rapid rotation of the server fan and avoiding the overheating phenomenon due to the sudden change of the CPU pressure. By adopting the method of dynamic temperature control point of the CPU, when the power consumption of the CPU tends to be stable, the CPU speed control point is adjusted in combination with the comparison of system power consumption in different computing cycles, so that the server fan speed can be adjusted to maintain the minimum speed requirement while meeting the heat dissipation requirements, thereby saving energy and reducing fan noise.

[0148] In a specific embodiment of the present invention, the speed regulating point adjustment module 54 includes:

[0149] The adjustment step length acquisition submodule is used to obtain the preset speed regulation point adjustment step length;

[0150] A first speed adjustment point adjustment submodule is used to calculate the sum of the current CPU speed adjustment point and the speed adjustment point adjustment step length to obtain an adjusted CPU speed adjustment point when it is determined that the power consumption fluctuation value of the second CPU is less than a second preset value, the average power consumption of the first system is less than or equal to the average power consumption of the second system, and the current CPU speed adjustment point does not exceed the speed adjustment point upper limit;

[0151] A second speed regulation point adjustment submodule, configured to determine the current CPU speed regulation point as the adjusted CPU speed regulation point when it is determined that the power consumption fluctuation value of the second CPU is between the third preset value and the second preset value, and the absolute value of the difference between the average power consumption of the first system and the average power consumption of the second system is less than the third preset value;

[0152] The third speed point adjustment submodule is used to calculate the difference between the current central processing unit speed point and the speed point adjustment step to obtain the adjusted central processing unit speed point when it is determined that the power consumption fluctuation value of the second central processing unit is less than the second preset value, the average power consumption of the first system is greater than the average power consumption of the second system, and the current central processing unit speed point is not lower than the speed point lower limit.

[0153] In a specific embodiment of the present invention, the first speed control module 52 includes:

[0154] The thermal design power consumption acquisition submodule is used to obtain the thermal design power consumption of the central processing unit;

[0155] The speed regulation point resetting submodule is used to reset the current CPU speed regulation point to an initial value when a first CPU power consumption fluctuation value exceeding a preset percentage of the thermal design power consumption is detected.

[0156] In a specific implementation of the present invention, the parameter acquisition module 53 includes:

[0157] The specification temperature acquisition submodule is used to obtain the specification temperature of the central processing unit;

[0158] The power consumption difference obtaining submodule is used to obtain the maximum power consumption value and the minimum power consumption value in the current cycle, and calculate the difference between the maximum power consumption value and the minimum power consumption value to obtain the power consumption difference;

[0159] The second power consumption fluctuation value determining submodule is used to calculate the quotient between the power consumption difference and the specification temperature, and determine the quotient as the second central processing unit power consumption fluctuation value.

[0160] In a specific embodiment of the present invention, the second speed control module 55 includes:

[0161] The control strategy document retrieval submodule is used to retrieve the target control strategy document corresponding to the adjusted CPU speed control point from the control strategy document collection;

[0162] The first fan speed control submodule is used to control the fan speed using a target control strategy document.

[0163] In a specific embodiment of the present invention, the second speed control module 55 includes:

[0164] The adjusted speed control point writing submodule is used to write the adjusted CPU speed control point into the control strategy document;

[0165] The second fan speed control submodule is used to activate the modified control strategy document and call the activated control strategy document to control the fan speed.

[0166] In a specific embodiment of the present invention, the first power consumption fluctuation value obtaining module 51 is specifically a module for detecting power consumption fluctuation of the central processor according to a preset time interval through a central processor power consumption monitoring script;

[0167] The first speed control module 52 is specifically a module that resets the current CPU speed control point to an initial value when receiving a CPU power consumption fluctuation emergency speed control mode start request sent by the CPU power consumption monitoring script;

[0168] The parameter acquisition module 53 is specifically a module for acquiring the power consumption fluctuation value of the second central processing unit corresponding to the current cycle, the average power consumption of the first system in the current cycle, the average power consumption of the second system in the previous cycle, the current central processing unit speed control point, the upper limit of the speed control point and the lower limit of the speed control point through the central processing unit control point change script;

[0169] The speed point adjustment module 54 is specifically a module that receives a CPU speed point adjustment request and adjusts the current CPU speed point according to the CPU speed point adjustment request; wherein the CPU speed point adjustment request is a request generated by the CPU control point change script according to the second CPU power consumption fluctuation value, the first system average power consumption, the second system average power consumption, the current CPU speed point, the speed point upper limit and the speed point lower limit.

[0170] Corresponding to the above method embodiment, referring to FIG. 6 , FIG. 6 is a schematic diagram of a server fan speed control device provided by the present invention, and the device may include:

[0171] A memory 332, for storing computer programs;

[0172] The processor 322 is used to implement the steps of the server fan speed control method of the above method embodiment when executing the computer program.

[0173] For details, please refer to Figure 7 , Figure 7A specific structural diagram of a server fan speed control device provided for this embodiment, the server fan speed control device may have relatively large differences due to different configurations or performances, and may include a processor (central processing units, CPU) 322 (for example, one or more processors) and a memory 332, and the memory 332 stores one or more computer programs 342 or data 344. Among them, the memory 332 can be a temporary storage or a permanent storage. The program stored in the memory 332 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the data processing device. Furthermore, the processor 322 can be configured to communicate with the memory 332 to execute a series of instruction operations in the memory 332 on the server fan speed control device 301.

[0174] The server fan speed control device 301 may further include one or more power supplies 326 , one or more wired or wireless network interfaces 350 , one or more input and output interfaces 358 , and / or one or more operating systems 341 .

[0175] The steps in the server fan speed control method described above can be implemented by the structure of the server fan speed control device.

[0176] Corresponding to the above method embodiment, the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps can be implemented:

[0177] The power consumption fluctuation of the central processing unit is detected at a preset time interval to obtain the power consumption fluctuation value of each first central processing unit; when the power consumption fluctuation value of the first central processing unit exceeding the first preset value is detected, the current central processing unit speed control point is reset to the initial value, and the fan speed is regulated according to the initial value; when it is determined that the power consumption fluctuation values ​​of each first central processing unit detected in the current cycle do not exceed the first preset value, the power consumption fluctuation value of the second central processing unit corresponding to the current cycle, the average power consumption of the first system in the current cycle, the average power consumption of the second system in the previous cycle, the current central processing unit speed control point, the preset upper limit of the speed control point and the lower limit of the speed control point are obtained; wherein the preset time interval is much smaller than the acquisition period of the power consumption fluctuation value of the second central processing unit; according to the power consumption fluctuation value of the second central processing unit, the average power consumption of the first system, the average power consumption of the second system, the current central processing unit speed control point, the upper limit of the speed control point and the lower limit of the speed control point, the current central processing unit speed control point is adjusted to obtain the adjusted central processing unit speed control point; the fan speed is regulated according to the adjusted central processing unit speed control point.

[0178] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0179] For an introduction to the computer-readable storage medium provided by the present invention, please refer to the above method embodiment, and the present invention will not be elaborated here.

[0180] Corresponding to the above method embodiment, the present invention further provides a computer program product, including a computer program, which implements the steps of the above server fan speed control method when executed by a processor.

[0181] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the devices, equipment and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0182] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the technical solution and core ideas of the present invention. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, the present invention can also be improved and modified, and these improvements and modifications also fall within the scope of protection of the present invention.

Claims

1. A method for controlling the speed of a server fan, characterized in that: include: Perform power consumption fluctuation detection on the central processing unit at a preset time interval to obtain power consumption fluctuation values ​​of each first central processing unit; When a first CPU power consumption fluctuation value exceeding a first preset value is detected, resetting the current CPU speed adjustment point to an initial value, and performing fan speed adjustment according to the initial value; When it is determined that the power consumption fluctuation values ​​of each first CPU detected in the current cycle do not exceed the first preset value, the power consumption fluctuation value of the second CPU corresponding to the current cycle, the first system average power consumption of the current cycle, the second system average power consumption of the previous cycle, the current CPU speed regulation point, the preset speed regulation point upper limit and the speed regulation point lower limit are obtained; wherein the preset time interval is much smaller than the acquisition period of the power consumption fluctuation value of the second CPU; According to the power consumption fluctuation value of the second CPU, the average power consumption of the first system, the average power consumption of the second system, the current CPU speed regulation point, the speed regulation point upper limit and the speed regulation point lower limit, the current CPU speed regulation point is adjusted to obtain an adjusted CPU speed regulation point; The fan speed is regulated according to the adjusted CPU speed regulation point.

2. The method for controlling the speed of a server fan according to claim 1, characterized in that: According to the power consumption fluctuation value of the second central processing unit, the average power consumption of the first system, the average power consumption of the second system, the current central processing unit speed regulation point, the speed regulation point upper limit and the speed regulation point lower limit, the current central processing unit speed regulation point is adjusted to obtain an adjusted central processing unit speed regulation point, including: Get the preset speed control point adjustment step; When it is determined that the power consumption fluctuation value of the second CPU is less than a second preset value, the average power consumption of the first system is less than or equal to the average power consumption of the second system, and the current CPU speed regulation point does not exceed the speed regulation point upper limit, the current CPU speed regulation point and the speed regulation point adjustment step are summed to obtain the adjusted CPU speed regulation point; When it is determined that the power consumption fluctuation value of the second CPU is between the third preset value and the second preset value, and the absolute value of the difference between the average power consumption of the first system and the average power consumption of the second system is less than the third preset value, determining the current CPU speed regulation point as the adjusted CPU speed regulation point; When it is determined that the power consumption fluctuation value of the second CPU is less than the second preset value, the average power consumption of the first system is greater than the average power consumption of the second system, and the current CPU speed regulation point is not lower than the speed regulation point lower limit, the difference between the current CPU speed regulation point and the speed regulation point adjustment step is calculated to obtain the adjusted CPU speed regulation point.

3. The method for controlling the speed of a server fan according to claim 1, characterized in that: When a first CPU power consumption fluctuation value exceeding a first preset value is detected, resetting the current CPU speed adjustment point to an initial value includes: Get the thermal design power consumption of the CPU; When a first CPU power consumption fluctuation value exceeding a preset percentage of the thermal design power consumption is detected, the current CPU speed regulation point is reset to the initial value.

4. The method for controlling the speed of a server fan according to claim 1, characterized in that: Obtaining a power consumption fluctuation value of a second central processing unit corresponding to the current cycle includes: Get the CPU temperature specification; Obtaining a maximum power consumption value and a minimum power consumption value in the current cycle, and calculating a difference between the maximum power consumption value and the minimum power consumption value to obtain a power consumption difference; A quotient between the power consumption difference and the specification temperature is calculated, and the quotient is determined as the power consumption fluctuation value of the second central processing unit.

5. The method for controlling the speed of a server fan according to claim 1, characterized in that: The fan speed is controlled according to the adjusted CPU speed control point, including: Retrieving the target control strategy document corresponding to the adjusted CPU speed control point from the control strategy document set; The fan speed is regulated using the target regulation strategy document.

6. The method for controlling the speed of a server fan according to claim 1, characterized in that: The fan speed is controlled according to the adjusted CPU speed control point, including: Writing the adjusted CPU speed control point into a control strategy document; The modified control strategy document is activated, and the activated control strategy document is called to control the fan speed.

7. The method for controlling the speed of a server fan according to any one of claims 1 to 6, characterized in that: Perform power consumption fluctuation detection on the CPU at preset time intervals, including: The CPU power consumption monitoring script is used to detect the CPU power consumption fluctuation at preset time intervals; Correspondingly, when a first CPU power consumption fluctuation value exceeding a first preset value is detected, resetting the current CPU speed adjustment point to an initial value includes: When receiving a CPU power consumption fluctuation emergency speed regulation mode start request sent by the CPU power consumption monitoring script, resetting the current CPU speed regulation point to the initial value; Correspondingly, obtaining the power consumption fluctuation value of the second central processing unit corresponding to the current cycle, the average power consumption of the first system in the current cycle, the average power consumption of the second system in the previous cycle, the current central processing unit speed regulation point, the preset speed regulation point upper limit and the speed regulation point lower limit includes: Obtaining the second CPU power consumption fluctuation value corresponding to the current cycle, the first system average power consumption of the current cycle, the second system average power consumption of the previous cycle, the current CPU speed regulation point, the speed regulation point upper limit and the speed regulation point lower limit through the CPU control point change script; Correspondingly, adjusting the current CPU speed regulation point according to the power consumption fluctuation value of the second CPU, the average power consumption of the first system, the average power consumption of the second system, the current CPU speed regulation point, the speed regulation point upper limit and the speed regulation point lower limit includes: Receive a central processing unit speed control point adjustment request, and adjust the current central processing unit speed control point according to the central processing unit speed control point adjustment request; wherein the central processing unit speed control point adjustment request is a request generated by the central processing unit control point change script according to the second central processing unit power consumption fluctuation value, the first system average power consumption, the second system average power consumption, the current central processing unit speed control point, the speed control point upper limit and the speed control point lower limit.

8. A server fan speed control device, characterized in that: include: A first power consumption fluctuation value obtaining module, used to perform power consumption fluctuation detection on the central processing unit at a preset time interval to obtain power consumption fluctuation values ​​of each first central processing unit; A first speed control module is used to reset the current CPU speed control point to an initial value when a first CPU power consumption fluctuation value exceeding a first preset value is detected, and to control the fan speed according to the initial value; A parameter acquisition module, for acquiring the power consumption fluctuation value of the second central processing unit corresponding to the current cycle, the first system average power consumption of the current cycle, the second system average power consumption of the previous cycle, the current central processing unit speed regulation point, the preset speed regulation point upper limit and the speed regulation point lower limit, when it is determined that the power consumption fluctuation values ​​of each first central processing unit detected in the current cycle do not exceed the first preset value; wherein the preset time interval is much smaller than the acquisition period of the power consumption fluctuation value of the second central processing unit; A speed regulation point adjustment module, configured to adjust the current CPU speed regulation point according to the power consumption fluctuation value of the second CPU, the average power consumption of the first system, the average power consumption of the second system, the current CPU speed regulation point, the speed regulation point upper limit and the speed regulation point lower limit, to obtain an adjusted CPU speed regulation point; The second speed control module is used to control the fan speed according to the adjusted central processing unit speed control point.

9. A server fan speed control device, characterized in that: include: Memory for storing computer programs; A processor is used to implement the steps of the server fan speed control method as described in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for controlling the speed of a server fan are implemented as described in any one of claims 1 to 7.

Citation Information

Cited By

  • Server cooling system, server fan speed regulation method and baseboard management controller

    CN120491792A