Fan control method and server
By storing the fan speed determined by the fan speed control algorithm during BMC restart and combining it with a watchdog mechanism, the problem of insufficient server heat dissipation caused by BMC restart is solved, achieving thermal stability and performance balance of the server in abnormal BMC state and preventing overheating.
Patent Information
- Application Number
- CN202411009885.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-07-25
AI Technical Summary
When the BMC restarts, existing technology is unable to continue controlling the fans, resulting in insufficient server cooling and potentially causing overheating risks.
By storing the fan speed control algorithm determined during BMC restart in the fan control register, and immediately using this speed to control the cooling fan when the BMC is not running normally, combined with a watchdog mechanism to monitor the BMC status, the thermal stability and performance balance of the server are ensured.
In the event of a BMC restart or abnormal state, the fan speed is adjusted through the fan control register to maintain the server's thermal stability and performance balance, prevent overheating, and ensure server safety.
Smart Images

Figure CN118934670A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of servers, and in particular to a fan control method and a server. Background Art
[0002] The Baseboard Management Controller (BMC) is used to monitor the physical status of the server and provide corresponding remote management functions. BMC plays a vital role in controlling the thermal stability of the server during operation.
[0003] Currently, the BMC controls the fans corresponding to each hardware in the server to dissipate heat. When the BMC restarts, it cannot continue to control the corresponding fans to ensure the heat dissipation of the server. If the BMC restart time is too long, the server may have the risk of overheating. Summary of the invention
[0004] The embodiments of the present application provide a fan control method and a server, which can solve the problem of server heat dissipation during the restart phase of the BMC.
[0005] In a first aspect, an embodiment of the present application provides a fan control method, the method comprising:
[0006] Acquire the fan control speed of the cooling fan in real time; the fan control speed is determined by the BMC through a preset fan speed control algorithm; the fan control speed is stored in a fan control register;
[0007] Obtaining the operating status of the BMC;
[0008] When the running state of the BMC is abnormal, the cooling fan is controlled by the current fan control speed stored in the fan control register.
[0009] In the embodiment of the present application, the fan control speed determined by the BMC through the preset fan speed control algorithm is stored in the fan control register. When the operation state of the BMC is abnormal, the cooling fan is immediately controlled by the current fan control speed stored in the fan control register. Since the pre-stored current fan control speed is obtained based on the preset fan control algorithm, the stored speed can maintain the balance between the operation performance and thermal stability of the server within a certain period of time, thereby ensuring the safety of the server.
[0010] In a possible implementation manner, obtaining the operating status of the BMC includes:
[0011] When a timing reset signal is received within a preset first time period, determining that the operating state of the BMC is the normal state; the timing reset signal is a signal periodically output by the BMC operating in the normal state based on the preset first time period;
[0012] When the timing reset signal is not received within the preset first time period, it is determined that the operating state of the BMC is the abnormal state.
[0013] In this implementation, the acquisition of the BMC operating status needs to be determined by the timing reset signal periodically sent by the BMC. When the operating status of the BMC is normal, the timing is performed through the preset first duration, and the timing reset signal output by the BMC is periodically obtained to determine whether the current state of the BMC is normal. Since the BMC periodically outputs the timing reset signal based on the preset first duration, when the timing reset signal is not received within the preset first duration, it indicates that the BMC cannot send the timing reset signal at this time, and it can be determined that the operating status of the BMC is abnormal. On the contrary, if the timing reset signal sent by the BMC can be received normally within the preset first duration, it can be determined that the operating status of the BMC is normal. By periodically obtaining the timing reset signal, the operating status of the BMC can be monitored in real time, and the operating stability of the server can be improved.
[0014] In another possible implementation, the method further includes
[0015] receiving a first enable signal from the BMC; the first enable signal is a signal output when the running state of the BMC enters the normal state; the first enable signal is used to enable the first watchdog;
[0016] When the timing reset signal is not received within the preset first time period, determining that the operation state of the BMC is the abnormal state includes:
[0017] Performing timing based on the preset first duration by the first watchdog to determine whether the timing reset signal is received within the preset first duration;
[0018] When the timing reset signal is not received within the preset first time period, it is determined that the operating state of the BMC is the abnormal state.
[0019] In this implementation, when the operation state of the BMC enters the normal state, it is necessary to receive the first enable signal sent by the BMC to enable the first watchdog, so that the first watchdog performs timing based on the preset first time length, and determines the operation state of the BMC by whether the first watchdog receives a timing reset signal within the preset first time length. By using the first enable signal and enabling the first watchdog, the operation state of the BMC can be accurately monitored by the first watchdog.
[0020] In another possible implementation, when the running state of the BMC is an abnormal state, after the cooling fan is controlled by adjusting the fan speed stored in the fan control register, the method further includes:
[0021] Determining whether the timing reset signal is received within a preset second time period;
[0022] When the timing reset signal is not received during the preset second time period, the fan control speed of the cooling fan is adjusted to the maximum speed of the cooling fan.
[0023] In this implementation, after determining that the operating state of the BMC is abnormal, in the process of the CPLD controlling the cooling fan through the fan control speed stored in the fan control register, it is also necessary to start the next timing based on the preset second time length to determine whether the BMC can start normally within the preset second time length to enter the normal state. If the timing reset signal of the BMC is not received after the preset second time length, it is determined that the BMC still has not started normally. The reason why the BMC did not start normally may be that an abnormality occurred during the operation phase, or that it was hung during the restart phase. Under this condition, it indicates that the operating state of the BMC has not returned to the normal state at this time. At this time, the speed of the cooling fan is adjusted to its maximum speed to prevent the hardware equipment in the server from overheating, thereby ensuring the safe operation of the server.
[0024] In yet another possible implementation, the determining whether the timing reset signal is received within a preset second time period includes:
[0025] receiving a second enable signal from the BMC; the second enable signal is a signal output when the running state of the BMC enters the abnormal state; the second enable signal is used to enable the second watchdog;
[0026] The second watchdog performs timing based on the preset second time period to determine whether the timing reset signal is received within the preset second time period.
[0027] In this implementation, when timing is performed based on the preset second duration, the BMC sends a second enable signal to enable the second watchdog. By enabling the second watchdog and timing based on the preset second duration, it can be determined whether a timing reset signal from the BMC is received within the preset second time. By enabling the second watchdog, the operating status of the BMC can be further monitored, so that a timely response can be made when an abnormality occurs in the BMC.
[0028] In yet another possible implementation, the method further includes:
[0029] When the operating state of the BMC is normal, the cooling fan is controlled by the fan regulating speed output by the BMC in real time.
[0030] In this implementation, when the BMC is in normal operation, the cooling fan only needs to be controlled by the fan speed control output by the BMC in real time. Since the BMC has a preset fan speed control algorithm built in, the control of the cooling fan can take into account the heat dissipation and performance requirements of the server.
[0031] In yet another possible implementation, the preset fan speed control algorithm includes at least one of a PID control algorithm, an artificial intelligence algorithm, and a static threshold algorithm.
[0032] In a second aspect, an embodiment of the present application provides a fan control device, the device comprising:
[0033] A first acquisition module is used to acquire the fan control speed of the cooling fan in real time; the fan control speed is determined by the BMC through a preset fan speed control algorithm; the fan control speed is stored in a fan control register;
[0034] A second acquisition module is used to acquire the operating status of the BMC;
[0035] The control module is used to control the cooling fan by the current fan control speed stored in the fan control register when the running state of the BMC is abnormal.
[0036] In a third aspect, an embodiment of the present application provides a server, the server comprising a BMC, a programmable device and a cooling fan; the BMC is connected to the programmable device; the programmable device is connected to the cooling fan; the programmable device comprises: a fan control register;
[0037] The programmable device is used to obtain the fan control speed of the cooling fan in real time; the fan control speed is determined by the BMC through a preset fan speed control algorithm; the fan control speed is stored in a fan control register;
[0038] When the running state of the BMC is abnormal, the cooling fan is controlled by the current fan control speed stored in the fan control register.
[0039] In a possible implementation, the BMC is used to:
[0040] Determine the fan speed control of the cooling fan according to a preset fan speed control algorithm, and send the fan speed control to the programmable device;
[0041] When the running state is a normal state, a timing reset signal is periodically sent to the programmable device based on a preset first time length.
[0042] In another possible implementation, the BMC is further used for:
[0043] When the running state enters an abnormal state, a second enable signal is sent to the programmable device; the second enable signal is used to enable a second watchdog in the programmable device.
[0044] In a fourth aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer, implements the operation steps of any possible fan control method in the first aspect.
[0045] Any of the fan control methods, fan control devices, servers or computer program products provided above are used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in this embodiment or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 A schematic diagram of the structure of a server provided in an embodiment of the present application;
[0048] Figure 2 A schematic diagram of a fan control method when the BMC is in an abnormal state in an actual application scenario provided by an embodiment of the present application;
[0049] Figure 3 A schematic diagram of a fan control method when the BMC is in a normal state in an actual application scenario provided by an embodiment of the present application;
[0050] Figure 4 A schematic diagram of a flow chart of a fan control method provided in an embodiment of the present application;
[0051] Figure 5 A schematic flow chart of a fan control method in an actual application scenario provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] It should be noted that the embodiments described in this application are only part of the embodiments of this application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0053] In order to make the following embodiments clear, the technical terms involved in this application are first introduced.
[0054] BMC is a microcontroller on the motherboard of a server or some high-end personal computers. It is mainly responsible for monitoring and managing various parameters of the system hardware, such as temperature, voltage, fan speed, etc.
[0055] A complex programmable logic device (CPLD) is a programmable logic device used to implement logic functions in digital circuit design.
[0056] General-Purpose Input / Output (GPIO) is a general-purpose port interface that can be used for computers or embedded systems to interact with external devices or the outside world. GPIO pins can be configured by software as input or output modes, which are used to read external signals (such as button presses) or generate signals (such as driving LEDs).
[0057] The embodiment of the present application provides a fan control method and a server. In the fan control method of the present application, the BMC will determine the operating speed of the cooling fan in the server based on a pre-set fan speed control algorithm during the operation stage, and transmit the determined fan speed to the CPLD in real time. The CPLD monitors the operating status of the BMC in real time. When the BMC enters the restart state, the CPLD controls the speed of the cooling fan in the server based on the fan speed sent by the BMC in real time. Since the fan speed control algorithm can determine the power consumption of the fan in real time according to the current heat load of the server and the pre-set operating temperature, when the CPLD controls the temperature of the server through the fan speed fed back by the BMC during the BMC restart stage, it can ensure the thermal stability of the server without occupying a large amount of power consumption to ensure the normal performance of the server. This solution reduces the overall power consumption of the server while ensuring stable heat dissipation of the server.
[0058] The present application embodiment provides a server, such as Figure 1 As shown, the server includes a BMC, a CPLD, and multiple FAN1-FANn, where FAN represents a cooling fan in the server. Among them, the BMC is connected to the CPLD. For example, the BMC and the CPLD can be connected through the localbus. The localbus is a high-speed data transmission channel that allows direct communication between hardware devices without going through the central processing unit (CPU), thereby reducing delays and improving data processing efficiency. The use of localbus helps to achieve efficient and low-latency communication between the BMC and the CPLD. In addition to the localbus, the communication between the BMC and the CPLD can also be completed through the integrated circuit (I2C, Inter-Integrated Circuit) bus, the SPI (Serial Peripheral Interface, Serial Peripheral Interface) bus and the PCIe (Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard) bus.
[0059] The CPLD is connected to multiple FANs in the server. For example, the CPLD can be connected to multiple FANs in the server through the GPIO interface. In actual application scenarios, the BMC can determine the fan speed according to the actual energy consumption of the device, and transmit the determined fan adjustment speed to the CPLD. After receiving the fan adjustment speed, the CPLD controls the fan speed of FAN1-FAN.
[0060] For servers of different models and categories, each hardware device in the server may have a common cooling fan, or each hardware device may have its own cooling fan. Figure 1 In the example, each hardware device corresponds to the same cooling fan. This embodiment does not specifically limit the number and corresponding relationship between the cooling fans and the hardware devices.
[0061] In order to facilitate understanding of the technical solution provided in the embodiment of the present application, a fan control method provided in the embodiment of the present application will be introduced below in combination with an actual application scenario.
[0062] See also Figure 2 and Figure 3 , Figure 2 A schematic diagram of a fan control method when the BMC is in an abnormal state in an actual application scenario provided by an embodiment of the present application is provided. Figure 3 The schematic diagram of a fan control method in an actual application scenario provided by an embodiment of the present application when the BMC is in a normal state can be combined to further understand the fan control method proposed in the present application.
[0063] In an actual application scenario, the server 101 may be a server with a heat dissipation function, and the server contains multiple hardware devices, which are heat generating devices, such as a CPU, a hard disk, a memory card, a network card, etc. Each hardware device has a specific heat load condition and a preset operating temperature. Under the preset operating temperature, the corresponding hardware device can better exert its own performance. Therefore, the BMC will control the temperature of the cooling fan in the server in real time in combination with the specific heat load condition of each hardware device and the preset operating temperature.
[0064] The server includes multiple hardware devices, such as Figure 3 As shown, during the operation of the server, the BMC obtains the temperature data of each hardware device in the server in real time through the temperature sensor in the server. A preset fan speed control algorithm is set inside the BMC. During the operation of the BMC, the temperature control of the server is completed by the BMC, which controls the speed of the cooling fan of each hardware device through the preset fan speed control algorithm to achieve the effect of controlling the temperature of the server. During the operation of the BMC, the CPLD monitors the operation status of the BMC in real time, and when the BMC determines the fan control speed for the cooling fan through its internal preset fan speed control algorithm, it needs to send the determined fan control speed to the CPLD, so that the CPLD controls the speed of the cooling fan through the fan control speed.
[0065] It should be noted that the fan speed control may include a speed value or a PWM value (also known as a pulse width modulation signal).
[0066] When the BMC transmits the fan control speed determined in real time to the CPLD, the CPLD will save the fan control speed obtained in real time to its internal fan control register. In this way, when the BMC enters a restart or abnormal state and cannot generate the fan control speed, the CPLD can control the cooling fan based on the fan control speed saved in the fan control register.
[0067] Since the CPLD receives multiple fan control speeds sent by the BMC in real time, when the BMC enters a restart or abnormal state and is unable to generate a fan control speed, the CPLD can control the cooling fan based on the last received current fan control speed stored in the fan register.
[0068] In some embodiments, after receiving the fan control speed sent by the BMC, the CPLD replaces the old fan control speed stored in the fan control register with the newly received fan control speed, that is, the fan control speed previously stored in the fan control register is deleted, and the newly received fan control speed is stored, so that there is no need to store multiple fan control speeds in the fan control register. On the one hand, it can avoid too many fan control speeds occupying the space of the fan control register. On the other hand, when the CPLD controls the cooling fan based on the fan control speed stored in the fan control register, since the fan control register has saved the latest fan control speed, the latest control speed can be directly used to control the cooling fan, and there is no need to select the latest fan control speed from multiple fan control speeds. The execution steps are simpler and more efficient.
[0069] like Figure 2 As shown in the figure, when the BMC enters the restart or abnormal state, since the BMC cannot generate the fan control speed, the fan control speed used to control the fan is the fan control speed pre-saved by the CPLD. Since the BMC will send the fan speed determined by the preset fan speed control algorithm to the CPLD in real time during the normal operation stage, and this fan speed can ensure the temperature stability of the hardware device without affecting the overall performance load of the hardware device itself. Therefore, when the CPLD controls the cooling fan based on the pre-saved fan speed, it can also achieve the control effect of the BMC on the cooling fan, thereby maintaining a balance between server performance and thermal stability and ensuring the safety of the server.
[0070] Specifically, the preset fan speed control algorithm may include a static threshold algorithm, a proportional-integral-derivative (PID) control algorithm, and an intelligent algorithm, etc. All of the above methods can realize fan speed control based on the temperature conditions and hardware conditions of each hardware device in the server. Among them, the static threshold algorithm is a relatively basic control algorithm, and the core of the algorithm is to control the speed of the cooling fan by setting a fixed temperature threshold. When the temperature value monitored by the sensor exceeds the set temperature threshold, the fan speed is controlled to a gear corresponding to the threshold, and different fan speed control gears correspond to different size comparisons between the set thresholds.
[0071] The core of the PID control algorithm is to control the fan speed by calculating the difference between the set value (such as the target temperature of the hardware device) and the actual value (the current temperature of the hardware device), and performing proportional, integral and differential calculations on the difference.
[0072] Intelligent algorithms include fuzzy logic control and neural network control, which can mimic the decision-making process of staff when controlling fan speed, thereby achieving more intelligent and adaptive fan control. Intelligent algorithms can automatically adjust the parameters in the algorithm and optimize their own control strategy for fan speed when facing complex temperature changes and load changes.
[0073] Next, a fan control method provided in an embodiment of the present application will be introduced with reference to the accompanying drawings.
[0074] See also Figure 4 , which is a flow chart of a fan control method provided in an embodiment of the present application, and specifically includes the following steps:
[0075] S101: acquiring a fan control speed of a cooling fan in real time; the fan control speed is determined by the BMC through a preset fan speed control algorithm; the fan control speed is stored in a fan control register.
[0076] In this step, the CPLD obtains the fan control speed from the BMC in real time and saves the obtained fan control speed in the fan control register of the CPLD. The CPLD can effectively store the fan control speed through its internal fan control register, and when the operation status of the BMC enters an abnormal state, the cooling fan in the server is controlled by the fan control speed stored in the fan control register.
[0077] During the normal operation of the BMC, the fan control in the server is completed by the BMC. The BMC needs to periodically determine the fan control speed based on the temperature data of each hardware device in the server and the preset fan speed control algorithm pre-set in the BMC, and control the cooling fan in the server through the fan control speed determined by the algorithm. It should be noted that after the BMC determines the corresponding fan control speed based on the temperature data of each hardware device, it will send it to the CPLD, so that the CPLD can periodically receive the fan control speed sent by the BMC.
[0078] When the BMC controls the cooling fan, it is necessary to determine the specific fan speed through the preset fan speed control algorithm, and control the cooling fan with this specific fan speed. In actual application scenarios, the BMC needs to determine the speed of each cooling fan in the server in real time through the preset fan speed control algorithm and the current temperature data of the server, and use this to control the cooling fan in the server. Therefore, the fan speed control speed is a value dynamically determined by the BMC based on the temperature data of each hardware device of the server and the preset fan speed control algorithm.
[0079] During the process of BMC controlling the cooling fan in the server, CPLD obtains the fan control speed determined in real time by BMC. When BMC runs abnormally or enters abnormal state such as restart state, CPLD can temporarily control the cooling fan by using the fan control speed stored in the fan control register in real time when BMC is temporarily unable to control the cooling fan, thereby temporarily balancing the heat dissipation demand and energy consumption demand of the server. Among them, CPLD can obtain the fan control speed from BMC through the configured communication interface. The communication interface configured by CPLD is determined by the communication protocol between BMC and CPLD. For example, if CPLD and BMC communicate using I2C communication protocol, CPLD obtains the fan control speed sent by BMC lock through I2C interface. The communication interface used by CPLD when obtaining fan control speed is determined by the communication protocol between it and BMC.
[0080] Among them, the temperature data of each hardware device in the server can be detected by the hardware temperature sensors in the server. The hardware temperature sensors are distributed in key locations in the server, such as CPU, GPU, memory module, motherboard and other hardware devices. In the process of determining the fan speed control based on the preset fan speed control algorithm, the preset fan speed control algorithm used by the BMC needs to be set according to the thermal load of each hardware device, the expected operating temperature of the hardware device and the actual needs. The fan speed control algorithm can be determined by the overall thermal performance requirements of the server, noise restrictions, energy consumption considerations and the complexity of the speed control algorithm. Under different requirements and conditions, the settings of the preset wind speed control algorithm will also be different.
[0081] For example, when an algorithm with low algorithm complexity and capable of quickly implementing fan control is needed, the above-mentioned static threshold algorithm can be used for calculation. The algorithm sets one or more temperature thresholds. When the temperature sensor reading reaches or exceeds these thresholds, the fan speed increases; when the temperature drops to another lower threshold, the fan speed decreases. Although the algorithm can also balance the thermal stability and performance of the server, the fan control brought about by the algorithm may cause the fan to frequently shift gears, thereby causing certain noise. Therefore, when the preset fan speed control algorithm can guarantee the thermal stability and performance of the server, the corresponding preset fan speed control algorithm can be set according to actual needs, and this embodiment does not make specific limitations on this.
[0082] S102: Acquire the operating status of the BMC.
[0083] When the CPLD obtains the fan speed control information from the BMC in real time, the CPLD also needs to obtain the BMC operating status in real time. In actual application scenarios, the BMC operating status is divided into normal status and abnormal status. When the BMC operating status is abnormal, the BMC may be in the restart or abnormal operation stage, and thus the cooling fan cannot be controlled by the preset fan speed control algorithm.
[0084] The acquisition of the BMC operation status needs to be determined by the timing reset signal periodically sent by the BMC to the CPLD. When the BMC operation status is normal, the CPLD needs to perform timing by a preset first time length and periodically obtain the timing reset signal output by the BMC to determine whether the BMC status at this time is normal.
[0085] Since the BMC periodically outputs a timing reset signal to the CPLD based on the preset first time length, when the CPLD does not receive the timing reset signal within the preset first time length, it indicates that the BMC cannot send the timing reset signal at this time, and at this time, it can be determined that the operating state of the BMC is an abnormal state. On the contrary, when the CPLD can normally receive the timing reset signal sent by the BMC within the preset first time length, it can be determined that the operating state of the BMC is a normal state.
[0086] Among them, the CPLD can perform timing through its internal watchdog circuit or watchdog program, and the timing reset signal sent by the BMC to the CPLD can be a dog feeding signal, and the dog feeding signal can reset the timing of the corresponding watchdog circuit or watchdog program. When the operation state of the BMC enters the normal state, the CPLD needs to receive the first enable signal sent by the BMC to start the watchdog circuit or watchdog program in the CPLD, so as to control the watchdog in the CPLD to perform timing based on the preset first time length, and determine the operation state of the BMC by whether the watchdog receives the timing reset signal within the preset first time length.
[0087] Taking the timing reset signal as a dog feeding signal as an example, after the BMC's operating state enters the normal state, the BMC needs to send a first enable signal to the CPLD, thereby enabling the watchdog circuit or watchdog program in the CPLD. After the watchdog is started, the watchdog in the CPLD performs timing based on the preset first duration. Since the BMC periodically sends a dog feeding signal to the CPLD during normal operation of the BMC. Therefore, when the watchdog in the CPLD receives the dog feeding signal from the BMC, it can reset the timing that has been implemented and start timing again based on the preset first duration. The watchdog in the CPLD needs to use the first preset duration as the dog feeding cycle to determine whether the dog feeding signal from the BMC is normally received within the specified dog feeding cycle. If the CPLD normally receives the dog feeding signal from the BMC within the preset dog feeding cycle, it is determined that the operating state of the BMC is normal. If the CPLD does not receive the dog feeding signal from the BMC within the preset dog feeding cycle, the BMC is in an abnormal state.
[0088] It should be noted that the execution order of S101 and S102 is not limited. S101 may be executed first and then S102, or S102 may be executed first and then S101, or S101 and S102 may be executed simultaneously.
[0089] S103: When the operation state of the BMC is abnormal, the cooling fan is controlled by using the current fan control speed stored in the fan control register.
[0090] When the CPLD does not receive a timing reset signal from the BMC within the preset first time period, it is determined that the operation state of the BMC is abnormal. In this case, since the CPLD will store the fan control speed sent by the BMC in the fan control register in real time during the operation stage of the BMC, when the CPLD determines that the operation state of the BMC is abnormal, the CPLD can control the speed of the cooling fan in the server through the current fan control speed stored in the fan control register, thereby temporarily balancing the cooling demand and performance demand of the server.
[0091] When the BMC is in an abnormal state, it means that the BMC cannot normally control the speed of the cooling fan in the server through the preset fan speed control algorithm. Since the fan control speed determined by the preset fan speed control algorithm can effectively guarantee the heat dissipation and energy consumption requirements of the server, when the CPLD controls the cooling fan through the fan control speed stored in the fan control register, it can temporarily have the speed control capability of the BMC for the cooling fan, thereby setting a reasonable fan speed to balance the thermal stability of the server and the performance of the server itself.
[0092] For example, in the process of CPLD controlling the speed of the cooling fan, a pulse width modulation signal can be used to transmit the set fan speed to the cooling fan, thereby realizing the control of the cooling fan. For example, when the fan control speed includes a speed value, the CPLD controls the cooling fan by using the current fan control speed stored in the fan control register, including obtaining the speed value of the current fan control speed in the fan control register, determining the pulse width modulation signal corresponding to the speed value, and controlling the cooling fan based on the pulse width modulation signal. For another example, when the fan control speed includes a PWM value, the CPLD controls the cooling fan by using the current fan control speed stored in the fan control register, including obtaining the PWM value of the current fan control speed in the fan control register, and controlling the cooling fan based on the PWM value. This embodiment does not specifically limit the control method of the cooling fan by the CPLD.
[0093] As mentioned in the above step S103, when it is determined that the operating state of the BMC is an abnormal state, the operating state of the BMC may be a restart state or an abnormal state. When the operating state of the BMC is a restart state, since the BMC can effectively restart after a certain period of time and take over the control of the cooling fan again. Therefore, during the period of BMC restart, since the restart time of the BMC is often short, even if the CPLD controls the cooling fan according to the previously stored fan control speed, it is difficult for each hardware device in the server to have a sudden increase in thermal balance demand, thereby causing the server to overheat.
[0094] On the contrary, if the BMC is in an abnormal state, it means that the BMC cannot be restarted within a certain period of time. In this case, if the CPLD still controls the cooling fan through the previously determined fan speed control, since the BMC cannot be restarted in time, the temperature of each hardware device in the server may gradually increase until it overheats, thereby endangering the safe operation of the server.
[0095] Therefore, in order to deal with this problem, when the BMC is in an abnormal state, when the CPLD controls the cooling fan through the pre-saved fan speed control, it is necessary to perform a secondary timing through the CPLD. If the BMC is still not started after a certain period of time, the speed of the cooling fan is adjusted to the maximum speed to ensure the safe operation of the server.
[0096] In a possible implementation, after step S103, the following two steps may be performed to ensure the operation security of the server, as shown below:
[0097] Step 1: determining whether the timing reset signal is received within a preset second time period;
[0098] After determining that the BMC's operating state is abnormal, in the process of the CPLD controlling the cooling fan through the fan control speed stored in the fan control register, it is necessary to start the next timing based on the preset second duration to determine whether the BMC can normally start to enter the normal state within the preset second duration. When the BMC's operating state enters the normal state, the BMC will normally output a timing reset signal periodically based on the preset first duration. After the CPLD receives the timing reset signal, it can be determined that the BMC's operating state is normal. The cooling control of the cooling fan can be completed by the BMC, and it is no longer necessary to control the cooling fan through the control speed stored in the fan control register, thereby preventing the cooling fan from dissipating heat at a fixed fan control speed for a long time, causing the server to overheat.
[0099] Specifically, when the CPLD performs secondary timing based on the preset second duration, the BMC sends a second enable signal to the CPLD, thereby enabling the second watchdog in the CPLD. The CPLD can determine whether a timing reset signal from the BMC is received within the preset second time by enabling the second watchdog and performing timing based on the preset second duration.
[0100] Step 2: When the timing reset signal is not received during the preset second time period, the fan control speed of the cooling fan is adjusted to the maximum speed of the cooling fan.
[0101] If the CPLD does not receive the timing reset signal from the BMC after the preset second time period, it is determined that the BMC still has not started normally. The reason why the BMC did not start normally may be an abnormality in the operation phase or a hang in the restart phase. Under this condition, it means that the operation state of the BMC has not returned to the normal state. At this time, the speed of the cooling fan is adjusted to its maximum speed to prevent the hardware equipment in the server from overheating, thereby ensuring the safe operation of the server.
[0102] Similarly, if the CPLD receives the dog feeding signal from the BMC within this fixed time, it indicates that the BMC has been restarted successfully. At this time, the cooling fan can be controlled again through the BMC to balance the cooling requirements and performance requirements of the server.
[0103] In other embodiments, when the CPLD obtains the fan control speed of the cooling fan in real time, it also receives the temperature data of each hardware device corresponding to the fan control speed, and records the mapping relationship between the temperature data of each hardware device and the fan control speed. Since the BMC sends the fan control speed and the temperature data of each hardware device corresponding to it to the CPLD in real time, the CPLD can record the mapping relationship between the temperature data of multiple hardware devices and the fan control speed as a mapping table. When the operating state of the BMC is abnormal, the CPLD controls the cooling fan by the current fan control speed stored in the fan control register. The current fan control speed is the latest fan control speed sent by the BMC. When the CPLD does not receive the timing reset signal in the preset second time period, it can obtain the temperature data of each current hardware device, and determine the temperature data of each target hardware device in the mapping table based on the temperature data of each current hardware device, wherein the temperature data of each target hardware device is equal to or slightly greater than the temperature data of each current hardware device. The cooling fan is controlled according to the fan control speed corresponding to the temperature data of each target hardware device.
[0104] The temperature data of each target hardware device is equal to or slightly greater than the temperature data of each current hardware device, which means that the temperature data of each target hardware device is equal to the temperature data of the corresponding current hardware device, or the temperature data of each target hardware device is partially equal to the temperature data of the corresponding current hardware device, and partially slightly greater than the temperature data of the corresponding current hardware device. Or the temperature data of each target hardware device is slightly greater than the temperature data of the corresponding current hardware device. The target hardware device in which the temperature data of the target hardware device is slightly greater than the temperature data of the current hardware device is the hardware device that is closest to the temperature data of the current hardware device among all the hardware devices whose temperature data is greater than the current hardware device.
[0105] It is understandable that since the CPLD did not receive the timing reset signal from the BMC after the preset second time period, it is determined that the BMC is still not started normally. Since the BMC has not been working for a long time at this time, the various hardware devices may increase or decrease due to changes in the running business during this period. The previous fan control speed does not match the heat dissipation demand. At this time, the CPLD can obtain the temperature data of each current hardware device, and query the fan control speed corresponding to the temperature data of each target hardware device that is equal to or slightly greater than the temperature data of each current hardware device from the mapping table. Controlling the cooling fan based on the fan control speed can meet the heat dissipation demand of the server. At the same time, compared with directly adjusting the cooling fan to the maximum, it can effectively avoid unnecessary energy waste, further improve the energy saving rate and achieve energy saving.
[0106] Next, the fan control method of the present application in practical application scenarios will be further introduced with reference to the accompanying drawings:
[0107] See also Figure 5 , which is a flow chart of a fan control method in an actual application scenario provided by an embodiment of the present application, Figure 5 In the flowchart of , the following steps are specifically included:
[0108] S401: BMC starts;
[0109] When the server is powered on, the BMC will start. In actual application scenarios, the BMC can perform self-checks and load management firmware corresponding to each hardware device in the server to ensure that the BMC can monitor the status of each hardware device in the server in real time and control its temperature.
[0110] S402: BMC starts the dog feeding process;
[0111] After the BMC is started, and the CPLD is ensured to operate normally, the BMC starts the dog feeding process, thereby periodically sending a dog feeding signal to the CPLD.
[0112] It can be understood that the CPLD includes watchdog 1, also known as the first watchdog. Before the BMC starts the dog feeding process, the BMC sends an enable signal to enable watchdog 1 to the CPLD, thereby controlling the start of watchdog 1 so that watchdog 1 can receive the dog feeding information sent by the BMC to monitor the status of the BMC.
[0113] In some embodiments, the CPLD further includes a watchdog 2, also called a second watchdog. After the BMC is started, a disable signal for disabling the watchdog 2 may be sent to the CPLD to shut down the watchdog 2.
[0114] It is understandable that watchdog 1 and watchdog 2 can be presented in the form of circuits or programs running on CPLD.
[0115] S403: The BMC determines the fan speed control based on a preset fan speed control algorithm.
[0116] After the BMC is started, the fan speed control algorithm built into the BMC and the actual temperature data of each hardware device in the server are used to determine the fan speed. The preset fan speed control algorithm can determine the set fan speed based on the thermal load of the hardware devices in the server and the preset operating temperature corresponding to the hardware devices. Among them, the thermal load of the hardware device can be determined by the temperature sensor corresponding to the hardware device in the server. The temperature monitoring value for the hardware device fed back by the temperature sensor is used to perform temperature trend analysis on the hardware device based on multiple monitoring values, so that the temperature change of the hardware device in the current time period can be accurately known. The thermal load of the hardware device can be further determined by combining the performance of the hardware device itself and the characteristics of the hardware materials.
[0117] Furthermore, the preset operating temperature of the hardware device can also be set based on the expected working performance of the hardware device and the hardware material characteristics of the hardware device itself.
[0118] S404: The BMC controls the cooling fan by adjusting the fan speed.
[0119] The speed of the cooling fan is controlled by the preset fan speed control algorithm, which can be based on the heat load of each hardware module in the server and the preset working temperature of the hardware module. It can manage the fan speed more accurately with the feedback of real-time temperature monitoring data, thereby avoiding unnecessary power consumption while ensuring that the temperature in the server is not overheated, and achieving a balance between the thermal stability and performance of the server.
[0120] S405: The CPLD receives the fan speed control signal and the first dog feeding signal from the BMC.
[0121] After the BMC is started, the CPLD will receive the fan speed control signal from the BMC in real time. The CPLD will also receive the first dog feeding signal from the BMC and start the first timing after receiving the first dog feeding signal.
[0122] S406: The CPLD resets the first timing in response to the first dog feeding signal.
[0123] During the first timing of CPLD, BMC will synchronously send the corresponding dog feeding signal to CPLD. Since watchdog 1 performs the first timing when CPLD receives the dog feeding signal, when CPLD receives the dog feeding signal from BMC again, the activated watchdog 1 inside it will reset the timing through the dog feeding signal from BMC. The successful reset of watchdog 1 within the preset first time length can indicate that the operation status of BMC is in a normal state.
[0124] S407: The CPLD determines whether the first timing has timed out to determine whether the running state of the BMC is abnormal.
[0125] When CPLD monitors the running status of BMC, CPLD will determine whether the first timing is greater than the expected first duration. Since BMC will feed the CPLD, when BMC is running normally, CPLD will reset the timing after receiving the feeding signal again. When the running status of BMC enters an abnormal state, since BMC cannot feed the CPLD in time, the first timing of CPLD will not be reset. When the first timing in CPLD exceeds the preset first duration, it means that the running status of BMC is abnormal at this time.
[0126] Under this monitoring mechanism, CPLD can accurately determine whether the operating status of the BMC is normal and respond to possible faults in the BMC in a timely manner. When an abnormal operation occurs in the BMC, CPLD will take over the BMC's control of the cooling fan to ensure the safety of the server.
[0127] Since the BMC will synchronously perform the dog feeding operation for the CPLD during the process of controlling the speed of the cooling fan, when the BMC enters the restart phase or abnormal state and cannot perform the corresponding dog feeding operation, the CPLD will time out because it does not receive the corresponding dog feeding operation in time. At this time, the CPLD can determine that the operation state of the BMC has entered an abnormal state, and control the speed of the cooling fan based on the previously received set fan speed.
[0128] S408: The CPLD controls the cooling fan by adjusting the fan speed.
[0129] When it is determined that the BMC is in an abnormal state, the CPLD controls the cooling fan through the fan speed control stored in its internal fan register, so as to balance the cooling demand and performance demand of the server within a certain period of time.
[0130] S409: Determine, through the CPLD, whether a dog feeding signal is received within a preset second time period.
[0131] Furthermore, in the process that the CPLD controls the fan based on the pre-stored fan control speed, the CPLD can synchronously send an enable signal to the internal watchdog 2 to control the watchdog 2 to perform timing based on the preset second duration. Thereby determining whether the dog feeding signal can be received within the preset second duration. It is understandable that when the BMC starts normally and enters the normal state, the BMC will normally calculate the fan control speed according to the preset fan speed control algorithm, and send the fan control speed and the dog feeding signal to the CPLD. Therefore, in the process that the CPLD controls the cooling fan by the fan control speed pre-stored in the fan control register, it is necessary to synchronously send an enable signal to the watchdog 2 to start it for timing, and use the watchdog 2 to determine whether the dog feeding signal is received within the preset second duration, thereby preventing the server from overheating.
[0132] Correspondingly, if the CPLD receives a dog feeding signal from the BMC within the preset second time period, it indicates that the BMC's operating state has returned to normal. At this time, the BMC will recalculate the fan control speed through the preset fan control algorithm and send it to the CPLD. The CPLD can control the cooling fan again based on the received fan control speed, without having to control the cooling fan based on the fan speed pre-stored in the fan control register.
[0133] S410: When the CPLD does not receive a dog feeding signal from the BMC within the preset second time period, the cooling fan is adjusted to a maximum speed.
[0134] If the watchdog 2 in the CPLD still does not receive the feeding signal from the BMC within the preset second time period, it means that the operation status of the BMC is still in an abnormal state. In order to ensure the safety of the server, the CPLD will increase the speed of the cooling fan to the maximum speed of the cooling fan itself to ensure the safety of the server, thereby preventing hardware damage caused by overheating inside the server.
[0135] It should be noted that, in this embodiment, the CPLD monitors the BMC operating status through the BMC feeding process and the first timing of the watchdog circuit 1 in the CPLD. When the first timing of the CPLD times out, it indicates that the watchdog has not been fed in time. At this time, the BMC is in a restart or abnormal stage, thereby completing the monitoring of the BMC operating status. In actual application scenarios, the CPLD can also monitor the BMC operating status through the CPLD's timing status query of the BMC, or the event-driven mechanism within the BMC. The monitoring method adopted in the above embodiment, through the timing count of the CPLD and the feeding process of the BMC, is only a feasible method. For the way in which the CPLD monitors the operating status of the BMC, this embodiment does not specifically limit the way in which the CPLD monitors the operating status of the BMC module.
[0136] The above are some specific implementations of the fan control method provided in the embodiment of the present application. Based on this, the present application also provides a corresponding server. The server provided in the embodiment of the present application will be introduced below in combination with the above fan control method.
[0137] The embodiments of the present application also provide corresponding devices and computer storage media for implementing the solutions provided by the embodiments of the present application.
[0138] The device includes a memory and a processor, the memory is used to store instructions or codes, and the processor is used to execute the instructions or codes so that the device executes the data transmission method described in any embodiment of the present application.
[0139] The computer storage medium stores codes, and when the codes are executed, the device executing the codes implements the data transmission method described in any embodiment of the present application.
[0140] The "first" and "second" in the names such as "first" and "second" (if any) mentioned in the embodiments of the present application are only used as name identifiers and do not represent the first or second in order.
[0141] Through the description of the above implementation methods, it can be known that those skilled in the art can clearly understand that all or part of the steps in the above-mentioned embodiment method can be implemented by means of software plus a general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a storage medium, such as a read-only memory (ROM) / RAM, a magnetic disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network communication device such as a router) to execute the methods described in each embodiment of the present application or some parts of the embodiments.
[0142] Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.
[0143] The above description is merely an exemplary embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. A fan control method, It is characterized in that The method comprises: The fan control speed of the cooling fan is obtained in real time; the fan control speed is determined by the baseboard management controller BMC through a preset fan speed control algorithm; the fan control speed is stored in a fan control register; Obtaining the operating status of the BMC; When the running state of the BMC is abnormal, the cooling fan is controlled by the current fan control speed stored in the fan control register.
2. The method according to claim 1, It is characterized in that The obtaining the running status of the BMC includes: When a timing reset signal is received within a preset first time period, determining that the operating state of the BMC is the normal state; the timing reset signal is a signal periodically output by the BMC operating in the normal state based on the preset first time period; When the timing reset signal is not received within the preset first time period, it is determined that the operating state of the BMC is the abnormal state.
3. The method according to claim 2, It is characterized in that The method further comprises: receiving a first enable signal from the BMC; the first enable signal is a signal output when the running state of the BMC enters the normal state; the first enable signal is used to enable the first watchdog; When the timing reset signal is not received within the preset first time period, determining that the operation state of the BMC is the abnormal state includes: Performing timing based on the preset first duration by the first watchdog to determine whether the timing reset signal is received within the preset first duration; When the timing reset signal is not received within the preset first time period, it is determined that the operating state of the BMC is the abnormal state.
4. The method according to claim 2 or 3, It is characterized in that When the running state of the BMC is an abnormal state, after the cooling fan is controlled by adjusting the fan speed stored in the fan control register, the method further includes: Determining whether the timing reset signal is received within a preset second time period; When the timing reset signal is not received during the preset second time period, the fan control speed of the cooling fan is adjusted to the maximum speed of the cooling fan.
5. The method according to claim 4, It is characterized in that The determining whether the timing reset signal is received within a preset second time period includes: receiving a second enable signal from the BMC; the second enable signal is a signal output when the running state of the BMC enters the abnormal state; the second enable signal is used to enable the second watchdog; The second watchdog performs timing based on the preset second time period to determine whether the timing reset signal is received within the preset second time period.
6. The method according to claim 1, It is characterized in that The method further comprises: When the operating state of the BMC is normal, the cooling fan is controlled by the fan regulating speed output by the BMC in real time.
7. The method according to claim 1, It is characterized in that The preset fan speed control algorithm includes: at least one of a PID control algorithm, an artificial intelligence algorithm and a static threshold algorithm.
8. A server, It is characterized in that The server includes a BMC, a programmable device and a cooling fan; the BMC is connected to the programmable device; the programmable device is connected to the cooling fan; the programmable device includes: a fan control register; The programmable device is used to obtain the fan control speed of the cooling fan in real time; the fan control speed is determined by the BMC through a preset fan speed control algorithm; the fan control speed is stored in a fan control register; When the running state of the BMC is abnormal, the cooling fan is controlled by the current fan control speed stored in the fan control register.
9. The server according to claim 8, It is characterized in that The BMC is used to: Determine the fan speed control of the cooling fan according to a preset fan speed control algorithm, and send the fan speed control to the programmable device; When the running state is a normal state, a timing reset signal is periodically sent to the programmable device based on a preset first time length.
10. The server according to claim 8, It is characterized in that The BMC is also used to: When the running state enters an abnormal state, a second enable signal is sent to the programmable device; the second enable signal is used to enable a second watchdog in the programmable device.
Citation Information
Patent Citations
Fan controlling system and method therefor
CN102734192A
Fan control method and relative device
CN109826822A
Disaster recovery device and method for rack server
CN109857614A
Fan rotating speed control device and method
CN109882440A
Server fan rotating speed control method and related device
CN110399024A
Cited By
Control method and device of heat dissipation equipment
CN120447701A
