CN107357405B - Power consumption control method and related equipment - Google Patents

Power consumption control method and related equipment Download PDF

Info

Publication number
CN107357405B
CN107357405B CN201710429163.5A CN201710429163A CN107357405B CN 107357405 B CN107357405 B CN 107357405B CN 201710429163 A CN201710429163 A CN 201710429163A CN 107357405 B CN107357405 B CN 107357405B
Authority
CN
China
Prior art keywords
power consumption
distribution coefficient
consumption distribution
data
current service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710429163.5A
Other languages
Chinese (zh)
Other versions
CN107357405A (en
Inventor
郑华晋
韩晓征
吴开涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201710429163.5A priority Critical patent/CN107357405B/en
Publication of CN107357405A publication Critical patent/CN107357405A/en
Application granted granted Critical
Publication of CN107357405B publication Critical patent/CN107357405B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3209Monitoring remote activity, e.g. over telephone lines or network connections
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3243Power saving in microcontroller unit

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 application discloses a power consumption control method and related equipment, wherein the method comprises the following steps: acquiring data to be processed, wherein the data to be processed comprises one or more of state data of a current service, state data of target hardware of a terminal, environment temperature data and battery power data of the terminal, adjusting a power consumption distribution coefficient corresponding to the current service from a current first power consumption distribution coefficient to a second power consumption distribution coefficient according to the data to be processed, and then performing power consumption redistribution on the target hardware by using the second power consumption distribution coefficient. By adopting the embodiment of the application, the power consumption of hardware required by the service can be adjusted, so that a good temperature control effect and system performance are realized.

Description

Power consumption control method and related equipment
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a power consumption control method and a related device.
Background
With the increasingly stronger performance of terminals such as smart phones, tablet computers and intelligent wearable devices, the heat generation is also increasing, and the temperature control has become one of the key elements of System On Chip (SOC) Chip and terminal design. With the development of various services (such as applications) on terminals and the improvement of requirements on hardware performance, various terminal overheating problems emerge endlessly, and terminal temperature control becomes a public opinion concern.
At present, terminal system developers and manufacturers propose various schemes for the temperature control problem, but mainly use passive management as the main, and only start the frequency and voltage limiting strategy when the temperature is over-maintained, and the above disadvantages include: the strategy is fixed, and a specific response is made according to preset parameters, for example, the maximum working frequency of a Central Processing Unit (CPU) is limited at a certain temperature point, so that the performance requirement of the service cannot be met, and the problem of picture blockage is caused; the hardware modules (such as CPUs and Graphic Processing Units (GPUs)) are managed separately, so that the performance of the hardware modules cannot be adapted, and the system performance may be greatly affected when the system generates heat. Therefore, how to solve the defects of poor temperature control effect of the terminal and poor system performance becomes a problem to be solved urgently.
Disclosure of Invention
The embodiment of the application discloses a power consumption control method and related equipment, which can achieve good temperature control effect and system performance.
A first aspect of the embodiments of the present application provides a power consumption control method, which is applied to a terminal, and includes:
acquiring data to be processed, wherein the data to be processed comprises one or more of state data of a current service, state data of target hardware of the terminal, environment temperature data and battery power data of the terminal.
And adjusting the power consumption distribution coefficient corresponding to the current service from the current first power consumption distribution coefficient to a second power consumption distribution coefficient according to the data to be processed, wherein the power consumption distribution coefficient is used for indicating the power consumption distribution limit of the target hardware.
And performing power consumption redistribution on the target hardware by utilizing the second power consumption distribution coefficient.
Optionally, the adjusting, according to the to-be-processed data, the power consumption distribution coefficient corresponding to the current service from the current first power consumption distribution coefficient to a second power consumption distribution coefficient includes:
and determining a second power consumption distribution coefficient by using the data to be processed and/or the first power consumption distribution coefficient currently corresponding to the current service.
And adjusting the power consumption distribution coefficient corresponding to the current service from the first power consumption distribution coefficient to the second power consumption distribution coefficient.
Optionally, before the acquiring the data to be processed, the method further includes:
when the current service runs for the first time, the first power consumption distribution coefficient is determined by using a dynamic voltage frequency adjustment DVFS module and an intelligent power consumption distribution IPA module.
Optionally, after the determining the first power consumption allocation coefficient by using the dynamic voltage frequency adjustment DVFS module and the intelligent power consumption allocation IPA module, the method further includes:
and performing power consumption distribution on the target hardware by using the first power consumption distribution coefficient.
And if the temperature data of the target hardware meets a preset convergence condition, determining that the current service enters a steady state, and generating a record file by using a steady state parameter corresponding to the current service, wherein the steady state parameter comprises the first power consumption distribution coefficient.
Optionally, before the acquiring the data to be processed, the method further includes:
and when the current service does not run for the first time, the first power consumption distribution coefficient is obtained by reading a record file generated in advance.
Optionally, the state data of the target hardware includes a utilization rate of the current service to the target hardware, and before the power consumption distribution coefficient corresponding to the current service is adjusted from a current first power consumption distribution coefficient to a second power consumption distribution coefficient according to the to-be-processed data, the method further includes:
and judging whether the utilization rate of the current service to the target hardware is greater than or equal to a preset utilization rate threshold value.
And if so, executing a step of adjusting the power consumption distribution coefficient corresponding to the current service from the current first power consumption distribution coefficient to a second power consumption distribution coefficient according to the data to be processed.
Optionally, the status data of the current service includes one or more of a load of the current service, a service type of the current service, and whether the current service is operated for the first time.
Optionally, the status data of the target hardware includes one or more of a utilization rate of the target hardware, a frequency of the target hardware, a power consumption allocation amount of the target hardware, and temperature data of the target hardware.
A second aspect of the embodiments of the present application provides a power consumption control apparatus, which is applied to a terminal, and includes:
the terminal comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring data to be processed, and the data to be processed comprises one or more of state data of a current service, state data of target hardware of the terminal, environment temperature data and battery power data of the terminal.
And the adjusting module is used for adjusting the power consumption distribution coefficient corresponding to the current service from the current first power consumption distribution coefficient to a second power consumption distribution coefficient according to the data to be processed, and the power consumption distribution coefficient is used for indicating the power consumption distribution limit of the target hardware.
And the distribution module is used for carrying out power consumption redistribution on the target hardware by utilizing the second power consumption distribution coefficient.
Optionally, the adjusting module is specifically configured to:
and determining a second power consumption distribution coefficient by using the data to be processed and/or the first power consumption distribution coefficient currently corresponding to the current service.
And adjusting the power consumption distribution coefficient corresponding to the current service from the first power consumption distribution coefficient to the second power consumption distribution coefficient.
Optionally, the apparatus further comprises:
and the determining module is used for determining the first power consumption distribution coefficient by utilizing the dynamic voltage frequency adjustment DVFS module and the intelligent power consumption distribution IPA module when the current service runs for the first time.
Optionally, the apparatus further includes a generation module, wherein:
the allocation module is further configured to allocate power consumption to the target hardware by using the first power consumption allocation coefficient.
The generating module is configured to determine that the current service enters a steady state if the temperature data of the target hardware meets a preset convergence condition, and generate a record file by using a steady-state parameter corresponding to the current service, where the steady-state parameter includes the first power consumption distribution coefficient.
Optionally, the obtaining module is further configured to obtain the first power consumption distribution coefficient by reading a pre-generated record file when the current service is not operated for the first time.
Optionally, the state data of the target hardware includes a utilization rate of the current service to the target hardware, and the apparatus further includes:
and the judging module is used for judging whether the utilization rate of the current service to the target hardware is greater than or equal to a preset utilization rate threshold value or not, and triggering the adjusting module to adjust the power consumption distribution coefficient corresponding to the current service from the current first power consumption distribution coefficient to a second power consumption distribution coefficient according to the data to be processed if the judgment result is yes.
A third aspect of the embodiments of the present application provides a terminal, including: a processor and a memory, wherein the memory stores executable program codes, and the processor is configured to call the executable program codes to execute the power consumption control method according to any one of the first aspect.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to execute the power consumption control method according to any one of the first aspect.
A fifth aspect of embodiments of the present application provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the power consumption control method according to any one of the first aspect.
The method can acquire the data to be processed, wherein the data to be processed comprises one or more of state data of a current service, state data of target hardware of a terminal, environment temperature data and battery power data of the terminal, the power consumption distribution coefficient corresponding to the current service is adjusted from a current first power consumption distribution coefficient to a second power consumption distribution coefficient according to the data to be processed, the target hardware is then redistributed in power consumption by utilizing the second power consumption distribution coefficient, and the power consumption distribution coefficient corresponding to the service is adaptively adjusted by integrating one or more factors such as the state of the service, the state of the terminal hardware and the environment temperature, namely, the power consumption of the hardware required by the service is adjusted, so that a good temperature control effect and system performance are realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present application, the drawings required to be used in the embodiments or the background art of the present application will be described below.
Fig. 1 is a schematic flow chart of a power consumption control method disclosed in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a power consumption control apparatus disclosed in an embodiment of the present application;
fig. 3 is a schematic structural diagram of a terminal disclosed in an embodiment of the present application.
Detailed Description
The embodiments of the present application will be described below with reference to the drawings.
The embodiment of the application is particularly applied to a scene of Intelligent Power Allocation (IPA) of a Power consumption control software framework based on a Closed Loop (Closed Loop) control algorithm. Existing IPA-based temperature control processes include: according to the difference value between the current temperature and the target temperature, the manager estimates the effective power consumption budget of the system, and intelligently distributes the power consumption budget to each activated hardware (such as a CPU (central processing unit), a GPU (graphics processing unit) and the like) in the system through a certain algorithm, so that the optimal performance of the system is obtained under the condition of controlling the temperature. Linear computation is the main mechanism for calculating power consumption budget in IPA temperature control, and adjusting the power consumption distribution coefficients k _ po, k _ pu can significantly adjust the thermal budget slope, where k _ po and k _ pu represent the coefficients for calculating the power consumption distribution amount when the current actual temperature is higher or lower than the target temperature, respectively. The power consumption allocation calculation formula is as follows:
P_max=k_p*e+sustainable_power
in the formula, e represents the difference between the target temperature and the current temperature, and the susteable _ power is an estimation of the sustainable power consumption of the system. When the actual temperature is higher than the target temperature, substituting k _ po into k _ p in the formula, and calculating the distributable maximum power consumption; and otherwise, when the temperature is lower than the target temperature, substituting k _ pu into the formula to calculate the power consumption amount.
However, the temperature control scheme based on IPA depends on fixed power dissipation distribution coefficients k _ po and k _ pu, and cannot be dynamically adjusted according to changes of services and environments, which may result in poor temperature control effect, poor system performance, and poor environment adaptability.
Please refer to fig. 1, which is a flowchart illustrating a power consumption control method according to an embodiment of the present disclosure. The power consumption control method described in this embodiment is applied to a terminal, and the method includes:
101. the method comprises the steps that a terminal obtains data to be processed, wherein the data to be processed comprises one or more of state data of a current service, state data of target hardware of the terminal, environment temperature data and battery capacity data of the terminal.
The service refers to a task process running on the terminal, and may be an Application (APP), for example.
The data to be processed refers to data related to power consumption control, and the state data of the current service in the data to be processed may specifically include one or more of a load of the current service, a service type of the current service, whether the current service is operated for the first time, and the like. The service types may specifically include heavy service and light service, where heavy service refers to a service with a higher utilization rate (for example, a utilization rate reaches a preset utilization rate threshold) for a hardware resource (for example, a CPU), and otherwise, the service is light service.
The target hardware can comprise a CPU (central processing unit), a GPU (graphics processing unit) and a double-rate synchronous dynamic random access memory DDR (double data rate). Of course, the target hardware may also include other hardware modules of the terminal. The state data of the target hardware in the data to be processed may specifically include one or more of a utilization rate of the target hardware, a frequency of the target hardware, a power consumption allocation quota of the target hardware, and temperature data of the target hardware. The temperature data may include real-time temperature values and/or temperature changes over a period of time.
In specific implementation, the terminal starts background service acquisition to acquire the data to be processed according to acquisition requirements configured by the system.
102. And the terminal adjusts the power consumption distribution coefficient corresponding to the current service from the current first power consumption distribution coefficient to a second power consumption distribution coefficient according to the data to be processed, wherein the power consumption distribution coefficient is used for indicating the power consumption distribution limit of the target hardware.
For the temperature control scheme based on IPA, the power consumption distribution coefficient mainly comprises IPA parameters such as k _ po, k _ pu and the like.
In the specific implementation, the power consumption distribution coefficient is used for indicating the power consumption distribution amount of the target hardware, that is, how much power consumption needs to be distributed to the target hardware, assuming that the power consumption distribution coefficient corresponding to the current service is the first power consumption distribution coefficient, after the terminal acquires the data to be processed, the terminal can determine the second power consumption distribution coefficient by using the data to be processed and/or the first power consumption distribution coefficient, and adjust the power consumption distribution coefficient corresponding to the current service from the first power consumption distribution coefficient to the second power consumption distribution coefficient.
The terminal can adjust the power consumption distribution coefficient corresponding to the current service from the first power consumption distribution coefficient to the second power consumption distribution coefficient in multiple ways, including: modifying the power consumption distribution coefficient through a read-write interface for the power consumption distribution coefficient, which is provided by a/sys file system; or modifying the power consumption distribution coefficient through modifying the/sys file system node of the power consumption distribution coefficient; or, the power consumption distribution coefficient is modified by adding a read-write interface based on a Hardware Abstraction Layer (HAL).
In a possible implementation manner, the terminal may further implement modification of the power consumption allocation coefficient through an instance such as Inter-Process Communication (IPC) or Inter-layer message.
103. And the terminal performs power consumption redistribution on the target hardware by using the second power consumption distribution coefficient.
In specific implementation, the terminal updates the power distribution limit of the target hardware according to the second power distribution coefficient, redistributes the power consumption of the target hardware according to the updated power distribution limit, and can effectively avoid the phenomena of frequency limitation after ultrahigh temperature, stepped frequency reduction and the like which seriously affect the performance of the system.
In a possible implementation manner, before step 101, when the terminal runs the current service, if the current service is first run, the terminal may determine the first power consumption allocation coefficient by using a Dynamic Voltage and Frequency Scaling (DVFS) module and an IPA module.
Further, the terminal may perform power consumption allocation on the target hardware by using the first power consumption allocation coefficient, after the power consumption allocation is performed on the target hardware by using the first power consumption allocation coefficient, if the temperature data of the target hardware meets a preset convergence condition, the terminal may determine that the current service enters a steady state, obtain steady-state data corresponding to the current service, and generate a record file by using the steady-state parameter, where the steady-state parameter includes the first power consumption allocation coefficient, so as to store the first power consumption allocation coefficient in the record file, so that a matched power consumption allocation coefficient (i.e., the first power consumption allocation coefficient) may be directly read from the record file when the current service is subsequently started, without determining the matched power consumption allocation coefficient by using the DVFS module and the IPA module, and power consumption control may be rapidly and accurately completed.
Optionally, the steady state parameters may further include: and when the current service enters a steady state, the steady state frequency point of the target hardware, the system temperature and the like.
In a possible implementation manner, before step 101, when the terminal runs the current service, if the current service is not run for the first time, the terminal may obtain the matched first power consumption allocation coefficient by reading a pre-generated record file, so that by using the power consumption allocation coefficient when the current service is in a steady state for the last time, the performance can be prevented from being continuously reduced due to overheating or stepped down frequency caused by rapid frequency increase, and thus, power consumption allocation, performance and the like in the process of running the current service smoothly are performed.
In a possible implementation manner, a specific manner of the terminal determining whether the temperature data of the target hardware meets the preset convergence condition may be: taking the target hardware as the CPU for example, the terminal reads the utilization rate and frequency of the CPU, if the current utilization rate of the current service to the CPU reaches 20% (of course, other larger values may also be used), it is determined whether the current utilization rate of the current service to the CPU is also higher (for example, 15%) during the period of acquiring the data to be processed, if so, the terminal compares whether the difference between the highest temperature and the lowest temperature of the acquired target hardware is smaller (for example, less than or equal to 5 ℃), and the temperature of the lowest temperature reaches a preset value (for example, 30 ℃), and if the difference between the highest temperature and the lowest temperature is smaller and the temperature of the lowest temperature reaches the preset value, the terminal may determine that the temperature data of the target hardware meets a preset convergence condition, that is, the current service enters a steady state.
In a possible implementation manner, before step 102, the terminal may first determine whether the current service is a heavy service, for example, the terminal may determine whether a utilization rate of the current service to target hardware is greater than or equal to a preset utilization rate threshold (for example, 25%), if so, the terminal determines that the current service is a heavy service, and then needs to execute the power consumption allocation coefficient adjustment corresponding to steps 102 to 103, and may not adjust the power consumption allocation coefficient when the current service is not a heavy service.
In a possible implementation manner, a dynamic adjustment concept of the power dissipation factor is introduced by taking the power dissipation factor k _ pu as an example, in an existing IPA temperature control scheme, k _ pu is a static value, and is calculated as follows:
k _ pu ═ 2 × susteable _ power/(T _ set-T _ on), T _ set is the target temperature, T _ on is the regulation threshold temperature, and susteable _ power is an estimate of sustainable power consumption.
Wherein, taking the static value of k _ pu as a base number, the weighting adjustment process is as follows:
for heavy services, such as large-scale game services, the power consumption amount requested by the GPU module is large, so that the temperature rise is obvious. After identifying the type of traffic (i.e., heavy traffic), this type of traffic is given an attenuation factor to attenuate the static value of k _ pu, limiting its power consumption to prevent rapid overheating. Different types of traffic may correspond to different attenuation coefficients.
Further, the temperature rise conditions after two power consumption allocations before and after are compared, if the temperature rise amplitude is small and the value before the power consumption allocation is high, the environmental temperature is low, and the k _ pu is gained. After power consumption distribution is carried out on IPA temperature control each time, the gain is adjusted according to the rising amplitude of temperature rise, if the temperature rise is slow, the gain is gradually increased, the power consumption distribution slope is gradually accelerated, and otherwise, the gain is reduced. The performance is steadily increased by this conservative gain without decreasing after overheating.
To summarize, gain is performed on k _ pu during the resource loading stage at the initial stage of service operation to speed up the loading process; and finely adjusting k _ pu in the stage of slow climbing of the service load to control temperature rise, continuously recording the value of k _ pu when the service enters a steady state, and setting the value as a default initial value in the next operation, so that a user can obtain smoother service experience.
In the embodiment of the application, the terminal can obtain the data to be processed, the data to be processed comprises one or more of the state data of the current service, the state data of the target hardware of the terminal, the ambient temperature data and the battery capacity data of the terminal, and the power consumption distribution coefficient corresponding to the current service is adjusted from the current first power consumption distribution coefficient to a second power consumption distribution coefficient according to the data to be processed, further, the second power consumption distribution coefficient is used for carrying out power consumption redistribution on the target hardware, the power consumption distribution coefficient corresponding to the service is adaptively adjusted according to one or more factors such as the state of the integrated service, the state of the terminal hardware and the ambient temperature, namely, power consumption adjustment is carried out on hardware required by the service, and under the condition of combining the service state, power consumption redistribution can be carried out on the hardware by combining the actual requirement of the service, so that good temperature control effect and system performance are realized; the adaptability of the temperature control effect to the environment can be improved under the condition of combining the environment temperature.
Fig. 2 is a schematic structural diagram of a power consumption control apparatus according to an embodiment of the present disclosure. The power consumption control device described in this embodiment is applied to a terminal, and includes:
an obtaining module 201, configured to obtain data to be processed, where the data to be processed includes one or more of state data of a current service, state data of target hardware of the terminal, environment temperature data, and battery power data of the terminal;
an adjusting module 202, configured to adjust a power consumption distribution coefficient corresponding to the current service from a current first power consumption distribution coefficient to a second power consumption distribution coefficient according to the to-be-processed data, where the power consumption distribution coefficient is used to indicate a power consumption distribution limit of the target hardware;
and the allocating module 203 is configured to reallocate power consumption of the target hardware by using the second power consumption allocation coefficient.
In a possible implementation manner, the adjusting module 202 is specifically configured to:
determining a second power consumption distribution coefficient by using the data to be processed and/or a first power consumption distribution coefficient currently corresponding to the current service;
and adjusting the power consumption distribution coefficient corresponding to the current service from the first power consumption distribution coefficient to the second power consumption distribution coefficient.
In a possible implementation manner, the apparatus further includes:
a determining module 204, configured to determine the first power consumption allocation coefficient by using the dynamic voltage frequency adjustment DVFS module and the intelligent power consumption allocation IPA module when the current service is first run.
In a possible implementation manner, the apparatus further includes a generating module 205, where:
the allocating module 203 is further configured to allocate power consumption to the target hardware by using the first power consumption allocation coefficient;
the generating module 205 is configured to determine that the current service enters a steady state if the temperature data of the target hardware meets a preset convergence condition, and generate a record file by using a steady-state parameter corresponding to the current service, where the steady-state parameter includes the first power consumption distribution coefficient.
In a possible implementation manner, the obtaining module 201 is further configured to obtain the first power consumption distribution coefficient by reading a pre-generated record file when the current service is not operated for the first time.
In a possible implementation manner, the state data of the target hardware includes a utilization rate of the current service to the target hardware, and the apparatus further includes:
a determining module 206, configured to determine whether a utilization rate of the current service to the target hardware is greater than or equal to a preset utilization rate threshold, and if so, trigger the adjusting module 202 to adjust the power consumption distribution coefficient corresponding to the current service from the current first power consumption distribution coefficient to a second power consumption distribution coefficient according to the to-be-processed data.
It can be understood that the functions of each functional module of the power consumption control apparatus in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the relevant description of the foregoing method embodiment, which is not described herein again.
In this embodiment, the obtaining module 201 may obtain data to be processed, where the data to be processed includes one or more of state data of a current service, state data of target hardware of a terminal, ambient temperature data, and battery power data of the terminal, the adjusting module 202 adjusts a power consumption distribution coefficient corresponding to the current service from a current first power consumption distribution coefficient to a second power consumption distribution coefficient according to the data to be processed, the allocating module 203 then allocates the power consumption of the target hardware by using the second power consumption allocation coefficient, the power consumption distribution coefficient corresponding to the service is adaptively adjusted through one or more factors such as the state of the integrated service, the state of the terminal hardware and the ambient temperature, under the condition of combining the service state, the power consumption redistribution can be carried out on hardware according to the actual requirements of the service, so that a good temperature control effect and system performance are realized; the adaptability of the temperature control effect to the environment can be improved under the condition of combining the environment temperature.
Please refer to fig. 3, which is a schematic structural diagram of a terminal according to an embodiment of the present application. The terminal described in this embodiment includes: a processor 301 and a memory 302.
The memory 302 is configured to store instructions, and the processor 301 is configured to execute the instructions stored in the memory 302 to complete the corresponding method steps implemented by the obtaining module 201, the adjusting module 202, the allocating module 203, the determining module 204, the generating module 205, and the determining module 206.
Optionally, the terminal may further include a transceiver 303, which is controlled by the processor 301 to complete signal transmission and signal reception.
Alternatively, the function of the transceiver 303 may be implemented by a transceiver circuit or a transceiver chip. The processor 301 may be considered to be implemented by a dedicated processing chip, a processing circuit, a processor, or a general-purpose chip.
In a specific implementation, the processor 301 is configured to read the program code stored in the memory 302, and perform the following operations:
the processor 301 is configured to acquire data to be processed, where the data to be processed includes one or more of state data of a current service, state data of target hardware of the terminal, environment temperature data, and battery power data of the terminal;
the processor 301 is further configured to adjust the power consumption distribution coefficient corresponding to the current service from a current first power consumption distribution coefficient to a second power consumption distribution coefficient according to the to-be-processed data, where the power consumption distribution coefficient is used to indicate a power consumption distribution limit of the target hardware;
the processor 301 is further configured to perform power redistribution on the target hardware by using the second power distribution coefficient.
In one possible implementation, the processor 301 is specifically configured to:
determining a second power consumption distribution coefficient by using the data to be processed and/or a first power consumption distribution coefficient currently corresponding to the current service;
and adjusting the power consumption distribution coefficient corresponding to the current service from the first power consumption distribution coefficient to the second power consumption distribution coefficient.
In a possible implementation manner, the processor 301 is further configured to determine the first power consumption allocation coefficient by using a dynamic voltage frequency scaling DVFS module and an intelligent power consumption allocation IPA module when the current service is first run.
In a possible implementation manner, the processor 301 is further configured to perform power consumption allocation on the target hardware by using the first power consumption allocation coefficient;
the processor 301 is further configured to determine that the current service enters a steady state if the temperature data of the target hardware meets a preset convergence condition, and generate a record file by using a steady-state parameter corresponding to the current service, where the steady-state parameter includes the first power consumption distribution coefficient.
In a possible implementation manner, the processor 301 is further configured to obtain the first power consumption distribution coefficient by reading a pre-generated record file when the current service is not operated for the first time.
In a possible implementation manner, the state data of the target hardware includes a utilization rate of the current service to the target hardware, and the processor 301 is further configured to determine whether the utilization rate of the current service to the target hardware is greater than or equal to a preset utilization rate threshold, and adjust a power consumption distribution coefficient corresponding to the current service from a current first power consumption distribution coefficient to a second power consumption distribution coefficient according to the to-be-processed data when the determination result is yes.
For the concepts, explanations, details and other steps related to the technical solutions provided in the embodiments of the present application related to the terminal, please refer to the descriptions of the foregoing methods or other embodiments, which are not described herein again.
In this embodiment, the processor 301 may obtain data to be processed, where the data to be processed includes one or more of state data of a current service, state data of target hardware of a terminal, environment temperature data, and battery power data of the terminal, and adjust a power consumption distribution coefficient corresponding to the current service from a current first power consumption distribution coefficient to a second power consumption distribution coefficient according to the data to be processed, and further perform power consumption redistribution on the target hardware by using the second power consumption distribution coefficient, and adaptively adjust the power consumption distribution coefficient corresponding to the service by integrating one or more factors such as the state of the service, the state of the terminal hardware, and the environment temperature, and in a case of combining the state of the service, may perform power consumption redistribution on the hardware in combination with actual demands of the service, thereby achieving a good temperature control effect and system performance; the adaptability of the temperature control effect to the environment can be improved under the condition of combining the environment temperature.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
In summary, the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (15)

1. A power consumption control method is applied to a terminal and is characterized in that the method is applied to an IPA temperature control scheme and comprises the following steps:
acquiring data to be processed, wherein the data to be processed comprises one or more of state data of a current service, state data of target hardware of the terminal, environment temperature data and battery power data of the terminal;
adjusting the power consumption distribution coefficient corresponding to the current service from a current first power consumption distribution coefficient to a second power consumption distribution coefficient according to the data to be processed, wherein the power consumption distribution coefficient is a parameter for calculating the power consumption distribution amount in the IPA temperature control scheme and is used for indicating the power consumption distribution amount of the target hardware, and the second power consumption distribution coefficient is obtained by dynamically gaining or attenuating the first power consumption distribution coefficient;
and performing power consumption redistribution on the target hardware by utilizing the second power consumption distribution coefficient.
2. The method according to claim 1, wherein the adjusting the power consumption distribution coefficient corresponding to the current service from a current first power consumption distribution coefficient to a second power consumption distribution coefficient according to the data to be processed comprises:
determining a second power consumption distribution coefficient by using the data to be processed and/or a first power consumption distribution coefficient currently corresponding to the current service;
and adjusting the power consumption distribution coefficient corresponding to the current service from the first power consumption distribution coefficient to the second power consumption distribution coefficient.
3. The method of claim 1, wherein prior to obtaining the data to be processed, the method further comprises:
when the current service runs for the first time, the first power consumption distribution coefficient is determined by using a dynamic voltage frequency adjustment DVFS module and an intelligent power consumption distribution IPA module.
4. The method of claim 3, wherein after the determining the first power dissipation factor using the Dynamic Voltage Frequency Scaling (DVFS) module and the intelligent power dissipation allocation (IPA) module, the method further comprises:
performing power consumption distribution on the target hardware by using the first power consumption distribution coefficient;
and if the temperature data of the target hardware meets a preset convergence condition, determining that the current service enters a steady state, and generating a record file by using a steady state parameter corresponding to the current service, wherein the steady state parameter comprises the first power consumption distribution coefficient.
5. The method according to any one of claims 1 to 4, wherein before the acquiring the data to be processed, the method further comprises:
and when the current service does not run for the first time, the first power consumption distribution coefficient is obtained by reading a record file generated in advance.
6. The method according to claim 1, wherein the state data of the target hardware includes a utilization rate of the current service to the target hardware, and before the power consumption distribution coefficient corresponding to the current service is adjusted from a current first power consumption distribution coefficient to a second power consumption distribution coefficient according to the data to be processed, the method further includes:
judging whether the utilization rate of the current service to the target hardware is greater than or equal to a preset utilization rate threshold value or not;
and if so, executing a step of adjusting the power consumption distribution coefficient corresponding to the current service from the current first power consumption distribution coefficient to a second power consumption distribution coefficient according to the data to be processed.
7. The method of claim 1,
the state data of the current service comprises one or more of the load of the current service, the service type of the current service and whether the current service is operated for the first time.
8. The method of claim 1,
the state data of the target hardware comprises one or more of utilization rate of the target hardware, frequency of the target hardware, power consumption allocation quota of the target hardware and temperature data of the target hardware.
9. A power consumption control device applied to a terminal is characterized in that the device is applied to an IPA temperature control scheme and comprises:
the terminal comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring data to be processed, and the data to be processed comprises one or more of state data of a current service, state data of target hardware of the terminal, environment temperature data and battery power data of the terminal;
the adjusting module is used for adjusting the power consumption distribution coefficient corresponding to the current service from a current first power consumption distribution coefficient to a second power consumption distribution coefficient according to the data to be processed, wherein the power consumption distribution coefficient is a parameter for calculating the power consumption distribution limit in the IPA temperature control scheme and is used for indicating the power consumption distribution limit of the target hardware, and the second power consumption distribution coefficient is obtained by dynamically gaining or attenuating the first power consumption distribution coefficient;
and the distribution module is used for carrying out power consumption redistribution on the target hardware by utilizing the second power consumption distribution coefficient.
10. The apparatus of claim 9, wherein the adjustment module is specifically configured to:
determining a second power consumption distribution coefficient by using the data to be processed and/or a first power consumption distribution coefficient currently corresponding to the current service;
and adjusting the power consumption distribution coefficient corresponding to the current service from the first power consumption distribution coefficient to the second power consumption distribution coefficient.
11. The apparatus of claim 9, further comprising:
and the determining module is used for determining the first power consumption distribution coefficient by utilizing the dynamic voltage frequency adjustment DVFS module and the intelligent power consumption distribution IPA module when the current service runs for the first time.
12. The apparatus of claim 11, further comprising a generation module, wherein:
the distribution module is further configured to perform power consumption distribution on the target hardware by using the first power consumption distribution coefficient;
the generating module is configured to determine that the current service enters a steady state if the temperature data of the target hardware meets a preset convergence condition, and generate a record file by using a steady-state parameter corresponding to the current service, where the steady-state parameter includes the first power consumption distribution coefficient.
13. The apparatus according to any one of claims 9 to 12,
the obtaining module is further configured to obtain the first power consumption distribution coefficient by reading a pre-generated record file when the current service is not operated for the first time.
14. The apparatus of claim 9, wherein the state data of the target hardware comprises utilization of the target hardware by the current traffic, the apparatus further comprising:
and the judging module is used for judging whether the utilization rate of the current service to the target hardware is greater than or equal to a preset utilization rate threshold value or not, and triggering the adjusting module to adjust the power consumption distribution coefficient corresponding to the current service from the current first power consumption distribution coefficient to a second power consumption distribution coefficient according to the data to be processed if the judgment result is yes.
15. A terminal, comprising: a processor and a memory, the memory storing executable program code, the processor being configured to invoke the executable program code to perform the power consumption control method of any of claims 1-8.
CN201710429163.5A 2017-06-08 2017-06-08 Power consumption control method and related equipment Active CN107357405B (en)

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 CN107357405A (en) 2017-11-17
CN107357405B true 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)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108509018B (en) * 2018-03-27 2021-02-19 联想(北京)有限公司 Control method, electronic device and 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
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
CN112214315B (en) * 2020-09-23 2024-03-29 深圳云天励飞技术股份有限公司 Chip control method and device, artificial intelligent chip and terminal equipment
US11836031B2 (en) * 2020-11-10 2023-12-05 Advanced Micro Devices, Inc. Application override of power estimation mechanism
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
CN114779879B (en) * 2022-05-06 2024-04-30 Oppo广东移动通信有限公司 Frequency-voltage adjusting method and related device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103999016A (en) * 2011-12-15 2014-08-20 英特尔公司 Dynamically modifying a power/performance tradeoff based on processor utilization

