Process adjustment method, device and equipment applied to processor

By monitoring the processor process status, dynamically adjusting the operation of the process between the performance core and the energy-efficiency core, combined with the strategy of prohibiting standby cores, the problem of high processor power consumption in the existing technology is solved, and power consumption reduction and battery life are achieved Extended effect.

CN119088518APending Publication Date: 2024-12-06GUANGDONG HONGQIN COMM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411171389.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

In the scenario where existing processors deploy multiple performance cores and energy efficiency cores, it is difficult to effectively reduce power consumption, resulting in a shorter battery life.

Method used

By monitoring the working state of the process in the processor, migrate the process to the energy-efficient core operation in the idle state, and restore to the performance core when high performance is required. At the same time, the standby core operation is prohibited according to the preset policy to optimize resource allocation and reduction Power consumption.

Benefits of technology

This achieves a reduction in processor power consumption, extends battery life, and improves the processor's response speed and overall energy efficiency ratio.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088518A_ABST
    Figure CN119088518A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a process adjustment method, device and equipment applied to a processor. The method comprises a process adjustment method applied to a processor, wherein a plurality of performance cores and a plurality of energy efficiency cores are deployed in the processor; the power consumption of the performance core is greater than that of the energy efficiency core, and the processing capacity of the performance core is greater than that of the energy efficiency core. When it is monitored that the running state of the started first process is in an idle state at the first moment and the duration of the idle state is larger than a first preset duration threshold value, the first process is migrated to the energy efficiency core to run; when it is monitored that the first process is in the running state at the second moment, the first process migrated to the energy efficiency core is recovered to the performance core to run. The method is used for reducing the power consumption of the processor and prolonging the service life of the battery.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a process adjustment method, device and equipment applied to a processor. Background Art

[0002] Multiple performance (P) cores and multiple efficiency (Efficient, E) cores are deployed in the processor. The performance core of the processor can run processing tasks based on processes, and the efficiency core of the processor can run processing tasks based on processes, wherein the processing tasks are, for example, software execution tasks.

[0003] Furthermore, there is an urgent need for a solution that can reduce the power consumption of the processor in the above scenario. Summary of the invention

[0004] The embodiments of the present application provide a process adjustment method, apparatus and device applied to a processor, so as to reduce the power consumption of the processor and extend the battery life.

[0005] In a first aspect, an embodiment of the present application provides a process adjustment method applied to a processor, wherein a plurality of performance cores and a plurality of energy efficiency cores are deployed in the processor; the power consumption of the performance core is greater than the power consumption of the energy efficiency core, and the processing capability of the performance core is greater than the processing capability of the energy efficiency core, and the method includes:

[0006] The working status of the process running in the processor is monitored.

[0007] When it is monitored at the first moment that the running state of the started first process is in an idle state and the duration of being in the idle state is greater than a first preset duration threshold, the first process is migrated to the energy efficiency core for running.

[0008] When it is monitored at the second moment that the first process is in the running state, the first process migrated to the energy efficiency core is restored to the performance core for running.

[0009] In a possible implementation, monitoring the working status of the process running in the processor includes:

[0010] When it is determined that the processor receives an input operation, or that the processor has an output operation, or that the processor is in an overloaded state, it is determined that the process running in the processor is in a running state.

[0011] In a possible implementation, the method further includes:

[0012] When it is monitored at a third moment before the second moment that the first process is still in an idle state and the duration of the idle state is greater than a second preset duration threshold, the operation of the performance core and the energy efficiency core is prohibited; wherein the second preset duration threshold is greater than the first preset duration threshold.

[0013] In a possible implementation manner, prohibiting the operation of the performance core and the operation of the energy efficiency core includes:

[0014] The operation of the performance cores in the standby state is prohibited, and the operation of the energy efficiency cores in the standby state is prohibited.

[0015] In a possible implementation, prohibiting the operation of a performance core in a standby state and prohibiting the operation of an energy efficiency core in a standby state includes:

[0016] Determining an occupation status of resources occupied by the processor;

[0017] Determine the level information corresponding to the occupancy state according to a preset mapping relationship; wherein the preset mapping relationship is a mapping relationship between the occupancy state and the level information, and the level information indicates the number of performance cores of the performance cores to be prohibited and the number of energy efficiency cores of the energy efficiency cores to be prohibited;

[0018] According to the determined level information, the operation of the performance cores in the standby state whose number is indicated by the level information is prohibited, and the operation of the energy efficiency cores in the standby state whose number is indicated by the level information is prohibited.

[0019] In a possible implementation manner, the performance core has a priority, and the energy efficiency core has a priority; prohibiting the performance core in the standby state from running, and prohibiting the energy efficiency core in the standby state from running, includes:

[0020] The operation of the performance core which is at the highest priority and in the standby state is prohibited; and the operation of the energy efficiency core which is at the highest priority and in the standby state is prohibited.

