CN105760342A - Control method and device for working state of multi-core processor - Google Patents

Control method and device for working state of multi-core processor Download PDF

Info

Publication number
CN105760342A
CN105760342A CN201410802375.XA CN201410802375A CN105760342A CN 105760342 A CN105760342 A CN 105760342A CN 201410802375 A CN201410802375 A CN 201410802375A CN 105760342 A CN105760342 A CN 105760342A
Authority
CN
China
Prior art keywords
dominant frequency
polycaryon processor
processor
power consumption
core
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.)
Pending
Application number
CN201410802375.XA
Other languages
Chinese (zh)
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.)
Leadcore Technology Co Ltd
Original Assignee
Leadcore Technology 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 Leadcore Technology Co Ltd filed Critical Leadcore Technology Co Ltd
Priority to CN201410802375.XA priority Critical patent/CN105760342A/en
Publication of CN105760342A publication Critical patent/CN105760342A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the invention discloses a control method and device for the working state of a multi-core processor.The method includes the steps that a first dominant frequency meeting the performance requirement of a terminal is obtained; a second dominant frequency correlated with the first dominant frequency is determined from multiple frequencies which can be provided by the multi-core processor, and terminal power consumption corresponding to all working modes under the second dominant frequency is determined, wherein the working modes include core dominant frequencies of all processor cores needing to be opened at the same time in the multi-core processor under the second dominant frequency; according to determination results, the working state of the multi-core processor is controlled.According to the technical scheme, on premise of meeting the performance requirement of the terminal equipment, the multi-core processor can be controlled to work at almost minimum power consumption to overcome the defect of performance thrashing.

Description