Family Cites Families (3)

* Cited by examiner, † Cited by third party
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
CN102902348B (en) * 2012-10-17 2015-06-17 深圳市至高通信技术发展有限公司 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

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103999016A (en) * 2011-12-15 2014-08-20 英特尔公司 Dynamically modifying a power/performance tradeoff based on processor utilization

Also Published As

Publication number Publication date
CN107357405A (en) 2017-11-17

Similar Documents

Publication Publication Date Title
CN107357405B (en) Power consumption control method and related equipment
JP7127010B2 (en) Resource allocation methods, apparatus, electronic equipment, computer readable media and computer programs
CN107770088B (en) Flow control method and device
US10536322B2 (en) Resource management for services
KR101501537B1 (en) Method and system for preempting thermal load by proactive load steering
US10862992B2 (en) Resource cache management method and system and apparatus
US20140359324A1 (en) System and method for intelligent multimedia-based thermal power management in a portable computing device
US9436628B2 (en) Thermal mitigation using selective I/O throttling
US9552034B2 (en) Systems and methods for providing local hardware limit management and enforcement
WO2012103231A1 (en) Computing platform with resource constraint negotiation
CN111245732B (en) Flow control method, device and equipment
US20170212581A1 (en) Systems and methods for providing power efficiency via memory latency control
CN110637272A (en) Dynamic maximum frequency limit for processing core group
CN113826082B (en) Method and equipment for controlling heat dissipation device
CN111007932A (en) Temperature control system, temperature control method based on temperature control system and electronic equipment
US11372464B2 (en) Adaptive parameterization for maximum current protection
CN111190719A (en) Method, device, medium and electronic equipment for optimizing cluster resource allocation
CN117632509A (en) Calculation management method and device, calculation scheduling equipment and storage medium
CN111338803B (en) Thread processing method and device
CN107391254B (en) Intelligent terminal, resource allocation method thereof and computer-readable storage medium
CN114020121A (en) Method, device and equipment for controlling temperature of cloud mobile phone server
CN108958829B (en) Pre-loaded resource control method, device, storage medium and terminal
CN115712337A (en) Scheduling method and device of processor, electronic equipment and storage medium
CN113721755B (en) Screen power saving method and device
US20230100163A1 (en) Allocating computing device resources

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