Fan rotating speed adjusting method and server
By using the BMC to detect the BIOS startup status during server startup, and using stepped speed regulation and adaptive speed regulation strategies to adjust the fan speed, the problem of loud noise and over-temperature caused by a sudden increase in fan speed is solved, and effective heat dissipation and noise control are achieved.
Patent Information
- Application Number
- CN202410732764.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-09-06
AI Technical Summary
A sudden increase in fan speed during server startup causes loud noise and over-temperature problems. Existing technology cannot effectively adjust fan speed to meet cooling needs and reduce noise.
During the server boot process, the baseboard management controller (BMC) detects the BIOS startup status, adopts ladder speed regulation and adaptive speed regulation strategies, adjusts the fan speed according to the hardware workload and temperature parameters, and uses pulse width modulation (PWM) signal control Fan speed to ensure cooling requirements and noise control.
It effectively reduces fan noise and power consumption, ensures the heat dissipation needs of the server, avoids over-temperature problems, and improves the stability and reliability of the server.
Smart Images

Figure CN118601927A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of servers, and in particular to a fan speed regulation method and a server. Background Art
[0002] When the server is booting up, the internal fan may suddenly increase in speed and run at a high speed for a long time, generating a lot of noise and causing the server to overheat. Summary of the invention
[0003] The embodiments of the present application provide a fan speed regulation method, device, server, computer storage medium and computer program product, which can reduce noise during server startup and ensure heat dissipation of the server.
[0004] In a first aspect, an embodiment of the present application provides a fan speed regulation method, the method comprising: during a server startup process, within a first time period after a baseboard management controller BMC of the server is powered on, controlling the fan to run at a first speed value, the first speed value being lower than a rated speed of the fan; after the first time period is reached, obtaining first information, the first information being used to characterize whether an input / output system BIOS deployed on the server has completed startup; if the BIOS has not completed startup, increasing the fan speed as the server startup time increases; if the BIOS has completed startup, calling an adaptive speed regulation strategy to adjust the fan speed according to operating parameters of the server, the operating parameters including workload parameters and temperature parameters of hardware in the server.
[0005] In this embodiment, during the process from when the server is powered on to when the OS is started, the BMC of the server is powered on and started first. The BMC can control the fan to run at a lower speed value (first speed value) within the first period of time before the BIOS is started, so as to meet the current lower heat dissipation requirements in the server and reduce the noise and power consumption of the fan. After the BMC determines that the BIOS has finished starting, since the server's processor, memory, sensor and other hardware have been initialized under the control of the BIOS instructions, the BMC can adaptively adjust the fan speed according to the workload and temperature conditions (determined by the sensor) of the processor, memory and other hardware through an adaptive adjustment strategy, reduce power consumption and avoid overheating.
[0006] In some possible implementations, a duty cycle of a pulse width modulation (PWM) signal for controlling a fan speed corresponding to a first speed value is within a first range; if the BIOS has not completed startup, the fan speed is increased as the server startup time increases, including: if the BIOS has not completed startup after reaching a first time, the fan speed is switched from a first speed value to a second speed value, and a duty cycle of a pulse width modulation (PWM) signal for controlling a fan speed corresponding to the second speed value is within a second range; the first range does not overlap with the second range, and the maximum value of the first range is less than or equal to the minimum value of the second range.
[0007] In this way, if the time required for BIOS to complete startup is long, which will cause the overall startup time of the server to be extended, the BMC can increase the fan speed to the second speed value to meet the heat dissipation requirements under the long startup time and control the speed as much as possible to reduce noise.
[0008] In some possible implementations, if the BIOS has not completed startup, the fan speed is increased as the server startup time increases, including: if the BIOS has not completed startup after reaching a second time, the fan speed is adjusted to a third speed value, the second time is greater than the first time, the duty cycle of the pulse width modulation (PWM) signal for controlling the fan speed corresponding to the third speed value is within a third range, and the minimum value of the third range is greater than or equal to the maximum value of the second range.
[0009] In this way, if the time required for BIOS to complete startup is too long (exceeding the preset second time), the BMC can increase the fan speed to a third speed value to meet the heat dissipation requirements under the ultra-long startup time and control the speed as much as possible to reduce noise.
[0010] In some possible implementations, if the BIOS completes the startup, the adaptive speed control strategy is called to adjust the fan speed according to the operating parameters of the server, including: if the BIOS completes the startup, the adaptive speed control strategy is called after a third delay; using the adaptive speed control strategy, the fan speed is adjusted according to the operating parameters of the server.
[0011] In this way, through appropriate delay, it can be ensured that after the BIOS completes startup, the sensor has sufficient time to enter the normal working state, thereby ensuring the reliability of the BMC using the adaptive speed control strategy to control the fan speed.
[0012] In some possible implementations, the adaptive speed control strategy includes a numerical control PID speed control strategy. If the BIOS completes startup, the adaptive speed control strategy is called to adjust the fan speed according to the operating parameters of the server, including: continuously obtaining the operating parameters of the server; obtaining the error and error change rate between the operating parameters and the set values based on the operating parameters and the set values of the server operation; using the PID speed control strategy, according to the error and the error change rate, adjusting the fan speed to make the operating parameters close to the set values.
[0013] In this way, the digital control PID speed control strategy can realize adaptive speed control of the fan according to the server hardware load and temperature conditions.
[0014] In some possible implementations, the adaptive speed regulation strategy includes an interval speed regulation strategy, in which multiple parameter intervals and speed intervals are defined, different parameter intervals represent different workloads, different speed intervals represent different speed value ranges, and one parameter interval corresponds to one speed interval; if the BIOS completes startup, the adaptive speed regulation strategy is called to adjust the fan speed according to the server's operating parameters, including: continuously obtaining the server's operating parameters; determining the parameter interval to which the operating parameters belong; and adjusting the fan speed to the corresponding speed interval according to the parameter interval to which the operating parameters belong.
[0015] In this way, the interval speed regulation strategy can be used to achieve adaptive speed regulation of the fan according to the server hardware load and temperature conditions.
[0016] In some possible implementations, if the BIOS completes startup, the adaptive speed control strategy is called to adjust the fan speed according to the operating parameters of the server. The method includes: before the BMC restarts, obtaining the current speed of the fan; if the current speed is lower than the preset speed value, controlling the fan to increase the speed according to the target ratio; if the current speed is higher than the preset speed value, adjusting the duty cycle of the pulse width modulation PWM signal that controls the fan speed to 100%; and / or, after setting the fourth time period starting from the current moment, adjusting the duty cycle of the pulse width modulation PWM signal that controls the fan speed to 100%.
[0017] In this way, it can be ensured that during the BMC restart, the fan speed can also cope with the sudden situation of sudden increase in heat in some servers, thus ensuring the stability of server operation.
[0018] In some possible implementations, the method further includes: after the BMC is restarted, delaying for a fifth time period and invoking an adaptive speed regulation strategy; and using the adaptive speed regulation strategy to adjust the speed of the fan according to operating parameters of the server.
[0019] In some possible implementations, the server also includes a programmable logic device CPLD, and the CPLD is used to control the fan to run at a first speed value during the server startup process and before the BMC is powered on, and if the BMC is not powered on within a sixth period of time after the CPLD is powered on, the fan speed is increased; after the BMC is powered on, the method also includes: sending second information to the CPLD so that the CPLD ends the control of the fan according to the second information, wherein the second information is used to indicate that the BMC is powered on; and the BMC starts controlling the fan.
[0020] In a second aspect, an embodiment of the present application provides a fan speed control device, the device comprising: a processing module and an acquisition module, wherein the processing module can be used to control the fan to run at a first speed value within a first time period after the baseboard management controller BMC of the server is powered on during the server startup process, and the first speed value is lower than the rated speed of the fan; the acquisition module can be used to obtain first information after the first time period is reached, and the first information is used to characterize whether the input / output system BIOS deployed on the server has completed startup; the processing module can also be used to: if the BIOS has not completed startup, then increase the fan speed as the server startup time increases; if the BIOS has completed startup, call an adaptive speed regulation strategy to adjust the fan speed according to the server's operating parameters, and the operating parameters include workload parameters and temperature parameters of the hardware in the server.
[0021] In some possible implementations, the duty cycle of the pulse width modulation (PWM) signal for controlling the fan speed corresponding to the first speed value is within a first range; the processing module can be specifically used to: if the BIOS has not completed startup after reaching the first time length, the fan speed is switched from the first speed value to the second speed value, and the duty cycle of the pulse width modulation (PWM) signal for controlling the fan speed corresponding to the second speed value is within a second range; the first range does not overlap with the second range, and the maximum value of the first range is less than or equal to the minimum value of the second range.
[0022] In some possible implementations, the processing module can be specifically used for: If the BIOS has not completed startup after the second time duration is reached, the fan speed is adjusted to a third speed value, the second time duration is greater than the first time duration, and the duty cycle of the pulse width modulation PWM signal for controlling the fan speed corresponding to the third speed value is in a third range, and the minimum value of the third range is greater than or equal to the maximum value of the second range.
[0023] In some possible implementations, the processing module may be specifically used to: if the BIOS completes the startup, then after a third delay, call the adaptive speed regulation strategy; and use the adaptive speed regulation strategy to adjust the fan speed according to the operating parameters of the server.
[0024] In some possible implementations, the adaptive speed control strategy includes a numerical control PID speed control strategy, and the processing module can be specifically used to: continuously obtain the operating parameters of the server; obtain the error and error change rate between the operating parameters and the set values of the server operation based on the operating parameters and the set values; use the PID speed control strategy to adjust the fan speed according to the error and the error change rate to make the operating parameters close to the set values.
[0025] In some possible implementations, the adaptive speed control strategy includes an interval speed control strategy, in which multiple parameter intervals and speed intervals are defined, different parameter intervals represent different workloads, different speed intervals represent different speed value ranges, and one parameter interval corresponds to one speed interval; the processing module can be specifically used to: continuously obtain the operating parameters of the server; determine the parameter interval to which the operating parameters belong; and adjust the fan speed to the corresponding speed interval according to the parameter interval to which the operating parameters belong.
[0026] In some possible implementations, the acquisition module can also be used to: obtain the current speed of the fan before the BMC is restarted; the processing module can also be used to: if the current speed is lower than the preset speed value, control the fan to increase the speed according to the target ratio; if the current speed is higher than the preset speed value, adjust the duty cycle of the pulse width modulation PWM signal that controls the fan speed to 100%; and / or, set the duty cycle of the pulse width modulation PWM signal that controls the fan speed to 100% after the fourth time period starting from the current moment.
[0027] In some possible implementations, the processing module may also be used to: after the BMC is restarted, delay for a fifth period of time and call the adaptive speed regulation strategy; and use the adaptive speed regulation strategy to adjust the speed of the fan according to the operating parameters of the server.
[0028] In some possible implementations, the server further includes a programmable logic device CPLD, and the CPLD is used to control the fan to run at a first speed value during the server startup process and before the BMC is powered on, and if the BMC is not powered on within a sixth period of time after the CPLD is powered on, the fan speed is increased; after the BMC is powered on, the processing module can also be used to: send second information to the CPLD so that the CPLD ends the control of the fan according to the second information, wherein the second information is used to indicate that the BMC is powered on; the BMC starts the control of the fan
[0029] In a third aspect, an embodiment of the present application provides a server, comprising: at least one memory for storing programs; and at least one processor for executing programs stored in the memory; wherein, when the program stored in the memory is executed, the processor is used to execute the method described in the first aspect or any possible implementation of the first aspect.
[0030] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a processor, the processor executes the method described in the first aspect or any possible implementation of the first aspect.
[0031] In a fifth aspect, an embodiment of the present application provides a computer program product, characterized in that when the computer program product runs on a processor, the processor executes the method described in the first aspect or any possible implementation of the first aspect.
[0032] In the sixth aspect, an embodiment of the present application provides a chip, characterized in that it includes at least one processor and an interface; at least one processor obtains program instructions or data through the interface; at least one processor is used to execute program line instructions to implement the method described in the first aspect or any possible implementation method of the first aspect.
[0033] It can be understood that the beneficial effects of the second to sixth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a structural diagram of a server provided in an embodiment of the present application;
[0035] Figure 2 is a schematic diagram of fan control during the server startup phase in an embodiment of the present application;
[0036] Figure 3 This is a schematic diagram of fan control during the server startup phase in a specific embodiment of the present application.
[0037] Figure 4 is a schematic diagram of fan control during a BMC restart phase in a specific embodiment of the present application;
[0038] Figure 5 It is a schematic diagram of fan control during the server startup phase in a specific embodiment of the present application;
[0039] Figure 6 It is a flow chart of a fan speed regulation method provided in an embodiment of the present application;
[0040] Fig. 7A It is a flowchart of a fan speed regulation method provided in a specific embodiment of the present application;
[0041] Figure 7B It is a flowchart of a fan speed regulation method provided in a specific embodiment of the present application;
[0042] Figure 7C It is a flowchart of a fan speed regulation method provided in a specific embodiment of the present application;
[0043] Figure 8 It is a flowchart of a fan speed regulation method provided in a specific embodiment of the present application;
[0044] Fig. 9 It is a flowchart of a fan speed regulation method provided in a specific embodiment of the present application;
[0045] Fig.10 It is a structural schematic diagram of a fan speed regulating device provided in an embodiment of the present application;
[0046] Fig.11 It is a schematic diagram of the structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] The term "and / or" in this article is a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The symbol " / " in this article indicates that the associated objects are in an or relationship, for example, A / B means A or B.
[0048] The terms “first”, “second” and the like in the specification and claims herein are used to distinguish different objects rather than to describe a specific order of the objects.
[0049] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0050] In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more than two. For example, multiple processing units refer to two or more processing units, etc.; multiple elements refer to two or more elements, etc.
[0051] In the related art, during the server startup, the fan generally runs at a fixed speed until the server's operating system is fully started, and then the fan speed can be adjusted accordingly according to the temperature conditions in the server. However, this fixed speed usually needs to be set higher (such as set to the rated speed) to ensure that the server can fully dissipate heat in extreme situations during startup (such as long startup time), which often causes the fan to generate a lot of noise during startup and consume a lot of power.
[0052] In addition, there may be some emergencies during the boot-up period. For example, during the boot-up stage, the server's firmware, various hardware (including processors, memories, sensors, etc.) and operating system need to be started in sequence. If the server's processor and other hardware have begun to process workloads (such as running BIOS), a certain temperature is generated, and the sensor is not initialized normally (initialization abnormality), cannot collect valid data, or the collected data has errors, then, if the fan speed is adjusted according to the temperature data collected by the sensor during the boot-up period, the fan speed may suddenly increase and continue to run at a high speed for a period of time, generating greater noise and energy consumption, or the temperature in the server 10 frame may increase due to the reduction in fan speed.
[0053] In order to flexibly control the fan speed during the server startup process to reduce noise and meet the server's heat dissipation requirements, a fan speed adjustment method is provided in an embodiment of the present application. The method mainly adjusts the fan speed by detecting the startup status of the server main system during the startup phase through the BMC, thereby meeting the system's heat dissipation requirements while reducing the noise generated by the fan.
[0054] To facilitate understanding of the technical solution of the present application, a server provided in an embodiment of the present application is introduced below.
[0055] For example, Figure 1 FIG. 1 is a schematic diagram of the structure of a server provided in an embodiment of the present application. Figure 1 As shown, the server 10 may include a central processing unit 110, a memory 120, a hard disk 130, and a network interface 140, etc. The memory 120, the hard disk 130, and the network interface 140 may be connected to the central processing unit 110 via a bus. Among them:
[0056] The central processing unit (CPU) 110 is the computing core and control core of the server 10 .
[0057] The memory 120 is used to temporarily store the operation data in the central processing unit CPU 110, and the data exchanged with the external memory such as the hard disk 130. The memory 120 is an external memory, such as a bridge for the hard disk 130 to communicate with the CPU 110. All programs in the server 10 are run in the memory 120. The performance of the memory 120 affects the overall performance of the server. Exemplarily, the memory 120 can be a random access memory (RAM). By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM) or direct rambus RAM (DR RAM).
[0058] The hard disk 130 may include a mechanical hard disk (HDD) and a solid state disk (Solid State Disk or Solid State Drive, SSD). It should be understood that the hard disk 130 is merely an example of a non-volatile memory and does not constitute a specific limitation. In practical applications, a non-volatile memory may be selected in combination with actual conditions. The hard disk 130 may be used to store computer programs and data, such as a server operating system (OS) and executable program codes, etc. These computer programs may be loaded into the memory 120 and executed by the central processing unit 110.
[0059] In this embodiment, the server 10 may further include an independent Flash storage chip (hereinafter referred to as BIOS chip) 150, and the basic input / output system (BIOS) deployed on the chip 150 may be run by the central processing unit 110. The main functions of the BIOS include power-on self-test, initialization of hardware such as the CPU 110, memory 120, and hard disk 130, detection of input and output devices, and booting of the OS, etc., but are not limited thereto.
[0060] In this embodiment, the network interface 140 of the server 10 may include a wired interface (such as a GE interface, a serial port, etc.) and a wireless interface (such as a Wi-Fi interface), which is controlled by the central processor 110 to send and receive data.
[0061] In this embodiment, the server 10 may also include a sensor 160 and a fan 170. The sensor 160 may include but is not limited to a temperature sensor and a speed sensor. The temperature sensor may be provided in multiple locations near the CPU 110, the memory 120, the hard disk 130 and other components to ensure that the temperature changes inside the server system can be monitored more accurately. The speed sensor may be provided near the fan 170 (such as near the fan's bearing or motor) to detect the speed of the fan 170. The fan 170 may be used to reduce the speed of the server (including but not limited to the frame of the server 10 (not shown). Figure 1 ), as well as the temperatures of hardware such as CPU 110 , memory 120 , and hard disk 130 .
[0062] In addition, in this embodiment, the server 10 may further include a complex programmable logic device (CPLD) 210 and a baseboard management controller (BMC) 220. Among them:
[0063] CPLD210 can be used to manage and control various hardware components of the server 10, such as checking the firmware or hardware configuration in the main system 100, performing clock distribution, etc. Specifically, when the server 10 is started, CPLD210 can be responsible for performing some basic hardware detection and configuration steps, such as detecting the status of hardware components on the main system 100 (the main system is a server infrastructure formed by components including but not limited to CPU110, memory 120, hard disk 130, network interface 140, cooling system (such as fan 170)) and performing relevant configurations, for example, detecting and configuring the rotation speed of the fan 170 to prepare for the subsequent startup of the main system 100.
[0064] BMC220 is a controller independent of the main system 100, which can be used to implement a series of monitoring and control functions for hardware, such as detecting the operating status of the temperature, voltage, etc. of each component of the server 10 (CPU110, memory 120, hard disk 130, fan 170, frame, etc.), and adjusting the speed of the fan 170 according to the temperature data collected by the above-mentioned temperature sensors to ensure that the system is in a healthy state. BMC220 can also be used to record information and log records of each hardware of the main system, which is used to prompt users and locate subsequent problems. It should be understood that BMC220 can also perform functions other than those described in this article, which are not listed here one by one.
[0065] It should be noted that Figure 1 It is only an example of a server and does not constitute a specific limitation. In actual applications, it may include Figure 1More or fewer devices may also include, for example, a power supply, a single-chip microcomputer (an integrated circuit chip, equivalent to a microcomputer), a digital signal processor (DSP), an application specific integrated circuit (ASIC), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, general-purpose processors, etc.
[0066] In this embodiment, during the power-on and startup process of the server 10, the BMC 220 will complete the power-on and startup before the main system 100, so that the BMC 220 can monitor the main system 100 and ensure the smooth startup and stable operation of the server 10. In addition, in order to dissipate the heat generated by the internal hardware during the startup process of the server 10 in time, the fan 170 in the server 10 can also be started first, and the BMC 220 controls the speed of the fan 170 to reduce the fan noise as much as possible while meeting the heat dissipation requirements of the server 10 during the startup phase.
[0067] For example, Figure 2 FIG. 2 shows a schematic diagram of the BMC 220 controlling the speed of the fan 170 during the startup phase of the server 10. Figure 2 As shown, when the server 10 is powered on, the BMC 220 and the hardware in the main system 100 (including the BIOS chip 150, the fan 170, etc., but not limited thereto) can all be powered on. The BMC 220 completes the power-on startup before the main system 100, and monitors the CPU 110, the memory 120, the hard disk 130, the network interface 140, the BIOS chip 150, the sensor 160, and the fan 170, etc. in the main system 100. It is understandable that during the boot process, the BIOS in the BIOS chip 150 needs to be run first, and the power-on self-test is performed. After checking and determining that there are no problems (faults) with these hardware of the main system 100, the CPU 110, the memory 120, the hard disk 130, the network card, the sensor 160, etc. can be initialized to ensure normal operation. In addition, after these hardware self-tests pass and the initialization is completed, the OS can be loaded and started. These startup sequences ensure that the hardware devices can be started in an orderly manner, avoiding the instability or startup failure of the server system caused by hardware conflicts or initialization errors. It should be emphasized that, in this article, the BIOS is considered to have completed startup from the time when it is loaded and executed to the time when the control of the software and hardware of the main system 100 is handed over to the operating system OS.
[0068] Therefore, in this embodiment, since BMC220 cannot accurately obtain the temperature parameters in the server 10 through the sensor 160 before the BIOS completes the startup, BMC220 cannot adjust the speed of the fan 170 according to the temperature parameters. Therefore, in this embodiment, during the boot process of the server 10, within the first time period after the BMC220 is powered on, step S1 can be executed to control the fan to run at a first speed value lower than the rated speed of the fan 170, wherein the first time period can be a preset value, such as 3 minutes, but not limited to this. As a specific example, the set first time period can be the time required for the BIOS to complete the startup. In this way, before the BIOS completes the startup, most of the hardware in the server 10 has not completed the initialization, the power consumption is low, and the heat generated is less. BMC220 can control the fan 170 to run at a lower speed (first speed value) within the first time period to meet the heat dissipation requirements and avoid the fan 170 from generating a large noise.
[0069] Moreover, BMC220 can also execute step S2 after the first time period to detect whether the BIOS has completed the startup. Then, BMC220 can execute step S3 according to the detection result. If the BIOS has not completed the startup, BMC220 will gradually increase the speed of fan 170 as time goes by to ensure that the heat generated when the BIOS takes a long time to complete the startup can be smoothly dissipated, but it will not suddenly speed up and generate a lot of noise. In step S3, if it is determined according to the detection result that the BIOS has completed the startup, it means that most of the hardware including sensor 160 has basically completed the initialization. At this time, BMC220 can call the adaptive adjustment strategy to adaptively adjust the speed of fan 170 according to the workload of these hardware in server 10 and the temperature parameters collected by sensor 160.
[0070] Next, in conjunction with the accompanying drawings, the power-on startup principle of the server 10 in the embodiment of the present application is introduced in detail.
[0071] like Figure 3 As shown, in this embodiment, please refer to Figure 3 As shown in the figure, the server 10 is powered on and enters the startup phase. The server 10 receives alternating current (AC) and converts it into direct current (DC) to provide to the CPLD 210 and the main system 100. The independent power supply (not shown) of the BMC 220 also receives alternating current (AC) and converts it into direct current (DC) to provide power to the BMC 220. Then, the server 10 can Figure 3 The power-on process is performed in stages 1 to 6 as shown.
[0072] Specifically, since the operation of the main system 100 and the BMC 220 depends on some functions and signals provided by the CPLD 210, Figure 3In the stage 1 shown in FIG, CPLD 210 is powered on first. After CPLD 210 is powered on, it can detect the hardware environment, such as self-test and detection of hardware such as CPU 110, storage (memory 120 and hard disk 130), network interface 140 and fan 170, to ensure that itself and these hardware are in a normal power-on state, and CPLD 210 will also coordinate the hardware to start in sequence (for example, make fan 170 enter the working state first). In addition, CPLD 210 can also perform timing calibration operations to avoid signal conflicts or timing errors, etc., which are not listed here one by one.
[0073] In this stage 1, in order to facilitate the heat generated by the subsequent power-on operation of each hardware of the server 10 to be dissipated in time, the CPLD210 can execute step S1, first controlling the fan 170 to operate at a first speed value, the first speed value is lower than the rated speed of the fan 170. As a specific example, the duty cycle of the pulse width modulation PWM signal corresponding to the first speed value for controlling the fan speed can be taken in a first range, for example but not limited, the first range can be less than or equal to 30%. The fan 170 runs at such a lower speed, the noise is very low, and it can basically meet the heat dissipation requirements of the server 10 in the current stage 1. It should be understood that PWM, that is, pulse width modulation (Pu l se Width Modulation), also known as pulse width modulation, is a technology that uses pulses to output analog signals. PWM is generally a square wave signal with a fixed period. By modulating the duty cycle of the square wave, the output time of the high / low level of the square wave in one cycle can be adjusted, thereby adjusting the operating state of the device or the execution degree of the function. For example, when a PWM signal is input to the control end of the fan 170 and the duty cycle of the PWM is 100%, the speed of the fan 170 can reach the rated speed; when the PWM duty cycle is lower than 100%, increasing the PWM duty cycle will increase the average power input of the fan motor, thereby increasing the speed of the fan 170; reducing the duty cycle of the PWM signal will reduce the average power input of the motor, thereby reducing the speed of the fan 170.
[0074] Then, BMC220 is powered on and started. Figure 3 2, so that BMC 220 can use the functions provided by CPLD 210 to more effectively manage server 10. Specifically, after BMC 220 is powered on, step S12 can be executed to take over the control of fan 170 from CPLD 210, so that fan 170 maintains the first speed value. At this time, main system 100 is in Figure 3In the stage 3 shown in FIG, the main system 100 is powered on but the BIOS has not been started, the hardware including the sensor 160 has not been initialized, and the OS has not been loaded and run. Therefore, in this stage 3, the BMC 220 cannot obtain reliable temperature and fan speed data through the sensor 160. Therefore, in this example, the BMC 220 can control the speed of the fan 170 through steps S13 to S15 to meet the heat dissipation requirements of the server 10 at this stage while avoiding the fan 170 from generating large noise as much as possible. Since the OS is actually in a power-off state during this stage 3, the speed control and adjustment of the fan 170 by the BMC 220 can also be called "OS power-off speed adjustment".
[0075] Specifically, in stage 3, BMC220 may first execute S13, and within the first duration, BMC220 controls the fan 170 to maintain operation at the first speed value, wherein the first duration is a preset value. As a specific example, the first duration may be the average duration required for the BIOS to complete the startup. For example, the first duration may be 3 minutes, but is not limited thereto. It should be understood that for the main system 100, after it is powered on, the BIOS of the main system 100 is first loaded and run to perform power-on self-test and initialize hardware devices, set system parameters and other startup tasks. After completing these startup tasks, the BIOS will hand over the control of the software and hardware of the main system 100 to the operating system OS, and the startup of the BIOS is considered to be completed. In other words, BIOS startup is a process that takes a certain amount of time. In this example, BMC220 will control the fan 170 to run at a corresponding speed according to whether the BIOS startup process is completed or not.
[0076] In this way, during the first period of time, some hardware in the main system 100 (such as CPU 110, BIOS chip 150, etc.) will have some necessary initial loads, such as loading BIOS, operating system OS and related drivers, etc. During this period of time, the heat generated by these hardware is relatively small. When the fan 170 runs at the first speed value, it can meet the normal startup heat dissipation requirements of the server in most scenarios, and the noise generated is very small, and the energy consumption is also relatively small.
[0077] Next, continue to refer to Figure 3 If, after the first time period, the BMC 220 senses that the BIOS has not yet completed the startup, step S14 is executed to control the fan 170 to run at a second speed value. As an example, the duty cycle of the PWM signal for controlling the fan speed corresponding to the second speed value may be within a second range, for example but not limitation, the second range may be a range greater than 30% and less than or equal to 50%.
[0078] This is because sometimes the main system 100 has an increased number of working hardware, a more complex hardware configuration, hardware failures, or firmware updates, which results in a longer time for the BIOS to complete startup, and the time taken for the server 10 to complete startup (until the OS is completed, it is considered that the server has completed startup). This increases the heat generated by these key hardware. For this reason, in this embodiment, if the BMC220 still does not sense that the BIOS has completed startup after the first period of time, the fan speed is increased to the second speed value, and the heat dissipation capacity inside the server 10 is appropriately enhanced to meet the heat dissipation requirements of the server in a few startup scenarios with a long startup time, while controlling the fan noise so that it will not be significantly enhanced.
[0079] For example, continue to refer to Figure 3 If, after the second time period, BMC220 senses that the BIOS has not yet completed the startup, step S15 is executed to control the fan 170 to run at a third speed value, and the second time period is greater than the first time period. As an example, the second time period may be 10 minutes (min), and the duty cycle of the PWM signal for controlling the fan speed corresponding to the third speed value may be within a third range, for example but not limitation, the third range may be between 50% and 80%, and the specific PWM duty cycle corresponding to the third speed value may be 70%.
[0080] This is because sometimes the key hardware of the main system 100 may have a large increase in the initialization load during startup. For example, a system update or configuration change is performed before the current startup, resulting in more initialization tasks and greatly extending the time required to complete the startup. In this way, after the second period of time, the BMC220 increases the speed of the fan 170 to the third speed value to meet the heat dissipation requirements of the main system 100 when the BIOS is in the software and hardware initialization state for a long time, and can try to avoid the large noise generated by directly increasing the fan speed to full speed.
[0081] Thus, before the BIOS completes the startup, the BMC 220 implements flexible control of the fan speed by executing the above steps S13 to S15. Figure 3 As shown, if after the first time period or the second time period, BMC220 senses that the BIOS has finished starting, and recognizes that the sensor 160 has finished initialization and entered the running state, that is, it senses that the server 10 is in Figure 3 In the stage 4 shown in FIG. 1 , the BMC 220 may execute step S16, and after a delay of a third time period, call a preset adaptive speed regulation strategy to enable the server 10 to be in a state of Figure 3In the illustrated stages 5 and 6, S17 is executed to adjust the speed of the fan 170 based on the operating parameters of the server 10 according to the strategy, wherein the operating parameters may include workload parameters and temperature parameters of the main system hardware. In this embodiment, the third duration may be a preset shorter duration to ensure that there is still some time after the BIOS is started to fully ensure that the hardware such as the sensor 160 is also initialized, so that the BMC 220 obtains relevant parameters effectively and accurately when controlling the fan speed according to the adaptive speed regulation strategy. By way of example and not limitation, the third duration may be 10s to further ensure the reliability of the BMC 220 control through a short delay.
[0082] The adaptive speed control strategy may include a PID (proportional integral derivative) speed control strategy and / or an interval speed control strategy. As a specific example, the PID speed control strategy may include:
[0083] Over a period of time, the operating parameters of the server 10 are continuously obtained, including the temperature of the CPU 110, memory 120, hard disk 130 and other hardware (also referred to as key hardware in this article) in the main system 100 and the workload parameters of each key hardware (such as usage rate, or parameters characterizing power consumption, etc.), etc., and then the error and change rate between these operating parameters and the corresponding set values of each key hardware are calculated, and a control signal is output according to the error and change rate to adjust the power supply voltage or PWM duty cycle of the fan 170, thereby adjusting the fan speed, so as to change the temperature and workload parameters of these key hardware until these operating parameters are as close to their respective set values as possible. This process is continuous to ensure that the server is always kept within a safe temperature range and the fan speed can meet the heat dissipation requirements of the system.
[0084] The interval speed regulation strategy includes: obtaining the above-mentioned operating parameters and the current speed of the fan 170, and changing the fan speed according to the parameter interval reached by the operating parameters, wherein there may be multiple parameter intervals, for example, a first parameter interval representing low-load operation of key hardware, a second parameter interval representing medium-load operation of key hardware, and a third parameter interval representing high-load operation of key hardware. Accordingly, these three parameter intervals correspond to a low-speed interval, a medium-speed interval, and a high-speed interval, respectively. In this way, the fan 170 is adjusted to operate at low, medium, or high speeds according to whether the operating parameters belong to the low, medium, or high load intervals. This process is continuous to ensure that the server always remains within a safe temperature range and that the fan speed can meet the system's heat dissipation requirements.
[0085] Exemplarily, BMC220 can sense whether BIOS has completed startup by monitoring some indicators of the server. For example, BMC220 can determine by detecting an identification or signal (also referred to herein as first information) that BIOS has completed startup, or BMC220 can determine that the operating system OS has been loaded and started by monitoring the signal (such as the utilization of CPU, memory, network interface, etc.) transmitted to key hardware when the operating system OS is started, thereby determining that the BIOS has completed the startup task and completed the startup process.
[0086] In this way, when the OS is started, the server 10 as a whole is started up. After that, the BMC220 can adaptively adjust the speed of the fan 170 according to the operating status of the key hardware in the main system 100 and the data collected by each sensor 160 (such as temperature, fan speed, etc.), so as to keep the system running within a safe temperature range, thereby ensuring the system operation stability and reliability of the entire server 10.
[0087] In some possible implementations, the BMC 220 may need to be restarted during the operation of the server 10 or restarted after an upgrade (the main system 100 is not restarted). In this case, the BMC 220 will be disconnected from the main system 100 for a period of time and lose control of the fan 170. During this period, the server 10 may experience a sudden increase in the power consumption of key hardware, resulting in an increase in heat. In order to cope with these possible situations and avoid the server 10 being able to run stably during the period when the BMC 220 cannot control the fan 170, in this embodiment, Figure 4 As shown, before the BMC 220 is restarted and the communication link with the main system 100 is disconnected, the BMC 220 can execute step S21 to detect the current speed value of the fan 170, and match the speed value with the preset speed value, and execute step S22 according to the matching situation to increase the fan speed.
[0088] As a specific example, when executing step S22, if the current speed value is lower than the first preset speed value (one of the preset speed values), for example, the duty cycle of the PWM for controlling the fan speed corresponding to the current speed value is lower than 80% (i.e., the duty cycle of the PWM for controlling the fan speed corresponding to the first preset speed value), then the duty cycle corresponding to the current speed value is increased by 20%; if the duty cycle of the PWM for controlling the fan speed corresponding to the current speed value is greater than or equal to 80%, then the duty cycle corresponding to the current speed value can be increased to 100%.
[0089] Alternatively, when executing step S22, if the duty cycle of the PWM corresponding to the current speed value is lower than 100% (i.e., the duty cycle of the PWM for controlling the fan corresponding to the second preset speed value, the second preset speed value is also one of the preset speed values), then the duty cycle of the PWM input to the fan is increased to 100% within a fourth time period starting from the current moment. The fourth time period is a preset value, and the fourth time period may be 2 minutes, but is not limited thereto.
[0090] In this way, since the operating status of the server 10 usually does not change significantly in a short time (such as a few minutes or more than ten minutes), before the BMC220 is restarted or upgraded and restarted, the BMC220 can use the fan operating status before its own restart as a reference and appropriately increase the fan speed through step S22 to ensure that even if the main system 100 has a certain load increase during the restart of the BMC220, the heat dissipation requirements can be met to ensure system operation.
[0091] In addition, in this implementation, after the BMC 220 is restarted, the fifth time period is delayed, and the preset adaptive speed control strategy is called again to control the fan speed. As an example, the fifth time period can be set to 10 seconds, but is not limited thereto.
[0092] In some possible implementations, BMC220 may be reset or upgraded before this startup, resulting in a long power-on startup time. In order to ensure that the heat generated by the power-on operation of the key hardware of the main system 100 during the power-on startup period of BMC220 can be dissipated, CPLD210 detects the power-on startup state of BMC220 after powering on and setting the fan 170 to run at the first speed value, so as to adjust the fan speed in time when the startup time of BMC220 is long, thereby enhancing the heat dissipation capability. Figure 5 As shown, this implementation is consistent with the above Figure 3 The example shown is similar, except that, in the present embodiment, after CPLD210 executes step S11, it also detects whether BMC220 is powered on and started within a preset time (also referred to as the sixth time herein), and then executes S30 to increase the speed of fan 170 to a fourth speed value. By way of example and not limitation, the sixth time may be 2 minutes. As an example, the PWM duty cycle of the fan control corresponding to the fourth speed value is taken from a fourth range, the fourth range may be 50% to 70%, and the PWM duty cycle of the fan control corresponding to the fourth speed value may specifically be 60%.
[0093] In this way, the fan 170 after speeding up will not generate a large noise, and can meet the current heat dissipation demand, until the BMC 220 completes the power-on startup, and the CPLD 210 hands over the control right of the fan 170 to the BMC 220.
[0094] Next, based on the above description, a fan speed control method provided by an embodiment of the present application is introduced. It can be understood that the method is proposed based on the above description, and part or all of the contents of the method can refer to the above description.
[0095] See also Figure 6 , Figure 6 is a flow chart of a fan speed control method provided in an embodiment of the present application. It can be understood that the method can be executed by any device, equipment, platform, or device cluster with computing and processing capabilities. Figure 1 The execution on the BMC220 in the server 10 is taken as an example for explanation. Figure 6 As shown, the method may include:
[0096] In S610, during the server startup process, within a first period of time after the BMC is powered on, the fan is controlled to run at a first speed value.
[0097] In this embodiment, it can be combined with Figure 1 As shown, during the power-on and startup phase of the server 10, the BMC 220 will complete the power-on and startup before the main system 100. At this time, the BMC 220 controls the fan 170 to operate the fan 170 to dissipate heat during the power-on and startup phase of the server 10. It can be understood that the power-on and startup phase of the server 10 includes the process from the power-on of the server 10 to the completion of the startup of the OS, and in this process, the startup sequence of the firmware, hardware, and OS of the main system 100 can roughly include: the BIOS is first loaded and run, then the power-on self-test is performed based on the BIOS instructions, and the hardware of the main system 100 is initialized, the loading and startup of the OS is guided, etc. After the software and hardware are switched from being controlled by the BIOS to being controlled by the OS, the BIOS is deemed to have completed the startup. Therefore, after the BIOS completes the startup, the OS is also basically completed, and the server 10 is powered on and started.
[0098] In this embodiment, when the BIOS is not fully started, key hardware of the main system 100, such as the CPU 110, memory 120, hard disk 130, and network interface 140, etc., will process some workloads, such as loading BIOS, loading OS and drivers, etc., thereby generating a certain amount of heat, but generally will not cause a high temperature rise. Therefore, in this step, the BMC 220 can control the fan to run at a first speed value within a first period of time after the BMC 220 is powered on through an internally preset step speed control strategy.
[0099] As a specific example, the first duration is a preset duration, for example, the first duration may be an average duration required for the BIOS on the server to complete startup, such as the first duration is 3 minutes, but is not limited thereto.
[0100] Exemplarily, the first speed value is lower than the rated speed of the fan. As a specific example, the first speed value can be described by a PWM duty cycle. Specifically, the duty cycle of a pulse width modulation PWM signal for controlling the fan speed corresponding to the first speed value can be within a first range. By way of example and not limitation, the first range can be less than or equal to 30%. In this way, by using a lower speed, the noise and energy consumption generated by the fan can be reduced while meeting the power-on heat dissipation requirements of the server in most normal scenarios.
[0101] S620: After the first duration is reached, first information is obtained.
[0102] In this embodiment, after the first time period, the BMC 220 may obtain first information indicating whether the BIOS has completed the startup to determine whether the BIOS has completed the startup. The first information may be an identification or signal indicating that the BIOS has completed the startup.
[0103] S630: If the BIOS has not finished starting, the speed of the fan is increased as the server startup time increases.
[0104] In this embodiment, if the BIOS has not completed the startup after exceeding the first time, it means that the current startup time of the server 10 exceeds the time required in most startup situations. This may be because the key hardware of the main system 100 has many startup tasks to perform in this startup phase and has a large workload to process. Therefore, when it is determined that the BIOS has not completed the startup, the BMC 220 can increase the fan speed as the server startup time increases, so as to dissipate the heat increased by the key hardware due to the heavy load and high power consumption.
[0105] As an example, when the fan speed is increased, it can be gradually increased according to a preset speed increase gradient, for example, from a lower first speed value to a second speed value, so that the fan 170 runs at a medium speed (50% of the rated speed). In this way, it is avoided to directly increase the speed of the fan 170 to the rated speed, thereby improving the heat dissipation intensity while avoiding a sudden increase in noise.
[0106] S640: If the BIOS completes the startup, the adaptive speed adjustment strategy is called to adjust the speed of the fan according to the operating parameters of the server, where the operating parameters include workload parameters and temperature parameters of the hardware in the server.
[0107] In this embodiment, if BMC220 detects that the BIOS has completed startup, a preset adaptive speed regulation strategy can be called, which is used to adjust the fan speed according to the operating parameters of the server (including workload parameters and temperature parameters of each key hardware, etc.).
[0108] In this way, during the startup phase of the server 10, before the BMC 220 can obtain the operating parameters of the main system 100, the BMC 220 can adjust the fan speed in time by detecting whether the BIOS startup completion status has timed out, thereby meeting the heat dissipation requirements of the server startup phase while reducing the fan noise as much as possible.
[0109] A fan speed regulation method provided by a specific embodiment of the present application is introduced below in conjunction with the accompanying drawings.
[0110] For example, Fig. 7A FIG. 1 is a flow chart of a fan speed control method provided by a specific embodiment of the present application. Fig. 7A As shown, the method may specifically include:
[0111] For S700, the CPLD controls the fan to start during the server startup process and before the BMC is powered on.
[0112] In this step, during the power-on process of the server 10, the CPLD 210, the BMC 220 and the main system 100 can be powered on and started in sequence. Among them, the CPLD 210 is powered on and started first, and can detect and configure the hardware environment of the server 10, such as self-test and detection of the CPU 110, storage (memory 120 and hard disk 130), network interface 140 and fan 170 and other hardware, and control the startup sequence of these hardware, for example, the fan 170 can be controlled to start first, so as to provide a basic hardware environment.
[0113] As an example, the CPLD 210 may enable the fan 170 to run at a first speed value after being started.
[0114] S710: During the server startup process, within a first period of time after the BMC is powered on, control the fan to run at a first speed value.
[0115] In this step, the BMC 220 may be powered on and started after the hardware environment of the CPLD 210 is initialized, and take over the control of the hardware including the fan 170 .
[0116] For example, within the first period of time after BMC220 is powered on and before BIOS completes startup, since sensor 160 and the like have not yet completed initialization, BMC220 cannot obtain accurate or effective temperature parameters and the like from sensor 160, and cannot adjust the speed of fan 170 based on these parameters. Therefore, in this example, BMC220 can adjust the speed of fan 170 during the server startup phase according to a preset step speed regulation strategy.
[0117] As a specific example, according to the step speed regulation strategy, within the first time period after BMC220 completes power-on startup, BMC220 can fix the speed of fan 170 at a first speed value to meet the smaller heat dissipation requirements in the server at the current stage, and the fan generates very little noise and consumes less energy.
[0118] S720: After the first duration is reached, obtain first information.
[0119] The execution principle in this step is similar to the execution principle of S520 in the above embodiment, and will not be repeated here.
[0120] S730: If the BIOS has not completed the startup, the rotation speed of the fan is increased as the server startup time increases.
[0121] In this embodiment, the BIOS may take a long time to complete the startup due to some reasons, so that the overall startup time of the server 10 is prolonged. Correspondingly, when the BMC 220 executes S730, it may specifically include S731 to S732:
[0122] S731: If the BIOS has not finished booting after the first time period has elapsed, the rotation speed of the fan is switched from the first rotation speed value to the second rotation speed value.
[0123] In this step, sometimes due to the large number of hardware in the main system 100, complex hardware configuration, hardware failure or firmware update, the time taken for the BIOS to complete the startup becomes longer, and the time taken for the server 10 to complete the startup is extended, which in turn increases the heat generated by these key hardware. For this reason, in this embodiment, if the BMC 220 still does not sense that the BIOS has completed the startup after the first time period, the fan speed is increased to the second speed value, and the heat dissipation capacity inside the server 10 is appropriately enhanced to meet the heat dissipation requirements of the server in a few startup scenarios with a long startup time, while controlling the fan noise so that it will not be greatly enhanced.
[0124] Exemplarily, the duty cycle of the PWM signal for controlling the fan speed corresponding to the second speed value may be within a second range. By way of example and not limitation, the second range may be greater than 30% and less than or equal to 50%.
[0125] S732: If the BIOS has not finished booting after the second time period has elapsed, adjust the fan speed to a third speed value.
[0126] In this step, the second duration is greater than the first duration. As an example, the second duration may be 10 minutes (min), but is not limited thereto.
[0127] Because sometimes the key hardware of the main system 100 may have a large increase in the initialization load during startup, for example, a system update or configuration change is performed before the current startup, resulting in more initialization tasks and a greatly extended startup time, thus, after the second period of time, if the BMC220 determines that the BIOS has not yet completed startup by detecting the first information, the BMC220 may increase the speed of the fan 170 to a third speed value to meet the heat dissipation requirement of the main system 100 in the BIOS initialization state for a long time, and try to avoid the large noise generated by directly increasing the fan speed to full speed.
[0128] Exemplarily, the duty cycle of the PWM signal for controlling the fan speed corresponding to the third speed value may be within a third range, for example but not limited to, the third range may be between 50% and 80%. In a specific example, the duty cycle of the PWM signal for controlling the fan speed corresponding to the third speed value may be 70%.
[0129] Optionally, in this example, if the BIOS has not completed the startup after the second time period has expired, the BMC 220 may generate a corresponding prompt message to indicate that the server startup time is too long.
[0130] S740: If the BIOS completes the startup, the adaptive speed adjustment policy is called to adjust the speed of the fan according to the operating parameters of the server.
[0131] In this step, after the first time period or the second time period, if BMC220 determines that the BIOS has completed startup according to the first information and the sensor 160 enters the running state, BMC220 can obtain the relevant parameters collected by the sensor 160. Then, after delaying for a third time period, BMC220 calls the preset adaptive speed control strategy to adjust the speed of the fan 170.
[0132] Specifically, step S740 may include:
[0133] S741: If the BIOS has completed the startup, the adaptive speed regulation strategy is called after a third delay.
[0134] In this embodiment, if the BIOS completes the startup, the BMC 220 calls the adaptive speed control strategy after a delay of a third time period. The third time period may be a preset shorter time period, for example, not limitation, the third time period may be 10 seconds, and the purpose is to further ensure the reliability of the BMC 220 control through a short delay.
[0135] S742, using an adaptive speed adjustment strategy to adjust the speed of the fan according to the operating parameters of the server.
[0136] In this embodiment, the adaptive speed regulation strategy may include a PID speed regulation strategy and / or an interval speed regulation strategy.
[0137] For example, when the adaptive speed control strategy includes a PID speed control strategy, Figure 7B As shown, S742 may specifically include:
[0138] S7421 a, continuously obtain the operating parameters of the server.
[0139] In this step, the operating parameters of the server may include workload parameters (such as usage rate, parameters characterizing power consumption, etc.) and temperature parameters of each key hardware of the main system 100, and the like.
[0140] S7422a, obtaining an error and an error change rate between the operating parameter and the set value of the server operation according to the operating parameter;
[0141] S7423a, using PID speed control strategy, adjusts the speed of the fan according to the error and the error change rate to make the operating parameters close to the set value.
[0142] In this example, BMC220 can calculate the error and change rate between these operating parameters and the corresponding set values of each key hardware operation, and output a control signal according to the error and change rate to adjust the power supply voltage or PWM duty cycle of the fan 170, thereby adjusting the fan speed, thereby changing the temperature and load conditions of the key hardware of the main system 100, until the temperature and load conditions of the key hardware are as close to their respective set values as possible. This process is continuous to ensure that the server is always kept within a safe temperature range and the fan speed can meet the heat dissipation requirements of the system.
[0143] Exemplarily, when the adaptive speed regulation strategy includes an interval speed regulation strategy, such as Figure 7C As shown, S742 may specifically include:
[0144] S7421 b, continuously obtain the operating parameters of the server.
[0145] S7422b, determining the parameter interval to which the operating parameter belongs;
[0146] S7423b, according to the parameter range to which the operating parameter belongs, adjust the fan speed to a corresponding speed range.
[0147] In this example, multiple parameter intervals and speed intervals are defined in the interval speed regulation strategy, different parameter intervals represent different workloads, different speed intervals represent different speed value ranges, and one parameter interval corresponds to one speed interval. For example, a first parameter interval representing low-load operation of key hardware, a second parameter interval representing medium-load operation of key hardware, and a third parameter interval representing high-load operation of key hardware. Accordingly, these three parameter intervals correspond to a low-speed interval, a medium-speed interval, and a high-speed interval, respectively. In this way, according to whether the operating parameters belong to low, medium, or high load intervals, the fan 170 is adjusted to operate at low, medium, or high speeds. This process is continuous to ensure that the server always remains within a safe temperature range and that the fan speed can meet the system's heat dissipation requirements.
[0148] In this way, after the main system 100 completes startup and operation, the BMC 220 can continue to control the rotation speed of the fan 170 according to the adaptive speed regulation strategy.
[0149] In some possible implementations, the BMC 220 may need to be restarted or upgraded during the operation of the server 10 (the main system 100 is not restarted). In this case, the BMC 220 will be disconnected from the main system 100 for a period of time and lose control of the fan 170. During this period, the server 10 may experience a sudden increase in the power consumption of key hardware, resulting in an increase in heat. In order to cope with these possible situations and avoid the server 10 being able to run stably during the period when the BMC 220 cannot control the fan 170, specifically, Figure 8 As shown, the method may also include:
[0150] S810: Get the current fan speed before the BMC restarts.
[0151] In this step, before the BMC 220 is started, the BMC 220 may determine the current rotation speed of the fan 170 through the speed sensor on the fan 170 .
[0152] S820: If the current speed is lower than the preset speed value, the fan is controlled to increase the speed according to the target ratio.
[0153] If the current speed is higher than the preset speed value, the duty cycle of the pulse width modulation (PWM) signal for controlling the fan speed is adjusted to 100%;
[0154] And / or, after setting a fourth time period starting from the current moment, the duty cycle of the pulse width modulation (PWM) signal for controlling the fan speed is adjusted to 100%.
[0155] In this step, a preset speed value can be set, for example, the duty cycle of the PWM for controlling the fan speed corresponding to the preset speed value is 80%. In this way, if the duty cycle of the pulse width modulation PWM signal for controlling the fan speed corresponding to the current speed is lower than 80%, the duty cycle is increased by 20%; if the duty cycle of the pulse width modulation PWM signal for controlling the fan speed corresponding to the current speed is greater than or equal to 80%, the duty cycle is increased to 100%. Or directly instruct the CPLD210 or CPU110 and other devices with control functions to increase the duty cycle of the pulse width modulation PWM signal for controlling the fan speed to 100% after the fourth time period (for example, 2 minutes) starting from the current moment.
[0156] In this way, BMC220 appropriately increases the fan speed before restarting, so that during the period when it loses control of the fan speed during the restart process, even if the key hardware of the server 10 has a certain increase in power consumption, it can still meet the heat dissipation requirements and ensure system operation.
[0157] In addition, in this implementation, after the BMC 220 is restarted, the fifth time period is delayed, and the preset adaptive speed control strategy is called again to control the fan speed. As an example, the fifth time period can be set to 10 seconds, but is not limited thereto.
[0158] In some possible implementations, during the server startup process, BMC220 may be reset or upgraded before this startup, resulting in a long power-on startup time. In order to ensure that the heat generated by the power-on operation of the key hardware of the main system 100 during the BMC220 power-on startup period can be dissipated, after the CPLD210 is powered on and the fan 170 is set to run at the first speed value, it can also detect the power-on startup state of the BMC220, so as to adjust the fan speed in time when the BMC220 startup takes a long time to enhance the heat dissipation capacity. Specifically, within the sixth time period after the CPLD210 is powered on, if the CPLD210 detects that the BMC220 has not been powered on, the speed of the fan 170 can be controlled to increase from the first speed value to the fourth speed value. By way of example and not limitation, the sixth time period can be 2 minutes. As an example, the PWM duty cycle of controlling the fan corresponding to the fourth speed value is within a fourth range, which may be 50% to 70%. The PWM duty cycle of controlling the fan corresponding to the fourth speed value may specifically be 60% of the PWM duty cycle.
[0159] Then, if Fig. 9 As shown, the fan speed regulation method provided in this embodiment may also include:
[0160] S910, the BMC sends a second message to the CPLD, so that the CPLD ends the control of the fan according to the second message, wherein the second message is used to indicate that the BMC is powered on and started.
[0161] In this step, BMC 220 may send an instruction or a signal (ie, second information) to CPLD 210 to enable CPLD 210 to terminate the control of the fan.
[0162] S920: The BMC starts controlling the fan.
[0163] In this way, after BMC220 completes power-on and takes over the control of fan 170 from CPLD210, steps S610 to S640 or steps S700 to S740 in the above embodiment can be executed to adjust the rotation speed of fan 170 and reduce noise.
[0164] Based on the method in the above embodiment, the present application embodiment provides a fan speed control device. Fig.10 , Fig.10 1 is a schematic diagram of the structure of a fan speed regulating device 1000 provided in an embodiment of the present application.
[0165] like Fig.10 As shown, the device 1000 may include: a processing module 1001 and an acquisition module 1002. The processing module 1001 may be used to control the fan to run at a first speed value during the first time period after the baseboard management controller BMC of the server is powered on during the server startup process, and the first speed value is lower than the rated speed of the fan. The acquisition module 1002 may be used to obtain first information after the first time period is reached, and the first information is used to indicate whether the input / output system BIOS deployed by the server has completed startup. The processing module 1001 may also be used to increase the speed of the fan as the server startup time increases if the BIOS has not completed startup; if the BIOS has completed startup, call an adaptive speed control strategy to adjust the speed of the fan according to the operating parameters of the server, and the operating parameters include workload parameters and temperature parameters of the hardware in the server.
[0166] It should be understood that the above-mentioned device is used to execute the fan speed regulation method in the above-mentioned embodiment. The implementation principle and technical effect of the corresponding program module in the device 1000 are similar to those described in the above-mentioned method. The working process of the device 1000 can refer to the corresponding process in the above-mentioned method, which will not be repeated here.
[0167] Based on the method in the above embodiment, an embodiment of the present application provides an electronic device. The electronic device may include: at least one memory for storing programs; at least one processor for executing the programs stored in the memory; wherein, when the programs stored in the memory are executed, the processor is used to execute the method in the above embodiment.
[0168] Based on the method in the above embodiment, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a processor, the processor executes the method in the above embodiment.
[0169] Based on the method in the above embodiment, an embodiment of the present application provides a computer program product, characterized in that when the computer program product runs on a processor, the processor executes the method in the above embodiment.
[0170] Based on the method in the above embodiment, the present application embodiment also provides a chip. Fig.11 , Fig.11 This is a schematic diagram of the structure of a chip provided in an embodiment of the present application. Fig.11 As shown, the chip 900 includes one or more processors 901 and an interface circuit 902. Optionally, the chip 900 may also include a bus 903. Among them:
[0171] Processor 901 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in processor 901 or an instruction in software form. The above processor 901 can be a general-purpose processor, a digital communicator (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. The disclosed methods and steps in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0172] The interface circuit 902 can be used to send or receive data, instructions or information. The processor 901 can use the data, instructions or other information received by the interface circuit 902 to process, and can send the processing completion information through the interface circuit 902.
[0173] Optionally, the chip 900 further includes a memory, which may include a read-only memory and a random access memory, and provides operation instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory (NVRAM).
[0174] Optionally, the memory stores executable software modules or data structures, and the processor can perform corresponding operations by calling operation instructions stored in the memory (the operation instructions can be stored in the operating system).
[0175] Optionally, the interface circuit 902 may be used to output the execution result of the processor 901 .
[0176] It should be noted that the functions corresponding to the processor 901 and the interface circuit 902 can be implemented through hardware design, software design, or a combination of hardware and software, which is not limited here.
[0177] It should be understood that each step of the above method embodiment can be completed by a hardware-based logic circuit or a software-based instruction in a processor.
[0178] It is understandable that the size of the sequence number of each step in the above embodiment does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. In addition, in some possible implementations, each step in the above embodiment can be selectively executed according to actual conditions, and can be partially executed or fully executed, which is not limited here.
[0179] It is understandable that the processor in the embodiments of the present application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.
[0180] The method steps in the embodiments of the present application can be implemented by hardware, or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.
[0181] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions may be transmitted from a website site, a computer, a server or a data center to another website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.
[0182] It should be understood that the various numerical numbers involved in the embodiments of the present application are only used for the convenience of description and are not used to limit the scope of the embodiments of the present application.
Claims
1. A fan speed regulation method, characterized in that: The method comprises: During the server startup process, within a first time period after the baseboard management controller BMC of the server is powered on, the fan is controlled to run at a first speed value, where the first speed value is lower than the rated speed of the fan; After the first duration is reached, first information is obtained, where the first information is used to indicate whether the input / output system BIOS deployed on the server has completed startup; If the BIOS has not completed the startup, increasing the speed of the fan as the server startup time increases; If the BIOS completes the startup, the adaptive speed adjustment strategy is called to adjust the speed of the fan according to the operating parameters of the server, where the operating parameters include workload parameters and temperature parameters of the hardware in the server.
2. The method according to claim 1, characterized in that The duty cycle of the pulse width modulation (PWM) signal for controlling the fan speed corresponding to the first speed value is within a first range; If the BIOS has not completed the startup, increasing the speed of the fan as the server startup time increases, includes: If the BIOS has not completed startup after reaching the first time duration, the fan speed is switched from the first speed value to the second speed value, and the duty cycle of the pulse width modulation (PWM) signal for controlling the fan speed corresponding to the second speed value is in a second range; the first range does not overlap with the second range, and the maximum value of the first range is less than or equal to the minimum value of the second range.
3. The method according to claim 2, characterized in that If the BIOS has not completed the startup, increasing the speed of the fan as the server startup time increases, includes: If the BIOS has not completed startup after the second time period is reached, the fan speed is adjusted to a third speed value, the second time period is greater than the first time period, the duty cycle of the pulse width modulation (PWM) signal for controlling the fan speed corresponding to the third speed value is in a third range, and the minimum value of the third range is greater than or equal to the maximum value of the second range.
4. The method according to any one of claims 1 to 3, characterized in that: If the BIOS completes the startup, the adaptive speed adjustment strategy is called to adjust the speed of the fan according to the operating parameters of the server, including: If the BIOS completes the startup, then after a third delay, the adaptive speed regulation strategy is called; The adaptive speed regulation strategy is utilized to adjust the rotation speed of the fan according to the operating parameters of the server.
5. The method according to claim 4, characterized in that The adaptive speed control strategy includes a numerical control PID speed control strategy. If the BIOS completes the startup, the adaptive speed adjustment strategy is called to adjust the speed of the fan according to the operating parameters of the server, including: Continuously obtaining the operating parameters of the server; According to the operating parameter and the set value of the server operation, an error and an error change rate between the operating parameter and the set value are obtained; The PID speed regulation strategy is used to adjust the speed of the fan according to the error and the error change rate so that the operating parameter is close to the set value.
6. The method according to claim 4, characterized in that The adaptive speed regulation strategy includes an interval speed regulation strategy, in which a plurality of parameter intervals and speed intervals are defined, different parameter intervals respectively represent different workloads, different speed intervals respectively represent different speed value ranges, and one parameter interval corresponds to one speed interval; If the BIOS completes the startup, the adaptive speed adjustment strategy is called to adjust the speed of the fan according to the operating parameters of the server, including: Continuously obtaining the operating parameters of the server; Determining the parameter interval to which the operating parameter belongs; According to the parameter interval to which the operating parameter belongs, the rotation speed of the fan is adjusted to belong to the corresponding rotation speed interval.
7. The method according to any one of claims 1 to 6, characterized in that: After the BIOS completes the startup, the adaptive speed adjustment strategy is called to adjust the speed of the fan according to the operating parameters of the server, the method includes: Before the BMC is restarted, obtaining the current rotation speed of the fan; If the current speed is lower than the preset speed value, the fan is controlled to increase the speed according to the target ratio. If the current speed is higher than the preset speed value, the duty cycle of the pulse width modulation (PWM) signal for controlling the fan speed is adjusted to 100%; And / or, after setting a fourth time period starting from the current moment, the duty cycle of the pulse width modulation (PWM) signal for controlling the speed of the fan is adjusted to 100%.
8. The method according to claim 7, characterized in that: The method further comprises: After the BMC is restarted, delaying for a fifth time period, and calling an adaptive speed regulation strategy; The adaptive speed regulation strategy is utilized to adjust the rotation speed of the fan according to the operating parameters of the server.
9. The method according to any one of claims 1 to 7, characterized in that: The server further includes a programmable logic device (CPLD), wherein the CPLD is used to control the fan to run at the first speed value during the booting process of the server and before the BMC is powered on, and if the BMC is not powered on within a sixth time period after the CPLD is powered on, the speed of the fan is increased; After the BMC is powered on, the method further includes: Sending second information to the CPLD, so that the CPLD ends the control of the fan according to the second information, wherein the second information is used to indicate that the BMC is powered on and started; The BMC starts controlling the fan.
10. A server, characterized in that: The server includes a baseboard management controller, and the baseboard management controller includes: at least one memory for storing a program; at least one processor, configured to execute the program stored in the memory; It is said that when the program stored in the memory is executed, the processor is used to execute the method as described in any one of claims 1-9.
Citation Information
Cited By
Fan control method and device
CN120739727A
Fan control method and apparatus
CN120739727B
Fan rotating speed control method and electronic equipment based on fan heat dissipation
CN120819534A
Wireless speed regulation control method and system of star flash module in computer cooling fan
CN121879540A
Fan speed adjustment method and server
WO2025251753A1
