Improving processor performance under voltage constraints
Patent Information
- Application Number
- JP2023518722
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2020-09-23
- Filing Date
- 2021-09-19
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2041-09-19
AI Technical Summary
Modern computing systems face limitations in processor performance due to voltage constraints, which can lead to functional deficiencies and reliability issues, despite operating within thermal and electrical constraints to prevent damage.
A performance optimization framework that dynamically adjusts processor features to maximize performance without exceeding thermal and electrical limits by identifying and enabling features that do not violate these constraints, using a system management unit to monitor and manage voltage, current, and temperature.
Enhances computational performance by enabling additional processor features under voltage-limited conditions while maintaining reliability, thereby optimizing performance per watt of power consumption.
Abstract
Description
Background Art
[0001] Modern computing systems are designed to operate according to a set of thermal and electrical constraints. Ensuring operation within these constraints helps prevent damage to computing system components and maximizes the lifespan of the system. Processing units such as the central processing unit (CPU) and the graphics processing unit (GPU) can be damaged by overheating and are thus designed with operational safety measures that automatically stop or throttle the processing unit or a part of the processing unit (e.g., a specific core) if the constraints are violated. As a result, power consumption is reduced, a safe operating temperature is maintained, and damage to the processing unit hardware is prevented.
[0002] In addition, processing units are typically designed to execute tasks as quickly and efficiently as possible (e.g., maximize performance per watt of power consumption) while operating within thermal and electrical constraints. One strategy for improving performance is to utilize more efficient mechanisms (e.g., a more efficient cooling system) to more effectively manage thermal and electrical parameters and thus increase the headroom in the thermal and electrical constraints. This means that the processor can be operated at higher states, including increased frequency and voltage. Furthermore, the operating voltage can be optimized by mechanisms such as droop mitigation to provide a higher effective voltage to the processor and thus achieve higher performance.
[0003] The present disclosure is shown by way of example and not limitation in the figures of the accompanying drawings.
Brief Description of the Drawings
[0004] [Figure 1] A diagram showing a computing system according to one embodiment. [Figure 2]This figure shows a processing unit according to one embodiment. [Figure 3] This figure shows a performance optimization framework in a system management unit according to one embodiment. [Figure 4] This figure shows a performance optimization process according to one embodiment. [Modes for carrying out the invention]
[0005] The following description includes numerous specific details, such as examples of particular systems, components, and methods, to enhance understanding of the embodiments. However, it will be apparent to those skilled in the art that at least some embodiments can be implemented without these specific details. In other examples, well-known components or methods are not described in detail or are presented in the form of a simple block diagram to avoid unnecessarily obscuring the embodiments. Thus, the specific details described are merely illustrative. Certain embodiments may differ from these exemplary details and are still considered to fall within the scope of the embodiments.
[0006] In one embodiment, the operation of the processor is limited by thermal and electrical operating constraints, including thermally designed power (TDP), thermally designed current (TDC), electrically designed current (EDC), and / or operating temperature (Tj). TDP is the maximum amount of heat generated by a processing unit or component (e.g., a central processing unit (CPU), a graphics processing unit (GPU), etc.) that can be dissipated by the computer's cooling system. TDC is the maximum amount of current that can be supplied by the computer system's voltage regulator without violating thermal constraints. EDC is the maximum amount of peak current that can be supplied by the computing system's voltage regulator.
[0007] As the power efficiency supplied by advanced computing nodes increases, processing units within such nodes are no longer constrained by TDC, TDP, EDC, or Tj constraints for specific types of workloads. Instead, processing units are limited by their operating voltage due to functional defects and long-term reliability issues that appear at higher voltages.
[0008] The computational performance of a processor already operating at its voltage limit can be further improved if there is still headroom beyond the aforementioned thermal and electrical constraints. In one embodiment, processor features that improve performance without increasing the operating voltage are identified and enabled. The features to be enabled are selected based on their impact on the available thermal and electrical budget, so as to avoid violating thermal and electrical constraints (e.g., TDC, TDP, EDC, Tj).
[0009] While the processor is operating, the performance optimization framework detects when the processor is operating at its voltage limit and responds to the voltage limit condition by identifying processor features that can be enabled without violating thermal and electrical constraints, allowing the identified features to improve the processor's computational performance. Thus, the framework dynamically maximizes processor performance while enabling the processor to continue operating within the reliability limits enforced by the voltage limit condition.
[0010] Figure 1 shows one embodiment of a computing system 100 in which the above framework for improving the computational performance (measured, for example, by instructions per cycle) of a voltage-limited processor is implemented. Generally, the computing system 100 can be embodied as any of a number of different types of devices, including but not limited to laptop computers or desktop computers, mobile devices, servers, etc. The computing system 100 includes a number of components 102-108 that communicate with each other via a bus 101. In the computing system 100, each of the components 102-108 can communicate with any of the other components 102-108 directly via the bus 101 or via one or more of the other components 102-108. The components 101-108 in the computing system 100 are housed in a single physical enclosure, such as a laptop computer or desktop computer chassis, or a mobile phone casing. In an alternative embodiment, some of the components of the computing system 100 are embodied as peripheral devices, such that the entire computing system 100 is not located within a single physical enclosure.
[0011] Furthermore, the computing system 100 includes a user interface device for receiving information from or providing information to the user. Specifically, the computing system 100 includes an input device 102 such as a keyboard, mouse, touchscreen, or other device for receiving information from the user. The computing system 100 displays information to the user via a display 105 such as a monitor, light-emitting diode (LED) display, liquid crystal display, or other output device.
[0012] The computing system 100 further includes a network adapter 107 for sending and receiving data via a wired or wireless network. The computing system 100 also includes one or more peripheral devices 108. The peripheral devices 108 may include mass storage devices, position detection devices, sensors, input devices, or other types of devices used by the computing system 100.
[0013] The computing system 100 includes one or more processing units 104, and in the case of multiple processing units 104, they can operate in parallel. The processing units 104 receive and execute instructions 109 stored in the memory subsystem 106. In one embodiment, each of the processing units 104 includes multiple computing nodes located on a common integrated circuit board. The memory subsystem 106 includes storage devices used by the computing system 100, such as random access memory (RAM) modules, read-only memory (ROM) modules, hard disks, and other non-temporary computer-readable media.
[0014] Some embodiments of the computing system 100 may include fewer or more components than the embodiment shown in Figure 1. For example, certain embodiments are implemented without a display 105 or input device 102. Other embodiments may have two or more specific components; for example, an embodiment of the computing system 100 may have multiple buses 101, network adapters 107, memory devices 106, etc. Power is supplied to components 101-108 in the computing system 100 by a power supply 110.
[0015] Figure 2 shows hardware components within a processing unit 200, representing one or more processing units 104 according to one embodiment. The processing unit 200 includes one or more processor cores 210, a system management unit 220, and a set of sensors 230, all residing on a single integrated circuit die. In alternative embodiments, some or all of the components 210-230 are located on separate dies or in separate device packages. The components 210-230 are implemented using hardware circuits or using a combination of hardware, software, and / or firmware components.
[0016] The system management unit 220 monitors thermal and power conditions and controls the operation of the processor core to optimize performance or prevent conditions that could damage the processing unit 200 (for example, by suppressing the core 210 in response to overheating). In addition, the system management unit 220 implements a performance optimization framework for monitoring operating voltage and TDC, EDC, TDP, and Tj operating constraints to determine whether the processing unit 200 is limited by operating voltage. If the processing unit 200 is not operating under voltage limitations, the processor core 210 maximizes performance per watt by reducing unnecessary work and maximizing performance per watt by avoiding higher power consumption calculation strategies that would result in performance limit improvements.
[0017] When the processing unit 200 is operating under voltage-limited conditions, the operating voltage supplied to the processing unit cannot be further increased without exceeding the maximum voltage threshold Vmax. The performance optimization framework within the system management unit 220 determines the amount of headroom in each of the system's operating constraints, such as EDC, TDC, TDP, Tj, and Vmax, and enables features that improve performance within the processor core 210 (e.g., measured by instructions per cycle) without exceeding the operating constraints. In one embodiment, enabling several features by the framework reduces the overall power efficiency of the processing unit 200 but improves overall performance without exceeding the operating constraints.
[0018] Each of the operational parameters corresponding to any of the monitored operational constraints (EDC, TDC, TDP, Tj, Vmax, etc.) is measured using a set of sensors 230-231, including sensors 230 strategically positioned throughout the processor core(s) 210, and sensors 231 located elsewhere within the processing unit 200. The measured operational parameter values are transmitted to a system management unit 220, which is used to calculate the amount of headroom available for each operational constraint. The system management unit 220 then identifies one or more sets of performance features that can be enabled without exceeding the operational constraints, based on the amount of headroom and predetermined thresholds for each constraint. In one embodiment, the threshold represents the expected penalty incurred by enabling the set of features so that the set of features is enabled if the available headroom exceeds the threshold.
[0019] The workload provided by instruction 109 is executed within one or more processor cores 210 within the processing unit 200. Each of the processor cores 210 includes digital logic circuits that facilitate the execution process, such as a branch prediction module 211, one or more caches 212 and their cache controllers, registers 213, prefetch logic 214, etc. Several features are enabled by the performance optimization framework of the system management unit 220 by enabling additional functions of the digital logic circuits within the processor cores 210, such as different, more computationally intensive branch prediction functions. By enabling other features, mechanisms or functions already operating within the processor cores 210 operate according to different parameters. For example, existing functions (e.g., branch prediction, prefetching, etc.) can be adjusted to perform a larger amount of speculative work (often in parallel), or to allow certain functions to be executed more frequently, resulting in improved performance at the expense of additional computation and power consumption.
[0020] Examples of performance features that may be enabled when a voltage limiting mode is detected to achieve higher performance at the expense of higher activity may include, depending on system 100, the following (other performance features may also be enabled in other systems): Predictor Efficiency: The efficiency and performance of the predictor are improved by enabling the use of the predictive model and the execution of lightweight machine learning algorithms when the processing unit 200 is operating under voltage-limited conditions. Run-ahead execution: When voltage-limited, this allows execution resources to fetch instructions and data streams, calculate branch results, and store them in shift registers, thereby increasing the accuracy of branch predictors and improving prefetcher hit rates. Cache Way Determination: In non-voltage-limited conditions, way prediction is used to select a cache way for reading. In voltage-limited conditions, instead of relying on way prediction, all cache ways are made available for reading, reducing cache hit time and improving performance. Branch Predictor Lookup Parallelization: In non-voltage-limited conditions, the branch prediction module 211 waits for a level 1 (L1) cache hit before performing a level 2 (L2) cache lookup. In voltage-limited conditions, lower cache latency is achieved by allowing the use of additional computational resources to implement a predictor for performing L2 cache lookups in parallel with L1 cache lookups. Enabling more frequent OC-IC mode switching: Switching between the operational cache (OC) and instruction cache (IC) consumes energy. During non-voltage-limited operation, excessive mode switching is prevented, minimizing energy costs. In voltage-limited conditions, performance is improved by enabling more frequent mode switching between OC and IC. Sparsity of OC: In non-voltage-limited conditions, lines in OC are built from lines within the IC only if a hit occurs within the IC. That is, OC lines are built only over IC lines that are being reused to conserve power. In voltage-limited conditions, performance is improved if OC lines are built from IC lines regardless of whether a hit occurs in the IC lines. Simultaneous Multi-threading (SMT) scheduling per cycle: A specific component in the execution pipeline processes only one thread per given cycle, and therefore switches between threads when multiple threads are running. Switching between threads incurs an energy penalty because the combinational multiplexer logical node transitions its state to reflect the new thread state. In non-voltage-limited conditions, switching between threads occurs less frequently (e.g., every 2 or 4 cycles instead of every cycle) to conserve power. In voltage-limited conditions, performance is improved by enabling thread switching every cycle.
[0021] Registers 213 within a processor core(s) include configuration registers for enabling and controlling the operation of different digital logic circuits within the processor core(s) 210. Therefore, features are enabled by asserting specific configuration bits in registers 213, or by changing values in registers 213 that control the operating parameters of branch prediction modules 211, caches(s) 212, prefetchers 214, or other logic circuits.
[0022] Figure 3 shows the components of the performance optimization framework in the system management unit 220 according to one embodiment. The system management unit 220 includes a module 302 for determining the maximum operating voltage Vmax of the system, a monitoring logic 301 for calculating the amount of available headroom 316 for each of the operating constraints 314, a selection logic 304 for identifying a set of performance characteristics to enable, and an enabling logic 305 for enabling and disabling the performance characteristics.
[0023] The maximum voltage calculation module 302 calculates the maximum operating voltage Vmax, which may vary according to the temperature 311 of the system. The maximum voltage calculation module 302 receives the updated temperature value 311 from one or more of the sensors 230-231 and determines Vmax 313 at which the processing unit 200 can operate at the temperature 311 (e.g., by calculation, table lookup, etc.). In the comparison block 303, the updated operating voltage value 312 is received from the sensors 230-231 and compared with the value of Vmax 313. The comparison block 303 generates a voltage limit indication 315 that is asserted to indicate that the processing unit 200 is operating in a voltage-limited state if the measured operating voltage 312 is greater than or equal to Vmax 313. If the measured operating voltage 312 is not greater than or equal to Vmax 313, the voltage limit indicator (indication) 315 is de-asserted. If the processing unit 200 is operating in a voltage-limited state, some headroom is available in one or more of the other operating constraints 314.
[0024] The monitoring logic 301 calculates a set of headroom values 316 that includes headroom values for each of the operating constraints 314 such as TDP, TDC, EDC, and Tj. The sensors 230-231 provide the monitoring logic 301 with a set of measured operating parameters 310 that includes operating parameters corresponding to each of the constraints 314. In one embodiment, when the processing unit 200 is operating in a non-voltage-limited state, the sensors 230-231 periodically sense a subset of the operating parameters at a particular frequency (e.g., power, current, and temperature sampled every millisecond). When a voltage-limited state is detected, the sensors 230-231 increase the sensing frequency and / or begin sensing additional operating parameters. The increased sensing frequency and / or activation of additional sensors may increase power consumption, but allows the processing unit 200 to respond more quickly and accurately to changes caused by rapidly changing workloads or other conditions.
[0025] The measured operating parameters 310 are sent from the sensors 230-231 to the monitoring logic 301, and the headroom values for each constraint are calculated in the monitoring logic 301 by determining the difference between the constraint value and its corresponding measured operating parameter. For example, the available headroom for Tj is determined by the difference between the constraint Tj (i.e., the specified maximum operating temperature) and the measured operating temperature from the sensors 230-231. In one embodiment, the monitoring logic 301 calculates the headroom values 316 when the voltage limit indicator 315 indicates that the processing unit 200 is operating in a voltage-limited state. Alternatively, the monitoring logic 301 calculates the headroom values 316 regardless of whether the processing unit 200 is operating in a voltage-limited or non-voltage-limited state.
[0026] The monitoring logic 301 provides the headroom value 316 to the selection logic 304. The selection logic 304 selects a subset of performance features from the set of performance features supported in the processing unit 200. The subset of performance features is selected for activation based on the available headroom indicated by the headroom value 316 and the calibration information 317 for each feature subset. Each subset of performance features contains one or more features that are enabled or disabled together, and each feature can exist in multiple feature subsets.
[0027] The selection logic 314 reads calibration information 317 from the calibration table 306. The calibration table 306 associates each of the available feature subsets with the calibration information of the subset, including the activation threshold, priority, etc. In one embodiment, the information about the feature subset includes the activation threshold for each of the operational constraints. The activation threshold defines the minimum amount of headroom for their corresponding operational constraints observed before the feature subset is activated.
[0028] The activation threshold, priority, and other calibration information 317 for feature subsets are determined by a calibration process in which performance features within the subset are switched on and off during the execution of one or more benchmark routines within a processor core(s) 210. The impact of enabling a feature subset is determined by comparing the operating parameters measured when the feature set is disabled with the operating parameters measured when the feature set is enabled. The change in each operating parameter is recorded as an activation threshold for the operating constraint associated with that parameter. For example, if enabling a feature subset causes an increase in operating temperature by ΔT, then ΔT is recorded as the activation threshold associated with the maximum operating temperature constraint Tj. Therefore, if the available headroom for Tj is less than ΔT, the feature subset is not enabled because enabling the subset is expected to cause the operating temperature to rise above Tj.
[0029] In addition to the activation threshold, the calibration process generates priority values for different feature subsets based on the expected performance increase (e.g., measured by instructions per cycle). The expected performance improvement is measured for the feature subsets by running benchmark routines with the feature subsets disabled and enabled. Priority values are then assigned to the feature subsets based on the measured performance improvement, with higher priority values assigned to feature subsets that yield greater performance improvements (e.g., measured by instructions per cycle).
[0030] Therefore, the calibration process determines a set of activation thresholds and priority values for each of the available feature subsets that can be enabled in the processor core(s) 210. Since a given feature may have different effects on operating parameters and performance depending on which other features are enabled simultaneously, the activation thresholds and priorities are recorded for feature subsets that represent different combinations of features. In one embodiment, the calibration information 317 resulting from the calibration process is specific to each processing unit 200, and calibration is performed independently for each processing unit device.
[0031] In one embodiment, calibration is performed for each feature subset using different benchmark routines to simulate different types of workloads. The selection logic 304 then selects the feature subset to enable based on a set of enable thresholds for the workload type that best matches the actual workload running on the processor core(s) 210 at runtime. For example, a cache-intensive benchmark routine can be run during calibration to generate a set of enable thresholds for the feature subset. If the selection logic 304 then determines that the cache-intensive workload is running under voltage-limited conditions, the selection logic 304 uses the enable thresholds generated using the cache-intensive benchmark routine to determine whether the feature subset can be enabled without violating the operational constraints 314.
[0032] The set of activation thresholds and other calibration information generated by the calibration process is stored in the calibration table 306. When the selection logic 304 detects that one or more processor cores 210 are operating in a voltage-limited state via the voltage-limit instruction signal 315, the selection logic 304 determines, based on the updated headroom values 316 and calibration information 317 for each of the candidate feature subsets, which feature subsets, if any, can be enabled without violating the operational constraints 314. In particular, the selection logic 304 determines whether a feature subset can be enabled without violating the operational constraints 314 by comparing each activation threshold for a feature subset with its corresponding headroom value. If each headroom value exceeds its corresponding activation threshold, the selection logic 304 determines that the feature subset can be enabled without violating the constraints 314. If there is sufficient headroom to enable multiple alternative feature subsets, the feature subset with the highest priority is selected first, as enabling these feature subsets will result in the greatest expected performance improvement.
[0033] Once a subset of performance features is selected for activation by the selection logic 304, the activation logic 305 activates the selected feature subset. In response to activation, the processor core(s) 210 (e.g., by the branch prediction module 211, the cache(s) 212, the prefetch module 214, or other logic circuits) performs more speculative computations, mode switching, and / or other performance-enhancing operations. The activation logic 305 activates each of the performance features in the selected subset by asserting bits in or writing values to configuration registers that enable or control the operating parameters of the digital logic circuits that implement the features. In one embodiment, appropriate values are written to the configuration registers by microcode executed in the processor core(s) 210 in response to an activation signal 319 received from the activation logic 305. In various embodiments, the activation signal 319 may be implemented as a message sent to one or more processor cores 210, a set of direct wires to digital logic circuits implementing performance features, or another type of signal that identifies one or more features to be activated.
[0034] The performance optimization framework also includes an enable feature stack 307 for tracking enabled feature subsets. When a feature subset is enabled, the enable logic 305 records the identifier 318 for the feature subset in the stack 307 by sending the identifier 318 to the top position of the stack 307. Thus, the identifiers for enabled feature subsets are recorded in the stack in the order they were enabled, with identifiers for recently enabled subsets being closer to the top of the stack.
[0035] When the activation logic 305 detects, via the voltage limit instruction 315, that the processing unit 200 is no longer operating in a voltage-limited state, the activation logic 305 disables a subset of the most recently enabled performance features. In some cases, the processing unit 200 stops operating in a voltage-limited state due to changes in workload, environment, or other operating conditions that exceed operating constraints. The operating voltage is reduced until it no longer exceeds the operating constraints. In some cases, enabling a subset of features results in one or more operating constraints being exceeded. When the processing unit 200 stops operating in a voltage-limited state, the activation logic 305 retrieves identifier 320 from the top position of the enabled feature stack 307 and disables the subset of features identified by identifier 320 (for example, by performing a configuration register write, deasserting the appropriate activation signal, etc.).
[0036] The performance optimization framework also includes a hysteresis timer 308 to prevent feature subsets from being disabled too quickly after they have been enabled. For each enabled feature subset, the hysteresis timer 308 records an indicator of how much time has passed since the feature subset was enabled. In one embodiment, the hysteresis timer 308 stores a timestamp indicating when the feature subset was enabled. Alternatively, the timer 308 may store a counter value that is incremented periodically. The value of the hysteresis timer 308 for a feature subset is started or set when the subset is enabled. The enable logic 305 then checks the hysteresis timer 308 and does not disable the feature subset until the timer 308 for the subset has expired.
[0037] If enabling a subset of performance features causes one or more operational constraints to be exceeded, the activation thresholds for the subsets stored in the calibration table 306 are updated. For example, the calibration process may determine a set of activation thresholds for a particular subset that are inaccurate for the actual operational conditions or workload at runtime. A threshold that is too low may allow the feature subset to be enabled when insufficient headroom is available. A threshold that is too high may prevent the feature subset from being enabled when sufficient headroom is available. Therefore, thresholds determined to be inaccurate are corrected by the selection logic 304 by changing the stored values in the calibration table 306, updating the correction values that are added to or subtracted from the original calibrated thresholds, or disabling the original values in a different way.
[0038] In one embodiment, the calibration value is updated for a feature subset when the feature subset is disabled. Enabling a feature subset based on an inaccurate threshold may cause the operating constraints to be exceeded. As a result, the processing unit 200 stops operating in a voltage-limited state until the constraints are no longer exceeded as the operating voltage decreases, and the enable logic 305 responds by disabling the feature subset. Once the enable logic 305 disables the feature subset, the selection logic 304 updates the enable threshold for the disabled feature subset. Changes in the operating parameters 310 observed when the feature subset is enabled are used to determine the new enable threshold.
[0039] Figure 4 is a flowchart showing a performance optimization process 500 according to one embodiment. The performance optimization process 500 is executed by components in the processing unit 200, including components of the performance optimization framework in the system management unit 220. The operation of the process 500 is performed by hardware circuits in the processing unit, or by a combination of hardware, software, and / or firmware.
[0040] The calibration process is performed in blocks 501-503 by the processor core(s) 210 and the performance optimization framework. In block 503, the processor core(s) 210 runs a set of benchmark routines for each subset of performance features, with and without the subset enabled. For each feature subset, the enablement threshold and priority are determined based on the benchmark run and recorded in the calibration table 306, as provided in block 503.
[0041] In block 505, sensors 230-231 are used to sense operating parameters such as power, current, and temperature. The measured operating parameters are sensed periodically (e.g., every millisecond), and each sensed operating parameter corresponds to one of the operating constraints such as TDP, TDC, EDC, and Tj.
[0042] In block 507, the framework determines whether the processing unit 200 is operating in a voltage-limited state where the operating voltage has reached the maximum voltage Vmax. If the processing unit 200 is operating in a voltage-limited state, process 500 proceeds to block 509. When operating in a voltage-limited state, sensors 230-231 sample operating parameters at a higher frequency, as provided in block 509. Additional sensors are also enabled to sense other operating parameters. The additional sensor data allows the performance optimization framework to respond more quickly to changes in operating parameters that may exceed the corresponding operating constraints.
[0043] In blocks 511-519, the framework determines whether any subset of performance features from the set of performance features supported by the processing unit 200 can be enabled without exceeding the operational constraints, and if so, executes a process to enable one or more subsets. In block 511, the monitoring logic 301 determines a set of headroom values 316 for each of the operational constraints 314 by calculating the difference between the operational constraints 314 and their corresponding measured operational parameters 310. The operational constraints include, for example, the TDP, TDC, EDC, and Tj constraints of the processing unit.
[0044] In block 513, the selection logic 304 identifies the feature subset with the highest priority value that is currently disabled, based on priority information from the calibration table 306. In block 515, the selection logic reads the enable threshold for the identified highest-priority feature subset from the calibration table 306. In block 517, the selection logic 304 compares the enable threshold for the feature subset with their corresponding calculated headroom value 316. If the headroom value exceeds its corresponding enable threshold, it is expected that enabling the feature subset will not exceed the constraint.
[0045] Note that some constraints (e.g., maximum tolerance) are exceeded when their respective operating parameters are higher than the constraint value, while other constraints (e.g., minimum tolerance) are exceeded when their operating parameters are lower than the constraint value. Therefore, if the absolute value of the headroom is greater than the absolute value of the activation threshold, the available headroom exceeds the activation threshold.
[0046] If none of the headroom values 316 exceed their corresponding activation thresholds, it is expected that activating the feature subset will exceed the constraint. In this case, the feature subset is not selected for activation, and process 500 returns to block 513 to determine whether the next highest priority feature subset can be activated.
[0047] In block 517, if all of the headroom values 316 exceed their respective activation thresholds, it is expected that enabling the feature subset will not exceed any of the operational constraints 314. In this case, process 500 proceeds to block 519. In block 519, the activation logic 305 activates the selected feature subset within the processing unit 200. The activation logic 305 activates each performance feature within the subset by asserting an activation signal for the feature, sending a message to one or more processor cores 210, performing one or more configuration register writes, or communicating with one or more processor cores 210. Enabling performance features causes an increase in computational complexity and power consumption (e.g., for speculative work, mode switching, etc.) in the logic circuits operating in the one or more processor cores 210 (e.g., branch prediction module 211, prefetch module 214, etc.). In block 519, the identifiers of the enabled subsets of performance features are also recorded at the top of the enabled feature stack 307, and the hysteresis timer 308 is started or set for the enabled feature subsets. From block 519, process 500 returns to block 505, continues measuring operating parameters, and identifies any additional feature subsets that can be enabled to further optimize performance. If the processing unit 200 continues to operate under voltage limits after enabling a feature subset, the framework determines whether another feature subset can be enabled in subsequent iterations of blocks 509-519. Additional feature subsets are enabled in this manner until the processing unit 200 no longer operates under voltage limits, or until it is no longer possible to enable additional feature subsets without exceeding one or more operating constraints.
[0048] In block 507, if the processing unit 200 is not operating in a voltage-limited state, process 500 proceeds to blocks 521-531, where the most recently enabled feature subset is deactivated. If the processing unit 200 is operating in an unvoltage-limited state, at least one of the operating constraints is at its limit. In block 521, if no feature subset is enabled, process 500 returns to block 505, continues monitoring the operating parameters, and identifies any feature subset that can be enabled. If at least one feature subset is enabled, process 500 proceeds to block 523.
[0049] In block 523, the activation logic 305 retrieves the identifier of the most recently activated subset of performance features from the top of the activation feature stack 307. In block 525, the activation logic 305 determines whether the hysteresis timer 308 has expired for the identified most recently activated subset. In block 525, if the hysteresis timer 308 has not expired, process 500 returns to block 505 without deactivating the feature subset. Thus, the hysteresis timer 308 prevents the feature subset from being deactivated too quickly after it has been activated. In block 525, if the activation logic 305 determines that the hysteresis timer 308 has expired for the most recently activated feature subset, process 500 continues in block 527.
[0050] In block 527, the enable logic 305 disables the identified most recently enabled feature subset. In block 527, the selection logic 304 updates the calibration information 317 for the disabled subset. The selection logic 304 modifies the set of thresholds and / or priority values associated with the feature subset in the calibration table 306. The updated thresholds are calculated based on the impact that enabling the subset has on the measured operating parameters 310. The updated priority values are determined based on the impact that enabling the feature subset has on performance.
[0051] In block 529, if any subset of performance features remains enabled, process 500 returns to block 505 without changing the operation of sensors 230-231. However, if no further subsets of performance features are enabled, the sensing frequencies of sensors 230-231 are restored, and any additional sensors previously enabled are disabled in block 531, reversing the changes made in block 509. Thus, if no performance features using additional sensor data are enabled, sensor activity is reduced to conserve power. From block 531, process 500 returns to block 505, continues sensing the operating parameter 310, and identifies feature subsets to enable when the voltage limit condition is detected again. If processing unit 200 continues to operate in the voltage limit condition, according to blocks 521-531, any most recently enabled feature subsets are then disabled. In this way, feature subsets are deactivated in the reverse order in which they were activated, until the feature subset is no longer enabled, or until the processing unit 200 returns to operation in the voltage-limited state.
[0052] A method for operating a processing unit includes, upon detection that the processing unit is operating under voltage-limited conditions, calculating a set of headroom values by calculating a headroom value for each operating constraint in a set of operating constraints for the processing unit based on a calculated set of headroom values; selecting a subset of one or more performance features from a set of performance features to enable in the processing unit; and enabling the selected subset of performance features in the processing unit.
[0053] This method further includes, for each subset of multiple feature subsets, executing a benchmark routine within a processing unit using the performance features contained in the subset to determine the activation threshold for each behavioral constraint in the set of behavioral constraints for the subset, and associating the activation threshold for each behavioral constraint in the set of behavioral constraints with a subset in a calibration table.
[0054] This method further includes, for at least one subset of multiple feature subsets, changing (modifying) the activation threshold in response to detecting that the processing unit has stopped operating under a voltage-limited state after enabling at least one subset.
[0055] In this method, the operating constraints include the thermally designed power, thermally designed current, electrically designed current, and maximum operating temperature of the processing unit.
[0056] This method further includes measuring the operating parameter associated with each operating constraint in the set of operating constraints. Calculating the headroom for the operating constraints involves calculating the difference between the measured operating parameter and the operating constraint.
[0057] This method further includes periodically sensing one or more operating parameters of a processing unit, and increasing the sensing frequency in response to detecting that the processing unit is operating under a voltage limiting condition.
[0058] In this method, selecting a subset of performance features to enable involves reading a set of enablement thresholds associated with the subset from a calibration table. The subset is selected based on comparing each enablement threshold in the set of enablement thresholds with the corresponding headroom value in a set of calculated headroom values.
[0059] In this method, enabling a subset of selected performance features involves increasing the amount of computation performed by the logic circuits operating within the processing unit.
[0060] In this method, enabling a subset of selected performance features includes recording the identifier of the selected subset on a stack. After enabling a subset of selected performance features, the method further includes, in response to detecting that the processing unit has stopped operating under a voltage-limited state, retrieving the identifier from the top position of the stack and, based on the identifier, deactivating the subset of selected performance features corresponding to the identifier.
[0061] The computing device includes monitoring logic for calculating a set of headroom values by calculating a headroom value for each operational constraint in a set of operational constraints of the processing unit; selection logic coupled to the monitoring logic for selecting one or more subsets of performance features from a set of performance features to enable in the processing unit based on the calculated set of headroom values, in response to detecting that the processing unit is operating under voltage-limited conditions; and enable logic coupled to the selection logic for enabling the subset of performance features selected in the processing unit.
[0062] The computing device further includes a set of processor cores that, for each subset of a plurality of feature subsets, each containing a different subset of a set of performance features, run a benchmark routine using the performance features contained in the subset to determine, for the subset, an enable threshold for each operational constraint in a set of operational constraints; and a calibration table that stores the association between the enable threshold for an operational constraint and the subset for each operational constraint in the set of operational constraints.
[0063] In computing devices, selection logic modifies (corrects) the activation threshold for each operating constraint in a set of operating constraints in response to detecting that the processing unit has stopped operating under a voltage-limited state, after enabling at least one subset of multiple feature subsets.
[0064] The computing device is coupled to a monitoring logic and further includes multiple sensors for measuring the operating parameters associated with each operating constraint in the set of operating constraints. The monitoring logic calculates the headroom for each operating constraint in the set of operating constraints by calculating the difference between the operating constraint and the measured operating parameters associated with it.
[0065] The computing device further includes a plurality of sensors coupled to monitoring logic to periodically sense one or more operating parameters of a processing unit and to increase the frequency of periodic sensing in response to detection that the processing unit is operating under a voltage-limited state.
[0066] The computing device is coupled to a selection logic and further includes a calibration table for storing a set of enable thresholds for a subset of selected performance features. The selection logic selects a subset of performance features to enable by reading the set of enable thresholds from the calibration table. The subset is selected based on comparing each enable threshold in the set of enable thresholds with the corresponding headroom value in a calculated set of headroom values.
[0067] The computing device further includes a stack coupled to an activation logic. The activation logic activates a subset of selected performance features by recording the identifiers of the selected subset in the stack, and, after activating the subset of selected performance features, if it detects that the processing unit is not operating under voltage-limited conditions, it retrieves the identifier from the top position of the stack and, based on the identifier, deactivates the subset of selected performance features corresponding to the identifier.
[0068] The computing system includes a set of one or more processor cores in a processing unit and a system management unit coupled to the set of processor cores. The system management unit, upon detecting that the processing unit is operating under voltage-limited conditions, calculates a set of headroom values by calculating a headroom value for each operational constraint in a set of operational constraints of the processing unit based on a calculated set of headroom values, selects a subset of one or more performance features from a set of performance features to enable in the processing unit, and enables the selected subset of performance features in the processing unit.
[0069] The computing system further includes multiple sensors, each coupled to a monitoring logic and located on one of a set of processor cores. For each operating constraint in the set of operating constraints, the multiple sensors measure the operating parameter associated with the constraint, periodically sensing one or more operating parameters of the processing unit, and increasing the frequency of periodic sensing as they detect that the processing unit is operating under a voltage-limited state. The system management unit calculates the headroom for each operating constraint in the set of operating constraints by calculating the difference between the operating constraint and the measured operating parameter associated with the constraint.
[0070] In a computing system, a set of processor cores increases the number of speculative calculations performed by one or more sets of logic circuits within the set of processor cores, depending on whether a subset of selected performance features is enabled.
[0071] In a computing system, a set of processor cores determines a set of enable thresholds for a subset of performance features. The computing system further includes a calibration table, which is coupled to a system management unit and configured to store the set of enable thresholds. The system management unit reads the set of enable thresholds from the calibration table and selects a subset of performance features to enable by comparing each enable threshold in the set of enable thresholds with a corresponding headroom value from a calculated set of headroom values.
[0072] As used herein, the term "coupled" may mean coupled directly or indirectly through one or more intervening components. Any of the signals provided through the various buses described herein may be time-division multiplexed with other signals and provided through one or more common buses. Furthermore, interconnections between circuit components and blocks may be represented as buses or single signal lines. Each bus may, alternatively, be one or more single signal lines, and each single signal line may, alternatively, be a bus.
[0073] Certain embodiments may be implemented as computer program products that may include instructions stored on a non-temporary computer-readable storage medium. These instructions may be used to program a general-purpose or dedicated processor to perform the operations described. The computer-readable medium includes any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer) (e.g., software, processing applications). The non-temporary computer-readable storage medium may include, but is not limited to, magnetic storage media (e.g., floppy diskettes), optical storage media (e.g., CD-ROMs), magneto-optical storage media, read-only memory (ROM), random-access memory (RAM), erasable programmable memory (e.g., EPROM and EEPROM), flash memory, or other types of media suitable for storing electronic instructions.
[0074] In addition, some embodiments may be implemented in a distributed computing environment in which a computer-readable storage medium is stored on and / or executed by two or more computer systems. Furthermore, information transferred between computer systems may be pulled or pushed via a transmission medium connecting the computer systems.
[0075] Generally, a data structure representing a computing system 100 and / or a part thereof, mounted on a computer-readable storage medium, may be a database or other data structure that can be read by a program and used directly or indirectly to manufacture hardware including the computing system 100. For example, the data structure may be an action-level description or register-transfer-level (RTL) description of hardware functionality in a high-level design language (HDL) such as Verilog or VHDL. The description can be read by a synthesis tool that can synthesize the description to generate a netlist containing a list of gates from a synthesis library. The netlist contains a set of gates that also represent the functionality of the hardware including the computing system 100. The netlist can then be arranged and routed to generate a dataset describing geometric shapes to be applied to a mask. The mask can then be used in various semiconductor manufacturing processes to manufacture semiconductor circuits(s) corresponding to the computing system 100. Alternatively, a database on a computer-readable storage medium may, as desired, be a netlist (with or without a synthetic library), a dataset, or Graphic Data System (GDS) II data.
[0076] Although the operations of the methods(s) described herein are shown and explained in a specific order, the order of operations of each method may be modified so that certain operations may be performed in reverse order, or so that certain operations may be performed at least partially concurrently with other operations. In another embodiment, the instructions or suboperations of individual operations may be performed intermittently and / or alternately.
[0077] In the above specification, embodiments have been described with reference to specific exemplary embodiments. However, it will be apparent that various modifications and changes can be made to them without departing from the broader scope of embodiments described in the appended claims. Accordingly, this specification and the drawings should be taken as illustrative rather than restrictive.
Claims
1. 1. A method of operating a processing unit, comprising the steps of: enabling a subset of one or more performance features of a set of performance features in the processing unit in response to the processing unit operating in a voltage-limited state, the subset of one or more performance features being enabled in response to a headroom value for one or more operating constraints of a set of operating constraints of the processing unit. method.
2. for each of a plurality of feature subsets, each subset comprising a different subset of the set of performance features; running a benchmark routine on the processing unit using performance characteristics included in the subset to determine, for the subset, an activation threshold for each operational constraint in the set of operational constraints; and for each operational constraint in the set of operational constraints, associating the enablement threshold for the operational constraint with the subset in a calibration table.
2. The method of claim 1.
3. and modifying the enable threshold for at least one subset of the plurality of feature subsets in response to detecting that the processing unit has ceased operation in the voltage limited condition after enabling the at least one subset. The method of claim 2.
4. the operational constraints include a thermal design power, a thermal design current, an electrical design current, and a maximum operating temperature of the processing unit; 2. The method of claim 1.
5. For each motion constraint of the set of motion constraints: measuring an operational parameter associated with the operational constraint; calculating the headroom relative to the operational constraint by calculating a difference between the measured operational parameter and the operational constraint.
2. The method of claim 1.
6. periodically sensing one or more operating parameters of the processing unit; and increasing a frequency of the sensing in response to detecting that the processing unit is operating in the voltage limited condition.
2. The method of claim 1.
7. Enabling a subset of the one or more performance characteristics includes reading a set of activation thresholds associated with the subset from a calibration table; the subset is selected based on comparing each activation threshold in the set of activation thresholds to a corresponding headroom value in the headroom values.
2. The method of claim 1.
8. enabling the selected subset of the one or more performance characteristics includes increasing an amount of computation performed by logic circuitry operating in the processing unit.
2. The method of claim 1.
9. Enabling a selected subset of the one or more performance characteristics includes recording an identifier of the selected subset in a stack; In response to detecting that the processing unit has ceased operation in the voltage limited condition after enabling a selected subset of the performance features, the method further comprises: popping the identifier from the top position of the stack; and disabling a selected subset of the performance characteristics corresponding to the identifier based on the identifier.
2. The method of claim 1.
10. 1. A computing device comprising: supervisory logic configured to calculate a set of headroom values by calculating a headroom value for each operational constraint in a set of operational constraints for the processing unit; selection logic coupled to the monitoring logic, the selection logic being configured to select a subset of one or more performance features to enable at the processing unit from a set of performance features based on the set of calculated headroom values in response to detecting the processing unit operating in a voltage limited condition; enabling logic coupled to the selection logic and configured to enable a selected subset of the performance characteristics of the processing unit. Computing device.
11. a set of processor cores configured to, for each of a plurality of feature subsets, each subset comprising a different subset of the set of performance features, run a benchmark routine using the performance features included in the subset to determine, for the subset, an enablement threshold for each operational constraint in the set of operational constraints; a calibration table configured to store, for each operational constraint in the set of operational constraints, an association between the enablement threshold for the operational constraint and the subset. The computing device of claim 10.
12. The selection logic includes: and further configured, for at least one subset of the plurality of feature subsets, to modify the enablement threshold for each operational constraint in the set of operational constraints in response to detecting that the processing unit has ceased operation in a voltage limited condition after enabling the at least one subset. The computing device of claim 11.
13. a plurality of sensors coupled to the monitoring logic, the plurality of sensors configured to measure, for each operational constraint of the set of operational constraints, an operational parameter associated with the operational constraint; the monitoring logic is further configured to: for each operational constraint of the set of operational constraints, calculate the headroom for the operational constraint by calculating a difference between the operational constraint and the measured operational parameter associated with the operational constraint. The computing device of claim 10.
