Non-core frequency adjustment methods for processors and computing devices

By acquiring processor status information parameters and dynamically adjusting non-core frequencies, the problem of the inflexible adjustment of processor non-core frequencies is solved, achieving a balance between processor performance and power consumption under different business requirements and improving server performance.

CN117826970BActive Publication Date: 2026-11-17XFUSION DIGITAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311581520.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-23
Publication Date
2026-11-17
Estimated Expiration
2043-11-23

AI Technical Summary

Technical Problem

In existing technologies, the non-core frequency of processors cannot be flexibly adjusted, which makes it impossible to meet different business needs and affects the performance of servers.

Method used

By acquiring parameters from the processor status information, the non-core frequency is determined and adjusted based on these parameters. The non-core frequency is then dynamically adjusted using the BIOS configuration menu or preset algorithms, and the frequency can be flexibly adjusted in conjunction with the UFS function.

Benefits of technology

It improves the balance between processor performance and power consumption under different business requirements, and meets the operational needs of different business requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117826970B_ABST
    Figure CN117826970B_ABST
Patent Text Reader

Abstract

This application discloses a method and computing device for adjusting the non-core frequency of a processor, relating to the field of server technology. It improves the flexibility of adjusting the non-core frequency of a processor, thereby enhancing the processor's performance in running and processing different services. The method includes: acquiring parameters of status information; the parameters of the status information are used to indicate the processor's operating state when the non-core region of the processor is running at a first non-core frequency; determining a second non-core frequency of the processor corresponding to the parameters of the status information; and adjusting the processor's non-core frequency from the first non-core frequency to the second non-core frequency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of server technology, and in particular to a method for adjusting the non-core frequency of a processor and a computing device. Background Technology

[0002] As the demands on processor systems continue to grow, processors require a better balance between performance and power consumption to run various applications. This is because processor systems include non-core areas in addition to the core area.

[0003] Currently, processors can operate at a pre-set non-core frequency. This results in limitations to the processor's non-core frequency, and there is a problem that the pre-set non-core frequency of the processor cannot meet the needs of server operation, thus causing the server to perform worse than expected. Summary of the Invention

[0004] This application provides a method and computing device for adjusting the non-core frequency of a processor, which improves the flexibility of adjusting the non-core frequency of the processor, thereby improving the processor's performance in running and processing different services.

[0005] In a first aspect, this application provides a method for adjusting the non-core frequency of a processor. The method includes: acquiring parameters of state information; the parameters of the state information are used to indicate the working state of the processor when the non-core region in the processor is running at a first non-core frequency; determining a second non-core frequency of the processor corresponding to the parameters of the state information based on the parameters of the state information; and adjusting the non-core frequency of the processor from the first non-core frequency to the second non-core frequency.

[0006] Understandably, the process involves acquiring parameters indicating the processor's operating state when non-core regions operate at a first non-core frequency, and determining a second non-core frequency corresponding to these parameters based on the acquired status information. This allows for adjusting the processor's non-core frequency from the first to the second. Since the processor's non-core frequency can be adjusted according to the parameters in the status information, a balance between performance and power consumption can be achieved to meet different business requirements, thereby improving the processor's efficiency in processing business applications.

[0007] In one possible implementation, determining the second non-core frequency of the processor corresponding to the parameters of the status information based on the parameters of the status information includes: obtaining configuration information; the configuration information includes the non-core frequencies corresponding to each threshold range to which the parameters of the status information belong, configured by the user through the BIOS menu; determining the non-core frequency corresponding to the target threshold range as the second non-core frequency of the processor; the target threshold range is the threshold range to which the parameters of the status information belong.

[0008] It is understandable that by having the user input configuration information in the BIOS configuration menu, the correspondence between various parameters of the status information and the non-core frequency can be determined. This allows the user to configure different correspondences according to different business needs, thereby enabling the determination of the processor's second non-core frequency based on the parameters of the status information to meet business requirements and improve the performance of business operations.

[0009] In one possible implementation, determining the second non-core frequency of the processor corresponding to the parameters of the state information based on the parameters of the state information includes: inputting the parameters of the state information into a preset algorithm; and outputting the second non-core frequency of the processor through the preset algorithm.

[0010] It is understandable that by using a pre-set algorithm to determine the second non-core frequency corresponding to the parameters of the status information, the second non-core frequency of the processor can be determined based on the parameters of the status information to meet business requirements and improve the operational efficiency of the business.

[0011] In one possible implementation, the parameters for obtaining the status information include: obtaining the parameters of the status information from the baseboard management controller (BMC); wherein the parameters of the status information are calculated by the interrupt handling function when the BMC enters the system management mode (SMM) by triggering an interrupt at regular intervals.