[0021] In a possible implementation, the method further includes: displaying a preset interface in response to a viewing instruction; wherein the viewing instruction indicates that the number of performance cores and the number of energy efficiency cores in the processor need to be viewed; and the preset interface displays the number of performance cores and the number of energy efficiency cores in the processor.

[0022] In a second aspect, an embodiment of the present application provides a process adjustment device applied to a processor, comprising: a plurality of performance cores and a plurality of energy efficiency cores are deployed in the processor; the power consumption of the performance core is greater than the power consumption of the energy efficiency core, and the processing capability of the performance core is greater than the processing capability of the energy efficiency core, and the device comprises:

[0023] The monitoring module monitors the working status of the process running in the processor.

[0024] The migration module is used to migrate the first process to the energy efficiency core for execution when it is monitored at the first moment that the running state of the started first process is in an idle state and the duration of the idle state is greater than a first preset duration threshold.

[0025] The recovery module is used to recover the first process migrated to the energy efficiency core to the performance core for running when it is monitored at the second moment that the first process is in a running state.

[0026] In a possible implementation manner, when monitoring the working status of the process running in the processor, the migration module is specifically configured to:

[0027] When it is determined that the processor receives an input operation, or that the processor has an output operation, or that the processor is overloaded, it is determined that the process running in the processor is in a running state. In a possible implementation, the device further includes:

[0028] A prohibition module is used to prohibit the operation of the performance core and the energy efficiency core when it is monitored at a third moment before the second moment that the first process is still in an idle state and the duration of the idle state is greater than a second preset duration threshold; wherein the second preset duration threshold is greater than the first preset duration threshold.

[0029] In a possible implementation manner, when prohibiting the operation of the performance core and the energy efficiency core, the prohibition module is specifically used to:

[0030] The operation of the performance cores in the standby state is prohibited, and the operation of the energy efficiency cores in the standby state is prohibited.

[0031] In a possible implementation manner, when the prohibition module prohibits the operation of the performance core in the standby state and prohibits the operation of the energy efficiency core in the standby state, it is specifically used to:

[0032] Determining an occupation status of resources occupied by the processor;

[0033] Determine the level information corresponding to the occupancy state according to a preset mapping relationship; wherein the preset mapping relationship is a mapping relationship between the occupancy state and the level information, and the level information indicates the number of performance cores of the performance cores to be prohibited and the number of energy efficiency cores of the energy efficiency cores to be prohibited;

[0034] According to the determined level information, the operation of the performance cores in the standby state whose number is indicated by the level information is prohibited, and the operation of the energy efficiency cores in the standby state whose number is indicated by the level information is prohibited.

[0035] In a possible implementation manner, the performance core has a priority, and the energy efficiency core has a priority; when the prohibition module prohibits the operation of the performance core in the standby state and prohibits the operation of the energy efficiency core in the standby state, it is specifically used to:

[0036] The operation of the performance core which is at the highest priority and in the standby state is prohibited; and the operation of the energy efficiency core which is at the highest priority and in the standby state is prohibited.

[0037] In a possible implementation, the device further includes:

[0038] A display module is used to display a preset interface in response to a viewing instruction; wherein the viewing instruction indicates that the number of performance cores and the number of energy efficiency cores in the processor need to be viewed; and the preset interface displays the number of performance cores and the number of energy efficiency cores in the processor.

[0039] In a third aspect, an embodiment of the present application provides a processor in which multiple performance cores and multiple energy efficiency cores are deployed, so that the processor executes the first aspect above and / or various possible implementation methods of the first aspect.

[0040] In a fourth aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor;

[0041] The memory stores computer-executable instructions;

[0042] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.

[0043] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementations of the first aspect.

[0044] In a sixth aspect, the present application is as described in the first aspect and / or various possible implementation modes of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0046] Figure 1 A schematic diagram of the structure of a processor provided in an embodiment of the present application;

[0047] Figure 2 A schematic diagram of a process adjustment method applied to a processor provided in an embodiment of the present application Figure 1 ;

[0048] Figure 3 A schematic diagram of a process adjustment method applied to a processor provided in an embodiment of the present application Figure 2 ;

[0049] Figure 4 A task manager interface 1 of a Windows operating system in a state where a monitoring device is not started provided in an embodiment of the present application;

[0050] Figure 5 A second task manager interface of a Windows operating system in which a monitoring device is not started is provided in an embodiment of the present application;

[0051] Figure 6 A task manager interface 1 of a Windows operating system in a state of starting a monitoring device provided in an embodiment of the present application;

[0052] Figure 7 A second task manager interface of a Windows operating system in a state of starting a monitoring device provided in an embodiment of the present application;

[0053] Figure 8 A schematic diagram of a display interface for viewing the number of performance cores and the number of energy efficiency cores provided in an embodiment of the present application;

[0054] Fig. 9 A schematic diagram of a structure of a determination device for process adjustment of a processor provided in an embodiment of the present application Figure 1 ;

