CN107357405A - Power consumption control method and relevant device - Google Patents
Power consumption control method and relevant device Download PDFInfo
- Publication number
- CN107357405A CN107357405A CN201710429163.5A CN201710429163A CN107357405A CN 107357405 A CN107357405 A CN 107357405A CN 201710429163 A CN201710429163 A CN 201710429163A CN 107357405 A CN107357405 A CN 107357405A
- Authority
- CN
- China
- Prior art keywords
- power consumption
- distribution coefficient
- consumption distribution
- current business
- target hardware
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
- G06F1/3209—Monitoring remote activity, e.g. over telephone lines or network connections
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3243—Power saving in microcontroller unit
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Power Sources (AREA)
Abstract
The embodiment of the present application discloses a kind of power consumption control method and relevant device, and wherein method includes:Obtain pending data, the status data of the pending data including current business, the status data of the target hardware of terminal, ambient temperature data and terminal battery electric quantity data in one or more, power consumption distribution coefficient is adjusted to the second power consumption distribution coefficient by the first current power consumption distribution coefficient according to corresponding to the pending data by current business, and then carries out power consumption reassignment to target hardware using the second power consumption distribution coefficient.Power consumption adjustment can be carried out to the hardware needed for business using the embodiment of the present application, so as to realize good temperature control effect and systematic function.
Description
Technical field
The application is related to technical field of data processing, more particularly to a kind of power consumption control method and relevant device.
Background technology
As the performance of the terminals such as smart mobile phone, tablet personal computer, intelligent wearable device is more and more stronger, generate heat also increasingly
Greatly, temperature control turns into one of key element of on-chip system (System on Chip, SOC) chip and Terminal Design.With end
The development of miscellaneous service (as applied) and the lifting to hardware performance requirements, various terminals problems of excessive heat emerge in an endless stream on end, eventually
Temperature control is held to turn into the focus of attention of public opinion.
At present, terminal system developer and manufacturer propose various schemes for Temperature Controlling, but mainly with passive management
Based on, just start limit frequency pressure limiting strategy when excess temperature is protected, above-mentioned have many drawbacks, including:Strategy is fixed, according to preset parameter
Specific response is made, such as in some temperature spot limitation central processing unit (Central Processing Unit, CPU)
It maximum operation frequency, can not so meet the performance requirement of business, picture interim card problem can be brought;Hardware module (such as CPU, figure
Shape processor (Graphics Processing Unit, GPU) etc.) between individually manage, cause hardware module performance not fit
Match somebody with somebody, in the case of system heat generation, systematic function may be will be a greater impact to.It can be seen that how to solve terminal temperature control effect and be
The defects of system poor-performing, turns into urgent problem to be solved.
The content of the invention
The embodiment of the present application discloses a kind of power consumption control method and relevant device, it is possible to achieve good temperature control effect with
And systematic function.
The embodiment of the present application first aspect provides a kind of power consumption control method, applied to terminal, including:
Pending data is obtained, it is hard that the pending data includes the status data of current business, the target of the terminal
One or more in the battery electric quantity data of the status data of part, ambient temperature data and the terminal.
Power consumption distribution coefficient is by the first current power consumption point according to corresponding to the pending data by the current business
Distribution coefficient is adjusted to the second power consumption distribution coefficient, and the power consumption distribution coefficient is used for the power consumption allocation for indicating the target hardware
Degree.
Power consumption reassignment is carried out to the target hardware using the second power consumption distribution coefficient.
Optionally, the power consumption distribution coefficient according to corresponding to the pending data by the current business is by current
First power consumption distribution coefficient is adjusted to the second power consumption distribution coefficient, including:
Second is determined using the current corresponding first power consumption distribution coefficient of the pending data and/or the current business
Power consumption distribution coefficient.
Power consumption distribution coefficient corresponding to the current business is adjusted to described second by the first power consumption distribution coefficient
Power consumption distribution coefficient.
Optionally, before the acquisition pending data, methods described also includes:
When the current business is run first, adjust DVFS modules using dynamic voltage frequency and intelligent power consumption is distributed
IPA modules determine the first power consumption distribution coefficient.
Optionally, it is described using described in dynamic voltage frequency adjustment DVFS modules and the distribution IPA module determinations of intelligent power consumption
After first power consumption distribution coefficient, methods described also includes:
Power consumption distribution is carried out to the target hardware using the first power consumption distribution coefficient.
If the temperature data of the target hardware meets the default condition of convergence, it is determined that the current business enters steady
State, and include first power consumption using Steady-state Parameters generation log file, the Steady-state Parameters corresponding to the current business
Distribution coefficient.
Optionally, before the acquisition pending data, methods described also includes:
When the current business is non-to be run first, by reading the log file previously generated, first work(is obtained
Consume distribution coefficient.
Optionally, the status data of the target hardware includes utilization rate of the current business to the target hardware,
The power consumption distribution coefficient according to corresponding to the pending data by the current business distributes system by the first current power consumption
Number is adjusted to before the second power consumption distribution coefficient, and methods described also includes:
Judge whether the current business is more than or equal to default utilization rate threshold value to the utilization rate of the target hardware.
If so, then perform according to corresponding to the pending data by the current business power consumption distribution coefficient by current
The step of first power consumption distribution coefficient is adjusted to the second power consumption distribution coefficient.
Optionally, the status data of the current business includes the loading of the current business, the industry of the current business
Service type and the current business whether first operating one or more.
Optionally, the utilization rate of the status data of the target hardware including the target hardware, the target hardware
One or more in the temperature data of frequency, the power consumption of target hardware distribution amount and the target hardware.
The embodiment of the present application second aspect provides a kind of power consumption control apparatus, applied to terminal, including:
Acquisition module, for obtaining pending data, the pending data includes the status data, described of current business
One or more in the battery electric quantity data of the status data of the target hardware of terminal, ambient temperature data and the terminal.
Adjusting module, for according to the pending data by the current business corresponding to power consumption distribution coefficient by current
The first power consumption distribution coefficient be adjusted to the second power consumption distribution coefficient, the power consumption distribution coefficient is used to indicate the target hardware
Power consumption distribution amount.
Distribute module, for carrying out power consumption reassignment to the target hardware using the second power consumption distribution coefficient.
Optionally, the adjusting module is specifically used for:
Second is determined using the current corresponding first power consumption distribution coefficient of the pending data and/or the current business
Power consumption distribution coefficient.
Power consumption distribution coefficient corresponding to the current business is adjusted to described second by the first power consumption distribution coefficient
Power consumption distribution coefficient.
Optionally, described device also includes:
Determining module, for when the current business is run first, using dynamic voltage frequency adjust DVFS modules and
Intelligent power consumption distribution IPA modules determine the first power consumption distribution coefficient.
Optionally, described device also includes generation module, wherein:
The distribute module, it is additionally operable to carry out power consumption point to the target hardware using the first power consumption distribution coefficient
Match somebody with somebody.
The generation module, if the temperature data for the target hardware meets the default condition of convergence, it is determined that institute
State current business and enter stable state, and utilize Steady-state Parameters generation log file, the Steady-state Parameters corresponding to the current business
Including the first power consumption distribution coefficient.
Optionally, the acquisition module, be additionally operable to when the current business is non-run first when, by read previously generate
Log file, obtain the first power consumption distribution coefficient.
Optionally, the status data of the target hardware includes utilization rate of the current business to the target hardware,
Described device also includes:
Judge module, preset for judging the current business to whether the utilization rate of the target hardware is more than or equal to
Utilization rate threshold value, and in judged result to trigger the adjusting module when being according to the pending data by the current business
Corresponding power consumption distribution coefficient is adjusted to the second power consumption distribution coefficient by the first current power consumption distribution coefficient.
The embodiment of the present application third aspect provides a kind of terminal, including:Processor and memory, the memory storage
There is executable program code, the processor is used to call the executable program code, performs any one of above-mentioned first aspect
Described power consumption control method.
The embodiment of the present application fourth aspect provides a kind of computer-readable recording medium, the computer-readable storage medium
Instruction is stored with matter, when run on a computer so that computer performs the work(described in above-mentioned any one of first aspect
Consume control method.
The aspect of the embodiment of the present application the 5th provides a kind of computer program product for including instruction, when its on computers
During operation so that computer performs the power consumption control method described in above-mentioned any one of first aspect.
Pending data can be obtained by implementing the embodiment of the present application, the pending data includes the state of current business
Data, the status data of the target hardware of terminal, ambient temperature data and terminal battery electric quantity data in one or more,
And power consumption distribution coefficient is adjusted to by the first current power consumption distribution coefficient according to corresponding to the pending data by current business
Second power consumption distribution coefficient, and then power consumption reassignment is carried out to target hardware using the second power consumption distribution coefficient, pass through comprehensive industry
One or more factors such as the state of business, the state of terminal hardware and environment temperature are entered to power consumption distribution coefficient corresponding to business
Row accommodation, i.e., power consumption adjustment is carried out to the hardware needed for business, so as to realize good temperature control effect and systematicness
Energy.
Brief description of the drawings
In order to illustrate more clearly of the technical scheme in the embodiment of the present application or background technology, the application will be implemented below
The required accompanying drawing used illustrates in example or background technology.
Fig. 1 is a kind of schematic flow sheet of power consumption control method disclosed in the embodiment of the present application;
Fig. 2 is a kind of structural representation of power consumption control apparatus disclosed in the embodiment of the present application;
Fig. 3 is a kind of structural representation of terminal disclosed in the embodiment of the present application.
Embodiment
The embodiment of the present application is described with reference to the accompanying drawing in the embodiment of the present application.
Wherein, it is soft to be particularly applicable in the power consumption control based on closed loop (Closed Loop) control algolithm for the embodiment of the present application
In the scene of part framework intelligence power consumption control (Intelligent Power Allocation, IPA).It is existing based on IPA's
Temperature control process includes:According to the difference of Current Temperatures and target temperature, the effective power consumption budget of manager estimating system, and by work(
Budget is consumed by hardware (such as CPU, GPU etc.) of certain algorithm smart allocation to each activation in system, so as in control temperature
In the case of degree, the optimum performance of system is obtained.Linear gauge is the main mechanism that Power budgets are calculated in IPA temperature controls, is adjusted
Power consumption distribution coefficient k_po, k_pu can significantly adjust heat budget slope, and k_po and k_pu is illustrated respectively in currently practical here
Temperature calculates the coefficient of power consumption distribution amount when being higher or lower than target temperature.Power consumption distribution formula is as follows:
P_max=k_p*e+sustainable_power
E represents the difference of target temperature and Current Temperatures in formula, and sustainable_power is to the sustainable work(of system
Consumption is estimated.When actual temperature is higher than target temperature, by the k_p in k_po substitution formula, assignable maximum power dissipation is calculated;
Otherwise when less than target temperature, k_pu is substituted into formula and calculates power consumption amount.
However, power consumption distribution coefficient k_po, the k_pu of the above-mentioned temperature control scheme based on IPA dependent on fixation, can not basis
The change of business and environment and dynamic adjusts, it is likely that cause temperature control effect bad, systematic function is poor, to the adaptability of environment
Difference.
A kind of referring to Fig. 1, schematic flow sheet of the power consumption control method provided for the embodiment of the present application.In the present embodiment
Described power consumption control method, applied to terminal, this method includes:
101st, terminal obtains pending data, and the pending data includes the status data of current business, the terminal
The status data of target hardware, ambient temperature data and the terminal battery electric quantity data in one or more.
Wherein, business refers to the task process run in terminal, for example, can be application program (Application,
APP)。
Wherein, pending data refers to the data related to power consumption control, the state of the current business in pending data
Data can specifically be included during whether the load of current business, the type of service of current business and current business run etc. first
It is one or more.Type of service can specifically include heavy traffic and slight business, heavy traffic refer to hardware resource (such as
CPU the business of utilization rate higher (such as utilization rate reaches default utilization rate threshold value)), is otherwise slight business.
Wherein, target hardware can include the CPU of terminal, GPU, Double Data Rate synchronous DRAM DDR.When
So, target hardware can also include other hardware modules of terminal.The status data of target hardware in pending data is specific
Utilization rate, the frequency of target hardware, the power consumption of target hardware the distribution amount of target hardware and the temperature of target hardware can be included
One or more in degrees of data.Temperature data can include real-time temperature value and/or the temperature change feelings in a period of time
Condition.
In the specific implementation, collection demand of the terminal according to system configuration, it is above-mentioned pending to start background service collection acquisition
Data.
102nd, the terminal according to corresponding to the pending data by the current business power consumption distribution coefficient by current
The first power consumption distribution coefficient be adjusted to the second power consumption distribution coefficient, the power consumption distribution coefficient is used to indicate the target hardware
Power consumption distribution amount.
Wherein, for the temperature control scheme based on IPA, the main IPA parameters such as including k_po, k_pu of power consumption distribution coefficient.
In the specific implementation, power consumption distribution coefficient is used for the power consumption distribution amount for indicating target hardware, i.e., need to be target hardware
How many power consumption distributed, it is assumed that power consumption distribution coefficient corresponding to current business is the first power consumption distribution coefficient, and terminal, which is got, to be waited to locate
After managing data, pending data and/or the first power consumption distribution coefficient can be utilized to determine the second power consumption distribution coefficient, and will
Power consumption distribution coefficient corresponding to current business is adjusted to the second power consumption distribution coefficient by the first power consumption distribution coefficient.
Wherein, terminal, which in several ways can be distributed power consumption distribution coefficient corresponding to current business by the first power consumption, is
Number is adjusted to the second power consumption distribution coefficient, including:The read-write interface to power consumption distribution coefficient provided by/sys file system
Power consumption distribution coefficient is modified;Or by change power consumption distribution coefficient /sys file system nodes change power consumption point
Distribution coefficient;Or based on hardware abstraction layer (Hardware Abstraction Layer, HAL) increase read-write interface realization pair
Power consumption distribution coefficient is modified.
In a kind of possible implementation, terminal can also pass through interprocess communication (Inter-Process
Communication, IPC) or the example such as interlayer message realize the modification to power consumption distribution coefficient.
103rd, the terminal carries out power consumption reassignment using the second power consumption distribution coefficient to the target hardware.
In the specific implementation, terminal updates according to the second power consumption distribution coefficient distributes amount to the power consumption of target hardware, and press
The power consumption of target hardware is redistributed according to the power consumption distribution amount after renewal, it is possible to prevente effectively from frequency is limited after there is superhigh temperature, with
And staged frequency reducing etc. has a strong impact on the phenomenon of systematic function.
In a kind of possible implementation, before step 101, during the above-mentioned current business of terminal operating, if this is current
Business is to run first, then terminal can utilize dynamic voltage frequency adjustment (Dynamic voltage and frequency
Scaling, DVFS) module and IPA modules determine above-mentioned first power consumption distribution coefficient.
Further, terminal can carry out power consumption distribution using the first power consumption distribution coefficient to target hardware, utilize first
After power consumption distribution coefficient carries out power consumption distribution to target hardware, if the temperature data of target hardware meets default convergence bar
Part, then terminal can determine that the current business enters stable state, obtain steady state data corresponding to the current business, and utilize the stable state
Parameter generates log file, and the Steady-state Parameters include the first power consumption distribution coefficient, the first power consumption distribution coefficient is stored in into note
Record in file, so as to which the power consumption to be matched point can be read directly from log file when subsequently starting the current business
Distribution coefficient (i.e. the first power consumption distribution coefficient), the power consumption without recycling DVFS modules and IPA modules to determine to match are divided
Distribution coefficient, power consumption control can be completed rapidly and accurately.
Optionally, the Steady-state Parameters can also include:The stable state frequency of target hardware when the current business enters stable state, it is
Temperature of uniting etc..
In a kind of possible implementation, before step 101, during the above-mentioned current business of terminal operating, if this is current
Business is not to run first, then terminal can obtain the first power consumption point to match by reading the log file previously generated
Distribution coefficient, so as to the power consumption distribution coefficient being in using the current business last time during stable state, it can prevent that rapidly raising frequency causes
Overheat or staged frequency reducing caused by performance constantly decline, so as to the smoothness run current business during power consumption point
Match somebody with somebody, performance etc..
In a kind of possible implementation, terminal judges whether the temperature data of target hardware meets the default condition of convergence
Concrete mode can be:So that target hardware is CPU as an example, terminal reads CPU utilization rate and frequency, if the current business
20% (can certainly be other larger numerical value) currently is reached to CPU utilization rate, then judged above-mentioned pending in collection
Whether the current business is also higher (such as reaching 15%) to CPU utilization rate during data, if it is, terminal compares collection
Target hardware the highest temperature and lowest temperature difference it is whether smaller (e.g., less than or equal to 5 DEG C), and the temperature of lowest temperature reaches
To default value (such as 30 DEG C), if the difference of the highest temperature and lowest temperature is smaller, and the temperature of lowest temperature reaches present count
Value, then terminal can determine that the temperature data of target hardware meets that the default condition of convergence, namely the current business enter surely
State.
In a kind of possible implementation, before step 102, terminal can first judge whether the current business is severe
Business, for example, terminal may determine that whether the current business is more than or equal to default utilization rate threshold to the utilization rate of target hardware
It is worth (such as 25%), if it is, terminal determines that current business is heavy traffic, just needs to perform corresponding to step 102~103
Power consumption distribution coefficient is adjusted, and in the case where current business is not heavy traffic, power consumption distribution coefficient can not be adjusted.
In a kind of possible implementation, a kind of dynamic of power consumption distribution coefficient is introduced by taking power consumption distribution coefficient k_pu as an example
Thinking is adjusted, in existing IPA temperature control schemes, k_pu is a quiescent value, is calculated as follows:
K_pu=2*sustainable_power/ (T_set-T_on), T_set are target temperatures, and T_on is regulation and control thresholding
Temperature, sustainable_power are estimating for sustainable power consumption.
Wherein, using k_pu quiescent value as radix, weighting adjustment process is as follows:
For heavy traffic, such as big game class business, the power consumption amount of CPU module request is larger to cause temperature rise obvious.
After identification type of service (i.e. heavy traffic), assign such business one attenuation coefficient, declined with the quiescent value to k_pu
Subtract, limit its power consumption to prevent rapid overheat.Different kinds of business can correspond to different attenuation coefficients.
Further, the temperature rise situation after the relatively front and rear distribution of power consumption twice, before power consumption is distributed if temperature rise amplitude is smaller
Value is higher, shows that environment temperature is relatively low, and gain is carried out to k_pu.This gain each IPA temperature controls carry out power consumption distribution after, depending on
Temperature rise ascensional range adjusts, if temperature rise is relatively slow gain be stepped up, power consumption distribution slope is progressively accelerated, otherwise gain drop
It is low.Stable performance is set to increase by this conservative gain mode to decline after will not overheating.
In summary, the resource load phase at service operation initial stage carries out gain to k_pu, to accelerate its loading procedure;
K_pu is finely adjusted in business load slow ramp-up period to control temperature rise, while k_ when constantly record traffic enters stable state
Pu value, and it is set as default initial values when running next time, so as to make user obtain smoother business experience.
In the embodiment of the present application, terminal can obtain pending data, and the pending data includes the state of current business
Data, the status data of the target hardware of terminal, ambient temperature data and terminal battery electric quantity data in one or more,
And power consumption distribution coefficient is adjusted to by the first current power consumption distribution coefficient according to corresponding to the pending data by current business
Second power consumption distribution coefficient, and then power consumption reassignment is carried out to target hardware using the second power consumption distribution coefficient, pass through comprehensive industry
One or more factors such as the state of business, the state of terminal hardware and environment temperature are entered to power consumption distribution coefficient corresponding to business
Row accommodation, i.e., power consumption adjustment is carried out to the hardware needed for business, in the case of the state of the business of combination, can combined
The actual demand of business carries out power consumption reassignment to hardware, so as to realize good temperature control effect and systematic function;Combining
Adaptability of the temperature control effect to environment can also be improved in the case of environment temperature.
A kind of referring to Fig. 2, structural representation of the power consumption control apparatus provided for the embodiment of the present application.In the present embodiment
Described power consumption control apparatus, applied to terminal, including:
Acquisition module 201, for obtaining pending data, the pending data include current business status data,
One kind or more in the battery electric quantity data of the status data of the target hardware of the terminal, ambient temperature data and the terminal
Kind;
Adjusting module 202, for according to the pending data by the current business corresponding to power consumption distribution coefficient by
The first current power consumption distribution coefficient is adjusted to the second power consumption distribution coefficient, and the power consumption distribution coefficient is used to indicate the target
The power consumption distribution amount of hardware;
Distribute module 203, for carrying out power consumption reassignment to the target hardware using the second power consumption distribution coefficient.
In a kind of possible implementation, the adjusting module 202 is specifically used for:
Second is determined using the current corresponding first power consumption distribution coefficient of the pending data and/or the current business
Power consumption distribution coefficient;
Power consumption distribution coefficient corresponding to the current business is adjusted to described second by the first power consumption distribution coefficient
Power consumption distribution coefficient.
In a kind of possible implementation, described device also includes:
Determining module 204, for when the current business is run first, DVFS modules to be adjusted using dynamic voltage frequency
The first power consumption distribution coefficient is determined with intelligent power consumption distribution IPA modules.
In a kind of possible implementation, described device also includes generation module 205, wherein:
The distribute module 203, it is additionally operable to carry out power consumption to the target hardware using the first power consumption distribution coefficient
Distribution;
The generation module 205, if the temperature data for the target hardware meets the default condition of convergence, it is determined that
The current business enters stable state, and utilizes Steady-state Parameters generation log file corresponding to the current business, the stable state ginseng
Number includes the first power consumption distribution coefficient.
In a kind of possible implementation, the acquisition module 201, it is additionally operable to run first when the current business is non-
When, by reading the log file previously generated, obtain the first power consumption distribution coefficient.
In a kind of possible implementation, the status data of the target hardware includes the current business to the target
The utilization rate of hardware, described device also include:
Judge module 206, for judging whether the current business is more than or equal to the utilization rate of the target hardware
Default utilization rate threshold value, and the adjusting module 202 is triggered according to inciting somebody to action the pending data when judged result is and is
Power consumption distribution coefficient corresponding to current business is adjusted to the second power consumption distribution coefficient by the first current power consumption distribution coefficient.
It is understood that the function of each functional module of the power consumption control apparatus of the present embodiment can be real according to the above method
The method specific implementation in example is applied, its specific implementation process is referred to the associated description of above method embodiment, herein no longer
Repeat.
In the embodiment of the present application, acquisition module 201 can obtain pending data, and the pending data includes current business
Status data, the status data of target hardware of terminal, ambient temperature data and terminal battery electric quantity data in one kind
Or it is a variety of, adjusting module 202 according to corresponding to the pending data by current business power consumption distribution coefficient by the first current work(
Consumption distribution coefficient is adjusted to the second power consumption distribution coefficient, and then distribute module 203 is hard to target using the second power consumption distribution coefficient
Part carry out power consumption reassignment, by the state of integrated service, the state of terminal hardware and environment temperature etc. it is one or more because
Element carries out accommodation to power consumption distribution coefficient corresponding to business, in the case of the state of the business of combination, can combine industry
The actual demand of business carries out power consumption reassignment to hardware, so as to realize good temperature control effect and systematic function;In coupling collar
Adaptability of the temperature control effect to environment can also be improved in the case of the temperature of border.
A kind of referring to Fig. 3, structural representation of the terminal provided for the embodiment of the present application.Described in the present embodiment
Terminal, including:Processor 301 and memory 302.
Wherein, the memory 302 is used for store instruction, and the processor 301 stores for performing the memory 302
Instruction, with complete previously described acquisition module 201, adjusting module 202, distribute module 203, determining module 204, generation mould
The correlation method step that block 205 and judge module 206 are realized.
Optionally, the terminal can also include transceiver 303, for being completed to send by the control of the processor 301
Signal, reception signal.
Optionally, the function of the transceiver 303 can contemplate is realized by transmission circuit or the special chip of transmitting-receiving.
The processor 301 by dedicated processes chip, process circuit, processor or general-purpose chip it is contemplated that realized.
In the specific implementation, processor 301 is used to read the program code stored in the memory 302, following grasp is performed
Make:
Processor 301, for obtaining pending data, the pending data includes the status data of current business, institute
State one kind or more in the battery electric quantity data of the status data of the target hardware of terminal, ambient temperature data and the terminal
Kind;
The processor 301, it is additionally operable to the power consumption distribution system according to corresponding to the pending data by the current business
Number is adjusted to the second power consumption distribution coefficient by the first current power consumption distribution coefficient, and the power consumption distribution coefficient is described for indicating
The power consumption distribution amount of target hardware;
The processor 301, it is additionally operable to carry out power consumption weight to the target hardware using the second power consumption distribution coefficient
Distribution.
In a kind of possible implementation, the processor 301 is specifically used for:
Second is determined using the current corresponding first power consumption distribution coefficient of the pending data and/or the current business
Power consumption distribution coefficient;
Power consumption distribution coefficient corresponding to the current business is adjusted to described second by the first power consumption distribution coefficient
Power consumption distribution coefficient.
In a kind of possible implementation, the processor 301, it is additionally operable to when the current business is run first, profit
DVFS modules are adjusted with dynamic voltage frequency and intelligent power consumption distribution IPA modules determine the first power consumption distribution coefficient.
In a kind of possible implementation, the processor 301, it is additionally operable to using the first power consumption distribution coefficient to institute
State target hardware and carry out power consumption distribution;
The processor 301, if the temperature data for being additionally operable to the target hardware meets the default condition of convergence, it is determined that
The current business enters stable state, and utilizes Steady-state Parameters generation log file corresponding to the current business, the stable state ginseng
Number includes the first power consumption distribution coefficient.
In a kind of possible implementation, the processor 301, be additionally operable to when the current business is non-run first when,
By reading the log file previously generated, the first power consumption distribution coefficient is obtained.
In a kind of possible implementation, the status data of the target hardware includes the current business to the target
The utilization rate of hardware, the processor 301, it is additionally operable to judge whether the current business is big to the utilization rate of the target hardware
In or equal to default utilization rate threshold value, and in judged result to be according to the pending data that the current business is corresponding when being
Power consumption distribution coefficient the second power consumption distribution coefficient is adjusted to by the first current power consumption distribution coefficient.
The related concept of technical scheme provided to the embodiment of the present application involved by the terminal, explain and detailed description and
Other steps refer to the description as described in these contents in preceding method or other embodiment, do not repeat herein.
In the embodiment of the present application, processor 301 can obtain pending data, and the pending data includes current business
Status data, the status data of target hardware of terminal, ambient temperature data and terminal battery electric quantity data in one kind or
It is a variety of, and power consumption distribution coefficient is adjusted by the first current power consumption distribution coefficient according to corresponding to the pending data by current business
Whole is the second power consumption distribution coefficient, and then carries out power consumption reassignment to target hardware using the second power consumption distribution coefficient, by comprehensive
One or more factors such as the state of conjunction business, the state of terminal hardware and environment temperature are to power consumption distribution system corresponding to business
Number carries out accommodation, and in the case of the state of the business of combination, the actual demand that can combine business carries out work(to hardware
Expendable weight distributes, so as to realize good temperature control effect and systematic function;It can also be improved in the case of combining environmental temperature
Adaptability of the temperature control effect to environment.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or its any combination real
It is existing.When implemented in software, can realize in the form of a computer program product whole or in part.The computer program
Product includes one or more computer instructions.When loading on computers and performing the computer program instructions, all or
Partly produce according to the flow or function described in the embodiment of the present application.The computer can be all-purpose computer, special meter
Calculation machine, computer network or other programmable devices.The computer instruction can be stored in computer-readable recording medium
In, or the transmission from a computer-readable recording medium to another computer-readable recording medium, for example, the computer
Instruction can pass through wired (such as coaxial cable, optical fiber, numeral from a web-site, computer, server or data center
User's line (DSL)) or wireless (such as infrared, microwave etc.) mode into another web-site, computer, server or data
The heart is transmitted.The computer-readable recording medium can be any usable medium or include that computer can access
The data storage devices such as the integrated server of one or more usable mediums, data center.The usable medium can be magnetic
Medium (such as floppy disk, hard disk, tape), optical medium (such as DVD) or semiconductor medium (such as solid state hard disc (Solid
State Disk, SSD)) etc..
To sum up, above example is only to illustrate the technical scheme of the application, rather than its limitations;Although with reference to foregoing reality
Example is applied the application is described in detail, it will be understood by those within the art that:It still can be to foregoing each
Technical scheme described in embodiment is modified, or carries out equivalent substitution to which part technical characteristic;And these are changed
Or replace, the essence of appropriate technical solution is departed from the spirit and scope of each embodiment technical scheme of the application.
Claims (15)
- A kind of 1. power consumption control method, applied to terminal, it is characterised in that including:Obtain pending data, the status data of the pending data including current business, the target hardware of the terminal One or more in the battery electric quantity data of status data, ambient temperature data and the terminal;Power consumption distribution coefficient distributes system by the first current power consumption according to corresponding to the pending data by the current business Number is adjusted to the second power consumption distribution coefficient, and the power consumption distribution coefficient is used for the power consumption distribution amount for indicating the target hardware;Power consumption reassignment is carried out to the target hardware using the second power consumption distribution coefficient.
- 2. according to the method for claim 1, it is characterised in that it is described according to the pending data by the current business Corresponding power consumption distribution coefficient is adjusted to the second power consumption distribution coefficient by the first current power consumption distribution coefficient, including:The second power consumption is determined using the current corresponding first power consumption distribution coefficient of the pending data and/or the current business Distribution coefficient;Power consumption distribution coefficient corresponding to the current business is adjusted to second power consumption by the first power consumption distribution coefficient Distribution coefficient.
- 3. method according to claim 1 or 2, it is characterised in that before the acquisition pending data, methods described is also Including:When the current business is run first, adjust DVFS modules using dynamic voltage frequency and intelligent power consumption distributes IPA moulds Block determines the first power consumption distribution coefficient.
- 4. according to the method for claim 3, it is characterised in that described to utilize dynamic voltage frequency adjustment DVFS modules and intelligence After energy power consumption distribution IPA modules determine the first power consumption distribution coefficient, methods described also includes:Power consumption distribution is carried out to the target hardware using the first power consumption distribution coefficient;If the temperature data of the target hardware meets the default condition of convergence, it is determined that the current business enters stable state, and Log file is generated using Steady-state Parameters corresponding to the current business, the Steady-state Parameters include first power consumption distribution system Number.
- 5. according to method according to any one of claims 1 to 4, it is characterised in that before the acquisition pending data, institute Stating method also includes:When the current business is non-to be run first, by reading the log file previously generated, first power consumption point is obtained Distribution coefficient.
- 6. according to the method for claim 1, it is characterised in that the status data of the target hardware includes the current industry The utilization rate being engaged in the target hardware, the distribution of the power consumption according to corresponding to the pending data by the current business system Before number is adjusted to the second power consumption distribution coefficient by the first current power consumption distribution coefficient, methods described also includes:Judge whether the current business is more than or equal to default utilization rate threshold value to the utilization rate of the target hardware;If so, then perform according to corresponding to the pending data by the current business power consumption distribution coefficient by current first Power consumption distribution coefficient is adjusted to the step of the second power consumption distribution coefficient.
- 7. according to the method for claim 1, it is characterised in thatThe status data of the current business includes the loading of the current business, the type of service of the current business and described Current business whether first operating one or more.
- 8. according to the method for claim 1, it is characterised in thatThe status data of the target hardware includes the utilization rate, the frequency of the target hardware, the mesh of the target hardware Mark the one or more in the power consumption distribution amount of hardware and the temperature data of the target hardware.
- A kind of 9. power consumption control apparatus, applied to terminal, it is characterised in that including:Acquisition module, for obtaining pending data, the pending data includes the status data of current business, the terminal The status data of target hardware, ambient temperature data and the terminal battery electric quantity data in one or more;Adjusting module, for according to the pending data by the current business corresponding to power consumption distribution coefficient by current One power consumption distribution coefficient is adjusted to the second power consumption distribution coefficient, and the power consumption distribution coefficient is used for the work(for indicating the target hardware Consumption distribution amount;Distribute module, for carrying out power consumption reassignment to the target hardware using the second power consumption distribution coefficient.
- 10. device according to claim 9, it is characterised in that the adjusting module is specifically used for:The second power consumption is determined using the current corresponding first power consumption distribution coefficient of the pending data and/or the current business Distribution coefficient;Power consumption distribution coefficient corresponding to the current business is adjusted to second power consumption by the first power consumption distribution coefficient Distribution coefficient.
- 11. the device according to claim 9 or 10, it is characterised in that described device also includes:Determining module, for when the current business is run first, DVFS modules and intelligence to be adjusted using dynamic voltage frequency Power consumption distribution IPA modules determine the first power consumption distribution coefficient.
- 12. device according to claim 11, it is characterised in that described device also includes generation module, wherein:The distribute module, it is additionally operable to carry out power consumption distribution to the target hardware using the first power consumption distribution coefficient;The generation module, if the temperature data for the target hardware meets the default condition of convergence, it is determined that described to work as Preceding business enters stable state, and is included using Steady-state Parameters generation log file, the Steady-state Parameters corresponding to the current business The first power consumption distribution coefficient.
- 13. the device according to any one of claim 9~12, it is characterised in thatThe acquisition module, be additionally operable to when the current business is non-run first when, by reading the log file that previously generates, Obtain the first power consumption distribution coefficient.
- 14. device according to claim 9, it is characterised in that the status data of the target hardware includes described current Business also includes to the utilization rate of the target hardware, described device:Judge module, for judging whether the current business is more than or equal to default utilize to the utilization rate of the target hardware Rate threshold value, and it is according to the pending data that the current business is corresponding to trigger the adjusting module when being in judged result Power consumption distribution coefficient the second power consumption distribution coefficient is adjusted to by the first current power consumption distribution coefficient.
- A kind of 15. terminal, it is characterised in that including:Processor and memory, the memory storage have executable program generation Code, the processor are used to call the executable program code, perform such as power consumption according to any one of claims 1 to 8 Control method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710429163.5A CN107357405B (en) | 2017-06-08 | 2017-06-08 | Power consumption control method and related equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710429163.5A CN107357405B (en) | 2017-06-08 | 2017-06-08 | Power consumption control method and related equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107357405A true CN107357405A (en) | 2017-11-17 |
CN107357405B CN107357405B (en) | 2020-11-27 |
Family
ID=60272626
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710429163.5A Active CN107357405B (en) | 2017-06-08 | 2017-06-08 | Power consumption control method and related equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107357405B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108509018A (en) * | 2018-03-27 | 2018-09-07 | 联想(北京)有限公司 | A kind of control method and electronic equipment, storage medium |
CN111107619A (en) * | 2019-12-27 | 2020-05-05 | 深圳市普威技术有限公司 | Power control method of communication system, communication system and storage medium |
CN111949100A (en) * | 2020-09-01 | 2020-11-17 | 深圳大普微电子科技有限公司 | Temperature control method, device and equipment of memory and storage medium |
CN112214315A (en) * | 2020-09-23 | 2021-01-12 | 深圳云天励飞技术股份有限公司 | Chip control method and device, artificial intelligence chip and terminal equipment |
CN112394805A (en) * | 2019-08-12 | 2021-02-23 | 福州瑞芯微电子股份有限公司 | Method for realizing low-power-consumption mode of DRAM (dynamic random Access memory) and terminal |
CN113688001A (en) * | 2021-07-23 | 2021-11-23 | 苏州浪潮智能科技有限公司 | Dynamic balancing method and device for server hard disk power consumption, terminal and storage medium |
CN114546095A (en) * | 2022-04-25 | 2022-05-27 | 沐曦科技(北京)有限公司 | Master selection method based on multiple computing devices |
CN114779879A (en) * | 2022-05-06 | 2022-07-22 | Oppo广东移动通信有限公司 | Frequency-voltage adjusting method and related device |
CN116635813A (en) * | 2020-11-10 | 2023-08-22 | 超威半导体公司 | Application coverage for power estimation mechanism |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101378138A (en) * | 2008-09-28 | 2009-03-04 | 深圳华为通信技术有限公司 | Method for improving battery use efficiency and equipment using battery to supply power |
CN102902348A (en) * | 2012-10-17 | 2013-01-30 | 深圳市至高通信技术发展有限公司 | Power consumption self adjusting system of intelligent system and method thereof |
CN103999016A (en) * | 2011-12-15 | 2014-08-20 | 英特尔公司 | Dynamically modifying a power/performance tradeoff based on processor utilization |
CN104571990A (en) * | 2014-12-22 | 2015-04-29 | 广东欧珀移动通信有限公司 | Method and system for adjusting operating state of display screen |
-
2017
- 2017-06-08 CN CN201710429163.5A patent/CN107357405B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101378138A (en) * | 2008-09-28 | 2009-03-04 | 深圳华为通信技术有限公司 | Method for improving battery use efficiency and equipment using battery to supply power |
CN103999016A (en) * | 2011-12-15 | 2014-08-20 | 英特尔公司 | Dynamically modifying a power/performance tradeoff based on processor utilization |
CN102902348A (en) * | 2012-10-17 | 2013-01-30 | 深圳市至高通信技术发展有限公司 | Power consumption self adjusting system of intelligent system and method thereof |
CN104571990A (en) * | 2014-12-22 | 2015-04-29 | 广东欧珀移动通信有限公司 | Method and system for adjusting operating state of display screen |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108509018A (en) * | 2018-03-27 | 2018-09-07 | 联想(北京)有限公司 | A kind of control method and electronic equipment, storage medium |
CN112394805A (en) * | 2019-08-12 | 2021-02-23 | 福州瑞芯微电子股份有限公司 | Method for realizing low-power-consumption mode of DRAM (dynamic random Access memory) and terminal |
CN111107619A (en) * | 2019-12-27 | 2020-05-05 | 深圳市普威技术有限公司 | Power control method of communication system, communication system and storage medium |
CN111107619B (en) * | 2019-12-27 | 2023-05-16 | 深圳市联洲国际技术有限公司 | Power control method of communication system, communication system and storage medium |
CN111949100B (en) * | 2020-09-01 | 2023-02-28 | 深圳大普微电子科技有限公司 | Temperature control method, device and equipment of memory and storage medium |
CN111949100A (en) * | 2020-09-01 | 2020-11-17 | 深圳大普微电子科技有限公司 | Temperature control method, device and equipment of memory and storage medium |
CN112214315A (en) * | 2020-09-23 | 2021-01-12 | 深圳云天励飞技术股份有限公司 | Chip control method and device, artificial intelligence chip and terminal equipment |
CN112214315B (en) * | 2020-09-23 | 2024-03-29 | 深圳云天励飞技术股份有限公司 | Chip control method and device, artificial intelligent chip and terminal equipment |
CN116635813A (en) * | 2020-11-10 | 2023-08-22 | 超威半导体公司 | Application coverage for power estimation mechanism |
CN113688001A (en) * | 2021-07-23 | 2021-11-23 | 苏州浪潮智能科技有限公司 | Dynamic balancing method and device for server hard disk power consumption, terminal and storage medium |
CN113688001B (en) * | 2021-07-23 | 2023-06-16 | 苏州浪潮智能科技有限公司 | Dynamic balancing method and device for power consumption of server hard disk, terminal and storage medium |
CN114546095B (en) * | 2022-04-25 | 2022-07-01 | 沐曦科技(北京)有限公司 | Master selection method based on multiple computing devices |
CN114546095A (en) * | 2022-04-25 | 2022-05-27 | 沐曦科技(北京)有限公司 | Master selection method based on multiple computing devices |
CN114779879A (en) * | 2022-05-06 | 2022-07-22 | Oppo广东移动通信有限公司 | Frequency-voltage adjusting method and related device |
CN114779879B (en) * | 2022-05-06 | 2024-04-30 | Oppo广东移动通信有限公司 | Frequency-voltage adjusting method and related device |
Also Published As
Publication number | Publication date |
---|---|
CN107357405B (en) | 2020-11-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107357405A (en) | Power consumption control method and relevant device | |
CN105009021B (en) | For using thermal resistance value prediction optimum power level to realize the system and method for the heat management in portable computing device | |
CN110637271B (en) | Systems and methods for intelligent adjustment of immersive multimedia workloads in portable computing devices | |
US9582012B2 (en) | Energy efficiency aware thermal management in a multi-processor system on a chip | |
CN103649869B (en) | Multi-level thermal management in an electronic device | |
CN104081316B (en) | The system and method for the cell load management in portable computing device | |
CN108780349B (en) | System and method for intelligent thermal management in a system-on-chip with heterogeneous cluster architecture | |
US9442773B2 (en) | Thermally driven workload scheduling in a heterogeneous multi-processor system on a chip | |
US20130073875A1 (en) | System and method for managing thermal energy generation in a heterogeneous multi-core processor | |
US9158358B2 (en) | System and method for intelligent multimedia-based thermal power management in a portable computing device | |
US9218044B2 (en) | Computing system frequency target monitor | |
CN104838330A (en) | System and method for estimating ambient temperaure from portable computing device | |
TW201800894A (en) | System and method for intelligent thermal management using dynamic performance floors in a portable computing device | |
JP2013543698A (en) | System and method for measuring the effectiveness of workload predictors in mobile devices | |
US20180167878A1 (en) | Core frequency/count decision-based thermal mitigation optimization for a multi-core integrated circuit | |
US10168752B2 (en) | Systems and methods for determining a sustained thermal power envelope comprising multiple heat sources | |
US20170192473A1 (en) | System and method for intelligent thermal management based on a thermal power envelope in a portable computing device | |
WO2016180241A1 (en) | Energy-conservation management method and apparatus for terminal and terminal | |
CN102447273A (en) | Terminal and power supply method thereof | |
CN116566020A (en) | Charging and discharging power control method and device of energy storage system | |
CN105094295B (en) | A kind of information processing method and electronic equipment | |
US20150161070A1 (en) | Method and system for managing bandwidth demand for a variable bandwidth processing element in a portable computing device | |
CN112799848A (en) | Control method and device | |
CN115528712B (en) | Method and system for balancing energy storage capacities of different areas of source network charge storage | |
CN113918337A (en) | Application program running method and device, terminal equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |