Central processing unit frequency adjustment method and device, equipment and medium

Dynamically adjusting the frequency of the server CPU through the substrate management controller, solving the downtime and operation complexity of CPU frequency adjustment in the prior art, achieving efficient and secure server operation and maintenance, and improving operation efficiency and stability.

CN119271031APending Publication Date: 2025-01-07INSPUR (SHANDONG) COMPUTER TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411365278.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

The prior art cannot efficiently and securely adjust the operating frequency of the server CPU, resulting in increased downtime, operational complexity and risks, and is especially not suitable for long-distance computer room scenarios.

Method used

The CPU's running data is dynamically read through the substrate management controller (BMC), calculate the target operating frequency based on the current utilization rate and power consumption value, and adjust the power supply voltage according to the corresponding relationship between the power supply voltage and the frequency, and control the CPU to run at the target frequency. Monitor temperature and frequency and adjust in real time to ensure optimal performance and power consumption status.

Benefits of technology

Dynamic CPU frequency adjustment is realized, the overall operation efficiency and stability of the server is improved, downtime is reduced, operation complexity and risks are reduced, and it is suitable for efficient and convenient operation and maintenance needs of long-distance computer rooms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119271031A_ABST
    Figure CN119271031A_ABST
Patent Text Reader

Abstract

The invention discloses a central processing unit frequency adjustment method and device, a server and a medium, and relates to the technical field of servers. According to the scheme, a dynamic central processing unit frequency adjusting mechanism is provided, specifically, the target operation frequency of the target central processing unit is determined according to the read operation data of the target central processing unit, and the frequency of the target central processing unit is adjusted according to the target operation frequency and the corresponding relation between the power supply voltage and the operation frequency of the target central processing unit. Determining a target power supply voltage of the target central processing unit; and finally, controlling the target central processing unit to operate at the target power supply voltage so as to control the target central processing unit to operate at the target operation frequency. The target operation frequency not only considers the current working load of the server central processing unit, but also considers the overall performance and power consumption requirements of the system, and can ensure that the server can keep the optimal performance and power consumption state under different working loads, thereby improving the overall operation efficiency and stability of the server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of servers, and in particular to a method, device, server and medium for adjusting the frequency of a central processing unit. Background Art

[0002] Overclocking and downclocking of the server's central processing unit (CPU) are two common methods of hardware optimization and energy saving. Overclocking refers to increasing the CPU's operating speed to a higher speed than its default or nominal speed, thereby improving the overall performance of the server, processing tasks faster, and increasing the computing rate; downclocking refers to reducing the CPU's operating speed to a lower speed than its default or nominal speed, thereby helping to extend the life of the hardware and reduce power consumption and heat. Currently, CPU overclocking or downclocking is mainly achieved by setting the Basic Input / Output System (BIOS) startup items and using hardware jumpers.

[0003] However, both the method of modifying the CPU frequency by setting the BIOS startup item and the method of hardware jumper have problems in actual application. First, setting the BIOS startup item requires the server to be shut down and restarted to take effect, which will increase downtime and interrupt the running business, and have a serious impact on the normal use of the server. Secondly, although the hardware jumper method is technically feasible, in actual operation, it is necessary to manually open the server chassis and modify the jumper, which increases the complexity and risk of the operation. For scenarios where the computer room is far away, the operability of this method is greatly reduced. Not only does it take more time and manpower, but it may also cause hardware damage due to misoperation. It is not suitable for the pursuit of efficient and convenient server operation and maintenance.

[0004] In view of the above problems, how to solve the current problem of being unable to efficiently and safely adjust the operating frequency of the server CPU is an urgent problem to be solved by technical personnel in this field. Summary of the invention

[0005] The purpose of the present invention is to provide a central processing unit frequency adjustment method, device, server and medium to solve the current problem that the operating frequency of the server CPU cannot be adjusted efficiently and safely.

[0006] In order to solve the above technical problems, the present invention provides a method for adjusting the frequency of a central processing unit, which is applied to a baseboard management controller; the method comprises:

[0007] Reading the operation data of the target central processing unit according to a preset cycle; wherein the operation data at least includes the current utilization rate and the current power consumption value of the target central processing unit;

[0008] Determining a target operating frequency of the target central processing unit according to the operating data;

[0009] Determine the target power supply voltage of the target CPU according to the target operating frequency and the corresponding relationship between the power supply voltage and the operating frequency of the target CPU; wherein the power supply voltage and the operating frequency of the target CPU are positively correlated;

[0010] The target CPU is controlled to operate at the target power supply voltage, so as to control the target CPU to operate at the target operating frequency.

[0011] On the one hand, the step of reading the operation data of the target central processing unit according to a preset period includes:

[0012] When the server starts, the calculation optimization frequency process is run;

[0013] Based on the calculation optimization frequency process, reading the current utilization rate and the current power consumption value of the target central processing unit according to the preset period;

[0014] Correspondingly, determining the target operating frequency of the target central processing unit according to the operating data includes:

[0015] Acquiring the rated power consumption value of the target central processing unit through the calculation optimization frequency process;

[0016] Based on the calculation optimization frequency process, the target operating frequency of the target CPU is determined according to the current utilization rate, current power consumption value, rated power consumption value and target operating frequency calculation formula of the target CPU;

[0017] receiving an instruction for storing the target operating frequency, and storing the target operating frequency in a memory of a server according to the instruction;

[0018] The target operating frequency calculation formula is as follows:

[0019] ;

[0020] in, is the target operating frequency of the target CPU, is the current utilization rate of the target CPU; is the current power consumption value of the target central processing unit; is the rated power consumption value of the target CPU.

[0021] On the other hand, determining the target power supply voltage of the target central processing unit according to the target operating frequency and the corresponding relationship between the power supply voltage and the operating frequency of the target central processing unit includes:

[0022] When the server starts, the voltage regulation module is run to control the process;

[0023] The voltage regulation module controls the process to obtain the rated supply voltage and rated operating frequency of the target central processing unit;

[0024] Based on the control process of the voltage regulation module and the corresponding relationship between the power supply voltage and the operating frequency of the target central processing unit, the target power supply voltage of the target central processing unit is determined according to the rated power supply voltage, the rated operating frequency and the target operating frequency of the target central processing unit.

[0025] On the other hand, controlling the target central processor to operate at the target power supply voltage includes:

[0026] Based on the voltage regulation module control process, the voltage regulation module chip is controlled through the integrated circuit bus link to output the target power supply voltage to the target central processing unit, so as to control the target central processing unit to operate at the target power supply voltage and the target operating frequency.

[0027] On the other hand, after controlling the target central processor to operate at the target power supply voltage, the method further includes:

[0028] monitoring the operating temperature of the target central processing unit;

[0029] Determining whether the operating temperature of the target CPU is greater than a temperature threshold;

[0030] If so, controlling the voltage regulating module chip to reduce the power supply voltage output to the target central processing unit through the integrated circuit bus link;

[0031] Outputting warning information indicating that the temperature of the target central processing unit exceeds a limit.

[0032] On the other hand, it also includes:

[0033] Monitoring the operating frequency of the target CPU;

[0034] Determining whether the operating frequency of the target central processing unit is greater than a first frequency threshold;

[0035] If the operating frequency of the target CPU is greater than the first frequency threshold, controlling to reduce the power supply voltage output to the target CPU;

[0036] If the operating frequency of the target CPU is not greater than the first frequency threshold, determining whether the operating frequency of the target CPU is less than a second frequency threshold;

[0037] If the operating frequency of the target CPU is not less than the second frequency threshold, returning to the step of monitoring the operating frequency of the target CPU;

[0038] If the operating frequency of the target central processing unit is less than the second frequency threshold, increasing the number of concurrent requests processed by the server or running computing-intensive tasks to increase the system load of the server;

[0039] The first frequency threshold is greater than the second frequency threshold.

[0040] On the other hand, it also includes:

[0041] Acquiring the operating frequency of the target central processing unit in real time through an intelligent platform management interface protocol;

[0042] Generate an operating frequency change log of the target central processing unit according to the operating frequency of the target central processing unit acquired in real time.

[0043] In order to solve the above technical problems, the present invention also provides a central processing unit frequency adjustment device, which is applied to a baseboard management controller; the device comprises:

[0044] A reading module, used for reading the operation data of the target central processing unit according to a preset period; wherein the operation data at least includes the current utilization rate and the current power consumption value of the target central processing unit;

[0045] A first determining module, configured to determine a target operating frequency of the target central processing unit according to the operating data;

[0046] A second determination module is used to determine the target power supply voltage of the target central processor according to the target operating frequency and the corresponding relationship between the power supply voltage and the operating frequency of the target central processor; wherein the power supply voltage and the operating frequency of the target central processor are positively correlated;

[0047] The control module is used to control the target central processing unit to operate at the target power supply voltage, so as to control the target central processing unit to operate at the target operating frequency.

[0048] In order to solve the above technical problems, the present invention further provides a central processing unit frequency adjustment device, comprising:

[0049] Memory for storing computer programs;

[0050] The processor is used to implement the steps of the above-mentioned central processing unit frequency adjustment method when executing the computer program.

[0051] In order to solve the above technical problem, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned central processing unit frequency adjustment method are implemented.

[0052] The CPU frequency adjustment method provided by the present invention is applied to a baseboard management controller; specifically, the operation data of the target CPU is read according to a preset cycle; wherein the operation data at least includes the current utilization rate and the current power consumption value of the target CPU; the target operation frequency of the target CPU is determined according to the operation data; the target power supply voltage of the target CPU is determined according to the target operation frequency and the corresponding relationship between the power supply voltage and the operation frequency of the target CPU; wherein the power supply voltage of the target CPU is positively correlated with the operation frequency; the target CPU is controlled to operate at the target power supply voltage to control the target CPU to operate at the target operation frequency. The beneficial effect of the present invention is that a dynamic CPU frequency adjustment mechanism is provided, which specifically determines the target operation frequency of the target CPU according to the operation data of the read target CPU, and determines the target power supply voltage of the target CPU according to the corresponding relationship between the target operation frequency and the power supply voltage and the operation frequency of the target CPU; finally, the target CPU is controlled to operate at the target power supply voltage to control the target CPU to operate at the target operation frequency. This target operating frequency not only takes into account the current workload of the server's central processor, but also takes into account the overall performance and power consumption requirements of the system. It can ensure that the server can maintain optimal performance and power consumption under different workloads, thereby improving the overall operating efficiency and stability of the server.