[0055] Fig.10 A schematic diagram of a structure of a determination device for process adjustment of a processor provided in an embodiment of the present application Figure 2 ;

[0056] Fig.11 A schematic diagram of the structure of an electronic device for adjusting a processor process provided in an embodiment of the present application.

[0057] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0058] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0059] Figure 1 A schematic diagram of the structure of the processor provided in this application, such as Figure 1 As shown in the figure, the processor mainly includes multiple performance cores and multiple energy efficiency cores. The performance core focuses on providing the highest computing performance and is suitable for running tasks that require a lot of computing resources, such as games, video editing, 3D rendering, etc.; due to the pursuit of high performance, the performance core usually consumes more power; and the performance core usually has a more complex architecture, including more cache, higher clock frequency and more execution units to improve instruction throughput. The energy efficiency core focuses on energy efficiency optimization and is suitable for processing background tasks, lightweight applications and system maintenance tasks; the energy efficiency core is designed to be more energy-efficient and can complete tasks at lower power consumption, thereby extending battery life or reducing overall energy consumption; the architecture of the energy efficiency core is relatively simple, with a lower clock frequency and less cache, but it is sufficient to cope with daily lightweight tasks. The connection between each performance core and the L2 cache is realized through an internal bus or an interconnection network; the connection between each energy efficiency core and the L2 cache is realized through an internal bus or an interconnection network. Among them, the L2 cache is a high-speed cache inside the processor, which is used to store the data and instructions recently accessed by the processor. The L3 cache is shared between each performance core and each energy efficiency core. With the introduction of a new performance hybrid architecture from Intel's 12th generation, the coexistence of performance cores and energy efficiency cores has brought an unprecedented balance between performance and energy efficiency to computing devices. However, although existing operating systems provide a variety of performance modes for users to choose from, since users usually do not actively adjust these settings, many processes run on performance cores by default, which not only limits the potential of energy efficiency cores, but also increases processor power consumption and shortens battery life. Therefore, how to intelligently allocate processes to appropriate cores has become a problem that needs to be solved urgently.

[0060] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0061] Figure 2 A schematic diagram of a process adjustment method for a processor provided in this application Figure 1 ,like Figure 2 As shown, the processor is deployed with multiple performance cores and multiple energy efficiency cores; the power consumption of the performance core is greater than the power consumption of the energy efficiency core, and the processing capability of the performance core is greater than the processing capability of the energy efficiency core. The method includes:

[0062] 201. Monitor the working status of the process running in the processor.

[0063] For example, when the computer starts and completes the boot process, the processor immediately activates the built-in monitoring device, which starts to monitor the various components and running programs in the computer in an automated manner. As the computer operates normally, a series of preset programs are also started one after another, each of which undertakes different tasks and jointly supports the daily work and efficient operation of the computer. At the same time, the monitoring device remains highly vigilant and continuously analyzes the execution status of each program and the load of the processor.

[0064] 202. When it is monitored at a first moment that the running state of the started first process is in an idle state and the duration of being in the idle state is greater than a first preset duration threshold, migrate the first process to run on the energy efficiency core.

[0065] Exemplarily, at the first moment, once the monitoring device detects that the running state of the started first process has entered an idle state, and the duration of this idle state is greater than the first preset duration threshold. The idle state refers to the computer opening multiple programs, but these programs are not currently performing operations that require immediate response or processing by the processor, that is, they are in the background state, without frequent input and output operations with the outside world (such as user input, network requests, etc.), and the processor is not triggered to perform complex calculations or data processing; the first preset duration threshold is five minutes. The monitoring device will automatically select one or more first processes that are running on the performance core but are not currently high priority or urgently needed according to the current resource allocation strategy and energy consumption optimization algorithm. Subsequently, these first processes will be migrated to the energy efficiency core for continued execution.

[0066] For example, after completing the process migration from the performance core to the energy efficiency core, the monitoring device will continue to maintain its active state and continuously monitor the state changes of the processor. The monitoring device will continuously combine the collected data with the analysis logic to evaluate whether the current processor state meets the preset migration conditions (for example, the processor's idle time exceeds the first preset duration threshold, the energy efficiency core has sufficient resources to accommodate new processes, etc.). Once the conditions are met, the monitoring device will immediately trigger the migration action and migrate the qualified process from the performance core to the energy efficiency core for operation.

[0067] 203. When it is detected at the second moment that the first process is in a running state, the first process migrated to the energy efficiency core is restored to the performance core for running. Exemplarily, at the second moment, when the monitoring device is performing its monitoring task, it will continue to monitor the running state of the first process, that is, monitor the input and output activities of the outside world and the load of the processor. This monitoring is real-time and dynamic, and is intended to ensure the reasonable allocation and efficient use of processor resources.

[0068] When the monitoring device detects external input and output activities, such as disk reading and writing, network data transmission, or user input operations, it will evaluate the impact of these activities on processor performance. If the input and output activities are frequent and require a high processor response speed, the monitoring device will realize that the current processor state may require more processing power to ensure smoothness. At the same time, the monitoring device also continuously monitors the processor load. It determines the processor stress level by analyzing key indicators such as processor utilization, thread queue length, and cache hit rate. If the processor is overloaded, that is, the processor utilization rate continues to remain in a high load state, the monitoring device will determine that the current processor performance requirements have exceeded the carrying capacity of the energy-efficient core.

[0069] When the monitoring device detects that the processor is under high load or needs to respond quickly to external input and output, it will trigger the migration mechanism. The core of this mechanism is to restore some processes originally running on the energy-efficient core to the performance core for operation. The purpose of this is to use the higher processing speed and stronger computing power of the performance core to meet the current processor needs, ensure that key tasks and input and output activities can be processed in a timely manner, and thus improve the overall processor performance and response speed.

[0070] The process adjustment method, device and equipment applied to the processor provided by the embodiment of the present application continuously monitors the operating state of the processor through the monitoring device, and the computer realizes intelligent resource management. When the processor is detected to be in an idle or low-load state, in order to optimize energy efficiency and reduce power consumption, the processor will automatically migrate the process originally running on the performance core to the energy efficiency core for execution. However, once it is monitored that input and output operations occur frequently or the processor faces loading pressure, the processor will respond immediately and quickly migrate these processes from the energy efficiency core to the performance core to restore the original high-performance operating state, ensuring that the processor can smoothly handle complex tasks and input and output requirements. This dynamic adjustment strategy not only improves the response speed of the processor, but also enhances the overall energy efficiency ratio, thereby reducing the power consumption of the processor and extending the battery life.

[0071] Figure 3 A schematic diagram of a process adjustment method for a processor provided in this application Figure 2 ,like Figure 3As shown, the processor is deployed with multiple performance cores and multiple energy efficiency cores; the power consumption of the performance core is greater than the power consumption of the energy efficiency core, and the processing capability of the performance core is greater than the processing capability of the energy efficiency core. The method includes:

[0072] 301. Monitor the working status of the process running in the processor.

[0073] Exemplarily, this step may refer to the above step 201 and will not be described in detail.

[0074] 302. When it is monitored at a first moment that the running state of the started first process is in an idle state and the duration of being in the idle state is greater than a first preset duration threshold, migrate the first process to run on the energy efficiency core.

[0075] Exemplarily, this step may refer to the above-mentioned step 202 and will not be described in detail.

[0076] In an example, Figure 4 The following is the Task Manager interface of the Windows operating system without starting the monitoring device, especially focusing on the statistics of processor and memory usage. The first column is the program running on the computer, and the sixth column is the CPU affinity, that is, the operating system's ability to specify that one or more processes can only run on performance cores or energy efficiency cores. It can be seen that all processes of the computer can run normally on CPU0 to CPU21, that is, all processes of the computer can run normally on performance cores or energy efficiency cores. Figure 5 The following is the Task Manager interface of Windows operating system without starting the monitoring device, including the name, status, CPU usage, memory usage, disk read / write speed and network connection status of each process. It can be seen that only a few processes of the computer have entered the performance mode.

[0077] In an example, Figure 6 The figure shows the Task Manager interface of the Windows operating system with the monitoring device started, especially focusing on the statistics of processor and memory usage. The first column is the program running on the computer, and the sixth column is the CPU affinity, that is, the operating system's ability to specify that one or more processes can only run on performance cores or energy efficiency cores. It can be seen that some processes of the computer can run normally on CPU0 to CPU21, that is, some processes of the computer can run normally on performance cores or energy efficiency cores, and some processes are restricted to run on CPU2E to CPU9E, and CPU20E to CPU21E, that is, some processes of the computer are restricted to run on energy efficiency cores. Figure 7The following is the second interface of the Windows operating system's Task Manager when the monitoring device is enabled, including the name, status, CPU usage, memory usage, disk read / write speed, and network connection status of each process. It can be seen that more processes on the computer have entered the performance mode, thereby reducing power consumption and saving battery.

[0078] 303. When it is monitored at a third moment before the second moment that the first process is still in an idle state and the duration of the idle state is greater than a second preset duration threshold, the operation of the performance core and the energy efficiency core is prohibited; wherein the second preset duration threshold is greater than the first preset duration threshold.

[0079] In one example, when prohibiting the operation of the performance core and the energy efficiency core, step 303 includes the following process: prohibiting the operation of the performance core in the standby state, and prohibiting the operation of the energy efficiency core in the standby state.

[0080] In one example, step 303 prohibits the operation of the performance core in the standby state and prohibits the operation of the energy efficiency core in the standby state, including the following implementation methods:

[0081] The first implementation method is to determine the occupancy state of the resources occupied by the processor; determine the level information corresponding to the occupancy state according to a preset mapping relationship; wherein the preset mapping relationship is a mapping relationship between the occupancy state and the level information, and the level information indicates the number of performance cores to be prohibited and the number of energy efficiency cores to be prohibited; according to the determined level information, prohibit the operation of the performance cores of the number of performance cores indicated by the level information and which are in the standby state, and prohibit the operation of the energy efficiency cores of the number of energy efficiency cores indicated by the level information and which are in the standby state.

[0082] In the second implementation mode, the performance core has a priority and the energy efficiency core has a priority; the operation of the performance core with the highest priority and in the standby state is prohibited; and the operation of the energy efficiency core with the highest priority and in the standby state is prohibited.

[0083] For example, after the computer is started, the built-in monitoring device will automatically run immediately to continuously monitor the working status of the processes running in the processor. At the first moment, when the processor enters the idle state and lasts for more than a first preset time threshold, the system will respond by limiting the active program processes in this time period to run on the energy efficiency core, while the performance core remains in standby state to save energy.

[0084] Furthermore, at a third moment before the second moment, the monitoring device will continuously monitor the load of the first process of the processor and whether the duration of these first processes restricted to the energy efficiency cores is greater than the second preset duration threshold, no external input is received, and the processor load remains at a low level. The second preset duration threshold is 10 minutes to 15 minutes. If this condition is met, the processor will take energy-saving measures and prohibit the operation of some performance cores and energy efficiency cores according to the preset strategy to reduce unnecessary power consumption, wherein prohibition means that these performance cores and energy efficiency cores will no longer participate in the current computing task, thereby achieving energy saving.

[0085] In one example, based on the resource occupancy status, the current processor resource occupancy status is first evaluated, and this status is converted into corresponding level information through a preset mapping relationship. This level information directly indicates the number of performance cores and energy efficiency cores that need to be prohibited from running. Then, the processor will accurately prohibit the specified number of performance cores and energy efficiency cores that are currently in standby state based on this level information.

[0086] In one example, based on the priority, the system pre-sets the priority for the performance core and the energy efficiency core. In this way, the processor will directly prohibit the operation of the performance core and energy efficiency core that are at the highest priority and are currently in the standby state.

[0087] 304. When it is determined that the processor receives an input operation, or that the processor has an output operation, or that the processor is in an overloaded state, it is determined that the process running in the processor is in a running state.

[0088] Exemplarily, the monitoring device remains active and continuously monitors various indicators of the processor. At this time, the main purpose of monitoring is to timely identify the state changes of the processor so as to adjust the processor resource allocation according to actual needs. When the monitoring device detects that the processor receives an input operation, or monitors that the processor has an output operation, or monitors that the processor is in an overloaded state, it will determine that the working state of the process running in the processor has changed from idle or energy-saving mode to running state.

[0089] In one example, an input operation is received, and the user interacts with the system through a keyboard, mouse, touch screen or other input device to generate input signals. The monitoring device captures these signals and identifies them as tasks that the processor needs to process, thereby determining that the processor has entered the running state.

[0090] In one example, there is an output operation. Although directly monitoring the output operation may not be as intuitive as monitoring the input operation, in some cases, the internal operation of the system (such as the completion of a computing task) may trigger an output operation, such as updating the screen display, writing a file to the disk, etc. The monitoring device can infer the operating status of the processor by monitoring the occurrence of these output operations.

[0091] In one example, the processor is in an overloaded state. When the system load suddenly increases and the processor needs to handle a large number of tasks, its running state will change significantly. The monitoring device will monitor key indicators such as processor usage and memory usage. When a process or application with excessive processor usage appears, it can be determined that the processor is in an overloaded state, that is, the processor is in a running state.

[0092] 305. When it is monitored at the second moment that the state of the processor is in the running state, restore the first process migrated to the energy efficiency core to the performance core for running.

[0093] For example, during the process of monitoring the processor state by the monitoring device at the second moment, once it is identified that the processor state changes from idle or energy-saving mode to running state, the system will take corresponding measures to meet the current task performance requirements. When the processor is monitored to enter the running state, and the processor determines that the current task load or performance requirements exceed the processing capacity of the energy-efficient core, the system will automatically trigger a process migration process. In this process, the first process that was originally restricted to run on the energy-efficient core will be migrated back to the performance core for execution. This is because the performance core usually has a higher processing speed and stronger computing power, and can better cope with complex and heavy computing tasks.

[0094] In one example, as shown in Table 1, the power consumption of different computers is compared when the monitoring device is not turned on and when the monitoring device is turned on. Three computer devices are used to simulate the computer being turned on and kept in a stable operating state without turning on the monitoring device and to play a video lasting forty minutes. The parameters of computer one are U7+32G RAM+1TB SSD, the parameters of computer two are I7+32G RAM+1TB SSD, and the parameters of computer three are I5+16GRAM+512G SSD. Specifically, when the monitoring device is not turned on, the power consumption of computer one is 4.4W after playing a video lasting forty minutes; when the monitoring device is turned on, the power consumption of the whole machine is 3.91W after playing a video lasting forty minutes; the power consumption of the whole machine is reduced to 13%. When the monitoring device is not turned on, the power consumption of computer two is 4.57W after playing a video lasting forty minutes; when the monitoring device is turned on, the power consumption of the whole machine is 3.98W after playing a video lasting forty minutes; the power consumption of the whole machine is reduced to 14.8%. When computer three plays a video lasting for 40 minutes without the monitoring device turned on, the power consumption of the whole machine is 4.42W; when the monitoring device is turned on, the power consumption of the whole machine is 3.87W after playing a video lasting for 40 minutes; the power consumption of the whole machine is reduced to 14.2%.

[0095] Table 1 Comparison of power consumption of different computers with and without monitoring devices turned on

[0096]

[0097] In one example, as shown in Table 2, the opening time of different software running on the computer by the monitoring device. Using a computer device with parameters of I5CPU+16G RAM+512SSD, the opening time difference of some commonly used computer software (including Pcmarker10, 3Dmark, AE, CAD, Excel, PPT, Word) was recorded three times when the computer did not turn on the monitoring device and turned on the monitoring device. When the monitoring device was not turned on, the average time to open the Pcmarker10 software was 7.07 seconds; when the monitoring device was turned on, the average time to open the Pcmarker10 software was 7.35 seconds; after the monitoring device was turned on, opening Pcmarker10 was only 0.28 seconds slower than not turning on the monitoring device. When the monitoring device was not turned on, the average time to open the 3Dmaker software was 37.55 seconds; when the monitoring device was turned on, the average time to open the 3Dmaker software was 37.86 seconds; after the monitoring device was turned on, opening 3Dmaker was only 0.31 seconds slower than not turning on the monitoring device. When the monitoring device is not turned on, the average time to open the AE software is 6.57 seconds; when the monitoring device is turned on, the average time to open the AE software is 6.16 seconds; after the monitoring device is turned on, AE is opened 0.41 seconds faster than when the monitoring device is not turned on. When the monitoring device is not turned on, the average time to open the CAD software is 7.63 seconds; when the monitoring device is turned on, the average time to open the CAD software is 8.71 seconds; after the monitoring device is turned on, CAD is only 0.72 seconds slower than when the monitoring device is not turned on. When the monitoring device is not turned on, the average time to open the Excel software is 1.83 seconds; when the monitoring device is turned on, the average time to open the Excel software is 2.06 seconds; after the monitoring device is turned on, Excel is only 0.23 seconds slower than when the monitoring device is not turned on. When the monitoring device is not turned on, the average time to open the PPT software is 1.4 seconds; when the monitoring device is turned on, the average time to open the PPT software is 1.64 seconds; after the monitoring device is turned on, PPT is only 0.24 seconds slower than when the monitoring device is not turned on. When the monitoring device is not turned on, the average time to open the Word software is 1.41 seconds; when the monitoring device is turned on, the average time to open the AE software is 1.35 seconds; after the monitoring device is turned on, Word is opened 0.06 seconds faster than without the monitoring device. It can be seen that turning on the monitoring software has little actual impact on users opening commonly used software.

[0098] Table 2 The opening time of different software running on the computer by monitoring equipment

[0099]

[0100] The process adjustment method, device and equipment applied to the processor provided by the embodiment of the present application detects the running state of the processor in real time through the monitoring device. When the program process runs in the energy efficiency core, and the running time is greater than the second preset time threshold, and the monitoring device does not monitor the processor to be overloaded, it is determined that the current resource utilization is extremely low and suitable for further optimization of power consumption. According to the determined level information, the processor disables the corresponding number of performance cores and energy efficiency cores in standby state. If there is a priority setting, the processor will preferentially disable the idle cores with the highest priority to ensure that the operation of these cores can be quickly restored when needed, reducing the wake-up delay. When the input and output operations are monitored to increase or the processor is overloaded, the computer can respond quickly and restore the previously disabled core to a usable state, ensuring that the computer can quickly restore the performance running state to meet the user's application needs. Through the intelligent monitoring device, the refined management of the processor power consumption is realized, which not only ensures the performance of the processor under high load, but also significantly reduces the power consumption when idle, achieving the technical effect of extending battery life and improving user experience.

[0101] Based on the above embodiments, the present application also includes the following process: in response to a viewing instruction, a preset interface is displayed; wherein the viewing instruction indicates that the number of performance cores and the number of energy efficiency cores in the processor need to be viewed; the number of performance cores and the number of energy efficiency cores in the processor are displayed in the preset interface.

[0102] For example, a user sends an operation request, that is, he wants to view the specific information of the performance cores and energy efficiency cores in the current processor. After the software responds to this viewing instruction, it will display a preset interface, which contains the information the user wants to view. In the preset interface, the software will clearly list which are performance cores and which are energy efficiency cores.

[0103] In one example, Figure 8 A schematic diagram of a display interface for viewing the number of performance cores and the number of energy efficiency cores provided in an embodiment of the present application, such as Figure 8 As shown, the interface lists the names of multiple central processing units (CPUs), such as "CPU0", "CPU8E", "CPU16E", etc., all the way to "CPU63". These CPU names represent different cores, among which CPU0 to CPU1, and CPU10 to CPU19 are performance cores, and CPU2E to CPU9E, and CPU20E to CPU21E are energy efficiency cores; as well as buttons such as "Interleave", "Deselect", and "Clear" to facilitate users to quickly select the CPU to run.

[0104] In an example, Figure 4The following is a screenshot of the Windows Task Manager interface without the monitoring device enabled, especially focusing on the CPU and memory usage statistics. The first column shows the programs currently running on the computer, and the sixth column shows the CPU affinity, which is the operating system's ability to specify that one or more processes can only run on performance cores or energy efficiency cores. Users can click on CPU affinity, and the interface will jump to the following: Figure 8 As shown, the user can choose to run the software process in the performance core, or the energy efficiency core, or randomly select the performance core and the energy efficiency core; when the user clicks the "Performance (P) Core" button, all performance cores are selected, that is, CPU0 to CPU1, and CPU10 to CPU19 are selected; when the user clicks the "Energy Efficiency (E) Core" button, all performance cores are selected, that is, CPU2E to CPU9E, and CPU20E to CPU21E are selected; when the user clicks the "Interleave" button, all CPUs are selected, that is, CPU0 to CPU21E are selected; when the user clicks the "Invert" button, the originally selected CPUs on the interface will become unselected, and those originally unselected CPUs will be selected. In short, by clicking a button, the previously selected and unselected CPUs will swap their selected states; when the user clicks the "Clear" button, all selected CPUs will be cleared with one click, so that the user can reselect.

[0105] Fig. 9 A schematic diagram of a structure of a determination device for process adjustment of a processor provided in an embodiment of the present application Figure 1 ,like Fig. 9 As shown, a plurality of performance cores and a plurality of energy efficiency cores are deployed in the processor; the power consumption of the performance core is greater than the power consumption of the energy efficiency core, and the processing capability of the performance core is greater than the processing capability of the energy efficiency core. The process adjustment device 90 applied to the processor provided in this embodiment includes:

[0106] The monitoring module 91 monitors the working status of the process running in the processor.

[0107] The migration module 92 is used to migrate the first process to the energy efficiency core for operation when it is monitored at the first moment that the running state of the started first process is in an idle state and the duration of the idle state is greater than the first preset duration threshold. The recovery module 93 is used to restore the first process migrated to the energy efficiency core to the performance core for operation when it is monitored at the second moment that the first process is in a running state.

[0108] The device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be described in detail here.

[0109] Fig.10 A schematic diagram of a structure of a determination device for process adjustment of a processor provided in an embodiment of the present application Figure 2 ,like Fig.10 As shown, a plurality of performance cores and a plurality of energy efficiency cores are deployed in the processor; the power consumption of the performance core is greater than the power consumption of the energy efficiency core, and the processing capability of the performance core is greater than the processing capability of the energy efficiency core. The process adjustment device 100 applied to the processor provided in this embodiment includes:

[0110] The monitoring module 101 is used to monitor the working status of the process running in the processor.

[0111] The migration module 102 is used to migrate the first process to the energy-efficient core for execution when it is monitored at a first moment that the running state of the started first process is in an idle state and the duration of the idle state is greater than a first preset duration threshold.

[0112] The recovery module 103 is configured to recover the first process migrated to the energy efficiency core to the performance core for running when it is monitored at the second moment that the first process is in the running state.

[0113] In one example, the migration module 102 is specifically configured to:

[0114] When it is determined that the processor receives an input operation, or that the processor has an output operation, or that the processor is in an overloaded state, it is determined that the process running in the processor is in a running state.

[0115] In one example, the device provided in the embodiment of the present application further includes:

[0116] The prohibition module 104 prohibits the operation of the performance core and the energy efficiency core when it monitors at a third moment before the second moment that the first process is still in an idle state and the duration of the idle state is greater than a second preset duration threshold; wherein the second preset duration threshold is greater than the first preset duration threshold.

[0117] In one example, when prohibiting the operation of the performance core and the energy efficiency core, the prohibition module is specifically used to: prohibit the operation of the performance core in the standby state, and prohibit the operation of the energy efficiency core in the standby state.

[0118] In one example, when the prohibition module prohibits the operation of a performance core in a standby state and prohibits the operation of an energy efficiency core in a standby state, it is specifically used to: determine the occupancy state of processor resources; determine the level information corresponding to the occupancy state according to a preset mapping relationship; wherein the preset mapping relationship is a mapping relationship between the occupancy state and the level information, and the level information indicates the number of performance cores to be prohibited and the number of energy efficiency cores to be prohibited; according to the determined level information, prohibit the operation of performance cores in a standby state with the number of performance cores indicated by the level information, and prohibit the operation of energy efficiency cores in a standby state with the number of energy efficiency cores indicated by the level information.

[0119] In one example, the performance core has a priority and the energy efficiency core has a priority; the prohibition module prohibits the operation of the performance core in the standby state and prohibits the operation of the energy efficiency core in the standby state, specifically for:

[0120] The operation of the performance core which is at the highest priority and in the standby state is prohibited; and the operation of the energy efficiency core which is at the highest priority and in the standby state is prohibited.

[0121] In one example, the device provided in the embodiment of the present application further includes:

[0122] The display module is used to display a preset interface in response to a viewing instruction; wherein the viewing instruction indicates that the number of performance cores and the number of energy efficiency cores in the processor need to be viewed; the preset interface displays the number of performance cores and the number of energy efficiency cores in the processor.

[0123] The device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be described in detail here.

[0124] An embodiment of the present application also provides a processor, which includes multiple performance cores and multiple energy efficiency cores.

[0125] Fig.11 This is a schematic diagram of the structure of an electronic device for adjusting the process of a processor provided in an embodiment of the present application. Fig.11 As shown, the electronic device 110 provided in this embodiment includes: at least one processor 111 and a memory 112. Optionally, the device 110 also includes a communication component 113. The processor 111, the memory 112 and the communication component 113 are connected via a bus 114.

[0126] In a specific implementation process, at least one processor 111 executes the computer-executable instructions stored in the memory 112, so that at least one processor 111 executes the above method.

[0127] The specific implementation process of the processor 111 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0128] In the above embodiments, it should be understood that the processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the invention can be directly implemented by a hardware processor or by a combination of hardware and software modules in the processor.