Polycaryon processor working state control method and device
Technical field
The present embodiments relate to field of computer technology, particularly relate to polycaryon processor working state control method and device.
Background technology
Polycaryon processor technology is an advanced technology in CPU design.This technology by integrated for plural processor core on one chip, to strengthen calculated performance.Polycaryon processor, than current single core processor, can bring the advantage on more performance and the productivity, thus will eventually become a kind of extensively universal computation schema.
At present, along with CPU frequency is more and more higher and the appearance of multinuclear, the power consumption of terminal unit is also increasing.Especially for the mobile equipment that battery capacity is certain, adopting polycaryon processor to be calculated can its stand-by time/working time of serious curtailment.Therefore, how to control polycaryon processor under disclosure satisfy that the premise that equipment performance requires, make equipment be operated with minimum power consumption state as far as possible and seem and be extremely necessary.
In the prior art, the control method of polycaryon processor duty is mainly reflected in two aspects: CPU dynamic frequency and CPU hot plug.But, both control methods are all based on respective control strategy and work alone, thus there is following drawback:
First, performance is jolted phenomenon;
Owing to above two control method is independent mutually, lacks and plan as a whole, cause that the change of equipment performance is not smooth, but up and down, thus bringing the loss in performance;
Second, control strategy cannot accomplish that power consumption tends to minimizing;
Due to the appearance of multinuclear, certain performance requirement to be met, except the CPU dynamic frequency control method, more than CPU hot plug control method;But owing to above two control method is independent mutually, under the premise that performance is suitable, it is impossible to prioritizing selection makes the control method that equipment consumption is less.
Summary of the invention
The embodiment of the present invention provides a kind of to polycaryon processor working state control method and device, to control polycaryon processor under the premise that disclosure satisfy that terminal unit performance requirement, is operated with the power consumption state tending to minimizing, and overcomes performance to jolt phenomenon.
First aspect, embodiments provides a kind of polycaryon processor working state control method, and the method includes:
Obtain the first dominant frequency meeting terminal capabilities demand;
Determine that multiple dominant frequency that polycaryon processor can provide have the second dominant frequency of incidence relation with described first dominant frequency, and the power consumption of terminal that various working methods under described second dominant frequency are corresponding;Wherein, described working method includes needing in described polycaryon processor the core dominant frequency of each processor core simultaneously opened under described second dominant frequency;
According to determining that the duty of described polycaryon processor is controlled by by result.
Second aspect, the embodiment of the present invention additionally provides a kind of polycaryon processor working state control device, and this device includes:
Acquiring unit, for obtaining the first dominant frequency meeting terminal capabilities demand;
Determine unit, for determining that multiple dominant frequency that polycaryon processor can provide have the second dominant frequency of incidence relation with described first dominant frequency, and the power consumption of terminal that various working methods under described second dominant frequency are corresponding;Wherein, described working method includes needing in described polycaryon processor the core dominant frequency of each processor core simultaneously opened under described second dominant frequency;
Control unit, for according to determining that the duty of described polycaryon processor is controlled by by result.
In the technical scheme that the embodiment of the present invention provides, it it is not independent this CPU dynamic frequency control method of core dominant frequency by promoting/reduce processor core, or open/or close this CPU hot plug control method of processor core, obtain disclosure satisfy that the target dominant frequency of terminal capabilities demand, but consider polycaryon processor and the several working ways of target dominant frequency can be provided, and then based on the power consumption of terminal corresponding to several working ways, the duty of processor core each in polycaryon processor is controlled by.The embodiment of the present invention can control polycaryon processor under the premise that disclosure satisfy that terminal unit performance requirement, is operated with the power consumption state tending to minimizing, and overcomes performance to jolt phenomenon.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of a kind of polycaryon processor working state control method that the embodiment of the present invention one provides;
Fig. 2 A is the schematic flow sheet of a kind of polycaryon processor working state control method that the embodiment of the present invention two provides;
Fig. 2 B is the relation schematic diagram between the core dominant frequency of the processor core that the embodiment of the present invention two is drawn according to table 1, check figure and terminal consume;
Fig. 2 C is the relation schematic diagram between the dominant frequency of the polycaryon processor that the embodiment of the present invention two is drawn according to table 2, check figure and terminal consume;
Fig. 3 is the schematic flow sheet of a kind of polycaryon processor working state control method that the embodiment of the present invention three provides;
Fig. 4 is the schematic flow sheet of a kind of polycaryon processor working state control method that the embodiment of the present invention four provides;
Fig. 5 is the structural representation of a kind of polycaryon processor working state control device that the embodiment of the present invention five provides.
Detailed description of the invention
Below in conjunction with drawings and Examples, the present invention is described in further detail.It is understood that specific embodiment described herein is used only for explaining the present invention, but not limitation of the invention.It also should be noted that, for the ease of describing, accompanying drawing illustrate only part related to the present invention but not entire infrastructure.
Embodiment one
Fig. 1 is the schematic flow sheet of a kind of polycaryon processor working state control method that the embodiment of the present invention one provides.The method can be performed by polycaryon processor working state control device, and described device can be purchased on the terminal device.Wherein, terminal unit is include the smart mobile phone of polycaryon processor, panel computer, notebook computer, desktop computer, personal digital assistant or other electronic equipments.Referring to Fig. 1, the polycaryon processor working state control method that the present embodiment provides specifically includes following operation:
Operation 110, acquisition meet the first dominant frequency of terminal capabilities demand.
Operation 120, determine second dominant frequency with the first dominant frequency in multiple dominant frequency that polycaryon processor can provide with incidence relation, and the power consumption of terminal that various working methods under the second dominant frequency are corresponding.
Operate 130, according to determining that the duty of polycaryon processor is controlled by by result.
In the present embodiment, polycaryon processor is made up of multiple processor cores, is namely made up of multiple CPU.Each processor core can provide at least one core dominant frequency.Before the duty of polycaryon processor is controlled by, it is necessary to according to the first dominant frequency that disclosure satisfy that terminal capabilities demand, determine the processor core needing to open in polycaryon processor, and the processor core that need to open with which core dominant frequency should run.
In the prior art, generally adopt the mode of CPU dynamic frequency or CPU hot plug, control open/close states and the core dominant frequency state of each processor core in polycaryon processor core, to meet the first dominant frequency of terminal capabilities demand.Although the regulation and control granularity of above two mode is different, but there is some performance overlapping region, it is possible to accomplish process of refinement.
For unifying to weigh the control effect of CPU dynamic frequency or CPU hot plug, the present embodiment can do following setting: using frequency as the granularity of performance measure.Namely only using frequency as the standard weighing performance, and it is left out multi-core parallel concurrent and processes the performance optimization or deterioration that bring.Namely it is turned on and off a processor core, in the expression of performance, is only to increase or decreases the master frequency of this processor core.
Such as: when in polycaryon processor, unlatching has a processor core, and when this processor core runs with the core dominant frequency of 800Mhz, it is believed that the dominant frequency that polycaryon processor provides is 1 × 800Mhz;Two processor cores are had when polycaryon processor is opened, and when the two processor core all runs with the core dominant frequency of 800Mhz, it is believed that the dominant frequency that polycaryon processor provides is 2 × 800Mhz=1600Mhz;There is a processor core when polycaryon processor is only opened, and when this processor core runs with the core dominant frequency of 1600Mhz, the dominant frequency that being also considered as polycaryon processor provides is 1 × 1600Mhz=1600Mhz.Namely think and the dominant frequency that when two processor cores run with the core dominant frequency of 800MHz simultaneously, polycaryon processor provides be equal to the dominant frequency that when a processor core runs with the core dominant frequency of 1600MHz, polycaryon processor provides.
In the present embodiment, can previously according to the number of processor core in polycaryon processor, and at least one core dominant frequency that each processor core can provide, determine multiple dominant frequency that polycaryon processor can provide and the various working methods under each dominant frequency;And predefined polycaryon processor respectively with various mode of operation under each dominant frequency time power consumption of terminal.Wherein, the various working methods under arbitrary dominant frequency that polycaryon processor can provide include needing in polycaryon processor the core dominant frequency of each processor core simultaneously opened under this dominant frequency.
Such as, polycaryon processor is made up of three processor cores, and each processor core all can provide two core dominant frequency: 100MHz and 200MHz, then each dominant frequency that polycaryon processor can provide is: 100MHz, 200MHZ, 300MHz, 400MHz, 500MHZ and 600MHZ.Wherein:
The dominant frequency that can provide at polycaryon processor is only have a kind of working method under 100MHz, and which includes: only opening a processor core under 100MHz in polycaryon processor, the core dominant frequency of this processor core is 100MHz;
The dominant frequency that can provide at polycaryon processor is the first working method under 200MHz is: only opening a processor core under 200MHz in polycaryon processor, the core dominant frequency of this processor core is 200MHz;The second working method under 200MHz is: needing two processor cores of unlatching simultaneously under 200MHz in polycaryon processor, the core dominant frequency of each processor core is 100MHz;
The dominant frequency that can provide at polycaryon processor is the first working method under 300MHz is: need two processor cores of unlatching simultaneously under 300MHz in polycaryon processor, the core dominant frequency of one of them processor core is 200MHz, and the core dominant frequency of another processor core is 100MHz;The dominant frequency that can provide at polycaryon processor is the second working method under 300MHz is: needing three processor cores of unlatching simultaneously under 300MHz in polycaryon processor, the core dominant frequency of each processor core therein is 100MHz;
The dominant frequency that can provide at polycaryon processor is the first working method under 400MHz is: needing two processor cores of unlatching simultaneously under 400MHz in polycaryon processor, the core dominant frequency of each processor core therein is 200MHz;The dominant frequency that can provide at polycaryon processor is the second working method under 400MHz is: need three processor cores of unlatching simultaneously under 400MHz in polycaryon processor, the core dominant frequency of two processor cores therein is 100MHz, and the core dominant frequency of the 3rd processor core is 200MHz;
The dominant frequency that can provide at polycaryon processor is only have a kind of working method under 500MHz, which includes: need three processor cores of unlatching simultaneously under 500MHz in polycaryon processor, the core dominant frequency of two processor cores therein is 200MHz, and the core dominant frequency of the 3rd processor core is 100MHz;
The dominant frequency that can provide at polycaryon processor is only have a kind of working method under 600MHz, and which includes: needing three processor cores of unlatching simultaneously under 600MHz in polycaryon processor, the core dominant frequency of each processor core therein is 200MHz.
Especially, if the core dominant frequency when processor core preset in polycaryon processor runs is identical simultaneously, and each processor core all can provide N (N is the natural number more than or equal to 1) individual different core dominant frequency, then each dominant frequency that polycaryon processor can provide is { j × fi, j ∈ [1, M], i ∈ [1, N] } in different dominant frequency, wherein j is natural number, and M is total number of the processor core comprised in polycaryon processor, fiFor the i-th core dominant frequency in N number of different core dominant frequency.Wherein, core dominant frequency when the processor core in polycaryon processor runs simultaneously is identical to be referred to: if there be Q processor core to be unlocked in polycaryon processor simultaneously, then all Q processor cores being unlocked all run with identical core dominant frequency.
Such as, polycaryon processor is made up of three processor cores, and each processor core all can provide three core dominant frequency: 100MHz, 200MHz and 400MHz, then each dominant frequency that polycaryon processor can provide is { 1 × 100,1 × 200,1 × 400,2 × 100,2 × 200,2 × 400,3 × 100,3 × 200, the different dominant frequency in 3 × 400}: 100MHz, 200MHZ, 300MHz, 400MHz, 600MHZ, 800MHz and 1200MHz.Now:
The dominant frequency that can provide at polycaryon processor is only have a kind of working method under 100MHz: 1 × 100, namely only needs to open a processor core under 100MHz, and the core dominant frequency of this processor core is 100MHz;
The dominant frequency that can provide at polycaryon processor is the first working method under 200MHz is: 1 × 200, namely only needs to open a processor core under the first working method of 200MHz, and the core dominant frequency of this processor core is 200MHz;The dominant frequency that can provide at polycaryon processor is the second working method under 200MHz is: 2 × 100, namely needs two processor cores of unlatching simultaneously under the second working method of 200MHz, and the core dominant frequency of each processor core therein is 100MHz;
The dominant frequency that can provide at polycaryon processor is only have a kind of working method under 300MHz: 3 × 100, namely needs three processor cores of unlatching simultaneously under 300MHz in polycaryon processor, and the core dominant frequency of each processor core therein is 100MHz;
The dominant frequency that can provide at polycaryon processor is the first working method under 400MHz is: 1 × 400, namely only needs in polycaryon processor to open a processor core under the first working method of 400MHz, and the core dominant frequency of this processor core is 400MHz;The dominant frequency that can provide at polycaryon processor is the second working method under 400MHz is: 2 × 200, namely needing two processor cores of unlatching simultaneously under the second working method of 400MHz in polycaryon processor, the core dominant frequency of each processor core therein is 200MHz;
The dominant frequency that can provide at polycaryon processor is only have a kind of working method under 600MHz: 3 × 200, namely needs three processor cores of unlatching simultaneously under 600MHz, and the core dominant frequency of each processor core therein is 200MHz;
The dominant frequency that can provide at polycaryon processor is only have a kind of working method under 800MHz: 2 × 400, namely needs two processor cores of unlatching simultaneously under 800MHz, and the core dominant frequency of each processor core therein is 400MHz;
The dominant frequency that can provide at polycaryon processor is only have a kind of working method under 1200MHz: 3 × 400, namely needs three processor cores of unlatching simultaneously under 1200MHz, and the core dominant frequency of each processor core therein is 400MHz.
After getting the first dominant frequency meeting terminal capabilities demand, first can determine, with the first dominant frequency, there is the second dominant frequency of incidence relation in multiple dominant frequency that polycaryon processor can provide.Concrete, with the absolute value of the difference of the first dominant frequency dominant frequency less than the error threshold set in the multiple dominant frequency that polycaryon processor can be able to be provided, as second dominant frequency with the first dominant frequency with incidence relation;Or, dominant frequency equal with the first dominant frequency in the multiple dominant frequency that directly can be provided by polycaryon processor, as second dominant frequency with the first dominant frequency with incidence relation.
After there is with the first dominant frequency the second dominant frequency of incidence relation in determining multiple dominant frequency that complete polycaryon processor can provide, can from predetermined polycaryon processor respectively with various mode of operation each dominant frequency time power consumption of terminal in, further determine that the power consumption of terminal that the various working methods under the second dominant frequency are corresponding.
And then, can further determine that the duty of polycaryon processor is controlled by by result according to above-mentioned.Concrete, can based on a determination that power consumption of terminal in working method corresponding to minimum power consumption, the duty of polycaryon processor is controlled by;Or, when the first dominant frequency is less than or equal to the frequency threshold set, based on a determination that power consumption of terminal in working method corresponding to any one power consumption, the duty of polycaryon processor is controlled by;In the first dominant frequency more than the frequency threshold set, then based on a determination that power consumption of terminal in working method corresponding to minimum power consumption, the duty of polycaryon processor is controlled by.
In the technical scheme that the present embodiment provides, it it is not independent this CPU dynamic frequency control method of core dominant frequency by promoting/reduce processor core, or open/or close this CPU hot plug control method of processor core, obtain disclosure satisfy that the target dominant frequency of terminal capabilities demand, but consider polycaryon processor and the several working ways of target dominant frequency can be provided, and then based on the power consumption of terminal corresponding to several working ways, the duty of processor core each in polycaryon processor is controlled by.The present embodiment can control polycaryon processor under the premise that disclosure satisfy that terminal unit performance requirement, is operated with the power consumption state tending to minimizing, and overcomes performance to jolt phenomenon.
Embodiment two
Fig. 2 A is the schematic flow sheet of a kind of polycaryon processor working state control method that the embodiment of the present invention two provides.The present embodiment, on the basis of above-described embodiment one, further increases the operation of power consumption list creating.Referring to Fig. 2 A, the polycaryon processor working state control method that the present embodiment provides specifically includes following operation:
Each dominant frequency that operation 210, acquisition polycaryon processor can provide, and the various working methods that polycaryon processor is under each dominant frequency.
Power consumption of terminal when operation 220, detection polycaryon processor are respectively with various mode of operation under each dominant frequency.
In the present embodiment, can power consumption of terminal based on the method for unit testing, when detecting polycaryon processor respectively with various mode of operation under each dominant frequency.Such as, table 1 below is the power consumption of terminal situation detected:
Table 1
Open check figure
4 19.20 30.00 51.40 95.00 209.00 295.00
3 15.30 24.00 40.70 73.40 159.00 213.00
2 11.40 17.60 30.00 54.30 114.00 150.00
1 7.60 11.25 18.60 33.30 70.60 92.30
100MHz 200MHz 400MHz 800MHz 1200MHz 1600MHz Core dominant frequency
Referring to above-mentioned table 1, polycaryon processor includes 4 processor cores altogether, and each processor core can provide following 6 core dominant frequency: 100MHz, 200MHz, 400MHz, 800MHz, 1200MHz, 1600MHz.The value " 19.20 " being positioned at table 1 the 2nd row the 2nd row represents 4 processor cores of unlatching simultaneously and power consumption of terminal when each processor core runs with 100MHz;The value " 30.00 " being positioned at table 1 the 2nd row the 3rd row represents 4 processor cores of unlatching simultaneously and power consumption of terminal when each processor core runs with 200MHz;Situation represented by other values is similar.
Fig. 2 B is the relation schematic diagram between the core dominant frequency of the processor core that the embodiment of the present invention two is drawn according to table 1, check figure and terminal consume.Referring to Fig. 2 B, abscissa is different core dominant frequency (unit: MHz), and vertical coordinate is terminal consumption.Fig. 2 B has illustrated terminal Expenditure Levels during different check figure under same core dominant frequency.
Operate 230, according to acquisition result and testing result, establishment power consumption list.
Wherein, power consumption list includes: each dominant frequency that polycaryon processor can provide, the polycaryon processor various working methods under each dominant frequency, and power consumption of terminal corresponding with various working methods respectively.
Concrete, (f, w, p), wherein, f represents the dominant frequency that polycaryon processor can provide, and w represents the working method of f, and p represents the terminal consumption that f is corresponding under w as e can to set the list item of power consumption list;
If there being m processor core in setting polycaryon processor, wherein each processor core may operate at n frequency (namely n core dominant frequency), frequency point sets F ': { f of processor corei, wherein i=1 ..., n}, and the core dominant frequency when processor core in polycaryon processor runs simultaneously is identical, then the dominant frequency that polycaryon processor can provide is set F:{j × fi, wherein j=1 ..., m, i=1 ..., each elementary composition different value in n};
With j and fiRepresent w, obtain working method set W:{w (j, fi), wherein j=1 ..., m, i=1 ..., n};Wherein w (j, fi) for being j × f in the dominant frequency of polycaryon processoriUnder a kind of working method: open j processor core with fiFrequency runs.
At w (j, fi) terminal consumption under working method is set to p (w), obtains terminal consumption set P:
{ p (w)=p (j, fi), wherein j=1 ..., m, i=1 ..., n}
If the set E of 3 yuan of items:
{ (f, w, p), wherein f is each elementary composition different value in F to e, w ∈ W, p ∈ P}.
Referring to the power consumption of terminal situation that table 1 detects, table 2 below illustrates the describing mode of a kind of power consumption list:
Table 2
Dominant frequency in above-mentioned table 2 refers to each dominant frequency that polycaryon processor can provide, and check figure refers to: need the check figure of the processor core opened in a kind of working method under the dominant frequency that polycaryon processor can provide.Such as, for being arranged in table 2 the 9th row, this row represents: under the dominant frequency 1600MHz that polycaryon processor can provide, have 3 kinds of working methods: the first working method only opens 1 processor core (this processor core runs) with the core dominant frequency of 1600MHz, and corresponding power consumption of terminal is 92.30;The second working method opens 2 processor cores (each processor core runs) with the core dominant frequency of 800MHz simultaneously, and corresponding power consumption of terminal is 54.30;The third working method opens 4 processor cores (each processor core runs) with the core dominant frequency of 400MHz simultaneously, and corresponding power consumption of terminal is 51.40.
Fig. 2 C is the relation schematic diagram between the dominant frequency of the polycaryon processor that the embodiment of the present invention two is drawn according to table 2, check figure and terminal consume.Referring to Fig. 2 C, abscissa is the various dominant frequency (unit: MHz) that polycaryon processor can provide, and vertical coordinate is terminal consumption.Fig. 2 C has illustrated the terminal Expenditure Levels during processor core opening different check figure under same dominant frequency.
Operation 240, acquisition meet the first dominant frequency of terminal capabilities demand.
Operation 250, according to power consumption list, it is determined that multiple dominant frequency that polycaryon processor can provide have the second dominant frequency of incidence relation with the first dominant frequency, and a power consumption of terminal that various working methods under the second dominant frequency are corresponding.
Operate 260, according to determining that the duty of polycaryon processor is controlled by by result.
Such as, the first dominant frequency meeting terminal capabilities demand got is 1600MHz, determine that second dominant frequency with the first dominant frequency in multiple dominant frequency that the polycaryon processor obtained can provide with incidence relation is 1600MHz according to above-mentioned table 2, power consumption of terminal corresponding to 3 kinds of working methods corresponding under the second dominant frequency respectively 92.30,54.30 and 51.40.Therefore, can based on a determination that power consumption of terminal 92.30,54.30 and 51.40 in the working method of minimum power consumption 51.40 correspondence, the duty of polycaryon processor being controlled by, namely control polycaryon processor opens 4 processor cores simultaneously, wherein each processor core all runs with 400MHz.
It should be noted that, the operation (i.e. operation 210-operation 230) and the sequencing obtained between the first dominant frequency (namely operating 240) meeting terminal capabilities demand that create power consumption list are not especially limited by the present embodiment, and described above is only used as a kind of concrete example and is illustrated.
The technical scheme that the present embodiment provides, the dominant frequency that first can provide with polycaryon processor, working method under dominant frequency, and terminal consumption corresponding to working method is that list item is to create power consumption of terminal list, then second dominant frequency with the first dominant frequency in multiple dominant frequency that polycaryon processor can provide with incidence relation is determined according to this list, and the power consumption of terminal that various working methods under the second dominant frequency are corresponding, and then according to determining that the duty of polycaryon processor is controlled by by result, such that it is able to control polycaryon processor under the premise that disclosure satisfy that terminal unit performance requirement, it is operated with the power consumption state tending to minimizing, performance is overcome to jolt phenomenon.
Embodiment three
Fig. 3 is the schematic flow sheet of a kind of polycaryon processor working state control method that the embodiment of the present invention three provides.The present embodiment, on the basis of above-described embodiment two, adds, after creating complete power consumption list, the operation determining frequency threshold according to this list, and optimizes accordingly according to the operation determining that the duty of polycaryon processor is controlled by by result.Referring to Fig. 3, the polycaryon processor working state control method that the present embodiment provides specifically includes following operation:
Each dominant frequency that operation 310, acquisition polycaryon processor can provide, and the various working methods that polycaryon processor is under each dominant frequency.
Power consumption of terminal when operation 320, detection polycaryon processor are respectively with various mode of operation under each dominant frequency.
Operate 330, according to acquisition result and testing result, establishment power consumption list.
Wherein, power consumption list includes: each dominant frequency that polycaryon processor can provide, the polycaryon processor various working methods under each dominant frequency, and power consumption of terminal corresponding with various working methods respectively.
Operate 340, determine a frequency threshold according to power consumption list.
Referring to Fig. 2 B, at low frequency region, representing same dominant frequency with the working method of monokaryon or multinuclear, the terminal consumption of its correspondence is more or less the same;But at high-frequency region, adopt the terminal consumption that the working method of multinuclear is brought to be less than the terminal consumption that the few working method of check figure is brought.For this, a frequency threshold can be preset, with when meeting the first dominant frequency of terminal capabilities demand less than or equal to this frequency threshold, the working method that power consumption of terminal of directly choosing any one kind of them from the power consumption of terminal determined is corresponding, the duty of polycaryon processor is controlled by.When meeting the first dominant frequency of terminal capabilities demand more than this frequency threshold, based on a determination that power consumption of terminal in working method corresponding to any one power consumption, the duty of polycaryon processor is controlled by.
Concrete, a frequency threshold is determined according to power consumption list, comprise the steps that each dominant frequency being respectively directed in power consumption list, calculate the difference between the power consumption of terminal that the various working methods under dominant frequency are corresponding, if difference is less than or equal to the first distance threshold set, it is determined that currently targeted dominant frequency is default Frequency.If it is determined that difference between each Frequency obtained is less than or equal to the second distance threshold value set, then will determine that Frequency maximum in each Frequency obtained is as frequency threshold.
Now still it is illustrated for the table 2 in above-described embodiment two.Referring to table 2, because when dominant frequency respectively 100MHz, 200MHz, 300MHz, 400MHz and 600MHz, it (is such as the various working methods under 400MHz for dominant frequency that difference between the power consumption of terminal that various working methods are corresponding is respectively less than equal to 10, the power consumption of terminal 18.60,17.60 and 19.20 of its correspondence, difference between these 3 power consumptions is 19.20-17.60=1.6 to the maximum, it is less than 10), these dominant frequency are all confirmed as the Frequency preset, and then can using dominant frequency 600MHz as frequency threshold.
Operation 350, acquisition meet the first dominant frequency of terminal capabilities demand.
Operation 360, according to power consumption list, it is determined that multiple dominant frequency that polycaryon processor can provide have the second dominant frequency of incidence relation with the first dominant frequency, and a power consumption of terminal that various working methods under the second dominant frequency are corresponding.
Operate 370, whether judge the first dominant frequency more than the frequency threshold set.If it is, perform operation 380, otherwise perform operation 390.
Operation 380 based on a determination that power consumption of terminal in working method corresponding to minimum power consumption, the duty of polycaryon processor is controlled by.Terminate.
Operation 390 based on a determination that power consumption of terminal in working method corresponding to any one power consumption, the duty of polycaryon processor is controlled by.Terminate.
In a kind of preferred implementation of the present embodiment, after judging that the first dominant frequency is less than or equal to the frequency threshold set, can based on a determination that power consumption of terminal in the check figure of processor core opened maximum time corresponding working method, the duty of polycaryon processor is controlled by.As such, it is possible to accelerate the processing speed inputting the data to polycaryon processor.
Embodiment four
Fig. 4 is the schematic flow sheet of a kind of polycaryon processor working state control method that the embodiment of the present invention four provides.The present embodiment can based on the various embodiments described above, it is provided that a kind of preferred embodiment.Referring to Fig. 4, the polycaryon processor working state control method that the present embodiment provides specifically includes following operation:
Each dominant frequency that operation 410, acquisition polycaryon processor can provide, and the various working methods that polycaryon processor is under each dominant frequency.
In the present embodiment, preset the core dominant frequency when processor core in polycaryon processor runs simultaneously identical, and each processor core all can provide N (N is the natural number more than or equal to 1) individual different core dominant frequency.
Power consumption of terminal when operation 420, detection polycaryon processor are respectively with various mode of operation.
Operate 430, according to acquisition result and testing result, establishment power consumption list.
Wherein, power consumption list includes: each dominant frequency that polycaryon processor can provide, the polycaryon processor various working methods under each dominant frequency, and power consumption of terminal corresponding with various working methods respectively.
Operation 440, acquisition meet the first dominant frequency of terminal capabilities demand.
Operate 450, according to power consumption list, determine in multiple dominant frequency that polycaryon processor can provide with the absolute value of the difference of the first dominant frequency less than the dominant frequency of error threshold set as the second dominant frequency, and determine the power consumption of terminal that the various working methods under the second dominant frequency are corresponding.
Operation 460 based on a determination that power consumption of terminal in working method corresponding to minimum power consumption, the duty of polycaryon processor is controlled by.
The technical scheme that the present embodiment provides, it it is not independent this CPU dynamic frequency control method of core dominant frequency by promoting/reduce processor core, or open/or close this CPU hot plug control method of processor core, obtain disclosure satisfy that the target dominant frequency of terminal capabilities demand, but consider polycaryon processor and the power consumption of terminal corresponding to the several working ways of target dominant frequency and several working ways can be provided, with the working method corresponding based on minimum power consumption in several working ways, the duty of processor core each in polycaryon processor is controlled by.The present embodiment can control polycaryon processor under the premise that disclosure satisfy that terminal unit performance requirement, is operated with the power consumption state minimized, and overcomes performance to jolt phenomenon.
Embodiment five
Fig. 5 is the structural representation of a kind of polycaryon processor working state control device that the embodiment of the present invention five provides.Referring to Fig. 5, the concrete structure of this device includes:
Acquiring unit 510, for obtaining the first dominant frequency meeting terminal capabilities demand;
Determine unit 520, for determining that multiple dominant frequency that polycaryon processor can provide have the second dominant frequency of incidence relation with described first dominant frequency, and the power consumption of terminal that various working methods under described second dominant frequency are corresponding;Wherein, described working method includes needing in described polycaryon processor the core dominant frequency of each processor core simultaneously opened under described second dominant frequency;
Control unit 530, for according to determining that the duty of described polycaryon processor is controlled by by result.
In a kind of detailed description of the invention of the present embodiment, described control unit 530, specifically for:
Based on a determination that power consumption of terminal in working method corresponding to minimum power consumption, the duty of described polycaryon processor is controlled by.
In the another kind of detailed description of the invention of the present embodiment, described control unit 530, specifically for:
If described first dominant frequency is less than or equal to the frequency threshold set, then based on a determination that power consumption of terminal in working method corresponding to any one power consumption, the duty of described polycaryon processor is controlled by;
If described first dominant frequency is more than the frequency threshold of described setting, then based on a determination that power consumption of terminal in working method corresponding to minimum power consumption, the duty of described polycaryon processor is controlled by.
Further, this device also includes list creating unit 500, for described determine that unit 520 determines second dominant frequency with described first dominant frequency in multiple dominant frequency that polycaryon processor can provide with incidence relation before:
Obtain each dominant frequency that described polycaryon processor can provide and the various working methods that described polycaryon processor is under each dominant frequency described;
Power consumption of terminal when detecting described polycaryon processor respectively with various mode of operation under each dominant frequency described;
According to obtaining result and testing result, create power consumption list;Wherein, described power consumption list includes: each dominant frequency that described polycaryon processor can provide, the described polycaryon processor various working methods under each dominant frequency described, and power consumption of terminal corresponding with described various working methods respectively;
Described determine unit 520, specifically for: according to described power consumption list, determine that multiple dominant frequency that described polycaryon processor can provide have the second dominant frequency of incidence relation with described first dominant frequency, and the power consumption of terminal that various working methods under described second dominant frequency are corresponding.
Further, if the core dominant frequency when processor core preset in described polycaryon processor runs is identical simultaneously, and each processor core all can provide N number of different core dominant frequency, then each dominant frequency that described polycaryon processor can provide is { j × fi, j ∈ [1, M], i ∈ [1, N] } in different dominant frequency, wherein j is natural number, and M is total number of the processor core comprised in described polycaryon processor, fiFor the i-th core dominant frequency in described N number of different core dominant frequency;
The described polycaryon processor various working methods under each dominant frequency described include: the core dominant frequency of the number needing the processor core simultaneously opened under each dominant frequency described in described polycaryon processor and the processor core that need to open.
On the basis of technique scheme, described determine that unit 520 includes: dominant frequency determines subelement 5201, for in multiple dominant frequency that polycaryon processor can be provided, with the absolute value of the difference of described first dominant frequency less than the dominant frequency of error threshold set, as second dominant frequency with described first dominant frequency with incidence relation.
The said goods can perform the method that any embodiment of the present invention provides, and possesses the corresponding functional module of execution method and beneficial effect.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that and the invention is not restricted to specific embodiment described here, various obvious change can be carried out for a person skilled in the art, readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention being described in further detail by above example, but the present invention is not limited only to above example, when without departing from present inventive concept, other Equivalent embodiments more can also be included, and the scope of the present invention is determined by appended right.