[0012] It is understandable that by setting a timer in the BMC to periodically trigger an interrupt to the operating system, the operating system enters SMM mode, thereby calculating or obtaining parameters of status information through the interrupt handler function.

[0013] In one possible implementation, adjusting the processor's non-core frequency from a first non-core frequency to a second non-core frequency includes: if the difference between the first non-core frequency and the second non-core frequency is greater than a specified threshold, adjusting the processor's non-core frequency from the first non-core frequency to the second non-core frequency.

[0014] Understandably, after determining the second non-core frequency, it can be compared with the current first non-core frequency. If the difference is less than or equal to a specified threshold, the processor's non-core frequency can be adjusted without control, as the adjustment range is small, resulting in minimal impact on processor performance and power consumption. If the difference is greater than the specified threshold, the processor's non-core frequency can be adjusted. This ensures that the adjusted second non-core frequency meets business requirements and improves operational efficiency.

[0015] In one possible implementation, determining the second non-core frequency of the processor corresponding to the parameters of the state information based on the parameters of the state information includes: determining the range of values ​​for the non-core frequency of the processor corresponding to the parameters of the state information based on the parameters of the state information; determining the second non-core frequency of the processor; and ensuring that the second non-core frequency is within the range of values.

[0016] Understandably, the range of values ​​that non-core frequencies can be adjusted to can be determined by the parameters of the status information. From this range, a second non-core frequency can be determined. This allows for a more precise determination of the second non-core frequency after determining an adjusted range of non-core frequencies, thus enabling better operation of the business.

[0017] In one possible implementation, if the parameters of at least two state information are obtained, the second non-core frequency is in the intersection of the value ranges corresponding to the at least two state information.

[0018] It is understandable that, when the second non-core frequency is determined based on the parameters of various state information, the value range of the non-core frequency corresponding to each parameter can be determined for each type of state information. By taking the intersection of the value ranges corresponding to the parameters of each type of state information, the second non-core frequency that conforms to the value range corresponding to each type of state information can be obtained.

[0019] In one possible implementation, adjusting the processor's non-core frequency from a first non-core frequency to a second non-core frequency includes: adjusting the processor's non-core frequency from a first non-core frequency to a second non-core frequency using the non-core frequency scaling UFS function.

[0020] Understandably, the UFS function can adjust the processor's non-core frequency from the first non-core frequency to the second non-core frequency, thereby adjusting the processor's non-core frequency to the second non-core frequency that meets business needs and improving business performance.

[0021] In one possible implementation, the status information includes at least one of processor utilization, operating system load, and processor temperature; wherein processor utilization is positively correlated with the processor's non-core frequency; operating system load is positively correlated with the processor's non-core frequency; and processor temperature is negatively correlated with the processor's non-core frequency.

[0022] Understandably, the non-core frequency corresponding to the current parameters can be determined based on one or more of the following: processor utilization, operating system load, and processor temperature. The value of the non-core frequency can be adjusted according to the relationship between one or more of these parameters and the non-core frequency. This allows for increasing or decreasing the non-core frequency, thereby balancing the processor's performance and power consumption to meet different business needs and improving the processor's performance in processing business tasks.

[0023] Secondly, this application provides a processor non-core frequency adjustment device for performing any of the processor non-core frequency adjustment methods provided in the first aspect.

[0024] In one possible implementation, this application can divide the non-core frequency adjustment device of the processor into functional modules according to the method provided in the first aspect above. For example, each function can be divided into a separate functional module, or two or more functions can be integrated into a processing module. For example, this application can divide the non-core frequency adjustment device of the processor into an acquisition module, a processing module, and an adjustment module according to function. The descriptions of the possible technical solutions and beneficial effects of the various functional modules described above can be found in the technical solutions provided in the first aspect above or its corresponding possible implementations, and will not be repeated here.

[0025] Thirdly, embodiments of this application provide a computing device comprising a processor and a memory, the processor being coupled to the memory; the memory is used to store computer instructions which are loaded and executed by the processor to enable the computing device to implement the non-core frequency adjustment method of the processor as described above.

[0026] Fourthly, embodiments of this application provide a computer-readable storage medium storing at least one computer program instruction, which is loaded and executed by a processor to implement the non-core frequency adjustment method of the processor as described above.

[0027] Fifthly, embodiments of this application provide a computer program product including computer instructions stored in a computer-readable storage medium. A processor of a computing device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computing device to perform the non-core frequency adjustment method of the processor provided in the various optional implementations of the first aspect described above.

[0028] For a detailed description of the second to fifth aspects and their various implementations in this application, please refer to the detailed description in the first aspect and its various implementations; and for a detailed analysis of the beneficial effects of the second to fifth aspects and their various implementations in the first aspect and its various implementations, please refer to the beneficial effect analysis in the first aspect and its various implementations, which will not be repeated here.

