WO2022041251A1 - Power budget allocation method and related device - Google Patents

Power budget allocation method and related device Download PDF

Info

Publication number
WO2022041251A1
WO2022041251A1 PCT/CN2020/112688 CN2020112688W WO2022041251A1 WO 2022041251 A1 WO2022041251 A1 WO 2022041251A1 CN 2020112688 W CN2020112688 W CN 2020112688W WO 2022041251 A1 WO2022041251 A1 WO 2022041251A1
Authority
WO
WIPO (PCT)
Prior art keywords
power
cycle
domain
processor
power consumption
Prior art date
Application number
PCT/CN2020/112688
Other languages
French (fr)
Chinese (zh)
Inventor
胡荻
郭东之
李继明
刘臻
王哲
库特拉德米特罗
马里亚什尤里
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2020/112688 priority Critical patent/WO2022041251A1/en
Priority to CN202080103358.0A priority patent/CN116997878A/en
Publication of WO2022041251A1 publication Critical patent/WO2022041251A1/en

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
    • 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
    • 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/324Power saving characterised by the action undertaken by lowering clock frequency

Definitions

  • the embodiments of the present application relate to the field of power management, and in particular, to a power budget allocation method and related equipment.
  • Multi-core processors refer to the integration of multiple computing engines (processor cores) in one processor, which can support multi-threaded tasks;
  • processor cores computing engines
  • core processors support dividing the data to be processed into multiple parts and assign them to different core registers, so that each operator can operate together to improve the running speed of the processor.
  • multi-core processors are powered by multiple integrated voltage regulators (IVRs), that is, multi-core processors generally include multiple power domains.
  • IVRs integrated voltage regulators
  • multi-core processors generally include multiple power domains.
  • Embodiments of the present application provide a power budget allocation method and related devices, which are used to allocate the power budget according to the states of the processor cores corresponding to each power supply domain in the processor.
  • a first aspect of the embodiments of the present application provides a method for allocating a power budget, including:
  • the processor When the processor is a multi-core processor, the processor contains multiple power domains, and each power domain supplies power to at least one processor core; first, it is necessary to determine the power consumption of the processor cores in each power domain in the first cycle. power consumption, and then allocate the power budget to each power domain according to the obtained power consumption; it is understandable that the corresponding power consumption of each power domain in the first cycle can directly or indirectly reflect the processing in the power domain According to the state of the processor core, the power budget is allocated according to the power consumption, which can meet the needs of different processor cores, so that each power domain can perform frequency adjustment based on the allocated power budget.
  • the frequency controller adjusts the power budget allocated to the processor core according to the power consumption of the processor core, and then controls the frequency of the processor core according to the power budget, so that the power budget can be allocated more reasonably to meet different requirements. processor core requirements. Furthermore, in this way, the frequency can also be adjusted according to the power budget, so that the adjusted processor core can be more in line with its operating state and improve the working efficiency of the processor core.
  • the frequency controller can allocate the power budget according to the real-time power consumption of at least one processor core included in each power domain in the first cycle, or according to the real-time power consumption of at least one processor core included in each power domain during the first cycle.
  • the average power consumption is allocated; in this way, the frequency controller can sense the operating state of the processor core in various ways, and provide various schemes for allocating the power budget.
  • the frequency controller can also calculate the power consumption of at least one processor core included in each power domain in the first cycle according to the power consumption.
  • the load is then used as a reference for allocating the power budget according to the load, so that a new scheme is provided for the frequency controller to allocate the budget.
  • the frequency controller can also predict the prediction of at least one processor core included in each power domain in the second cycle according to the load. load, and then use the predicted load as a reference for allocating the power budget; it is understandable that the predicted load of at least one processor core included in each power domain in the second cycle can directly reflect the power of the processor core in the second cycle. In this way, the frequency controller can be more reasonably allocated power budget to improve the working performance of the processor core.
  • the frequency controller obtains the power consumption of the at least one processor core included in each power domain in the first cycle, and the load of the at least one processor core included in each power domain during the first cycle, and the predicted load of at least one processor core included in each power domain in the second cycle, any one or more of them can be used as a reference for allocating a power budget, so that a more comprehensive perception and processing can be achieved.
  • the operating state of the core is more reasonable to allocate the power budget to each power domain.
  • a second aspect of the embodiments of the present application provides a method for allocating a power budget, including:
  • the processor When the processor is a multi-core processor, the processor contains multiple power domains, and each power domain supplies power to multiple processor cores; first, it is necessary to determine the number of processor cores included in each power domain in the The number of active processor cores in a cycle, and then allocate the power budget to the Describe each power domain; it is understandable that the more the number of active cores in each power domain, the heavier the task of the processor core to process data, so it is necessary to allocate more work margins to improve its performance. Frequency: The power budget is allocated according to the number of active processor cores, which can meet the needs of different power domains, so that each power domain can perform frequency adjustment in the next cycle based on the allocated power budget.
  • the frequency controller adjusts the power budget allocated to each power domain according to the number of processor cores that are active in the first cycle of the multiple processor cores contained in each power domain, and then according to the power Budget implementation controls the frequency of the processor cores so that the power budget can be allocated more reasonably to meet the needs of different processor cores. Furthermore, in this manner, the frequency can also be adjusted according to the power budget, so that the adjusted processor core can be more in line with its operating state and improve the working efficiency of the processor core.
  • the frequency controller can also determine the power consumption of the plurality of processor cores contained in each power domain in the first cycle, and then according to the plurality of processor cores contained in each power domain in the first cycle the number of active processor cores and the power consumption of the plurality of processor cores included in each of the plurality of power domains in the first cycle, and allocate a power budget to each of the power domains; In this way, the frequency controller can be based on the number of processor cores that are in the active state in the first cycle and the number of each power supply in the multiple power supply domains
  • the power consumption of the multiple processor cores included in the domain in the first cycle is used as a reference for allocating the power budget, so that the running state of the processor cores can be more comprehensively sensed, and the power budget can be allocated to each power domain more reasonably.
  • a third aspect of the embodiments of the present application provides a frequency controller, including:
  • a determining unit configured to determine the power consumption of at least one processor core included in each of the multiple power domains in the first cycle
  • an allocation unit configured to allocate a power budget to each power domain according to the power consumption of at least one processor core included in each power domain in the first cycle
  • An adjustment unit configured to adjust the frequency of each power supply domain in a second period according to the allocated power budget, where the second period is the next period of the first period.
  • the power consumption of the at least one processor core included in each power domain in the first cycle is the real-time power consumption or average power consumption of the at least one processor core included in each power domain in the first cycle.
  • the frequency controller further includes a calculation unit
  • the computing unit is configured to calculate the power consumption of at least one processor core included in each power domain in the first cycle according to the power consumption of at least one processor core included in each power domain. cycle load.
  • the computing unit is further configured to predict, according to the load of at least one processor core included in each power domain in the first cycle, that the at least one processor core included in each power domain will perform in the first cycle. Predicted load for two cycles.
  • the allocating unit is specifically configured to, according to the power consumption of at least one processor core included in each power domain in the first cycle, the at least one processor core included in each power domain in the first cycle.
  • a power budget is allocated to each power domain according to the load of the cycle, and any one of the predicted load of at least one processor core included in each power domain during the second cycle.
  • a fourth aspect of the embodiments of the present application provides a frequency controller, including:
  • a determining unit configured to determine the number of processor cores that are in an active state in the first cycle of the multiple processor cores included in each power supply domain in the multiple power supply domains;
  • an allocation unit configured to allocate a power budget to each of the power domains according to the number of processor cores in the active state of the plurality of processor cores included in each of the power domains;
  • An adjustment unit configured to adjust the frequency of each power supply domain in a second period according to the allocated power budget, where the second period is the next period of the first period.
  • the determining unit is further configured to determine the power consumption in the first cycle of the multiple processor cores included in each of the multiple power supply domains;
  • the allocating unit is configured to, according to the number of processor cores in the active state of the plurality of processor cores included in each power supply domain and the number of processor cores in each power supply domain in the plurality of power supply domains The power consumption of the plurality of processor cores included in the first cycle, with a power budget allocated to each of the power domains.
  • a fifth aspect of the embodiments of the present application provides a processor, including:
  • the processor includes a processor core, a power consumption detector, a power consumption controller and a frequency regulator; the power consumption detector and the frequency regulator are respectively connected to the power consumption controller;
  • the power consumption detector configured to detect and determine the power consumption of at least one processor core included in each of the multiple power domains in the first cycle
  • the power consumption controller configured to allocate a power budget to each power supply domain according to the power consumption of at least one processor core included in each power supply domain in the first cycle;
  • the frequency regulator is configured to perform frequency regulation on each power domain in a second cycle according to the allocated power budget, where the second cycle is a next cycle of the first cycle.
  • the power consumption of the at least one processor core included in each power domain in the first cycle is the real-time power consumption or average power consumption of the at least one processor core included in each power domain in the first cycle.
  • the power consumption controller is further configured to calculate the power consumption of the at least one processor core included in each power domain in the first cycle according to the power consumption of the at least one processor core included in each power domain. load for the first cycle.
  • the power consumption controller is further configured to predict, according to the load of the at least one processor core included in each power domain in the first cycle, that the at least one processor core included in each power domain will be in the first cycle. Predicted load for the second period.
  • the power consumption controller is specifically configured to, according to the power consumption of the at least one processor core included in each power domain in the first cycle, the at least one processor core included in each power domain in the first cycle.
  • a power budget is allocated to each power domain, and any one of the load for one cycle and the predicted load of at least one processor core included in each power domain during the second cycle.
  • a sixth aspect of the embodiments of the present application provides a processor, including:
  • the processor includes a processor core, a power consumption controller and a frequency regulator; the frequency regulators are respectively connected to the power consumption controller;
  • the power consumption controller determines the number of processor cores that are in an active state in the first cycle of multiple processor cores included in each power supply domain in the multiple power supply domains; the number of processor cores in the active state of the plurality of processor cores in the first cycle, allocating a power budget to each power domain;
  • the frequency regulator is configured to perform frequency regulation on each power domain in a second cycle according to the allocated power budget, where the second cycle is a next cycle of the first cycle.
  • the processor further includes a power consumption detector connected to the power consumption controller;
  • the power consumption is used to determine the power consumption of the multiple processor cores included in each of the multiple power domains in the first cycle;
  • the power consumption controller is specifically configured to, according to the number of processor cores in the active state of the multiple processor cores included in each power supply domain in the first cycle and the number of each of the multiple power supply domains The power consumption of the plurality of processor cores included in the power domain in the first cycle, and the power budget is allocated to each power domain.
  • a seventh aspect of the embodiments of the present application provides an electronic device, where the electronic device includes the processor described in any of the fifth aspect or the sixth aspect.
  • FIG. 1 is a core power distribution table of a processor provided by an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of a multi-core processor according to an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of another frequency controller provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of another frequency controller according to an embodiment of the present application.
  • Embodiments of the present application provide a power budget allocation method and related devices, which are used to allocate the power budget according to the states of the processor cores corresponding to each power supply domain in the processor.
  • a multi-core processor means that two or more complete computing engines (processor cores) are integrated into one processor.
  • the processor can support multiple processor cores on the system bus, and the bus controller provides all the Bus control signals and command signals.
  • the bus controller provides all the Bus control signals and command signals.
  • multi-core technology enables processors to process tasks in parallel, and multi-core systems are easier to expand, and more powerful processing performance can be packed into a smaller form factor, using less power and generating more heat. Less; multi-core processors have become an inevitable product of processor development.
  • the power budget is generally allocated to each power domain evenly, that is, the power budget allocated to each power domain is the same, and then in the middle of each power domain, according to the heaviest load that each power domain can bear.
  • Load determine the maximum frequency of the processor core; it is understandable that the operating frequency of the processor core in each power domain is limited by the maximum frequency, that is, when the processor core is in an overclocked state, the increased operating frequency cannot exceed the maximum frequency.
  • At least one means one or more, and “plurality” means two or more.
  • And/or which describes the association relationship of the associated objects, indicates that there can be three kinds of relationships, for example, A and/or B, which can indicate: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the associated objects are an “or” relationship.
  • “At least one item(s) below” or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one item (a) of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple .
  • ordinal numbers such as “first” and “second” mentioned in the embodiments of the present application are used to distinguish multiple objects, and are not used to limit the priority or importance of multiple objects.
  • first moment and the second moment are only for distinguishing different moments, and do not indicate the difference in priority or importance of the two moments.
  • FIG. 2 exemplarily shows a schematic structural diagram of a processor 200 provided by an embodiment of the present application.
  • the processor 200 may include at least one processor core, such as a processor core 20 , a processor core 21 , a processor core 22 and a processor core 23 .
  • the processor 200 may also include non-core components, such as general-purpose units (including counters, decoders, signal generators, etc.), accelerator units, input/output control units, interface units, internal memory, and external buffers.
  • each processor core and non-core components can be connected through a communication bus (not shown in FIG. 2 ), so as to realize the data transmission operation.
  • the above-mentioned processor 200 may be a chip.
  • the processor 200 may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), or a system on chip (SoC). It can be a central processing unit (CPU), a network processor (NP), a digital signal processing circuit (DSP), or a microcontroller (microcontroller). unit, MCU), it can also be a programmable logic device (PLD) or other integrated chips.
  • the processor 200 in this embodiment of the present application may also be an integrated circuit chip, which has a signal processing capability.
  • the processor 100 described above may be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, Discrete hardware components.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the processor may further include a frequency controller 24, and each processor core may also be provided with a frequency regulator, and the frequency controller 24 may be associated with each processor core. the frequency regulator communication connection.
  • the frequency controller 24 may send a frequency control instruction to the frequency adjuster of the processor core, so that the frequency adjuster of the processor core adjusts the processing according to the frequency control instruction
  • the frequency of the processor core is adjusted to be greater than the maximum frequency set by the manufacturer.
  • FIG. 2 is only an exemplary illustration.
  • the frequency regulator may be set only in one or several processor cores.
  • the frequency controller 24 may The frequency regulator controls the frequency of the processor core.
  • a frequency regulator may also be set in the non-core components, so that the frequency controller 24 can not only control the frequency of the processor core, but also control the frequency of the non-core components.
  • the non-core components mentioned here refer to the components that work according to the set frequency.
  • FIG. 3 exemplarily shows a schematic flowchart corresponding to a method for allocating a power budget provided by an embodiment of the present application.
  • the method is applicable to a frequency controller, such as the frequency controller shown in FIG. 2 . twenty four.
  • the frequency controller may execute the power budget allocation method in a periodic manner.
  • FIG. 3 exemplarily introduces the primary frequency control process of the frequency controller. As shown in FIG. 3 , the method includes:
  • the frequency controller determines the power consumption of at least one processor core included in each of the multiple power domains in the first cycle.
  • the processor can divide multiple power supply domains for multiple processor cores. , each power domain includes at least one processor core.
  • the frequency controller can obtain the power consumption of each power domain through the power consumption detector, use the power consumption to sense the state of each power domain, and allocate a reasonable power budget to it; it can be understood that the power consumption control
  • the controller can detect the average power consumption corresponding to each power domain in a cycle, and can also obtain the real-time power consumption, which is not limited in detail.
  • the power consumption of each power domain obtained by the power consumption controller is the power consumption of the processor core; when a power domain includes multiple processor cores, the power consumption of each power domain obtained by the power consumption controller is the total power consumption of all processor cores in the power domain.
  • the frequency controller calculates the power consumption of at least one processor core included in each power domain in the first cycle according to the power consumption of at least one processor core included in each power domain in the first cycle. load.
  • the frequency controller also uses the power consumption to determine the load of each power domain in the first cycle, uses the load as the processing rate, and then calculates the load of each core in the first cycle according to the above formula, and then uses the load as the pair.
  • the reference term for the allocation of the power budget in the second cycle is the reference term for the allocation of the power budget in the second cycle.
  • the frequency controller predicts, according to the load of at least one processor core included in each power domain in the first cycle, that at least one processor core included in each power domain will be included in the second cycle predicted load.
  • the frequency controller can also use the load to predict the predicted load of each power domain in the second cycle.
  • the load can more directly reflect the operating frequency requirement of each power domain in the second cycle. Therefore, allocating the power budget in the second cycle according to the predicted load can make the allocated power budget more reasonable.
  • the frequency controller calculates, according to the power consumption of the at least one processor core included in each power domain in the first cycle, the load of the at least one processor core included in each power domain during the first cycle , and any one or more of the predicted loads of at least one processor core included in each power supply domain within the second cycle, allocating a power budget to each power supply domain.
  • the second period is the next period of the first period.
  • the frequency controller allocates a power margin for each power domain, it adjusts the power supply voltage in the power domain corresponding to each processor core according to the allocated power margin, and then determines the core according to the power budget and power supply voltage.
  • the corresponding maximum power supply frequency, and the operating frequency corresponding to the core is continuously adjusted according to the maximum power supply frequency.
  • FIG. 4 exemplarily shows a schematic flowchart corresponding to another method for allocating a power budget provided by an embodiment of the present application.
  • the method is applicable to a frequency controller, such as the frequency control shown in FIG. 2 . device 24.
  • the power supply mode of the processor is a pre-die power supply mode, that is, each power supply domain includes multiple processor cores, and the processor supplies power to multiple processors belonging to the same power supply domain; as shown in Figure 4
  • the method includes:
  • each power domain of the processor includes multiple processor cores, and the multiple processor cores are collectively powered; it can be understood that when the processor core is in an activated (overclocked) state, it needs to Increase the power supply frequency and improve the performance of the core.
  • the processor may allocate a power margin for each power domain in the next cycle according to the number of cores that are active in the current cycle for each power domain, and the number of active cores in the power domain. The more, the more power headroom that needs to be allocated for that power domain.
  • the frequency controller determines the power consumption of the multiple processor cores included in each of the multiple power domains in the first cycle.
  • the frequency controller can still use the power consumption of the multiple processor cores included in each power domain in the first cycle as the condition for allocating the power margin.
  • this step is the same as the embodiment shown in FIG. 3 .
  • Step 301 in is similar, which is not specifically limited.
  • the power budget can be allocated according to the following formula:
  • step 305 is similar to step 305 in the embodiment shown in FIG. 3 , and details are not described here.
  • the monitoring circuit 601 may determine the number of processor cores that are in the active state in the first cycle and that are included in each power supply domain in the multiple power supply domains, and send them to the control circuit 602.
  • the control circuit 602 can allocate the power budget to each power domain according to the number of the processor cores in the active state of the plurality of processor cores included in each power domain, and according to the allocation The power budget controls the frequency regulator for frequency regulation.
  • the determining unit 701 is configured to determine the power consumption in the first cycle of at least one processor core included in each power supply domain of the multiple power supply domains.
  • the allocating unit 702 is configured to allocate a power budget to each power domain according to the power consumption of at least one processor core included in each power domain in the first cycle.
  • An adjustment unit 703 configured to perform frequency adjustment on each power domain in a second period according to the allocated power budget, where the second period is the next period of the first period.
  • the power consumption of at least one processor core included in each power domain in the first cycle is the power consumption of at least one processor core included in each power domain in the first cycle Real-time power consumption or average power consumption.
  • the frequency controller 700 further includes a calculation unit 704 .
  • the computing unit 704 is configured to calculate the power consumption of the at least one processor core included in each power domain in the first cycle according to the power consumption of the at least one processor core included in each power domain. one cycle load.
  • the computing unit 704 is further configured to predict, according to the load of at least one processor core included in each power domain in the first cycle, that each power domain contains The predicted load of the at least one processor core in the second cycle.
  • the allocating unit 702 is specifically configured to, according to the power consumption of at least one processor core included in each power domain in the first cycle, the Any one of the load of at least one processor core during the first cycle and the predicted load of at least one processor core included in each power domain during the second cycle, allocating a power budget to all for each power domain.
  • each unit in the above-mentioned frequency controller 700 may refer to the implementation of the corresponding method embodiments, which will not be repeated here.
  • the above division of the units of the frequency controller 700 is only a division of a logical function. In actual implementation, it should be understood that the division of the above units of the frequency controller 700 is only a division of a logical function, and in actual implementation, all Or partially integrated into one physical entity, or physically separate.
  • the acquiring unit 701 may be implemented by the monitoring circuit 501 in FIG. 5 above
  • the determining unit 702 and the adjusting unit 703 may be implemented by the control circuit 502 in FIG. 5 above.
  • FIG. 8 is a schematic structural diagram of another frequency controller 800 provided by an embodiment of the present application.
  • the frequency controller 800 may be a chip or a circuit, such as a chip or a circuit that may be provided in a processor.
  • the frequency controller 800 may correspond to the frequency controller 24 in the above method.
  • the frequency controller 800 may implement any one or more of the corresponding method steps shown in FIG. 4 above.
  • the frequency controller 800 may include a determination unit 801 , an allocation unit 802 and an adjustment unit 803 .
  • An adjustment unit 803 configured to perform frequency adjustment on each power domain in a second period according to the allocated power budget, where the second period is the next period of the first period.
  • the allocating unit 802 is configured to calculate the number of processor cores that are in an active state in the first cycle and each power domain in the plurality of power domains according to the number of processor cores included in each power domain. The power consumption of the included plurality of processor cores in the first cycle, with a power budget allocated to each of the power domains.
  • each unit in the above-mentioned frequency controller 800 may refer to the implementation of the corresponding method embodiments, which will not be repeated here.
  • the present application also provides a computer program product, the computer program product includes: computer program code, when the computer program code is run on a computer, the computer is made to execute the steps shown in FIG. 1 to FIG. 4 .
  • the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores program codes, and when the program codes are run on a computer, the computer is made to execute FIG. 1 to FIG. 5 .
  • a component may be, but is not limited to, a process running on a processor, a processor, an object, an executable, a thread of execution, a program, and/or a computer.
  • an application running on a computing device and the computing device may be components.
  • One or more components may reside within a process and/or thread of execution, and a component may be localized on one computer and/or distributed between two or more computers.
  • these components can execute from various computer readable media having various data structures stored thereon.
  • a component may, for example, be based on a signal having one or more data packets (eg, data from two components interacting with another component between a local system, a distributed system, and/or a network, such as the Internet interacting with other systems via signals) Communicate through local and/or remote processes.
  • data packets eg, data from two components interacting with another component between a local system, a distributed system, and/or a network, such as the Internet interacting with other systems via signals
  • the disclosed system, apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.