[0053] On the other hand, the present invention specifically runs the calculation optimization frequency process when the server is started; based on the calculation optimization frequency process, the current utilization and current power consumption value of the target central processor are read according to the preset cycle, thereby realizing the reading of the target CPU operation data. The rated power consumption value of the target central processor is obtained by the calculation optimization frequency process; based on the calculation optimization frequency process, the target operating frequency of the target central processor is determined according to the current utilization, current power consumption value, rated power consumption value and target operating frequency calculation formula of the target central processor; an instruction representing the storage of the target operating frequency is received, and the target operating frequency is stored in the memory of the server according to the instruction, thereby realizing the determination of the target operating frequency of the target CPU. When the server is started, the voltage regulation module control process is run; the rated supply voltage and rated operating frequency of the target central processor are obtained through the voltage regulation module control process; based on the voltage regulation module control process and the corresponding relationship between the supply voltage and operating frequency of the target central processor, the target supply voltage of the target central processor is determined according to the rated supply voltage, rated operating frequency and target operating frequency of the target central processor, thereby realizing the determination of the target supply voltage. Based on the voltage regulation module control process, the voltage regulation module chip is controlled through the integrated circuit bus link to output the target power supply voltage to the target central processing unit, thereby controlling the target central processing unit to operate at the target power supply voltage and target operating frequency.

[0054] In addition, the present invention also provides a central processing unit frequency adjustment device, a server and a medium, the effects of which are the same as above. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0056] Figure 1 A flowchart of a method for adjusting the frequency of a central processing unit provided by an embodiment of the present invention;

[0057] Figure 2 A schematic diagram of a central processing unit frequency adjustment device provided by an embodiment of the present invention;

[0058] Figure 3 A schematic diagram of a central processing unit frequency adjustment device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0059] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0060] The core of the present invention is to provide a central processing unit frequency adjustment method, device, server and medium to solve the current problem that the operating frequency of the server CPU cannot be adjusted efficiently and safely.

[0061] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0062] At present, both the solution of modifying the CPU frequency by setting BIOS startup items and the method of hardware jumpers have problems in practical applications. First, setting BIOS startup items usually requires the server to be shut down and restarted to take effect, which will increase downtime and interrupt the running business, affecting the normal use of the server. In addition, although the method of using hardware jumpers is technically feasible, in actual operation, the server chassis needs to be manually opened and modified, which increases the complexity and risk of operation. For scenarios far away from the computer room, the operability of this method is greatly reduced, it takes more time and manpower, and may also cause hardware damage due to misoperation. Therefore, this method is not suitable for the pursuit of efficient and convenient server operation and maintenance.

[0063] To solve the above problems, the present invention provides a method for adjusting the frequency of a central processing unit. It should be noted that the method is applied to a baseboard management controller (BMC). BMC is a controller specifically used for monitoring and management in a server, and its main functions include device information management, server status monitoring management, remote control management, and maintenance management. It records detailed information of the server, detects the health status of key components in real time, adjusts fan speed and power consumption, and reports abnormal conditions through industry-wide specifications. In addition, BMC also allows administrators to perform various operations remotely, and provides functions such as log management, user management, BIOS management, and alarm management to ensure stable operation and efficient management of the server.

[0064] Figure 1 A flow chart of a method for adjusting the frequency of a central processing unit provided by an embodiment of the present invention. Figure 1 As shown, the method includes:

[0065] S10: Reading the operation data of the target CPU according to a preset cycle.

[0066] The operation data at least includes the current utilization rate and the current power consumption value of the target central processing unit.

[0067] In a specific implementation, the operation data of the target CPU is first read according to a preset period. In this embodiment, there is no limitation on the preset period, for example, the preset period can be set to 10s or 20s, depending on the specific implementation situation.

[0068] It is understandable that, as a core component of the server, BMC has powerful functions, including real-time monitoring and adjustment of the target CPU operation data. In this embodiment, the operation data at least includes the current utilization and current power consumption value of the target CPU, and may also include data such as the operating temperature and operating frequency of the target CPU, which is not limited in this embodiment. It should be noted that during the operation of the server, the load and power consumption of the target CPU directly affect its performance and energy efficiency, so it is crucial to accurately control these two parameters. BMC can dynamically read the current utilization of the target CPU and express it in the form of a percentage, thereby displaying the load of the target CPU. When the server is idle or the task is light, the target CPU load is low, and the current utilization of the target CPU is also low; when the server faces a large number of computing tasks or high loads, the target CPU load increases, and the current utilization of the target CPU also increases. Usually, in order to maintain stable operation and good performance of the server, the current utilization of the target CPU is controlled at around 70%. However, in extreme cases, when the target CPU load reaches the limit, the current utilization of the target CPU will soar to 100%. In addition, the BMC can also read the current power consumption value of the target CPU in real time, which is one of the important indicators for measuring the energy efficiency ratio of the target CPU and is directly related to the operating cost and heat dissipation issues of the server.

[0069] In this embodiment, there is no limitation on the specific method of reading the operation data of the target CPU, which depends on the specific implementation situation.

[0070] S11: Determine a target operating frequency of a target central processing unit according to the operating data.

[0071] Furthermore, in the operation data of the target CPU read by the BMC, the current utilization rate can show the load of the target CPU, and the current power consumption value can measure the energy efficiency ratio of the target CPU and is directly related to the operation cost and heat dissipation problem of the server. Therefore, in order to obtain the best target operating frequency of the current target CPU, it is necessary to determine the target operating frequency of the target CPU according to the operation data. In this embodiment, there is no restriction on the method for determining the target operating frequency of the target CPU, which depends on the specific implementation situation.

[0072] S12: Determine a target power supply voltage of the target central processing unit according to the target operating frequency and the corresponding relationship between the power supply voltage and the operating frequency of the target central processing unit.

[0073] Among them, the power supply voltage of the target CPU is positively correlated with the operating frequency.

[0074] It is understandable that there is a direct connection between the operating frequency and the power supply voltage of the target CPU, and the level of the power supply voltage will directly affect the frequency of the target CPU. Specifically, when the power supply voltage increases, the frequency of the target CPU will usually increase accordingly; and when the power supply voltage decreases, the frequency of the target CPU will also decrease accordingly; that is, the power supply voltage of the target CPU is positively correlated with the operating frequency. This relationship makes it possible to control the frequency of the target CPU by adjusting the output voltage to the target CPU. Therefore, in order to adapt to different working scenarios, in this embodiment, the BMC determines the target supply voltage of the target CPU based on the obtained target operating frequency and the corresponding relationship between the power supply voltage and the operating frequency of the target CPU. In this embodiment, the specific process of determining the target supply voltage of the target CPU is not limited, and it depends on the specific implementation situation.

[0075] S13: Control the target central processing unit to operate at a target power supply voltage, so as to control the target central processing unit to operate at a target operating frequency.

[0076] Finally, after obtaining the target power supply voltage of the target CPU, the BMC controls the target CPU to operate at the target power supply voltage to control the target CPU to operate at the target operating frequency, thereby meeting the real-time workload and performance requirements of the server. In this embodiment, the specific method of controlling the target CPU to operate at the target power supply voltage is not limited.

[0077] In this embodiment, a dynamic CPU frequency adjustment mechanism is provided, which specifically determines the target operating frequency of the target CPU according to the operating data of the read target CPU, and determines the target power supply voltage of the target CPU according to the corresponding relationship between the target operating frequency and the power supply voltage and operating frequency of the target CPU; finally, the target CPU is controlled to operate at the target power supply voltage to control the target CPU to operate at the target operating frequency. The target operating frequency not only takes into account the current workload of the server CPU, but also takes into account the overall performance and power consumption requirements of the system, which can ensure that the server can maintain the best performance and power consumption state under different workloads, thereby improving the overall operation efficiency and stability of the server.

[0078] Based on the above embodiments, in some embodiments, reading the operation data of the target central processing unit according to a preset period includes:

[0079] S101: When the server is started, a calculation optimization frequency process is run;

[0080] S102: Based on the calculation optimization frequency process, the current utilization rate and the current power consumption value of the target central processing unit are read according to a preset period.

[0081] In order to achieve precise control of the target CPU operating frequency, the BMC in this embodiment adds a calculation optimization frequency process CalOptFreq. When the server starts, the calculation optimization frequency process CalOptFreq is automatically run, and the current utilization and current power consumption value of the target CPU are read every preset period. In this way, the target CPU operating data is read.

[0082] On this basis, the target operating frequency of the target CPU is determined according to the operating data, including:

[0083] S111: obtaining a rated power consumption value of a target central processing unit by calculating an optimized frequency process;

[0084] S112: Based on the calculation optimization frequency process, determine the target operating frequency of the target central processor according to the current utilization rate, current power consumption value, rated power consumption value and target operating frequency calculation formula of the target central processor;

[0085] S113: receiving an instruction for storing a target operating frequency, and storing the target operating frequency in a memory of the server according to the instruction.

[0086] It is understandable that each model of CPU has a rated power consumption value, which represents the power consumption level of the CPU under standard working conditions. Therefore, in order to accurately obtain the current power consumption status of the target CPU, it is necessary to read the current power consumption value of the target CPU in real time and compare it with the rated power consumption value of the target CPU, so that the BMC can accurately determine the current power consumption status of the CPU and make corresponding adjustments.

[0087] Specifically, the rated power consumption value of the target CPU is obtained by calculating the optimized frequency process CalOptFreq, and further based on the calculated optimized frequency process CalOptFreq, the target operating frequency of the target CPU is determined according to the current utilization rate, current power consumption value, rated power consumption value and target operating frequency calculation formula of the target CPU. The target operating frequency calculation formula is as follows:

[0088] ;

[0089] in, is the target operating frequency of the target CPU, is the current utilization of the target CPU; is the current power consumption value of the target CPU; is the rated power consumption of the target CPU.

[0090] Finally, an instruction representing the storage of the target operating frequency is received, and the target operating frequency is stored in the memory of the server according to the instruction, so as to facilitate the subsequent use of the target operating frequency data.

