CN109324889B - CPU limit frequency configuration method, device and computer readable storage medium - Google Patents

CPU limit frequency configuration method, device and computer readable storage medium Download PDF

Info

Publication number
CN109324889B
CN109324889B CN201710636691.8A CN201710636691A CN109324889B CN 109324889 B CN109324889 B CN 109324889B CN 201710636691 A CN201710636691 A CN 201710636691A CN 109324889 B CN109324889 B CN 109324889B
Authority
CN
China
Prior art keywords
frequency
limiting strategy
frequency limiting
application
application identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710636691.8A
Other languages
Chinese (zh)
Other versions
CN109324889A (en
Inventor
常建鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201710636691.8A priority Critical patent/CN109324889B/en
Publication of CN109324889A publication Critical patent/CN109324889A/en
Application granted granted Critical
Publication of CN109324889B publication Critical patent/CN109324889B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3243Power saving in microcontroller unit
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the invention provides a CPU (Central processing Unit) limit frequency configuration method, a device and a computer readable storage medium, wherein the method comprises the following steps: determining a target application of a frequency limiting strategy to be adjusted and acquiring an application identifier of the target application; inquiring frequency-limiting strategy configuration information according to the application identifier of the target application, wherein the frequency-limiting strategy configuration information comprises: at least one application identifier and a frequency limiting strategy corresponding to each application identifier one to one; if the frequency limiting strategy corresponding to the application identifier of the target application is inquired in the frequency limiting strategy configuration information, the inquired frequency limiting strategy is adjusted according to a first preset rule to obtain a first adjustment frequency limiting strategy, and the frequency limiting strategy inquired in the frequency limiting strategy configuration information is replaced by the first adjustment frequency limiting strategy and stored. The embodiment of the invention can configure different CPU frequency limiting strategies aiming at different applications so as to meet the user experience.

Description

CPU limit frequency configuration method, device and computer readable storage medium
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a method and an apparatus for configuring a CPU limited frequency, and a computer-readable storage medium.
Background
At present, the types of applications that can be run on a terminal are increasing, and the running of the applications brings power consumption to the terminal. The CPU limit frequency is an important index for controlling power consumption. The CPU frequency required by different applications is different, and the improper configuration of the CPU limited frequency may cause poor user experience, for example, some small applications, such as an alarm clock, a calendar, etc., may work as usual in the case of low CPU frequency, while other applications may have abnormalities, such as jamming, etc., in the case of too low CPU frequency, such as some game applications. Therefore, how to configure the limited frequency of the CPU for the terminal to meet the user experience is a technical problem that needs to be solved at present.
Disclosure of Invention
The method, the device and the computer readable storage medium for configuring the CPU limit frequency provided by the embodiment of the invention mainly solve the technical problem of how to configure the CPU limit frequency on a terminal to meet user experience.
To solve the foregoing technical problem, an embodiment of the present invention provides a method for configuring a CPU limited frequency, including: determining a target application of a frequency limiting strategy to be adjusted, and acquiring an application identifier of the target application; inquiring frequency-limiting strategy configuration information according to the application identifier of the target application, wherein the frequency-limiting strategy configuration information comprises: at least one application identifier and a frequency limiting strategy corresponding to each application identifier one by one; if the frequency limiting strategy corresponding to the application identifier of the target application is inquired in the frequency limiting strategy configuration information, the inquired frequency limiting strategy is adjusted according to a first preset rule to obtain a first adjustment frequency limiting strategy, and the inquired frequency limiting strategy in the frequency limiting strategy configuration information is replaced by the first adjustment frequency limiting strategy and stored.
The embodiment of the invention provides a configuration device for limiting the frequency of a CPU, which comprises: the determining module is used for determining the target application of the frequency limiting strategy to be adjusted; the first acquisition module is used for acquiring the application identifier of the target application; a query module, configured to query frequency-limited policy configuration information according to the application identifier of the target application, where the frequency-limited policy configuration information includes: at least one application identifier and a frequency limiting strategy corresponding to each application identifier one to one; the first adjusting module is used for adjusting the inquired frequency limiting strategy according to a first preset rule to obtain a first adjusted frequency limiting strategy if the inquiry result of the inquiring module is that the frequency limiting strategy corresponding to the application identifier of the target application is inquired in the frequency limiting strategy configuration information; and the first storage module is used for replacing the inquired frequency limiting strategy in the frequency limiting strategy configuration information with a first adjustment frequency limiting strategy and storing the first adjustment frequency limiting strategy.
The embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a frequency-limited policy configuration program, and the frequency-limited policy configuration program, when executed by a processor, implements the steps of the method for configuring the CPU limited frequency.
The beneficial effects of the invention are:
according to the method, the device and the computer readable storage medium for configuring the CPU limit frequency, provided by the embodiment of the invention, the target application of the frequency limit strategy to be adjusted is determined according to various modes, and the application identifier of the target application is obtained; inquiring frequency limiting strategy configuration information according to an application identifier of a target application, wherein in one case, a frequency limiting strategy corresponding to the application identifier of the target application is inquired in the frequency limiting strategy configuration information, the inquired frequency limiting strategy is adjusted according to a first preset rule to obtain a first adjustment frequency limiting strategy, and the inquired frequency limiting strategy in the frequency limiting strategy configuration information is replaced by the first adjustment frequency limiting strategy and is stored; if the application identifier of the target application is not queried in the configuration information of the frequency limiting policy, adjusting according to a second preset rule based on a default frequency limiting policy to obtain a second adjusted frequency limiting policy, and correspondingly storing the application identifier of the target application and the second adjusted frequency limiting policy in the configuration information of the frequency limiting policy. By the embodiment of the invention, different CPU frequency limiting strategies can be configured for different applications, for small applications, lower CPU limiting frequency can be configured to save power consumption, for large applications, such as popular applications or user common applications, higher CPU limiting frequency can be configured to solve the problems of blocking, deadlocking and the like, user experience is met, and the backing rate is also reduced.
Drawings
FIG. 1 is a flowchart of a method for configuring a CPU limit frequency according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a CPU frequency limit configuration method according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of a configuration apparatus for limiting a frequency of a CPU according to a third embodiment of the present invention.
Detailed Description
The following describes embodiments of the present invention in further detail with reference to the accompanying drawings.
Example one
In order to configure the CPU limited frequency in the terminal to meet the user experience, this embodiment provides a method for configuring the CPU limited frequency, which is mainly applied to the terminal, please refer to fig. 1, and mainly includes the following processes:
s101, determining a target application of a frequency limiting strategy to be adjusted, and acquiring an application identifier of the target application.
Specific means of determination include, but are not limited to, the following:
and A, counting the use state data of the locally installed applications, and determining which applications serve as target applications of the frequency limiting strategy to be adjusted according to the use state data. Specifically, the applications with the use state data higher than the preset value, or the applications with N bits before ranking after ranking according to the use state data of each application, may be determined as the target applications of the frequency-limiting policy to be adjusted, where N is a positive integer greater than or equal to 1;
the use state data comprises at least one of use frequency in a preset period and use time in the preset period; a preset period such as the last week, the last month, etc.;
for example, an application with a usage frequency higher than a preset value in a preset period is used as a target application of the frequency limiting strategy to be adjusted. For another example, ranking is performed according to the use frequency of each application in a preset period from large to small, and the applications with the top N bits of ranking are determined as target applications of the frequency limiting strategy to be adjusted.
In the mode B, the ranking information of the use condition of the common application is obtained from the outside; determining M applications before ranking as target applications of a frequency limiting strategy to be adjusted, wherein M is a positive integer greater than or equal to 1;
for example, popular ranking lists of common application use conditions are obtained from all the major authority networks, a comprehensive application ranking list is calculated in a weighted mode according to authority indexes of all the major websites, and applications with M positions before ranking are determined as target applications of the frequency limiting strategy to be adjusted.
The target application of the frequency limiting strategy to be adjusted can be determined by adopting the mode A and/or the mode B.
S102, inquiring frequency-limiting strategy configuration information according to the application identifier of the target application, wherein the frequency-limiting strategy configuration information comprises: at least one application identifier and a frequency limiting strategy corresponding to each application identifier one by one; if the frequency-limited policy configuration information queries a frequency-limited policy corresponding to the application identifier of the target application, step S103 is performed, and if the frequency-limited policy configuration information does not query the application identifier of the target application, step S104 is performed.
The initial frequency-limited policy configuration information may be preset by the terminal, for example, preset before factory shipment.
The frequency limiting policy configuration information may include an application identifier, a frequency limiting policy, and a corresponding relationship between the application identifier and the frequency limiting policy, and may further include a default frequency limiting policy corresponding to another application other than the listed application identifier.
The frequency limitation policy configuration information may be a list, such as table 1.
TABLE 1
Figure BDA0001365011880000041
Figure BDA0001365011880000051
Other applications in table 1 include applications other than applications 1 and 2, each employing a default frequency limiting policy, namely frequency limiting policy 3.
The application identification includes, but is not limited to, an application name.
The frequency limiting strategy may include at least: allowing a maximum CPU processing power level.
S103, the inquired frequency limiting strategy is adjusted according to a first preset rule to obtain a first adjustment frequency limiting strategy, and the inquired frequency limiting strategy in the frequency limiting strategy configuration information is replaced by the first adjustment frequency limiting strategy and stored.
Assume that the frequency-limiting strategy includes: the maximum CPU processing power level is allowed, the adjustment of this step may be: and increasing a grade, namely X +1, on the basis of the inquired grade X of the maximum CPU processing capacity allowed, obtaining a first adjustment frequency limiting strategy, replacing the frequency limiting strategy which is inquired before modification and corresponds to the target application in the configuration information of the frequency limiting strategy with the first adjustment frequency limiting strategy, storing the first adjustment frequency limiting strategy, and completing the modification of the configuration item.
And S104, adjusting according to a second preset rule based on a default frequency limiting strategy to obtain a second adjustment frequency limiting strategy, and correspondingly storing the application identifier of the target application and the second adjustment frequency limiting strategy into the frequency limiting strategy configuration information.
The assumption of the frequency limiting strategy includes: the maximum CPU processing power level is allowed, the adjustment of this step may be: and increasing a grade, namely Y +1, on the basis of the default grade Y of the maximum CPU processing capacity, obtaining a second adjustment frequency limiting strategy, correspondingly storing the application identifier of the target application and the second adjustment frequency limiting strategy into frequency limiting strategy configuration information, and finishing the addition of the configuration item.
The above process may be performed periodically, and in order to prevent frequent adjustment of the frequency-limiting policy, the following scheme may be further adopted:
before step S103, obtaining mark information corresponding to the application identifier of the target application, where the mark information includes two types: the unmodified marking information and the modified marking information, the former indicates that the frequency-limiting strategy corresponding to the frequency-limiting strategy configuration information and the application identifier of the target application is unmodified on the basis of pre-configuration, and the latter indicates that the frequency-limiting strategy corresponding to the frequency-limiting strategy configuration information and the application identifier of the target application is modified on the basis of pre-configuration; if the obtained unmodified tag information is obtained, the step S103 is executed, the adjusting step is executed, and the tag information corresponding to the application identifier of the target application is updated to be modified tag information; if the obtained modified mark information indicates that the modified mark information is modified, the queried frequency limiting strategy can be abandoned to be adjusted.
After the step S104 correspondingly stores the application identifier of the target application and the second adjustment frequency-limiting policy into the frequency-limiting policy configuration information, modified flag information may also be generated, and the generated modified flag information and the application identifier of the target application are correspondingly stored.
The flag information corresponding to the application identifier may be added to the frequency-limited policy configuration information, so that before step S103, the flag information corresponding to the application identifier of the target application may be obtained from the frequency-limited policy configuration information, and after step S103 is adjusted and stored, the flag information corresponding to the application identifier of the target application in the frequency-limited policy configuration information is updated to the modified flag information. After step S104, the generated modified flag information is saved in the frequency-limited policy configuration information in correspondence with the application identifier of the target application. Of course, a storage space may be additionally configured to store the application identifier, the tag information, and the corresponding relationship between the application identifier and the tag information.
The method for configuring the CPU limit frequency provided by this embodiment is mainly applied to a terminal, and by this method, different CPU limit frequency policies can be configured for different applications, and for small applications, a lower CPU limit frequency can be configured to save power consumption, and for large applications, such as popular applications or user common applications, a higher CPU limit frequency can be configured to solve abnormalities such as stuck, and the like, so that the terminal preferentially meets the performance requirements of such applications, and user experience is not affected.
Example two
Taking a mobile phone as an example, in order to configure a CPU limited frequency at a terminal to meet user experience, this embodiment provides a method for configuring a CPU limited frequency, please refer to fig. 2, which mainly includes the following steps:
s201, collecting ranking list lists of the major authority networks in the week for common application use conditions, and according to authority indexes of the major websites, calculating comprehensive application ranking list TOP10 in a weighted mode to form a first data table.
S202, counting the use state data of the locally installed applications in the background, specifically, counting the time of each application in the foreground in the last week, calculating the use duration of the application by the user according to the time of the application in the foreground, and forming a second data table by using the use duration ranking list TOP10 in the last week.
S203, merging the first data table and the second data table to obtain a third data table, wherein the merging mode is that each application in the second data table is ranked in TOP10 according to the ranking in the second data table, each application in the first data table is ranked in TOP11 to TOP20 according to the ranking in the first data table, and if repeated applications exist, the applications are ranked in the second data table according to the ranking in the second data table, so that the common applications of the user can be ranked in the first, and a final third data table is generated.
And S204, inquiring a frequency-limiting configuration white list (as frequency-limiting strategy configuration information) configured before the delivery of the mobile phone according to the application identifier of each application in the third data list, and adjusting the frequency-limiting configuration white list.
Specifically, the frequency limitation configuration white list may include application identifiers, frequency limitation policies, tag information, and the corresponding relationship between the three, and may also include other applications except the listed application identifiers, default frequency limitation policies, unmodified tag information, and the corresponding relationship between the three. Assuming that the frequency limitation policy in the frequency limitation configuration whitelist is the maximum CPU processing capacity level allowed, as shown in table 2:
TABLE 2
Figure BDA0001365011880000071
Figure BDA0001365011880000081
In step S203, the third data table and the above table 2 may be combined to modify the frequency limiting policies of the listed applications in the table, or add configuration items of the newly added applications.
Specifically, the table 2 is respectively queried according to the application identifier of each application in the third data table, and if there is an application identifier already in the table 2 and the tag information is unmodified tag information, for example, the application 1, the corresponding maximum CPU processing capability level allowed is automatically adjusted: and (3) increasing a level on the basis of the original level to obtain a first adjustment frequency limit strategy, wherein the maximum CPU processing capacity level X +1 is allowed, the unmodified mark information is updated to the modified mark information, and the CUP processing level corresponding to the application is not increased any more subsequently. If some application id is not present in table 2, for example, application 3, if no adjustment is made, it is classified as another application, and the default CPU processing capability level Z is adopted, but with the embodiment of the present invention, a level may be automatically raised on the basis of the default level Z, a second adjustment frequency-limiting policy is obtained, that is, the maximum allowable CPU processing capability level Z +1, and the application 3, the maximum allowable CPU processing capability level Z +1, the modified flag information, and the correspondence relationship between the three are added to table 2.
Therefore, the configuration of the CPU limiting frequency is realized, the requirement of the CPU frequency without application is considered, and the user experience is met.
Example three:
in order to implement the configuration of the CPU limited frequency at the terminal to meet the user experience, this embodiment provides a configuration apparatus for the CPU limited frequency, which is used to execute the configuration method for the CPU limited frequency in the first embodiment, please refer to fig. 3, and mainly includes:
a determining module 301, configured to determine a target application of a frequency limiting policy to be adjusted;
a first obtaining module 302, configured to obtain an application identifier of the target application;
a query module 303, configured to query frequency-limited policy configuration information according to the application identifier of the target application, where the frequency-limited policy configuration information includes: at least one application identifier and a frequency limiting strategy corresponding to each application identifier one to one;
a first adjusting module 304, configured to adjust, according to a first preset rule, the queried frequency limit policy according to a query result of the querying module 303, where the frequency limit policy is queried in the frequency limit policy configuration information and corresponds to the application identifier of the target application, so as to obtain a first adjusted frequency limit policy;
a first saving module 305, configured to replace the queried frequency limiting policy in the frequency limiting policy configuration information with a first adjusted frequency limiting policy and save the first adjusted frequency limiting policy.
Specific determination manners of the determining module 301 include, but are not limited to, the following:
and the mode A is used for counting the use state data of the locally installed applications and determining which applications are used as target applications of the frequency limiting strategy to be adjusted according to the use state data. Specifically, the applications with the use state data higher than the preset value, or the applications with N top-ranked applications after ranking according to the use state data of each application, may be determined as the target applications of the frequency limiting policy to be adjusted, where N is a positive integer greater than or equal to 1;
the use state data comprises at least one of use frequency in a preset period and use time in the preset period; a preset period such as the last week, the last month, etc.;
for example, an application with a usage frequency higher than a preset value in a preset period is used as a target application of the frequency limiting strategy to be adjusted. For another example, ranking is performed according to the use frequency of each application in a preset period from large to small, and the applications with N top ranking are determined as target applications of the frequency limiting policy to be adjusted.
In the mode B, the ranking information of the use condition of the common application is obtained from the outside; determining M applications before ranking as target applications of a frequency limiting strategy to be adjusted, wherein M is a positive integer greater than or equal to 1;
for example, popular ranking lists of common application use conditions are obtained from all the major authority networks, a comprehensive application ranking list is calculated in a weighted mode according to authority indexes of all the major websites, and applications with M positions before ranking are determined as target applications of the frequency limiting strategy to be adjusted.
The target application of the frequency limiting strategy to be adjusted can be determined by adopting the mode A and/or the mode B.
Assume that the frequency-limiting strategy includes: the maximum CPU processing power level is allowed, the first adjusting module 304 may adjust in the following manner: and increasing a grade, namely X +1, on the basis of the inquired grade X of the maximum CPU processing capacity allowed, obtaining a first adjustment frequency limiting strategy, replacing the frequency limiting strategy which is inquired before modification and corresponds to the target application in the configuration information of the frequency limiting strategy with the first adjustment frequency limiting strategy, storing the first adjustment frequency limiting strategy, and completing the modification of the configuration item.
Further, the frequency-limiting policy configuration apparatus may further include:
a second adjusting module 306, configured to adjust, based on a default frequency limiting policy and according to a second preset rule, if the query result of the querying module 303 is that the application identifier of the target application is not queried in the frequency limiting policy configuration information, to obtain a second adjusted frequency limiting policy;
a second storing module 307, configured to correspondingly store the application identifier of the target application and the second adjustment frequency limiting policy in the frequency limiting policy configuration information.
The assumption of the frequency limiting strategy includes: the maximum CPU processing power level is allowed, the second adjusting module 306 may adjust the following manner: and on the basis of the default maximum CPU processing capacity grade Y, increasing a grade, namely Y +1, to obtain a second adjustment frequency limiting strategy, correspondingly storing the application identifier of the target application and the second adjustment frequency limiting strategy into frequency limiting strategy configuration information, and completing the addition of the configuration item.
The above process may be performed periodically, and in order to prevent frequent adjustment of the frequency-limiting policy, the frequency-limiting policy configuration apparatus may further include:
a second obtaining module 308, configured to obtain tag information corresponding to the application identifier of the target application;
a tag updating module 309, configured to, after the first saving module 305 replaces the queried frequency-limiting policy in the frequency-limiting policy configuration information with a first adjusted frequency-limiting policy and saves the first adjusted frequency-limiting policy, update the tag information to modified tag information;
the first adjusting module 304 is configured to, after the tag information acquired by the second acquiring module 308 is unmodified tag information, adjust the queried frequency-limiting policy according to a first preset rule to obtain a first adjusted frequency-limiting policy; the second obtaining module 308 is further configured to abandon adjusting the queried frequency limiting policy after the flag information obtained by the second obtaining module 308 is the modified flag information.
Further, the apparatus for configuring a frequency-limited policy may further include:
a tag generating module 310, configured to, after the second storing module 307 correspondingly stores the application identifier of the target application and the second adjustment frequency-limiting policy into the frequency-limiting policy configuration information, generate modified tag information, and correspondingly store the generated modified tag information and the application identifier of the target application.
Further, the frequency limiting strategy comprises: allowing a maximum CPU processing power level.
The configuration device for the CPU limited frequency provided by this embodiment can configure different CPU limited frequency policies for different applications, and for small applications, can configure a lower CPU limited frequency to save power consumption, and for large applications, for example, popular applications or user common applications, can configure a higher CPU limited frequency to solve abnormalities such as stuck, and the like, thereby satisfying user experience and also reducing a backing rate.
It will be apparent to those skilled in the art that the modules or steps of the embodiments of the invention described above may be implemented in a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented in program code executable by a computing device, such that they may be stored on a computer storage medium (ROM/RAM, magnetic disk, optical disk) and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The foregoing is a more detailed description of the embodiments of the present invention, and the specific embodiments are not to be considered as limiting the invention. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (8)

1. A CPU frequency limit configuration method comprises the following steps:
determining a target application of a frequency limiting strategy to be adjusted, and acquiring an application identifier of the target application;
inquiring frequency-limiting strategy configuration information according to the application identifier of the target application, wherein the frequency-limiting strategy configuration information comprises: at least one application identifier and a frequency limiting strategy corresponding to each application identifier one by one;
if the frequency limiting strategy corresponding to the application identifier of the target application is inquired in the frequency limiting strategy configuration information, adjusting the inquired frequency limiting strategy according to a first preset rule to obtain a first adjustment frequency limiting strategy, and replacing the inquired frequency limiting strategy in the frequency limiting strategy configuration information with the first adjustment frequency limiting strategy and storing the first adjustment frequency limiting strategy;
before the adjusting the queried frequency-limiting policy according to the first preset rule, the method further includes:
acquiring mark information corresponding to the application identifier of the target application;
if the mark information is unmodified mark information, entering a step of adjusting and storing the queried frequency limiting strategy according to a first preset rule, and updating the mark information into modified mark information;
if the mark information is modified mark information, the queried frequency limiting strategy is abandoned to be adjusted;
wherein, the first preset rule is to raise a level on the basis of the inquired maximum allowable CPU processing capacity level X.
2. The method for configuring a CPU limit frequency according to claim 1, further comprising:
if the application identifier of the target application is not inquired in the frequency-limiting strategy configuration information, adjusting according to a second preset rule based on a default frequency-limiting strategy to obtain a second adjustment frequency-limiting strategy, and correspondingly storing the application identifier of the target application and the second adjustment frequency-limiting strategy into the frequency-limiting strategy configuration information; wherein the second preset rule is a level which is increased by one level based on the default maximum allowable CPU processing capacity level Y.
3. The method for configuring a CPU limited frequency according to claim 2, wherein after the application identifier of the target application and the second adjustment frequency limiting policy are correspondingly stored in the frequency limiting policy configuration information, the method further comprises:
and generating modified mark information, and correspondingly storing the generated modified mark information and the application identifier of the target application.
4. The method for configuring the CPU limit frequency according to claim 1, wherein the determining the target application of the frequency limiting policy to be adjusted comprises:
counting use state data of locally installed applications, wherein the use state data comprises at least one of use frequency in a preset period and use duration in the preset period; determining a target application serving as a frequency limiting strategy to be adjusted according to the using state data;
and/or externally acquiring the use case ranking information of the common application; determining the applications with M bits before ranking as target applications of the frequency limiting strategy to be adjusted;
n is a positive integer greater than or equal to 1, and M is a positive integer greater than or equal to 1.
5. The method for configuring the CPU limit frequency according to any one of claims 1 to 4, wherein the frequency limiting strategy comprises: allowing a maximum CPU processing power level.
6. A CPU frequency limited configuration device comprising:
the determining module is used for determining the target application of the frequency limiting strategy to be adjusted;
the first acquisition module is used for acquiring the application identifier of the target application;
a query module, configured to query frequency-limited policy configuration information according to the application identifier of the target application, where the frequency-limited policy configuration information includes: at least one application identifier and a frequency limiting strategy corresponding to each application identifier one to one;
the first adjusting module is used for adjusting the inquired frequency limiting strategy according to a first preset rule to obtain a first adjusting frequency limiting strategy if the inquiry result of the inquiring module is that the frequency limiting strategy corresponding to the application identifier of the target application is inquired in the frequency limiting strategy configuration information;
the first storage module is used for replacing the inquired frequency limiting strategy in the frequency limiting strategy configuration information with a first adjustment frequency limiting strategy and storing the first adjustment frequency limiting strategy;
the configuration device for limiting the frequency of the CPU further comprises:
the second acquisition module is used for acquiring mark information corresponding to the application identifier of the target application;
a tag updating module, configured to update the tag information to modified tag information after determining that the first storage module replaces the queried frequency-limited policy in the frequency-limited policy configuration information with a first adjusted frequency-limited policy and stores the first adjusted frequency-limited policy;
the first adjusting module is used for adjusting the queried frequency limiting strategy according to a first preset rule after the mark information acquired by the second acquiring module is determined to be unmodified mark information, so as to obtain a first adjusted frequency limiting strategy; the second obtaining module is further configured to give up adjusting the queried frequency limit policy after the tag information obtained by the second obtaining module is the modified tag information;
wherein the first preset rule is that the CPU processing capacity level is increased by one level on the basis of the inquired maximum allowable CPU processing capacity level X.
7. The apparatus for configuring a CPU limit frequency according to claim 6, further comprising:
the second adjusting module is used for adjusting the frequency limiting strategy according to a second preset rule based on a default frequency limiting strategy to obtain a second adjusting frequency limiting strategy if the query result of the query module is that the application identifier of the target application is not queried in the frequency limiting strategy configuration information;
wherein the second preset rule is a level which is increased by one level on the basis of a default maximum CPU processing capacity level Y;
and the second storage module is used for correspondingly storing the application identifier of the target application and a second adjustment frequency limiting strategy into the frequency limiting strategy configuration information.
8. A computer-readable storage medium storing a frequency-limited policy configuration program which, when executed by a processor, implements the steps of the method for configuring a CPU limit frequency according to any one of claims 1 to 5.
CN201710636691.8A 2017-07-31 2017-07-31 CPU limit frequency configuration method, device and computer readable storage medium Active CN109324889B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710636691.8A CN109324889B (en) 2017-07-31 2017-07-31 CPU limit frequency configuration method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710636691.8A CN109324889B (en) 2017-07-31 2017-07-31 CPU limit frequency configuration method, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109324889A CN109324889A (en) 2019-02-12
CN109324889B true CN109324889B (en) 2023-04-07

Family

ID=65244739

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710636691.8A Active CN109324889B (en) 2017-07-31 2017-07-31 CPU limit frequency configuration method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109324889B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782692B (en) * 2020-06-01 2024-04-16 京东科技控股股份有限公司 Frequency control method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130140270A (en) * 2012-06-14 2013-12-24 주식회사 아이디어웨어 Method operation of policy for the network traffic reduction of area overload
CN105549715A (en) * 2014-10-28 2016-05-04 邻客音公司 Dynamic adjustment of CPU operating frequency
CN105677482A (en) * 2015-12-31 2016-06-15 联想(北京)有限公司 Frequency adjusting method and electronic equipment
CN106909488A (en) * 2017-02-23 2017-06-30 深圳市金立通信设备有限公司 A kind of cpu temperature control method and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130140270A (en) * 2012-06-14 2013-12-24 주식회사 아이디어웨어 Method operation of policy for the network traffic reduction of area overload
CN105549715A (en) * 2014-10-28 2016-05-04 邻客音公司 Dynamic adjustment of CPU operating frequency
CN105677482A (en) * 2015-12-31 2016-06-15 联想(北京)有限公司 Frequency adjusting method and electronic equipment
CN106909488A (en) * 2017-02-23 2017-06-30 深圳市金立通信设备有限公司 A kind of cpu temperature control method and terminal

Also Published As

Publication number Publication date
CN109324889A (en) 2019-02-12

Similar Documents

Publication Publication Date Title
US20200249839A1 (en) Automatic stream detection & assignment algorithm
US11238175B2 (en) File system permission setting method and apparatus
US8359629B2 (en) Method and device for controlling use of context information of a user
CN110045965B (en) Application management method and mobile terminal
CN102982141B (en) A kind of method and device realizing distributed data base agency
CN111447150A (en) Access request current limiting method, server and storage medium
US20110119251A1 (en) System and Method for SQL Query Load Balancing
CN109240876B (en) Instance monitoring method, computer-readable storage medium, and terminal device
CN104407690A (en) Method, device and mobile terminal for regulating operating frequency of CPU (Central Processing Unit)
CN107506244B (en) CPU scheduling method, mobile terminal and CPU scheduling system
US20140187212A1 (en) Ringtone processing method and apparatus
CN103838353A (en) Method and terminal for controlling processor operation
CN111464487B (en) Access control method, device and system
CN109324889B (en) CPU limit frequency configuration method, device and computer readable storage medium
CN109688218A (en) Method, apparatus, electronic equipment and the computer readable storage medium of pushed information
CN106878030B (en) Charging method and device
CN113342791A (en) Data quality monitoring method and device
WO2020094064A1 (en) Performance optimization method, device, apparatus, and computer readable storage medium
CN109495585B (en) Hierarchical control method for edge network and cloud
JP2011150545A (en) Configuration information management device, distributed information management system, distributed information management method, and distributed information management program
CN106161753A (en) A kind of scene mode setting method and device
CN104918236B (en) Environment decision-making system and method based on Wi-Fi
CN113779412B (en) Message touch method, node and system based on blockchain network
CN112748850B (en) Method, apparatus and computer program product for storage management
CN111931797B (en) Method, device and equipment for identifying network to which service belongs

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant