An energy efficiency optimization method for mobile application processors
By constructing and applying the frequency modulation model of FPS-Meet and FPS-Loss scenarios, the processor frequency is adjusted in real time, which solves the problem of insufficient frequency modulation accuracy and energy consumption balance in mobile operating systems, and achieves efficient frequency adjustment and energy efficiency optimization in mobile applications. , avoid frame drops and freezes, and improve user experience.
Patent Information
- Application Number
- CN202110530796.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-15
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-05-15
AI Technical Summary
When the existing mobile operating system adjusts the processor frequency, the frequency adjustment accuracy is insufficient and cannot meet the needs of complex game scenarios, resulting in excess or insufficient performance, which affects the user experience, especially in mobile applications with high interactivity and real-time requirements. The problem of frame loss and lag is serious, and energy consumption balance is not considered enough.
By collecting the system software and hardware status data when the mobile game is running, it is divided into two scenarios: FPS-Meet and FPS-Loss, and the corresponding frequency modulation model is constructed. The machine learning algorithm M5P model tree and heuristic algorithm training are used to construct FPS-Meet and FPS-Loss. The FPS-Loss scene frequency modulation model is written into the operating system kernel to adjust the processor frequency in real time to avoid frame loss and improve energy efficiency.
It achieves precise frequency adjustment when computing load fluctuates, avoids frame drops and freezes, improves processor energy efficiency, enhances user experience, ensures a balance between performance and energy consumption, and adapts to the needs of different game scenarios.
Smart Images