[0091] In this way, the target operating frequency data of the target CPU is determined. Through the method provided by this embodiment, the server can dynamically obtain the operating frequency that needs to be adjusted for the target CPU according to the actual load and power consumption, which not only realizes the accurate management and optimization of the server performance, but also greatly improves the energy efficiency ratio of the server while ensuring the performance.

[0092] Based on the above embodiments, in some embodiments, determining the target power supply voltage of the target CPU according to the target operating frequency and the corresponding relationship between the power supply voltage and the operating frequency of the target CPU includes:

[0093] S121: When the server starts, the voltage regulation module is run to control the process;

[0094] S122: obtaining a rated supply voltage and a rated operating frequency of a target central processing unit through a voltage regulation module control process;

[0095] S123: Based on the voltage regulation module control process and the corresponding relationship between the power supply voltage and the operating frequency of the target CPU, the target power supply voltage of the target CPU is determined according to the rated power supply voltage, the rated operating frequency and the target operating frequency of the target CPU.

[0096] In order to achieve precise control of the target CPU operating frequency, BMC also adds a voltage regulation module control process ControlVR. When the server starts, the voltage regulation module control process ControlVR automatically runs and obtains the rated supply voltage and rated operating frequency of the target CPU through the voltage regulation module control process ControlVR.

[0097] It is understandable that the rated supply voltage of the target CPU is a fixed value, which is set according to the specifications and performance requirements of the target CPU and has been determined in the hardware design stage. When the target CPU runs at the rated supply voltage, the operating frequency of the target CPU will also be close to its rated operating frequency, thereby ensuring that the performance of the target CPU is fully utilized.

[0098] Further, based on the correspondence between the voltage regulation module control process ControlVR and the supply voltage and operating frequency of the target CPU, the target supply voltage of the target CPU is determined according to the rated supply voltage, rated operating frequency and target operating frequency of the target CPU. It can be understood that from the above embodiment, the supply voltage and operating frequency of the target CPU are positively correlated, so there is the following correspondence:

[0099] ;

[0100] Thus, the target power supply voltage that the target CPU needs to meet when operating at the target operating frequency can be obtained through the above corresponding relationship, so that the target CPU can be operated at the target operating frequency by adjusting the target CPU to operate at the target power supply voltage.

[0101] Based on the above embodiments, in some embodiments, controlling the target central processor to operate at the target power supply voltage includes:

[0102] S131: Based on the voltage regulation module control process, the voltage regulation module chip is controlled to output the target power supply voltage to the target central processing unit through the integrated circuit bus link to control the target central processing unit to operate at the target power supply voltage and the target operating frequency.

[0103] It is worth noting that the Voltage Regulator Module (VR) chip, as the core component of server voltage regulation, plays a key role in the stable operation of the server by providing a stable and reliable power supply voltage for the CPU. As the core management component of the server, the BMC can accurately control the output voltage of the VR chip through specific interfaces and protocols, thereby achieving flexible adjustment of the CPU power supply voltage. In addition, the rated voltage of the VR chip output is a fixed value, which is set according to the CPU specifications and performance requirements. It is the rated power supply voltage when the CPU is operating normally. When the BMC controls the VR chip output voltage to be close to the rated voltage, the CPU frequency will also be close to its rated frequency, thereby ensuring that the CPU performance is fully utilized.

[0104] Therefore, in order to control the target CPU to run at the target power supply voltage, the voltage regulation module control process ControlVR is specifically based on the integrated circuit bus (Inter-Integrated Circuit, I2C) link to control the VR chip to output the target power supply voltage to the target CPU, thereby achieving the control of the target CPU to run at the target power supply voltage and target operating frequency.

[0105] Based on the above embodiments, in some embodiments, after controlling the target central processor to operate at the target power supply voltage, the method further includes:

[0106] S14: monitor the operating temperature of the target CPU;

[0107] S15: Determine whether the operating temperature of the target CPU is greater than a temperature threshold; if so, proceed to step S16;

[0108] S16: controlling the voltage regulating module chip through the integrated circuit bus link to reduce the power supply voltage output to the target central processor;

[0109] S17: Outputting alarm information indicating that the temperature of the target central processing unit exceeds the limit.

[0110] In a specific implementation, after controlling the target CPU to operate under the target power supply voltage, in order to avoid the target CPU performance degradation caused by abnormal temperature of the target CPU, the operating temperature of the target CPU is further monitored. It is determined whether the operating temperature of the target CPU is greater than the temperature threshold. In this embodiment, there is no restriction on the temperature threshold, which depends on the specific implementation situation.

[0111] If the operating temperature of the target CPU is not greater than the temperature threshold, the operating temperature of the target CPU continues to be monitored. If the operating temperature of the target CPU is greater than the temperature threshold, it is confirmed that the operating temperature of the target CPU exceeds the limit. In order to avoid affecting the performance and hardware of the target CPU, the VR chip is specifically controlled through the I2C link to reduce the power supply voltage output to the target CPU, thereby reducing the operating frequency of the target CPU and achieving the target CPU cooling treatment. At the same time, an alarm message indicating that the target CPU temperature exceeds the limit is output, so that the user can adjust the current target CPU task processing process according to the alarm information, or enhance the heat dissipation capacity of the target CPU to ensure the normal operation of the target CPU.