[0129] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.

[0130] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of this application is not limited to only one bus or one type of bus.

[0131] An embodiment of the present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0132] An embodiment of the present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.

[0133] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0134] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0135] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

[0136] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0137] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0138] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0139] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0140] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A process adjustment method applied to a processor, characterized in that: The processor is deployed with multiple performance cores and multiple energy efficiency cores; The power consumption of the performance core is greater than the power consumption of the energy efficiency core, and the processing capability of the performance core is greater than the processing capability of the energy efficiency core, and the method includes: Monitoring the working status of the process running in the processor; When it is monitored at a first moment that the running state of the started first process is in an idle state and the duration of being in the idle state is greater than a first preset duration threshold, migrating the first process to the energy efficiency core for running; When it is monitored at the second moment that the first process is in the running state, the first process migrated to the energy efficiency core is restored to the performance core for running.

2. The method according to claim 1, characterized in that Monitoring the working status of the process running in the processor includes: When it is determined that the processor receives an input operation, or that the processor has an output operation, or that the processor is in an overloaded state, it is determined that the process running in the processor is in a running state.

3. The method according to claim 1, characterized in that The method further comprises: When it is monitored at a third moment before the second moment that the first process is still in an idle state and the duration of the idle state is greater than a second preset duration threshold, the operation of the performance core and the energy efficiency core is prohibited; wherein the second preset duration threshold is greater than the first preset duration threshold.

