CN1567180A - Method for adjusting working frequency of CPU - Google Patents

Method for adjusting working frequency of CPU Download PDF

Info

Publication number
CN1567180A
CN1567180A CN 03137089 CN03137089A CN1567180A CN 1567180 A CN1567180 A CN 1567180A CN 03137089 CN03137089 CN 03137089 CN 03137089 A CN03137089 A CN 03137089A CN 1567180 A CN1567180 A CN 1567180A
Authority
CN
China
Prior art keywords
frequency
processing unit
value
central processing
adjustment
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
CN 03137089
Other languages
Chinese (zh)
Other versions
CN1272701C (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.)
Micro Star International Co Ltd
Original Assignee
Micro Star International Co Ltd
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 Micro Star International Co Ltd filed Critical Micro Star International Co Ltd
Priority to CN 03137089 priority Critical patent/CN1272701C/en
Publication of CN1567180A publication Critical patent/CN1567180A/en
Application granted granted Critical
Publication of CN1272701C publication Critical patent/CN1272701C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

This invention discloses a method for adjusting the working frequency of the central process unit, which gradually adjust the CPU according to the CPU real time operation status. The method are the following: to establish a frequency stage conversion meter; to get a current using state data of CPU; to generate a stage value of target frequency according to the frequency conversion meter; to gradually adjust the working frequency to the target frequency stage value. This method can decrease human operation errors and make the CPU work at beat and decrease material waste and hardware loss.

Description