Abstract

The present application is specifically used in the field of battery management. Disclosed are a power budget allocation method and a related device. The method comprises: determining power consumption of at least one processor core comprised in each of a plurality of power domains in a first period; and allocating a power budget to each power domain according to the power consumption of the at least one processor core comprised in each power domain in the first period, such that each power domain performs frequency adjustment in a second period on the basis of the allocated power budget, wherein the second period is a period next to the first period. The method can fully utilize power budgets to provide higher power supply frequencies for cores for data processing, thus fully exerting the performance of each core and improving working rates and working performance of processors.

Description

一种功率预算的分配方法及相关设备A power budget allocation method and related equipment 技术领域technical field
本申请实施例涉及电源管理领域,尤其涉及一种功率预算的分配方法及相关设备。The embodiments of the present application relate to the field of power management, and in particular, to a power budget allocation method and related equipment.
背景技术Background technique
随着电子设备配置的不断发展,多核处理器已经广泛应用于计算机和手机领域,多核处理器是指在一个处理器中集成多个计算引擎(处理器核),可以支持多线任务;对于单核处理器而言,多核处理器支持把要处理的数据分解成多个部分分别给予不同的核心寄存器让各个运算器共同运算,提升处理器的运行速率。With the continuous development of electronic equipment configuration, multi-core processors have been widely used in the field of computers and mobile phones. Multi-core processors refer to the integration of multiple computing engines (processor cores) in one processor, which can support multi-threaded tasks; In terms of core processors, multi-core processors support dividing the data to be processed into multiple parts and assign them to different core registers, so that each operator can operate together to improve the running speed of the processor.
一般的,多核处理器都由多个集成电路稳压电源(integrated voltage regulator,IVR)为其供电,即多核处理器一般包括多个电源域,为了保证处理器多个内核的总功率/电流不超过系统设计所能承受的最大供电功率/电流,就需要在不同电源域之间分配功率预算;在支持超频功能的多核处理器中,通常处理器对处于超频状态的内核来平均分配功率预算,并根据分配结果来确定每个内核所允许达到的最高频率,使得每一个内核在最高频率状态下运行最重负载时所产生的功耗不超过处理器为其分配的功率预算,这样保证整个系统的稳定运行。Generally, multi-core processors are powered by multiple integrated voltage regulators (IVRs), that is, multi-core processors generally include multiple power domains. Exceeding the maximum power supply power/current that the system design can bear, it is necessary to allocate the power budget between different power domains; in a multi-core processor that supports overclocking, the processor usually allocates the power budget equally to the cores in the overclocked state. And according to the allocation result, the maximum frequency allowed by each core is determined, so that the power consumption of each core when running the heaviest load at the highest frequency state does not exceed the power budget allocated by the processor, thus ensuring that the entire system is stable operation.
受上述最高频率的限制,当每个处理器核所运行的负载小于最重负载时,单个处理器核的功耗将会低于其所能允许的最大功耗,每个处理器核不能完全利用处理器为其分配的功率预算,所有处理器核的功耗也将低于系统所能承受的最大功耗,这样,将导致不能发挥出处理器的最大性能。Restricted by the above maximum frequency, when the load of each processor core is less than the heaviest load, the power consumption of a single processor core will be lower than the maximum power consumption it can allow, and each processor core cannot fully Using the power budget allocated by the processor, the power consumption of all processor cores will also be lower than the maximum power consumption that the system can bear, which will result in the inability to exert the maximum performance of the processor.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种功率预算的分配方法及相关设备,用于根据处理器中各电源域对应的处理器核的状态来分配功率预算。Embodiments of the present application provide a power budget allocation method and related devices, which are used to allocate the power budget according to the states of the processor cores corresponding to each power supply domain in the processor.
本申请实施例的第一方面提供一种功率预算的分配方法,包括:A first aspect of the embodiments of the present application provides a method for allocating a power budget, including:
当处理器为多核处理器时,处理器中包含多个电源域,每个电源域都为至少一个处理器核供电;首先,需要确定每个电源域中的处理器核在第一周期内的功耗,然后根据得到的功耗,把功率预算分配给每个电源域;可以理解的,每个电源域在第一周期内对应的功耗,可以直接或间接的反映该电源域中的处理器核的状态,根据功耗来分配功率预算,可以满足不同处理器核的需求,使得每个电源域可以基于分配到的功率预算进行频率调节。When the processor is a multi-core processor, the processor contains multiple power domains, and each power domain supplies power to at least one processor core; first, it is necessary to determine the power consumption of the processor cores in each power domain in the first cycle. power consumption, and then allocate the power budget to each power domain according to the obtained power consumption; it is understandable that the corresponding power consumption of each power domain in the first cycle can directly or indirectly reflect the processing in the power domain According to the state of the processor core, the power budget is allocated according to the power consumption, which can meet the needs of different processor cores, so that each power domain can perform frequency adjustment based on the allocated power budget.
在上述设计中,频率控制器通过根据处理器核的功耗来调节为其分配的功率预算,然后再根据功率预算实施控制处理器核的频率,使得功率预算能得到更合理的分配,满足不同处理器核的需求。更进一步的,该种方式还可以根据功率预算来进行频率调节,这样,调节后的处理器核心能够更加符合其运行状态,提高处理器核心的工作效率。In the above design, the frequency controller adjusts the power budget allocated to the processor core according to the power consumption of the processor core, and then controls the frequency of the processor core according to the power budget, so that the power budget can be allocated more reasonably to meet different requirements. processor core requirements. Furthermore, in this way, the frequency can also be adjusted according to the power budget, so that the adjusted processor core can be more in line with its operating state and improve the working efficiency of the processor core.
结合本申请实施例的第一方面,在本申请实施例的第一方面的第一种实施方式中:In conjunction with the first aspect of the embodiments of the present application, in the first implementation of the first aspect of the embodiments of the present application:
频率控制器可以根据每个电源域所包含的至少一个处理器核在第一周期的实时功耗来分配功率预算,也可以根据每个电源域所包含的至少一个处理器核在第一周期的平均功耗来分配;这样,频率控制器可以通过多种方法来感知处理器核的运行状态,为其分配功率 预算提供了多种方案。The frequency controller can allocate the power budget according to the real-time power consumption of at least one processor core included in each power domain in the first cycle, or according to the real-time power consumption of at least one processor core included in each power domain during the first cycle. The average power consumption is allocated; in this way, the frequency controller can sense the operating state of the processor core in various ways, and provide various schemes for allocating the power budget.
结合本申请实施例的第一方面的第一种实施方式,在本申请实施例的第一方面的第二种实施方式中:With reference to the first implementation of the first aspect of the embodiments of the present application, in the second implementation of the first aspect of the embodiments of the present application:
频率控制器在取得每个电源域所包含的至少一个处理器核在第一周期的功耗时,还可以根据该功耗计算每个电源域所包含的至少一个处理器核在第一周期的负载,然后根据负载来作为分配功率预算的参考,这样,为频率控制器分配预算提供了新的方案。When obtaining the power consumption of at least one processor core included in each power domain in the first cycle, the frequency controller can also calculate the power consumption of at least one processor core included in each power domain in the first cycle according to the power consumption. The load is then used as a reference for allocating the power budget according to the load, so that a new scheme is provided for the frequency controller to allocate the budget.
结合本申请实施例的第一方面的第二种实施方式,在本申请实施例的第一方面的第三种实施方式中:With reference to the second implementation of the first aspect of the embodiments of the present application, in the third implementation of the first aspect of the embodiments of the present application:
频率控制器在取得每个电源域所包含的至少一个处理器核在第一周期的负载时,还可以根据该负载来预测每个电源域所包含的至少一个处理器核在第二周期的预测负载,然后根据预测负载来作为分配功率预算的参考;可以理解的,每个电源域所包含的至少一个处理器核在第二周期的预测负载,可以直接反应处理器核在第二周期的功率需求,这样,可以使得频率控制器更加合理的为其分配功率预算,提高处理器核的工作性能。When obtaining the load of at least one processor core included in each power domain in the first cycle, the frequency controller can also predict the prediction of at least one processor core included in each power domain in the second cycle according to the load. load, and then use the predicted load as a reference for allocating the power budget; it is understandable that the predicted load of at least one processor core included in each power domain in the second cycle can directly reflect the power of the processor core in the second cycle. In this way, the frequency controller can be more reasonably allocated power budget to improve the working performance of the processor core.
结合本申请实施例的第一方面的第三种实施方式,在本申请实施例的第一方面的第四种实施方式中:In conjunction with the third implementation of the first aspect of the embodiments of the present application, in the fourth implementation of the first aspect of the embodiments of the present application:
频率控制器在获得所述每个电源域所包含的至少一个处理器核在第一周期的功耗,所述每个电源域所包含的至少一个处理器核在所述第一周期的负载,和所述每个电源域包含的至少一个处理器核在所述第二周期内的预测负载后,可以根据其中的任一项或者多项作为分配功率预算的参考,这样可以更加全面的感知处理器核的运行状态,更合理的为每个电源域分配功率预算。The frequency controller obtains the power consumption of the at least one processor core included in each power domain in the first cycle, and the load of the at least one processor core included in each power domain during the first cycle, and the predicted load of at least one processor core included in each power domain in the second cycle, any one or more of them can be used as a reference for allocating a power budget, so that a more comprehensive perception and processing can be achieved. The operating state of the core is more reasonable to allocate the power budget to each power domain.
本申请实施例的第二方面提供一种功率预算的分配方法,包括:A second aspect of the embodiments of the present application provides a method for allocating a power budget, including:
当处理器为多核处理器时,处理器中包含多个电源域,而每个电源域都为多个处理器核供电;首先,需要确定每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数,然后根据每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数,将功率预算分配给所述每个电源域;可以理解的,每个电源域中处于激活状态的核的个数越多,则说明处理器核处理数据的任务更重,因此要为其多分配工作裕量,提高其频率;根据处于激活状态的处理器核的个数来分配功率预算,可以满足不同电源域的需求,使得每个电源域可以基于分配到的功率预算在下一周期进行频率调节。When the processor is a multi-core processor, the processor contains multiple power domains, and each power domain supplies power to multiple processor cores; first, it is necessary to determine the number of processor cores included in each power domain in the The number of active processor cores in a cycle, and then allocate the power budget to the Describe each power domain; it is understandable that the more the number of active cores in each power domain, the heavier the task of the processor core to process data, so it is necessary to allocate more work margins to improve its performance. Frequency: The power budget is allocated according to the number of active processor cores, which can meet the needs of different power domains, so that each power domain can perform frequency adjustment in the next cycle based on the allocated power budget.
在上述设计中,频率控制器通过根据每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数来调节为其分配的功率预算,然后再根据功率预算实施控制处理器核的频率,使得功率预算能得到更合理的分配,满足不同处理器核的需求。更进一步的,该种方式还可以根据功率预算来进行频率调节,这样,调节后的处理器核心能够更加符合其运行状态,提高处理器核的工作效率。In the above design, the frequency controller adjusts the power budget allocated to each power domain according to the number of processor cores that are active in the first cycle of the multiple processor cores contained in each power domain, and then according to the power Budget implementation controls the frequency of the processor cores so that the power budget can be allocated more reasonably to meet the needs of different processor cores. Furthermore, in this manner, the frequency can also be adjusted according to the power budget, so that the adjusted processor core can be more in line with its operating state and improve the working efficiency of the processor core.
结合本申请实施例的第二方面,在本申请实施例的第二方面的第一种实施方式中:In conjunction with the second aspect of the embodiments of the present application, in the first implementation manner of the second aspect of the embodiments of the present application:
频率控制器还可以确定多个电源域中每个电源域所包含的多个处理器核在第一周期的功耗,然后根据每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数和所述多个电源域中每个电源域所包含的多个处理器核在第一周期的功耗,将功率 预算分配给所述每个电源域;这样,频率控制器可以根据多个电源域中每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数和所述多个电源域中每个电源域所包含的多个处理器核在第一周期的功耗作为分配功率预算的参考,更加全面的感知处理器核的运行状态,更合理的为每个电源域分配功率预算。The frequency controller can also determine the power consumption of the plurality of processor cores contained in each power domain in the first cycle, and then according to the plurality of processor cores contained in each power domain in the first cycle the number of active processor cores and the power consumption of the plurality of processor cores included in each of the plurality of power domains in the first cycle, and allocate a power budget to each of the power domains; In this way, the frequency controller can be based on the number of processor cores that are in the active state in the first cycle and the number of each power supply in the multiple power supply domains The power consumption of the multiple processor cores included in the domain in the first cycle is used as a reference for allocating the power budget, so that the running state of the processor cores can be more comprehensively sensed, and the power budget can be allocated to each power domain more reasonably.
本申请实施例的第三方面提供一种频率控制器,包括:A third aspect of the embodiments of the present application provides a frequency controller, including:
确定单元,用于确定多个电源域中每个电源域所包含的至少一个处理器核在第一周期的功耗;a determining unit, configured to determine the power consumption of at least one processor core included in each of the multiple power domains in the first cycle;
分配单元,用于根据所述每个电源域所包含的至少一个处理器核在第一周期的功耗,将功率预算分配给所述每个电源域;an allocation unit, configured to allocate a power budget to each power domain according to the power consumption of at least one processor core included in each power domain in the first cycle;
调节单元,用于根据分配的功率预算在第二周期内对所述每个电源域进行频率调节,所述第二周期为所述第一周期的下一个周期。An adjustment unit, configured to adjust the frequency of each power supply domain in a second period according to the allocated power budget, where the second period is the next period of the first period.
结合本申请实施例的第三方面,在本申请实施例的第三方面的第一种实施方式中:With reference to the third aspect of the embodiments of the present application, in the first implementation of the third aspect of the embodiments of the present application:
所述每个电源域所包含的至少一个处理器核在第一周期的功耗为所述每个电源域所包含的至少一个处理器核在第一周期的实时功耗或者平均功耗。The power consumption of the at least one processor core included in each power domain in the first cycle is the real-time power consumption or average power consumption of the at least one processor core included in each power domain in the first cycle.
结合本申请实施例的第三方面的第一种实施方式,在本申请实施例的第三方面的第二种实施方式中:In conjunction with the first implementation of the third aspect of the embodiments of the present application, in the second implementation of the third aspect of the embodiments of the present application:
所述频率控制器还包括计算单元;The frequency controller further includes a calculation unit;
所述计算单元,用于根据所述每个电源域所包含的至少一个处理器核在第一周期的功耗,计算所述每个电源域所包含的至少一个处理器核在所述第一周期的负载。The computing unit is configured to calculate the power consumption of at least one processor core included in each power domain in the first cycle according to the power consumption of at least one processor core included in each power domain. cycle load.
结合本申请实施例的第三方面的第二种实施方式,在本申请实施例的第三方面的第三种实施方式中:With reference to the second implementation of the third aspect of the embodiments of the present application, in the third implementation of the third aspect of the embodiments of the present application:
所述计算单元,还用于根据所述每个电源域所包含的至少一个处理器核在所述第一周期的负载,预测所述每个电源域包含的至少一个处理器核在所述第二周期内的预测负载。The computing unit is further configured to predict, according to the load of at least one processor core included in each power domain in the first cycle, that the at least one processor core included in each power domain will perform in the first cycle. Predicted load for two cycles.
结合本申请实施例的第三方面的第三种实施方式,在本申请实施例的第三方面的第四种实施方式中:With reference to the third implementation of the third aspect of the embodiments of the present application, in the fourth implementation of the third aspect of the embodiments of the present application:
所述分配单元,具体用于根据所述每个电源域所包含的至少一个处理器核在第一周期的功耗,所述每个电源域所包含的至少一个处理器核在所述第一周期的负载,和所述每个电源域包含的至少一个处理器核在所述第二周期内的预测负载中的任意一项,将功率预算分配给所述每个电源域。The allocating unit is specifically configured to, according to the power consumption of at least one processor core included in each power domain in the first cycle, the at least one processor core included in each power domain in the first cycle. A power budget is allocated to each power domain according to the load of the cycle, and any one of the predicted load of at least one processor core included in each power domain during the second cycle.
本申请实施例的第四方面提供一种频率控制器,包括:A fourth aspect of the embodiments of the present application provides a frequency controller, including:
确定单元,用于确定多个电源域中每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数;a determining unit, configured to determine the number of processor cores that are in an active state in the first cycle of the multiple processor cores included in each power supply domain in the multiple power supply domains;
分配单元,用于根据所述每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数,将功率预算分配给所述每个电源域;an allocation unit, configured to allocate a power budget to each of the power domains according to the number of processor cores in the active state of the plurality of processor cores included in each of the power domains;
调节单元,用于根据分配的功率预算在第二周期内对所述每个电源域进行频率调节,所述第二周期为所述第一周期的下一个周期。An adjustment unit, configured to adjust the frequency of each power supply domain in a second period according to the allocated power budget, where the second period is the next period of the first period.
结合本申请实施例的第四方面,在本申请实施例的第四方面的第一种实施方式中:With reference to the fourth aspect of the embodiments of the present application, in the first implementation of the fourth aspect of the embodiments of the present application:
所述确定单元,还用于确定所述多个电源域中每个电源域所包含的多个处理器核在第一周期的功耗;The determining unit is further configured to determine the power consumption in the first cycle of the multiple processor cores included in each of the multiple power supply domains;
所述分配单元,用于根据所述每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数和所述多个电源域中每个电源域所包含的多个处理器核在第一周期的功耗,将功率预算分配给所述每个电源域。The allocating unit is configured to, according to the number of processor cores in the active state of the plurality of processor cores included in each power supply domain and the number of processor cores in each power supply domain in the plurality of power supply domains The power consumption of the plurality of processor cores included in the first cycle, with a power budget allocated to each of the power domains.
本申请实施例的第五方面提供一种处理器,包括:A fifth aspect of the embodiments of the present application provides a processor, including:
所述处理器包括处理器核、功耗检测器、功耗控制器和频率调节器;所述功耗检测器和所述频率调节器分别于所述功耗控制器相连;The processor includes a processor core, a power consumption detector, a power consumption controller and a frequency regulator; the power consumption detector and the frequency regulator are respectively connected to the power consumption controller;
所述功耗检测器,用于检测确定多个电源域中每个电源域所包含的至少一个处理器核在第一周期的功耗;the power consumption detector, configured to detect and determine the power consumption of at least one processor core included in each of the multiple power domains in the first cycle;
所述功耗控制器,用于根据所述每个电源域所包含的至少一个处理器核在第一周期的功耗,将功率预算分配给所述每个电源域;the power consumption controller, configured to allocate a power budget to each power supply domain according to the power consumption of at least one processor core included in each power supply domain in the first cycle;
所述频率调节器,用于根据分配的功率预算在第二周期内对所述每个电源域进行频率调节,其中,所述第二周期为所述第一周期的下一个周期。The frequency regulator is configured to perform frequency regulation on each power domain in a second cycle according to the allocated power budget, where the second cycle is a next cycle of the first cycle.
结合本申请实施例的第五方面,在本申请实施例的第五方面的第一种实施方式中:With reference to the fifth aspect of the embodiments of the present application, in the first implementation manner of the fifth aspect of the embodiments of the present application:
所述每个电源域所包含的至少一个处理器核在第一周期的功耗为所述每个电源域所包含的至少一个处理器核在第一周期的实时功耗或者平均功耗。The power consumption of the at least one processor core included in each power domain in the first cycle is the real-time power consumption or average power consumption of the at least one processor core included in each power domain in the first cycle.
结合本申请实施例的第五方面的第一种实施方式,在本申请实施例的第五方面的第二种实施方式中:With reference to the first implementation of the fifth aspect of the embodiments of the present application, in the second implementation of the fifth aspect of the embodiments of the present application:
所述功耗控制器还用于根据所述每个电源域所包含的至少一个处理器核在第一周期的功耗,计算所述每个电源域所包含的至少一个处理器核在所述第一周期的负载。The power consumption controller is further configured to calculate the power consumption of the at least one processor core included in each power domain in the first cycle according to the power consumption of the at least one processor core included in each power domain. load for the first cycle.
结合本申请实施例的第五方面的第二种实施方式,在本申请实施例的第五方面的第三种实施方式中:In conjunction with the second implementation of the fifth aspect of the embodiments of the present application, in the third implementation of the fifth aspect of the embodiments of the present application:
所述功耗控制器还用于根据所述每个电源域所包含的至少一个处理器核在所述第一周期的负载,预测所述每个电源域包含的至少一个处理器核在所述第二周期内的预测负载。The power consumption controller is further configured to predict, according to the load of the at least one processor core included in each power domain in the first cycle, that the at least one processor core included in each power domain will be in the first cycle. Predicted load for the second period.
结合本申请实施例的第五方面的第三种实施方式,在本申请实施例的第五方面的第四种实施方式中:In conjunction with the third implementation of the fifth aspect of the embodiments of the present application, in the fourth implementation of the fifth aspect of the embodiments of the present application:
所述功耗控制器具体用于根据所述每个电源域所包含的至少一个处理器核在第一周期的功耗,所述每个电源域所包含的至少一个处理器核在所述第一周期的负载,和所述每个电源域包含的至少一个处理器核在所述第二周期内的预测负载中的任意一项,将功率预算分配给所述每个电源域。The power consumption controller is specifically configured to, according to the power consumption of the at least one processor core included in each power domain in the first cycle, the at least one processor core included in each power domain in the first cycle. A power budget is allocated to each power domain, and any one of the load for one cycle and the predicted load of at least one processor core included in each power domain during the second cycle.
本申请实施例的第六方面提供一种处理器,包括:A sixth aspect of the embodiments of the present application provides a processor, including:
所述处理器包括处理器核、功耗控制器和频率调节器;所述频率调节器分别于所述功耗控制器相连;The processor includes a processor core, a power consumption controller and a frequency regulator; the frequency regulators are respectively connected to the power consumption controller;
所述功耗控制器,确定多个电源域中每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数;根据所述每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数,将功率预算分配给所述每个电源域;The power consumption controller determines the number of processor cores that are in an active state in the first cycle of multiple processor cores included in each power supply domain in the multiple power supply domains; the number of processor cores in the active state of the plurality of processor cores in the first cycle, allocating a power budget to each power domain;
所述频率调节器,用于根据分配的功率预算在第二周期内对所述每个电源域进行频率调节,其中,所述第二周期为所述第一周期的下一个周期。The frequency regulator is configured to perform frequency regulation on each power domain in a second cycle according to the allocated power budget, where the second cycle is a next cycle of the first cycle.
结合本申请实施例的第六方面,在本申请实施例的第六方面的第一种实施方式中:With reference to the sixth aspect of the embodiments of the present application, in the first implementation of the sixth aspect of the embodiments of the present application:
所述处理器还包括功耗检测器,所述功耗检测器与所述功耗控制器相连;The processor further includes a power consumption detector connected to the power consumption controller;
所述功耗,用于确定所述多个电源域中每个电源域所包含的多个处理器核在第一周期的功耗;The power consumption is used to determine the power consumption of the multiple processor cores included in each of the multiple power domains in the first cycle;
所述功耗控制器,具体用于根据所述每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数和所述多个电源域中每个电源域所包含的多个处理器核在第一周期的功耗,将功率预算分配给所述每个电源域。The power consumption controller is specifically configured to, according to the number of processor cores in the active state of the multiple processor cores included in each power supply domain in the first cycle and the number of each of the multiple power supply domains The power consumption of the plurality of processor cores included in the power domain in the first cycle, and the power budget is allocated to each power domain.
本申请实施例的第七方面提供一种电子设备,该电子设备包括如上述第五方面或第六方面任意所述的处理器。A seventh aspect of the embodiments of the present application provides an electronic device, where the electronic device includes the processor described in any of the fifth aspect or the sixth aspect.
本申请的上述方面或其它方面将在以下的实施例中进行具体介绍。The above aspects or other aspects of the present application will be specifically introduced in the following embodiments.
附图说明Description of drawings
图1为本申请实施例提供的一个处理器的核心功率分布表;FIG. 1 is a core power distribution table of a processor provided by an embodiment of the present application;
图2为本申请实施例提供的一种多核处理器的结构示意图;FIG. 2 is a schematic structural diagram of a multi-core processor according to an embodiment of the present application;
图3为本申请实施例提供的一种功率裕量分配方法的流程示意图;FIG. 3 is a schematic flowchart of a power headroom allocation method provided by an embodiment of the present application;
图4为本申请实施例提供的另一种功率裕量分配方法的流程示意图;FIG. 4 is a schematic flowchart of another power headroom allocation method provided by an embodiment of the present application;
图5为本申请实施例提供的一种频率控制器的结构示意图;5 is a schematic structural diagram of a frequency controller according to an embodiment of the present application;
图6为本申请实施例提供的另一种频率控制器的结构示意图;6 is a schematic structural diagram of another frequency controller provided by an embodiment of the present application;
图7为本申请实施例提供的另一种频率控制器的结构示意图;FIG. 7 is a schematic structural diagram of another frequency controller provided by an embodiment of the present application;
图8为本申请实施例提供的另一种频率控制器的结构示意图。FIG. 8 is a schematic structural diagram of another frequency controller according to an embodiment of the present application.
具体实施方式detailed description
本申请实施例提供了一种功率预算的分配方法及相关设备,用于根据处理器中各电源域对应的处理器核的状态来分配功率预算。Embodiments of the present application provide a power budget allocation method and related devices, which are used to allocate the power budget according to the states of the processor cores corresponding to each power supply domain in the processor.
下面将结合本申请中的附图,对本申请中的技术方案进行详细地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。The technical solutions in the present application will be described in detail below with reference to the drawings in the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments.
本申请所公开的各个实施例可以应用于具有超频功能的电子设备中。在本申请一些实施例中,电子设备可以是具有处理器(诸如中央处理器(central processing unit,CPU))的计算机设备,例如台式计算机。还应当理解的是,在本申请其他一些实施例中,电子设备也可以是具有处理器的便携式电子设备,诸如手机、平板电脑、具备无线通讯功能的可穿戴设备(如智能手表)、车载设备等。便携式电子设备的示例性实施例包括但不限于搭载
Figure PCTCN2020112688-appb-000001
或者其它操作系统的便携式电子设备。
Various embodiments disclosed in this application may be applied to electronic devices with overclocking functions. In some embodiments of the present application, the electronic device may be a computer device having a processor (such as a central processing unit (CPU)), such as a desktop computer. It should also be understood that, in some other embodiments of the present application, the electronic device may also be a portable electronic device with a processor, such as a mobile phone, a tablet computer, a wearable device (such as a smart watch) with a wireless communication function, a vehicle-mounted device Wait. Exemplary embodiments of portable electronic devices include, but are not limited to, carry-on
Figure PCTCN2020112688-appb-000001
Or portable electronic devices with other operating systems.
多核处理器是指在一枚处理器中集成有两个或多个完整的计算引擎(处理器核),此时处理器能支持系统总线上的多个处理器核,由总线控制器提供所有总线控制信号和命令信号。随着对处理器处理数据的性能要求越来越高,若仅仅提高单核芯片的速度将会因为工作频率过高而产生过多热量,同时半导体技术的发展也限制着单核芯片频率的提供,因此多核处理器应运而生。多核处理器的架构体现了“分治法”的理念,即对需要处理的任务 进行划分,将划分的多个任务安排给多个内核进行处理,这样,一个处理器就可以在特定时钟周期内执行更多的任务,多核技术能够使处理器并行处理任务,且多核系统更易于扩充,能够在更纤巧的外形中融入更强大的处理性能,所用的功耗更低、功耗产生的热量更少;多核处理器已经成为处理器发展的必然产物。A multi-core processor means that two or more complete computing engines (processor cores) are integrated into one processor. At this time, the processor can support multiple processor cores on the system bus, and the bus controller provides all the Bus control signals and command signals. As the performance requirements of processors for processing data become higher and higher, if the speed of single-core chips is only increased, excessive heat will be generated due to the high operating frequency. At the same time, the development of semiconductor technology also limits the availability of single-core chip frequencies. , so multi-core processors came into being. The architecture of multi-core processors embodies the concept of "divide and conquer", that is, the tasks that need to be processed are divided, and the divided tasks are arranged to multiple cores for processing, so that a processor can be processed within a specific clock cycle. Execute more tasks, multi-core technology enables processors to process tasks in parallel, and multi-core systems are easier to expand, and more powerful processing performance can be packed into a smaller form factor, using less power and generating more heat. Less; multi-core processors have become an inevitable product of processor development.
处理器核超频技术(inter turbo boost)是指当启动一个运行程序后,处理器会自动加速到合适的频率,以保证程序流畅运行;应对复杂应用时,处理器可自动提高运行主频以提速,对性能要求更高的任务进行处理;当进行工作任务切换时,处理器会立刻处于节电状态。这样既保证了能源的有效利用,又使程序速度大幅提升。通俗理解为自动超频,处理器会根据当前的任务量自动调整处理器主频,从而重任务时发挥最大的性能。该技术的主旨在于,在不超过最大功率的前提下,尽量挖掘处理器的性能潜力。Processor core overclocking technology (inter turbo boost) means that when a running program is started, the processor will automatically accelerate to an appropriate frequency to ensure smooth operation of the program; when dealing with complex applications, the processor can automatically increase the operating frequency to speed up , to process tasks with higher performance requirements; when switching between work tasks, the processor will immediately be in a power-saving state. This not only ensures the efficient use of energy, but also greatly improves the program speed. Commonly understood as automatic overclocking, the processor will automatically adjust the main frequency of the processor according to the current amount of tasks, so as to maximize the performance of heavy tasks. The main purpose of this technology is to maximize the performance potential of the processor without exceeding the maximum power.
在对多核处理器进行供电时,通常情况下都采用区域独立供电的方式,即将处理器划分为多个电源域,每个电源域都为其独立供电,而超频turbo技术允许将一些处理器内核,的电力加至其它处理器核,让个别处理器核以更高的频率运行,只要保证处理器消耗的总功率/电流不超过系统设计所能承受的最大供电功率/电流即可。因此需要在多个电源域之间合理分配功率预算,并且需要根据分配的功率预算制定处于turbo状态的内核所允许达到的最高频率。When supplying power to multi-core processors, regional independent power supply is usually adopted, that is, the processor is divided into multiple power domains, and each power domain supplies power independently. Overclocking turbo technology allows some processor cores to be powered , add the power to other processor cores to allow individual processor cores to run at a higher frequency, as long as the total power/current consumed by the processor does not exceed the maximum power supply power/current that the system is designed to withstand. Therefore, the power budget needs to be properly distributed among the multiple power domains, and the maximum frequency allowed by the core in the turbo state needs to be determined according to the allocated power budget.
现有技术中,一般是为每一个电源域平均分配功率预算,即每个电源域所分配的功率预算是相同的,然后在每一个电源域中间,再根据每个电源域可承受的最重负载,确定其中处理器核的最大频率;可以理解的,每个电源域中的处理器核运行频率都受该最大频率限制,即处理器核处于超频状态时,提升后的工作频率也不能超过该最大频率。In the prior art, the power budget is generally allocated to each power domain evenly, that is, the power budget allocated to each power domain is the same, and then in the middle of each power domain, according to the heaviest load that each power domain can bear. Load, determine the maximum frequency of the processor core; it is understandable that the operating frequency of the processor core in each power domain is limited by the maximum frequency, that is, when the processor core is in an overclocked state, the increased operating frequency cannot exceed the maximum frequency.
图1为本申请实施例提供一个处理器的核心功率分布表,其中,该处理器包括16个内核和32个线程;可以理解的,第一列中,没有处理器核处于超频状态,第二列中,有一个处理器核处于超频状态,依次类推;示例性的,在第九列数据中,在该状态下,有8个处于turbo状态的处理器核的功耗都在14W到14.5W左右,明显低于第二列数据中单个处理器核处于turbo时18.34W的功耗。同时,在8个处理器核处于turbo状态时,处理器的总功耗为122.87W,又明显低于第11列数据中10个处理器核处于turbo状态时处理器的峰值功耗144.49W。显然,这种分配功率裕量的方式,使得每个处于turbo状态的内核因为受最大频率的限制,很多情况下不能充分使用功率预算,也不能发挥每个核心的最大性能。因此需要重新制定分配功率预算的方式,提高turbo功能的性能。FIG. 1 provides a core power distribution table of a processor for an embodiment of the present application, wherein the processor includes 16 cores and 32 threads; it can be understood that in the first column, no processor core is in an overclocked state, and the second In the column, one processor core is in the overclocking state, and so on; for example, in the ninth column of data, in this state, there are 8 processor cores in the turbo state, and the power consumption is between 14W and 14.5W , which is significantly lower than the power consumption of 18.34W when a single processor core is in turbo in the second column of data. At the same time, when 8 processor cores are in turbo state, the total power consumption of the processor is 122.87W, which is significantly lower than the peak power consumption of 144.49W when 10 processor cores are in turbo state in the 11th column data. Obviously, this way of allocating the power margin makes each core in the turbo state unable to fully utilize the power budget in many cases due to the limitation of the maximum frequency, nor to exert the maximum performance of each core. Therefore, it is necessary to reformulate the way to allocate the power budget to improve the performance of the turbo function.
有鉴于此,本申请提供一种功率预算的分配方法,用以根据处理器核的功耗来调节为其分配的功率预算,然后再根据功率预算实施控制处理器核的频率,使得功率预算能得到更合理的分配,满足不同处理器核的需求。更进一步的,该种方式还可以根据功率预算来进行频率调节,这样,调节后的处理器核心能够更加符合其运行状态,提高处理器核心的工作效率。In view of this, the present application provides a power budget allocation method to adjust the power budget allocated to the processor core according to the power consumption of the processor core, and then control the frequency of the processor core according to the power budget, so that the power budget can be Get a more reasonable allocation to meet the needs of different processor cores. Furthermore, in this way, the frequency can also be adjusted according to the power budget, so that the adjusted processor core can be more in line with its operating state and improve the working efficiency of the processor core.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments.
本申请实施例中的术语“系统”和“网络”可被互换使用。“至少一个”是指一个或 者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。The terms "system" and "network" in the embodiments of the present application may be used interchangeably. "At least one" means one or more, and "plurality" means two or more. "And/or", which describes the association relationship of the associated objects, indicates that there can be three kinds of relationships, for example, A and/or B, which can indicate: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A, B can be singular or plural. The character "/" generally indicates that the associated objects are an "or" relationship. "At least one item(s) below" or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one item (a) of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple .
以及,除非有特别说明,本申请实施例提及“第一”、“第二”等序数词是用于对多个对象进行区分,不用于限定多个对象的优先级或者重要程度。例如,第一时刻、第二时刻,只是为了区分不同的时刻,而并不是表示这两个时刻的优先级或者重要程度等的不同。And, unless otherwise specified, ordinal numbers such as "first" and "second" mentioned in the embodiments of the present application are used to distinguish multiple objects, and are not used to limit the priority or importance of multiple objects. For example, the first moment and the second moment are only for distinguishing different moments, and do not indicate the difference in priority or importance of the two moments.
图2示例性示出本申请实施例提供的一种处理器200的结构示意图。如图2所示,处理器200可以包括至少一个处理器核心,例如处理器核心20、处理器核心21、处理器核心22和处理器核心23。处理器200中还可以包括非核心部件,例如通用单元(包括计数器、译码器和信号发生器等)、加速器单元、输入/输出控制单元、接口单元、内部存储器和外部缓存器等。其中,各个处理器核心和非核心部件之间可以通过通信总线(图2中未进行示意)进行连接,以实现数据的传输操作。FIG. 2 exemplarily shows a schematic structural diagram of a processor 200 provided by an embodiment of the present application. As shown in FIG. 2 , the processor 200 may include at least one processor core, such as a processor core 20 , a processor core 21 , a processor core 22 and a processor core 23 . The processor 200 may also include non-core components, such as general-purpose units (including counters, decoders, signal generators, etc.), accelerator units, input/output control units, interface units, internal memory, and external buffers. Wherein, each processor core and non-core components can be connected through a communication bus (not shown in FIG. 2 ), so as to realize the data transmission operation.
应理解,上述处理器200可以是一个芯片。例如,该处理器200可以是现场可编程门阵列(field programmable gate array,FPGA),可以是专用集成芯片(application specific integrated circuit,ASIC),还可以是系统芯片(system on chip,SoC),还可以是中央处理器(central processor unit,CPU),还可以是网络处理器(network processor,NP),还可以是数字信号处理电路(digital signal processor,DSP),还可以是微控制器(micro controller unit,MCU),还可以是可编程控制器(programmable logic device,PLD)或其他集成芯片。应注意,本申请实施例中的处理器200还可以是一种集成电路芯片,具有信号的处理能力。例如,上述的处理器100可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that the above-mentioned processor 200 may be a chip. For example, the processor 200 may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), or a system on chip (SoC). It can be a central processing unit (CPU), a network processor (NP), a digital signal processing circuit (DSP), or a microcontroller (microcontroller). unit, MCU), it can also be a programmable logic device (PLD) or other integrated chips. It should be noted that the processor 200 in this embodiment of the present application may also be an integrated circuit chip, which has a signal processing capability. For example, the processor 100 described above may be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, Discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
可以理解,本申请实施例中的存储器(例如内部存储器和外部缓存器)可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。应注意,本文 描述的方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory (for example, the internal memory and the external buffer) in the embodiments of the present application may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically programmable Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory. Volatile memory may be random access memory (RAM), which acts as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (synchlink DRAM, SLDRAM) ) and direct memory bus random access memory (direct rambus RAM, DR RAM). It should be noted that the memory of the methods described herein is intended to include, but not be limited to, these and any other suitable types of memory.
本申请实施例中,继续参照图2所示,处理器中还可以包括频率控制器24,每个处理器核心中还可以设置有频率调节器,频率控制器24可以与每个处理器核心中的频率调节器通信连接。如此,在控制每个处理器核心的超频调节时,频率控制器24可以向该处理器核心的频率调节器发送频率控制指令,以使该处理器核心的频率调节器根据频率控制指令调节该处理器核心的频率,例如调节为大于厂商设置的最大频率。In this embodiment of the present application, with continued reference to FIG. 2 , the processor may further include a frequency controller 24, and each processor core may also be provided with a frequency regulator, and the frequency controller 24 may be associated with each processor core. the frequency regulator communication connection. In this way, when controlling the overclocking adjustment of each processor core, the frequency controller 24 may send a frequency control instruction to the frequency adjuster of the processor core, so that the frequency adjuster of the processor core adjusts the processing according to the frequency control instruction The frequency of the processor core, for example, is adjusted to be greater than the maximum frequency set by the manufacturer.
需要说明的是,图2只是一种示例性地说明,在其它可能的示例中,也可以只在一个或几个处理器核心中设置频率调节器,如此,频率控制器24可以仅对设置有频率调节器的处理器核心的频率进行控制。或者,还可以在非核心部件中设置频率调节器,如此,频率控制器24不仅可以对处理器核心的频率进行控制,也可以对非核心部件的频率进行控制。当然,此处所述的非核心部件是指按照设定的频率工作的部件。It should be noted that FIG. 2 is only an exemplary illustration. In other possible examples, the frequency regulator may be set only in one or several processor cores. In this way, the frequency controller 24 may The frequency regulator controls the frequency of the processor core. Alternatively, a frequency regulator may also be set in the non-core components, so that the frequency controller 24 can not only control the frequency of the processor core, but also control the frequency of the non-core components. Of course, the non-core components mentioned here refer to the components that work according to the set frequency.
下面以控制一个处理器核心的频率为例介绍本申请中的功率预算的分配方法,针对于控制其它处理器核心或非处理器核心则不再进行赘述。The following takes controlling the frequency of one processor core as an example to introduce the power budget allocation method in the present application, and will not go into details for controlling other processor cores or non-processor cores.
基于图2所示意的处理器,图3示例性示出本申请实施例提供的一种功率预算的分配方法对应的流程示意图,该方法适用于频率控制器,例如图2所示意的频率控制器24。本申请实施例中,频率控制器可以按照周期方式执行功率预算的分配方法,图3示例性介绍频率控制器的一次频率控制过程,如图3所示,该方法包括:Based on the processor shown in FIG. 2 , FIG. 3 exemplarily shows a schematic flowchart corresponding to a method for allocating a power budget provided by an embodiment of the present application. The method is applicable to a frequency controller, such as the frequency controller shown in FIG. 2 . twenty four. In this embodiment of the present application, the frequency controller may execute the power budget allocation method in a periodic manner. FIG. 3 exemplarily introduces the primary frequency control process of the frequency controller. As shown in FIG. 3 , the method includes:
301、频率控制器确定多个电源域中每个电源域所包含的至少一个处理器核在第一周期的功耗。301. The frequency controller determines the power consumption of at least one processor core included in each of the multiple power domains in the first cycle.
本申请实施例中,处理器的供电方式可以是pre-core供电方式,即每一个电源域中只包括一个处理器内核,每个处理器内核都是为其独立供电的;还可以是pre-die供电方式,每一个电源域中包括多个处理器内核,处理器为属于同一个电源域的多个处理器共同供电;这样,器核工作状态的参考。由数学公式可以得知:Wi=Pi/(Fi Vi2);其中,Wi为负载,Pi为功耗,Fi为内核对应的供电频率,Vi为电压域对应的供电电压。即当处理器获取到第一周期对应的功耗时,同时需要获取第一周期内每个内核对应的电源域的供电电压和供电频处理器则可以为多个处理器核划分多个电源域,每个电源域都包括至少一个处理器核。In this embodiment of the present application, the power supply mode of the processor may be a pre-core power supply mode, that is, each power supply domain includes only one processor core, and each processor core is independently powered; it may also be a pre-core power supply mode. In the die power supply mode, each power supply domain includes multiple processor cores, and the processor supplies power to multiple processors belonging to the same power supply domain. It can be known from the mathematical formula: Wi=Pi/(Fi Vi2); where Wi is the load, Pi is the power consumption, Fi is the power supply frequency corresponding to the core, and Vi is the power supply voltage corresponding to the voltage domain. That is, when the processor obtains the power consumption corresponding to the first cycle, it also needs to obtain the power supply voltage and power supply frequency of the power supply domain corresponding to each core in the first cycle. The processor can divide multiple power supply domains for multiple processor cores. , each power domain includes at least one processor core.
频率控制器需要预先确定好周期来分配功率预算;由于为每个电源域平均分配固定的功率裕量会使得每个电源域的所能达到的最大频率受到该固定功率预算的限制,而最大供电频率将进而导致不能充分发挥每个核心的最大性能;因此频率控制器需要根据每个电池域实时状态,来对功率裕量进行更合理的分配,示例性的,处理器可以确定一个分配的周期,监控一个周期内每个电源域的状态,然后根据该状态来分配下一周期内的分配,可以理解的,还可以多个周期分配一次功率预算,具体不做限定。The frequency controller needs to pre-determine the cycle to allocate the power budget; since the average allocation of a fixed power margin to each power domain will make the maximum frequency that each power domain can achieve is limited by the fixed power budget, while the maximum power supply The frequency will in turn lead to the inability to fully utilize the maximum performance of each core; therefore, the frequency controller needs to allocate the power margin more reasonably according to the real-time status of each battery domain. Exemplarily, the processor can determine an allocated cycle , monitor the state of each power domain in one cycle, and then allocate the allocation in the next cycle according to the state. It is understandable that the power budget can also be allocated once in multiple cycles, which is not specifically limited.
示例性的,频率控制器可以通过功耗检测器来获取每个电源域的功耗,利用功耗来感知每个电源域的状态,为其分配合理的功率预算;可以理解的,功耗控制器可以检测一个周期内每一个电源域对应的平均功耗,也可以获取实时功耗,具体不做限定。Exemplarily, the frequency controller can obtain the power consumption of each power domain through the power consumption detector, use the power consumption to sense the state of each power domain, and allocate a reasonable power budget to it; it can be understood that the power consumption control The controller can detect the average power consumption corresponding to each power domain in a cycle, and can also obtain the real-time power consumption, which is not limited in detail.
可以理解的,当一个电源域只包括一个处理器核时,功耗控制器获取到的每个电源域 的功耗则为该处理器核的功耗;当一个电源域包括多个处理器核时,功耗控制器获取到的每个电源域的功耗则为该电源域中所有处理器核的总功耗。It is understandable that when a power domain includes only one processor core, the power consumption of each power domain obtained by the power consumption controller is the power consumption of the processor core; when a power domain includes multiple processor cores When , the power consumption of each power domain obtained by the power consumption controller is the total power consumption of all processor cores in the power domain.
302、频率控制器根据所述每个电源域所包含的至少一个处理器核在第一周期的功耗,计算所述每个电源域所包含的至少一个处理器核在所述第一周期的负载。302. The frequency controller calculates the power consumption of at least one processor core included in each power domain in the first cycle according to the power consumption of at least one processor core included in each power domain in the first cycle. load.
频率控制器还利用功耗来确定每个电源域在第一周期内的负载,利用负载来作为处理率,然后根据上述公式计算每个内核在第一周期内的负载,再将该负载作为对第二周期内的功率预算进行分配的参考项。The frequency controller also uses the power consumption to determine the load of each power domain in the first cycle, uses the load as the processing rate, and then calculates the load of each core in the first cycle according to the above formula, and then uses the load as the pair. The reference term for the allocation of the power budget in the second cycle.
303、频率控制器根据所述每个电源域所包含的至少一个处理器核在所述第一周期的负载,预测所述每个电源域包含的至少一个处理器核在所述第二周期内的预测负载。303. The frequency controller predicts, according to the load of at least one processor core included in each power domain in the first cycle, that at least one processor core included in each power domain will be included in the second cycle predicted load.
频率控制器在确定好每个电源域在第一周期内的负载后,还可以利用负载来预测每个电源域在第二周期内的预测负载,由于每个电源域在第二周期内的预测负载更能直接反应每个电源域在第二周期内的工作频率需求,因此根据预测负载来对第二周期内的功率预算进行分配,可以使得分配的功率预算更加合理。After determining the load of each power domain in the first cycle, the frequency controller can also use the load to predict the predicted load of each power domain in the second cycle. The load can more directly reflect the operating frequency requirement of each power domain in the second cycle. Therefore, allocating the power budget in the second cycle according to the predicted load can make the allocated power budget more reasonable.
304、频率控制器根据所述每个电源域所包含的至少一个处理器核在第一周期的功耗,所述每个电源域所包含的至少一个处理器核在所述第一周期的负载,和所述每个电源域包含的至少一个处理器核在所述第二周期内的预测负载中的任意一项或多项,将功率预算分配给所述每个电源域。304. The frequency controller calculates, according to the power consumption of the at least one processor core included in each power domain in the first cycle, the load of the at least one processor core included in each power domain during the first cycle , and any one or more of the predicted loads of at least one processor core included in each power supply domain within the second cycle, allocating a power budget to each power supply domain.
在第一种可选的方式中,频率控制器可以根据每个电源域所包含的至少一个处理器核在第一周期的功耗,来为每个电源域分配功率预算;示例性的,可根据以下公式来进行功率预算的分配:In a first optional manner, the frequency controller may allocate a power budget to each power domain according to the power consumption of at least one processor core included in each power domain in the first cycle; The power budget is allocated according to the following formula:
PB i=(P i/P total)*PB total PB i =(P i /P total )*PB total
其中,PB i为系统为第i个电源域分配的功率裕量,P i为第i个电源域对应的第一周期内的功耗,P total为所有电源域对应的功耗之和,PB total为系统所提供的功率预算的总量;可以理解的,电源域在第一周期内的功耗越高,则说明该电源域进行的数据处理工作量越大,则需要为其分配更多的功率预算,提高其内部处理器核的频率,这样就可以提高处理器核的处理速度,充分发挥处理器核的性能。 Among them, PB i is the power margin allocated by the system for the ith power domain, Pi is the power consumption in the first cycle corresponding to the ith power domain, P total is the sum of the power consumption corresponding to all power domains, PB total is the total amount of power budget provided by the system; it can be understood that the higher the power consumption of the power domain in the first cycle, the greater the data processing workload of the power domain, and the more it needs to be allocated. increase the frequency of its internal processor core, so as to improve the processing speed of the processor core and give full play to the performance of the processor core.
在第二种可选的方式中,频率控制器可以根据每个电源域所包含的至少一个处理器核在所述第一周期的负载,来为每个电源域分配功率预算;示例性的,可根据以下公式来进行功率预算的分配:In a second optional manner, the frequency controller may allocate a power budget to each power domain according to the load of at least one processor core included in each power domain in the first cycle; for example, The power budget can be allocated according to the following formula:
PB i=(A i/A total)*PB total PB i =(A i /A total )*PB total
其中,PB i为系统为第i个电源域分配的功率裕量,A i为第i个电源域对应的第一周期内的负载,A total为所有电源域对应的负载总和,PB total为系统所提供的功率预算总量;可以理解的,电源域在第一周期内对应的负载越大,则说明该电源域进行的数据处理工作量越大,则需要为其分配更多的功率预算,提高其内部处理器核的频率,这样就可以提高处理器核的处理速度,充分发挥处理器核的性能。 Among them, PB i is the power margin allocated by the system for the ith power domain, A i is the load in the first cycle corresponding to the ith power domain, A total is the sum of the loads corresponding to all power domains, and PB total is the system The total amount of power budget provided; it can be understood that the larger the corresponding load of the power domain in the first cycle, the greater the data processing workload of the power domain, the more power budget needs to be allocated, Increase the frequency of its internal processor core, so that the processing speed of the processor core can be increased and the performance of the processor core can be fully utilized.
在第三种可选的方式中,频率控制器可以根据每个电源域包含的至少一个处理器核在所述第二周期内的预测负载,来为每个电源域分配功率预算;示例性的,其所用的公式和 上述第二种可选方式中的公式类似,但A i则变为第i个电源域对应的第二周期内的预测负载,A total为所有电源域对应的预测负载总和,PB total为系统所提供的功率预算总量;可以理解的,预测负载能直接反应各电源域在第二周期内的功率需求,电源域在第二周期内对应的预测负载越大,则说明该电源域将要进行的数据处理工作量越大,则需要为其分配更多的功率预算,提高其内部处理器核的频率,这样就可以提高处理器核的处理速度,充分发挥处理器核的性能。 In a third optional manner, the frequency controller may allocate a power budget to each power domain according to the predicted load of at least one processor core included in each power domain in the second cycle; an exemplary , the formula used is similar to the formula in the second optional method above, but A i becomes the predicted load in the second cycle corresponding to the i-th power domain, and A total is the sum of the predicted loads corresponding to all power domains , PB total is the total power budget provided by the system; it is understandable that the predicted load can directly reflect the power demand of each power domain in the second cycle, and the larger the predicted load corresponding to the power domain in the second cycle, the The larger the data processing workload will be in this power domain, the more power budget needs to be allocated to it, and the frequency of its internal processor core needs to be increased. performance.
在第四种可选的方式中,频率控制器可以根据每个电源域所包含的至少一个处理器核在所述第一周期的负载和每个电源域包含的至少一个处理器核在所述第二周期内的预测负载,来为每个电源域分配功率预算,具体的,可以计算二者的指数加权移动平均值EWMA值,根据每个电源域对应的EWMA值,分配功率预算;这样可以结合处理器核的实施状态和预测状态,更合理的分配功率预算。In a fourth optional manner, the frequency controller may be based on the load of at least one processor core included in each power domain in the first cycle and the load of at least one processor core included in each power domain in the first cycle The predicted load in the second cycle is used to allocate the power budget for each power domain. Specifically, the exponentially weighted moving average EWMA value of the two can be calculated, and the power budget can be allocated according to the EWMA value corresponding to each power domain; Combine the implementation state and predicted state of the processor core to allocate the power budget more reasonably.
具体的,每个电源域所包含的至少一个处理器核在第一周期的功耗,每个电源域所包含的至少一个处理器核在所述第一周期的负载,和每个电源域包含的至少一个处理器核在所述第二周期内的预测负载可以任意组合,频率控制器可以任意选择一项或多项作为分配功率预算的依据,具体不做限定。Specifically, the power consumption of at least one processor core included in each power domain in the first cycle, the load of at least one processor core included in each power domain in the first cycle, and the The predicted loads of the at least one processor core in the second cycle can be combined arbitrarily, and the frequency controller can arbitrarily select one or more items as the basis for allocating the power budget, which is not specifically limited.
305、频率控制器根据分配的功率预算在第二周期内对所述每个电源域进行频率调节。305. The frequency controller performs frequency adjustment on each power domain in the second cycle according to the allocated power budget.
可以理解的,所述第二周期为所述第一周期的下一个周期。当频率控制器为每一个电源域分配好功率裕量后,就根据分配好的功率裕量,调整每个处理器核对应的电源域中的供电电压,然后根据功率预算和供电电压,确定内核对应的最大供电频率,同时根据最大供电频率来不断调整内核对应的工作频率。It can be understood that the second period is the next period of the first period. After the frequency controller allocates a power margin for each power domain, it adjusts the power supply voltage in the power domain corresponding to each processor core according to the allocated power margin, and then determines the core according to the power budget and power supply voltage. The corresponding maximum power supply frequency, and the operating frequency corresponding to the core is continuously adjusted according to the maximum power supply frequency.
本申请提供一种功率预算的分配方法,用以根据处理器核的功耗来调节为其分配的功率预算,然后再根据功率预算实施控制处理器核的频率,使得功率预算能得到更合理的分配,满足不同处理器核的需求。更进一步的,该种方式还可以根据功率预算来进行频率调节,这样,调节后的处理器核心能够更加符合其运行状态,提高处理器核心的工作效率。The present application provides a method for allocating a power budget, which is used to adjust the power budget allocated to a processor core according to the power consumption of the processor core, and then control the frequency of the processor core according to the power budget, so that the power budget can be more reasonable. Allocate to meet the needs of different processor cores. Furthermore, in this way, the frequency can also be adjusted according to the power budget, so that the adjusted processor core can be more in line with its operating state and improve the working efficiency of the processor core.
基于图2所示的处理器,图4示例性示出本申请实施例提供的另一种功率预算的分配方法对应的流程示意图,该方法适用于频率控制器,例如图2所示意的频率控制器24。本申请实施例中,处理器的供电方式是pre-die供电方式,即每一个电源域中包括多个处理器内核,处理器为属于同一个电源域的多个处理器共同供电;如图4所示,该方法包括:Based on the processor shown in FIG. 2 , FIG. 4 exemplarily shows a schematic flowchart corresponding to another method for allocating a power budget provided by an embodiment of the present application. The method is applicable to a frequency controller, such as the frequency control shown in FIG. 2 . device 24. In the embodiment of the present application, the power supply mode of the processor is a pre-die power supply mode, that is, each power supply domain includes multiple processor cores, and the processor supplies power to multiple processors belonging to the same power supply domain; as shown in Figure 4 As shown, the method includes:
401、频率控制器确定多个电源域中每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数。401. The frequency controller determines the number of processor cores that are in an active state in the first cycle and that are included in each of the multiple power supply domains.
在本实施例中,处理器的每个电源域包括多个处理器核,多个处理器核是集体供电的;可以理解的,当处理器核处于激活(超频)状态时,就需要为其提高供电频率,提高内核的性能。示例性的,处理器可以根据每个电源域在当前周期内处于激活状态的内核个数,为每个电源域分配下一周期内的功率裕量,电源域中处于激活状态的内核的个数越多,该电源域所需要分配的功率裕量就越多。In this embodiment, each power domain of the processor includes multiple processor cores, and the multiple processor cores are collectively powered; it can be understood that when the processor core is in an activated (overclocked) state, it needs to Increase the power supply frequency and improve the performance of the core. Exemplarily, the processor may allocate a power margin for each power domain in the next cycle according to the number of cores that are active in the current cycle for each power domain, and the number of active cores in the power domain. The more, the more power headroom that needs to be allocated for that power domain.
402、频率控制器确定多个电源域中每个电源域所包含的多个处理器核在第一周期的功耗。402. The frequency controller determines the power consumption of the multiple processor cores included in each of the multiple power domains in the first cycle.
可以理解的,频率控制器仍然可以将每个电源域所包含的多个处理器核在第一周期的功耗,作为分配功率裕量的条件,具体的,该步骤与图3所示实施例中的步骤301类似,具体不做限定。It can be understood that the frequency controller can still use the power consumption of the multiple processor cores included in each power domain in the first cycle as the condition for allocating the power margin. Specifically, this step is the same as the embodiment shown in FIG. 3 . Step 301 in is similar, which is not specifically limited.
403、频率控制器根据所述每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数和/或所述多个电源域中每个电源域所包含的多个处理器核在第一周期的功耗,将功率预算分配给所述每个电源域。403. The frequency controller is based on the number of processor cores that are in the active state in the first cycle and/or the number of processor cores included in each power supply domain and/or the number of each power supply domain in the multiple power supply domains. The power consumption of the plurality of processor cores included in the first cycle, with a power budget allocated to each of the power domains.
示例性的,在第一种实施方式中,可以根据以下公式来进行功率预算的分配:Exemplarily, in the first embodiment, the power budget can be allocated according to the following formula:
PB i=(N i/N total)*PB total PB i =(N i /N total )*PB total
其中,PB i为系统为第i个电源域分配的功率裕量,N i为第i个电源域中处于激活状态的处理器的个数,N total为所有电源域对应的处于激活状态的处理器核个数的总和,PB total为系统所提供的功率预算总量。示例性的,在第二种实施方式中,频率控制器可以根据每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数和所述多个电源域中每个电源域所包含的多个处理器核在第一周期的功耗,来进行功率预算的分配;即将功率预算分为两部分PB totalA和PB totalB,其中PB totalA用于根据电源域对应平均功耗来进行功率预算的分配,PB totalB用于根据电源域中处于激活状态的内核的个数来进行分配,最后将二者分配的功率预算相加,得到最终分配给电源域的功率预算。 Among them, PB i is the power margin allocated by the system for the ith power domain, Ni is the number of active processors in the ith power domain, and N total is the active processing corresponding to all power domains PB total is the total power budget provided by the system. Exemplarily, in the second implementation manner, the frequency controller may be based on the number of processor cores that are active in the first cycle and the plurality of power sources according to the plurality of processor cores included in each power supply domain. The power consumption of multiple processor cores contained in each power domain in the domain in the first cycle is used to allocate the power budget; that is, the power budget is divided into two parts, PB totalA and PB totalB , where PB totalA is used according to the power domain. The power budget is allocated according to the average power consumption. PB totalB is used to allocate according to the number of active cores in the power domain. Finally, the power budget allocated by the two is added to obtain the power finally allocated to the power domain. budget.
具体的,功率预算的计算公式还可以有多种,只要满足为电源域分配的功率预算与电源域对应的功耗越大,或者激活状态的内核的个数越多呈正相关即可,具体形式不做限定。Specifically, there can be various formulas for calculating the power budget, as long as the power budget allocated to the power domain is positively correlated with the power consumption corresponding to the power domain, or the number of cores in the active state is positively correlated. Not limited.
404、频率控制器根据分配的功率预算在第二周期内对所述每个电源域进行频率调节。404. The frequency controller performs frequency adjustment on each power domain in the second cycle according to the allocated power budget.
可以理解的,该步骤与图3所示实施例中的步骤305类似,在此不做赘述。It can be understood that this step is similar to step 305 in the embodiment shown in FIG. 3 , and details are not described here.
根据前述方法,图5为本申请实施例提供的频率控制器500的结构示意图,该频率控制器500可以为芯片或电路,比如可设置于处理器中的芯片或电路。该频率控制器500可以对应上述方法中的频率控制器24。该频率控制器500可以实现如图3中所示的任一项或任多项对应的方法的步骤。如图5所示,该频率控制器500可以包括监测电路501和控制电路502。进一步的,该频率控制器500还可以包括总线系统,监测电路501和控制电路502可以通过总线系统连接。且,监测电路501还可以通过总线系统与每个处理器核心的功耗检测器连接,控制电路502还可以通过总线系统与每个处理器核心的频率调节器连接。According to the foregoing method, FIG. 5 is a schematic structural diagram of a frequency controller 500 provided by an embodiment of the present application. The frequency controller 500 may be a chip or a circuit, such as a chip or a circuit that may be provided in a processor. The frequency controller 500 may correspond to the frequency controller 24 in the above method. The frequency controller 500 may implement any one or more of the corresponding method steps as shown in FIG. 3 . As shown in FIG. 5 , the frequency controller 500 may include a monitoring circuit 501 and a control circuit 502 . Further, the frequency controller 500 may further include a bus system, and the monitoring circuit 501 and the control circuit 502 may be connected through the bus system. Moreover, the monitoring circuit 501 can also be connected to the power consumption detector of each processor core through the bus system, and the control circuit 502 can also be connected to the frequency regulator of each processor core through the bus system.
本申请实施例中,监测电路501可以确定多个电源域中每个电源域所包含的至少一个处理器核在第一周期的功耗,并发送给控制电路502。对应的,控制电路502可以根据所述每个电源域所包含的至少一个处理器核在第一周期的功耗,将功率预算分配给所述每个电源域,并根据分配的功率预算控制频率调节器进行频率调节。In this embodiment of the present application, the monitoring circuit 501 may determine the power consumption of at least one processor core included in each of the multiple power supply domains in the first cycle, and send the power consumption to the control circuit 502 . Correspondingly, the control circuit 502 may allocate a power budget to each power domain according to the power consumption of at least one processor core included in each power domain in the first cycle, and control the frequency according to the allocated power budget. The regulator performs frequency adjustment.
根据前述方法,图6为本申请实施例提供的另一种频率控制器600的结构示意图,该频率控制器600可以为芯片或电路,比如可设置于处理器中的芯片或电路。该频率控制器600可以对应上述方法中的频率控制器24。该频率控制器600可以实现如图4中所示的任一项或任多项对应的方法的步骤。如图6所示,该频率控制器600可以包括监测电路601和控制电路602。进一步的,该频率控制器600还可以包括总线系统,监测电路601和控制电路602可以通过总线系统连接。且,监测电路601还可以通过总线系统与每个处理器 核心的功耗检测器连接,控制电路602还可以通过总线系统与每个处理器核心的频率调节器连接。According to the foregoing method, FIG. 6 is a schematic structural diagram of another frequency controller 600 provided by an embodiment of the present application. The frequency controller 600 may be a chip or a circuit, such as a chip or a circuit that may be provided in a processor. The frequency controller 600 may correspond to the frequency controller 24 in the above method. The frequency controller 600 may implement any one or more of the corresponding method steps as shown in FIG. 4 . As shown in FIG. 6 , the frequency controller 600 may include a monitoring circuit 601 and a control circuit 602 . Further, the frequency controller 600 may also include a bus system, and the monitoring circuit 601 and the control circuit 602 may be connected through the bus system. Moreover, the monitoring circuit 601 can also be connected to the power consumption detector of each processor core through the bus system, and the control circuit 602 can also be connected to the frequency regulator of each processor core through the bus system.
本申请实施例中,监测电路601可以确定确定多个电源域中每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数,并发送给控制电路602。对应的,控制电路602可以每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数,将功率预算分配给所述每个电源域,并根据分配的功率预算控制频率调节器进行频率调节。In this embodiment of the present application, the monitoring circuit 601 may determine the number of processor cores that are in the active state in the first cycle and that are included in each power supply domain in the multiple power supply domains, and send them to the control circuit 602. Correspondingly, the control circuit 602 can allocate the power budget to each power domain according to the number of the processor cores in the active state of the plurality of processor cores included in each power domain, and according to the allocation The power budget controls the frequency regulator for frequency regulation.
根据前述方法,图7为本申请实施例提供的另一种频率控制器700的结构示意图,该频率控制器700可以为芯片或电路,比如可设置于处理器中的芯片或电路。该频率控制器700可以对应上述方法中的频率控制器24。该频率控制器700可以实现如上图3中所示的任一项或任多项对应的方法的步骤。如图7所示,该频率控制器700可以包括确定单元701、分配单元702和调节单元703。According to the foregoing method, FIG. 7 is a schematic structural diagram of another frequency controller 700 according to an embodiment of the present application. The frequency controller 700 may be a chip or a circuit, such as a chip or circuit that may be provided in a processor. The frequency controller 700 may correspond to the frequency controller 24 in the above method. The frequency controller 700 may implement any one or more of the corresponding method steps shown in FIG. 3 above. As shown in FIG. 7 , the frequency controller 700 may include a determination unit 701 , an allocation unit 702 and an adjustment unit 703 .
确定单元701,用于确定多个电源域中每个电源域所包含的至少一个处理器核在第一周期的功耗。The determining unit 701 is configured to determine the power consumption in the first cycle of at least one processor core included in each power supply domain of the multiple power supply domains.
分配单元702,用于根据所述每个电源域所包含的至少一个处理器核在第一周期的功耗,将功率预算分配给所述每个电源域。The allocating unit 702 is configured to allocate a power budget to each power domain according to the power consumption of at least one processor core included in each power domain in the first cycle.
调节单元703,用于根据分配的功率预算在第二周期内对所述每个电源域进行频率调节,所述第二周期为所述第一周期的下一个周期。An adjustment unit 703, configured to perform frequency adjustment on each power domain in a second period according to the allocated power budget, where the second period is the next period of the first period.
在一个可选的实施方式中,所述每个电源域所包含的至少一个处理器核在第一周期的功耗为所述每个电源域所包含的至少一个处理器核在第一周期的实时功耗或者平均功耗。In an optional implementation manner, the power consumption of at least one processor core included in each power domain in the first cycle is the power consumption of at least one processor core included in each power domain in the first cycle Real-time power consumption or average power consumption.
在一个可选的实施方式中,所述频率控制器700还包括计算单元704。In an optional embodiment, the frequency controller 700 further includes a calculation unit 704 .
所述计算单元704,用于根据所述每个电源域所包含的至少一个处理器核在第一周期的功耗,计算所述每个电源域所包含的至少一个处理器核在所述第一周期的负载。The computing unit 704 is configured to calculate the power consumption of the at least one processor core included in each power domain in the first cycle according to the power consumption of the at least one processor core included in each power domain. one cycle load.
在一个可选的实施方式中,所述计算单元704,还用于根据所述每个电源域所包含的至少一个处理器核在所述第一周期的负载,预测所述每个电源域包含的至少一个处理器核在所述第二周期内的预测负载。In an optional implementation manner, the computing unit 704 is further configured to predict, according to the load of at least one processor core included in each power domain in the first cycle, that each power domain contains The predicted load of the at least one processor core in the second cycle.
在一个可选的实施方式中,所述分配单元702,具体用于根据所述每个电源域所包含的至少一个处理器核在第一周期的功耗,所述每个电源域所包含的至少一个处理器核在所述第一周期的负载,和所述每个电源域包含的至少一个处理器核在所述第二周期内的预测负载中的任意一项,将功率预算分配给所述每个电源域。In an optional implementation manner, the allocating unit 702 is specifically configured to, according to the power consumption of at least one processor core included in each power domain in the first cycle, the Any one of the load of at least one processor core during the first cycle and the predicted load of at least one processor core included in each power domain during the second cycle, allocating a power budget to all for each power domain.
可以理解的是,上述频率控制器700中各个单元的功能可以参考相应方法实施例的实现,此处不再赘述。It can be understood that, the functions of each unit in the above-mentioned frequency controller 700 may refer to the implementation of the corresponding method embodiments, which will not be repeated here.
应理解,以上频率控制器700的单元的划分仅仅是一种逻辑功能的划分,实际实现时应理解,以上频率控制器700的单元的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。本申请实施例中,获取单元701可以由上述图5的监测电路501实现,确定单元702和调节单元703可以由上述图5的控制电路502实现。It should be understood that the above division of the units of the frequency controller 700 is only a division of a logical function. In actual implementation, it should be understood that the division of the above units of the frequency controller 700 is only a division of a logical function, and in actual implementation, all Or partially integrated into one physical entity, or physically separate. In this embodiment of the present application, the acquiring unit 701 may be implemented by the monitoring circuit 501 in FIG. 5 above, and the determining unit 702 and the adjusting unit 703 may be implemented by the control circuit 502 in FIG. 5 above.
根据前述方法,图8为本申请实施例提供的另一种频率控制器800的结构示意图,该频率控制器800可以为芯片或电路,比如可设置于处理器中的芯片或电路。该频率控制器800可以对应上述方法中的频率控制器24。该频率控制器800可以实现如上图4中所示的任一项或任多项对应的方法的步骤。如图8所示,该频率控制器800可以包括确定单元801、分配单元802和调节单元803。According to the foregoing method, FIG. 8 is a schematic structural diagram of another frequency controller 800 provided by an embodiment of the present application. The frequency controller 800 may be a chip or a circuit, such as a chip or a circuit that may be provided in a processor. The frequency controller 800 may correspond to the frequency controller 24 in the above method. The frequency controller 800 may implement any one or more of the corresponding method steps shown in FIG. 4 above. As shown in FIG. 8 , the frequency controller 800 may include a determination unit 801 , an allocation unit 802 and an adjustment unit 803 .
确定单元801,用于确定多个电源域中每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数。The determining unit 801 is configured to determine the number of the processor cores that are in an active state in the first cycle and included in each power supply domain in the multiple power supply domains.
分配单元802,用于根据所述每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数,将功率预算分配给所述每个电源域。The allocating unit 802 is configured to allocate a power budget to each power supply domain according to the number of the processor cores in the active state in the first cycle included in each power supply domain.
调节单元803,用于根据分配的功率预算在第二周期内对所述每个电源域进行频率调节,所述第二周期为所述第一周期的下一个周期。An adjustment unit 803, configured to perform frequency adjustment on each power domain in a second period according to the allocated power budget, where the second period is the next period of the first period.
在一个可选的实施方式中,所述确定单元801,还用于确定所述多个电源域中每个电源域所包含的多个处理器核在第一周期的功耗;In an optional implementation manner, the determining unit 801 is further configured to determine the power consumption in the first cycle of the multiple processor cores included in each of the multiple power supply domains;
所述分配单元802,用于根据所述每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数和所述多个电源域中每个电源域所包含的多个处理器核在第一周期的功耗,将功率预算分配给所述每个电源域。The allocating unit 802 is configured to calculate the number of processor cores that are in an active state in the first cycle and each power domain in the plurality of power domains according to the number of processor cores included in each power domain. The power consumption of the included plurality of processor cores in the first cycle, with a power budget allocated to each of the power domains.
可以理解的是,上述频率控制器800中各个单元的功能可以参考相应方法实施例的实现,此处不再赘述。It can be understood that, the functions of each unit in the above-mentioned frequency controller 800 may refer to the implementation of the corresponding method embodiments, which will not be repeated here.
应理解,以上频率控制器800的单元的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。本申请实施例中,获取单元801可以由上述图6的监测电路601实现,确定单元802和调节单元803可以由上述图6的控制电路602实现。It should be understood that the above division of the units of the frequency controller 800 is only a division of logical functions, and in actual implementation, all or part of them may be integrated into one physical entity, or may be physically separated. In this embodiment of the present application, the obtaining unit 801 may be implemented by the monitoring circuit 601 in FIG. 6 above, and the determining unit 802 and the adjusting unit 803 may be implemented by the control circuit 602 in FIG. 6 above.
根据本申请实施例提供的方法,本申请还提供一种计算机程序产品,该计算机程序产品包括:计算机程序代码,当该计算机程序代码在计算机上运行时,使得该计算机执行图1至图4所示实施例中任意一个实施例的方法。According to the method provided by the embodiment of the present application, the present application also provides a computer program product, the computer program product includes: computer program code, when the computer program code is run on a computer, the computer is made to execute the steps shown in FIG. 1 to FIG. 4 . The method of any one of the illustrated embodiments.
根据本申请实施例提供的方法,本申请还提供一种计算机可读存储介质,该计算机可读介质存储有程序代码,当该程序代码在计算机上运行时,使得该计算机执行图1至图5所示实施例中任意一个实施例的方法。According to the method provided by the embodiment of the present application, the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores program codes, and when the program codes are run on a computer, the computer is made to execute FIG. 1 to FIG. 5 . The method of any one of the illustrated embodiments.
在本说明书中使用的术语“部件”、“模块”、“系统”等用于表示计算机相关的实体、硬件、固件、硬件和软件的组合、软件、或执行中的软件。例如,部件可以是但不限于,在处理器上运行的进程、处理器、对象、可执行文件、执行线程、程序和/或计算机。通过图示,在计算设备上运行的应用和计算设备都可以是部件。一个或多个部件可驻留在进程和/或执行线程中,部件可位于一个计算机上和/或分布在两个或更多个计算机之间。此外,这些部件可从在上面存储有各种数据结构的各种计算机可读介质执行。部件可例如根据具有一个或多个数据分组(例如来自与本地系统、分布式系统和/或网络间的另一部件交互的二个部件的数据,例如通过信号与其它系统交互的互联网)的信号通过本地和/或远程进程来通信。The terms "component", "module", "system" and the like are used in this specification to refer to a computer-related entity, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component may be, but is not limited to, a process running on a processor, a processor, an object, an executable, a thread of execution, a program, and/or a computer. By way of illustration, both an application running on a computing device and the computing device may be components. One or more components may reside within a process and/or thread of execution, and a component may be localized on one computer and/or distributed between two or more computers. In addition, these components can execute from various computer readable media having various data structures stored thereon. A component may, for example, be based on a signal having one or more data packets (eg, data from two components interacting with another component between a local system, a distributed system, and/or a network, such as the Internet interacting with other systems via signals) Communicate through local and/or remote processes.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各种说明性逻辑块(illustrative logical block)和步骤(step),能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the various illustrative logical blocks and steps described in connection with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware accomplish. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this. should be covered within the scope of protection of this application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims (22)

  1. 一种功率预算的分配方法,其特征在于,所述方法包括:A method for allocating a power budget, wherein the method comprises:
    确定多个电源域中每个电源域所包含的至少一个处理器核在第一周期的功耗;determining the power consumption of at least one processor core included in each of the multiple power domains in the first cycle;
    根据所述每个电源域所包含的至少一个处理器核在第一周期的功耗,将功率预算分配给所述每个电源域,以使得所述每个电源域在第二周期内基于分配到的功率预算进行频率调节,所述第二周期为所述第一周期的下一个周期。Allocate a power budget to each power domain according to the power consumption of at least one processor core included in the each power domain in the first cycle, so that each power domain is based on the allocation in the second cycle Frequency adjustment is performed on the obtained power budget, and the second period is the next period of the first period.
  2. 根据权利要求1所述的方法,其特征在于,所述每个电源域所包含的至少一个处理器核在第一周期的功耗为所述每个电源域所包含的至少一个处理器核在第一周期的实时功耗或者平均功耗。The method according to claim 1, wherein the power consumption of the at least one processor core included in each power domain in the first cycle is equal to the power consumption of the at least one processor core included in each power domain in the first cycle Real-time or average power consumption for the first cycle.
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method according to claim 2, wherein the method further comprises:
    根据所述每个电源域所包含的至少一个处理器核在第一周期的功耗,计算所述每个电源域所包含的至少一个处理器核在所述第一周期的负载。According to the power consumption of at least one processor core included in each power domain in the first cycle, the load of at least one processor core included in each power domain in the first cycle is calculated.
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method according to claim 3, wherein the method further comprises:
    根据所述每个电源域所包含的至少一个处理器核在所述第一周期的负载,预测所述每个电源域包含的至少一个处理器核在所述第二周期内的预测负载。According to the load of at least one processor core included in each power domain in the first cycle, the predicted load of at least one processor core included in each power domain in the second cycle is predicted.
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述每个电源域所包含的至少一个处理器核在第一周期的功耗,将功率预算分配给所述每个电源域,包括:The method according to claim 4, wherein the power budget is allocated to each power domain according to the power consumption of at least one processor core included in each power domain in the first cycle, include:
    根据所述每个电源域所包含的至少一个处理器核在第一周期的功耗,所述每个电源域所包含的至少一个处理器核在所述第一周期的负载,和所述每个电源域包含的至少一个处理器核在所述第二周期内的预测负载中的任意一项或多项,将功率预算分配给所述每个电源域。According to the power consumption of at least one processor core included in each power domain in the first cycle, the load of at least one processor core included in each power domain during the first cycle, and the Allocating a power budget to each of the power domains for any one or more of the predicted loads of at least one processor core included in the plurality of power domains in the second cycle.
  6. 一种功率预算的分配方法,其特征在于,所述方法包括:A method for allocating a power budget, wherein the method comprises:
    确定多个电源域中每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数;determining the number of processor cores that are active in the first cycle of multiple processor cores included in each of the multiple power domains;
    根据所述每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数,将功率预算分配给所述每个电源域,以使得所述每个电源域在第二周期内基于分配到的功率预算进行频率调节,所述第二周期为所述第一周期的下一个周期。Allocate a power budget to each power supply domain according to the number of processor cores in the active state of the plurality of processor cores included in each power supply domain, so that each power supply The domain performs frequency adjustment based on the allocated power budget during a second period, the second period being the next period of the first period.
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method according to claim 6, wherein the method further comprises:
    确定所述多个电源域中每个电源域所包含的多个处理器核在第一周期的功耗;determining the power consumption of the plurality of processor cores included in each of the plurality of power domains in the first cycle;
    所述根据所述每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数,将功率预算分配给所述每个电源域,包括:The allocating a power budget to each power domain according to the number of processor cores in the active state of the plurality of processor cores included in each power domain, including:
    根据所述每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数和所述多个电源域中每个电源域所包含的多个处理器核在第一周期的功耗,将功率预算分配给所述每个电源域。According to the number of processor cores that are active in the first cycle and the number of processor cores included in each power domain in the multiple power domains During the first cycle of power consumption, a power budget is allocated to each of the power domains.
  8. 一种频率控制器,其特征在于,包括:A frequency controller, characterized in that it includes:
    确定单元,用于确定多个电源域中每个电源域所包含的至少一个处理器核在第一周期 的功耗;a determining unit, configured to determine the power consumption of at least one processor core included in each of the multiple power domains in the first cycle;
    分配单元,用于根据所述每个电源域所包含的至少一个处理器核在第一周期的功耗,将功率预算分配给所述每个电源域;an allocation unit, configured to allocate a power budget to each power domain according to the power consumption of at least one processor core included in each power domain in the first cycle;
    调节单元,用于根据分配的功率预算在第二周期内对所述每个电源域进行频率调节,所述第二周期为所述第一周期的下一个周期。An adjustment unit, configured to adjust the frequency of each power domain in a second period according to the allocated power budget, where the second period is a period next to the first period.
  9. 根据权利要求8所述的频率控制器,其特征在于,所述每个电源域所包含的至少一个处理器核在第一周期的功耗为所述每个电源域所包含的至少一个处理器核在第一周期的实时功耗或者平均功耗。The frequency controller according to claim 8, wherein the power consumption of at least one processor core included in each power domain in the first cycle is the same as that of at least one processor included in each power domain The real-time or average power consumption of the core in the first cycle.
  10. 根据权利要求9所述的频率控制器,其特征在于,所述频率控制器还包括计算单元;The frequency controller according to claim 9, wherein the frequency controller further comprises a calculation unit;
    所述计算单元,用于根据所述每个电源域所包含的至少一个处理器核在第一周期的功耗,计算所述每个电源域所包含的至少一个处理器核在所述第一周期的负载。The computing unit is configured to calculate the power consumption of at least one processor core included in each power domain in the first cycle according to the power consumption of at least one processor core included in each power domain. cycle load.
  11. 根据权利要求10所述的频率控制器,其特征在于,The frequency controller of claim 10, wherein:
    所述计算单元,还用于根据所述每个电源域所包含的至少一个处理器核在所述第一周期的负载,预测所述每个电源域包含的至少一个处理器核在所述第二周期内的预测负载。The computing unit is further configured to predict, according to the load of at least one processor core included in each power domain in the first cycle, that the at least one processor core included in each power domain will perform in the first cycle. Predicted load for two cycles.
  12. 根据权利要求8至11任一项所述的频率控制器,其特征在于,The frequency controller according to any one of claims 8 to 11, wherein:
    所述分配单元,具体用于根据所述每个电源域所包含的至少一个处理器核在第一周期的功耗,所述每个电源域所包含的至少一个处理器核在所述第一周期的负载,和所述每个电源域包含的至少一个处理器核在所述第二周期内的预测负载中的任意一项,将功率预算分配给所述每个电源域。The allocating unit is specifically configured to, according to the power consumption of at least one processor core included in each power domain in the first cycle, the at least one processor core included in each power domain in the first cycle. A power budget is allocated to each power domain according to the load of the cycle, and any one of the predicted load of at least one processor core included in each power domain during the second cycle.
  13. 一种频率控制器,其特征在于,所述频率控制器包括:A frequency controller, characterized in that the frequency controller comprises:
    确定单元,用于确定多个电源域中每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数;a determining unit, configured to determine the number of processor cores that are in an active state in the first cycle of the multiple processor cores included in each power supply domain in the multiple power supply domains;
    分配单元,用于根据所述每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数,将功率预算分配给所述每个电源域;an allocation unit, configured to allocate a power budget to each of the power domains according to the number of processor cores in the active state of the plurality of processor cores included in each of the power domains;
    调节单元,用于根据分配的功率预算在第二周期内对所述每个电源域进行频率调节,所述第二周期为所述第一周期的下一个周期。An adjustment unit, configured to adjust the frequency of each power supply domain in a second period according to the allocated power budget, where the second period is the next period of the first period.
  14. 根据权利要求13所述的频率控制器,其特征在于,The frequency controller of claim 13, wherein:
    所述确定单元,还用于确定所述多个电源域中每个电源域所包含的多个处理器核在第一周期的功耗;The determining unit is further configured to determine the power consumption in the first cycle of the multiple processor cores included in each of the multiple power supply domains;
    所述分配单元,用于根据所述每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数和所述多个电源域中每个电源域所包含的多个处理器核在第一周期的功耗,将功率预算分配给所述每个电源域。The allocating unit is configured to, according to the number of processor cores in the active state of the plurality of processor cores included in each power supply domain and the number of processor cores in each power supply domain in the plurality of power supply domains The power consumption of the plurality of processor cores included in the first cycle, with a power budget allocated to each of the power domains.
  15. 一种处理器,其特征在于,所述处理器包括处理器核、功耗检测器、功耗控制器和频率调节器;所述功耗检测器和所述频率调节器分别于所述功耗控制器相连;A processor, characterized in that the processor includes a processor core, a power consumption detector, a power consumption controller and a frequency regulator; the power consumption detector and the frequency regulator are connected to the controller;
    所述功耗检测器,用于检测确定多个电源域中每个电源域所包含的至少一个处理器核在第一周期的功耗;the power consumption detector, configured to detect and determine the power consumption of at least one processor core included in each of the multiple power domains in the first cycle;
    所述功耗控制器,用于根据所述每个电源域所包含的至少一个处理器核在第一周期的功耗,将功率预算分配给所述每个电源域;the power consumption controller, configured to allocate a power budget to each power supply domain according to the power consumption of at least one processor core included in each power supply domain in the first cycle;
    所述频率调节器,用于根据分配的功率预算在第二周期内对所述每个电源域进行频率调节,其中,所述第二周期为所述第一周期的下一个周期。The frequency regulator is configured to perform frequency regulation on each power domain in a second cycle according to the allocated power budget, where the second cycle is a next cycle of the first cycle.
  16. 根据权利要求15所述的处理器,其特征在于,所述每个电源域所包含的至少一个处理器核在第一周期的功耗为所述每个电源域所包含的至少一个处理器核在第一周期的实时功耗或者平均功耗。The processor according to claim 15, wherein the power consumption of the at least one processor core included in each power domain in the first cycle is the same as that of the at least one processor core included in each power domain The real-time power consumption or average power consumption during the first cycle.
  17. 根据权利要求16所述的处理器,其特征在于,所述功耗控制器还用于根据所述每个电源域所包含的至少一个处理器核在第一周期的功耗,计算所述每个电源域所包含的至少一个处理器核在所述第一周期的负载。The processor according to claim 16, wherein the power consumption controller is further configured to calculate the power consumption of each power supply domain according to the power consumption of at least one processor core included in each power supply domain in the first cycle. The load of at least one processor core included in each power domain during the first cycle.
  18. 根据权利要求17所述的处理器,其特征在于,所述功耗控制器还用于根据所述每个电源域所包含的至少一个处理器核在所述第一周期的负载,预测所述每个电源域包含的至少一个处理器核在所述第二周期内的预测负载。The processor according to claim 17, wherein the power consumption controller is further configured to predict the load according to the load of at least one processor core included in each power domain in the first cycle The predicted load of at least one processor core included in each power domain during the second cycle.
  19. 根据权利要求17所述的处理器,其特征在于,所述功耗控制器具体用于根据所述每个电源域所包含的至少一个处理器核在第一周期的功耗,所述每个电源域所包含的至少一个处理器核在所述第一周期的负载,和所述每个电源域包含的至少一个处理器核在所述第二周期内的预测负载中的任意一项,将功率预算分配给所述每个电源域。The processor according to claim 17, wherein the power consumption controller is specifically configured to, according to the power consumption of at least one processor core included in each power domain in the first cycle, each Any one of the load of at least one processor core included in the power domain in the first cycle and the predicted load of at least one processor core included in each power domain during the second cycle, will be A power budget is allocated to each of the power domains.
  20. 一种处理器,其特征在于,所述处理器包括处理器核、功耗控制器和频率调节器;所述频率调节器分别于所述功耗控制器相连;A processor, characterized in that the processor includes a processor core, a power consumption controller and a frequency regulator; the frequency regulators are respectively connected to the power consumption controller;
    所述功耗控制器,确定多个电源域中每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数;根据所述每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数,将功率预算分配给所述每个电源域;The power consumption controller determines the number of processor cores that are in an active state in the first cycle of multiple processor cores included in each power supply domain in the multiple power supply domains; the number of processor cores in the active state of the plurality of processor cores in the first cycle, allocating a power budget to each power domain;
    所述频率调节器,用于根据分配的功率预算在第二周期内对所述每个电源域进行频率调节,其中,所述第二周期为所述第一周期的下一个周期。The frequency regulator is configured to perform frequency regulation on each power domain in a second cycle according to the allocated power budget, where the second cycle is a next cycle of the first cycle.
  21. 根据权利要求20所述的处理器,其特征在于,所述处理器还包括功耗检测器,所述功耗检测器与所述功耗控制器相连;The processor of claim 20, wherein the processor further comprises a power consumption detector, the power consumption detector is connected to the power consumption controller;
    所述功耗,用于确定所述多个电源域中每个电源域所包含的多个处理器核在第一周期的功耗;The power consumption is used to determine the power consumption of the multiple processor cores included in each of the multiple power domains in the first cycle;
    所述功耗控制器,具体用于根据所述每个电源域所包含的多个处理器核在第一周期内处于激活状态的处理器核的个数和所述多个电源域中每个电源域所包含的多个处理器核在第一周期的功耗,将功率预算分配给所述每个电源域。The power consumption controller is specifically configured to, according to the number of processor cores in the active state of the multiple processor cores included in each power supply domain in the first cycle and the number of each of the multiple power supply domains The power consumption of the plurality of processor cores included in the power domain in the first cycle, and the power budget is allocated to each power domain.
  22. 一种电子设备,其特征在于,包括若权利要求15至21任一项所述的处理器。An electronic device, characterized by comprising the processor according to any one of claims 15 to 21.
PCT/CN2020/112688 2020-08-31 2020-08-31 Power budget allocation method and related device WO2022041251A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2020/112688 WO2022041251A1 (en) 2020-08-31 2020-08-31 Power budget allocation method and related device
CN202080103358.0A CN116997878A (en) 2020-08-31 2020-08-31 Power budget allocation method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/112688 WO2022041251A1 (en) 2020-08-31 2020-08-31 Power budget allocation method and related device

Publications (1)

Publication Number Publication Date
WO2022041251A1 true WO2022041251A1 (en) 2022-03-03

Family

ID=80354381

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/112688 WO2022041251A1 (en) 2020-08-31 2020-08-31 Power budget allocation method and related device

Country Status (2)

Country Link
CN (1) CN116997878A (en)
WO (1) WO2022041251A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140331069A1 (en) * 2013-05-01 2014-11-06 Advanced Micro Devices, Inc. Power management for multiple compute units
CN104508594A (en) * 2012-08-31 2015-04-08 英特尔公司 Configuring power management functionality in a processor
CN104778112A (en) * 2014-01-10 2015-07-15 台湾积体电路制造股份有限公司 System and method of adaptive voltage frequency scaling
CN105723299A (en) * 2014-03-28 2016-06-29 联发科技股份有限公司 Method for performing system power budgeting within electronic device, and associated apparatus
CN108255774A (en) * 2016-12-28 2018-07-06 三星电子株式会社 Application processor, computing system and its operating method including the processor
CN110941325A (en) * 2019-10-17 2020-03-31 华为技术有限公司 Frequency modulation method and device of processor and computing equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104508594A (en) * 2012-08-31 2015-04-08 英特尔公司 Configuring power management functionality in a processor
US20140331069A1 (en) * 2013-05-01 2014-11-06 Advanced Micro Devices, Inc. Power management for multiple compute units
CN104778112A (en) * 2014-01-10 2015-07-15 台湾积体电路制造股份有限公司 System and method of adaptive voltage frequency scaling
CN105723299A (en) * 2014-03-28 2016-06-29 联发科技股份有限公司 Method for performing system power budgeting within electronic device, and associated apparatus
CN108255774A (en) * 2016-12-28 2018-07-06 三星电子株式会社 Application processor, computing system and its operating method including the processor
CN110941325A (en) * 2019-10-17 2020-03-31 华为技术有限公司 Frequency modulation method and device of processor and computing equipment