[0029] These or other aspects of this application will become more readily apparent in the following description. Attached Figure Description

[0030] Figure 1 This is a schematic diagram illustrating a computing device according to an exemplary embodiment;

[0031] Figure 2 This is a flowchart illustrating a non-core frequency adjustment method for a processor according to an exemplary embodiment;

[0032] Figure 3 yes Figure 2 The illustrated embodiment presents a BIOS configuration menu display interface diagram.

[0033] Figure 4 yes Figure 2 The illustrated embodiment is a flowchart illustrating an adjustment of the non-core frequency of a processor.

[0034] Figure 5 yes Figure 2 The illustrated embodiment is a schematic diagram of a process for adjusting the non-core frequency of a processor.

[0035] Figure 6 This is a schematic diagram of the structure of a non-core frequency adjustment device for a processor provided in an exemplary embodiment of this application. Detailed Implementation

[0036] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0037] In this article, "multiple" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0038] Furthermore, in the description of this application, unless otherwise stated, "multiple" means two or more. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of a single item or a plurality of items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.

[0039] Furthermore, to facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with substantially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and that "first" and "second" are not necessarily different. Meanwhile, in the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is being used as an example, illustration, or description. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of terms such as "exemplary" or "for example" is intended to present related concepts in a concrete manner for ease of understanding.

[0040] First, the application scenarios of the embodiments of this application will be introduced by way of example.

[0041] In some applications, to balance processor performance and power consumption so that the processor can meet the needs of running various applications, it is necessary to adjust the CPU frequency. CPU frequency includes core frequency and non-core frequency. A higher CPU frequency results in higher power consumption, and vice versa. Different applications have different priorities regarding processor performance and power consumption. For example, if an application requires higher processor performance, the non-core frequency needs to be increased; if an application needs to maintain basic performance while minimizing processor power consumption, the non-core frequency needs to be decreased.

[0042] In some scenarios, applications prioritize performance and require higher non-core frequencies. However, since it's uncertain at what level the non-core frequency needs to be adjusted to guarantee performance targets, the non-core frequency might be lowered to the lowest possible level to ensure performance is met, thus failing to meet performance requirements. Conversely, in some scenarios, lowering the frequency can save power. Again, because it's uncertain at what level the non-core frequency needs to be adjusted to guarantee that the power savings will be sufficient, the non-core frequency might be increased to the highest possible level to ensure that the power savings are met, thus failing to meet power consumption requirements.

[0043] The following embodiments of this application provide a method for adjusting the non-core frequency of a processor. By acquiring parameters of state information indicating the current working state of the processor, and determining the non-core frequency corresponding to the parameters of the state information, the non-core frequency of the processor is adjusted. Since the non-core frequency of the processor can be adjusted according to the non-core frequency corresponding to the parameters of the state information, the non-core frequency corresponding to the parameters of the state information can be adjusted for different business needs, thereby satisfying the balance between processor performance and power consumption for different business needs, and thus improving the efficiency of the processor in running business.

[0044] Secondly, the system architecture of the embodiments of this application will be described by way of example.

[0045] Figure 1 A schematic diagram of a computing device provided in an embodiment of this application is shown. In terms of hardware, the computing device 100 includes a central processing unit (CPU) 101, a basic input / output system (BIOS) chip 102, and a baseboard management controller (BMC) 103.

[0046] The CPU101 may include a core area and a non-core area. The core area can be used for main calculation and processing of data, while the non-core area can be any area in the CPU101 other than the core area.

[0047] For example, the core area may include the kernel, while the non-core area may include the memory manager, cache, and peripheral component interconnect express (PCIe) interface, etc.

[0048] The BIOS chip 102 can be a read-only memory (ROM) chip on the motherboard within the computing device 100. The BIOS can be a set of programs embedded in the BIOS chip 102. By running the BIOS, the CPU 101 can implement the basic input / output programs of the computing device, the power-on self-test programs, and the operating system startup programs. The BIOS can provide the computing device with the lowest-level and most direct hardware settings and hardware control functions.

[0049] BMC103 can be an independent chip integrated on the motherboard of computing device 100. The BMC can run a small operating system independent of the server's operating system. The BMC103 can be used to manage the core functions of computing device 100, such as hardware status, operating system, health status, and power consumption management.

[0050] In terms of software, the computing device 100 can run an operating system (OS) through the core of CPU 101. Applications can then be run through the OS to handle different business processes.

[0051] Optionally, the computing device 100 may be a server or a computer device.

[0052] In CPU101, the core area and non-core area each have their own operating frequencies. The core area can operate at the core frequency, and the non-core area can operate at a non-core frequency. This is because the processor's requirements differ when running different applications and handling different business logic.