Adjust central processing unit frequency of operation method
Technical field
The present invention relates to a kind of method of adjustment of relevant frequency of operation (Clock Frequency), particularly relate to a kind of in computer software programs according to central processing unit user mode data, use fuzzy control (Fuzzy Control) mode then and progressively adjust central processing unit frequency of operation method.
Background technology
The existing method of adjustment that is used for central processing unit frequency of operation (Clock Frequency), just so-called " overclocking " or " frequency reducing ", the overwhelming majority is all utilized manual manipulation mode adjustment by the user, and the user must utilize pluggable mode that jumper wire device (jumper) do to change is adjusted and operate so that required frequency of operation circuit can be reached electrically connect and then make central processing unit can change to required frequency of operation.
Yet, the artificial mode of adjusting frequency of operation is easy to generate the problem of following two aspects: (1) is owing to the performed job procedure of central processing unit is changing all the time, therefore when load is heavy, need higher frequency of operation to deal with huge execution burden in theory, and when load is light, central processing unit must be saved expending of unnecessary resource to being adjusted to lower frequency of operation in theory, and this kind phenomenon often causes the artificial at present mode of adjusting to produce the problem that can't be adjusted to optimization in real time and keep the optimization frequency of operation at any time because grasping load (loading) situation of central processing unit at any time; (2) because the preceding user of each artificial adjustment frequency of operation must the reference manual explanation can carry out frequency modulation work smoothly, not only running program is quite loaded down with trivial details but also easy causes frequency modulation to make a mistake because user's relevant knowledge is not enough, when frequency modulation is excessive or not enough, tend to cause the added burden in the central processing unit running, so the mode by artificial adjustment frequency of operation is easier to make mistakes and easily causes the unnecessary loss of associated hardware module, produces the problem that reduces the time in serviceable life.
In order to reduce the problems of above-mentioned artificial adjustment frequency of operation, now begun to have by providing the computer software programs interface to carry out the way that frequency of operation is adjusted, though this mode can be avoided the directly obscure nextport hardware component NextPort of contact of user, also can simplify user's running program, but same because real-time adjustment can't be provided and keep method for optimizing at any time, and still have the problem that the nextport hardware component NextPort consume may take place.
Therefore, to how to utilize that existing computer software programs technical design is a kind of can adjust central processing unit frequency of operation method automatically in real time, not only can avoid user's artificial intervention and central processing unit is often remained under the optimized state under constantly adjusting, so as to bringing into play maximum operational effectiveness and reducing the generation of assembly consume, be engaged at present relevant research and development field personages the important directions that should make great efforts.
Summary of the invention
Technical matters to be solved by this invention is to propose a kind of computer software programs that utilize fully to carry out the method that the central processing unit frequency of operation is adjusted, it not only can reduce the chance that manual operation in the past makes a mistake, more can make the operation of central processing unit can bring into play maximum usefulness, and fully save the waste of unnecessary resource and the improper loss of nextport hardware component NextPort.
To achieve these goals, the present invention has mentioned a kind of adjustment central processing unit frequency of operation method, include the following step: at first set up frequency class conversion table, then obtain the current user mode data of central processing unit, according to frequency class conversion table, conversion produces target frequency class value, progressively adjusts frequency of operation to target frequency class value by carrying out fuzzy control at last.
In order to realize above-mentioned purpose better, the present invention yet provides a kind of adjustment central processing unit frequency of operation method, be to utilize fuzzy control method to carry out the progressively adjustment of frequency of operation, be characterised in that, comprise the following step according to the real-time operating state of central processing unit:
Set up a fuzzy control reference table;
Read the current frequency of one of this target frequency class value and frequency generator class value;
Calculate a frequency difference value and a frequency difference rate; And
According to this fuzzy control reference table, decision frequency adjustment modes is also adjusted.
By the inventive method, can make the most real-time reaction and carry out optimized adjustment according to the user mode data of central processing unit; In whole adjustment process in order to reduce loss, so the work that utilizes fuzzy control (Fuzzy Control) mode to finely tune to nextport hardware component NextPort; Not only can reduce the chance that manual operation in the past makes a mistake, more can make the running of central processing unit can bring into play maximum usefulness, and save the waste of unnecessary resource and the improper loss of nextport hardware component NextPort fully.
Further specify feasible embodiment of the present invention below in conjunction with accompanying drawing.
Description of drawings
Fig. 1 is the operation workflow figure of the mentioned adjustment central processing unit frequency of operation method of the present invention;
Fig. 2 is fuzzy control (FuzzyControl) process flow diagram of the mentioned adjustment central processing unit frequency of operation method of the present invention;
Fig. 3 is the fuzzy control frequency adjustment running synoptic diagram of the mentioned adjustment central processing unit frequency of operation method of the present invention; And
Fig. 4 is the fuzzy control reference table synoptic diagram of the mentioned adjustment central processing unit frequency of operation method of the present invention.
Wherein, description of reference numerals
10 target frequency classes value
20 fuzzy control models
21 overclocking adjustment modes
22 not frequency conversion adjustment modes
23 frequency reducing adjustment modes
30 frequency generators
40 current frequency class values
The N negative value
The Z null value
P on the occasion of
U frequency reducing adjustment modes
O overclocking adjustment modes
Not frequency conversion of NC adjustment modes
Step 100 is set up a frequency class conversion table
Step 200 obtains the current user mode data of one of central processing unit
Step 300 conversion produces target frequency class value
Step 400 need be adjusted
Step 500 is progressively adjusted frequency of operation to this target frequency class value
Step 510 is set up a fuzzy control reference table
Step 520 reads this a target frequency class value and a current frequency class value
Step 530 is calculated a frequency difference value and a frequency difference rate
Step 540 decision frequency adjustment modes is also adjusted
The current frequency of this of step 550 reception passback class value
Step 560 arrives this target frequency class value
Embodiment
The present invention is a kind of method of carrying out the adjustment of central processing unit frequency of operation (ClockFrequency) optimization by computer software programs, every hardware with central processing unit frequency of operation adjustment mechanism, (Terminate and StayResident, TSR) mode or alternate manner are carried out the purpose of adjusting the central processing unit frequency of operation to reach with resident program all can to use computer software programs of the present invention.
Below, by Fig. 1 the main flow process of the inventive method being described, this Fig. 1 is an operation workflow of the present invention, is described as follows.
Step 100, at first, must in computer software programs of the present invention, set up frequency class conversion table, so-called frequency class conversion table mainly is to be used for corresponding relation between writing task frequency and the frequency class (Clock Level), usually can be because the definition specification (specification) different and that taked of hardware is different and different; Step 200, then obtain the current user mode data of central processing unit, the user mode data are to represent the data content of central processing unit state with number percent data (percentage data), for example: utilization rate data (CPU Usage), load factor data (CPU Loading) Step 300, then according to frequency class conversion table, conversion produces target frequency class value 10, just with the user mode data of central processing unit through being scaled due target frequency class value 10, wherein the conversion mode of target frequency class value 10 can be tried to achieve with following expression formula:
Cl=〔Cu/100*Cl max〕。
Wherein, Cl: target frequency class value; Cl Max: frequency class maximal value; Cu: current user mode data.Because target frequency class value 10 (Cl) must be to be the round values kenel, therefore at expression formula Cu/100*Cl MaxAlso must be in the operation result through Gauss's computing to seek out last round values result.
Should after obtaining the target frequency class value 10 that adjust, judge whether that current frequency class value 40 has met target frequency class value 10, needs to adjust?, step 400; If do not need to adjust, then come back to step 200 place, if the words that need to adjust are then progressively adjusted frequency of operation to target frequency class value 10, step 500.More than be the main operation workflow of the inventive method, the inventive method will continue the part of repeating step 200 to step 500 when central processing unit continues to operate then, to carry out the adjustment to the central processing unit frequency of operation at any time.
And in order to reduce when adjusting frequency of operation to the influence that nextport hardware component NextPort caused the action that the inventive method more can be done progressively to adjust by fuzzy control (Fuzzy Control) mode when step 500.See also the part of Fig. 2, at first set up the fuzzy control reference table, step 510, this part fuzzy control reference table is in order to the corresponding relation between recording frequency difference value, frequency difference rate and the frequency adjustment modes, is mainly used to determine should use under the situation of which kind of frequency difference value and frequency difference rate which kind of frequency adjustment modes; Then read the current frequency class value 40 of target frequency class value 10 and frequency generator (Clock Generator), step 520; Calculate the numerical value of frequency difference value and frequency difference rate then respectively, step 530, wherein the account form of frequency difference value and frequency difference rate can be tried to achieve with following expression formula:
(1) frequency difference value:
D v=Cl-FCl。
Wherein, D v: the frequency difference value; Cl: target frequency class value; FCl: current frequency class value.
(2) frequency difference rate:
D r=d(D v)/d t
Wherein, D r: the frequency difference rate; D v: the frequency difference value; T: time.Because frequency difference value (D v) can constantly change along with the change of time, therefore must be with frequency difference value (D v) time (t) is made the frequency difference rate (D that differential can accurately be calculated essence r).
After obtaining frequency difference value and frequency difference rate respectively, just according to the fuzzy control reference table, decision frequency adjustment modes is also adjusted step 540; In fact after adjusting, can receive the current frequency class value 40 of passback, step 550, general all is to be provided by the hardware that can carry out the adjustment of central processing unit frequency of operation, as: frequency generator 30 (Clock Generator) ... mainly be used to provide judge whether to reach the target frequency class value 10 that should adjust to?, step 560; If do not reach as yet then continue to get back to step 530 place, if then finish this operation workflow during the frequency class value that has reached that this has.
In fact, the method of adjustment central processing unit frequency of operation of the present invention, user's interface (User Interface can also be provided, UI) usefulness of carrying out the parameters setting for the user, for example: the frequency of operation upper lower limit value is set, predetermined activation is carried out and set, frequency class conversion table is set ...
In order to further specify the fuzzy control method that the inventive method proposes, cooperate the part of Fig. 3 and Fig. 4 to explain again, to show the concrete feasibility of the inventive method.
Wherein, Fig. 3 is a fuzzy control frequency adjustment running synoptic diagram of the present invention.By whole at the beginning as can be known fuzzy control among Fig. 3 is as main input with target frequency class value 10, can determine the frequency adjustment modes that take after the calculating running via fuzzy control model 20, comprise: overclocking adjustment modes 21, not frequency conversion adjustment modes 22 and frequency reducing adjustment modes 23, then give notice to frequency generator 30 (this is an embodiment) and carry out the adjustment of frequency of operation according to the frequency adjustment modes that is determined, the each adjustment is unit of adjustment with a frequency class value all, after finishing, frequency generator 30 adjustment can send 40 times fuzzy control models 20 of current frequency class's value, make fuzzy control model 20 can determine to proceed to adjust? till current frequency class value 40 is adjusted into target frequency class value 10.
Then see also the part of Fig. 4 as for the deciding means of frequency adjustment modes.After frequency difference value and frequency difference rate are calculated, just decide the required frequency adjustment modes of taking according to the prior fuzzy control reference table of setting up, cardinal rule is as follows:
(1) when the frequency difference value is negative value (N), then takes frequency reducing adjustment modes (U) 23;
(2) when the frequency difference value be when (P), then take overclocking adjustment modes (O) 21;
(3) when the frequency difference value is null value (Z), if the frequency difference rate is taked overclocking adjustment modes (O) 21 during for negative value, if the frequency difference rate on the occasion of the time take frequency reducing adjustment modes 23, if the frequency difference rate is taked not frequency conversion adjustment modes (NC) 22 during for null value.
Above said content only is preferred embodiment of the present invention, is not to be used for limiting embodiment of the present invention; Be allly mainly to conceive the equalization done according to the present invention and change and modify, be all the claimed scope of patent of the present invention and contain.

