Apparatus and method for workload, power, and performance aware dynamic core frequency ramp rate

By using hardware-guided scheduling interfaces and heterogeneous processor technology in computer processors to dynamically adjust the core frequency ramp rate, the problems of poor power consumption and energy efficiency in the existing technology are solved, and flexible power management and performance optimization are achieved. .

CN118733211APending Publication Date: 2024-10-01INTEL CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311810302.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-30
Filing Date
2023-12-26
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

When existing computer processors dynamically adjust core frequency ramp rates, they cannot effectively dynamically change according to system modes and application requirements, resulting in poor power consumption and energy efficiency, and cannot flexibly adjust core frequency ramp rates in different power modes.

Method used

Using a hardware-guided scheduling interface based on heterogeneous processors, it dynamically calculates processor performance and energy efficiency capabilities, provides power and performance feedback information for each core, dynamically adjusts the core frequency ramp rate, and dynamically selects cores based on workload types and system modes. Frequency ramp rate.

Benefits of technology

It realizes dynamic core frequency ramp rate adjustment under different system modes and application requirements, optimizes power consumption and energy efficiency, extends battery life, and improves system performance and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733211A_ABST
    Figure CN118733211A_ABST
Patent Text Reader

Abstract

An apparatus and method for workload, power, and performance aware dynamic core frequency ramp rate. For example, one embodiment of a processor comprises: a processor comprising: a plurality of cores, a first core of the plurality of cores to execute an application comprising one or more workloads; and a dynamic ramp rate selection circuit to determine a core frequency ramp rate to be used to increase a frequency of the first core based at least in part on a workload type of a first workload of the one or more workloads.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art Technical Field

[0001] Embodiments of the present invention generally relate to the field of computer processors. More specifically, embodiments relate to apparatus and methods for workload, power, and performance-aware dynamic core frequency ramp rates. BACKGROUND

[0002] The existing core frequency scaling algorithm is a function of core activity, the energy performance preference (EPP) value of each application thread, and the SoC power budget available for each core. The algorithm runs periodically and estimates the optimal core frequency based on the above inputs and ramps the core frequency to the target frequency.

[0003] Some client SoCs do not limit the ramp rate of the core frequency. For example, if an application is launched on a core that is idle, the core frequency can be ramped from its minimum frequency to one of its highest frequencies in a single transition. Sharp frequency ramps help improve responsiveness, but can prove detrimental in terms of power consumption and energy efficiency. For example, for application load times that can tolerate latency, higher core frequencies result in higher average power consumption and lower energy efficiency with no increased visible benefit to the user experience. Slower ramp rates are also desirable when the system is in a reduced power mode, where the goal is to have a lower power floor to extend battery life. Today's SoCs have no way to limit the core frequency ramp rate, let alone dynamically change the ramp rate at runtime based on system mode or application needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0004] A better understanding of the present invention can be obtained from the following detailed description in conjunction with the following drawings, in which:

[0005] Figure 1 is a block diagram of a portion of a system according to an embodiment of the present invention.

[0006] Figure 2 The diagram includes an embodiment of a hardware boot unit;

[0007] Figure 3 illustrates details of one embodiment of a guide unit;

[0008] Figure 4 illustrates thread agnostic ranking according to one embodiment;

[0009] Figure 5 illustrates thread-specific rankings according to one embodiment;

[0010] Figure 6 illustrates one embodiment of prediction circuitry / logic using event vectors and prediction weights;

[0011] Fig. 7A illustrates an event vector according to some embodiments;

[0012] Figure 7B illustrates prediction weights according to some embodiments;

[0013] Figure 8 illustrates an architecture according to some embodiments, wherein a global table is used to schedule execution on cores and / or logical processors;

[0014] Fig. 9 illustrates a decomposed slice-based architecture upon which embodiments of the present invention may be implemented;

[0015] Fig.10 illustrates additional details of one embodiment of a decomposed slice-based architecture;

[0016] Fig.11 illustrates communications between power units according to some embodiments;

[0017] Fig.12 illustrates multiple power management stages for making power management decisions according to some implementations;

[0018] Fig.13 illustrates an architecture for generating a unified prompt based on multiple generated prompts in accordance with some embodiments;

[0019] Fig.14 illustrates class coding and associated power management processes according to some embodiments;

[0020] Fig.15 illustrates an arrangement of temperature sensors according to some embodiments;

[0021] Fig.16 illustrates a specific set of registers used to store energy / performance values ​​for a corresponding set of IP blocks;

[0022] Fig.17 FIG. 1 illustrates a global power balancer according to one embodiment of the present invention;

[0023] Figure 18A-18B Figure 1 shows the impact of different core frequency ramp rates on performance and power;

[0024] Fig.19A illustrates dynamic core frequency ramp rate selection circuitry / logic according to some embodiments;

[0025] Fig.19B illustrates an example of a ramp rate data structure according to some embodiments; and

[0026] Fig. 20A method for dynamic core frequency ramp rate selection according to some embodiments of the present invention is illustrated. DETAILED DESCRIPTION

[0027] In various embodiments, techniques for managing power and heat dissipation in heterogeneous processors are provided. As used herein, the term "heterogeneous processor" refers to a processor that includes multiple different types of processing engines. For example, a heterogeneous processor may include two or more types of cores with different microarchitectures, instruction set architectures (ISAs), voltage / frequency (VF) curves, and / or broader power / performance characteristics.

[0028] The optimal design / operating point (in terms of VF characteristics, instructions per cycle (IPC), functions / ISA, etc.) of a heterogeneous processor depends on both inherent / static system constraints (e.g., common voltage rails) and dynamic execution states (e.g., type of workload requirements, power / thermal state, etc.). In order to extract power efficiency and performance from such architectures, embodiments provide techniques for determining / estimating current hardware states / capabilities and mapping application software requirements to hardware blocks. As the power / thermal state of the system changes, the relative power / performance characteristics of different cores will also change. Embodiments take these differences into account to make both locally optimal decisions and globally optimal decisions. As a result, embodiments provide dynamic feedback of per-core power / performance characteristics.

[0029] More specifically, embodiments provide closed-loop control of resource allocation (e.g., power budget) and operating point selection based on the current state of heterogeneous hardware blocks. In embodiments, a hardware guided scheduling (HGS) interface is provided to communicate dynamic processor capabilities to an operating system (OS) based on power / thermal constraints. Embodiments may dynamically compute hardware (HW) feedback information, including dynamically estimating processor performance and energy efficiency capabilities. As a specific example, a lookup table (LUT) may be accessed based on basic power and performance (PnP) characteristics of different core types and / or post-silicon adjustments based on power / performance deviations.

[0030] In addition, embodiments may determine an optimal operating point for a heterogeneous processor. Such an optimal operating point may be determined based at least in part on the current execution scenario, including the varying workload requirements (performance, efficiency, responsiveness, throughput, IO response) of different applications and the shifting performance and energy efficiency capabilities of the heterogeneous cores.

[0031] In an embodiment, the dynamically calculated processor performance and energy efficiency capabilities may be provided to the OS scheduler. The feedback information takes into account power and thermal constraints to ensure that the current hardware state is provided. In this way, the OS scheduler can make scheduling decisions that improve overall system performance and efficiency. Note that this feedback does not rely on workload energy performance preferences (EPP) or other software inputs. Instead, it is based on physical constraints that reflect the current hardware state.

[0032] In contrast, conventional power management mechanisms assume that all cores are of the same type, and therefore estimate the maximum frequency achievable on each core to be the same for a given power budget. This is inaccurate because different cores may individually have different power / performance capabilities, and based on other platform constraints, they may have different maximum frequencies. And further, conventional power management algorithms assume the same utilization target for all cores when calculating performance states (P-states), and therefore do not account for the heterogeneity of the underlying architecture. The prior art also does not optimize operating points with the goal of mapping specific types of threads to core types based on optimizing power or performance.

[0033] In general, the HGS interface provides dynamic processor capabilities to the OS based on power / thermal constraints. The OS uses this feedback as input to the scheduling algorithm and maps workload requirements to heterogeneous computing units. The mapping decisions of the scheduler can be guided by different metrics (such as performance, efficiency, or responsiveness, etc.). The scheduling decisions in turn affect the processor state, forming a closed-loop dependency. Since the workload requirements in terms of power / performance requirements may vary greatly, any change in the scheduling decision may result in a large shift in the HGS feedback, resulting in unacceptable stability issues. The embodiments provide techniques that are independent / flexible from scheduling decisions or other software inputs from the operating system, and therefore avoid these stability issues.

[0034] Although the following embodiments are described with reference to specific integrated circuits (such as specific integrated circuits in computing platforms or processors), other embodiments may be applicable to other types of integrated circuits and logic devices. Similar techniques and teachings of the embodiments described herein may be applied to other types of circuits or semiconductor devices that may also benefit from better energy efficiency and energy conservation. For example, the disclosed embodiments are not limited to any particular type of computer system. That is, the disclosed embodiments may be used in many different system types, ranging from server computers (e.g., tower, rack, blade, microserver, etc.), communication systems, storage systems, desktop computers, laptops, notebook computers, and tablet computers (including 2:1 tablets, tablet phones, etc.) of any configuration, and may also be used in other devices, such as handheld devices, systems on chip (SoC), and embedded applications. Some examples of handheld devices include: cellular phones such as smart phones, Internet protocol devices, digital cameras, personal digital assistants (PDAs), and handheld PCs. Embedded applications may typically include: microcontrollers, digital signal processors (DSP), network computers (NetPC), set-top boxes, network hubs, wide area networks (WAN) switches, wearable devices, or any other system capable of performing the functions and operations taught below. In addition, embodiments may be implemented in mobile terminals with standard voice functions (such as mobile phones, smart phones, and tablet phones) and / or in non-mobile terminals that do not have standard wireless voice communication capabilities (such as many wearable devices, tablet computers, notebooks, desktop computers, micro servers, servers, etc.). In addition, the apparatus, methods, and systems described herein are not limited to physical computing devices, but may also involve software optimization.

[0035] Reference now Figure 1 , which is a block diagram of a portion of a system according to an embodiment of the present invention. Figure 1 As shown in , system 100 may include various components, including processor 110, which is shown as a multi-core processor. Processor 110 may be coupled to power supply 150 via external voltage regulator 160, which may perform a first voltage conversion to provide a main regulated voltage to processor 110.

[0036] As seen, the processor 110 may be a single-die processor including a plurality of cores 120a-120n. In addition, each core may be associated with an integrated voltage regulator (IVR) 125a-125n, which receives a main regulation voltage and generates an operating voltage to be provided to one or more agents of the processor associated with the IVR. Thus, an IVR implementation may be provided, allowing fine-grained control of voltage, and thereby fine-grained control of power and performance of each individual core. Thus, each core may operate at an independent voltage and frequency, thereby achieving great flexibility and providing a wide range of opportunities for balancing power consumption and performance. In some embodiments, the use of multiple IVRs enables grouping of components into separate power planes, such that power is regulated by the IVRs and power is provided by the IVRs only to those components in the group. During power management, when a processor is placed in a low-power state, a given power plane of one IVR may be powered down or powered off, while another power plane of another IVR remains active or fully powered.

[0037] Still refer to Figure 1 , there may be additional components within the processor, including an input / output interface 132, another interface 134, and an integrated memory controller 136. As can be seen, each of these components may be powered by another integrated voltage regulator 125x. In one embodiment, the interface 132 may be implemented for The operation of the QuickPath Interconnect (QPI) interconnect provides a point-to-point (PtP) link in a cache coherence protocol that includes multiple layers, including a physical layer, a link layer, and a protocol layer. In turn, the interface 134 can be connected via a Peripheral Component Interconnect Express (PCIe TM ) protocol to communicate.

[0038] Also shown is a power control unit (PCU) 138, which may include hardware, software, and / or firmware for performing power management operations related to the processor 110. As seen, the PCU 138 provides control information to the external voltage regulator 160 via a digital interface to cause the voltage regulator to generate an appropriate regulated voltage. The PCU 138 also provides control information to the IVR 125 via another digital interface to control the generated operating voltage (or to cause the corresponding IVR to be disabled in a low power mode). In various embodiments, the PCU 138 may include various power management logic units for performing hardware-based power management. Such power management may be completely controlled by the processor (e.g., controlled by various processor hardware, and it may be triggered by workload and / or power, thermal constraints or other processor constraints), and / or power management may be performed in response to an external source (such as, a platform or management power management source or system software).

[0039] In embodiments herein, PCU 138 may be configured to dynamically determine hardware feedback information about the performance and energy efficiency capabilities of hardware circuits (such as core 120), and provide an interface to enable the information to be transmitted to the OS scheduler for making better scheduling decisions. To this end, PCU 138 may be configured to determine such information and store it within PCU 138 or in another storage device of system 100.

[0040] In addition, although Figure 1 An implementation is shown in which PCU 138 is a separate processing engine (which may be implemented as a microcontroller), it should be understood that in some cases, in addition to or as an alternative to a dedicated power controller, each core may include or be associated with a power control agent to more autonomously and independently control power consumption. In some cases, a hierarchical power management architecture may be provided in which PCU 138 communicates with a corresponding power management agent associated with each of the cores 120.

