CN109324889A - Configuration method, device and the computer readable storage medium of CPU limit frequency - Google Patents

Configuration method, device and the computer readable storage medium of CPU limit frequency Download PDF

Info

Publication number
CN109324889A
CN109324889A CN201710636691.8A CN201710636691A CN109324889A CN 109324889 A CN109324889 A CN 109324889A CN 201710636691 A CN201710636691 A CN 201710636691A CN 109324889 A CN109324889 A CN 109324889A
Authority
CN
China
Prior art keywords
frequency limit
frequency
limit strategy
strategy
application
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.)
Granted
Application number
CN201710636691.8A
Other languages
Chinese (zh)
Other versions
CN109324889B (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)
  • Stored Programmes (AREA)

Abstract

Configuration method, device and the computer readable storage medium of CPU limit frequency provided in an embodiment of the present invention, this method comprises: determining the target application of frequency limit strategy to be adjusted and obtaining the application identities of target application;According to the application identities of target application inquire frequency limit strategy configuration information, frequency limit strategy configuration information includes: at least one application identities, and with the one-to-one frequency limit strategy of each application identities;If inquiring frequency limit strategy corresponding with the application identities of target application in frequency limit strategy configuration information, then the frequency limit strategy inquired is adjusted according to the first preset rules, the first adjustment frequency limit strategy is obtained, the frequency limit policy replacement inquired in frequency limit strategy configuration information at the first adjustment frequency limit strategy and is saved.The embodiment of the present invention can be directed to the different CPU frequency limit strategy of different application configurations, to meet user experience.

Description

Configuration method, device and the computer readable storage medium of CPU limit frequency
Technical field
The present invention relates to electronic technology field more particularly to a kind of configuration method, device and the computers of CPU limit frequency Readable storage medium storing program for executing.
Background technique
Currently, the application type that can be run in terminal is more and more, the operation of application can bring power consumption to terminal.CPU limit Frequency processed is to control an important indicator of power consumption.And the cpu frequency that different application needs is different, CPU limit frequency Configuration it is improper, it is bad to will cause user experience, lower in cpu frequency for example, certain small applications, such as alarm clock, calendar In the case where can work as usual, and other apply abnormal, the example that will appear Caton, stuck etc. in the case where cpu frequency is too low Such as certain game applications.Therefore, how to configure the limit frequency of CPU to terminal to meet user experience is that current needs solve Technical problem.
Summary of the invention
Configuration method, device and the computer readable storage medium of CPU limit frequency provided in an embodiment of the present invention, mainly The technical issues of solution be how terminal configuration CPU limit frequency to meet user experience.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of configuration method of CPU limit frequency, comprising: really The target application of fixed frequency limit strategy to be adjusted, and obtain the application identities of the target application;According to answering for the target application With mark inquire frequency limit strategy configuration information, the frequency limit strategy configuration information includes: at least one application identities, and with it is each A one-to-one frequency limit strategy of application identities;It is answered if inquiring in the frequency limit strategy configuration information with the target application With corresponding frequency limit strategy is identified, then the frequency limit strategy inquired is adjusted according to the first preset rules, obtains the first tune Whole frequency limit strategy, by the frequency limit policy replacement inquired described in the frequency limit strategy configuration information at the first adjustment frequency limit strategy And it saves.
The embodiment of the present invention provides a kind of configuration device of CPU limit frequency, comprising: determining module, for determining wait adjust The target application of whole frequency limit strategy;First obtains module, for obtaining the application identities of the target application;Enquiry module is used According to the application identities of the target application inquire frequency limit strategy configuration information, the frequency limit strategy configuration information include: to Few application identities, and with the one-to-one frequency limit strategy of each application identities;The first adjustment module is used for the inquiry The query result of module is to inquire limit corresponding with the application identities of the target application in the frequency limit strategy configuration information Frequency strategy, then be adjusted the frequency limit strategy inquired according to the first preset rules, obtain the first adjustment frequency limit strategy;First Preserving module, the frequency limit policy replacement for will inquire described in the frequency limit strategy configuration information is at the first adjustment frequency limit plan It omits and saves.
The embodiment of the present invention also provides a kind of computer readable storage medium, and the computer-readable recording medium storage has Frequency limit strategy configurator, the frequency limit strategy configurator realize CPU limit frequency described above when being executed by processor Configuration method the step of.
The beneficial effects of the present invention are:
Configuration method, device and the computer readable storage medium of the CPU limit frequency provided according to embodiments of the present invention, The target application of frequency limit strategy to be adjusted is first determined according to various modes, and obtains the application identities of the target application;Root again Frequency limit strategy configuration information is inquired according to the application identities of target application, a kind of situation is inquired in frequency limit strategy configuration information Frequency limit strategy corresponding with the application identities of the target application then carries out the frequency limit strategy inquired according to the first preset rules Adjustment, obtain the first adjustment frequency limit strategy, by the frequency limit policy replacement inquired described in the frequency limit strategy configuration information at The first adjustment frequency limit strategy simultaneously saves;It is not inquire the target application in frequency limit strategy configuration information there are also a kind of situation Application identities, then the frequency limit strategy based on default is adjusted to obtain second adjustment frequency limit strategy according to the second preset rules, and The application identities of the target application, second adjustment frequency limit strategy correspondence are saved in the frequency limit strategy configuration information.It is logical The embodiment of the present invention is crossed, small application can be configured for different application configurations different CPU frequency limit strategy Lower CPU limit frequency applies large size with saving power consumption, for example, the common application of popular application or user can configure compared with High CPU limit frequency is abnormal to solve Caton, stuck etc., meets user experience, also reduces visitor and move back rate.
Detailed description of the invention
Fig. 1 is the flow chart of the configuration method of the CPU limit frequency of the embodiment of the present invention one;
Fig. 2 is the flow chart of the configuration method of the CPU limit frequency of the embodiment of the present invention two;
Fig. 3 is the schematic diagram of the configuration device of the CPU limit frequency of the embodiment of the present invention three.
Specific embodiment
The embodiment of the present invention is described in further detail below by specific embodiment combination attached drawing.
Embodiment one
In order to which in terminal configuration CPU limit frequency, to meet user experience, the present embodiment provides a kind of CPU limit frequencies Configuration method is mainly used in terminal, mainly includes following below scheme referring to Figure 1:
S101, the target application for determining frequency limit strategy to be adjusted, and obtain the application identities of the target application.
Specific method of determination includes but is not limited to act set forth below:
The local use state data for having installed application of mode A, statistics determine which application is made according to use state data For the target application of frequency limit strategy to be adjusted.Specifically, use state data can be higher than to the application of preset value, or by basis After the use state data rank of each application, the application of ranking top N is determined as the target application of frequency limit strategy to be adjusted, N For the positive integer more than or equal to 1;
Use state data include frequency of use in predetermined period, in predetermined period using at least one in duration Kind;Predetermined period for example nearest one week, nearest one month etc.;
Such as the application that the frequency of use in predetermined period is higher than preset value is answered as the target of frequency limit strategy to be adjusted With.For another example, ranking is carried out according to each frequency of use applied in predetermined period from big to small, the application of ranking top N is really It is set to the target application of frequency limit strategy to be adjusted.
Mode B, outside obtain the service condition ranking information of common application;M before ranking applications are determined as wait adjust The target application of whole frequency limit strategy, M are the positive integer more than or equal to 1;
Such as the common popular ranking list using situation is obtained from major authoritative official website, and according to the power of major website Prestige index, weighting calculate comprehensive application seniority among brothers and sisters list, M before ranking applications are determined as to the target of frequency limit strategy to be adjusted Using.
The target application of frequency limit strategy to be adjusted can be determined using aforesaid way A and/or mode B.
S102, frequency limit strategy configuration information, the frequency limit strategy configuration are inquired according to the application identities of the target application Information includes: at least one application identities, and with the one-to-one frequency limit strategy of each application identities;If the frequency limit strategy Frequency limit strategy corresponding with the application identities of the target application is inquired in configuration information, then enters step S103, if described The application identities for not inquiring the target application in frequency limit strategy configuration information, then enter step S104.
Initial frequency limit strategy configuration information can be terminal preset, such as dispatch from the factory preceding preset.
Frequency limit strategy configuration information may include the corresponding relationship of application identities, frequency limit strategy and the two, can also wrap Include the corresponding default frequency limit strategy of other application in addition to the application identities listed.
Frequency limit strategy configuration information can be list, such as table 1.
Table 1
Other application in table 1 includes the other application other than application 1 and 2, is all made of default frequency limit strategy, that is, limits Frequency strategy 3.
Application identities include but is not limited to Apply Names.
Frequency limit strategy at least may include: to allow maximum CPU processing capacity grade.
S103, the frequency limit strategy inquired is adjusted according to the first preset rules, obtains the first adjustment frequency limit strategy, The frequency limit policy replacement inquired described in the frequency limit strategy configuration information at the first adjustment frequency limit strategy and is saved.
Assuming that frequency limit strategy includes: to allow maximum CPU processing capacity grade, then the adjustment mode of this step may is that Rise a grade on the basis of the maximum CPU processing capacity grade X of permission inquired, i.e. X+1 obtains the first adjustment Frequency limit strategy, the frequency limit policy replacement corresponding with target application inquired before modifying in frequency limit strategy configuration information is at first Adjustment frequency limit strategy simultaneously saves, and completes the modification to configuration item.
S104, the frequency limit strategy based on default are adjusted to obtain second adjustment frequency limit strategy according to the second preset rules, And the application identities of the target application, second adjustment frequency limit strategy correspondence are saved in the frequency limit strategy configuration information.
Assuming that frequency limit strategy includes: to allow maximum CPU processing capacity grade, then the adjustment mode of this step may is that Rise a grade on the basis of the maximum CPU processing capacity grade Y of permission of default, i.e. Y+1 obtains second adjustment limit Frequency strategy, and the application identities of target application, second adjustment frequency limit strategy correspondence are saved in frequency limit strategy configuration information, it is complete It is organized in pairs the addition of item.
Above-mentioned process can be carried out periodically, can be further using following in order to prevent to the frequent adjustment of frequency limit strategy Scheme:
Before step S103, mark information corresponding with the application identities of the target application is obtained, mark information has Two kinds: unmodified mark information and having modified mark information, the application of the former frequency limit strategy configuration information and target application Corresponding frequency limit strategy is identified on the basis of pre-configuration from unmodified, the latter's expression frequency limit strategy configuration information and target The corresponding frequency limit strategy of the application identities of application had been modified on the basis of pre-configuration;If what is got is unmodified label Information then enters step S103, executes set-up procedure, and mark information corresponding with the application identities of target application is updated to Mark information is modified;If what is got is to have modified mark information, then it represents that modified mistake can then be abandoned to inquiring Frequency limit strategy be adjusted.
The application identities of target application, second adjustment frequency limit strategy correspondence are saved in the frequency limit strategy in step S104 After in configuration information, it can also generate and modify mark information, and mark information and target application have been modified into generation Application identities are corresponding to be saved.
Mark information corresponding with application identities can be added in frequency limit strategy configuration information, in this case, in step Before S103, mark information corresponding with the application identities of target application, step can be obtained from frequency limit strategy configuration information After S103 adjustment saves, then mark information corresponding with the application identities of target application in frequency limit strategy configuration information is updated to Mark information is modified.After step s 104, by generation to have modified mark information corresponding with the application identities of target application It is stored in frequency limit strategy configuration information.It is of course also possible to additional configuration storage space, for storing application identities, label letter The corresponding relationship of breath and the two.
The configuration method of CPU limit frequency provided in this embodiment, is mainly used in terminal, by this method, can For the different CPU frequency limit strategy of different application configurations, for small application, can configure lower CPU limit frequency with Power consumption is saved, large size is applied, such as popular application or the common application of user can configure higher CPU limit frequency to solve Certainly Caton, stuck etc. are abnormal, so that terminal preferentially meets the performance requirement of such application, so as not to influencing user experience.
Embodiment two
It takes the mobile phone as an example, in order to which in terminal configuration CPU limit frequency, to meet user experience, the present embodiment provides one kind The configuration method of CPU limit frequency refers to Fig. 2, mainly includes following below scheme:
S201, this week major authoritative official website is collected for the common seniority among brothers and sisters list using situation, and according to each big net The authoritative index stood, weighting calculate comprehensive application ranking list TOP10, form the first tables of data.
S202, the local use state data for having installed application are counted on backstage, specifically, statistics is each answered for nearest one week With the time for being in foreground, the time on foreground is according to application to calculate user to the use duration of the application, to nearest one Week using duration ranking list TOP10, forms the second tables of data.
S203, merge the first tables of data and the second tables of data, obtain third tables of data, merging mode is, by the second data Each application in table comes TOP10 according to the ranking in the second tables of data, and each application in the first tables of data is according to first Ranking in tables of data comes TOP11 to TOP20, if there is duplicate application, then according to its sequence in the second tables of data It is ranked up, the common application of user can be come into elder generation in this way, generate final third tables of data.
S204, the frequency limit configured before being dispatched from the factory according to the application identities inquiry mobile phone of each application in third tables of data configure White list table (as frequency limit strategy configuration information) adjusts to frequency limit configuration white list table.
Specifically, frequency limit configuration white list table may include application identities, frequency limit strategy, mark information and pair of three Should be related to, can also include other application in addition to the application identities listed, default frequency limit strategy, unmodified mark information with And the corresponding relationship of three.It is assumed that the frequency limit strategy in frequency limit configuration white list table is to allow maximum CPU processing capacity etc. Grade, then as shown in table 2:
Table 2
Step S203 can combine third tables of data and upper several tables 2, the frequency limit strategy of application arranged in modification table, or add Enter the configuration project for increasing application newly.
Specifically, inquiry table 2 is distinguished according to the application identities of each application in third tables of data, if there is application identities It is suffered in table 2, and mark information is unmodified mark information, such as using 1, then the corresponding permission of adjust automatically is maximum CPU processing capacity grade: a grade is originally promoted on the basis of grade, obtains the first adjustment frequency limit strategy are as follows: allow most Big CPU processing capacity grade X+1, and unmodified mark information is updated to have modified mark information, it is subsequent no longer to be promoted The corresponding CUP of this application handles grade.If certain application identities do not appear in table 2, such as using 3, if not It adjusts, is then classified as other application this kind, using the CPU processing capacity grade Z of default, and use the embodiment of the present invention, A grade can be then promoted on the basis of default level Z automatically, obtains second adjustment frequency limit strategy are as follows: is allowed maximum CPU processing capacity grade Z+1, and will using 3, allow maximum CPU processing capacity grade Z+1, modified mark information and The corresponding relationship of three is added in table 2.
So far, the configuration for realizing CPU limit frequency takes into account the demand for not having to application to cpu frequency, meets user Experience.
Embodiment three:
In order to realize that in terminal configuration CPU limit frequency, the present embodiment provides a kind of CPU limitation frequencies to meet user experience The configuration device of rate refers to Fig. 3, specifically includes that for executing the configuration method of the CPU limit frequency in embodiment one
Determining module 301, for determining the target application of frequency limit strategy to be adjusted;
First obtains module 302, for obtaining the application identities of the target application;
Enquiry module 303, for inquiring frequency limit strategy configuration information, the limit according to the application identities of the target application The tactful configuration information of frequency includes: at least one application identities, and with the one-to-one frequency limit strategy of each application identities;
The first adjustment module 304, the query result for the enquiry module 303 are in the frequency limit strategy configuration information Frequency limit strategy corresponding with the application identities of the target application is inquired, then according to the first preset rules to the frequency limit inquired Strategy is adjusted, and obtains the first adjustment frequency limit strategy;
First preserving module 305, the frequency limit policy replacement for will be inquired described in the frequency limit strategy configuration information At the first adjustment frequency limit strategy and save.
The specific method of determination of determining module 301 includes but is not limited to act set forth below:
The local use state data for having installed application of mode A, statistics determine which application is made according to use state data For the target application of frequency limit strategy to be adjusted.Specifically, use state data can be higher than to the application of preset value, or by basis After the use state data rank of each application, the application of ranking top N is determined as the target application of frequency limit strategy to be adjusted, N For the positive integer more than or equal to 1;
Use state data include frequency of use in predetermined period, in predetermined period using at least one in duration Kind;Predetermined period for example nearest one week, nearest one month etc.;
Such as the application that the frequency of use in predetermined period is higher than preset value is answered as the target of frequency limit strategy to be adjusted With.For another example, ranking is carried out according to each frequency of use applied in predetermined period from big to small, the application of ranking top N is really It is set to the target application of frequency limit strategy to be adjusted.
Mode B, outside obtain the service condition ranking information of common application;M before ranking applications are determined as wait adjust The target application of whole frequency limit strategy, M are the positive integer more than or equal to 1;
Such as the common popular ranking list using situation is obtained from major authoritative official website, and according to the power of major website Prestige index, weighting calculate comprehensive application seniority among brothers and sisters list, M before ranking applications are determined as to the target of frequency limit strategy to be adjusted Using.
The target application of frequency limit strategy to be adjusted can be determined using aforesaid way A and/or mode B.
Assuming that frequency limit strategy includes: to allow maximum CPU processing capacity grade, then the adjustment side of the first adjustment module 304 Formula, which may is that, rises a grade on the basis of the maximum CPU processing capacity grade X of permission inquired, i.e. X+1 is obtained To the first adjustment frequency limit strategy, the frequency limit strategy corresponding with target application inquired before being modified in frequency limit strategy configuration information It is substituted for the first adjustment frequency limit strategy and saves, complete the modification to configuration item.
Further, above-mentioned frequency limit strategy configuration device can also include:
Second adjustment module 306, the query result for the enquiry module 303 are in the frequency limit strategy configuration information The application identities of the target application are not inquired, then the frequency limit strategy based on default is adjusted according to the second preset rules To second adjustment frequency limit strategy;
Second preserving module 307 is saved for corresponding to the application identities of the target application, second adjustment frequency limit strategy Into the frequency limit strategy configuration information.
Assuming that frequency limit strategy includes: to allow maximum CPU processing capacity grade, then the adjustment side of second adjustment module 306 Formula, which may is that, rises a grade on the basis of the maximum CPU processing capacity grade Y of permission of default, i.e. Y+1 is obtained Second adjustment frequency limit strategy, and the application identities of target application, second adjustment frequency limit strategy correspondence are saved in frequency limit strategy and matched In confidence breath, the addition to configuration item is completed.
Above-mentioned process can be carried out periodically, in order to prevent to the frequent adjustment of frequency limit strategy, further, above-mentioned frequency limit plan Omiting configuration device can also include:
Second obtains module 308, for obtaining mark information corresponding with the application identities of the target application;
Flag update module 309 will be looked into for first preserving module 305 described in the frequency limit strategy configuration information The mark information is updated to modify label letter by the frequency limit policy replacement ask at the first adjustment frequency limit strategy and after saving Breath;
It is unmodified label that the first adjustment module 304, which obtains the mark information that module 308 obtains for described second, After information, the frequency limit strategy inquired is adjusted according to the first preset rules, obtains the first adjustment frequency limit strategy;It is also used to The mark information that the second acquisition module 308 obtains is after having modified mark information, to abandon to the frequency limit plan inquired Slightly it is adjusted.
Further, above-mentioned frequency limit strategy configuration device can also include:
Generation module 310 is marked, for second preserving module 307 by the application identities of the target application, second Adjustment frequency limit strategy is corresponding be saved in the frequency limit strategy configuration information after, mark information has been modified in generation, and by generation Mark information preservation corresponding with the application identities of the target application is modified.
Further, the frequency limit strategy includes: to allow maximum CPU processing capacity grade.
The configuration device of CPU limit frequency provided in this embodiment can be limited for the different CPU of different application configurations Frequency strategy can configure lower CPU limit frequency to save power consumption, large size is applied, such as is popular for small application Using or the common application of user can to configure higher CPU limit frequency abnormal to solve Caton, stuck etc., meet user's body It tests, also reduces visitor and move back rate.
Obviously, those skilled in the art should be understood that each module of the embodiments of the present invention or each step can be used General computing device realizes that they can be concentrated on a single computing device, or be distributed in multiple computing device institutes On the network of composition, optionally, they can be realized with the program code that computing device can perform, it is thus possible to by them It is stored in computer storage medium (ROM/RAM, magnetic disk, CD) and is performed by computing device, and in some cases, it can With the steps shown or described are performed in an order that is different from the one herein, or they are fabricated to each integrated circuit dies Block, or single integrated circuit module is maked multiple modules or steps in them to realize.So the present invention does not limit It is combined in any specific hardware and software.
The above content is combining specific embodiment to be further described to made by the embodiment of the present invention, cannot recognize Fixed specific implementation of the invention is only limited to these instructions.For those of ordinary skill in the art to which the present invention belongs, Without departing from the inventive concept of the premise, a number of simple deductions or replacements can also be made, all shall be regarded as belonging to the present invention Protection scope.