Claims (10)

1. an adjustment central processing unit frequency of operation method is the progressively adjustment of carrying out frequency of operation according to the real-time operating state of central processing unit, it is characterized in that comprising following steps:
Set up a frequency class conversion table;
Obtain the current user mode data of one of central processing unit;
According to this frequency class conversion table, conversion produces target frequency class value; And
Progressively adjust frequency of operation to this target frequency class value.
2. adjustment central processing unit frequency of operation method as claimed in claim 1 is characterized in that these current user mode data are the number percent data, and is optional in can being made up by the group of utilization rate data, load factor data at least.
3. adjustment central processing unit frequency of operation method as claimed in claim 1 is characterized in that, this conversion produces the step of this target frequency class value, can obtain this target frequency class value by following expression formula:
Cl=〔Cu/100*Cl max〕;
Wherein, Cl: target frequency class value;
Cl Max: frequency class maximal value; And
Cu: current user mode data.
4. adjustment central processing unit frequency of operation method as claimed in claim 1 is characterized in that, it is to be undertaken by fuzzy control method that frequency of operation to the step of this target frequency class value is progressively adjusted in this execution, more comprises the following step:
Set up a fuzzy control reference table;
Read the current frequency of one of this target frequency class value and a frequency generator (Clock Generator) class value;
Calculate a frequency difference value and a frequency difference rate; And
According to this fuzzy control reference table, decision frequency adjustment modes is also adjusted.
5. adjustment central processing unit frequency of operation method as claimed in claim 4 is characterized in that this calculates the step of this frequency difference value, can obtain this frequency difference value by following expression formula:
D v=Cl-FCl:
Wherein, D v: the frequency difference value;
Cl: target frequency class value; And
FCl: current frequency class value.
6. adjustment central processing unit frequency of operation method as claimed in claim 4 is characterized in that this calculates the step of this frequency difference rate, can obtain this frequency difference rate by following expression formula:
D r=d(D v)/d t
Wherein, D r: the frequency difference rate;
D v: the frequency difference value; And
T: time.
7. adjustment central processing unit frequency of operation method as claimed in claim 4 is characterized in that, this step more comprises from this frequency generator and receives the current frequency of this of passback class value, to judge whether to arrive the step of this target frequency class value.
8. an adjustment central processing unit frequency of operation method is to utilize fuzzy control method to carry out the progressively adjustment of frequency of operation according to the real-time operating state of central processing unit, is characterised in that, comprises the following step:
Set up a fuzzy control reference table;
Read the current frequency of one of this target frequency class value and frequency generator class value;
Calculate a frequency difference value and a frequency difference rate; And
According to this fuzzy control reference table, decision frequency adjustment modes is also adjusted.
9. adjustment central processing unit frequency of operation method as claimed in claim 8 is characterized in that this calculates the step of this frequency difference value, can obtain this frequency difference value by following expression formula:
D v=Cl-FCl;
Wherein, D v: the frequency difference value;
Cl: target frequency class value; And
FCl: current frequency class value.
10. adjustment central processing unit frequency of operation method as claimed in claim 8 is characterized in that this calculates the step of this frequency difference rate, can obtain this frequency difference rate by following expression formula:
D r=d(D v)/d t
Wherein, D r: the frequency difference rate;
D v: the frequency difference value; And t: time.
CN 03137089 2003-06-18 2003-06-18 Method for adjusting working frequency of CPU Expired - Fee Related CN1272701C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 03137089 CN1272701C (en) 2003-06-18 2003-06-18 Method for adjusting working frequency of CPU

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 03137089 CN1272701C (en) 2003-06-18 2003-06-18 Method for adjusting working frequency of CPU