[0112] In addition, to avoid untimely cooling of the target CPU by adjusting the target CPU operating frequency, when the target CPU temperature is too high, the cooling effect can also be improved by adjusting the fan speed. First, enter the server BIOS setup interface and find the options related to fan control in the BIOS. Select the appropriate fan mode according to the current temperature and cooling requirements of the target CPU, and adjust the speed of a single fan by setting the minimum and maximum speed limits in the selected fan mode, so as to control the cooling fan of the target CPU and achieve timely cooling of the target CPU.

[0113] In addition, you can also use thermal management software to adjust the fan speed of the target CPU, such as CPU-Z, HWMonitor, or SpeedFan. After the software is running, find the fan control option; according to the temperature and cooling requirements of the target CPU, adjust the speed of a single fan by setting the minimum and maximum speed limits. In this way, the cooling fan of the target CPU is controlled and the target CPU is cooled in time.

[0114] Based on the above embodiments, in some embodiments, the method further includes:

[0115] S18: monitor the operating frequency of the target CPU;

[0116] S19: Determine whether the operating frequency of the target CPU is greater than a first frequency threshold; if the operating frequency of the target CPU is greater than the first frequency threshold, proceed to step S20; if the operating frequency of the target CPU is not greater than the first frequency threshold, proceed to step S21;

[0117] S20: controlling to reduce the power supply voltage output to the target central processing unit;

[0118] S21: Determine whether the operating frequency of the target CPU is less than the second frequency threshold; if the operating frequency of the target CPU is not less than the second frequency threshold, return to step S18; if the operating frequency of the target CPU is less than the second frequency threshold, enter step S22;

[0119] S22: Increase the number of concurrent requests that the server handles or runs computationally intensive tasks to increase the system load on the server.

[0120] The first frequency threshold is greater than the second frequency threshold.

[0121] In a specific implementation, in order to improve the working efficiency of the target CPU, the operating frequency of the target CPU may be further monitored to determine whether the operating frequency of the target CPU is greater than a first frequency threshold. In this embodiment, the first frequency threshold is not limited and is determined according to specific implementation conditions.

[0122] If the operating frequency of the target CPU is greater than the first frequency threshold, it is considered that the current operating frequency of the target CPU is too high. Continuing to operate at the current frequency will not only increase the power consumption of the server, but also damage the hardware of the target CPU. Therefore, in order to avoid the above problems, the power supply voltage output to the target CPU is controlled to be reduced, which can be achieved by reducing the output voltage of the VR chip to the target CPU, thereby reducing the operating frequency of the target CPU.

[0123] If the operating frequency of the target CPU is not greater than the first frequency threshold, then determine whether the operating frequency of the target CPU is less than the second frequency threshold. It should be noted that in this embodiment, there is no restriction on the size of the second frequency threshold, but it is necessary to satisfy that the first frequency threshold is greater than the second frequency threshold, depending on the specific implementation situation. If the operating frequency of the target CPU is not less than the second frequency threshold, it is considered that the current operating frequency of the target CPU is within the allowed range, and return to continue monitoring the operating frequency of the target CPU. If the operating frequency of the target CPU is less than the second frequency threshold, it is considered that the current operating frequency of the target CPU is too low, and the current utilization of the target CPU computing resources is not sufficient. In order to improve the efficiency of the use of the target CPU, specifically increase the number of concurrent requests processed by the server or run computing-intensive tasks to increase the system load of the server, thereby increasing the operating frequency of the target CPU.

[0124] In this way, it is ensured that the target CPU runs at a suitable operating frequency.

[0125] Based on the above embodiments, in some embodiments, the method further includes:

[0126] S23: obtaining the operating frequency of the target central processor in real time through the intelligent platform management interface protocol;

[0127] S24: Generate a target CPU operating frequency change log according to the target CPU operating frequency acquired in real time.

[0128] In order to enable users to better understand the changes in the operating frequency of the target CPU, in a specific implementation, the operating frequency of the target CPU can be obtained in real time through the Intelligent Platform Management Interface (IPMI) protocol; further, a target CPU operating frequency change log is generated based on the real-time acquired target CPU operating frequency, so that users can learn about the changes in the operating frequency of the target CPU over a period of time based on the operating frequency change log, and adjust the next server computing task.

[0129] In the above embodiments, the CPU frequency adjustment is described in detail. The present invention also provides a corresponding embodiment of a CPU frequency adjustment device.

[0130] Figure 2 A schematic diagram of a CPU frequency adjustment device provided by an embodiment of the present invention. The device is applied to a baseboard management controller; Figure 2 As shown, the device comprises:

[0131] The reading module 10 is used to read the operation data of the target CPU according to a preset period; wherein the operation data at least includes the current utilization rate and the current power consumption value of the target CPU;

[0132] A first determination module 11 is used to determine a target operating frequency of a target CPU according to the operating data;

[0133] A second determination module 12 is used to determine the target power supply voltage of the target CPU according to the target operating frequency and the corresponding relationship between the power supply voltage and the operating frequency of the target CPU; wherein the power supply voltage of the target CPU is positively correlated with the operating frequency;