Claims (10)

1. a kind of configuration method of CPU limit frequency, comprising:
It determines the target application of frequency limit strategy to be adjusted, and obtains the application identities of the target application;
Frequency limit strategy configuration information is inquired according to the application identities of the target application, the frequency limit strategy configuration information includes: At least one application identities, and with the one-to-one frequency limit strategy of each application identities;
If inquiring frequency limit strategy corresponding with the application identities of the target application, root in the frequency limit strategy configuration information The frequency limit strategy inquired is adjusted according to the first preset rules, obtains the first adjustment frequency limit strategy, by the frequency limit strategy The frequency limit policy replacement inquired described in configuration information is at the first adjustment frequency limit strategy and saves.
2. the configuration method of CPU limit frequency as described in claim 1, which is characterized in that further include:
If the application identities of the target application are not inquired in the frequency limit strategy configuration information, the frequency limit plan based on default Slightly it is adjusted to obtain second adjustment frequency limit strategy according to the second preset rules, and by the application identities of the target application, Two adjustment frequency limit strategy correspondences are saved in the frequency limit strategy configuration information.
3. the configuration method of CPU limit frequency as described in claim 1, which is characterized in that described according to the first preset rules Before being adjusted to the frequency limit strategy inquired, further includes:
Obtain mark information corresponding with the application identities of the target application;
If the mark information be unmodified mark information, enter it is described according to the first preset rules to the frequency limit plan inquired The step of being saved after being slightly adjusted, and be updated to the mark information to have modified mark information;
If the mark information is to have modified mark information, abandon being adjusted the frequency limit strategy inquired.
4. the configuration method of CPU limit frequency as claimed in claim 2, which is characterized in that by the application of the target application It identifies, second adjustment frequency limit strategy corresponds to after being saved in the frequency limit strategy configuration information, further includes:
Mark information has been modified in generation, and mark information guarantor corresponding with the application identities of the target application has been modified in generation It deposits.
5. the configuration method of CPU limit frequency as described in claim 1, which is characterized in that the determination frequency limit plan to be adjusted Slightly target application include:
The local use state data for having installed application of statistics, the use state data include in predetermined period using frequency At least one of use duration in rate, predetermined period;Frequency limit strategy to be adjusted is determined as according to use state data Target application;
And/or the external service condition ranking information for obtaining common application;M before ranking applications are determined as limit to be adjusted The target application of frequency strategy;
N is the positive integer more than or equal to 1, and M is the positive integer more than or equal to 1.
6. such as the configuration method of CPU limit frequency described in any one of claim 1 to 5, which is characterized in that the frequency limit strategy It include: to allow maximum CPU processing capacity grade.
7. a kind of configuration device of CPU limit frequency, comprising:
Determining module, for determining the target application of frequency limit strategy to be adjusted;
First obtains module, for obtaining the application identities of the target application;
Enquiry module, for inquiring frequency limit strategy configuration information, the frequency limit strategy according to the application identities of the target application Configuration information includes: at least one application identities, and with the one-to-one frequency limit strategy of each application identities;
The first adjustment module, query result for the enquiry module is inquires and institute in the frequency limit strategy configuration information The corresponding frequency limit strategy of application identities for stating target application, then adjust the frequency limit strategy inquired according to the first preset rules It is whole, obtain the first adjustment frequency limit strategy;
First preserving module, the frequency limit policy replacement for will inquire described in the frequency limit strategy configuration information are adjusted at first Whole frequency limit strategy simultaneously saves.
8. the configuration device of CPU limit frequency as claimed in claim 7, which is characterized in that further include:
Second adjustment module, query result for the enquiry module is does not inquire institute in the frequency limit strategy configuration information The application identities of target application are stated, then the frequency limit strategy based on default is adjusted to obtain second adjustment according to the second preset rules Frequency limit strategy;
Second preserving module, it is described for the application identities of the target application, second adjustment frequency limit strategy correspondence to be saved in In frequency limit strategy configuration information.
9. the configuration device of CPU limit frequency as claimed in claim 7, which is characterized in that further include:
Second obtains module, for obtaining mark information corresponding with the application identities of the target application;
Flag update module, the frequency limit that will be inquired described in the frequency limit strategy configuration information for first preserving module Policy replacement is updated to the mark information to have modified mark information at the first adjustment frequency limit strategy and after saving;
The first adjustment module for it is described second obtain module obtain the mark information be unmodified mark information after, according to First preset rules are adjusted the frequency limit strategy inquired, obtain the first adjustment frequency limit strategy;Described second is also used to obtain The mark information that modulus block obtains is after having modified mark information, to abandon being adjusted the frequency limit strategy inquired.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has frequency limit strategy configurator, institute It states and realizes matching such as CPU limit frequency as claimed in any one of claims 1 to 6 when frequency limit strategy configurator is executed by processor The step of setting method.
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 true CN109324889A (en) 2019-02-12
CN109324889B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021244473A1 (en) * 2020-06-01 2021-12-09 京东科技控股股份有限公司 Frequency control method and apparatus

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021244473A1 (en) * 2020-06-01 2021-12-09 京东科技控股股份有限公司 Frequency control method and apparatus

Also Published As

Publication number Publication date
CN109324889B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN108255653B (en) Product testing method and terminal thereof
US20170330294A1 (en) Electric power supply and demand control apparatus, electric power supply and demand control method, and non-transitory storage medium
CN103838353A (en) Method and terminal for controlling processor operation
CN112883036B (en) Index creation method, device, storage server and storage medium
WO2016184048A1 (en) Method and device for frequency management for multi-core processor cpu
CN114461382A (en) Flexibly configurable computing power scheduling implementation method and device and storage medium
CN113127194A (en) Management chip resource self-adaptive distribution method, device and medium
CN109495585B (en) Hierarchical control method for edge network and cloud
CN109324889A (en) Configuration method, device and the computer readable storage medium of CPU limit frequency
CN109933595B (en) Internet of things equipment information sharing system and device and terminal equipment
CN113132267A (en) Distributed system, data aggregation method and computer readable storage medium
CN111984759B (en) Question-answering processing method, question-answering processing device, electronic equipment and storage medium
CN115484233B (en) Method, device, equipment and medium for forwarding link aggregation message in digital communication chip
CN111404776A (en) System and method for realizing depth data filtering and shunting by open hardware
CN115407942B (en) Data processing method suitable for single chip microcomputer chip
CN110765082A (en) Hadoop file processing method and device, storage medium and server
CN109299148A (en) Data query method and server
CN115515188A (en) Flow control method and device, electronic equipment and storage medium
CN105828421A (en) Terminal and terminal power saving method
CN105302808A (en) Method and apparatus for reducing load peak in user group matching process
CN111931797B (en) Method, device and equipment for identifying network to which service belongs
CN110460987B (en) Card writing method, device, server and storage medium
CN107870809B (en) Application closing method and device, storage medium and electronic equipment
CN110751204A (en) Data fusion method and device, storage medium and electronic device
CN109508433A (en) Fluctuation of load countermeasure and system based on matching algorithm adjusting performance

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