[0053] For example, some applications require higher processor performance, which means the processor needs to increase its non-core frequency; while other applications require lower power consumption, which means the processor needs to decrease its non-core frequency.

[0054] In one possible implementation, the BIOS obtains parameters of status information, which can be used to indicate the processor's operating state when the non-core region of the processor is running at a first non-core frequency, which is the operating frequency of the non-core region of the processor as recorded by the BIOS.

[0055] In one possible implementation, the BIOS includes a preset algorithm that can determine the correspondence between the parameters of the status information and the non-core frequency according to business requirements. In other words, the BIOS calculates and determines the corresponding second non-core frequency based on the parameters of the received status information through the preset algorithm, and the BIOS can adjust the non-core frequency of the processor to the second non-core frequency.

[0056] Alternatively, users can configure the non-core frequencies corresponding to the various threshold ranges of the status information parameters through the BIOS menu. In other words, the BIOS can determine the second non-core frequency corresponding to the status information parameters through configuration information based on the received status information parameters, and the BIOS can adjust the non-core frequency of the processor to the second non-core frequency.

[0057] The BMC103 can include a timer. By triggering the timer, the BMC103 can periodically trigger a system process interrupt, causing the system to enter system management mode (SMM). In the SMM interrupt handler, parameters of the current status information are calculated or obtained.

[0058] SMM is a CPU execution mode. In SMM mode, the current business process is controlled by the system management interrupt (SMI). Because the SMI interrupt is the highest priority interrupt and cannot be masked, other CPU operations are masked in SMM mode. The interrupt handler function can be used to calculate or retrieve parameters related to the current status information.

[0059] It should be noted that the system architecture and application scenarios described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, with the evolution of system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.

[0060] For ease of understanding, the non-core frequency adjustment method for a processor provided in this application is described below with reference to the accompanying drawings. This non-core frequency adjustment method for a processor is applicable to... Figure 1 The computing device shown.

[0061] Figure 2 A flowchart illustrating a non-core frequency adjustment method for a processor according to an exemplary embodiment of this application is shown. The non-core frequency adjustment method for the processor includes the following steps:

[0062] S101, parameters for obtaining status information.

[0063] In this embodiment of the application, the parameters for obtaining the processor's status information can be used to indicate the processor's working state when the non-core region of the processor is running at a first non-core frequency.

[0064] The processor can include core regions and non-core regions.

[0065] For example, the core area may include the kernel, while the non-core area may include the memory controller, cache, and PCIe interface, etc.

[0066] In one possible implementation, the BIOS can obtain status information parameters from the BMC. These status information parameters can be calculated or obtained by the operating system through an interrupt handler function when the BMC triggers an interrupt and enters the SMM (Status Management Mode).

[0067] The BMC (Browser Control Center) can include timers. When a timer triggers, it can initiate an SMI (Service Migration) to the operating system, interrupting the OS process and causing the OS to enter SMM (Service Mode). The BMC then calculates or retrieves parameters for the current status information through interrupt handlers. After retrieving the parameters, the BMC can send them to the BIOS (BIOS Device Manager).

[0068] In other words, the first non-core frequency can be the operating frequency of the non-core area of ​​the CPU when a timer triggers and sends an SMI to the operating system.

[0069] For example, the status information may include at least one of CPU utilization, operating system load, and processor temperature, wherein processor utilization is positively correlated with the processor's non-core frequency; operating system load is positively correlated with the processor's non-core frequency; and processor temperature is negatively correlated with the processor's non-core frequency.

[0070] For example, if the status information includes CPU utilization, the BIOS can obtain the CPU utilization value after the BMC triggers the timer. This CPU utilization value can be obtained by the BMC through the interrupt handler function. If the status information includes the operating system load, the BIOS can obtain the operating system load. This operating system load can be obtained by the BMC from the operating system through the interrupt handler function. If the status information includes the processor temperature, the BIOS can obtain the processor temperature. This processor temperature can be obtained by the BMC through the interrupt handler function.

[0071] To balance processor performance and power consumption, the non-core frequency of the processor can be adjusted to meet the needs of different applications.

[0072] For example, if the status information includes the operating system load, then when the operating system load is determined to be light, the processor's non-core frequency can be adjusted to reduce energy consumption, thereby improving the overall operating system efficiency and stability. When the operating system load is determined to be heavy, the processor's non-core frequency can be adjusted to increase performance. If the status information includes processor utilization, then when the processor utilization is less than a specified threshold, the processor's non-core frequency can be adjusted to reduce power consumption while maintaining processor efficiency. When the processor utilization is determined to be greater than or equal to a specified threshold, the processor's non-core frequency can be adjusted to increase performance. If the status information includes processor temperature, then when the processor temperature is less than a specified temperature threshold, the processor's non-core frequency can be adjusted to increase performance while preventing the processor from overheating. When the processor temperature is determined to be greater than or equal to a specified temperature threshold, the processor's non-core frequency can be adjusted to reduce processor temperature and lower the risk of processor failure due to overheating.

