[go: up one dir, main page]

CN107357405A - Power consumption control method and relevant device - Google Patents

Power consumption control method and relevant device Download PDF

Info

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
target hardware
data
consumption distribution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710429163.5A
Other languages
Chinese (zh)
Other versions
CN107357405B (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

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 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

功耗控制方法及相关设备Power consumption control method and related equipment

技术领域technical field

本申请涉及数据处理技术领域,尤其涉及一种功耗控制方法及相关设备。The present application relates to the technical field of data processing, and in particular to a power consumption control method and related equipment.

背景技术Background technique

随着智能手机、平板电脑、智能可穿戴设备等终端的性能越来越强,发热也越来越大,温控已成为片上系统(System on Chip,SOC)芯片和终端设计的关键要素之一。随着终端上各种业务(如应用)的发展和对硬件性能要求的提升,各种终端过热问题层出不穷,终端温控成为舆论的关注热点。As the performance of terminals such as smartphones, tablets, and smart wearable devices is getting stronger and stronger, and the heat generation is also increasing, temperature control has become one of the key elements in the design of System on Chip (SOC) chips and terminals. . With the development of various services (such as applications) on terminals and the improvement of hardware performance requirements, various terminal overheating problems emerge one after another, and terminal temperature control has become a hot spot of public opinion.

目前,终端系统开发者和厂商针对温控问题提出了各种方案,但主要以被动管理为主,在过温保时才启动限频限压策略,上述存在诸多弊端,包括:策略固定,根据预置参数做出特定的响应,例如在某个温度点限制中央处理器(Central Processing Unit,CPU)的最大工作频率,这样不能满足业务的性能要求,会带来画面卡顿问题;硬件模块(如CPU、图形处理器(Graphics Processing Unit,GPU)等)之间单独管理,导致硬件模块性能无法适配,在系统发热的情况下,可能会较大影响系统性能。可见,如何解决终端温控效果以及系统性能较差的缺陷已成为亟待解决的问题。At present, terminal system developers and manufacturers have proposed various solutions for the temperature control problem, but they mainly focus on passive management, and only start the frequency limit and voltage limit strategy when the temperature is over. Preset parameters to make a specific response, such as limiting the maximum operating frequency of the central processing unit (Central Processing Unit, CPU) at a certain temperature point, which cannot meet the performance requirements of the business and will cause picture freeze problems; hardware modules ( For example, CPU, Graphics Processing Unit (Graphics Processing Unit, GPU, etc.) are managed separately, resulting in that the performance of the hardware modules cannot be adapted, and the system performance may be greatly affected when the system is heated. It can be seen that how to solve the defects of terminal temperature control effect and poor system performance has become an urgent problem to be solved.

发明内容Contents of the invention

本申请实施例公开了一种功耗控制方法及相关设备,可以实现良好的温控效果以及系统性能。The embodiment of the present application discloses a power consumption control method and related equipment, which can achieve good temperature control effect and system performance.

本申请实施例第一方面提供了一种功耗控制方法,应用于终端,包括:The first aspect of the embodiment of the present application provides a power consumption control method applied to a terminal, including:

获取待处理数据,所述待处理数据包括当前业务的状态数据、所述终端的目标硬件的状态数据、环境温度数据和所述终端的电池电量数据中的一种或多种。Acquiring data to be processed, the data to be processed includes one or more of current service status data, target hardware status data of the terminal, ambient temperature data, and battery power data of the terminal.

根据所述待处理数据将所述当前业务对应的功耗分配系数由当前的第一功耗分配系数调整为第二功耗分配系数,所述功耗分配系数用于指示所述目标硬件的功耗分配额度。Adjust the power consumption allocation coefficient corresponding to the current service from the current first power consumption allocation coefficient to a second power consumption allocation coefficient according to the data to be processed, and the power consumption allocation coefficient is used to indicate the performance of the target hardware. consumption allocation.

利用所述第二功耗分配系数对所述目标硬件进行功耗重分配。Reallocating the power consumption of the target hardware by using the second power consumption distribution coefficient.

可选的,所述根据所述待处理数据将所述当前业务对应的功耗分配系数由当前的第一功耗分配系数调整为第二功耗分配系数,包括:Optionally, the adjusting the power consumption allocation coefficient corresponding to the current service from the current first power consumption allocation coefficient to the second power consumption allocation coefficient according to the data to be processed includes:

利用所述待处理数据和/或所述当前业务当前对应的第一功耗分配系数确定第二功耗分配系数。The second power consumption allocation coefficient is determined by using the data to be processed and/or the first power consumption allocation coefficient currently corresponding to the current service.

将所述当前业务对应的功耗分配系数由所述第一功耗分配系数调整为所述第二功耗分配系数。Adjusting the power consumption allocation coefficient corresponding to the current service from the first power consumption allocation coefficient to the second power consumption allocation coefficient.

可选的,所述获取待处理数据之前,所述方法还包括:Optionally, before the acquisition of the data to be processed, the method further includes:

当所述当前业务首次运行时,利用动态电压频率调整DVFS模块和智能功耗分配IPA模块确定所述第一功耗分配系数。When the current service is running for the first time, the first power consumption allocation coefficient is determined by using the dynamic voltage frequency adjustment DVFS module and the intelligent power consumption allocation IPA module.

可选的,所述利用动态电压频率调整DVFS模块和智能功耗分配IPA模块确定所述第一功耗分配系数之后,所述方法还包括:Optionally, after 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:

利用所述第一功耗分配系数对所述目标硬件进行功耗分配。Perform power consumption allocation on the target hardware by using the first power consumption allocation coefficient.

若所述目标硬件的温度数据满足预设的收敛条件,则确定所述当前业务进入稳态,并利用所述当前业务对应的稳态参数生成记录文件,所述稳态参数包括所述第一功耗分配系数。If the temperature data of the target hardware satisfies the preset convergence condition, it is determined that the current service enters a steady state, and a record file is generated by using a steady state parameter corresponding to the current service, the steady state parameter including the first power distribution factor.

可选的,所述获取待处理数据之前,所述方法还包括:Optionally, before the acquisition of the data to be processed, the method further includes:

当所述当前业务非首次运行时,通过读取预先生成的记录文件,获取所述第一功耗分配系数。When the current service is not running for the first time, the first power consumption allocation coefficient is acquired by reading a pre-generated record file.

可选的,所述目标硬件的状态数据包括所述当前业务对所述目标硬件的利用率,所述根据所述待处理数据将所述当前业务对应的功耗分配系数由当前的第一功耗分配系数调整为第二功耗分配系数之前,所述方法还包括:Optionally, the state data of the target hardware includes the utilization rate of the target hardware by the current service, and the power consumption allocation coefficient corresponding to the current service is changed from the current first work according to the data to be processed. Before the power consumption allocation coefficient is adjusted to the second power consumption allocation coefficient, the method also includes:

判断所述当前业务对所述目标硬件的利用率是否大于或等于预设利用率阈值。Judging whether the utilization rate of the target hardware by the current service is greater than or equal to a preset utilization rate threshold.

若是,则执行根据所述待处理数据将所述当前业务对应的功耗分配系数由当前的第一功耗分配系数调整为第二功耗分配系数的步骤。If yes, the step of adjusting the power consumption allocation coefficient corresponding to the current service from the current first power consumption allocation coefficient to the second power consumption allocation coefficient according to the data to be processed is performed.

可选的,所述当前业务的状态数据包括所述当前业务的负载、所述当前业务的业务类型和所述当前业务是否首次运行中的一种或多种。Optionally, the status data of the current service includes one or more of the load of the current service, the service type of the current service, and whether the current service is running for the first time.

可选的,所述目标硬件的状态数据包括所述目标硬件的利用率、所述目标硬件的频率、所述目标硬件的功耗分配额度和所述目标硬件的温度数据中的一种或多种。Optionally, the state data of the target hardware includes one or more of the utilization rate of the target hardware, the frequency of the target hardware, the power consumption allocation quota of the target hardware, and the temperature data of the target hardware kind.

本申请实施例第二方面提供了一种功耗控制装置,应用于终端,包括:The second aspect of the embodiment of the present application provides a power consumption control device applied to a terminal, including:

获取模块,用于获取待处理数据,所述待处理数据包括当前业务的状态数据、所述终端的目标硬件的状态数据、环境温度数据和所述终端的电池电量数据中的一种或多种。An acquisition module, configured to acquire data to be processed, the data to be processed includes one or more of current service status data, target hardware status data of the terminal, ambient temperature data, and battery power data of the terminal .

调整模块,用于根据所述待处理数据将所述当前业务对应的功耗分配系数由当前的第一功耗分配系数调整为第二功耗分配系数,所述功耗分配系数用于指示所述目标硬件的功耗分配额度。An adjustment module, configured to adjust the power consumption allocation coefficient corresponding to the current service from the current first power consumption allocation coefficient to a second power consumption allocation coefficient according to the data to be processed, and the power consumption allocation coefficient is used to indicate the Describe the power consumption quota for the target hardware.

分配模块,用于利用所述第二功耗分配系数对所述目标硬件进行功耗重分配。An allocating module, configured to reallocate power consumption of the target hardware by using the second power consumption allocation coefficient.

可选的,所述调整模块具体用于:Optionally, the adjustment module is specifically used for:

利用所述待处理数据和/或所述当前业务当前对应的第一功耗分配系数确定第二功耗分配系数。The second power consumption allocation coefficient is determined by using the data to be processed and/or the first power consumption allocation coefficient currently corresponding to the current service.

将所述当前业务对应的功耗分配系数由所述第一功耗分配系数调整为所述第二功耗分配系数。Adjusting the power consumption allocation coefficient corresponding to the current service from the first power consumption allocation coefficient to the second power consumption allocation coefficient.

可选的,所述装置还包括:Optionally, the device also includes:

确定模块,用于当所述当前业务首次运行时,利用动态电压频率调整DVFS模块和智能功耗分配IPA模块确定所述第一功耗分配系数。The determination module is 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 running for the first time.

可选的,所述装置还包括生成模块,其中:Optionally, the device also includes a generating 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 generation 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 using the steady state parameters corresponding to the current service, the steady state The state parameters include the first power consumption allocation coefficient.

可选的,所述获取模块,还用于当所述当前业务非首次运行时,通过读取预先生成的记录文件,获取所述第一功耗分配系数。Optionally, the acquiring module is further configured to acquire the first power consumption allocation coefficient by reading a pre-generated record file when the current service is not running for the first time.

可选的,所述目标硬件的状态数据包括所述当前业务对所述目标硬件的利用率,所述装置还包括:Optionally, the status data of the target hardware includes the utilization rate of the target hardware by the current service, and the device further includes:

判断模块,用于判断所述当前业务对所述目标硬件的利用率是否大于或等于预设利用率阈值,并在判断结果为是时触发所述调整模块根据所述待处理数据将所述当前业务对应的功耗分配系数由当前的第一功耗分配系数调整为第二功耗分配系数。A judging module, configured to judge whether the utilization rate of the target hardware by the current service is greater than or equal to a preset utilization threshold, and trigger the adjustment module to update the current service according to the data to be processed when the judgment result is yes. The power consumption allocation coefficient corresponding to the service is adjusted from the current first power consumption allocation coefficient to the second power consumption allocation coefficient.

本申请实施例第三方面提供了一种终端,包括:处理器和存储器,所述存储器存储有可执行程序代码,所述处理器用于调用所述可执行程序代码,执行上述第一方面任一项所述的功耗控制方法。The third aspect of the embodiment of the present application provides a terminal, including: a processor and a memory, the memory stores executable program code, and the processor is used to call the executable program code to execute any one of the above-mentioned first aspect. The power consumption control method described in the item.

本申请实施例第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面任一项所述的功耗控制方法。The fourth aspect of the embodiment of the present application provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when it is run on a computer, the computer executes the method described in any one of the above-mentioned first aspects. Power Consumption Control Method.

本申请实施例第五方面提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面任一项所述的功耗控制方法。The fifth aspect of the embodiments of the present application provides a computer program product including instructions, which, when run on a computer, cause the computer to execute the power consumption control method described in any one of the above first aspects.

通过实施本申请实施例可以获取待处理数据,该待处理数据包括当前业务的状态数据、终端的目标硬件的状态数据、环境温度数据和终端的电池电量数据中的一种或多种,并根据该待处理数据将当前业务对应的功耗分配系数由当前的第一功耗分配系数调整为第二功耗分配系数,进而利用第二功耗分配系数对目标硬件进行功耗重分配,通过综合业务的状态、终端硬件的状态以及环境温度等一种或多种因素对业务对应的功耗分配系数进行适应性调整,即对业务所需的硬件进行功耗调整,从而实现良好的温控效果以及系统性能。By implementing the embodiments of the present application, the data to be processed can be obtained, and the data to be processed includes one or more of the status data of the current business, the status data of the target hardware of the terminal, the ambient temperature data, and the battery power data of the terminal, and according to For the data to be processed, the power consumption allocation coefficient corresponding to the current service is adjusted from the current first power consumption allocation coefficient to the second power consumption allocation coefficient, and then the second power consumption allocation coefficient is used to redistribute the power consumption of the target hardware. One or more factors such as the state of the business, the state of the terminal hardware, and the ambient temperature make adaptive adjustments to the power consumption allocation coefficient corresponding to the business, that is, adjust the power consumption of the hardware required by the business to achieve a good temperature control effect and system performance.

附图说明Description of drawings

为了更清楚地说明本申请实施例或背景技术中的技术方案,下面将对本申请实施例或背景技术中所需要使用的附图进行说明。In order to more clearly illustrate the technical solutions in the embodiment of the present application or the background art, the following will describe the drawings that need to be used in the embodiment of the present application or the background art.

图1是本申请实施例公开的一种功耗控制方法的流程示意图;FIG. 1 is a schematic flowchart of a power consumption control method disclosed in an embodiment of the present application;

图2是本申请实施例公开的一种功耗控制装置的结构示意图;FIG. 2 is a schematic structural diagram of a power consumption control device disclosed in an embodiment of the present application;

图3是本申请实施例公开的一种终端的结构示意图。FIG. 3 is a schematic structural diagram of a terminal disclosed in an embodiment of the present application.

具体实施方式detailed description

下面结合本申请实施例中的附图对本申请实施例进行描述。Embodiments of the present application are described below with reference to the drawings in the embodiments of the present application.

其中,本申请实施例具体应用在基于闭环(Closed Loop)控制算法的功耗控制软件框架智能功耗控制(Intelligent Power Allocation,IPA)的场景中。现有的基于IPA的温控过程包括:根据当前温度与目标温度的差值,管理器估计系统的有效功耗预算,并将功耗预算通过一定的算法智能分配给系统中各个激活的硬件(如CPU,GPU等),从而在控制温度的情况下,得到系统的最佳性能。线性计算是IPA温控中计算功耗预算的主要机制,调整功耗分配系数k_po、k_pu可以显著调整热预算斜率,这里k_po和k_pu分别表示在当前实际温度高于或低于目标温度时计算功耗分配额度的系数。功耗分配计算公式如下:Wherein, the embodiment of the present application is specifically applied in the scene of Intelligent Power Allocation (IPA) of the power consumption control software framework based on the closed loop (Closed Loop) control algorithm. The existing IPA-based temperature control process includes: according to the difference between the current temperature and the target temperature, the manager estimates the effective power consumption budget of the system, and intelligently allocates the power consumption budget to each activated hardware in the system through a certain algorithm ( Such as CPU, GPU, etc.), so as to get the best performance of the system under the condition of controlling the temperature. Linear calculation is the main mechanism for calculating the power budget in IPA temperature control. Adjusting the power consumption distribution coefficients k_po and k_pu can significantly adjust the thermal budget slope, where k_po and k_pu represent the calculated power when the current actual temperature is higher or lower than the target temperature, respectively. Coefficient of consumption allocation quota. The calculation formula for power allocation is as follows:

P_max=k_p*e+sustainable_powerP_max=k_p*e+sustainable_power

公式中e表示目标温度和当前温度的差值,sustainable_power是对系统可持续功耗的预估。在实际温度高于目标温度时,将k_po代入公式中的k_p,计算可分配的最大功耗;反之在低于目标温度时,将k_pu代入公式计算功耗额度。In the formula, e represents the difference between the target temperature and the current temperature, and sustainable_power is an estimate of the sustainable power consumption of the system. When the actual temperature is higher than the target temperature, substitute k_po into k_p in the formula to calculate the maximum power consumption that can be allocated; otherwise, when the actual temperature is lower than the target temperature, substitute k_pu into the formula to calculate the power consumption.

然而,上述基于IPA的温控方案依赖于固定的功耗分配系数k_po、k_pu,无法根据业务和环境的变化而动态调整,很可能导致温控效果不佳,系统性能较差,对环境的适应性差。However, the above-mentioned IPA-based temperature control scheme relies on fixed power consumption distribution coefficients k_po and k_pu, which cannot be dynamically adjusted according to changes in business and environment, which may lead to poor temperature control effects, poor system performance, and poor environmental adaptation Poor sex.

请参阅图1,为本申请实施例提供的一种功耗控制方法的流程示意图。本实施例中所描述的功耗控制方法,应用于终端,该方法包括:Please refer to FIG. 1 , which is a schematic flowchart of a power consumption control method provided by an embodiment of the present application. The power consumption control method described in this embodiment is applied to a terminal, and the method includes:

101、终端获取待处理数据,所述待处理数据包括当前业务的状态数据、所述终端的目标硬件的状态数据、环境温度数据和所述终端的电池电量数据中的一种或多种。101. The terminal acquires data to be processed, and the data to be processed includes one or more of status data of current services, status data of target hardware of the terminal, ambient temperature data, and battery power data of the terminal.

其中,业务是指终端上运行的任务进程,例如可以是应用程序(Application,APP)。Wherein, a service refers to a task process running on a terminal, such as an application program (Application, APP).

其中,待处理数据是指与功耗控制相关的数据,待处理数据中的当前业务的状态数据具体可以包括当前业务的负载、当前业务的业务类型和当前业务是否首次运行等中的一种或多种。业务类型具体可以包括重度业务和轻度业务,重度业务是指对硬件资源(如CPU)的利用率较高(如利用率达到预设利用率阈值)的业务,否则为轻度业务。Wherein, the data to be processed refers to data related to power consumption control, and the status data of the current business in the data to be processed may specifically include one or more of the load of the current business, the business type of the current business, and whether the current business is running for the first time. Various. The service type may specifically include heavy service and light service. Heavy service refers to a service with high utilization rate of hardware resources (such as CPU) (for example, the utilization rate reaches a preset utilization rate threshold), otherwise it is light service.

其中,目标硬件可以包括终端的CPU,GPU,双倍速率同步动态随机存储器DDR。当然,目标硬件也可以包括终端的其它硬件模块。待处理数据中的目标硬件的状态数据具体可以包括目标硬件的利用率、目标硬件的频率、目标硬件的功耗分配额度和目标硬件的温度数据中的一种或多种。温度数据可以包括实时的温度值和/或一段时间内的温度变化情况。Wherein, the target hardware may include the terminal's CPU, GPU, and double-rate synchronous dynamic random access memory (DDR). Of course, the target hardware may also include other hardware modules of the terminal. The status data of the target hardware in the data to be processed may specifically include one or more of the utilization rate of the target hardware, the frequency of the target hardware, the power consumption quota of the target hardware, and the 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 a specific implementation, the terminal starts the background service to collect and obtain the above-mentioned data to be processed according to the collection requirements of the system configuration.

102、所述终端根据所述待处理数据将所述当前业务对应的功耗分配系数由当前的第一功耗分配系数调整为第二功耗分配系数,所述功耗分配系数用于指示所述目标硬件的功耗分配额度。102. The terminal adjusts the power consumption allocation coefficient corresponding to the current service from the current first power consumption allocation coefficient to a second power consumption allocation coefficient according to the data to be processed, and the power consumption allocation coefficient is used to indicate the Describe the power consumption quota for the target hardware.

其中,对于基于IPA的温控方案,功耗分配系数主要包括k_po、k_pu等IPA参数。Among them, for the temperature control scheme based on IPA, the power consumption distribution coefficient mainly includes IPA parameters such as k_po and k_pu.

具体实现中,功耗分配系数用于指示目标硬件的功耗分配额度,即需为目标硬件分配多少功耗,假设当前业务对应的功耗分配系数为第一功耗分配系数,终端获取到待处理数据后,可以利用待处理数据和/或该第一功耗分配系数确定出第二功耗分配系数,并将当前业务对应的功耗分配系数由第一功耗分配系数调整为第二功耗分配系数。In the specific implementation, the power consumption allocation coefficient is used to indicate the power consumption allocation quota of the target hardware, that is, how much power consumption needs to be allocated for the target hardware. Assuming that the power consumption allocation coefficient corresponding to the current service is the first power consumption allocation coefficient, the terminal obtains the After processing the data, the second power consumption allocation coefficient can be determined by using the data to be processed and/or the first power consumption allocation coefficient, and the power consumption allocation coefficient corresponding to the current service can be adjusted from the first power consumption allocation coefficient to the second power consumption allocation coefficient. consumption distribution coefficient.

其中,终端可以通过多种方式将当前业务对应的功耗分配系数由第一功耗分配系数调整为第二功耗分配系数,包括:通过/sys文件系统提供的对功耗分配系数的读写接口对功耗分配系数进行修改;或者,通过修改功耗分配系数的/sys文件系统节点修改功耗分配系数;或者,基于硬件抽象层(Hardware Abstraction Layer,HAL)增加读写接口实现对功耗分配系数进行修改。Among them, the terminal can adjust the power consumption allocation coefficient corresponding to the current service from the first power consumption allocation coefficient to the second power consumption allocation coefficient in various ways, including: reading and writing the power consumption allocation coefficient provided by the /sys file system The interface modifies the power consumption allocation coefficient; or, modifies the power consumption allocation coefficient by modifying the /sys file system node of the power consumption allocation coefficient; or, increases the read-write interface based on the Hardware Abstraction Layer (HAL) The distribution coefficient was modified.

一种可能的实现方式中,终端还可以通过进程间通信(Inter-ProcessCommunication,IPC)或者层间消息等实例实现对功耗分配系数的修改。In a possible implementation manner, the terminal may also modify the power consumption allocation coefficient through an instance such as inter-process communication (Inter-Process Communication, IPC) or an inter-layer message.

103、所述终端利用所述第二功耗分配系数对所述目标硬件进行功耗重分配。103. The terminal redistributes power consumption of the target hardware by using the second power consumption distribution coefficient.

具体实现中,终端根据第二功耗分配系数更新对目标硬件的功耗分配额度,并按照更新后的功耗分配额度重新分配目标硬件的功耗,可以有效避免出现超高温后限频,以及阶梯式降频等严重影响系统性能的现象。In a specific implementation, the terminal updates the power consumption allocation quota for the target hardware according to the second power consumption allocation coefficient, and redistributes the power consumption of the target hardware according to the updated power consumption allocation quota, which can effectively avoid frequency limit after ultra-high temperature, and Phenomena that seriously affect system performance, such as stepped frequency reduction.

一种可能的实现方式中,在步骤101之前,终端运行上述当前业务时,如果该当前业务是首次运行,则终端可以利用动态电压频率调整(Dynamic voltage and frequencyscaling,DVFS)模块和IPA模块确定出上述第一功耗分配系数。In a possible implementation manner, before step 101, when the terminal runs the above-mentioned current service, if the current service is running for the first time, the terminal may use a dynamic voltage and frequency scaling (Dynamic voltage and frequency scaling, DVFS) module and an IPA module to determine The above-mentioned first power consumption allocation coefficient.

进一步的,终端可以利用第一功耗分配系数对目标硬件进行功耗分配,利用第一功耗分配系数对目标硬件进行功耗分配之后,如果目标硬件的温度数据满足预设的收敛条件,则终端可以确定该当前业务进入稳态,获取该当前业务对应的稳态数据,并利用该稳态参数生成记录文件,该稳态参数包括第一功耗分配系数,以将第一功耗分配系数保存在记录文件中,从而在后续启动该当前业务时可以直接从记录文件中读取得到相匹配的功耗分配系数(即第一功耗分配系数),而无需再利用DVFS模块和IPA模块确定出相匹配的功耗分配系数,可以快速、准确地完成功耗控制。Further, the terminal may use the first power consumption allocation coefficient to allocate power consumption to the target hardware. After the first power consumption allocation coefficient is used to allocate power consumption to the target hardware, if the temperature data of the target hardware satisfies a preset convergence condition, then The terminal may determine that the current service has entered a steady state, obtain steady-state data corresponding to the current service, and use the steady-state parameters to generate a record file, where the steady-state parameters include a first power consumption allocation coefficient, so that the first power consumption allocation coefficient Save it in the record file, so that when the current service is started later, the matching power consumption allocation coefficient (ie, the first power consumption allocation coefficient) can be directly read from the record file, without using the DVFS module and the IPA module to determine The matching power consumption allocation coefficient can be obtained quickly and accurately to complete the power consumption control.

可选的,该稳态参数还可以包括:该当前业务进入稳态时目标硬件的稳态频点,系统温度等。Optionally, the steady-state parameter may also include: a steady-state frequency point of the target hardware when the current service enters a steady state, system temperature, and the like.

一种可能的实现方式中,在步骤101之前,终端运行上述当前业务时,如果该当前业务不是首次运行,则终端可以通过读取预先生成的记录文件,获取相匹配的第一功耗分配系数,从而利用该当前业务上一次处于稳态时的功耗分配系数,可以防止急速升频导致的过热或阶梯式降频导致的性能不断下降,从而平滑运行该当前业务的过程中的功耗分配、性能表现等。In a possible implementation, before step 101, when the terminal is running the above-mentioned current service, if the current service is not running for the first time, the terminal can obtain the matching first power consumption allocation coefficient by reading the pre-generated record file , so that by using the power consumption allocation coefficient when the current business was in a steady state last time, it can prevent overheating caused by rapid frequency increase or continuous performance degradation caused by stepped frequency reduction, so as to smooth the power consumption distribution in the process of running the current business , performance, etc.

一种可能的实现方式中,终端判断目标硬件的温度数据是否满足预设的收敛条件的具体方式可以为:以目标硬件是CPU为例,终端读取CPU的利用率和频率,如果该当前业务当前对CPU的利用率达到20%(当然也可以是其它较大的数值),则判断在采集上述待处理数据期间该当前业务对CPU的利用率是否也较高(例如达到15%),如果是,则终端比较采集的目标硬件的最高温与最低温的差值是否较小(例如小于或等于5℃),且最低温的温度达到预设数值(例如30℃),如果最高温与最低温的差值较小,并且最低温的温度达到预设数值,则终端可以确定目标硬件的温度数据满足预设的收敛条件,也即该当前业务进入了稳态。In a possible implementation manner, the specific method for the terminal to judge whether the temperature data of the target hardware meets the preset convergence condition may be as follows: taking the target hardware as a CPU as an example, the terminal reads the utilization rate and frequency of the CPU, and if the current service The current utilization rate of the CPU reaches 20% (certainly also can be other larger values), then it is judged whether the current business also has a higher utilization rate of the CPU (such as reaching 15%) during the period of collecting the above-mentioned data to be processed, if Yes, the terminal compares whether the difference between the highest temperature and the lowest temperature of the target hardware collected is small (for example, less than or equal to 5°C), and the temperature of the lowest temperature reaches a preset value (for example, 30°C), if the highest temperature and the lowest If the temperature difference is small, and the lowest temperature reaches a preset value, the terminal can determine that the temperature data of the target hardware meets the preset convergence condition, that is, the current service has entered a steady state.

一种可能的实现方式中,在步骤102之前,终端可以先判断该当前业务是否为重度业务,例如,终端可以判断该当前业务对目标硬件的利用率是否大于或等于预设利用率阈值(例如25%),如果是,则终端确定当前业务为重度业务,才需要执行步骤102~103对应的调整功耗分配系数,而在当前业务不是重度业务的情况下,可以不调整功耗分配系数。In a possible implementation, before step 102, the terminal may first determine whether the current service is a heavy service, for example, the terminal may determine whether the utilization rate of the target hardware by the current service is greater than or equal to a preset utilization threshold (for example, 25%), if yes, the terminal determines that the current service is a heavy service, and then it needs to perform steps 102-103 to adjust the power consumption allocation coefficient corresponding to it, and if the current service is not a heavy service, the power consumption allocation coefficient may not be adjusted.

一种可能的实现方式中,以功耗分配系数k_pu为例介绍一种功耗分配系数的动态调整思路,现有的IPA温控方案中,k_pu是一个静态值,计算如下:In a possible implementation, the power consumption distribution coefficient k_pu is used as an example to introduce a dynamic adjustment method of the power consumption distribution coefficient. In the existing IPA temperature control scheme, k_pu is a static value, and the calculation is as follows:

k_pu=2*sustainable_power/(T_set-T_on),T_set是目标温度,T_on是调控门限温度,sustainable_power是可持续功耗的预估。k_pu=2*sustainable_power/(T_set-T_on), T_set is the target temperature, T_on is the regulation threshold temperature, and sustainable_power is the estimation of sustainable power consumption.

其中,以k_pu的静态值为基数,加权调整过程如下:Among them, taking the static value of k_pu as the base, the weighting adjustment process is as follows:

对于重度业务,如大型游戏类业务,GPU模块请求的功耗额度较大导致温升明显。在识别业务类型(即重度业务)后,赋予该类业务一个衰减系数,以对k_pu的静态值进行衰减,限制其功耗以防迅速过热。不同类型业务可以对应不同的衰减系数。For heavy-duty services, such as large-scale game services, the large power consumption quota requested by the GPU module will cause a significant temperature rise. After identifying the type of business (ie, heavy business), assign an attenuation coefficient to this type of business to attenuate the static value of k_pu and limit its power consumption to prevent rapid overheating. Different types of services may correspond to different attenuation coefficients.

进一步的,比较前后两次功耗分配后的温升情况,若温升幅度较小而功耗分配前值较高,表明环境温度较低,对k_pu进行增益。这个增益在每次IPA温控进行功耗分配后,视温升上升幅度调整,若温升较慢则增益逐步增加,使功耗分配斜率逐步加快,反之增益降低。通过这种保守的增益方式使性能稳定上升而不致过热后下降。Further, compare the temperature rise after two power consumption allocations before and after. If the temperature rise is small and the value before power consumption allocation is high, it indicates that the ambient temperature is low, and k_pu is increased. This gain is adjusted according to the temperature rise after each IPA temperature control for power distribution. If the temperature rise is slow, the gain will gradually increase, so that the power consumption distribution slope will gradually increase, otherwise the gain will decrease. Through this conservative gain method, the performance can rise steadily without falling after overheating.

总结来说,在业务运行初期的资源加载阶段对k_pu进行增益,以加速其加载过程;在业务负载缓慢爬升阶段对k_pu进行微调以控制温升,同时不断记录业务进入稳态时的k_pu的值,并在下次运行时设定为默认初始值,从而可以使用户获得较平滑的业务体验。To sum up, increase k_pu during the resource loading stage in the early stage of business operation to speed up the loading process; fine-tune k_pu during the slow climbing stage of business load to control temperature rise, and continuously record the value of k_pu when the business enters a steady state , and set it as the default initial value at the next run, so that the user can obtain a smoother service experience.

本申请实施例中,终端可以获取待处理数据,该待处理数据包括当前业务的状态数据、终端的目标硬件的状态数据、环境温度数据和终端的电池电量数据中的一种或多种,并根据该待处理数据将当前业务对应的功耗分配系数由当前的第一功耗分配系数调整为第二功耗分配系数,进而利用第二功耗分配系数对目标硬件进行功耗重分配,通过综合业务的状态、终端硬件的状态以及环境温度等一种或多种因素对业务对应的功耗分配系数进行适应性调整,即对业务所需的硬件进行功耗调整,在结合业务的状态的情况下,可以结合业务的实际需求对硬件进行功耗重分配,从而实现良好的温控效果以及系统性能;在结合环境温度的情况下还可以提高温控效果对环境的适应性。In the embodiment of the present application, the terminal may acquire the data to be processed, the data to be processed includes one or more of current business status data, target hardware status data of the terminal, ambient temperature data, and battery power data of the terminal, and According to the data to be processed, the power consumption allocation coefficient corresponding to the current service is adjusted from the current first power consumption allocation coefficient to the second power consumption allocation coefficient, and then the second power consumption allocation coefficient is used to redistribute the power consumption of the target hardware. One or more factors such as the state of the comprehensive business, the state of the terminal hardware, and the ambient temperature make adaptive adjustments to the power consumption allocation coefficient corresponding to the business, that is, adjust the power consumption of the hardware required by the business, and combine it with the state of the business In this case, the power consumption of the hardware can be redistributed according to the actual needs of the business, so as to achieve good temperature control effect and system performance; in the case of combining the ambient temperature, the adaptability of the temperature control effect to the environment can also be improved.

请参阅图2,为本申请实施例提供的一种功耗控制装置的结构示意图。本实施例中所描述的功耗控制装置,应用于终端,包括:Please refer to FIG. 2 , which is a schematic structural diagram of a power consumption control device provided by an embodiment of the present application. The power consumption control device described in this embodiment is applied to a terminal, including:

获取模块201,用于获取待处理数据,所述待处理数据包括当前业务的状态数据、所述终端的目标硬件的状态数据、环境温度数据和所述终端的电池电量数据中的一种或多种;An acquisition module 201, configured to acquire data to be processed, the data to be processed includes one or more of status data of current services, status data of target hardware of the terminal, ambient temperature data, and battery power data of the terminal kind;

调整模块202,用于根据所述待处理数据将所述当前业务对应的功耗分配系数由当前的第一功耗分配系数调整为第二功耗分配系数,所述功耗分配系数用于指示所述目标硬件的功耗分配额度;The adjustment module 202 is configured to adjust the power consumption allocation coefficient corresponding to the current service from the current first power consumption allocation coefficient to a second power consumption allocation coefficient according to the data to be processed, and the power consumption allocation coefficient is used to indicate The power consumption quota of the target hardware;

分配模块203,用于利用所述第二功耗分配系数对所述目标硬件进行功耗重分配。The allocating module 203 is configured to use the second power consumption allocation coefficient to reallocate the power consumption of the target hardware.

一种可能的实现方式中,所述调整模块202具体用于:In a possible implementation manner, the adjustment module 202 is specifically configured to:

利用所述待处理数据和/或所述当前业务当前对应的第一功耗分配系数确定第二功耗分配系数;Determine a second power consumption allocation coefficient by using the data to be processed and/or the first power consumption allocation coefficient currently corresponding to the current service;

将所述当前业务对应的功耗分配系数由所述第一功耗分配系数调整为所述第二功耗分配系数。Adjusting the power consumption allocation coefficient corresponding to the current service from the first power consumption allocation coefficient to the second power consumption allocation coefficient.

一种可能的实现方式中,所述装置还包括:In a possible implementation manner, the device further includes:

确定模块204,用于当所述当前业务首次运行时,利用动态电压频率调整DVFS模块和智能功耗分配IPA模块确定所述第一功耗分配系数。The determining module 204 is 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 running for the first time.

一种可能的实现方式中,所述装置还包括生成模块205,其中:In a possible implementation manner, the device further includes a generation module 205, wherein:

所述分配模块203,还用于利用所述第一功耗分配系数对所述目标硬件进行功耗分配;The allocation module 203 is further configured to allocate power consumption to the target hardware by using the first power consumption allocation coefficient;

所述生成模块205,用于若所述目标硬件的温度数据满足预设的收敛条件,则确定所述当前业务进入稳态,并利用所述当前业务对应的稳态参数生成记录文件,所述稳态参数包括所述第一功耗分配系数。The generation module 205 is configured to determine that the current business has entered a steady state if the temperature data of the target hardware meets a preset convergence condition, and generate a record file using the steady state parameters corresponding to the current business, the The steady-state parameters include the first power consumption allocation coefficient.

一种可能的实现方式中,所述获取模块201,还用于当所述当前业务非首次运行时,通过读取预先生成的记录文件,获取所述第一功耗分配系数。In a possible implementation manner, the obtaining module 201 is further configured to obtain the first power consumption allocation coefficient by reading a pre-generated record file when the current service is not running for the first time.

一种可能的实现方式中,所述目标硬件的状态数据包括所述当前业务对所述目标硬件的利用率,所述装置还包括:In a possible implementation manner, the state data of the target hardware includes the utilization rate of the target hardware by the current service, and the device further includes:

判断模块206,用于判断所述当前业务对所述目标硬件的利用率是否大于或等于预设利用率阈值,并在判断结果为是时触发所述调整模块202根据所述待处理数据将所述当前业务对应的功耗分配系数由当前的第一功耗分配系数调整为第二功耗分配系数。A judging module 206, configured to judge whether the utilization rate of the target hardware by the current service is greater than or equal to a preset utilization threshold, and trigger the adjustment module 202 to adjust the target hardware according to the data to be processed when the judgment result is yes. The power consumption allocation coefficient corresponding to the current service is adjusted from the current first power consumption allocation coefficient to the second power consumption allocation coefficient.

可以理解的是,本实施例的功耗控制装置的各功能模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。It can be understood that the functions of each functional module of the power consumption control device in this embodiment can be specifically implemented according to the method in the above method embodiment, and the specific implementation process can refer to the relevant description of the above method embodiment, and will not be repeated here. .

本申请实施例中,获取模块201可以获取待处理数据,该待处理数据包括当前业务的状态数据、终端的目标硬件的状态数据、环境温度数据和终端的电池电量数据中的一种或多种,调整模块202根据该待处理数据将当前业务对应的功耗分配系数由当前的第一功耗分配系数调整为第二功耗分配系数,进而分配模块203利用第二功耗分配系数对目标硬件进行功耗重分配,通过综合业务的状态、终端硬件的状态以及环境温度等一种或多种因素对业务对应的功耗分配系数进行适应性调整,在结合业务的状态的情况下,可以结合业务的实际需求对硬件进行功耗重分配,从而实现良好的温控效果以及系统性能;在结合环境温度的情况下还可以提高温控效果对环境的适应性。In the embodiment of the present application, the acquiring module 201 can acquire the data to be processed, the data to be processed includes one or more of the status data of the current service, the status data of the target hardware of the terminal, the ambient temperature data and the battery power data of the terminal , the adjustment module 202 adjusts the power consumption allocation coefficient corresponding to the current service from the current first power consumption allocation coefficient to the second power consumption allocation coefficient according to the data to be processed, and then the allocation module 203 uses the second power consumption allocation coefficient to adjust the target hardware Perform power consumption redistribution, and adjust the power consumption distribution coefficient corresponding to the service through one or more factors such as the state of the integrated service, the state of the terminal hardware, and the ambient temperature. In the case of combining the state of the service, it can be combined The actual needs of the business redistribute the power consumption of the hardware, so as to achieve good temperature control effect and system performance; in the case of combining the ambient temperature, it can also improve the adaptability of the temperature control effect to the environment.

请参阅图3,为本申请实施例提供的一种终端的结构示意图。本实施例中所描述的终端,包括:处理器301和存储器302。Please refer to FIG. 3 , which is a schematic structural diagram of a terminal provided in an embodiment of the present application. The terminal described in this embodiment includes: a processor 301 and a memory 302 .

其中,所述存储器302用于存储指令,所述处理器301用于执行所述存储器302存储的指令,以完成前文所述的获取模块201、调整模块202、分配模块203、确定模块204、生成模块205和判断模块206实现的相应方法步骤。Wherein, the memory 302 is used to store instructions, and the processor 301 is used to execute the instructions stored in the memory 302, so as to complete the acquiring module 201, adjusting module 202, assigning module 203, determining module 204, generating The corresponding method steps implemented by the module 205 and the judging module 206.

可选的,所述终端还可以包括收发器303,用于受所述处理器301的控制完成发送信号、接收信号。Optionally, the terminal may further include a transceiver 303, configured to complete sending and receiving signals under the control of the processor 301.

可选的,所述收发器303的功能可以考虑通过收发电路或者收发的专用芯片实现。所述处理器301可以考虑通过专用处理芯片、处理电路、处理器或者通用芯片实现。Optionally, the function of the transceiver 303 may be considered to be realized by a transceiver circuit or a dedicated chip for transceiver. The processor 301 may be considered to be implemented by a dedicated processing chip, a processing circuit, a processor, or a general-purpose chip.

具体实现中,处理器301用于读取所述存储器302中存储的程序代码,执行以下操作:In a specific implementation, the processor 301 is configured to read the program code stored in the memory 302, and perform the following operations:

处理器301,用于获取待处理数据,所述待处理数据包括当前业务的状态数据、所述终端的目标硬件的状态数据、环境温度数据和所述终端的电池电量数据中的一种或多种;Processor 301, configured to acquire data to be processed, where the data to be processed includes one or more of status data of current services, status data of target hardware of the terminal, ambient temperature data, and battery power data of the terminal kind;

所述处理器301,还用于根据所述待处理数据将所述当前业务对应的功耗分配系数由当前的第一功耗分配系数调整为第二功耗分配系数,所述功耗分配系数用于指示所述目标硬件的功耗分配额度;The processor 301 is further configured to adjust the power consumption allocation coefficient corresponding to the current service from the current first power consumption allocation coefficient to a second power consumption allocation coefficient according to the data to be processed, and the power consumption allocation coefficient used to indicate the power consumption allocation quota of the target hardware;

所述处理器301,还用于利用所述第二功耗分配系数对所述目标硬件进行功耗重分配。The processor 301 is further configured to use the second power consumption allocation coefficient to reallocate the power consumption of the target hardware.

一种可能的实现方式中,所述处理器301具体用于:In a possible implementation manner, the processor 301 is specifically configured to:

利用所述待处理数据和/或所述当前业务当前对应的第一功耗分配系数确定第二功耗分配系数;Determine a second power consumption allocation coefficient by using the data to be processed and/or the first power consumption allocation coefficient currently corresponding to the current service;

将所述当前业务对应的功耗分配系数由所述第一功耗分配系数调整为所述第二功耗分配系数。Adjusting the power consumption allocation coefficient corresponding to the current service from the first power consumption allocation coefficient to the second power consumption allocation coefficient.

一种可能的实现方式中,所述处理器301,还用于当所述当前业务首次运行时,利用动态电压频率调整DVFS模块和智能功耗分配IPA模块确定所述第一功耗分配系数。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 adjustment DVFS module and an intelligent power consumption allocation IPA module when the current service is running for the first time.

一种可能的实现方式中,所述处理器301,还用于利用所述第一功耗分配系数对所述目标硬件进行功耗分配;In a possible implementation manner, the processor 301 is further configured to allocate power consumption to the target hardware by using the first power consumption allocation coefficient;

所述处理器301,还用于若所述目标硬件的温度数据满足预设的收敛条件,则确定所述当前业务进入稳态,并利用所述当前业务对应的稳态参数生成记录文件,所述稳态参数包括所述第一功耗分配系数。The processor 301 is further configured to determine that the current service enters a steady state if the temperature data of the target hardware satisfies a preset convergence condition, and generate a record file using the steady state parameters corresponding to the current service. The steady-state parameters include the first power consumption allocation coefficient.

一种可能的实现方式中,所述处理器301,还用于当所述当前业务非首次运行时,通过读取预先生成的记录文件,获取所述第一功耗分配系数。In a possible implementation manner, the processor 301 is further configured to acquire the first power consumption allocation coefficient by reading a pre-generated record file when the current service is not running for the first time.

一种可能的实现方式中,所述目标硬件的状态数据包括所述当前业务对所述目标硬件的利用率,所述处理器301,还用于判断所述当前业务对所述目标硬件的利用率是否大于或等于预设利用率阈值,并在判断结果为是时根据所述待处理数据将所述当前业务对应的功耗分配系数由当前的第一功耗分配系数调整为第二功耗分配系数。In a possible implementation manner, the state data of the target hardware includes the utilization rate of the target hardware by the current service, and the processor 301 is further configured to determine the utilization of the target hardware by the current service rate is greater than or equal to the preset utilization rate threshold, and if the judgment result is yes, adjust the power consumption allocation coefficient corresponding to the current service from the current first power consumption allocation coefficient to the second power consumption according to the data to be processed Partition coefficient.

该终端所涉及的与本申请实施例提供的技术方案相关的概念,解释和详细说明及其他步骤请参见前述方法或其他实施例中关于这些内容的描述,此处不做赘述。For concepts, explanations, detailed descriptions and other steps related to the technical solutions provided by the embodiments of the present application, please refer to the foregoing methods or descriptions of these contents in other embodiments, and details are not repeated here.

本申请实施例中,处理器301可以获取待处理数据,该待处理数据包括当前业务的状态数据、终端的目标硬件的状态数据、环境温度数据和终端的电池电量数据中的一种或多种,并根据该待处理数据将当前业务对应的功耗分配系数由当前的第一功耗分配系数调整为第二功耗分配系数,进而利用第二功耗分配系数对目标硬件进行功耗重分配,通过综合业务的状态、终端硬件的状态以及环境温度等一种或多种因素对业务对应的功耗分配系数进行适应性调整,在结合业务的状态的情况下,可以结合业务的实际需求对硬件进行功耗重分配,从而实现良好的温控效果以及系统性能;在结合环境温度的情况下还可以提高温控效果对环境的适应性。In the embodiment of the present application, the processor 301 may obtain data to be processed, and the data to be processed includes one or more of current service status data, target hardware status data of the terminal, ambient temperature data, and battery power data of the terminal , and adjust the power consumption allocation coefficient corresponding to the current business from the current first power consumption allocation coefficient to the second power consumption allocation coefficient according to the data to be processed, and then use the second power consumption allocation coefficient to redistribute the power consumption of the target hardware Adaptively adjust the power consumption allocation coefficient corresponding to the service through one or more factors such as the state of the integrated service, the state of the terminal hardware, and the ambient temperature. In the case of combining the state of the service, you can combine the actual needs of the service. The hardware redistributes power consumption to achieve good temperature control effect and system performance; in combination with the ambient temperature, it can also improve the adaptability of the temperature control effect to the environment.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如软盘、硬盘、磁带)、光介质(例如DVD)、或者半导体介质(例如固态硬盘(SolidState Disk,SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it 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 the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SolidState Disk, SSD)), and the like.

综上,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。In summary, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be applied to the foregoing The technical solutions described in the embodiments are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the application.

Claims (15)

  1. 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. 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. 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. 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. 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. 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. 7. according to the method for claim 1, it is characterised in that
    The 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. 8. according to the method for claim 1, it is characterised in that
    The 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.
  9. 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. 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. 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. 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. 13. the device according to any one of claim 9~12, it is characterised in that
    The 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. 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.
  15. 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.
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 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 (10)

* Cited by examiner, † Cited by third party
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 深圳大普微电子科技有限公司 A temperature control method, device, device and storage medium for a memory
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 苏州浪潮智能科技有限公司 Method, device, terminal and storage medium for dynamic balancing of server hard disk power consumption
CN114222980A (en) * 2019-10-21 2022-03-22 深圳市欢太科技有限公司 Power consumption log processing method, device, electronic equipment 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 and voltage regulation method and related device
CN116635813A (en) * 2020-11-10 2023-08-22 超威半导体公司 Application Coverage of the Power Estimation Mechanism

Citations (4)

* 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
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 广东欧珀移动通信有限公司 A method and device for adjusting the operating state of a display screen

Patent Citations (4)

* 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
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 广东欧珀移动通信有限公司 A method and device for adjusting the operating state of a display screen

Cited By (17)

* Cited by examiner, † Cited by third party
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
CN114222980A (en) * 2019-10-21 2022-03-22 深圳市欢太科技有限公司 Power consumption log processing method, device, electronic equipment and storage medium
CN111107619B (en) * 2019-12-27 2023-05-16 深圳市联洲国际技术有限公司 Power control method of communication system, communication system and 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 深圳大普微电子科技有限公司 A temperature control method, device, device and storage medium for a memory
CN111949100B (en) * 2020-09-01 2023-02-28 深圳大普微电子科技有限公司 Method, device, equipment and storage medium for temperature control of memory
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
CN116635813B (en) * 2020-11-10 2024-12-31 超威半导体公司 Application coverage of power estimation mechanisms
CN116635813A (en) * 2020-11-10 2023-08-22 超威半导体公司 Application Coverage of the 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
CN113688001A (en) * 2021-07-23 2021-11-23 苏州浪潮智能科技有限公司 Method, device, terminal and storage medium for dynamic balancing of server hard disk power consumption
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 and voltage regulation 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
CN107357405B (en) Power consumption control method and related equipment
JP7127010B2 (en) Resource allocation methods, apparatus, electronic equipment, computer readable media and computer programs
Amini et al. A Dynamic SLA Aware Solution For IaaS Cloud Placement Problem Using Simulated Annealing
US10862992B2 (en) Resource cache management method and system and apparatus
US20170201574A1 (en) Method, system, and device for allocating resources in a server
CN107770088B (en) Flow control method and device
CN103685256B (en) A virtual machine migration management method, device and system
CN108989238A (en) Method for distributing service bandwidth and related equipment
TW201800894A (en) System and method for intelligent thermal management using dynamic performance floors in a portable computing device
US9176869B2 (en) Memory use for garbage collected computer environments
JP2020506480A (en) System and method for thermal management of a wearable computing device based on proximity to a user
JP2016528519A (en) System and method for intelligent multimedia-based thermal power management in portable computing devices
CN113826082B (en) Method and equipment for controlling heat dissipation device
US9639399B2 (en) Method, apparatus and terminal for releasing memory
US20170212581A1 (en) Systems and methods for providing power efficiency via memory latency control
TW201447763A (en) System and method for controlling virtual machine
CN102904824B (en) Service providing entity selection method and device
US9880953B2 (en) Systems and methods for network I/O based interrupt steering
CN110515721A (en) Application management method, device, terminal and computer storage medium
TW201830194A (en) System and method for context-aware thermal management and workload scheduling in a portable computing device
CN111245732A (en) Flow control method, device and equipment
CN107977254A (en) The response method and computer-readable recording medium asked in cloud data system
JP2017505563A (en) System and method for a balanced user experience in a multimedia conferencing community
CN118760529B (en) Method and system for determining computing power scheduling strategy based on heterogeneous planning
CN115080657B (en) A method, system and device for allocating operation tokens for distributed storage

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