4. The method according to claim 3, characterized in that Prohibiting the operation of the performance core and the energy efficiency core, including: The operation of the performance cores in the standby state is prohibited, and the operation of the energy efficiency cores in the standby state is prohibited.

5. The method according to claim 4, characterized in that The performance cores in the standby state are prohibited from running, and the energy efficiency cores in the standby state are prohibited from running, including: Determining an occupation status of resources occupied by the processor; Determine the level information corresponding to the occupancy state according to a preset mapping relationship; wherein the preset mapping relationship is a mapping relationship between the occupancy state and the level information, and the level information indicates the number of performance cores of the performance cores to be prohibited and the number of energy efficiency cores of the energy efficiency cores to be prohibited; According to the determined level information, the operation of the performance cores in the standby state whose number is indicated by the level information is prohibited, and the operation of the energy efficiency cores in the standby state whose number is indicated by the level information is prohibited.

6. The method according to claim 4, characterized in that The performance core has a priority, and the energy efficiency core has a priority; The performance cores in the standby state are prohibited from running, and the energy efficiency cores in the standby state are prohibited from running, including: Disable the operation of the performance core that is at the highest priority and in standby state; And prohibit the operation of the energy efficiency core that is at the highest priority and in the standby state.

7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: In response to a viewing instruction, a preset interface is displayed; wherein the viewing instruction indicates that the number of performance cores and the number of energy efficiency cores in the processor need to be viewed; the preset interface displays the number of performance cores and the number of energy efficiency cores in the processor.

8. A process adjustment device applied to a processor, characterized in that: The device comprises: a module corresponding to executing the method according to any one of claims 1 to 7.

9. An electronic device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 7.

10. A computer-readable storage medium / computer program product, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor; and A computer program product comprises a computer program, which implements the method according to any one of claims 1 to 7 when executed by a processor.