Claims (12)

1. a polycaryon processor working state control method, it is characterised in that including:
Obtain the first dominant frequency meeting terminal capabilities demand;
Determine that multiple dominant frequency that polycaryon processor can provide have the second dominant frequency of incidence relation with described first dominant frequency, and the power consumption of terminal that various working methods under described second dominant frequency are corresponding;Wherein, described working method includes needing in described polycaryon processor the core dominant frequency of each processor core simultaneously opened under described second dominant frequency;
According to determining that the duty of described polycaryon processor is controlled by by result.
2. polycaryon processor working state control method according to claim 1, it is characterised in that according to determining that the duty of described polycaryon processor is controlled by by result, including:
Based on a determination that power consumption of terminal in working method corresponding to minimum power consumption, the duty of described polycaryon processor is controlled by.
3. polycaryon processor working state control method according to claim 1, it is characterised in that according to determining that the duty of described polycaryon processor is controlled by by result, including:
If described first dominant frequency is less than or equal to the frequency threshold set, then based on a determination that power consumption of terminal in working method corresponding to any one power consumption, the duty of described polycaryon processor is controlled by;
If described first dominant frequency is more than the frequency threshold of described setting, then based on a determination that power consumption of terminal in working method corresponding to minimum power consumption, the duty of described polycaryon processor is controlled by.
4. polycaryon processor working state control method according to claim 1, it is characterised in that before there is with described first dominant frequency the second dominant frequency of incidence relation in determining multiple dominant frequency that polycaryon processor can provide, also include:
Obtain each dominant frequency that described polycaryon processor can provide and the various working methods that described polycaryon processor is under each dominant frequency described;
Power consumption of terminal when detecting described polycaryon processor respectively with various mode of operation under each dominant frequency described;
According to obtaining result and testing result, create power consumption list;Wherein, described power consumption list includes: each dominant frequency that described polycaryon processor can provide, the described polycaryon processor various working methods under each dominant frequency described, and power consumption of terminal corresponding with described various working methods respectively;
Determine that multiple dominant frequency that polycaryon processor can provide have the second dominant frequency of incidence relation with described first dominant frequency, and the power consumption of terminal that various working methods under described second dominant frequency are corresponding, including:
According to described power consumption list, it is determined that multiple dominant frequency that polycaryon processor can provide have the second dominant frequency of incidence relation with described first dominant frequency, and the power consumption of terminal that various working methods under described second dominant frequency are corresponding.
5. polycaryon processor working state control method according to claim 4, it is characterized in that, if the core dominant frequency when processor core preset in described polycaryon processor runs is identical simultaneously, and each processor core all can provide N number of different core dominant frequency, then each dominant frequency that described polycaryon processor can provide is { j × fi, j ∈ [1, M], i ∈ [1, N] } in different dominant frequency, wherein j is natural number, and M is total number of the processor core comprised in described polycaryon processor, fiFor the i-th core dominant frequency in described N number of different core dominant frequency;
The described polycaryon processor various working methods under each dominant frequency described include: the core dominant frequency of the number needing the processor core simultaneously opened under each dominant frequency described in described polycaryon processor and the processor core that need to open.
6. the polycaryon processor working state control method according to any one of claim 1-5, it is characterised in that determine in multiple dominant frequency that polycaryon processor can provide, with described first dominant frequency, there is the second dominant frequency of incidence relation, including:
In multiple dominant frequency that polycaryon processor can be provided, with the absolute value of the difference of described first dominant frequency less than the dominant frequency of error threshold set, as second dominant frequency with described first dominant frequency with incidence relation.
7. a polycaryon processor working state control device, it is characterised in that including:
Acquiring unit, for obtaining the first dominant frequency meeting terminal capabilities demand;
Determine unit, for determining that multiple dominant frequency that polycaryon processor can provide have the second dominant frequency of incidence relation with described first dominant frequency, and the power consumption of terminal that various working methods under described second dominant frequency are corresponding;Wherein, described working method includes needing in described polycaryon processor the core dominant frequency of each processor core simultaneously opened under described second dominant frequency;
Control unit, for according to determining that the duty of described polycaryon processor is controlled by by result.
8. polycaryon processor working state control device according to claim 7, described control unit, specifically for:
Based on a determination that power consumption of terminal in working method corresponding to minimum power consumption, the duty of described polycaryon processor is controlled by.
9. polycaryon processor working state control device according to claim 7, it is characterised in that described control unit, specifically for:
If described first dominant frequency is less than or equal to the frequency threshold set, then based on a determination that power consumption of terminal in working method corresponding to any one power consumption, the duty of described polycaryon processor is controlled by;
If described first dominant frequency is more than the frequency threshold of described setting, then based on a determination that power consumption of terminal in working method corresponding to minimum power consumption, the duty of described polycaryon processor is controlled by.
10. want the polycaryon processor working state control device described in 7 according to right, it is characterized in that, also include list creating unit, for described determine that unit determines second dominant frequency with described first dominant frequency in multiple dominant frequency that polycaryon processor can provide with incidence relation before:
Obtain each dominant frequency that described polycaryon processor can provide and the various working methods that described polycaryon processor is under each dominant frequency described;
Power consumption of terminal when detecting described polycaryon processor respectively with various mode of operation under each dominant frequency described;
According to obtaining result and testing result, create power consumption list;Wherein, described power consumption list includes: each dominant frequency that described polycaryon processor can provide, the described polycaryon processor various working methods under each dominant frequency described, and power consumption of terminal corresponding with described various working methods respectively;
Described determine unit, specifically for: according to described power consumption list, determine that multiple dominant frequency that described polycaryon processor can provide have the second dominant frequency of incidence relation with described first dominant frequency, and the power consumption of terminal that various working methods under described second dominant frequency are corresponding.
11. polycaryon processor working state control device according to claim 10, it is characterized in that, if the core dominant frequency when processor core preset in described polycaryon processor runs is identical simultaneously, and each processor core all can provide N number of different core dominant frequency, then each dominant frequency that described polycaryon processor can provide is { j × fi, j ∈ [1, M], i ∈ [1, N] } in different dominant frequency, wherein j is natural number, and M is total number of the processor core comprised in described polycaryon processor, fiFor the i-th core dominant frequency in described N number of different core dominant frequency;
The described polycaryon processor various working methods under each dominant frequency described include: the core dominant frequency of the number needing the processor core simultaneously opened under each dominant frequency described in described polycaryon processor and the processor core that need to open.
12. the polycaryon processor working state control device according to any one of claim 7-11, it is characterized in that, described determine that unit includes: dominant frequency determines subelement, for in multiple dominant frequency that polycaryon processor can be provided, with the absolute value of the difference of described first dominant frequency less than the dominant frequency of error threshold set, as second dominant frequency with described first dominant frequency with incidence relation.
CN201410802375.XA 2014-12-18 2014-12-18 Control method and device for working state of multi-core processor Pending CN105760342A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410802375.XA CN105760342A (en) 2014-12-18 2014-12-18 Control method and device for working state of multi-core processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410802375.XA CN105760342A (en) 2014-12-18 2014-12-18 Control method and device for working state of multi-core processor