[0073] In one possible implementation, the BIOS can obtain parameters for one or more status information items.

[0074] For example, the BMC can obtain parameters of one or more status information and send the obtained parameters of each status information to the BIOS. The BIOS then adjusts the non-core frequency of the CPU based on the parameters of each status information.

[0075] S102, based on the parameters of the status information, determine the second non-core frequency of the processor corresponding to the parameters of the status information.

[0076] In this embodiment of the application, after the BIOS obtains the parameters of the status information, the BIOS can determine the second non-core frequency of the processor corresponding to the parameters of the status information.

[0077] The second non-core frequency can be the operating frequency of the processor's non-core region after adjusting the parameters based on the status information. This second non-core frequency can be the same as or different from the first non-core frequency.

[0078] To determine the impact of state information parameters on non-core frequencies, this can be achieved by pre-setting a correspondence or by pre-setting an algorithm, as shown below.

[0079] In one possible implementation, the BIOS can obtain configuration information and then determine the non-core frequency corresponding to the target threshold range as the processor's second non-core frequency.

[0080] The configuration information may include the non-core frequencies corresponding to each threshold range of the status information parameters configured by the user through the BIOS menu. The target threshold range may be the threshold range to which the status information parameters belong.

[0081] In other words, by showing the user the BIOS configuration menu in advance, and allowing the user to input the correspondence between the status information parameters and the non-core frequency in the BIOS configuration menu, the BIOS can determine the correspondence between the status information parameters and the non-core frequency. Thus, the BIOS can determine the non-core frequency corresponding to the obtained status information parameters according to the correspondence, and this non-core frequency is the second non-core frequency.

[0082] For example, Figure 3 This is a diagram of a BIOS configuration menu display interface according to an embodiment of this application. Figure 3 As shown, the BIOS configuration menu 20 displayed to the user may include a status information selection area 21 and a correspondence input area 22. The user can select status information displayed in the status information selection area, including CPU utilization, operating system load, and processor temperature, to determine the status information for which correspondence needs to be configured. For example, if the selected status information is CPU utilization, the user can configure the adjustable range of non-core frequencies corresponding to each range of CPU utilization in the correspondence input area 22. That is, the user can configure the range of non-core frequencies corresponding to a CPU utilization range of 0 to 20%, and similarly, the user can sequentially configure the range of non-core frequencies corresponding to each range of CPU utilization. After the user has configured the correspondence between CPU utilization and non-core frequencies, a confirmation control can be triggered to allow the BIOS to obtain the configured correspondence. Then, the user can select other status information that has not been configured with correspondences in the status information selection area 21, and sequentially configure the correspondences for each of the other status information in the correspondence input area 22.

[0083] In another possible implementation, the parameters of the state information are input into a preset algorithm, and the preset algorithm outputs the processor's second non-core frequency.

[0084] The preset algorithm can be an algorithm for finding the optimal solution, or it can be a pre-trained neural network model algorithm.

[0085] In other words, if the preset algorithm is an algorithm for finding the optimal solution, it can be that when the computing device runs according to the parameters of the obtained state information, it can ensure CPU performance while satisfying that the CPU power consumption is less than a specified threshold, calculate the optimal solution of the non-core frequency, and determine the optimal solution as the second non-core frequency corresponding to the parameters of the obtained state information.

[0086] In one possible implementation, based on the parameters of the state information, the range of values ​​for the processor's non-core frequency corresponding to the parameters of the state information is determined; a second non-core frequency of the processor is determined; and the second non-core frequency is within the range of values.

[0087] In addition, the BIOS can determine the second non-core frequency based on parameters from one status information, or it can determine the second non-core frequency by combining parameters from multiple status information.

[0088] In one possible implementation, if the parameters of at least two state information are obtained, the second non-core frequency is in the intersection of the value ranges corresponding to the at least two state information.

[0089] In other words, if the BIOS obtains the parameters of various status information, the BIOS can determine the range of non-core frequencies corresponding to the parameters of each status information, and take the intersection of the various ranges as the range of values ​​for the second non-core frequency, thereby determining the second non-core frequency.

[0090] For example, if the BIOS obtains a CPU utilization rate of x%, the BIOS can determine that the lower limit of the non-core frequency range corresponding to the CPU utilization rate of x% is a, and the upper limit is b. If the BIOS also obtains an operating system load of y, the BIOS can determine that the lower limit of the non-core frequency range corresponding to the operating system load y is c, and the upper limit is d. If the BIOS also obtains a processor temperature of z, the BIOS can determine that the lower limit of the non-core frequency range corresponding to the processor temperature z is m, and the upper limit is n. Taking the intersection of the non-core frequency ranges corresponding to the three states, since m is less than a, a is less than c, c is less than b, b is less than n, and n is less than d, it can be determined that the lower limit of the range to which the second non-core frequency belongs is c, and the upper limit is b.

