Processor performance state adjustment method, device, UEFI and storage medium
By obtaining the busy ratio of the processor and adjusting the performance status value according to the configuration file, the problem of low energy efficiency utilization in the traditional method is solved, and precise adjustment of the processor performance status and energy efficiency improvement are achieved.
Patent Information
- Application Number
- CN201910473230.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-05-31
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2039-05-31
AI Technical Summary
Traditional processor performance state adjustment methods perform poorly in terms of precision control and energy efficiency utilization, resulting in low energy efficiency utilization.
By obtaining the current busy ratio of the processor, the target performance status value is determined based on the pre-generated configuration file, and the performance status value of the processor is adjusted to achieve precise control of the processor performance status, avoid excessive adjustment, and improve energy efficiency utilization.
It achieves precise adjustment of processor performance status, improves energy efficiency utilization, avoids waste of energy efficiency, and ensures that processor performance status matches the current busy ratio and utilization.
Smart Images

Figure CN112015260B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communications, and in particular to a method and device for adjusting the performance state of a processor, UEFI, a storage medium and an electronic device. Background Art
[0002] The CPU Power State (C-State for short) is the power state of the processor when it works in G0 as defined by the Advanced Configuration and Power Management Interface (ACPI) specification. These power states include C0, C1, C2, C3…Cx. Intel processors can support up to C7. From C0 to Cx, the processor sleep state deepens successively, and the energy consumed also decreases successively.
[0003] The ACPI specification also defines performance states in the C0 state. Intel platforms usually refer to Enhanced Intel SpeedStep Technology (EIST) Operating points. The voltage / performance state level is mainly used to control the energy consumed in the C0 state. The main factors of the performance state are voltage and performance state level: higher performance state levels require higher voltage support, and this switching can occur without a system reset. In the C0 state, the lower the processor performance state level, the lower the energy it consumes.
[0004] Traditional processor energy saving solutions are usually implemented by the operating system's power policy or central processing unit (CPU) frequency modulation policy, which achieves energy saving by controlling the processor C-State and performance state level. When the operating system is running, it will adjust the processor performance state level according to the current processor load status to reduce the processor energy while meeting the current usage. For example, the Windows operating system configures the operating system energy saving by setting a power plan, and the Linux operating system can control the processor performance state level to achieve energy saving by configuring the CPU frequency modulation policy. However, the performance state adjustment of the operating system often varies too much, and the power saving performance is only average. It does not achieve the best in terms of performance and energy saving. Traditional energy saving methods perform poorly in terms of precision control and energy efficiency utilization.
[0005] With respect to the above-mentioned problems existing in the related technologies, no effective solution has been proposed yet. Summary of the invention
[0006] The embodiments of the present invention provide a method, device, UEFI, storage medium and electronic device for adjusting the performance state of a processor, so as to at least solve the problem of low accuracy in adjusting the performance state of the processor existing in the related art, which easily leads to low energy efficiency utilization.
[0007] According to one embodiment of the present invention, a method for adjusting the performance state of a processor is provided, comprising: obtaining a current busy ratio of the processor, wherein the current busy ratio is a ratio of a current resource increment value of the processor core CORE to a current performance state value of the processor; determining a target performance state value corresponding to the current busy ratio based on a pre-generated configuration file, wherein the configuration file records an adjustment granularity of the busy ratio and the performance state value; and adjusting the performance state value of the processor to the target performance state value.
[0008] According to another embodiment of the present invention, a device for adjusting the performance state of a processor is provided, comprising: an acquisition module, used to obtain a current busy ratio of the processor, wherein the current busy ratio is a ratio of a current resource increment value of the processor core CORE to a current performance state value of the processor; a processing module, used to determine a target performance state value corresponding to the current busy ratio based on a pre-generated configuration file, wherein the configuration file records an adjustment granularity of the busy ratio and the performance state value; and an adjustment module, used to adjust the performance state value of the processor to the target performance state value.
[0009] According to another embodiment of the present invention, a unified extensible firmware interface UEFI is provided, comprising the adjustment device described in the above embodiment.
[0010] According to yet another embodiment of the present invention, a storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when running.
[0011] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0012] Through the present invention, the target performance state value of the processor can be determined according to the busy ratio and utilization rate of the processor, and the performance state value of the processor can be adjusted to the target performance state value, thereby achieving timely adjustment of the performance state of the processor to the performance state value corresponding to the current busy ratio and utilization rate, effectively avoiding the problem of excessive adjustment range and energy efficiency waste, and achieving the effect of improving the adjustment accuracy of the performance state of the processor and improving the energy efficiency utilization rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0014] Figure 1 is a flow chart of a method for adjusting the performance state of a processor according to an embodiment of the present invention;
[0015] Figure 2 is a flow chart of a method for UEFI firmware to control processor performance status according to an embodiment of the present invention;
[0016] Figure 3 is a flowchart of a method for UEFI firmware to adjust performance status according to an embodiment of the present invention;
[0017] Figure 4 is a flow chart of a method for UEFI firmware to adjust processor performance status in real time according to an embodiment of the present invention;
[0018] Figure 5 is a flowchart of operations performed by a processor busy ratio acquisition module according to an embodiment of the present invention;
[0019] Figure 6 is a schematic diagram of the structure of a processor performance state adjustment module according to an embodiment of the present invention;
[0020] Figure 7 is a flowchart of operations performed by a processor performance state adjustment module according to an embodiment of the present invention;
[0021] Figure 8 4 is a structural block diagram of a device for adjusting the performance state of a processor according to an embodiment of the present invention. DETAILED DESCRIPTION
[0022] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.
[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0024] In this embodiment, a method for adjusting the performance state of a processor is provided. Figure 1 is a flow chart of a method for adjusting the performance state of a processor according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0025] Step S102, obtaining a current busy ratio of the processor, wherein the current busy ratio is a ratio of a current resource increment value of the processor core CORE to a current performance state value of the processor;
[0026] Step S104, determining a target performance status value corresponding to the current busy ratio according to a pre-generated configuration file, wherein the configuration file records the adjustment granularity of the busy ratio and the performance status value;
[0027] Step S106: adjusting the performance state value of the processor to the target performance state value.
[0028] Optionally, the above operations may be performed by a unified extensible firmware interface (UEFI) or similar functional module management that is independent of the OS system or the software under the system. When obtaining the target performance state value, the processor performance state can be accurately controlled based on the busy ratio of the processor, based on the utilization conservation criterion, and combined with the different energy efficiency modes currently used according to the application pressure analysis, wherein the energy efficiency mode can be divided into different modes according to the requirements of energy saving and performance. The above busy ratio is: BUSY_x = ΔC0 / P_Current; the above utilization conservation formula is: USAGE_x = ΔC0 / P_Max = USAGE_x' = ΔC0' / P_Max; wherein ΔC0 is the CORE resource increment value, and P_Max is the maximum performance state value supported by the processor. It should be noted that, under the premise of utilization conservation, the utilization USAGE_x' of the processor at the next moment is equal to the utilization USAGE_x at the current moment. Based on this principle, the formula for processor utilization conservation is: USAGE_x = ΔC0 / P_Max = USAGE_x' = ΔC0' / P_Max. Therefore, the incremental value of the Core resource of the processor at the next moment is the same as that at the current moment, that is, the incremental value of the Core resource of the processor remains unchanged. Based on the USAGE_x utilization conservation principle, the P_Current required for BUSY_x can be calculated, where the larger the BUSY_x value, the higher the processor resource utilization efficiency. Among them, the essence of utilization conservation is that under the premise of clear operating system OS resource requirements (utilization requirements), increasing the processor main frequency will lead to a decrease in the busy ratio calculated by UEFI, and reducing the processor main frequency will lead to an increase in the busy ratio. Based on the USAGE_x utilization conservation, BUSY_x can be calculated, and then the required performance state value can be calculated.
[0029] In the above embodiment, the pre-generated configuration file may be the adjustment granularity of each busy ratio and each target performance status value obtained in advance through multiple experimental tests, wherein the adjustment granularity of the performance status value may be a positive adjustment granularity or a negative adjustment granularity, and the adjustment granularity of the performance status value may also be replaced by an adjustment algorithm, and similarly, the adjustment algorithm may be a positive adjustment algorithm or a negative adjustment algorithm.
[0030] In the above embodiment, the target performance state value of the processor can be determined according to the busy ratio of the processor, and the performance state value of the processor can be adjusted to the target performance state value, so that the performance state of the processor can be adjusted to the performance state value corresponding to the current busy ratio in a timely manner, effectively avoiding the problem of excessive adjustment range and energy efficiency waste, and achieving the effect of improving the adjustment accuracy of the performance state of the processor and improving the energy efficiency utilization rate. In addition, the above steps S102-106 can be performed periodically, that is, the performance state value of the processor is adjusted once within a cycle (or called a polling cycle).
[0031] In an optional embodiment, obtaining the current busy ratio of the processor includes: obtaining the current busy ratio of the processor by a unified extensible firmware interface UEFI; determining the target performance state value corresponding to the current busy ratio according to a pre-generated configuration file includes: determining the target performance state value corresponding to the current busy ratio by the UEFI according to the pre-generated configuration file; adjusting the performance state value of the processor to the target performance state value includes: adjusting the performance state value of the processor to the target performance state value by the UEFI. In this embodiment, server power management can be implemented based on UEFI firmware, without relying on operating systems and third-party software and hardware tools, and real-time control of the performance state of server processors can be achieved through UEFI firmware. Outside of commercial operating systems, UEFI monitors the CORE increment value of the processor in real time based on periodic polling and calculates the busy ratio. Then, based on the busy ratio, combined with the pre-generated configuration file, it is possible to achieve precise control of the processor performance state and avoid wasting processor main frequency resources. At the same time, based on the busy ratio and utilization calculated by the UEFI firmware, it can directly determine whether the OS needs to respond quickly during the polling period, thereby directly setting the required performance state, guaranteeing the service performance requirements to the greatest extent, and reducing the service delay problem caused by the slow stepping of the processor performance state. When the service delay is required, it can achieve the required performance state based on utilization conservation. In addition, it should be noted that the above operation performed by UEFI is only an optional implementation method, and is not limited to this in actual applications.
[0032] In an optional embodiment, determining the target performance state value corresponding to the current busy ratio according to a pre-generated configuration file includes: determining a pre-created performance state level support range table of the processor, wherein the performance state level support range table records at least the main frequency size supported by the processor divided according to a predetermined frequency interval, the minimum main frequency recorded in the performance state level support range table is the minimum main frequency supported by the processor, and the maximum main frequency recorded in the performance state level support range table is the maximum main frequency supported by the processor; determining the adjustment granularity of the current performance state value corresponding to the current busy ratio according to the pre-generated configuration file; searching the main frequency value corresponding to the adjustment granularity of the current performance state value in the performance state level support range table, and using the main frequency value found as the main frequency value included in the target performance state value. In this embodiment, the performance state level range table supported by the processor can be dynamically created according to the processor type. For example, if the minimum main frequency of the processor is 8 and the maximum main frequency is 20, the created performance state level support range table can be: {8,9,10,11,12,13,14,15,16,17,18,19,20}. In this embodiment, the predetermined frequency may be 8, or 9, or other values in the table.
[0033] In an optional embodiment, before adjusting the performance state value of the processor to the target performance state value, the method further includes: when determining that the busy ratio exceeds a predetermined threshold, adjusting the performance state value of the processor to a maximum performance state value supported by the processor. In this embodiment, when the busy ratio of the processor is too high, for example, when it exceeds 99%, by adjusting the processor performance state to the maximum level supported by the processor, it is possible to ensure that the processor performance is not lost and respond to the operating system business to the greatest extent.
[0034] In an optional embodiment, before obtaining the busy ratio of the processor, the method further includes: determining whether an intelligent power efficiency management (IEM) function is enabled; and disabling an autonomous frequency regulation capability of the processor.
[0035] In an optional embodiment, the performance status value of the processor includes a main frequency value of the processor and a voltage value of the processor. Optionally, the performance status value of the processor may also include other values for indicating the performance status of the processor.
[0036] The present invention is described below in conjunction with several specific embodiments:
[0037] Example 1
[0038] The embodiment of the present invention provides a method for UEFI firmware (corresponding to the aforementioned UEFI) to control the performance state of the processor, thereby achieving energy saving and efficiency improvement of the server. The process is as follows: Figure 2 .
[0039] Since the operating system has a poor accuracy in controlling the processor performance state, this embodiment turns off the operating system's function of controlling the performance state, and completely hands over the processor performance state control to the UEFI firmware.
[0040] Step 1. During the UEFI firmware startup process, determine whether the IEM function is enabled. If it is enabled, continue with the following steps.
[0041] Step 2. The UEFI firmware disables the operating system's ability to control processor performance status by changing the processor and operating system power management capability permissions.
[0042] Step 3. Turn off the processor's autonomous frequency regulation function.
[0043] Step 4. Enable the periodic polling function.
[0044] Step 5. Register related processing functions.
[0045] For example, UEFI firmware processing functions directly operate processor registers to set their performance states.
[0046] Example 2
[0047] The embodiment of the present invention provides a method for adjusting the performance state of UEFI firmware to achieve energy saving and efficiency improvement of the server. The process is as follows: Figure 3 .
[0048] The following steps are performed in a polling cycle to adjust the processor performance state.
[0049] Step 1. Dynamically create a table of performance state level ranges supported by the processor type.
[0050] For example, the minimum processor frequency is 8 and the maximum processor frequency is 20. The performance state level support range table created is: {8,9,10,11,12,13,14,15,16,17,18,19,20};
[0051] Step 2: Calculate the busy ratio under the current processor performance state.
[0052] The busy ratio result is obtained by dividing the CORE resource increment value by the current performance state value of the processor.
[0053] Step 3: Determine whether the busy ratio exceeds a maximum threshold. If so, execute step 4; otherwise, execute step 5.
[0054] For example, if it is calculated that the current processor busy ratio reaches 99% (assuming that the set maximum threshold is 99%), the processor performance state level is directly adjusted to the maximum value in the table.
[0055] Step 4: Adjust the processor performance state to the maximum level in the supported range table to ensure that the processor performance is not lost and the operating system service is responded to to the greatest extent.
[0056] Step 5. Calculate the required performance status value through the principle of conservation of processor utilization. At the same time, collect the busy ratio and utilization under different application pressures for a long time. According to the data sampling and training results under different application pressures, generate different Profiles in advance and configure them to the corresponding energy efficiency mode. Combined with the Profile, calculate the optimal corresponding performance status value under the current busy ratio.
[0057] Step 6. Look up the table to find the performance status value in the table corresponding to the optimal value, and then directly adjust the processor performance status value to the value in the table.
[0058] Example 3
[0059] The embodiment of the present invention provides a device for adjusting the performance state of the processor in real time through UEFI firmware to achieve energy saving and efficiency improvement of the server. The process is as follows: Figure 4 As shown:
[0060] After the server enters the operating system, the control authority of the processor performance state has been completely handed over to the UEFI firmware, so the UEFI firmware must poll in real time to obtain the current processor busy ratio, and then dynamically adjust the processor performance state according to the busy ratio. This device can reduce the energy consumed by the processor.
[0061] Step 1. After the server enters the operating system, UEFI will periodically poll the processor status;
[0062] Step 2: Determine whether the performance status needs to be adjusted. If so, go to step 3, that is, execute the processing function registered by the UEFI firmware. The processing function mainly executes steps 3 and 4. Otherwise, go to step 1.
[0063] Step 3. Execute the processor busy ratio acquisition module (same as the subsequent acquisition module 82), the operation performed by this module is as follows: Figure 5 shown.
[0064] The busy ratio of the processor is obtained to determine the processor occupancy rate. The larger the busy ratio is, the higher the current processor occupancy rate is. The performance state adjustment module needs to be based on this.
[0065] Step 4. Execute the processor performance state adjustment module (same as the subsequent processing module 84 and adjustment module 86), which specifically includes units such as Figure 6 shown.
[0066] First, the busy ratio comparison unit determines the processor occupancy rate under the current performance state. The business model analysis unit collects the busy ratios under each business pressure model based on an intelligent algorithm and evaluates the business pressure state, such as Figure 7 The performance state calculation unit accurately calculates the performance state value required by the processor under the current business pressure, realizes intelligent energy-saving adaptation, and finally completes the performance state adjustment within a polling cycle through the performance state adjustment unit.
[0067] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0068] In this embodiment, a device for adjusting the performance state of a processor is also provided, and the device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0069] Figure 8 is a structural block diagram of a device for adjusting the performance state of a processor according to an embodiment of the present invention, such as Figure 8 As shown, the device comprises:
[0070] An acquisition module 82 is used to acquire a current busy ratio of the processor, wherein the current busy ratio is a ratio of a current resource increment value of the processor core CORE to a current performance state value of the processor;
[0071] A processing module 84 is used to determine a target performance status value corresponding to the current busy ratio according to a pre-generated configuration file, wherein the configuration file records the adjustment granularity of the busy ratio and the performance status value;
[0072] The adjustment module 86 is used to adjust the performance state value of the processor to the target performance state value.
[0073] In an optional embodiment, the processing module 84 can determine the target performance state value in the following manner: determine a pre-created performance state level support range table for the processor, wherein the performance state level support range table records at least the main frequency sizes supported by the processor divided according to a predetermined frequency interval, the minimum main frequency recorded in the performance state level support range table is the minimum main frequency supported by the processor, and the maximum main frequency recorded in the performance state level support range table is the maximum main frequency supported by the processor; determine an adjustment granularity of the current performance state value corresponding to the current busy ratio based on a pre-generated configuration file; search the performance state level support range table for a main frequency value corresponding to the adjustment granularity of the current performance state value, and use the main frequency value found as the main frequency value included in the target performance state value.
[0074] In an optional embodiment, the device is also used to adjust the performance state value of the processor to the maximum performance state value supported by the processor when it is determined that the busy ratio exceeds a predetermined threshold before adjusting the performance state value of the processor to the target performance state value.
[0075] In an optional embodiment, the device is further used to determine whether an intelligent power efficiency management (IEM) function is enabled before obtaining the busy ratio of the processor; and disable the autonomous frequency regulation capability of the processor.
[0076] In an optional embodiment, the performance status value of the processor includes a main frequency value of the processor and a voltage value of the processor.
[0077] According to another embodiment of the present invention, a unified extensible firmware interface UEFI is provided, comprising the adjustment device described in any one of the above embodiments.
[0078] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0079] An embodiment of the present invention further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0080] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.
[0081] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0082] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0083] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0084] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0085] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for adjusting the performance state of a processor, characterized in that: Applicable to UEFI firmware, including: Obtaining a current busy ratio of the processor, wherein the current busy ratio is a ratio of a current resource increment value of the processor core CORE to a current performance state value of the processor; Determining a target performance status value corresponding to the current busy ratio according to a pre-generated configuration file, wherein the configuration file records the adjustment granularity of the busy ratio and the performance status value; Adjusting the performance state value of the processor to the target performance state value; The performance status value of the processor includes a main frequency value of the processor and a voltage value of the processor; Wherein, determining the target performance status value corresponding to the current busy ratio according to the pre-generated configuration file includes: Determine a pre-created performance state level support range table of the processor, wherein the performance state level support range table records at least the main frequency sizes supported by the processor divided according to a predetermined frequency interval, the minimum main frequency recorded in the performance state level support range table is the minimum main frequency supported by the processor, and the maximum main frequency recorded in the performance state level support range table is the maximum main frequency supported by the processor; Determining, according to a pre-generated configuration file, an adjustment granularity of a current performance status value corresponding to the current busy ratio; The main frequency value corresponding to the adjustment granularity of the current performance state value is searched in the performance state level support range table, and the main frequency value found is used as the main frequency value included in the target performance state value.
2. The method according to claim 1, characterized in that Acquiring the current busy ratio of the processor includes: acquiring the current busy ratio of the processor through a unified extensible firmware interface UEFI; Determining the target performance status value corresponding to the current busy ratio according to a pre-generated configuration file includes: determining, by the UEFI, the target performance status value corresponding to the current busy ratio according to the pre-generated configuration file; Adjusting the performance state value of the processor to the target performance state value includes: adjusting the performance state value of the processor to the target performance state value by the UEFI.
3. The method according to claim 1, characterized in that Before adjusting the performance state value of the processor to the target performance state value, the method further includes: When it is determined that the busy ratio exceeds a predetermined threshold, the performance state value of the processor is adjusted to a maximum performance state value supported by the processor.
4. The method according to claim 1, characterized in that: Before obtaining the busy ratio of the processor, the method further includes: Make sure the Intelligent Efficacy Management (IEM) function is enabled; Disable the processor's autonomous frequency scaling capability.
5. A device for adjusting the performance state of a processor, characterized in that: Applicable to UEFI firmware, including: An acquisition module, configured to acquire a current busy ratio of a processor, wherein the current busy ratio is a ratio of a current resource increment value of a processor core CORE to a current performance state value of the processor; A processing module, configured to determine a target performance status value corresponding to the current busy ratio according to a pre-generated configuration file, wherein the configuration file records an adjustment granularity of the busy ratio and the performance status value; An adjustment module, used for adjusting the performance state value of the processor to the target performance state value; The performance status value of the processor includes a main frequency value of the processor and a voltage value of the processor; The device is also used to determine a pre-created performance status level support range table for the processor, wherein the performance status level support range table records at least the main frequency sizes supported by the processor divided according to a predetermined frequency interval, the minimum main frequency recorded in the performance status level support range table is the minimum main frequency supported by the processor, and the maximum main frequency recorded in the performance status level support range table is the maximum main frequency supported by the processor; determine the adjustment granularity of the current performance status value corresponding to the current busy ratio based on a pre-generated configuration file; search the performance status level support range table for the main frequency value corresponding to the adjustment granularity of the current performance status value, and use the main frequency value found as the main frequency value included in the target performance status value.
6. A unified extensible firmware interface UEFI, characterized in that: include: The regulating device as claimed in claim 5.
7. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 4 when executed.
8. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 4.