Publications (2)

Publication Number Publication Date
CN1567180A true CN1567180A (en) 2005-01-19
CN1272701C CN1272701C (en) 2006-08-30

Family

ID=34470346

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 03137089 Expired - Fee Related CN1272701C (en) 2003-06-18 2003-06-18 Method for adjusting working frequency of CPU

Country Status (1)

Country Link
CN (1) CN1272701C (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100334527C (en) * 2003-12-15 2007-08-29 仁宝电脑工业股份有限公司 Method for dynamically adjusting CPU frequency
CN100365543C (en) * 2006-03-10 2008-01-30 浙江大学 Frequency energy-saving method of kernel dynamic adjusting processor
CN100395714C (en) * 2005-05-28 2008-06-18 鸿富锦精密工业(深圳)有限公司 Circuit for identificating front-end bus of central processor
US7647512B2 (en) 2006-05-11 2010-01-12 Asustek Computer Inc. Method and apparatus for switching performance
WO2014032250A1 (en) * 2012-08-30 2014-03-06 华为终端有限公司 Method and device for controlling central processing unit
CN105116985A (en) * 2015-08-04 2015-12-02 Tcl移动通信科技(宁波)有限公司 DDR clock frequency control method and system
CN105677482A (en) * 2015-12-31 2016-06-15 联想(北京)有限公司 Frequency adjusting method and electronic equipment
US9436266B2 (en) 2012-08-30 2016-09-06 Huawei Device Co., Ltd. Method and apparatus for controlling central processing unit in a group of central processing units by acquiring power consumption factors for each central processing unit and comparing a mean of power consumption factors with a threshold
CN106527666A (en) * 2016-11-18 2017-03-22 宇龙计算机通信科技(深圳)有限公司 Control method of central processing unit and terminal equipment
CN107705766A (en) * 2017-10-26 2018-02-16 福建捷联电子有限公司 A kind of control method of liquid crystal display overclocking
CN109085911A (en) * 2018-07-11 2018-12-25 深圳超多维科技有限公司 A kind of dynamic frequency method, apparatus, equipment and storage medium
CN115840595A (en) * 2022-12-12 2023-03-24 摩尔线程智能科技(北京)有限责任公司 Configuration method and device for chip, electronic equipment and storage medium

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100334527C (en) * 2003-12-15 2007-08-29 仁宝电脑工业股份有限公司 Method for dynamically adjusting CPU frequency
CN100395714C (en) * 2005-05-28 2008-06-18 鸿富锦精密工业(深圳)有限公司 Circuit for identificating front-end bus of central processor
CN100365543C (en) * 2006-03-10 2008-01-30 浙江大学 Frequency energy-saving method of kernel dynamic adjusting processor
US7647512B2 (en) 2006-05-11 2010-01-12 Asustek Computer Inc. Method and apparatus for switching performance
WO2014032250A1 (en) * 2012-08-30 2014-03-06 华为终端有限公司 Method and device for controlling central processing unit
US9405353B2 (en) 2012-08-30 2016-08-02 Huawei Device Co., Ltd. Method and apparatus for controlling central processing unit
US9436266B2 (en) 2012-08-30 2016-09-06 Huawei Device Co., Ltd. Method and apparatus for controlling central processing unit in a group of central processing units by acquiring power consumption factors for each central processing unit and comparing a mean of power consumption factors with a threshold
CN105116985B (en) * 2015-08-04 2017-12-12 Tcl移动通信科技(宁波)有限公司 A kind of DDR clock frequency control method thereofs and system
CN105116985A (en) * 2015-08-04 2015-12-02 Tcl移动通信科技(宁波)有限公司 DDR clock frequency control method and system
CN105677482A (en) * 2015-12-31 2016-06-15 联想(北京)有限公司 Frequency adjusting method and electronic equipment
CN105677482B (en) * 2015-12-31 2020-12-18 联想(北京)有限公司 Frequency adjusting method and electronic equipment
CN106527666A (en) * 2016-11-18 2017-03-22 宇龙计算机通信科技(深圳)有限公司 Control method of central processing unit and terminal equipment
CN107705766A (en) * 2017-10-26 2018-02-16 福建捷联电子有限公司 A kind of control method of liquid crystal display overclocking
CN109085911A (en) * 2018-07-11 2018-12-25 深圳超多维科技有限公司 A kind of dynamic frequency method, apparatus, equipment and storage medium
CN115840595A (en) * 2022-12-12 2023-03-24 摩尔线程智能科技(北京)有限责任公司 Configuration method and device for chip, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN1272701C (en) 2006-08-30

Similar Documents

Publication Publication Date Title
CN1272701C (en) Method for adjusting working frequency of CPU
CN1108560C (en) Mixed execution of stack and abnormal processing
CN1877492A (en) Powder supply controlling method and device of a multi-core processor
CN1881140A (en) Apparatus and method for automatically controlling processor mode of multi-core processor
CN1920781A (en) Task execution device and method
CN1908903A (en) System and method for executing job step, and computer product
CN1641534A (en) Apparatus for controlling power of processor having a plurality of cores and control method of the same
CN1700601A (en) Logic circuit apparatus
CN1763731A (en) Cache memory system
CN1828541A (en) Implementation method for timing task in Java operating system
CN1517867A (en) Process scheduling device, process ccheduling method, program and recording medium
CN1696871A (en) Information processing apparatus
CN107608893B (en) Pressure test scheduling method and device, scheduling server and computing equipment
CN1828479A (en) Method and device for switching video card working frequency
CN1755661A (en) Information processing apparatus and method and program
CN1777110A (en) Cluster device batch file transmitting method and file transmission device
CN1892588A (en) Device, system and method of generating an execution instruction based on a memory-access instruction
CN1866165A (en) Computer system with power-saving capability and method for implementing power-saving mode in computer system
CN1758610A (en) Consumption control method of parallel computing trunking power supply
WO2021237970A1 (en) Task scheduling method, apparatus and device for cloud robot, and storage medium
CN1818885A (en) Operation logbook obtaining method
CN1945478A (en) Simulation apparatus
CN1960194A (en) Sorting device
CN1324421C (en) Method and apparatus for central processor frequency conversion and central processor fan speed change
CN1229719C (en) Power controller for computing unit, its program and method and energy-saving decoder

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C19 Lapse of patent right due to non-payment of the annual fee
CF01 Termination of patent right due to non-payment of annual fee