[0091] S103 adjusts the processor's non-core frequency from the first non-core frequency to the second non-core frequency.

[0092] In this embodiment of the application, after determining the second non-core frequency, the BIOS can control and adjust the non-core frequency of the processor.

[0093] In one possible implementation, the BIOS can modify the upper and lower limits of the non-core frequency range, allowing the processor to subsequently adjust the non-core frequency within the adjusted range.

[0094] In addition, if the difference between the second non-core frequency determined by the parameters of the status information and the first non-core frequency is small, the effect of controlling the CPU to adjust the non-core frequency will not be obvious. In order to reduce unnecessary instruction operations, the CPU can continue to run at the current first non-core frequency if the difference is less than a specified threshold.

[0095] In other words, if the difference between the first non-core frequency and the second non-core frequency is greater than a specified threshold, the processor's non-core frequency will be adjusted from the first non-core frequency to the second non-core frequency.

[0096] In another possible implementation, after obtaining the second non-core frequency, the BIOS needs to determine whether the second non-core frequency is the same as the first non-core frequency. If it is determined that the second non-core frequency is the same as the first non-core frequency, there is no need to adjust the processor's non-core frequency; instead, it waits for the next timer trigger to obtain the second non-core frequency. If it is determined that the second non-core frequency is different from the first non-core frequency, then the processor's non-core frequency can be subsequently adjusted from the first non-core frequency to the second non-core frequency.

[0097] In summary, the server obtains parameters from the BIOS to indicate the processor's operating state when the non-core regions of the processor are running at a first non-core frequency. Based on these parameters, the server can determine the corresponding second non-core frequency and adjust it from the first to the second. Because the processor's non-core frequency can be adjusted according to the parameters in the status information, a balance between performance and power consumption can be achieved to meet different business needs, thereby improving the processor's efficiency in processing business applications.

[0098] For example, Figure 4 This is a schematic diagram illustrating a process for adjusting the non-core frequency of a processor, as described in an embodiment of this application. Figure 4As shown, the non-core frequency corresponding to different parameters of the acquired status information is obtained (S21). In one possibility, if the status information is CPU utilization, the non-core frequency corresponding to different CPU utilization values ​​input by the user can be obtained. Alternatively, if the status information is CPU utilization or OS load, the non-core frequency to be set for different CPU utilization values ​​or OS load values ​​can be calculated using a preset algorithm. Then, during operating system runtime, the BMC can trigger an OS interrupt by pulling a GPIO pin via a timer, causing the OS to enter SMM. The BMC can obtain the parameters of the current status information (S22) through the interrupt handler function, such as the current CPU utilization or the current OS load. It then determines whether the current non-core frequency corresponds to the parameters of the current status information (S23), that is, whether the current non-core frequency corresponds to the current CPU utilization or the current OS load. If it is determined that the current non-core frequency does not correspond to the parameters of the current state information, the processor's non-core frequency can be adjusted to match the non-core frequency corresponding to the parameters of the current state information (S24). Then, it is determined whether the OS has stopped running (S25). If it is determined that the OS has stopped running, the process of adjusting the processor's non-core frequency ends. If it is determined that the OS has not stopped running, the above process continues from S22. In addition, if it is determined after executing S23 that the current non-core frequency corresponds to the parameters of the current state information, the above steps are executed directly from S25.

[0099] In one possible implementation, the processor's non-core frequency is adjusted from a first non-core frequency to a second non-core frequency through the uncore frequency scaling (UFS) function.

[0100] UFS is a feature within the processor. This feature provides frequency scaling control for non-core regions. By controlling the frequency scaling of these regions, the balance between overall processor performance and power consumption can be adjusted.

[0101] In other words, by acquiring the parameters of the status information used to indicate the current working state of the processor, the non-core frequency corresponding to the parameters of the status information is determined, thereby adjusting the non-core frequency of the processor. Since the non-core frequency of the processor can be adjusted according to the non-core frequency corresponding to the parameters of the status information, the non-core frequency corresponding to the parameters of the status information can be adjusted for different business needs, thereby satisfying the balance between processor performance and power consumption for different business needs, thus improving the efficiency of the processor in running and processing business.