Publications (1)

Publication Number Publication Date
CN105760342A true CN105760342A (en) 2016-07-13

Family

ID=56341048

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410802375.XA Pending CN105760342A (en) 2014-12-18 2014-12-18 Control method and device for working state of multi-core processor

Country Status (1)

Country Link
CN (1) CN105760342A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110737322A (en) * 2019-09-16 2020-01-31 联想(北京)有限公司 Information processing method and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1739080A (en) * 2001-09-28 2006-02-22 英特尔公司 Method and apparatus for adjusting the voltage and frequency to minimize power dissipation in a multiprocessor system
CN1906587A (en) * 2004-03-16 2007-01-31 索尼计算机娱乐公司 Methods and apparatus for reducing power dissipation in a multi-processor system
US20100235672A1 (en) * 2007-09-28 2010-09-16 Institute Of Computing Technology Of The Chinese Academy Of Sciences Multi-core processor, its frequency conversion device and a method of data communication between the cores
CN101853066A (en) * 2009-02-11 2010-10-06 上海芯豪微电子有限公司 Method and device for automatically adjusting clock frequency of system in real time
CN103150005A (en) * 2013-03-01 2013-06-12 福州瑞芯微电子有限公司 Multi-core structure for asymmetric low-power mobile device
CN103376874A (en) * 2012-04-24 2013-10-30 中兴通讯股份有限公司 Multi-core processor device and clock control achieving method thereof
CN103838353A (en) * 2014-01-02 2014-06-04 深圳市金立通信设备有限公司 Method and terminal for controlling processor operation

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1739080A (en) * 2001-09-28 2006-02-22 英特尔公司 Method and apparatus for adjusting the voltage and frequency to minimize power dissipation in a multiprocessor system
CN1906587A (en) * 2004-03-16 2007-01-31 索尼计算机娱乐公司 Methods and apparatus for reducing power dissipation in a multi-processor system
US20100235672A1 (en) * 2007-09-28 2010-09-16 Institute Of Computing Technology Of The Chinese Academy Of Sciences Multi-core processor, its frequency conversion device and a method of data communication between the cores
CN101853066A (en) * 2009-02-11 2010-10-06 上海芯豪微电子有限公司 Method and device for automatically adjusting clock frequency of system in real time
CN103376874A (en) * 2012-04-24 2013-10-30 中兴通讯股份有限公司 Multi-core processor device and clock control achieving method thereof
CN103150005A (en) * 2013-03-01 2013-06-12 福州瑞芯微电子有限公司 Multi-core structure for asymmetric low-power mobile device
CN103838353A (en) * 2014-01-02 2014-06-04 深圳市金立通信设备有限公司 Method and terminal for controlling processor operation

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
邢立冬: "多核处理器功耗优化与评估技术发展综述", 《电子设计工程》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110737322A (en) * 2019-09-16 2020-01-31 联想(北京)有限公司 Information processing method and electronic equipment
CN110737322B (en) * 2019-09-16 2022-07-26 联想(北京)有限公司 Information processing method and electronic equipment