[0134] The control module 13 is used to control the target central processing unit to operate at a target power supply voltage, so as to control the target central processing unit to operate at a target operating frequency.

[0135] In some embodiments, the reading module 10 includes:

[0136] The first running submodule is used to run the calculation optimization frequency process when the server is started;

[0137] A first reading submodule is used to read the current utilization rate and current power consumption value of the target central processing unit according to a preset period based on the calculation optimization frequency process;

[0138] Correspondingly, the first determining module 11 includes:

[0139] A first acquisition submodule is used to acquire the rated power consumption value of the target central processing unit by calculating the optimized frequency process;

[0140] A first determination submodule is used to determine the target operating frequency of the target central processing unit based on the calculation optimization frequency process and according to the current utilization rate, current power consumption value, rated power consumption value and target operating frequency calculation formula of the target central processing unit;

[0141] A receiving storage submodule is used to receive an instruction representing a storage target operating frequency, and store the target operating frequency into a memory of the server according to the instruction;

[0142] The target operating frequency calculation formula is as follows:

[0143] ;

[0144] in, is the target operating frequency of the target CPU, is the current utilization of the target CPU; is the current power consumption value of the target CPU; is the rated power consumption of the target CPU.

[0145] In some embodiments, the second determining module 12 includes:

[0146] A second running submodule is used to run the voltage regulation module control process when the server is started;

[0147] A second acquisition submodule is used to acquire the rated supply voltage and rated operating frequency of the target central processing unit through the voltage regulation module control process;

[0148] The second determination submodule is used to determine the target supply voltage of the target CPU based on the rated supply voltage, rated operating frequency and target operating frequency of the target CPU, based on the voltage regulation module control process and the correspondence between the supply voltage and operating frequency of the target CPU.

[0149] In some embodiments, the control module 13 includes:

[0150] The output submodule is used to control the voltage regulation module chip to output the target power supply voltage to the target central processing unit through the integrated circuit bus link based on the voltage regulation module control process, so as to control the target central processing unit to operate at the target power supply voltage and target operating frequency.

[0151] In some embodiments, it also includes:

[0152] A first monitoring submodule is used to monitor the operating temperature of the target central processing unit;

[0153] A first judgment submodule, used to judge whether the operating temperature of the target CPU is greater than a temperature threshold; if so, triggering a first regulation submodule;

[0154] A first regulating submodule, used for controlling the voltage regulating module chip to reduce the power supply voltage output to the target central processing unit through the integrated circuit bus link;

[0155] The alarm submodule is used to output alarm information indicating that the temperature of the target central processing unit exceeds the limit.

[0156] In some embodiments, it also includes:

[0157] The second monitoring submodule is used to monitor the operating frequency of the target CPU;

[0158] A second judgment submodule is used to judge whether the operating frequency of the target CPU is greater than a first frequency threshold; if the operating frequency of the target CPU is greater than the first frequency threshold, the second adjustment submodule is triggered; if the operating frequency of the target CPU is not greater than the first frequency threshold, the third judgment submodule is triggered;

[0159] A second regulating submodule, used for controlling and reducing the power supply voltage output to the target central processing unit;

[0160] A third judgment submodule is used to judge whether the operating frequency of the target CPU is less than the second frequency threshold; if the operating frequency of the target CPU is not less than the second frequency threshold, the second monitoring submodule is triggered; if the operating frequency of the target CPU is less than the second frequency threshold, the third regulating submodule is triggered;

[0161] A third regulating submodule is used to increase the number of concurrent requests processed by the server or to run computing-intensive tasks to increase the system load of the server;

[0162] The first frequency threshold is greater than the second frequency threshold.

[0163] In some embodiments, it also includes:

[0164] The third acquisition submodule is used to acquire the operating frequency of the target central processing unit in real time through the intelligent platform management interface protocol;

[0165] The generating submodule is used to generate a target central processing unit operating frequency change log according to the target central processing unit operating frequency acquired in real time.

[0166] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.

[0167] In addition, the present invention also provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned central processing unit frequency adjustment method when executed by a processor.

[0168] Figure 3 A schematic diagram of a CPU frequency adjustment device provided by an embodiment of the present invention. Figure 3 As shown, the CPU frequency adjustment device includes:

[0169] A memory 20, used for storing computer programs;

[0170] The processor 21 is used to implement the steps of the CPU frequency adjustment method mentioned in the above embodiment when executing a computer program.

[0171] The CPU frequency adjustment device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer, or a desktop computer.

[0172] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a central processing unit; the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0173] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the central processing unit frequency adjustment method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. Data 203 may include but is not limited to data related to the central processing unit frequency adjustment method.

[0174] In some embodiments, the CPU frequency adjustment device may further include a display screen 22 , an input / output interface 23 , a communication interface 24 , a power supply 25 , and a communication bus 26 .

[0175] Those skilled in the art will understand that Figure 3 The structure shown in the figure does not constitute a limitation on the CPU frequency adjustment device, and may include more or less components than those shown in the figure.

[0176] Finally, the present invention also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.

[0177] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc. Various media that can store program codes.

[0178] The above is a detailed introduction to a central processing unit frequency adjustment method, device, server and medium provided by the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the present invention.