[0102] For example, Figure 5This is a schematic diagram illustrating a process for adjusting a non-core frequency of a processor, as described in an embodiment of this application. Figure 5 As shown, the BIOS can obtain the upper and lower limits of the non-core frequency corresponding to different parameters of the status information input by the user through the BIOS configuration menu, or the BIOS can obtain the upper and lower limits of the non-core frequency corresponding to different parameters of the status information through a preset algorithm (S31). After the operating system starts, the timer in the BMC can start a timer trigger, and the BMC timer triggers SMI (S32), so that the operating system enters SMM. When the operating system is in SMM, the interrupt handling function calculates or obtains the current parameters of the status information. The BMC sends the obtained current parameters of the status information to the BIOS, so that the BIOS obtains the current parameters of the status information (S33). The BIOS can select and adjust the non-core frequency or the value range of the non-core frequency to the predetermined second non-core frequency and value range according to the obtained status information parameters (S34). Determine whether the operating system has stopped running (S35). If it is determined that the operating system has stopped running, there is no need to adjust the non-core frequency, that is, the process of adjusting the non-core frequency can end; if it is determined that the operating system has not stopped running, continue to wait for S32 and subsequent steps to be executed.

[0103] In summary, by dynamically adjusting the processor's non-core frequencies (such as those of the memory controller and cache), the performance and power consumption requirements of different applications can be met. The operating system or application can dynamically adjust the processor's non-core frequencies based on current load and performance needs. The BIOS can obtain real-time information such as CPU utilization, processor temperature, or operating system load, flexibly adjusting the processor's non-core frequencies to improve response speed and optimize power consumption and performance. Furthermore, since status information parameters can include processor temperature, the processor's non-core frequencies can be reduced based on temperature, thereby decreasing heat and noise caused by excessive processor overheating. This is suitable for applications in low-noise, low-power, or temperature-sensitive environments. Because the processor's non-core frequencies can be flexibly adjusted as needed, the risk of overuse can be reduced, thus extending the processor's lifespan to some extent.

[0104] The foregoing mainly describes the solutions of the embodiments of this application from a methodological perspective. It is understood that, in order to achieve the above functions, the software upgrade device includes at least one of the hardware structures and software modules corresponding to each function. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0105] This application embodiment can divide the non-core frequency adjustment device of the processor into functional units according to the above method example. For example, each function can be divided into a separate functional unit, or two or more functions can be integrated into one processing unit. The integrated unit can be implemented in hardware or as a software functional unit. It should be noted that the unit division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.

[0106] For example, Figure 6 This illustration shows a schematic diagram of a non-core frequency adjustment device 400 for a processor provided in an exemplary embodiment of this application. The non-core frequency adjustment device 400 is applied in a computing device, or the non-core frequency adjustment device 400 can be a computer device. The non-core frequency adjustment device 400 includes:

[0107] The acquisition module 410 is used to acquire parameters of status information; the parameters of the status information are used to indicate the working state of the processor when the non-core region in the processor is running at a first non-core frequency.

[0108] Processing module 420 is used to determine the second non-core frequency of the processor corresponding to the parameters of the status information based on the parameters of the status information;

[0109] The adjustment module 430 is used to adjust the non-core frequency of the processor from the first non-core frequency to the second non-core frequency.

[0110] For example, combining Figure 2 The acquisition module 410 can be used to perform actions such as... Figure 2 As shown in S101, the processing module 420 can be used to perform, for example... Figure 2 As shown in S102, the adjustment module 430 can be used to perform, for example... Figure 2 S103 is shown.

[0111] In one possible implementation, the processing module 420 is further configured to,

[0112] Obtain configuration information; the configuration information includes the non-core frequencies corresponding to each threshold range of the status information parameters configured by the user through the BIOS menu;

[0113] The non-core frequency corresponding to the target threshold range is determined as the second non-core frequency of the processor; the target threshold range is the threshold range to which the parameters of the state information belong.

[0114] In one possible implementation, the processing module 420 is further configured to,

[0115] Input the parameters of the state information into a preset algorithm;

[0116] The second non-core frequency of the processor is output through the preset algorithm.

[0117] In one possible implementation, the acquisition module 410 is further configured to,

[0118] Parameters for obtaining the status information from the Baseboard Management Controller (BMC);

[0119] The parameters of the status information are calculated by the interrupt handling function of the BMC timer-triggered System Management Mode (SMM) interrupt.

[0120] In one possible implementation, the adjustment module 430 is further configured to adjust the non-core frequency of the processor from the first non-core frequency to the second non-core frequency if the difference between the first non-core frequency and the second non-core frequency is greater than a specified threshold.

[0121] In one possible implementation, the processing module 420 is further configured to,

[0122] Based on the parameters of the status information, determine the range of values ​​for the non-core frequency of the processor corresponding to the parameters of the status information;

[0123] Determine the second non-core frequency of the processor; the second non-core frequency is within the range of values.