[0041] Although not shown for ease of illustration, it is to be understood that additional components may exist within processor 110, such as uncore logic and other components such as internal memory, for example, one or more levels of a cache memory hierarchy, etc. Figure 1 The implementation of is shown as having an integrated voltage regulator, but the embodiments are not limited thereto.

[0042] The processor described herein may utilize power management techniques that may be independent of and complementary to an operating system (OS)-based power management (OSPM) mechanism. According to an example OSPM technique, the processor may operate in various performance states or levels (so-called P states, i.e., from P0 to PN). Generally speaking, the P1 performance state may correspond to the highest guaranteed performance state that the OS can request. In addition to this P1 state, the OS may further request a higher performance state, i.e., the P0 state. This P0 state may thus be a speculative or turbo mode state in which, when power and / or thermal budgets are available, the processor hardware may configure the processor or at least a portion thereof to operate at a frequency higher than the guaranteed frequency. In many implementations, the processor may include a so-called bin frequency that is higher than the P1 guaranteed maximum frequency, exceeds the maximum peak frequency of a particular processor, such as burned in or otherwise written into the processor during manufacturing. In addition, according to an OSPM mechanism, the processor may operate in various power states or levels. In terms of power states, the OSPM mechanism may specify different power consumption states, generally referred to as C-states, C0, C1 to Cn states. When a core is active, it runs in the C0 state, and when a core is idle, it may be placed in a core low power state, also referred to as a core non-zero C-state (e.g., C1-C6 states), where each C-state is at a low power consumption level (such that C6 is a deeper low power state than C1, etc.).

[0043] It is to be understood that many different types of power management techniques may be used, alone or in combination, in different embodiments. As a representative example, a power controller may control a processor to be power managed via some form of dynamic voltage frequency scaling (DVFS), in which the operating voltage and / or operating frequency of one or more cores or other processor logic may be dynamically controlled to reduce power consumption in certain situations. In an example, DVFS may use Enhanced Intel SpeedStep 4 available from Intel Corporation of Santa Clara, California. TM In another example, DVFS can use Intel TurboBoost TM The technology is performed to enable one or more cores or other computing engines to operate at an operating frequency higher than the guaranteed operating frequency based on conditions (e.g., workload and availability).

[0044] Another power management technique that may be used in some examples is the dynamic swapping of workloads between different computing engines. For example, a processor may include asymmetric cores or other processing engines that operate at different power consumption levels, so that under power constraint situations, one or more workloads can be dynamically switched to execute on a lower power core or other computing engine. Another exemplary power management technique is hardware duty cycling (HDC), which may cause cores and / or other computing engines to be periodically enabled and disabled based on a duty cycle, so that one or more cores become inactive during an inactive period of the duty cycle and become active during an active period of the duty cycle. Thread Scheduling Based on Processor Information

[0045] Reference now Figure 2 , shown is a block diagram of a system 200 according to one or more embodiments. In some embodiments, the system 200 may be all or part of an electronic device or component. For example, the system 200 may be a cellular phone, a computer, a server, a network device, a system on a chip (SoC), a controller, a wireless transceiver, a power supply unit, etc. In addition, in some embodiments, the system 200 may be part of a group of related or interconnected devices such as a data center, a computing cluster, etc.

[0046] like Figure 2 As shown, system 200 may include a processor 210 operatively coupled to system memory 205 and power supply 250. Further, although not shown in Figure 2 , but system 200 may include other components. In one or more embodiments, system memory 205 may be implemented using any (one or more) types of computer memory (e.g., dynamic random-access memory (DRAM), static random-access memory (SRAM), non-volatile memory (NVM), a combination of DRAM and NVM, etc.). Power supply 250 may provide electrical power to processor 210.

[0047] In one or more embodiments, processor 210 may be a hardware processing device (e.g., a central processing unit (CPU), a system on a chip (SoC), etc.). As shown, processor 210 may include any number of processing engines 220A-220N (also generally referred to as processing engines 220) and a boot unit 230. Each processing engine 220 may include one or more sensors 240 for providing measurements about processing engine 220 to boot unit 230. For example, sensor 240 may provide measurements about processing engine performance, efficiency, power usage, temperature, reliability, thread execution, etc.

[0048] In one or more embodiments, the guidance unit 230 may be a hardware component of the processor 210 for providing processing engine information to guide a thread scheduler (not shown). In some embodiments, the processing engine information may include one or more ranks of the processing engine (e.g., thread-agnostic rank, thread-specific rank, etc.). Further, in some embodiments, the processing engine information may include one or more predicted characteristics of the processing engine. Various aspects of the guidance unit 230 are described below.