Figure CN113434286B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of dynamic frequency adjustment of computer operating systems, and in particular, to an energy efficiency optimization method applicable to mobile application processors. Background Art
[0002] With the development of mobile processors, mobile game applications are becoming more and more complex, with dazzling rendering effects, rich game scenes, and even professional game engine support. Along with the above characteristics, mobile games require powerful mobile CPUs to meet the processing tasks and graphics rendering tasks of complex game scenes. Mobile processors adjust performance according to actual needs (through frequency modulation). Insufficient performance will cause frame drops and lags, while excessive performance will cause heat and high energy consumption, both of which will seriously affect the user experience, so the adjustment strategy is the key.
[0003] In order to achieve reasonable allocation of system resources and optimize energy consumption, mobile operating systems such as Android and iOS have embedded the function of adjusting hardware performance in the system software. Taking the Android system as an example, the system kernel has a built-in DVFS (Dynamic Voltage Frequency Scaling) strategy to optimize system energy efficiency. The Android system divides the processor frequency into different levels, corresponding to different computing performance. When the application is running, the CPU utilization and frequency are monitored through the PMU (Performance Monitor Unit), and the task load is sampled at a certain time interval (the default is 80ms). According to the current task load, the CPU voltage and frequency level are adjusted so that the CPU can process the current computing task with reasonable performance, so as to avoid resource waste and energy loss caused by excessive performance due to excessive frequency or insufficient computing performance due to insufficient frequency, resulting in application performance degradation, thereby affecting the user experience.
[0004] However, due to its implementation mechanism (mainly based on the characteristics of desktop applications), the optimization effect on mobile applications is extremely limited, especially for mobile applications with extremely high requirements for real-time and interactivity, the shortcomings are very prominent:
[0005] (1) The frequency modulation accuracy is insufficient. The adjustable frequency is divided into several different levels, which cannot meet the complex and diverse computing performance requirements of mobile games;
[0006] (2) The system is mainly stable, the frequency modulation concept is conservative, and the balance between performance and power consumption is not considered enough. In most cases, there is excess performance, which brings additional energy consumption.
[0007] (3) The frequency change prediction based on historical load sampling has high latency and cannot meet the real-time requirements of frequency modulation. It cannot respond to sudden high-performance scenarios in a timely manner, resulting in frame drops and freezes in the game, affecting the user experience.
[0008] Regarding the related technologies, there is currently no effective solution to achieve precise frequency modulation, avoid frame losses and improve energy efficiency for high-performance, highly interactive applications based on mobile terminals. Summary of the invention
[0009] The embodiment of the present application provides a method for optimizing energy efficiency of a mobile gaming processor. The method can, based on the performance requirements of the application scenario, at least solve the problem of accurately adjusting the frequency when the application computing load fluctuates, avoiding frame drops and freezes, improving energy efficiency, and ensuring user experience.
[0010] In one embodiment of the present application, a method for optimizing energy efficiency of a mobile application processor is proposed, the method comprising the following steps:
[0011] Step 1: Collect the target environment status data of the system hardware and software when the mobile game is running, and divide the game running status into FPS-Meet and FPS-Loss according to whether frame loss occurs. Process the target environment status data to construct the FPS-Meet scene dataset and FPS-Loss dataset;
[0012] Step 2: Construct an initial FPS-Meet scenario frequency modulation model and an initial FPS-Loss scenario frequency modulation model, and use the FPS-Meet scenario data set to train the initial FPS-Meet scenario frequency modulation model to obtain the FPS-Meet scenario frequency modulation model;
[0013] Using the FPS-Loss data set to train the initial FPS-Loss scene frequency modulation model, to obtain the FPS-Loss scene frequency modulation model;
[0014] Step 3: Write the FPS-Meet scenario frequency modulation model and the FPS-Loss scenario frequency modulation model into the operating system kernel; when the mobile application is running, read the system hardware and software environment status in the operating system kernel at regular intervals, and call the corresponding model according to whether the current game loses frames;
[0015] Step 4: Execute frequency scheduling operation in the operating system kernel state, apply the FPS-Meet scenario frequency modulation model and / or the FPS-Loss scenario frequency modulation model to perform frequency calculation, and adjust the processor frequency to the model calculation frequency.
[0016] In step 1, the target environment state data of the system hardware and software when the mobile game is running is collected, and the game running state is divided into FPS-Meet and FPS-Loss according to whether frame loss occurs, wherein the target environment state data includes: CPU load, CPU frequency, CPU temperature, system voltage, memory read and write rate, game FPS, and the target environment state data is collected when different types of mobile game applications are running with different picture quality combinations. For the FPS-Meet data set, the data difference between the two collection time intervals of each dimensional state variable is calculated as the rate of change of the state variable.
[0017] In step 2, the FPS-Meet scene data set is used to train the initial FPS-Meet scene frequency modulation model to obtain the FPS-Meet scene frequency modulation model, wherein the FPS-Meet scene frequency modulation model is trained using the machine learning algorithm M5P model tree. First, the game scene is divided by the processed state variables, and for the game sub-scenes with similar load change trends, the regression equation between the CPU frequency change rate and other state variables is learned, and finally a tree model is constructed, in which the non-leaf nodes are the scene division variables, and the leaf nodes are the regression equations corresponding to the divided sub-scenes.
[0018] In step 2, the initial FPS-Loss scene frequency modulation model is trained using the FPS-Loss data set to obtain the FPS-Loss scene frequency modulation model, wherein the FPS-Loss scene frequency modulation model learns the optimal burst frequency when the computing performance demand of mobile games increases suddenly through a heuristic algorithm, and the burst frequency is clustered to cluster the FPS-Loss scenes according to the state characteristics, and the similar scenes are clustered into one category, and the upper bound of the burst frequency corresponding to such sub-scenes is learned as the burst frequency corresponding to such sub-scenes, and a tuple list consisting of the FPS-Loss sub-scene features and the corresponding burst variables is constructed as the frequency lookup table BFT of the FPS-Loss scene frequency modulation model, and the frequency lookup table BFT is continuously optimized and iteratively updated through adaptive training.
[0019] In one embodiment of the present application, a computer-readable storage medium is further provided, wherein a computer program is stored in the storage medium, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0020] In one embodiment of the present application, an electronic device is also proposed, including 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 execute the steps in any of the above method embodiments.
[0021] Through the embodiments of the present application, the processor energy efficiency optimization and user experience improvement can be achieved for any Android smartphone by collecting data, training models, and embedding the system kernel during the operation of mobile applications. The present invention can achieve scene-adaptive processor frequency adjustment according to the mobile application scenario. When the computing load fluctuates slightly, the required frequency can be accurately calculated to avoid extra energy consumption caused by excess performance; when the computing load fluctuates violently, the frequency can be increased in time to avoid frame loss and freezes that affect the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0023] Figure 1 It is a hardware structure block diagram of a mobile terminal of a method for optimizing energy efficiency of a mobile game processor according to an embodiment of the present application;
[0024] Figure 2 It is a schematic diagram for representing data collection and feature extraction according to the present application;
[0025] Figure 3 A simulation diagram for displaying the FPS-Meet scenario frequency modulation model constructed in this application;
[0026] Figure 4 A simulation diagram for displaying the FPS-Loss scenario frequency modulation model constructed in this application;
[0027] Figure 5 It is a schematic diagram of the operation process of the FPS-Meet scenario frequency modulation model in this application;
[0028] Figure 6 It is a schematic diagram of the operation process of the FPS-Loss scenario frequency modulation model in this application;
[0029] Figure 7 It is a schematic diagram of the heuristic optimal burst frequency search process in an embodiment of the present application. DETAILED DESCRIPTION
[0030] The present application 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.
[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0032] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 1 is a hardware structure block diagram of a mobile terminal of a mobile game processor energy efficiency optimization method according to an embodiment of the present application. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0033] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the training method of the speech recognition neural network model in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0034] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0035] refer to Figure 2-Figure 7, an energy efficiency optimization method for a mobile application processor, the method comprising the following steps:
[0036] Step 1: Collect the target environment status data of the system software and hardware when the mobile game is running. According to whether frame loss occurs, the game running status is divided into FPS-Meet and FPS-Loss. The target environment status data is processed, and the system software and hardware environment status data when the mobile game is running is collected. The state where the system FPS (Frames Per Second) value is higher than or equal to the minimum required PFS value for smooth game operation (no frame loss occurs) is defined as FPS-Meet, and the state where the system FPS (Frames Per Second) value is lower than the minimum required FPS value for smooth game operation (frame loss occurs) is defined as FPS-Loss.
[0037] Construct an FPS-Meet scenario data set and an FPS-Loss data set; collect the target environment status data of the system hardware and software when the mobile game is running, and divide the game running status into FPS-Meet and FPS-Loss according to whether frame loss occurs, wherein the target environment status data includes: CPU load, CPU frequency, CPU temperature, system voltage, memory read and write rate, game FPS, and the target environment status data is collected when different types of mobile game applications are running with different picture quality combinations. By periodically reading the statistical information of the system performance monitoring unit PMU (Performance Monitor Unit), the above-mentioned software and hardware status data is obtained as the original data set for frequency modulation model training. The collected data is collected when different types of mobile game applications are running with different picture quality combinations to ensure that the collected data can cover all possible game running scenarios as comprehensively as possible. Use the current CPU frequency and load status and the maximum CPU frequency and load to construct the processor performance space characteristics.
[0038]
[0039] As a new feature in the original data set. For the original data set, the data is divided into an FPS-Meet scene data set and an FPS-Loss data set according to whether the frame is lost. For the FPS-Meet data set, the data difference between two acquisition time intervals of each dimensional state variable is calculated as the change rate of the state variable.
[0040] Step 2: Construct an initial FPS-Meet scenario frequency modulation model and an initial FPS-Loss scenario frequency modulation model, and use the FPS-Meet scenario data set to train the initial FPS-Meet scenario frequency modulation model to obtain the FPS-Meet scenario frequency modulation model.
[0041] Among them, the steps for building the FPS-Meet scenario frequency modulation model are:
[0042] Set the mean square error threshold SD for training termination condition threshold and the dataset size threshold D size , The M5P model tree is applied to the entire data set to perform tree-like feature space division to distinguish different sub-scenes.
[0043] After each node is divided, the standard deviation SD and the data set size DataSize of the linear frequency change rate regression model corresponding to the node are calculated, and the SD and the standard deviation threshold SD are compared. threshzold The size of DataSize and the size of the data scale threshold D size If the termination condition is met, the node is a leaf node (including the frequency change rate regression model corresponding to the game scene corresponding to the node). Otherwise, select a certain value of a certain dimension feature on the data set corresponding to the node according to the feature space division basis to continue the feature space division.
[0044] The above steps are recursively executed until the termination condition is met and the root node of the trained M5P tree is returned.
[0045] Furthermore, the steps for constructing the FPS-Loss scene frequency modulation model in step b are:
[0046] Assume that at time t, the system environment state where FPS-Loss occurs due to the burst of game performance requirements is as follows: the CPU frequency is Freq, the load is U, the system voltage is V, and the number of lost frames is Q cnt , set the FPS value that satisfies the smooth operation of the game to be Q std .
[0047] 1)I pg ,I pc ,I ps Initialization
[0048] Assume that the system voltage expectation of the FPS-Loss sub-scenario τ (corresponding to the 9 clustering results) to which the burst scenario belongs is E τ (V), the processor frequency is expected to be E τ (Freq), the processor load expectation is E τ (U), the maximum frequency of the processor is Freq max , the maximum load is U max , the expected number of lost frames is E τ (FPS loss ), I pg ,I pc ,I ps The initialization is as follows:
[0049] By looking up the burst frequency corresponding to the FPS-Loss sub-scene τ at time t in the initialized BFT (Burst Frequency Table), the burst frequency is Freq τ , at this time the system sets the frequency to Freq′=Freq τ After that, the system environment status changes as follows: processor load is U', system voltage is V', and number of dropped frames is Q' cnt .
[0050] I pg initialization
[0051] FPS gain factor ε pg :
[0052] Performance Gain Index I pg :
[0053]
[0054] FPS gain factor ε pg After frequency adjustment, the game FPS value is Q' cnt The FPS value required for the game to run smoothly std The ratio between the difference between the two and the FPS value benefit brought by this frequency modulation is used to evaluate the performance improvement effect of this frequency modulation. Finally, the gain factor ε is used pg Calculate the performance gain index I pg Obviously, from the formula, we can see that the greater the FPS improvement after frequency modulation, the higher the I pg According to the principle of program locality, when the performance gain index is larger, it means that the frequency modulation space is larger at this moment, and the optimal frequency can be searched with a longer step size; vice versa.
[0055] I pc initialization
[0056] Energy consumption cost factor ε pc :
[0057]
[0058]
[0059] Energy cost index I pc :
[0060]
[0061] Energy consumption cost factor ε pcAccording to the functional relationship between processor energy consumption and system voltage, the ratio of the cubic difference of system voltage before and after the two frequency modulations is used to represent the incremental ratio of system energy consumption between the two frequency modulations, and the energy consumption overhead caused by the frequency modulation is evaluated.
[0062] I ps initialization
[0063] Performance space variation factor ε ps :
[0064]
[0065] Performance space variation index I ps :
[0066] I ps =ε ps
[0067] Performance Space Index I ps Used to measure the change in processor performance space caused by two frequency modulation operations, combined with the performance gain index I pg and energy cost index I pc The energy efficiency ratio of the frequency modulation operation can be evaluated. If the performance gain index and the performance space variation index are greater than the relative energy cost index and the performance space variation index, it means that the energy efficiency benefit brought by this frequency modulation is high; otherwise, the energy efficiency benefit brought is low.
[0068] The heuristic optimal frequency search concept of the present invention is as follows: take the frequency change value of the initial search as the base step length, evaluate the frequency modulation effect according to the performance gain, power consumption cost and the resulting change in processor performance space caused by this frequency modulation, and determine the step weight of the next frequency modulation. The above two frequency modulation step lengths d′=Freq′-Freq, the performance gain index can be the gain index I pg , energy cost index I pc and the performance space variation index I ps The step size iteration function designed by the present invention is as follows based on the technical characteristics of the microprocessor and combined with existing research results:
[0069]
[0070]
[0071] Right now,
[0072]
[0073] The δ point is the point where the performance gain and power consumption cost are balanced (i.e. Figure 4 δ point in the Minimum.
[0074] Therefore, on the left side of point δ, the frequency can be adjusted with a larger step size to ensure a higher performance gain; on the right side of point δ, the frequency can be adjusted with a smaller step size to avoid excessive step size causing additional energy consumption. It is easy to see from the weight formula that the weight value range is [0, 1) and is continuously updated as the system state changes, so the convergence of the frequency step size can be guaranteed.
[0075] Based on the above step weight determination principle and frequency search idea, the heuristic frequency search process of this method is as follows:
[0076] a. When a performance burst occurs and causes FPS-Loss, adjust the LITTLE core frequency to the corresponding burst frequency by searching the BFT table;
[0077] b. According to the changes in the game software and hardware status after adjustment in 1, determine whether the performance requirements of the current burst are met; if so, update the LITTLE core frequency value of the BFT table item corresponding to the current burst scenario; if not, determine whether the current LITTLE core load has reached the load threshold. If not, calculate the corresponding value of the LITTLE core in the current state according to the performance gain index, energy cost index, performance space change index and step weight calculation formula given above, and calculate the corresponding frequency modulation step for frequency modulation; if the LITTLE core reaches the load threshold, the frequency search direction is adjusted to the big core. Use the same method to calculate the big core frequency modulation step and perform frequency modulation;
[0078] c. According to the game state changes caused by the frequency modulation in 2, the frequency search direction is gradually searched upward along the LITTLE-big-LITTLE direction, and the number of frequency iterations is counted. When the terminal count is reached, the step size stops updating to avoid the step size being too small and causing the convergence speed to be too slow. Repeat the above steps until the optimal burst frequency in this scenario is found.
[0079] Then, the FPS-Loss data set is used to train the initial FPS-Loss scene frequency modulation model to obtain the FPS-Loss scene frequency modulation model;
[0080] The FPS-Meet scene data set is used to train the initial FPS-Meet scene frequency modulation model to obtain the FPS-Meet scene frequency modulation model, wherein the FPS-Meet scene frequency modulation model is trained using the machine learning algorithm M5P model tree. First, the game scene is divided by the processed state variables, and for the game sub-scenes with similar load change trends, the regression equation between the CPU frequency change rate and other state variables is learned, and finally a tree model is constructed, in which the non-leaf nodes are the scene division variables, and the leaf nodes are the regression equations corresponding to the divided sub-scenes.
[0081] Use the FPS-Loss dataset to train the initial FPS-Loss scene frequency modulation model to obtain the FPS-Loss scene frequency modulation model, wherein the frequency modulation model of the FPS-Loss scene in step 2 uses a heuristic algorithm to learn the optimal burst frequency when the computing performance requirements of mobile games increase suddenly, so as to respond to the frequency increase requirements in a timely manner and avoid frame losses. In order to refine the burst frequency, the FPS-Loss scene is clustered according to the state characteristics, and similar scenes are clustered into one category, and the upper bound of the burst frequency corresponding to this sub-scene is learned as the burst frequency corresponding to this sub-scene. Finally, a burst frequency model consisting of the FPS-Loss sub-scene features and the corresponding burst variables is constructed.<key,value> The tuple list serves as the frequency lookup table for the frequency modulation model in the FPS-Loss scenario. BFT,The frequency lookup table BFT is continuously optimized and iteratively updated through adaptive training.
[0082] Step 3: Write the FPS-Meet scenario frequency modulation model and the FPS-Loss scenario frequency modulation model into the operating system kernel; when the mobile application is running, read the system hardware and software environment status in the operating system kernel at regular intervals, and call the corresponding model according to whether the current game loses frames;
[0083] Step 4: Execute frequency scheduling operation in the operating system kernel state, apply the FPS-Meet scenario frequency modulation model and / or the FPS-Loss scenario frequency modulation model to perform frequency calculation, and adjust the processor frequency to the model calculation frequency.
[0084] The current CPU frequency to be adjusted for mobile games is calculated by selecting the frequency modulation model based on the application status obtained by the PMU. If no frame loss occurs, determine the leaf node where the corresponding sub-scene is located in the tree-like frequency modulation model corresponding to the FPS-Meet scene according to the current software and hardware status. Among them, the tree-like frequency modulation model uses the M5P model tree (M5P Tree) as the base model, divides the feature space by the non-leaf nodes of the tree, and trains the regression equation on the leaf nodes. In this method, the sub-scene category is used as a label to train the real data of different game applications under different settings collected by Huawei HiSilicon hardware data acquisition software HiZee to obtain a decision tree model with high confidence. Finally, the CPU frequency change rate is calculated according to its CPU frequency change rate regression equation, using the equation:
[0085] Freq targ =Freq curr +ΔFreq
[0086] Calculate the frequency to be adjusted. curr is the current CPU frequency, and ΔFreq is the calculated rate of change of frequency.
[0087] If frame loss occurs, the Euclidean distance between all FPS-Loss sub-scene feature keys in the frequency lookup table in the FPS-Loss scene frequency modulation model is calculated according to the current software and hardware status, and the value corresponding to the key value with the smallest distance is selected as the frequency to be adjusted in the current state.
[0088] refer to Figure 2-Figure 5 The method proposed in the present invention is written into the Android operating system kernel, and the relevant interface is called to perform the frequency modulation operation when the mobile game is running.
[0089] When the mobile game is running, the method first detects the current FPS value of the mobile game. When the FPS value reaches the requirement of FPS-Meet, it indicates that the performance demand fluctuation of the current mobile game is small. The frequency modulation model in the FPS-Meet scenario is used to accurately set the frequency according to the frequency regression equation to avoid excess performance and additional energy consumption caused by excessive frequency setting; when the actual FPS is less than the FPS value required for the smooth operation of the game, the frequency modulation model in the FPS-Loss scenario is called in time to adjust the current processor frequency to the burst frequency required by the performance burst scenario to avoid insufficient performance and frame loss, resulting in a decrease in user experience. The present invention can ensure that the linear regression frequency modulation model that realizes scene adaptation with precise scene division in the FPS-Meet scenario reasonably allocates computing power and reduces the additional power consumption caused by excess performance; in the FPS-Loss scenario, the game performance burst is responded to in time, and the corresponding burst frequency is set according to the state characteristics of the burst scene, so as to minimize the FPS loss caused by this and ensure user experience.
[0090] (1) Assume that at a certain moment the operating system kernel reads the PMU to obtain the system hardware and software status corresponding to the mobile game running status: System.STATE= <Freq b , Freq L , U b , U L , U g , V sys , T cpu , R memory , FPS> represents processor performance core frequency, processor efficiency core frequency, performance core load, efficiency core load, GPU load, system voltage, processor temperature, and memory read and write rate respectively;
[0091] (2) If frame loss occurs, the burst frequency lookup table BFT (BurstFrequency Table) of the FPS-Loss frequency modulation model is searched, and the key values of the BFT table items are traversed (K-means clustering is performed on the data in the FPS-Loss state. According to experiments, there are 9 categories of abnormal scenarios, and the centroid of the data in the 9 subcategories is the key value). The value corresponding to the key value with the smallest Euclidean distance to the current system state is selected as the current processor frequency to be adjusted;
[0092] (3) If no frame loss occurs, the system hardware and software status data is processed into the data format required by the FPS-Meet scenario through data processing. The frequency change rate regression equation corresponding to the current scenario is found by searching the M5P tree, and the frequency to be adjusted corresponding to the current state is calculated;
[0093] (4) Adjust the processor frequency to the frequency to be adjusted through the relevant interface of the system kernel.
[0094] Optionally, the storage medium is also configured to store a computer program for executing the steps included in the method in the above embodiment, which will not be described in detail in this embodiment.
[0095] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0096] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0097] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
[0098] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0099] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, 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 through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0100] 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.
[0101] In addition, each functional unit in each embodiment of the present application 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. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0102] The above is only a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications are also considered to be within the scope of protection of the present application.
Claims
1. An energy efficiency optimization method suitable for a mobile application processor, characterized in that: The method comprises the following steps: Step 1: Collect the target environment status data of the system hardware and software when the mobile game is running, and divide the game running status into FPS-Meet and FPS-Loss according to whether frame loss occurs. Process the target environment status data to construct the FPS-Meet scene dataset and FPS-Loss dataset; Step 2: Construct an initial FPS-Meet scenario frequency modulation model and an initial FPS-Loss scenario frequency modulation model, and use the FPS-Meet scenario data set to train the initial FPS-Meet scenario frequency modulation model to obtain the FPS-Meet scenario frequency modulation model; The initial FPS-Loss scene frequency modulation model is trained using the FPS-Loss data set to obtain the FPS-Loss scene frequency modulation model; Step 3: Write the FPS-Meet scenario frequency modulation model and the FPS-Loss scenario frequency modulation model into the operating system kernel; when the mobile application is running, read the system hardware and software environment status in the operating system kernel at regular intervals, and call the corresponding model according to whether the current game loses frames; Step 4: Execute frequency scheduling operation in the operating system kernel state, apply the FPS-Meet scenario frequency modulation model and / or the FPS-Loss scenario frequency modulation model to perform frequency calculation, and adjust the processor frequency to the model calculation frequency; wherein In step 2, the FPS-Meet scene frequency modulation model is trained using the machine learning algorithm M5P model tree. First, the game scene is divided by the processed state variables. For game sub-scenes with similar load change trends, the regression equation between the CPU frequency change rate and other state variables is learned. Finally, a tree model is constructed, in which the non-leaf nodes are scene division variables and the leaf nodes are the regression equations corresponding to the divided sub-scenes. The FPS-Loss scenario frequency modulation model uses a heuristic algorithm to learn the optimal burst frequency when the computing performance requirements of mobile games suddenly increase. The burst frequency is clustered to classify similar FPS-Loss scenarios according to their state characteristics. The upper bound of the burst frequency corresponding to such sub-scenario is learned as the burst frequency corresponding to such sub-scenario, and a tuple list consisting of FPS-Loss sub-scenario features and corresponding burst variables is constructed as the frequency lookup table BFT of the FPS-Loss scenario frequency modulation model.
2. The energy efficiency optimization method for a mobile application processor according to claim 1, characterized in that: In step one, the target environment status data of the system hardware and software when the mobile game is running is collected, and the game running status is divided into FPS-Meet and FPS-Loss according to whether frame loss occurs, wherein the target environment status data includes: CPU load, CPU frequency, CPU temperature, system voltage, memory read and write rate, game FPS, and the target environment status data is collected when different types of mobile game applications are running with different picture quality combinations.
3. The energy efficiency optimization method for a mobile application processor according to claim 1, characterized in that: For the FPS-Meet data set, the data difference between two acquisition time intervals of each dimensional state variable is calculated as the change rate of the state variable.
4. The energy efficiency optimization method for a mobile application processor according to claim 3, characterized in that: The frequency lookup table BFT is continuously optimized and iteratively updated through adaptive training.
5. A computer-readable 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.
6. 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.
Citation Information
Patent Citations
Gastric residence systems with release rate-modulating films
CA3066658A1
Heterogeneous multi-core SoC architecture design method
CN104991884A
Android system equipment power consumption optimization method based on game load prediction
CN105045367A
Resource allocation method and related product
CN107613107A
Processor power consumption optimization method suitable for Android games
CN108919938A