[0124] In one possible implementation, if parameters of at least two state information are obtained, the second non-core frequency is the intersection of the value ranges corresponding to the at least two state information.

[0125] In one possible implementation, the adjustment module 430 is further configured to adjust the non-core frequency of the processor from the first non-core frequency to the second non-core frequency through the non-core frequency scaling UFS function.

[0126] In one possible implementation, the status information includes at least one of processor utilization, operating system load, and processor temperature; wherein the processor utilization is positively correlated with the non-core frequency of the processor; the operating system load is positively correlated with the non-core frequency of the processor; and the processor temperature is negatively correlated with the non-core frequency of the processor.

[0127] For a detailed description of the above-mentioned optional methods, please refer to the foregoing method embodiments, which will not be repeated here. Furthermore, the explanation of any of the model appearance update devices provided above, as well as the description of their beneficial effects, can be found in the corresponding method embodiments described above, and will not be repeated here.

[0128] As an example, combined Figure 1 The functions implemented by some or all of the acquisition module 410, processing module 420, and adjustment module 430 in the processor's non-core frequency adjustment device can be achieved through... Figure 1 The computing device 100 in the middle performs the operation, wherein the acquisition module 410, the processing module 420 and the adjustment module 430 can be executed through Figure 1 The BIOS chip of the computing device 100 is executed.

[0129] In one exemplary embodiment, a computer-readable storage medium is also provided for storing at least one instruction, at least one program, code set, or instruction set, wherein the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement all or part of the steps in the memory fault prediction method described above. For example, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, or optical data storage device, etc.

[0130] In one exemplary embodiment, a computer program product or computer program is also provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computing device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computing device to perform the aforementioned actions. Figure 2 All or part of the steps of the method shown in any embodiment.

[0131] In some embodiments, the methods shown in this application can be implemented as computer program instructions encoded in a machine-readable format on a computer-readable storage medium or on other non-transitory media or articles of art.

[0132] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0133] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0134] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0135] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0136] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially or in other words, the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0137] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for adjusting the non-core frequency of a processor, characterized in that, The method includes: The parameters for obtaining status information are used to indicate the working state of the processor when the non-core region in the processor is running at a first non-core frequency; the status information includes at least one of processor utilization, operating system load, and processor temperature; wherein, the parameters of the status information are obtained by the Baseboard Management Controller (BMC) triggering an interrupt at regular intervals to enter System Management Mode (SMM) and by calculating them through an interrupt handling function; Based on the parameters of the status information, determine the second non-core frequency of the processor corresponding to the parameters of the status information; If the difference between the first non-core frequency and the second non-core frequency is greater than a specified threshold, the non-core frequency of the processor is adjusted from the first non-core frequency to the second non-core frequency.

2. The method according to claim 1, characterized in that, Determining the second non-core frequency of the processor corresponding to the parameters of the status information based on the parameters of the status information includes: Obtain configuration information; the configuration information includes the non-core frequencies corresponding to each threshold range of the status information parameters configured by the user through the BIOS menu; The non-core frequency corresponding to the target threshold range is determined as the second non-core frequency of the processor; the target threshold range is the threshold range to which the parameters of the state information belong.

3. The method according to claim 1, characterized in that, Determining the second non-core frequency of the processor corresponding to the parameters of the state information based on the parameters of the state information includes: Input the parameters of the state information into a preset algorithm; The second non-core frequency of the processor is output through the preset algorithm.

4. The method according to claim 1, characterized in that, Determining the second non-core frequency of the processor corresponding to the parameters of the state information based on the parameters of the state information includes: Based on the parameters of the status information, determine the range of values ​​for the non-core frequency of the processor corresponding to the parameters of the status information; Determine the second non-core frequency of the processor; the second non-core frequency is within the range of values.

5. The method according to claim 4, characterized in that, If parameters of at least two states are obtained, the second non-core frequency is the intersection of the value ranges corresponding to the at least two states.

6. The method according to claim 1, characterized in that, The step of adjusting the non-core frequency of the processor from the first non-core frequency to the second non-core frequency includes: The non-core frequency of the processor is adjusted from the first non-core frequency to the second non-core frequency by using the non-core frequency scaling UFS function.

7. The method according to any one of claims 1 to 6, characterized in that, in, The processor utilization rate is positively correlated with the processor's non-core frequency; the operating system load is positively correlated with the processor's non-core frequency; and the processor temperature is negatively correlated with the processor's non-core frequency.

8. A computing device, characterized in that, The computing device includes: a processor and a memory for storing processor-executable instructions; the processor is configured to execute the instructions, causing the computing device to perform a non-core frequency adjustment method of the processor as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Computer system power consumption control method and system

    CN106020422A

  • System and method for controlling power consumption of a computing system

    US20170344099A1