[0179] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A method for adjusting the frequency of a central processing unit, characterized in that: Applied to a baseboard management controller; the method comprises: Reading the operation data of the target central processing unit according to a preset cycle; wherein the operation data at least includes the current utilization rate and the current power consumption value of the target central processing unit; Determining a target operating frequency of the target central processing unit according to the operating data; Determine the target power supply voltage of the target CPU according to the target operating frequency and the corresponding relationship between the power supply voltage and the operating frequency of the target CPU; wherein the power supply voltage and the operating frequency of the target CPU are positively correlated; The target CPU is controlled to operate at the target power supply voltage, so as to control the target CPU to operate at the target operating frequency.

2. The CPU frequency adjustment method according to claim 1, characterized in that: The step of reading the operation data of the target central processing unit according to a preset period includes: When the server starts, the calculation optimization frequency process is run; Based on the calculation optimization frequency process, reading the current utilization rate and the current power consumption value of the target central processing unit according to the preset period; Correspondingly, determining the target operating frequency of the target central processing unit according to the operating data includes: Acquiring the rated power consumption value of the target central processing unit through the calculation optimization frequency process; Based on the calculation optimization frequency process, the target operating frequency of the target CPU is determined according to the current utilization rate, current power consumption value, rated power consumption value and target operating frequency calculation formula of the target CPU; receiving an instruction for storing the target operating frequency, and storing the target operating frequency in a memory of a server according to the instruction; The target operating frequency calculation formula is as follows: ; in, is the target operating frequency of the target CPU, is the current utilization rate of the target CPU; is the current power consumption value of the target central processing unit; is the rated power consumption value of the target CPU.

3. The CPU frequency adjustment method according to claim 1, characterized in that: The determining the target power supply voltage of the target central processing unit according to the target operating frequency and the corresponding relationship between the power supply voltage and the operating frequency of the target central processing unit comprises: When the server starts, the voltage regulation module is run to control the process; The voltage regulation module controls the process to obtain the rated supply voltage and rated operating frequency of the target central processing unit; Based on the control process of the voltage regulation module and the corresponding relationship between the power supply voltage and the operating frequency of the target central processing unit, the target power supply voltage of the target central processing unit is determined according to the rated power supply voltage, the rated operating frequency and the target operating frequency of the target central processing unit.

4. The CPU frequency adjustment method according to claim 3, characterized in that: The controlling the target central processor to operate at the target power supply voltage includes: Based on the voltage regulation module control process, the voltage regulation module chip is controlled through the integrated circuit bus link to output the target power supply voltage to the target central processing unit, so as to control the target central processing unit to operate at the target power supply voltage and the target operating frequency.

5. The CPU frequency adjustment method according to claim 4, characterized in that: After controlling the target central processor to operate at the target power supply voltage, the method further includes: monitoring the operating temperature of the target central processing unit; Determining whether the operating temperature of the target CPU is greater than a temperature threshold; If so, controlling the voltage regulating module chip to reduce the power supply voltage output to the target central processing unit through the integrated circuit bus link; Outputting warning information indicating that the temperature of the target central processing unit exceeds a limit.

6. The method for adjusting the frequency of a central processing unit according to any one of claims 1 to 5, characterized in that: Also includes: Monitoring the operating frequency of the target CPU; Determining whether the operating frequency of the target central processing unit is greater than a first frequency threshold; If the operating frequency of the target CPU is greater than the first frequency threshold, controlling to reduce the power supply voltage output to the target CPU; If the operating frequency of the target CPU is not greater than the first frequency threshold, determining whether the operating frequency of the target CPU is less than a second frequency threshold; If the operating frequency of the target CPU is not less than the second frequency threshold, returning to the step of monitoring the operating frequency of the target CPU; If the operating frequency of the target central processor is less than the second frequency threshold, increasing the number of concurrent requests processed by the server or running computing-intensive tasks to increase the system load of the server; The first frequency threshold is greater than the second frequency threshold.

7. The CPU frequency adjustment method according to claim 6, characterized in that: Also includes: Acquiring the operating frequency of the target central processing unit in real time through an intelligent platform management interface protocol; Generate an operating frequency change log of the target central processing unit according to the operating frequency of the target central processing unit acquired in real time.

8. A central processing unit frequency adjustment device, characterized in that: Applicable to a baseboard management controller; the device comprises: A reading module, used for reading the operation data of the target central processing unit according to a preset period; wherein the operation data at least includes the current utilization rate and the current power consumption value of the target central processing unit; A first determining module, configured to determine a target operating frequency of the target CPU according to the operating data; A second determination module is used to determine the target power supply voltage of the target central processor according to the target operating frequency and the corresponding relationship between the power supply voltage and the operating frequency of the target central processor; wherein the power supply voltage and the operating frequency of the target central processor are positively correlated; The control module is used to control the target central processing unit to operate at the target power supply voltage, so as to control the target central processing unit to operate at the target operating frequency.

9. A central processing unit frequency adjustment device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the method for adjusting the frequency of a central processing unit as claimed in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for adjusting the frequency of a central processing unit according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Configuration method and configuration device of central processing unit, storage medium, electronic equipment and computer program product

    CN119902821A