Similar Documents

Publication Publication Date Title
CN103955264B (en) Dynamically regulate the method and system of processor working frequency
CN103838353B (en) A kind of method and terminal of control processor operation
CN104615415B (en) A kind of information processing method and electronic equipment
US20190146842A1 (en) Method and Apparatus for Allocating Computing Resources of Processor
CN106055070B (en) Terminal power consumption control method and device
CN111625160A (en) Application icon adjusting method and device
US20170351321A1 (en) Dynamic power routing to hardware accelerators
CN104820618A (en) Task scheduling method, task scheduling device and multi-core system
CN103500168A (en) Method and system for discovering communities in overlapped complex networks according to topology potential
CN104380221A (en) Joint optimization of processor frequencies and system sleep states
CN109634239A (en) A kind of modeling method for hybrid flowshop energy-saving distribution
KR101655030B1 (en) Dynamic voltage frequency scaling method using slack-distribution based on task-characteristics, execution program thereof method and recorded medium of the program
CN105242954A (en) Mapping method between virtual CPUs (Central Processing Unit) and physical CPUs, and electronic equipment
CN104715092B (en) A kind of quick method for setting up Label and figure annexation in level layout verification
US8291420B2 (en) System and method of task assignment distributed processing system
CN103942103A (en) Method and device for generating processor scheduling policy in multi-core system and scheduling system
CN105760342A (en) Control method and device for working state of multi-core processor
CN107155211A (en) Adjusting method, device, mobile terminal and the storage medium of WiFi transmission powers
CN105739884A (en) Gesture event generation method and electronic device
CN107291843A (en) Hierarchical clustering improved method based on Distributed Computing Platform
KR101510694B1 (en) Apparatus and method for processing data
CN104915559B (en) A kind of electrical equipment determines method and system
Beldachi et al. Run‐time power and performance scaling in 28 nm FPGAs
CN104461603A (en) Information processing method and electronic equipment
CN103019968B (en) The control method that input equipment is registered in input processing example and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20160713

Assignee: Shanghai Li Ke Semiconductor Technology Co., Ltd.

Assignor: Leadcore Technology Co., Ltd.

Contract record no.: 2018990000159

Denomination of invention: Control method and device for working state of multi-core processor

License type: Common License

Record date: 20180615

EE01 Entry into force of recordation of patent licensing contract
RJ01 Rejection of invention patent application after publication

Application publication date: 20160713

RJ01 Rejection of invention patent application after publication