[0049] refer to Figure 3 , a diagram of an example system 305 according to one or more embodiments is shown. The system 305 may include a boot logic 300, a schedule manager 380, and a scheduler 390. The boot logic 300 may generally correspond to the boot unit 230 ( Figure 2 In some embodiments, the boot logic 300 may be implemented at least in part using hardware.

[0050] like Figure 3 As shown, the boot logic 300 may include a processing engine (PE) monitor 310, a thread monitor 320, a thread agnostic (TA) ranking logic 330, a prediction logic 335, a thread specific (TS) ranking logic 340, and a hardware-operating system (HW-OS) interface 370. As used herein, "thread agnostic ranking" refers to a ranking that is independent of any particular thread or workload type. For example, some workload types may include compute intensive (e.g., requiring PE resources), memory intensive (e.g., requiring memory controller bandwidth), highly parallelized (e.g., requiring graphics processing resources), accelerated (e.g., requiring accelerator resources), and the like. In some embodiments, a single thread may be characterized as one or more workload types depending on the instructions included in the instruction sequence.

[0051] In one or more embodiments, the PE monitor 310 can monitor the characteristics of each PE without regard to a particular workload or thread. The monitored characteristics of each PE may include performance, efficiency, energy usage, thermal, and reliability characteristics. For example, the PE monitor 310 can monitor metrics such as instructions per clock cycle, power consumed per time period, percentage of maximum performance, average power state, temperature, percentage of lifetime that has elapsed, total number of power cycles, maximum power level, and the like. The PE monitor 310 can be implemented using hardware counters.

[0052] In some embodiments, PE monitor 310 may monitor and / or count system events (e.g., microarchitectural events, architectural events, system events, etc.) that characterize PE execution. For example, PE monitor 310 may determine the number of retired floating point instructions, the number of retired memory instructions, the number of branch mispredictions, the number of cache misses, the number of pipeline stalls, and the like.

[0053] In one or more embodiments, the thread monitor 320 can monitor the characteristics of each thread. For example, the thread monitor 320 can monitor metrics such as instructions completed per time period, idle time, etc. Further, the thread monitor 320 can determine the execution profile and / or type, such as graphics processing, network processing, floating point calculations, encryption processing, etc. The thread monitor 320 can be implemented using hardware counters.

[0054] In some embodiments, prediction logic 335 may use data from PE monitor 310 and / or thread monitor 320 to predict the performance of a thread on multiple PEs. For example, suppose a first thread is currently executing on a first PE (e.g., Figure 2 In some embodiments, the prediction logic 335 can analyze the first thread, the first PE, and other PEs (e.g., Figure 2 The prediction logic 335 may be used to predict the characteristics of the first thread when it is executed on another PE (eg, when the first thread is moved to a second PE). The prediction performed by the prediction logic 335 is further described below.

[0055] In one or more embodiments, the TA ranking logic 330 may use data from the PE monitor 310 and / or the prediction logic 335 to generate one or more TA rankings 350. In some embodiments, each TA ranking 350 may include a list of PEs arranged in a particular thread-agnostic order. Figure 4 , shown is a set of example TA rankings 350 according to some embodiments. Specifically, Figure 4As shown, the TA ranking 350 may include a performance order ranking, an efficiency order ranking, an energy order ranking, and an offline order ranking. In some embodiments, the performance order ranking may reflect the relative performance capabilities of the PEs (e.g., from fastest processing to slowest processing). The efficiency order ranking may reflect the relative energy efficiency capabilities of the PEs (e.g., from most efficient to least efficient). The energy order ranking may reflect the relative power consumption of the PEs. The offline order ranking may indicate which PEs are to be taken offline, and / or the sequential order in which the PEs should be taken offline if necessary. In some embodiments, the TA ranking 350 may be stored in a global processor location or structure. For example, the TA ranking 350 may be stored in a processor (e.g., Figure 2 The processor 210 shown in the figure) register, external memory (e.g., Figure 2 In the system memory 205 shown, etc.

[0056] Reference again Figure 3 , TS ranking logic 340 may use data from thread monitor 320 and / or prediction logic 335 to generate one or more TS rankings 360. In some embodiments, each TS ranking 360 may be associated with a particular thread and may include a list of PEs arranged in an order specific to the particular thread. Figure 5 , shown is a set of example TS rankings 360 according to some embodiments. For example, TS ranking 360 can be the PE ranking of thread A, the PE ranking of thread B, and so on. In some embodiments, TS ranking 360 can be stored in a global processor memory structure. For example, TA ranking 350 can be stored in a register of a processor, in an external memory, in a thread context block maintained by an OS, and so on. In some embodiments, TS ranking 360 can be generated and / or updated in response to a process context switch event.

[0057] Refer again Figure 3 In some embodiments, the TA ranking 350 and the TS ranking 360 may be provided to the scheduler manager 380 via a hardware (HW)-OS interface 370. In some embodiments, the HW-OS interface 370 may include registers and / or memory structures defined at the PE and / or thread level. In addition, the HW-OS interface 370 may include the ability to enumerate registers and specific support and definitions that allow the OS to discover and / or identify PE information provided by the boot logic 300. The HW-OS interface 370 may also support interrupt capabilities for alerting the OS about the status and / or events of the boot logic 300. In some embodiments, the HW-OS interface 370 includes a hardware feedback interface (HFI) described in detail below.

[0058] In one or more embodiments, the schedule manager 380 and / or the scheduler 390 may be implemented in software (e.g., an operating system, a standalone application, etc.). The schedule manager 380 may control the number and / or format of the TA rankings 350 and the TS rankings 360 provided to the scheduler 390. For example, the schedule manager 380 may sort the PE rankings, may filter the PE rankings according to criteria (e.g., by age, by PE group, by thread group, by type, etc.), may combine multiple PE rankings to generate a combined PE ranking, may reformat the PE rankings, and the like.

[0059] In one or more embodiments, scheduler 390 may use TA ranking 350 and / or TS ranking 360 to assign threads to PEs (e.g., Figure 2 For example, scheduler 390 may use PE information to schedule threads based on current system priorities, policies, or states (e.g., a specified balance between performance, efficiency, power consumption, and / or reliability priorities), based on thread-specific characteristics (e.g., whether a thread is defined as a foreground task or a background task), to control temperature gradients and / or hot spots in a PE, and so on.

[0060] In some embodiments, the TA ranking 350 and / or the TS ranking 360 may include indications for providing specific guidance to the scheduler 390. For example, a first PE may be assigned a ranking value (e.g., "0") to indicate that the first PE will remain offline and, therefore, should not be assigned any threads. In some embodiments, a PE may be taken offline to improve the reliability of the PE, delay the life cycle limit of the PE, stay within a specified power budget, limit power usage during a particular power state, control temperature gradients and / or hot spots in the PE, and the like.

[0061] In some embodiments, the output of the steering logic 300 may reflect the grouping of PEs according to defined criteria. For example, the PEs listed in the TA ranking 350 may be grouped into performance categories (e.g., class A with performance metrics from 0 to 2, class B with performance metrics from 3 to 7, and class C with performance metrics from 8 to 10). Such grouping may allow the scheduler 390 to manage thread allocation by group rather than by individual PEs.

[0062] Reference now Figure 6 , a diagram of an example system 600 is shown in accordance with one or more embodiments. As shown, the system 600 may include a processing engine (PE) 610 and prediction logic 620. The prediction logic 620 may generally correspond to Figure 3 Some or all of the prediction logic 335 shown in .

[0063] In some embodiments, PE 610 may include a performance monitor 612, an energy monitor 614, and an event monitor 616. Further, PE 610 may execute a source thread 618. Event monitor 616 may detect events of PE 610 during execution of source thread 618, such as memory instruction retirements, floating point instruction retirements, branch mispredictions, cache misses, pipeline stalls, and the like. Performance monitor 612 may monitor performance characteristics of PE 610 (e.g., instructions per clock cycle, percentage of maximum performance, and the like). Energy monitor 614 may monitor energy characteristics of PE 610, such as power consumed per time period, power state, and the like. In some embodiments, performance monitor 612, energy monitor 614, and / or event monitor 616 may be implemented using hardware counters.

[0064] In one or more embodiments, prediction logic 620 may include weight updater 622, prediction weights 624, event vector 626, and PE predictor 614. In some embodiments, prediction logic 620 may receive indications of events from event monitor 616 of PE 610 and may populate event vector 626 based on the received indications.

[0065] Reference now Fig. 7A , shown is a set of example event vectors 626 according to some embodiments. As shown, the event vectors 626 may include vector groups associated with various PEs (i.e., PE A to PE N). In some embodiments, each event vector 626 may include a unique number of fields, each of which is associated with a unique type of event. For example, the vector group of PE A may include a performance vector 730 and an energy vector 732. The performance vector 730 may include four fields, each of which indicates the occurrence of a particular event type. For example, the performance vector 730 may include a first field for storing the number of memory instruction retirements, a second field for storing the number of floating point instruction retirements, and so on. The energy vector 732 may include three fields, each of which indicates the occurrence of a particular event type.

[0066] It is contemplated that event vectors 626 for different PEs (or different PE types) may include fields for different event types and may include different numbers of fields. For example, a vector group for PE N may include a performance vector 734 having three fields and an energy vector 736 having three fields.

[0067] In some embodiments, the prediction weights 624 may be arranged in a vector similar to the event vector 626. Referring now to Figure 7B, shows a set of example prediction weights 724 according to some embodiments. As shown, the prediction weights 624 may include weight vectors 740, 742 for PE A. The weight vector 740 may include four weight fields corresponding to the performance vector 730. The weight vector 742 may include three weight fields corresponding to the energy vector 732 of PE A. Further, the weight vectors 744, 746 may correspond to the performance vector 734 and the energy vector 736 of PE B, respectively.

[0068] Reference again Figure 6 , PE predictor 628 can generate PE predictions for executing source thread 618 on other PEs. Specifically, PE predictor 628 can use events in processing engine 610 (as populated in event vector 626) and prediction weights 624 to predict characteristics of source thread 618 when executing on different PEs (i.e., on PEs other than PE 610). For example, PE predictor 628 can provide performance predictions, power usage predictions, clock frequency predictions, etc. PE predictor 628 can include a linear predictor (e.g., linear regression), a nonlinear predictor, an enhanced logic model, etc.

[0069] In one or more embodiments, PE predictor 628 may use a linear predictor to multiply event vector 626 by a weight vector of prediction weights 624 and determine a prediction value based on the sum of the element-wise products. For example, the linear predictor may multiply performance vector 730 ( Fig. 7A ) is multiplied by each element of PE A's weight vector 740 ( Figure 7B ), and the products of all vector elements may be summed. If source thread 618 executes on PE A, the resulting sum may be the predicted performance value of source thread 618. In some embodiments, the predicted performance may be provided to a scheduler (e.g., Figure 3 The scheduler 390 shown in FIG. 4A ) may use this information to determine whether to move the source thread 618 from PE 610 to PE A.

[0070] In one or more embodiments, PE predictor 628 may provide a prediction of using a linear predictor to multiply event vector 626 by a weight vector of prediction weights 624, and determine a prediction value based on a sum of the element-wise products. For example, the linear predictor may multiply each element of performance vector 730 of PE A by a corresponding element of weight vector 740 of PE A, and may sum the products of all vector elements. If source thread 618 executes on PE A, the resulting sum may be a predicted performance value for source thread 618. In some embodiments, the predicted performance may be provided to a scheduler (e.g., scheduler 390), and the scheduler may use this information to determine whether to move source thread 618 from PE 610 to PE A.

[0071] In one or more embodiments, the weight updater 622 may compare the PE predictions for a given PE with the measured values ​​to adjust the prediction weights 624. For example, assume that the scheduler receives the predicted performance and energy characteristics of PE A and subsequently reallocates the source thread 618 to PE A. Further assume that PE A includes a performance monitor 612 and an energy monitor 614 that provide the measured performance and energy characteristics for the execution of the source thread 618 on PE A. In this example, the weight updater 622 may compare the predicted characteristics with the measured characteristics and may adjust the prediction weights 624 based on the comparison. In this manner, the weight updater 622 may adjust the prediction weights 624 over time to improve the accuracy of future predictions of the prediction logic 620. Apparatus and method for adaptive scheduling Work on heterogeneous processing resources

[0072] When a new thread is to be executed, the embodiments described below identify the category (or default category) associated with the thread and select the available logical processor within the category with the highest performance and / or best energy efficiency value. If the optimal logical processor is not available, one embodiment of the present invention determines the next best logical processor and schedules the new thread for execution on the next best performance or energy core, or migrates the running thread from the best logical processor to make room for the new thread. In one embodiment, the decision to migrate or not migrate the running thread is based on a comparison of the performance and / or energy values ​​associated with the new thread and the running thread. In one implementation, the OS selects an appropriate scheduling method for each software thread based on energy consumption (e.g., for a low power environment) or best performance.

[0073] As used herein, a logical processor (LP) may include a processor core or a designated portion of a processor core (e.g., a hardware thread on a processor core). For example, a single-threaded core may be mapped directly to one logical processor, while an SMT core may be mapped to multiple logical processors. If an SMT core is capable of executing, for example, N threads simultaneously, then N logical processors may be mapped to the SMT core (e.g., one logical processor for each simultaneous thread). In this example, N may be any value based on the capabilities of the SMT core (e.g., 2, 4, 8, etc.). Other execution resources may be associated with a logical processor, such as portions of allocated memory space and / or cache.

[0074] In some cases, a platform may include a mix of cores, some of which include SMT support and others of which do not. In some cases, when running more than one software thread, performance and energy results for a core with SMT support may be better than results on a non-SMT core. In other cases, a non-SMT core may provide better performance / energy results. Thus, in one embodiment, the scheduling order is: (1) first schedule on the core with the highest performance / energy; (2) second, schedule on cores with lower perf / energy capabilities; and (3) last, schedule on a core with SMT support.

[0075] It has been observed that random scheduling of threads from different types of workloads on a set of heterogeneous cores may result in lower performance when compared to smarter allocation mechanisms.

[0076] In some of the embodiments described below, the "small core" is an Atom processor and the "big core" is a Core i3, i5, i7, or i9 core. These cores may be integrated on the same die and / or interconnected on the same processor package. However, it should be noted that the underlying principles of the invention are not limited to any particular processor architecture or any particular type of processor or core.

[0077] At the same amount of power, a small core (such as an Atom processor) can provide higher performance than a large core. This power / performance crossover point is a function of the ratio of the large core IPC to the small core IPC (i.e., IPCB / IPCS), which is particularly affected for single threads or a small number of threads. Different IPCB / IPCS values ​​also affect the potential for reducing energy to improve battery life. As this ratio decreases, scheduling work on the large core becomes less attractive from an energy conservation perspective.

[0078] In one embodiment, different categories are defined for different types of workloads. Specifically, one embodiment defines a first category of workload categories with an IPCB / IPCS ratio lower than 1.3, a second category of workloads with an IPCB / IPCS ratio lower than 1.5, and a third category of workloads with an IPCB / IPCS ratio higher than (or equal to) 1.5.

[0079] One embodiment of the present invention maintains a global view of performance and energy data associated with different workloads and core types and different categories of large / small IPC values. Figure 8 As shown, in one implementation, this is accomplished via a global table 840 that stores performance, energy, and other data for each type of core 851 - 852 and / or logical processor (LP). Figure 8 The global table 840 and other logic (eg, table manager 845) shown in FIG. 8 may be implemented in hardware or by a combination of hardware and software.

[0080] For illustrative purposes, Figure 8 850 and 851. Two types of cores are shown: performance cores 851 (sometimes referred to as "big" cores) and efficiency cores 852 (sometimes referred to as "small" cores). However, it should be noted that various additional cores and alternative combinations of big / small cores may be used. For example, some embodiments described below implement a disaggregated architecture in which a SoC / IO slice includes one or more cores (which may be selected during low utilization conditions so that the compute slice may be moved to a low power state).

[0081] In one embodiment, the scheduler 810 maps threads / workloads 801 to cores 851-852 and / or logical processors LP0-LP7 based on current operating conditions 841 and performance and energy data from a global table 840 (described in more detail below). In one embodiment, the scheduler 810 relies on (or includes) a boot / mapping unit 814 to evaluate different thread / logical processor mappings in view of the global table 840 to determine which thread should be mapped to which logical processor. The scheduler 810 can then implement the mapping. The scheduler 810, boot / mapping unit 814, table manager 845, and global table 840 can be implemented in hardware / circuitry programmed by software (e.g., by setting register values) or by a combination of hardware and software.

[0082] The currently detected operating conditions 841 may include variables related to power consumption and temperature, and whether to select an efficiency value or a performance value may be determined based on these conditions. For example, if the computing system is a mobile device, the scheduler 810 may perform mapping using efficiency options more frequently depending on whether the mobile device is currently powered by a battery or plugged into an outlet. Similarly, if the battery level of the mobile computing system is low, the scheduler 810 may tend to tend toward efficiency options (unless it would be more efficient to use a large core for a shorter period of time). As another example, if a large amount of power in the total power budget of the system is being consumed by another processor component (e.g., a graphics processing unit is performing graphics-intensive operations), the scheduler 810 may perform efficiency mapping to ensure that the power budget is not violated.

[0083] As shown in Table B below, one embodiment of the global table 840 specifies different energy efficiency and performance values ​​for each core 851-852 within each defined category (e.g., Eff02, Perf11, etc.) The cores are associated with logical processor numbers (LP0-LPn), and each logical processor can represent any type of physical core or any defined portion of a physical core, including an entire core.

[0084] In one embodiment, the table manager 845 performs updates to the global table 840 based on feedback 853 related to the execution of the different threads / workloads 801. The feedback may be stored in one or more MSRs 855 and read by the table manager 845.

[0085] The first time a thread / workload is executed, it may be assigned a default category (e.g., category 0). The table manager 845 then analyzes the feedback results when executed in the default category, and if a more efficient classification is available, the table manager 845 assigns the particular thread / workload to a different category. In one embodiment, feedback 853 is used in one embodiment to generate an index in the global table 840. The categories in this embodiment are created based on the scope of the IPCB / IPCS as described above. Table B

[0086] In one embodiment, the scheduler 810 uses the global table 840 and associated information to implement a global view of different core types and corresponding performance and energy metrics for different categories. Extensions to existing schedulers can add new columns by category type. In one embodiment, different categories enable the operating system or software scheduler to select different allocation mechanisms for a workload based on the category of the workload.

[0087] In one embodiment, category 0 is defined as a default category, which maintains traditional support and represents the median case of the curve. In this embodiment, the default category is used by the guide / mapping unit 814 and / or the scheduler 810 when no valid data is collected for the current thread. As described above, the table manager 845 can evaluate feedback 853 related to the execution of threads in the default category and provide updates 854 to the global table 840 if a different category is more appropriate. For example, if the IPCB / IPCS ratio of the thread is greater than a first specified threshold (e.g., 1.5), it can classify the thread into category 1, and if the IPCB / IPCS ratio is less than a second specified threshold (e.g., 1.3), it can classify the thread into category 2.

[0088] The different columns for each category in the global table 840 can be specified via one or more control registers. For example, in an x86 implementation, the columns can be enumerated via CPUID[6].EDX[7:0] (e.g., a table with 7-1 different columns for each category). The operating system (OS) 813 and / or the scheduler 810 can learn which row is associated with each logical processor via one or more bits in EDX (e.g., CPUID.6.EDX[31-16]=n, where n is the index position of the row setting for the logical processor), and can also determine the number of categories via the value in EDX (e.g., indicated by CPUID.6.EDX[11:8]). The OS can calculate the location of each logical processor row in the HGS table via the following technique: If advanced hardware-guided scheduling (e.g., HGS+) is enabled HGS base address + 8 + round up (FLOOR) ((number of classes * number of bits in the supported capability bitmap setting – 1) / 8 + 1) * 8 * (LPn row index + 1) Otherwise (advanced hardware boot scheduling is disabled and basic hardware boot scheduling is enabled) HGS base address + 8 + 8 * (LPn row index + 1)

[0089] The size of the HGS table can be enumerated by CPUID[6].EDX[11:8]

[0090] The OS can enumerate legacy HGS basic support from CPUID[6].EAX

[19] and newer HGS+ support from CPUID[6].EAX

[23]

[0091] In one embodiment, the performance capability values ​​are non-semantic and do not necessarily reflect actual performance.

[0092] The performance column in the table stores relative performance values ​​between logical processors represented in different rows. One embodiment of the interface provides row sharing with multiple different logical processors belonging to the same core type, thereby providing a reasonable comparison.

[0093] For each defined category, the ratio of performance values ​​between cores in the same column (such as ) provides a rough comparison but does not provide actual performance values. Similarly, the energy efficiency ratios in the columns for each logical processor (such as ) provides a relative comparison but does not reflect the actual energy consumed.

[0094] In one embodiment, the table manager 845 updates the global table 840 when the relative performance or energy values ​​undergo significant changes that may affect scheduling, such as when the order between cores or the differences between cores change. These changes can be specified in one or more columns, and for each column that is updated, the column header is marked to indicate that a change has been made. In addition, a status bit can be set in a control register to indicate that an update has occurred. For example, in some x86 implementations, the status bit is set in a particular model-specific register (MSR).

[0095] The global table 840 may be dynamically updated due to physical limitations such as power or thermal limitations. As a result, some or all of the performance and energy category value columns may be updated, and the order of selecting the core with the best performance or energy may be changed.

[0096] When such an update occurs, the hardware marks the updated column(s) in the global table 840 (eg, in the column header field). Additionally, in one embodiment, a timestamp field is updated to mark the last update of the table.

[0097] In addition, the thermal status register may also be updated, and the thermal interrupt may also be updated if the OS permits. An interrupt may also be generated to notify the OS of the change. After setting up the hot update, the table manager 845 may no longer update the global table 840 until permitted by the OS (e.g., the OS clears the log bit). This is done to avoid changes when the OS reads the table.

[0098] Given that different classes may be affected in different ways due to different physical limitations, one embodiment of the present invention provides the ability to update only selected table classes. This configurability provides optimal results even when physical conditions are changed. Following an indication that the order of class performance or energy has been changed, the OS can reschedule software threads based on the class index of each software thread.

[0099] In one embodiment, in response to the detected change, the thread-level MSR 855 reports the index in the current thread column and a valid bit indicating whether the reported data is valid to the OS 813 and / or the scheduler 810. For example, for the thread-level MSR 855, the following bits may provide an indication of the RTC (runtime characteristics): Bit 7:0 – Application category index of the table, indicating the most recent “application category” executed on this hardware thread; Bit 63 – Valid bit; if set to 1, the OS / scheduler can use it, otherwise the category index should be ignored

[0100] In one embodiment, the valid bit is set or cleared based on the current state and operating characteristics of the microarchitecture. For example, after a context switch of a new thread 801, the data may not be valid until the hardware (e.g., table manager 845) can evaluate or otherwise determine the characteristics of the new thread. The valid bit may also be adjusted when transitioning between specific security code flows. In the event that the valid bit is not set, the scheduler 810 may ignore the feedback data and use the last index known to be valid.

[0101] In one embodiment, the OS 813 and / or scheduler 810 reads the MSR 855 when a context is swapped out so as to have the latest information for the next context swapped in. The OS 813 and / or scheduler 810 may also read the MSR 855 dynamically while the current software thread is running. For example, the OS / scheduler may read the MSR 855 on every tick of the scheduler 810.

[0102] In order to allow the hardware (e.g., table manager 845) the time needed to learn new threads and ensure the validity of indexes is reported after a new context is swapped in, one embodiment of the present invention provides the option to save and restore microarchitectural metadata including index detection history. In one implementation, this is done using MSR 855, which can be read or written as a regular MSR, or by utilizing the processor's save and restore mechanisms (e.g., such as XSAVES / XRESROS on x86 implementations). For example: Thread-scoped MSRs (read / write) Bit 63:0 – Software thread, hardware feedback history metadata. In one implementation, the OS 813 and / or scheduler 810 reads the metadata when a thread is swapped in and updates it during execution and / or when the same thread is swapped out.

[0103] In some implementations where metadata is not supported, the prediction history still needs to be reset during context switching in order to achieve effective feedback that is not affected by previous executions of software threads. If the OS is configured to "select in" support for history reset each time IA32_KENTEL_GS_BASE is executed, the reset data can be enabled. Other OS-based context switching techniques, including H / W architecture methods, can also be used to reset the hardware-guided scheduling prediction history during context switching. In another embodiment, a control bit that forces the reset of history is used to enable a specific MSR. The control MSR can be saved and restored by XSAVES / XRESORS, or used manually by the OS at each context switch. Other options can be that each time the value of the MSR is zero, writing or restoring the MSR will reset the hardware-guided scheduling history. Another embodiment resets the history via a thread-level configuration MSR (described below), which enables the option of manually resetting the history by the OS.

[0104] The OS 813 and / or scheduler 810 can enable and disable extensions of the global table 840 via MSR control bits. This can be done, for example, to avoid conflicts with legacy implementations and / or to avoid power leaks. For example, the features described herein can be dynamically disabled when the operating system is running on a legacy system. When the feature is disabled, the feedback MSR thread level reporting is invalid. Enabling can be done at the logical processor level to provide, for example, a VMM with the option of enabling the techniques described herein for portions of the SoC based on per VM usage patterns (including whether the VM supports these techniques).

[0105] In one specific embodiment, thread-level configuration is accomplished as follows: IA32_HW_FEEDBACK_THREAD_CONFIG provides read / write access to the thread level range (0x17D3) – Bit 0: Enable logical processor support for the scheduling techniques described in this document. When set to 1, enable support for thread-level hardware feedback and reset its history. Default: 0. – Bit 1: WRMSR_IA32_KERNEL_GS_BASE_CLEAR_HGS_HISTORY, when set, IA32_KERNEL_GS_BASE WRMSR will reset the prediction history. Default: 0 – Bit 2: Reset history command bit, always reads as 0, resets prediction history when set (written as '1')

[0106] In one implementation, enabling and disabling is performed via package-level MSRs. For example, in an x86 implementation, the following MSRs may be specified: IA32_HW_FEEDBACK_CONFIG (IA32_HW_Feedback_Configuration) Bit 0 - Enable. When set to 1, this bit enables the hardware feedback interface described in this document. Default is 0. Bit 1 - Enable. When set to 1, this bit enables multiple category support. The extra category column in the global table 840 is only valid when bit 1 is set. Setting this bit enables the thread level feedback 853 sent to the MSR 855 to support valid reporting category indexes.

[0107] As mentioned, when a new thread is to be executed, an embodiment of the present invention identifies the class (or default class) associated with the thread and selects a logical processor (LP) available within the class with the highest performance and / or best energy efficiency value (depending on the current required power consumption). If the optimal logical processor is not available, an embodiment of the present invention determines the next best logical processor and schedules the new thread for execution on the next best logical processor, or migrates the running thread from the optimal logical processor to make room for the new thread. In one embodiment, the decision to migrate or not migrate the running thread is based on a comparison of the performance and / or energy values ​​associated with the new thread and the running thread.

[0108] For "high priority" threads, the relevant column is determined based on the thread class index (k). In one embodiment, the index is provided by the feedback MSR 855. On the thread performance class column (k), the row with the highest performance value is identified. If the corresponding logical processor is idle, then the thread is scheduled on that logical processor.

[0109] Alternatively, if all the highest performance logical processors are occupied, then an idle logical processor is searched in the performance category column (k) from the highest performance value to the lowest performance value. When one is found, the thread can be scheduled on the idle logical processor, or the running thread can be migrated from the preferred logical processor and the new thread can be scheduled on the preferred logical processor.

[0110] In this embodiment, scheduler 810 can evaluate whether to migrate existing threads to different logical processors to ensure fair distribution of processing resources.In one embodiment, comparison is made between different performance values ​​of different threads and logical processors to make this decision, as described below.

[0111] Thus, in one embodiment, when a new thread must be scheduled for execution on a logical processor, the index (I) of the new thread is used to search for an idle logical processor in the performance category associated with the new thread (e.g., one of the columns in the global table 840). If there is an idle logical processor with the highest performance value, then the new thread is scheduled on that idle logical processor. If not, then a secondary logical processor is identified. For example, the scheduler can search down the columns in the global table 840 to identify the logical processor with the next highest performance value.

[0112] An evaluation may be performed to determine whether to migrate any running threads from the logical processor that would be the highest performance LP for the new thread to a different logical processor in order to make room for the new thread on the highest performance logical processor. In one embodiment, this evaluation involves a comparison of the performance values ​​of the running threads and the new thread on the highest performance logical processor and one or more alternative logical processors. For the new thread, the alternative logical processor includes an auxiliary processor (i.e., it will provide the next highest performance for the new thread). For the running thread, the alternative logical processor may include an auxiliary logical processor (if it will provide the next highest performance) or another logical processor (if it will provide the next highest performance).

[0113] In one specific implementation, the ratio of performance on the highest performance LP relative to performance on the alternate LP is calculated for both the new thread and the running thread. If the ratio is greater for the new thread, the running thread is migrated to its alternate logical processor. If the ratio is greater for the running thread, the new thread will be scheduled on its alternate logical processor. The following is an example ratio calculation: New Thread Comp Value = Perf new thread highest / Perf new thread alternate (New thread comparison value = Perf 新线程最高 / Perf 新线程替代 ) Running Thread Comp Value=Perf running thread highest / Perf running thread alternate (transport Row thread comparison value = Perf 运行线程最高 / Perf 运行线程替代 )

[0114] If the above ratio for the new thread is greater, then the running thread is migrated to its alternate logical processor (i.e., it will have the next highest performance LP on it), and the new thread will be scheduled to execute on its highest performance logical processor. If the ratio for the running thread is greater, then the new thread is scheduled on the auxiliary LP (the auxiliary LP will provide it with the next highest performance).

[0115] In one embodiment, when energy efficiency is selected as a determining factor, the same technique as described above is implemented to determine the logical processor of the new thread, but efficiency category data from the global table 840 is used instead of performance category data. For example, the index of the new thread (I) is used to search for an idle logical processor in the efficiency category associated with the new thread. If there is an idle logical processor with the highest efficiency value, the new thread is scheduled on the idle logical processor. If not, the auxiliary logical processor is identified. For example, the scheduler can search down the columns in the global table 840 to identify the logical processor with the second highest efficiency value. An evaluation can be performed to determine whether to migrate any running threads from the logical processor that would be the most efficient LP for the new thread to a different logical processor to make room for the new thread. In order to make this decision, the efficiency ratio can be determined as described above for performance: New Thread Comp Value = Eff new thread highest / Eff new thread alternate (new thread comparison value = Eff 新线程最高 / Eff 新线程替代 ) Running Thread Comp Value=Eff running thread highest / Eff running thread alternate (Running Line Process comparison value = Eff 运行线程最高 / Eff 运行线程替代 )

[0116] As with performance, threads with larger indices execute on the most efficient logical processor, while other threads are run (or migrated) to alternate logical processors.

[0117] The above analysis can be performed to assign and migrate threads in the same or different performance and efficiency classes. If the new thread has a different class index than other threads in a busy logical processor, the performance or efficiency ratio is determined using the highest performance or efficiency value relative to the next highest performance or efficiency value for each of the currently running threads and / or the new thread to be scheduled. Then, those threads with the highest ratios are assigned to the highest performance or efficiency logical processor, while other threads are scheduled (or migrated) on the next highest performance or efficiency logical processor.

[0118] In one embodiment, in order to migrate a running thread, the ratio of the new thread must be greater than the ratio of the running thread by a specified threshold amount. In one embodiment, the threshold is selected based on the amount of overhead required to migrate the running thread to the new logical processor (e.g., the processing resources, energy, and time consumed by the migration). This ensures that if the ratio of the new thread is only slightly higher than the ratio of the running thread, the running thread will not be migrated.

[0119] In one embodiment, the scheduler 810 periodically (e.g., every 15ms, 20ms, etc.) performs thread allocation analysis to perform the above-mentioned performance and / or efficiency comparisons. If a higher performance or improved energy efficiency option is available, it will then migrate one or more threads between logical processors to achieve the higher performance or higher efficiency option.

[0120] Some existing scheduling implementations provide a global view of the performance and energy characteristics of different core / processor types. However, these implementations assume the same level of big / small IPC and take the median of all possible traces, ignoring the actual differences between different types of software threads. Embodiments of the present invention address this limitation by taking these differences into account. Apparatus and method for dynamic core management

[0121] Various embodiments of the present invention evaluate different types of core parking and core merging hints, requests, and other related conditions to generate resolved hardware-guided scheduling (HGS) hints while architecturally meeting the requirements of dynamic core parking scenarios that may coexist in the processor. Some embodiments coordinate with the OS scheduler to determine a specific set of cores to be parked or merged based on runtime metrics such as core utilization, thread performance, memory dependencies, core topology, and voltage-frequency curves. At least one embodiment allocates power budgets to different IP blocks in the processor to deliver the desired performance, recognizing differences in the relative priority of each type of compute block and differences in power / frequency and frequency / performance relationships in each of the compute blocks. Some implementations allocate power budgets based on a decomposed heterogeneous processor architecture with separate compute slices, SoC slices, graphics slices, and IO slices.

[0122] As used herein, a "parking" hint refers to a request or recommendation to avoid using a particular core (e.g., thereby "parking" the core). Parking hints and other types of hints described herein may be communicated via a hardware feedback interface (HFI) storage device, such as a register (e.g., MSR) or a memory area allocated by an operating system (OS).

[0123] Currently, parking hints have the effect of hiding the performance capabilities of the parked cores from the OS. Thus, when the OS has high priority work that no longer fits within the available cores and it wants to run that work on a high performance core, it has no information about which core to use.

[0124] A "merge" hint is a request generated to consolidate efficient work onto a subset of cores on a processor. In existing implementations, the OS may incorrectly interpret this hint as a request to consolidate all work on that subset of cores, even if lower priority work must be postponed. A specific type of consolidation, called "below PE consolidation" (BPC), attempts to throttle the number of cores in order to keep the per-core frequency above the limit when the system frequency is limited.

[0125] When there are thermal and / or electrical reasons, the processor "survivability" feature is activated to reduce the number of cores to avoid shutting down the processor. In some implementations, survivability causes cores to be parked rather than suppressed to ensure that the OS does not start using more cores than prompted. In some embodiments, parking starts with the most power-consuming cores. For example, in the decomposed architecture described below, the parking order can be: the highest performance large cores (e.g., ULT large cores), large cores, compute die small cores (e.g., compute die Atom cores), and SoC die small cores (e.g., SoC die Atom cores). In the final stage, the SoC may run out of a single SoC die core. In one embodiment, the survivability feature is disabled when only a single efficient core is active. Because this feature is critical, it overrides other hints / configuration settings; at the same time, this situation is not expected to occur often.

[0126] In some embodiments, because the goal of both below BPC and survivability is to reduce the number of cores, when both BPC and survivability are active, BPC is bypassed to avoid over-constraint when it is not needed.

[0127] Various hardware-based techniques may be used to optimize active cores. For example, using hardware-guided scheduling (HGS) (e.g., as implemented on the hardware guidance unit 814 described above), hints may be provided to the OS to not schedule work on a subset of cores (core parking) and / or to schedule work on only a subset of cores (core merging), where the goal is to improve overall power and performance (PnP). Some embodiments of the present invention determine a specific set of cores to park or merge based on the decomposed architecture of the processor, various runtime metrics (e.g., core utilization, temperature), thread performance, memory dependencies, core topology, and voltage-frequency curves. Examples of Heterogeneous Processor and Power Management Architectures

[0128] Fig. 9The figure shows an example of a processor with a decomposed architecture, which includes a SoC slice 910, a CPU slice 915, a GPU slice 905, and an IO slice 920 integrated on a common base slice 990 coupled to a packaging substrate. In some embodiments, each slice includes a separate tube die or chip that communicates with other tube die / chips through horizontal and / or vertical interconnects (e.g., silicon through vias). The SoC slice 910 includes a memory controller for coupling the processor to the system memory 950 and providing various other SoC-level functions, such as a coherent fabric interconnect between various IP blocks, a display engine, and a low-power IP block that remains operational even if the processor enters a low-power state.

[0129] Some embodiments implement a distributed power management architecture that includes multiple power management units (P units) 930-933 distributed across the individual dies 905, 910, 915, 920, respectively. In certain implementations, the P units 930-933 are configured as a hierarchical power management subsystem in which a single P unit (e.g., P unit 930 on the SoC slice 910 in several examples described herein) operates as a supervisor P unit that collects and evaluates power management metrics provided from other P units 931-933 to make package-level power management decisions and determine the power / performance state (e.g., frequency and voltage for each of the IP blocks) in which each and / or individual IP blocks in the slice are to operate.

[0130] The supervisor P unit 930 communicates the power / performance state to the other P units 931-933, which implement the power / performance state locally on each respective chip. In some implementations, the package-wide power management decisions of the supervisor P unit 930 include decisions involving core parking and / or core merging as described herein.

[0131] An operating system (OS) and / or other supervisory firmware (firmware, FW) or software (software, SW) 970 can communicate with the supervisory P unit 930 to exchange power management state information and power management requests (e.g., such as "hints" described herein). The hardware boot unit 814 and associated tables can be implemented in the supervisory P unit 1030 and / or the SoC slice 910. In some implementations described herein, communication between the OS / supervisory FW / SW 970 and the P unit 930 occurs via mailbox registers or a set of mailbox registers. In some embodiments, a baseboard management controller (Baseboard Management Controller, BMC) or other system controller can exchange power control messages with the supervisory P unit 930 via these mailbox registers or a different set of mailbox registers.

[0132] Fig.10 Additional details of one embodiment of the CPU slice 915 are shown, which includes a heterogeneous set of cores including efficiency cores (E cores) and multiple performance cores (P cores) 1020-1021 arranged into two E core clusters 1010-1011. Some embodiments of the SoC slice 910 include a set of E cores 1012-1013 and a memory controller 1015 to couple the processor to system memory 950 (e.g., DDR DRAM memory, HBM memory, etc.). Similarly, the GPU slice 905 includes multiple graphics cores 1007-1008, which can be managed in the same manner as the P cores and E cores as described herein.

[0133] The E cores and SoC slices 910 in the E core cluster 1010-1011 are physically smaller (where multiple E cores fit into the physical die space of a P core), designed to maximize CPU efficiency (measured in performance per watt), and typically for scalable multithreaded performance. The E cores work collaboratively with the P cores 1020-1021 to accelerate tasks that tend to consume a large number of cores. The E cores are optimized to run background tasks efficiently, and as a result, smaller tasks are typically migrated to the E cores (e.g., handling Discord or antivirus software), leaving the P cores 1020-1021 free to drive high performance tasks, such as gaming or 3D rendering.

[0134] The P cores 1020-1021 are physically larger, high-performance cores that are tuned for high turbo frequencies and high IPC (instructions per cycle), and are particularly suited for handling heavy single-threaded work. In some embodiments, the P cores are also capable of hyperthreading (i.e., running multiple software threads simultaneously).

[0135] In the illustrated embodiment, separate P units 1015-1016 are associated with each E-core cluster 1010-1011, respectively, to manage power consumption within each respective E-core cluster in response to messages from a supervisor P unit 1030, and to communicate power usage metrics to the supervisor P unit 1030. Similarly, separate P units 1025-1026 are associated with each P-core 1020-1021, respectively, to manage power / performance of the respective P-core in response to the supervisor P unit 1030, and to collect power usage metrics and communicate the power usage metrics to the supervisor P unit 1030.

[0136] In one embodiment, local P units 1015-1016, 1025-1026 manage power locally by independently adjusting the frequency / voltage levels of each E-core cluster 1010-1011 and P-core 1020-1021, respectively. For example, P units 1015-1016 control a digital linear voltage regulator (DLVR) and / or a fully integrated voltage regulator (FIVR) to independently manage the frequency / voltage applied to each E-core within the E-core cluster 1010-1011. Similarly, P units 1025-1026 control another DLVR and / or FIVR set to independently manage the frequency / voltage applied to each P-core 1020-1021. Graphics cores 1007-1008 and / or E-cores 1012-1013 can be similarly controlled via DLVR / FIVR. In these implementations, the frequency / voltage associated with the first core can be dynamically adjusted independently—i.e., without affecting the frequency / voltage of one or more other cores. Dynamic and independent control of individual E-cores / P-cores provides processor-wide dynamic voltage and frequency scaling (DVFS) controlled by the supervisor P unit 1030.

[0137] like Fig.11 As shown, in some implementations, the supervisor P unit 1030 and other P units 1015 in the processor communicate via a private structure 1147. The supervisor P unit 1030 sends power management messages to other P units 1015 via a transmit (TX) mailbox 1130 and receives messages from other P units via a receive (RX) mailbox 1131. Each of the other P units (such as P unit 1015, shown for simplicity) includes a TX mailbox 1116 for transmitting messages and an RX mailbox 1117 for receiving messages.

[0138] In some embodiments, the P-units 1030, 1015 include a microcontroller or processor for executing firmware 1135, 1136, respectively, to perform the power management operations described herein. For example, the supervisor firmware (FW) 1135 executed by the supervisor P-unit 1030 specifies operations such as the transmission of a message sent to the TX mailbox 1030 and sent to the RX mailbox 1117 of the P-unit 1015 through the private structure 1147. Here, "mailbox" can refer to a specified register or memory location, or a driver executed in kernel space. Upon receiving a message, the RX mailbox 1117 can save the relevant portion of the message to memory 1118 (e.g., a region in local memory or system memory), and the contents of the memory 1118 can be accessed by the P-unit 1015 executing its copy of FW 1136 (FW 1136 can be the same or different from the FW 1135 executed by the supervisor P-unit 1030).

[0139] In response to receiving the message, the P unit 1015 executing firmware 1136 acknowledges receipt of the message by sending an Ack message to the supervisor 1030 via the TX mailbox 1116. The Ack message is transmitted to the RX mailbox 1131 via the structure 1147 and may be stored in the memory 1132 (e.g., a local memory or an area in the system memory). The supervisor P unit 1030 (executing FW 1135) accesses the memory 1132 to read and evaluate the pending message to determine the next course of action.

[0140] In various embodiments, the supervisor P unit 1030 is accessible by other system components such as a global agent 1155 (e.g., a platform supervisor agent such as a BMC) via a public structure 1146. In some embodiments, the public structure 1146 and the private structure 1147 are the same structure. In some embodiments, the supervisor P unit 1030 is also accessible by a software driver 1150 (e.g., operable within an OS or other supervisory FW / SW 970) via the main structure 1145 and / or application programming interface (API) 1140. In some embodiments, a single structure is used instead of Fig.11 Three separate structures 1145-1147 are shown in FIG. Parsing core management requests

[0141] In the architecture described herein, hints may be generated by various system entities. For example, overclocking and other system software entities may attempt to force parking of certain cores. In addition, workload type (WLT) hints (e.g., indicating a specific workload type, such as bursty, maintenance, battery life, idle) may result in the merging of performance cores or energy-efficient cores. In a decomposed architecture, for certain energy-efficient workloads, it may be preferred to shut down the compute die 1020-1021, 1010-1011 and exhaust one or more of the E cores 1012-1013 of the SoC die 910 ("SoC die bias") (this may be accomplished via parking / merging hints to the OS 970). However, there are other instances where SoC die bias is not the right option for improved power / performance (PnP).

[0142] In the current implementation, when the system becomes constrained, all cores may be forced to run below the current power state (Pe) limit. In these scenarios, it may be preferred to reduce the number of cores and run at a more efficient frequency, and gradually cancel the parking (unpark) core when the system becomes able to run all cores at an efficient frequency. Some embodiments of the present invention use the merger (BPC) below Pe to suppress the number of cores and make the frequency of each core higher than the specified limit (for example, when the system is frequency-limited). When the system approaches the survivability point, even after taking processor actions to reduce power, the cores may also be gradually closed one by one via the core parking prompts. Power is periodically monitored until the system returns to a stable power limit. There may also be games or other platform / OEM driver perception implementations that require less platform noise, more cooling or higher performance. In these cases, the platform software can request to ease the core parking action taken via WLT to achieve the desired final state from the perspective of the platform.

[0143] All of the above features rely on targeted core parking and merging. Given the large number of potential variables and hints / requests, it would be beneficial to resolve these hints into a single unified hint to provide to the schedule while architecturally satisfying the requirements of different dynamic parking scenarios that coexist in the processor at any point in time. It would also be beneficial to determine the individual cores to park based on the current scenario and in accordance with the architectural intent and taking into account the optimal PnP.

[0144] Fig.12Table 1200 in lists variables used to determine a specific core to park / merge according to some embodiments of the present invention. Table 1200 includes columns indicating the name of the associated feature 1202, WLT sub-condition (if applicable) 1203, whether SoC die bias is applicable and used 1204, the operation when the feature condition is met 1205 and the operation when the feature condition is not met 1206, and the type of operation performed on the core 1207.

[0145] In this example, as indicated by the "Stage 0" row, a priority mailbox is provided for overclocking and other software (e.g., gaming apps, etc.) to submit parking requests that are assigned high priority, thereby creating boundary conditions for further optimization. For example, the priority mailbox can be used to "park" or assign a specific core or set of cores to a specific thread or thread group (as indicated in column 1207). In some implementations, specific cores requested via this mailbox are always honored. Additional checks are added to avoid security DoS, as indicated by column 1206.

[0146] The "Phase 1" row indicates the workload type (WLT) and SoC die bias request in column 1202. In these embodiments, the bias used for the SoC die is defined by the specified WLT. If the WLT indicates "burst" or "continuous", then the work is not moved to the E cores on the SoC die (as indicated in column 1204), while workload types associated with low workload requirements (e.g., BL / IDLE sub-conditions) consistently tend to move the work to the SoC die (which can run independently in the lowest power state). However, in the event that the E core of the SoC die is not the most efficient core (e.g., based on dynamic analysis such as the current supply voltage of the SoC die), then the idle / battery life (BL) work is merged to an equivalent set of E cores on the compute die.

[0147] In general, the WLT indication can be used to determine whether to perform core parking or consolidation. For sustained / bursty workloads, core parking (Perf=EE=0) can be used, as this allows the OS to limit scheduling to P cores. For battery life / idle WLT, core consolidation (EE=255) can be used, allowing the OS to expand to other cores as utilization increases (e.g., as measured in the workload queue).

[0148] In some embodiments, the above-described exceptions are specified based on survivability scenarios (described below).

[0149] When a survivability trigger is reached (e.g., an electrical or thermal metric reaches a threshold), some implementations attempt to skip the merge stage below the PE (reducing threads to improve the frequency floor). This will avoid duplication, as both survivability and PE merging attempt to reduce the number of active cores to reduce power. PE merging does this to improve performance. While the high-level operation is the same, at a lower level, the core selection techniques are different (as described further below).

[0150] In the case of survivability, a parking hint may be generated regardless of whether WLT and / or other phases precede the recommended core merge. This is required because for survivability, the OS should have the ability to limit the number of active cores to a certain number. In some embodiments, survivability is incremental - gradually reducing the number of active cores. In one embodiment, performance / EE predictions are sorted and used to select individual cores to park or merge. Examples of performance and EE prediction data are referenced below. Fig.13 The described logical processor capabilities are shown in table 1340 .

[0151] In one embodiment, the following approach is taken. First, for survivability, the intention is to save power. Thus, the cores are sorted starting with the highest performance, and the top of the sorted list is used for parking.

[0152] Regarding workload type (WLT), for battery life / idle workload type, or no inference, the intention is to use E cores. Thus, the cores are sorted starting with the highest efficiency value. The cores to be suppressed / merged are then selected from the top of the sorted list.

[0153] Regarding bursty / maintained WLT, the intention is to use the highest performance cores. Therefore, the cores are sorted by performance first, with the highest performance at the top of the sorted list. The cores for parking are then selected from the bottom of the sorted list.

[0154] Fig.13An embodiment of a power management unit 2030 is illustrated that includes dynamic core configuration logic 1345 for implementing the techniques described herein to resolve multiple parking / or merging requests / hints 1302-1306. As mentioned, overclocking or other software 1370 can submit core parking hints to mailbox 1302 to park or assign a specific core or set of cores to a specific thread or set of threads (e.g., to reserve (one or more) specific cores for (one or more) specific threads). Other illustrated hints / requests include those related to below-PE merging 1306, SoC die bias 1305, survivability 1304, and workload type (WLT) parking 1303, various examples of which are provided herein.

[0155] In one embodiment, dynamic core configuration logic 1345 resolves the combination of hints 1302-1306 into a unified core parking and / or core merging hint 1370. Additionally, hardware boot unit 814 (sometimes referred to as hardware boot scheduler, HGS, or HGS+) continues to generate EE / Perf updates 854, as previously described with respect to Figure 8 In one implementation, the HGS / HGS+ functionality is encoded in firmware 1135 executed by the SoC Slice P Unit 2030.

[0156] In one embodiment, the update logic 1348 updates the logical processor capability table 1340 based on the unified hints 1370 or the Perf / EE updates 854. In operation, the Perf / EE HGS hints 854 may be generated and populated locally. The dynamic core configuration logic 1345 merges and resolves the individual features 1302-1306 that attempt to independently override the HGS hints 854. Once the resolution is complete, the unified parking / merging hints 1370 override the HGS updates 854 and the table update logic 1348 updates the logical processor capability table(s) 1340 (sometimes referred to as the hardware feedback interface or HFI table) according to the unified hints 1370. Table C

[0157] Table C provides an example of default core parking / inhibition for a particular processor with 1 large core, 8 compute die E cores, and 2 SoC die E cores. In this implementation, for bursty WLT, only the large cores are enabled. In the case of battery life (BL), based on the SoC die bias, 2 SoC die E cores or two compute die E cores are active. For sustaining WLT, all cores are active, and for idle WLT, two SoC die E cores are active.

[0158] Some embodiments described herein have a disaggregated processor architecture with DLVR support and both a compute die E core and a SoC die E core that are more efficient at certain frequencies and system states. Thus, in some embodiments, SoC die biasing is used where a hint merges operations into the SoC die E-core, allowing the compute die core to be powered down and save power.

[0159] Fig.14 An example set of EE / Perf data in the logical processor capability table 1340 and a set 1401 of different category-encoded data indicating different combinations of Perf / EE values ​​for different categories associated with LPs are illustrated. In one implementation, the guide unit 814 determines the per-LP Perf / EE value to be populated into the capability table 1340 which is updated accordingly.

[0160] These Perf / EE values ​​may be overwritten by updates generated from priority mailbox 1302 (e.g., originating from overclocking software or other forms of software operating at the appropriate privilege level), which may indicate thread-specific parking of one or more cores. In one embodiment, dynamic core configuration logic 1345 determines the exact set of cores to be parked and / or inhibited based on various inputs (e.g., the hints described above) and creates a compressed bitmap of overrides based on category encoding 1401 (i.e., indicating the specific LP numbers and categories to be updated based on the encoding).

[0161] The various techniques described above may be implemented in the following ways: (a) in P-code executed by one or more power management units (P-units) (such as P-unit 2030); (b) using a combination of P-code and driver / kernel code (executed on the core); (c) in hardware; or (d) using a combination of P-code, driver / kernel code, and hardware.

[0162] In one embodiment, the OS performs classification of active workloads at a per-application level, averaged over multiple seconds. These classifications are not directly tied to dynamic hints generated by the dynamic core configuration logic 1345 or other processor entities.

[0163] As mentioned, the boot unit 814 uses various factors such as voltage / frequency curves, thermal data, core type, and current operating point to determine the per-core capabilities (Perf / EE) at a class level granularity, as reflected in the Perf / EE data 854. These per-core capabilities are exposed to the OS as hints via the LP capability table(s) 1340 (aka HFI table) at 16ms intervals.

[0164] In one embodiment, utilization and scalability associated with a core are monitored at a significantly higher granularity than the rate at which hints are provided to the OS (e.g., 1 ms granularity compared to 16 ms for hints). Specifically, core threshold detection logic detects when a specified utilization threshold is exceeded within each 16 ms interval. In response, one or more predefined abnormal patterns (e.g., multithreading, low utilization, bursty, etc.) are detected based on variables such as frequency budget and WLT classification.

[0165] In one implementation, specified thresholds are applied to determine if the current core count is within the desired range for utilization and system scenarios (e.g., such as bursty, battery life, maintenance, and idle). If the core count is not within the desired range, a recommended update is generated that incrementally provides prompts based on appropriate utilization levels along with reasons associated with the prompts. Operations can be scaled up or down in 16ms intervals while tracking system scenarios and utilization targets.

[0166] Because the reason is provided with the hint, the scheduler 810 learns when to complete the parking / merging hint for the PnP. As mentioned, when the running application requires multithreading operation, the scheduler 810 can ignore the hint, even if it is at low utilization. This added communication with the scheduler 810 ensures that the PnP will not be affected by the application of a specific type that behaves in a different way. The exception will be a combination of utilization level, workload type and system frequency.

[0167] In one embodiment, a new "reason" bit is added to indicate that the parking hint is for a PnP reason. The scheduler 810 can then use the parking reason, for example, to ignore hints for certain types of applications (e.g., such as multithreaded applications that need to run at low utilization levels).

[0168] For hybrid processor architectures, efficient scheduling is critical to computational performance. Existing scheduling techniques provide reasonable performance on highly threaded, high-load applications. In processors such as system-on-chip (SoC) with homogeneous cores, temperature information collected by the processor can be used to optimize performance because, from a temperature constraint perspective, cooler cores can generally achieve higher performance than hotter cores. However, for SoCs with hybrid processor cores, considering only core temperature to determine which core can provide the best performance may result in inefficient decisions and lower performance.

[0169] Embodiments of the present invention include techniques for determining the temperature-constrained performance capabilities of a processor core and communicating this information to a scheduler (e.g., an OS scheduler) for performance-based workload scheduling. For various reasons (such as variations in manufacturing and the thermal characteristics of each workload), there are temperature-based performance capability variations for different types of cores. Some embodiments of the present invention are configured to perform workload scheduling based on these core / workload characteristics to make more efficient scheduling choices in response to temperature measurements.

[0170] Fig.15 An example SoC is illustrated in which the temperature sensors 1512-1513 associated with each P core 1020-1021 and the temperature sensors 1514-1515 associated with each E core cluster 1010-1011 report temperature measurements to the corresponding local P units 1025-1026, 1015-1016, respectively. The local P units 1025-1026, 1015-1016 can dynamically adjust local power consumption based on the temperature measurements and / or pass the temperature measurements to the supervisor P unit 1030 (previously referenced Fig.10 described), which enables package-wide power management decisions to be based at least in part on temperature measurements.

[0171] Similarly, the temperature sensor 1541 associated with the GPU slice 905 reports temperature readings to the local P unit 931, and the temperature sensor 1551 associated with the accelerator 1525 reports its temperature readings to the local P unit 1501. Both P units 931, 1501 can dynamically adjust local power consumption based on these measurements and / or send temperature measurements to the supervisor P unit 1030 for package-wide power management decisions. In the illustrated example, the temperature sensor 1561 on the SoC slice 910 reports temperature measurements directly to the supervisor P unit.

[0172] However, it should be noted that the basic principles of the present invention are not limited to Fig.15 The illustrated decomposition architecture or a specific decomposition architecture. Furthermore, a hierarchical power management subsystem (eg, having a supervisor P-unit and multiple local P-units) is not necessary to comply with the embodiments of the invention described herein.

[0173] For SoCs with mixed processor cores, considering only core temperature for selecting cores may result in invalid decisions. Embodiments of the present invention consider additional thermal and performance characteristics of each core or other IP block before making task scheduling or migration decisions - rather than simply making decisions based on current temperature and thermal limitations. The different thermal and performance characteristics of different core types may be the result of the manufacturing process used to produce the core, the underlying core architecture, production variability, and potentially other variables. In some cases, the performance of a core in response to changes in thermal conditions is linked to the power specifications of the processor in which the core resides. For example, when certain types of cores are included in a processor with a relatively large power specification (e.g., a 45W processor instead of a 15W processor), they are able to maintain a defined maximum frequency at a relatively higher temperature.

[0174] By way of example and not limitation, a first type of core (a "type 1" core) may provide higher achievable performance (frequency) than a second type of core (a "type 2" core), but it has an additional leakage / power cost. Thus, in certain power / thermal constraint situations and / or in processors with different base power specifications, a type 1 core may become lower performance than a type 2 core. Because these types of cores differ in their thermal characteristics and maximum performance capabilities, it is important to evaluate these factors when making task scheduling and migration decisions (rather than simply making decisions based on current temperature and thermal limits). In some embodiments described herein, the type 1 core is a ULT core and the type 2 core is an XLT core; however, the underlying principles of the invention are not limited to these particular core types.

[0175] Embodiments of the present invention take the above variables into account before scheduling or migrating tasks. In one implementation, when a Type 1 core is integrated into a processor having a particular base power value (e.g., a SKU having a 45W base power specification), for certain workloads, the Type 1 core can still achieve higher performance than the Type 2 core even after reaching its transistor junction temperature (Tjmax (Tj max)) limit. However, when the Type 1 core is integrated into a processor having a second, lower base power value (e.g., a SKU having a 28W or 15W base power specification), under the same workload, the Type 1 core performs worse than the Type 2 core after reaching its Tjmax limit.

[0176] In one embodiment, the temperature-constrained frequency of a core at its temperature limit is initially predicted. The performance of the core is then dynamically updated based on the detected temperature changes and the resolved temperature-constrained frequency of the core. This information is then provided to the scheduler so that it can optimally schedule tasks.

[0177] The temperature-constrained frequency of a core depends on many factors ranging from the transistor level to the system cooling solution. For example, transistors with different voltage / frequency characteristics can have different temperature-constrained performance when operated under temperature constraints. Installing the same processor / SoC into a system with different cooling solutions can also result in different temperature-constrained performance. In addition, workloads with different thermal characteristics can sometimes result in processors / SoCs with different temperature-constrained performance.

[0178] Various techniques may be used to determine the temperature constraint frequency. For example, one embodiment uses constants defined by offline calibration. Alternatively or additionally, in order to accommodate changes at the platform level, some embodiments define a set of selections associated with different platform configurations and select one based on platform input at runtime. Alternatively or additionally, the implementation described below performs a runtime learning operation to predict the temperature constraint frequency of the core based on observations of the behavior of the runtime core.

[0179] In some implementations, the relative priority of each of the logical processors / cores is inferred from an Energy Performance Preference (EPP) hint provided by the operating system for each task running in the system. Fig.16 In these embodiments, energy performance preference "EPP" values ​​1600-1605 are set by OS 1713 in registers 1610-1615 of a hardware P-state architecture (HWP). Each HWP register 1610-1615 is associated with a specific logical processor (LP). For example, HWP registers 1612-1613 are associated with the LPs of E cores 1712-1713, respectively, HWP registers 1614-1615 are associated with two corresponding LPs of P core 1721, HWP register 1610 is associated with vector processing unit 1620, and HWP register 1611 is associated with infrastructure processing unit (IPU) 1621. In one embodiment, HWP registers 1610-1615 are considered part of a power management subsystem and can be associated with one or more of the above-mentioned individual power units (e.g., P units 1730-1733).

[0180] Although for the purpose of explanation Fig.16 A specific set of LPs is shown in , but the underlying principles of the invention can be used with any type of LP (eg, including LPs for CPU cores, graphics cores, and accelerator cores).

[0181] In one embodiment, HWP registers 1610-1615 are 64-bit model-specific registers (MSRs), and EPP values ​​1600-1605 include 8-bit values ​​stored within a specific bit range (e.g., bits 31:24) within the MSRs. In one specific implementation, HWP registers 1610-1615 are separate instances of the IA32_HWP_REQUEST MSR, but the underlying principles of the invention are not limited to any specific register type.

[0182] In one implementation, when a new task or set of tasks is run, the OS updates the corresponding EPP value (e.g., for the LP used to execute (one or more) tasks). The encoded EPP values ​​1600-1605 represent scalar numbers from 0 to 255, where 0 indicates a preference for maximizing performance for that task and 255 indicates a preference for maximizing energy efficiency. In some embodiments, the processor infers that the task most biased towards performance is the highest priority task running on the LP / core. In some embodiments, when specific IP blocks on the SoC are not assigned EPP values ​​(e.g., such as a graphics processor or media engine), these IP blocks are assigned a priority equal to the maximum priority of all other IP blocks in the system (e.g., E-core, P-core, VPU, IPU).

[0183] Thus, the EPP values ​​1600-1605 provide software with a sense of the relative priority of each of the IP blocks. Embodiments of the present invention use this information to allow software to adjust the relative priorities in order to optimize the user-perceived operating characteristics of the platform. To this end, these implementations rely on the concept of relative priority inputs to the compute accelerator 1625. This relative priority indicator, sometimes referred to as an "R weight," is a 6-bit value that encodes the relative priority, where a lower value indicates a higher priority and a higher value indicates a lower priority. The R weight value may be stored in the HWP registers 1610-1615 or in one or more different power management registers.

[0184] like Fig.17As shown, in one embodiment, a relative priority generator 1750 generates R weight values ​​1700-1705 for corresponding IP blocks 1620-1621, 1712-1713, 1721 based on corresponding EPP values ​​1600-1605 and software / firmware programming 1742. The R weight values ​​1700-1705 may be statically programmed (e.g., during a boot process) or dynamically programmed based on workload feedback 1740 (e.g., indicating the type of workload being executed and / or based on an expected usage model for a given system). For example, for a computer system sold for AI performance, an OEM may statically program the R weight value 1700 of the VPU 1620 so that it takes precedence over all other computing accelerators (e.g., assigning an R weight value of 0 to the VPU). Programming may be accomplished via an API provided by the software / firmware 1742 or via other interfaces. Alternatively or additionally, the power management driver 1741 can implement or access a relative priority generator 1750 to dynamically adjust the R weight values ​​of different IP blocks at runtime, potentially using workload feedback 1740 (potentially in combination with input from an end user) indicating the type of workload being run, to achieve a desired performance level for each workload.

[0185] Once the available power budget is known and the relative priority 1700-1705 of each of the computing IPs is determined, the global power balancer 1720 allocates the power budget to each of the individual IP blocks 1620-1621, 1712-1713, 1721 in the form of an allowable operating frequency 1760 (and / or voltage) so that the resulting performance is optimized based on the transmitted priority information. For this purpose, it should be noted that the transition between power, frequency, and performance of each of the computing IPs may be different and not linear across the operating range. In general, the performance of the IP is linearly proportional to the operating frequency of the IP module, but the power consumption is quadratically proportional to the operating frequency. Therefore, one embodiment of the global power balancer 1720 is programmed with a voltage-frequency table and other power-related data for each of the IP blocks 1620-1621, 1712-1713, 1721.

[0186] In one embodiment, such as in a disaggregated architecture, the relative priority generator 1750 and the global power balancer 1720 are implemented in a supervisor P-cell 1030 in the SoC slice 1010. The resulting frequency / voltage allocation 1760 is then communicated to the other P-cells 1031-1033, which apply the frequency allocation to their local IP blocks (e.g., P-cell 1032 on CPU slice 1015 for controlling local P-cores and E-cores). Apparatus and method for workload, power and performance aware dynamic core frequency ramp rate

[0187] The existing core frequency scaling algorithm is a function of core activity, the energy performance preference (EPP) value of each application thread, and the SoC power budget available for each core. The algorithm runs periodically and estimates the optimal core frequency based on the above inputs and ramps the core to the target frequency.

[0188] Existing solutions use fixed ramp rates for core frequency changes across applications and system modes. In systems with fixed core frequency ramp rates, foreground applications with critical performance requirements experience similar core frequency ramp delays as background maintenance applications that are not latency sensitive. As another example, for a given application with a fixed target core frequency, a portable system connected to a wall power source consumes similar core power when compared to when it is running from battery power and is nearly depleted. Therefore, these systems select ramp rates to balance between the two extremes (performance and power) of different types and priorities of applications and system modes. Therefore, the selected fixed ramp rate leaves performance and power in the table.

[0189] To address these issues, embodiments of the present invention dynamically select a core frequency ramp rate based on a number of variables, including but not limited to workload type, power, and performance requirements of the system. Specifically, the core frequency is increased at different ramp rates for different sets of applications and system modes. Higher ramp rates provide better responsiveness at the expense of power, while slower ramp rates save power at the expense of performance and / or responsiveness.

[190] As an example and not limitation, when a portable system is connected to a wall power source, increasing the core frequency faster provides high performance and better responsiveness. When the same system is on battery power, slowing the core frequency ramp rate helps extend battery life. When the system runs out of battery power, further reducing the core frequency ramp rate can avoid system shutdown. Similarly, foreground applications that are critical to user experience and responsiveness will benefit from a sharp core ramp rate. In contrast, background applications that are not latency-sensitive can use a slower core ramp rate, thereby saving system energy. In addition, a given application benefits from different ramp rates at different stages throughout the execution process. Application load times benefit from fast ramp rates for responsiveness, while idle or low activity phases of the same application can save power with slower ramp rates. Phases of sustained activity in the same application can balance power and performance with moderate ramp rates. Embodiments of the present invention vary the core frequency ramp rate in the middle of a workload by varying the corresponding phase to provide an improved tradeoff between power and performance.

[0191] Dynamic voltage and frequency scaling (DVFS) is a long-established technique for balancing performance and energy efficiency with power savings. The core frequency selection process plays a key role in achieving a balance between performance and power in many applications supported by modern devices. The set of operations that determine the core frequency runs periodically and adjusts the core frequency based on the core activity level, energy performance preference (EPP), and available SoC power budget. Some hysteresis is provided to prevent oscillation of the core frequency.

[0192] The power and performance impact of various core ramp rates are evaluated for a variety of applications. Fig.18A and Fig.18B The impact on application performance and power savings achieved by limiting the core frequency ramp rate are plotted separately. The power and performance impact numbers are relative to the power and performance impact of an unlimited core frequency ramp rate achieved in existing processors.

[0193] Figure 18A-18B Data is plotted for core frequency ramp rates limited to 1, 2, 3, and 5 bins per millisecond. As used herein, a "bin" refers to a selected value that causes a corresponding change in core frequency. In some cases, for example, the core frequency may be reduced by 1 / N of a "bin frequency," where the bin frequency corresponds to the smallest multiple by which the core frequency may be updated. In some embodiments, the bin frequency may be an integer multiple of the bus clock frequency, although the scope of the embodiments described herein is not limited in this regard.

[0194] It can be seen that different applications have different sensitivities to the core ramp rate. Some applications from the test suite show high sensitivity to the core ramp rate because these applications may have multiple phases where the core transitions from low frequency to high frequency. Slowing down each transition has a larger impact than other applications that are more stable throughout the execution. In addition, embedding applications with bursts of activity in the middle of large idle phases (such as browsing and WebXprt) significantly improves power savings ( Fig.18B ), while having no noticeable impact on performance ( Fig.18A ).

[0195] Therefore, a fixed ramp rate for core frequency across all types of applications leaves power and / or performance on the table. For example, the data shows that using a fixed 5 bins / ms ramp rate helps Bwaves performance, but hurts browsing power consumption. In contrast, limiting the ramp rate to 1 bin / ms helps save power for browsing, but significantly hurts Bwaves performance.

[0196] Embodiments of the present invention incorporate a workload-based dynamic core frequency ramp rate that can be modified at runtime based at least in part on the type of application or workload executed on a given core. Some implementations classify workloads based on the type of activity. Table D shows an example classification for a set of workloads. Video conferencing and video streaming / playback workloads are classified as battery life (BL) workloads because they cannot benefit from higher core frequencies. Similarly, idle (ID) workloads will not benefit from higher core frequencies. Therefore, a slower ramp rate can be implemented for occasional frequency ramps. Application workloads such as video editing and video recording are classified as bursty (BU) workloads, meaning that they may periodically require higher core performance. Gaming workloads (including gaming + video conferencing workloads) are classified as sustained (SU), meaning that they require continuous high performance. Both bursty and sustained workloads benefit from higher core frequencies. While sustained applications benefit from relatively slow core frequency ramp rates (because the initial performance impact is amortized over time), bursty applications may require faster ramp rates to improve responsiveness for periodic bursts of high-performance work. System Scenario Workload Type videoconference BL Video streaming (network) / playback (HD) BL Video Editing BU Video Recording BU game SU Games + Video Conferencing SU infer BL idle ID Table D

[0197] Additionally, the application type may change over time based on changes in the application's workload activity. For example, an application may be classified as bursty during its load time, but may be considered idle during a low activity phase after the initial load, and may be maintained during phases where its activity remains constant for longer durations. Embodiments of the present invention dynamically monitor application workloads and reclassify application workloads based on detected workload activity. These embodiments also dynamically change core ramp rates based on detected changes in the application's workload characteristics to achieve better power and performance tradeoffs.

[0198] When the system is in power saving mode, applications that are classified as bursty and continuous and benefit from fast core ramp rates may need to compromise on performance. In these cases, it is beneficial to slow down the core ramp rate (with some performance loss) in order to improve battery use. Therefore, in some embodiments, in addition to the workload type, the core frequency ramp rate is also a function of the power and performance requirements of the system. Embodiments of the present invention help optimize performance without compromising the energy efficiency of the system for all types of applications / workloads.

[0199] Fig.19AThe dynamic core frequency ramp rate selection logic 1900 is illustrated in accordance with one or more embodiments of the present invention. The workload type determination logic 1960 determines the workload type 1915 of the application executing on the core by evaluating a workload metric 1970 associated with the application. One or more associated energy and / or performance values ​​1950 may be stored by the OS or other supervisory software in a register, table / data structure, or memory location. The associated energy / performance value(s) 1950 may include a single value or multiple values ​​indicating a weighting between energy efficiency and performance of the corresponding application or workload. In one particular implementation, the energy / performance value(s) 1950 include the energy / performance value(s) described above with respect to Fig.16 However, the underlying principles of the invention are not limited to this particular type of energy / performance value.

[0200] Based on the workload type 1915 and the associated energy / performance value(s) 1950 , the rate selector 1910 selects a core frequency ramp rate 1930 for the corresponding core, which may be selected from a set of possible ramp rates 1920 .

[0201] In some embodiments, rate selector 1910 selects core frequency ramp rate 1930 based on additional variables such as the current power mode and / or thermal constraints 1970 implemented in the processor, the current frequency of core 1971 , and a specified maximum frequency 1972 .

[0202] refer to Fig.19B In some implementations, the ramp rate 1920 may be stored in a table or other data structure 1990 associated with the dynamic ramp rate selection logic 1900. In the illustrated example, there is a separate set of rows for each workload type (e.g., idle, battery life, continuous, bursty), and each row specifies a specific frequency ramp rate. Thus, the specific frequency ramp rate 1930 is selected based on a combination of the corresponding workload type, the current frequency, and one or more additional parameters (e.g., maximum frequency, thermal limits, energy / performance values, or any other parameters mentioned above).

[0203] Thus, this embodiment of the invention takes workload type 1915 and potentially one or more other variables as input and dynamically selects the optimal core frequency ramp rate 1930 at runtime. The ramp rate for each scenario (i.e., each combination of workload and energy performance preference) is provided as an adjustable knob that can be fine-tuned on silicon to better balance performance and power for each application and system mode. In some embodiments, the core frequency ramp rate 1930 is specified in units of frequency bins / milliseconds.

[0204] In some embodiments, the ramp rate is a variable ramp rate that ramps relatively slower for cores or other IP blocks operating at relatively higher current frequencies 1971 and relatively faster for cores / IP blocks operating at relatively lower current frequencies 1971. In these embodiments, the ramp rate read from the table or other data structure 1990 may indicate a range of possible ramp rates, one of which is selected based on variables such as current frequency, maximum frequency, power / thermal specifications, energy / performance, etc. In other implementations, all of these variables are incorporated into the ramp rate data structure 1990 so that the ramp rate read from the data structure is selected based on all the required information.

[0205] Fig. 20 The diagram illustrates a method for dynamic core ramp rate selection. The method can be implemented on various architectures described herein, but is not limited to any particular processor or system architecture.

[0206] At 2001, a workload type of an application (or workload of an application) is determined based on the collected workload execution metrics. For example, based on the execution metrics, the workload can be classified as a battery life (BL) workload, an idle (ID) workload, a bursty (BU) workload, or a sustained (SU) workload as described above.

[0207] At 2002, an energy performance preference (EPP) value associated with a workload is read (eg, from an HWP register). As mentioned, the EPP value may be set by an OS or other supervisory software.

[0208] At 2003, a dynamic core frequency ramp rate is generated or identified for the workload based on the workload type and the EPP value. In one embodiment, the ramp rate may be selected from possible specified ramp rates.

[0209] At 2004, the target frequency of the core is determined based on variables including, but not limited to, workload requirements, SoC power budget, and thermal constraints. Figure 13-Figure 17 Many variables are described.

[0210] At 2005, the core is transitioned to the target core frequency according to the dynamic core frequency ramp rate. For example, if a frequency ramp rate of 2 bins / ms is specified, the core frequency will increase according to that value (eg, increase the core frequency by 2 bins every millisecond).

[0211] Once the target frequency is reached, workload execution metrics continue to be collected for the application at 2006. As mentioned, different frequency transition rates may be selected for different workloads within the same application if those workloads have sufficiently different workload characteristics. Therefore, the process returns to 2001 where the workload type is re-evaluated based on the latest workload execution metrics collected at 2006.

[0212] Embodiments of the present invention provide significant benefits over existing implementations, which ramp the frequency of all cores to a target frequency (e.g., from 1.0 GHz to 5.0 GHz) in a single transition. These embodiments differentiate between workloads where a large single transition ramp may be beneficial (e.g., latency-sensitive applications) and workloads where a slower core ramp rate can be used, which reduces power consumption and does not result in user-perceivable performance degradation.

[0213] In the foregoing description, embodiments of the present invention have been described with reference to specific exemplary embodiments of the present invention. However, it will be apparent that various modifications and changes may be made to these embodiments without departing from the broader spirit and scope of the present invention as set forth in the appended claims. Therefore, the description and drawings should be regarded as illustrative rather than restrictive.

[0214] Embodiments of the present invention may include the steps described above. These steps may be embodied as machine executable instructions, which may be used to cause a general or special processor to perform these steps. Alternatively, these steps may be performed by specific hardware components containing hard-wired logic for performing these steps, or by any combination of programmed computer components and custom hardware components.

[0215] Example

[0216] The following are example implementations of different embodiments of the invention.

[0217] Example 1. A processor comprising: a plurality of cores, a first core of the plurality of cores for executing an application including one or more workloads; a dynamic ramp rate selection circuit for determining a core frequency ramp rate to be used to increase a frequency of the first core to a target frequency based at least in part on a workload type of a first workload of the one or more workloads; and a dynamic frequency scaling circuit for increasing the frequency of the first core to the target frequency according to the core frequency ramp rate.

[0218] Example 2. The processor of Example 1, wherein the dynamic ramp rate selection circuit is to determine the core frequency ramp rate additionally based on a value associated with the application or the first workload, the value indicating a weighting between energy efficiency and performance.

[0219] Example 3. The processor of Example 1 or 2 further comprises workload type determination logic to determine the workload type based on execution metrics associated with the first workload.

[0220] Example 4. The processor of any of Examples 1-3, wherein the workload type comprises one of a plurality of workload types characterized based at least in part on the extent to which workload performance is affected by a core frequency ramp rate.

[0221] Example 5. A processor as described in any of Examples 1-4, wherein for a workload of a first workload type among the plurality of workload types, the dynamic ramp rate selection circuit is used to select a relatively lower core frequency ramp rate, and for a second workload type among the plurality of workload types, the dynamic ramp rate selection circuit is used to select a relatively higher core frequency ramp rate.

[0222] Example 6. The processor of any of Examples 1-5, wherein the first workload type includes battery life and idle workloads, and the second workload type includes bursty and sustained workloads.

[0223] Example 7. The processor of any of Examples 1-6, wherein the ramp rate comprises a number of frequency bins per unit time.

[0224] Example 8. A processor as in any of Examples 1-7, wherein the value is set by an operating system or other supervisory software, the value being selected from a range of possible values ​​from a minimum value to a maximum value, the minimum value indicating a maximum preference for performance and the maximum value indicating a maximum preference for energy efficiency.

[0225] Example 9. A method includes: executing an application on one or more cores of a plurality of cores, the application including one or more workloads; determining a core frequency ramp rate for increasing a frequency of a first core of the one or more cores to a target frequency based at least in part on a workload type of a first workload of the one or more workloads; and increasing the frequency of the first core to the target frequency according to the core frequency ramp rate.

[0226] Example 10. The method of Example 9, wherein the core frequency ramp rate is determined additionally based on a value associated with the application or the first workload, the value indicating a weighting between energy efficiency and performance.

[0227] Example 11. The method of Examples 9-10 further comprises determining the workload type based on an execution metric associated with the first workload.

[0228] Example 12. The method of any of Examples 9-11, wherein the workload type comprises one of a plurality of workload types characterized based at least in part on the extent to which workload performance is affected by a core frequency ramp rate.

[0229] Example 13. The method of any of Examples 9-12, wherein for a workload of a first workload type among the plurality of workload types, a relatively lower core frequency ramp rate is selected, and for a workload of a second workload type among the plurality of workload types, a relatively higher core frequency ramp rate is selected.

[0230] Example 14. The method of any of Examples 9-13, wherein the first workload type includes battery life and idle workloads, and the second workload type includes bursty and sustained workloads.

[0231] Example 15. The method of any of Examples 9-15, wherein the ramp rate comprises a number of frequency bins per unit time.

[0232] Example 16. The method of any of Examples 9-16, wherein the value is set by an operating system or other supervisory software, the value being selected from a range of possible values ​​from a minimum value to a maximum value, the minimum value indicating a maximum preference for performance and the maximum value indicating a maximum preference for energy efficiency.

[0233] Example 17. A machine-readable medium having program code stored thereon, the program code, when executed by a machine, causes the machine to perform the following operations: execute an application on one or more cores of a plurality of cores, the application comprising one or more workloads; determine a core frequency ramp rate for increasing a frequency of a first core of the one or more cores to a target frequency based at least in part on a workload type of a first workload of the one or more workloads; and increase the frequency of the first core to the target frequency according to the core frequency ramp rate.

[0234] Example 18. The machine-readable medium of Example 17, wherein the core frequency ramp rate is determined additionally based on a value associated with the application or the first workload, the value indicating a weighting between energy efficiency and performance.

[0235] Example 19. The machine-readable medium of Example 17 or 18, further comprising program code for causing the machine to: determine a workload type based on an execution metric associated with the first workload.

[0236] Example 20. The machine-readable medium of any of Examples 17-19, wherein the workload type comprises one of a plurality of workload types characterized based at least in part on the extent to which workload performance is affected by a core frequency ramp rate.

[0237] Example 21. The machine-readable medium of any of Examples 17-20, wherein for a workload of a first workload type among the plurality of workload types, a relatively lower core frequency ramp rate is selected, and for a workload of a second workload type among the plurality of workload types, a relatively higher core frequency ramp rate is selected.

[0238] Example 22. The machine-readable medium of any of Examples 17-21, wherein the first workload type includes battery life and idle workloads, and the second workload type includes bursty and sustained workloads.

[0239] Example 23. The machine-readable medium of any of Examples 17-22, wherein the ramp rate comprises a number of frequency bins per unit time.

[0240] Example 24. The machine-readable medium of any of Examples 18-23, wherein the value is set by an operating system or other supervisory software, the value being selected from a range of possible values ​​from a minimum value to a maximum value, the minimum value indicating a maximum preference for performance and the maximum value indicating a maximum preference for energy efficiency.

[0241] As described herein, instructions may refer to a specific configuration of hardware such as an application-specific integrated circuit (ASIC) that is configured to perform certain operations or have predetermined functions or software instructions stored in a memory embodied in a non-transitory computer-readable medium. Thus, the techniques shown in the accompanying drawings can be implemented using code and data stored on and executed on one or more electronic devices (e.g., terminal stations, network elements, etc.). Such electronic devices use computer machine-readable media (internally and / or with other electronic devices through a network) to store and transmit code and data, such as non-transitory computer machine-readable storage media (e.g., disks; optical disks; random access memory; read-only memory; flash memory devices; phase change memory) and transient computer machine-readable communication media (e.g., electrical, optical, acoustic or other forms of propagation signals - such as carrier waves, infrared signals, digital signals, etc.). In addition, such electronic devices typically include a collection of one or more processors coupled to one or more other components (such as, one or more storage devices (non-transitory machine-readable storage media), user input / output devices (e.g., keyboards, touch screens and / or displays), and network connections). The coupling of the set of processors with other components is typically through one or more buses and bridges (also referred to as bus controllers). The storage device and signal carrying network traffic represent one or more machine-readable storage media and machine-readable communication media, respectively. Thus, the storage device of a given electronic device typically stores code and / or data for execution on the set of one or more processors of the electronic device. Of course, different combinations of software, firmware, and / or hardware can be used to implement one or more parts of an embodiment of the present invention. Throughout this specific embodiment, for the purpose of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present invention. However, it will be apparent to those skilled in the art that the present invention can be implemented without some of these specific details. In some instances, known structures and functions are not described in detail to avoid obscuring the subject matter of the present invention. Therefore, the scope and spirit of the present invention should be determined according to the appended claims.

Claims

1. A processor, comprising: a plurality of cores, a first core of the plurality of cores for executing an application including one or more workloads; dynamic ramp rate selection circuitry for determining a core frequency ramp rate to be used to increase the frequency of the first core to a target frequency based at least in part on a workload type of a first workload of the one or more workloads; as well as A dynamic frequency scaling circuit is configured to increase the frequency of the first core to the target frequency according to the core frequency ramp rate.

2. The processor of claim 1, wherein: The dynamic ramp rate selection circuit is to determine the core frequency ramp rate additionally based on a value associated with the application or the first workload, the value indicating a weighting between energy efficiency and performance.

3. The processor of claim 1 or 2, further comprising: Workload type determination logic is configured to determine the workload type based on an execution metric associated with the first workload.

4. The processor of claim 3, wherein: The workload type includes one of a plurality of workload types characterized based at least in part on a degree to which workload performance is affected by the core frequency ramp rate.

5. The processor of claim 4, wherein: For a workload of a first workload type among the multiple workload types, the dynamic ramp rate selection circuit is used to select a relatively lower core frequency ramp rate, and for a second workload type among the multiple workload types, the dynamic ramp rate selection circuit is used to select a relatively higher core frequency ramp rate.

6. The processor of claim 5, wherein: The first workload type includes battery life and idle workloads, and the second workload type includes bursty and sustained workloads.

7. The processor according to any one of claims 1 to 6, wherein: The ramp rate includes the number of frequency bins per unit time.

8. A processor according to any one of claims 2 to 7, wherein: The value is set by an operating system or other supervisory software and is selected from a range of possible values ​​from a minimum value indicating a maximum preference for performance to a maximum value indicating a maximum preference for energy efficiency.

9. A method comprising: executing an application on one or more cores of the plurality of cores, the application comprising one or more workloads; determining a core frequency ramp rate for increasing a frequency of a first core of the one or more cores to a target frequency based at least in part on a workload type of a first workload of the one or more workloads; as well as The frequency of the first core is increased to the target frequency according to the core frequency ramp rate.

10. The method of claim 9, wherein: The core frequency ramp rate is additionally determined based on a value associated with the application or the first workload, the value indicating a weighting between energy efficiency and performance.

11. The method of claim 9 or 10, further comprising: The workload type is determined based on an execution metric associated with the first workload.

12. The method of claim 11, wherein: The workload type includes one of a plurality of workload types characterized based at least in part on a degree to which workload performance is affected by the core frequency ramp rate.

13. The method of claim 12, wherein: For workloads of a first workload type among the plurality of workload types, a relatively lower core frequency ramp rate is selected, and for workloads of a second workload type among the plurality of workload types, a relatively higher core frequency ramp rate is selected.

14. The method of claim 13, wherein: The first workload type includes battery life and idle workloads, and the second workload type includes bursty and sustained workloads.

15. The method according to any one of claims 9 to 14, wherein: The ramp rate includes the number of frequency bins per unit time.

16. The method according to any one of claims 10 to 15, wherein: The value is set by an operating system or other supervisory software and is selected from a range of possible values ​​from a minimum value indicating a maximum preference for performance to a maximum value indicating a maximum preference for energy efficiency.

17. A machine-readable medium having a program code stored thereon, wherein the program code, when executed by a machine, causes the machine to perform the following operations: executing an application on one or more cores of the plurality of cores, the application comprising one or more workloads; determining a core frequency ramp rate for increasing a frequency of a first core of the one or more cores to a target frequency based at least in part on a workload type of a first workload of the one or more workloads; as well as The frequency of the first core is increased to the target frequency according to the core frequency ramp rate.

18. The machine-readable medium of claim 17, wherein: The core frequency ramp rate is additionally determined based on a value associated with the application or the first workload, the value indicating a weighting between energy efficiency and performance.

19. The machine-readable medium of claim 17 or 18, further comprising program code for causing the machine to: The workload type is determined based on an execution metric associated with the first workload.

20. The machine-readable medium of claim 19, wherein: The workload type includes one of a plurality of workload types characterized based at least in part on a degree to which workload performance is affected by the core frequency ramp rate.

21. The machine-readable medium of claim 20, wherein: For workloads of a first workload type among the plurality of workload types, a relatively lower core frequency ramp rate is selected, and for workloads of a second workload type among the plurality of workload types, a relatively higher core frequency ramp rate is selected.

22. The machine-readable medium of claim 21, wherein: The first workload type includes battery life and idle workloads, and the second workload type includes bursty and sustained workloads.

23. The machine-readable medium of any one of claims 17 to 22, wherein: The ramp rate includes the number of frequency bins per unit time.

24. The machine-readable medium of any one of claims 18 to 23, wherein: The value is set by an operating system or other supervisory software and is selected from a range of possible values ​​from a minimum value indicating a maximum preference for performance to a maximum value indicating a maximum preference for energy efficiency.