Also Published As

Publication number Publication date
CN116997878A (en) 2023-11-03

Similar Documents

Publication Publication Date Title
GB2544609B (en) Granular quality of service for computing resources
US9158359B2 (en) Adaptive voltage scaling using a serial interface
EP2808759A1 (en) Controlling power delivery to a processor via a bypass
US9164931B2 (en) Clamping of dynamic capacitance for graphics
US10528119B2 (en) Dynamic power routing to hardware accelerators
US20190146842A1 (en) Method and Apparatus for Allocating Computing Resources of Processor
US8589718B2 (en) Performance scaling device, processor having the same, and performance scaling method thereof
KR20150063543A (en) Controlling configurable peak performance limits of a processor
US20160054788A1 (en) Parameter-Based Sensor Selection
WO2017131907A2 (en) Systems and methods for providing power efficiency via memory latency control
KR101655030B1 (en) Dynamic voltage frequency scaling method using slack-distribution based on task-characteristics, execution program thereof method and recorded medium of the program
TWI688848B (en) System and method for dynamic power capping and load balance management for a multi-node system
JP2022036904A (en) Core voltage selection device and method with good energy efficiency
US10539995B2 (en) Performance boosting method and system of semiconductor device
US20080313483A1 (en) Method and System for Power Management
US9213381B2 (en) Voltage regulator dynamically determining whether requested power transition can be supported
US9529403B2 (en) Method and apparatus for providing telemetry for power management functions
WO2022041251A1 (en) Power budget allocation method and related device
TW201541803A (en) Portable electronic apparatus and charging control method thereof
WO2013073013A1 (en) Power control device, electronic computer and power control method
US10038430B2 (en) System for controlliing gatings of a multi-core processor
Qu Power management of multicore multiple voltage embedded systems by task scheduling
CN104657327B (en) The multicore architecture of shared interruption for low-power consumption application
US20190391846A1 (en) Semiconductor integrated circuit, cpu allocation method, and program
WO2023082723A1 (en) Processor circuit, power supply control method and terminal device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20950920

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 202080103358.0

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20950920

Country of ref document: EP

Kind code of ref document: A1