DYNAMIC POWER LIMIT SHARING IN A PLATFORM

Abstract
A method and apparatus for dynamic power limit sharing among the modules in the platform. In one embodiment of the invention, the platform comprises a processor and memory modules. By expanding the power domain to include the processor and the memory modules, dynamic sharing of the power budget of the platform between the processor and the memory modules is enabled. For low-bandwidth workloads, the dynamic sharing of the power budget offers significant opportunity for the processor to increase its frequency by using the headroom in the memory power and vice versa. This enables higher peak performance for the same total platform power budget in one embodiment of the invention.
Description
FIELD OF THE INVENTION

This disclosure pertains to a platform, as well as code to execute thereon, and in particular but not exclusively, to the dynamic power limit sharing among the modules in the platform.


BACKGROUND DESCRIPTION

Traditionally, the power limit to the central processing unit (CPU) has been provided by the platform. With the advent of integrated memory controllers, the CPU or processor controls the power consumption of the memory modules in the platform as well. In a micro-processor based platform, the power consumption of the memory modules in the platform can constitute a significant portion of the total power consumed by the platform.


In many platforms, the processor and the memory modules are treated as separate power domains when the total platform power budget is allocated. When the total platform budget such as platform rating is determined, each domain is set to a realistic maximum value, which is not the worst case scenario. As such, there is a processor power limit that is obeyed by the processor and a memory power limit that is obeyed by the memory modules.


When the memory modules and the processer each have a separate power budget or limit, it limits the performance of the platform or system for low-bandwidth workloads.





BRIEF DESCRIPTION OF THE DRAWINGS

The features and advantages of embodiments of the invention will become apparent from the following detailed description of the subject matter in which:



FIG. 1 illustrates the block diagram of a platform in accordance with one embodiment of the invention;



FIG. 2 illustrates the operations to enable dynamic power limit sharing in the platform in accordance with one embodiment of the invention; and



FIG. 3 illustrates a system to implement the methods disclosed herein in accordance with one embodiment of the invention.





DETAILED DESCRIPTION

Embodiments of the invention described herein are illustrated by way of example and not by way of limitation in the accompanying figures. For simplicity and clarity of illustration, elements illustrated in the figures are not necessarily drawn to scale. For example, the dimensions of some elements may be exaggerated relative to other elements for clarity. Further, where considered appropriate, reference numerals have been repeated among the figures to indicate corresponding or analogous elements. Reference in the specification to “one embodiment” or “an embodiment” of the invention means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the invention. Thus, the appearances of the phrase “in one embodiment” in various places throughout the specification are not necessarily all referring to the same embodiment.


Embodiments of the invention provide a method and apparatus for dynamic power limit sharing among the modules in the platform. The platform includes, but is not limited to, a desktop computer, a tablet computer, a laptop computer, a netbook, a notebook computer, a personal digital assistant (PDA), a tablet, a server, a workstation, a cellular telephone, a mobile computing device, a smart phone, an Internet appliance or any other type of computing device.


In one embodiment of the invention, the platform comprises a processor and memory modules. By expanding the power domain to include the processor and the memory modules, dynamic sharing of the power budget or limit of the platform between the processor and the memory modules is enabled. For low-bandwidth workloads, the dynamic sharing of the power budget offers significant opportunity for the processor to increase its frequency by using the headroom in the memory power and vice versa. This enables higher peak performance for the same total platform power budget in one embodiment of the invention.


In another embodiment of the invention, the platform comprises other logic modules and the platform enables dynamic sharing of the power limit among the logic modules. The logic module includes, but is not limited to, a processor, a co-processor, a digital signal processor, a graphics processing unit (GPU), a memory module and other module where the power consumption of the module can be estimated.



FIG. 1
100 illustrates the block diagram of a platform in accordance with one embodiment of the invention. In one embodiment of the invention, the platform comprises a processor 112, memory modules 1122, 2124, n 126, the GPU 132 and the other logic module 142. The memory module n 126 illustrates that the processor can be coupled with any number of memory modules and the other module 142 illustrates that the platform can have other logic modules coupled with the processor 112.


In one embodiment of the invention, each module in the platform has its own power domain. For example, in one embodiment of the invention, the processor 112 is powered by the processor power domain 110, the memory modules 1122, 2124, n 126 are powered by the memory power domain 120, the GPU 132 is powered by the GPU power domain 130 and the other logic module 142 is powered by the other logic power domain 140.


To enable dynamic sharing of the power limit among the modules in the platform, the platform creates a combined platform power domain 150 in one embodiment of the invention. The modules of the platform obey the power limit set in the combined platform power domain 150 but the individual constraints on each module can be relaxed in one embodiment of the invention. By doing so, it allows dynamic power sharing among the modules in the platform in one embodiment of the invention.


Further, with one limit for the combined platform power domain 150, only one guard band is needed to be added for the platform and it allows minimal guard band requirements for the power consumption of each of the modules in the platform in one embodiment of the invention. This is because the modules in the platform are dynamically sharing the power consumption limit for the combined platform power domain 150.


For example, when the processor is executing a low bandwidth task and the memory modules do not require high memory bandwidth utilization, the power limit of the processor is dynamically increased while the power limit of the memory modules are decreased such that the power budget of the combined platform power domain is still obeyed. This enables the processor to execute faster with a higher power limit while power of the memory modules is decreased.


In one embodiment of the invention, the combined platform power domain 150 allows the platform to handle a power sensitive environment where the overall power budget or limit needs to be maintained while allowing each of the modules to execute in an efficient way.


In one embodiment of the invention, the platform has a register to store the programmable limit for the combined platform power domain 150 and another register to set the programmable platform domain time window over which the limit is enforced. In one embodiment of the invention, the limit of the combined platform power domain 150 is created in addition to the existing limits of the modules in the platform. In another embodiment of the invention, the limit of the combined platform power domain 150 replaces the power limits of the modules in the platform.


In one embodiment of the invention, the platform has logic to enforce the limit for the combined platform power domain 150 by changing the power consumption of the modules in the platform. For example, in one embodiment of the invention, the platform executes logic such as processor-based firmware to enforce the limit of the combined platform power domain 150. The processor-based firmware dynamically changes the behavior of each module such that the module stays within the limit of the combined platform power domain 150.


For example, in one embodiment of the invention, in order to change the power consumption of the processor 112, the logic in the platform changes one or more parameters of the processor 112 that include, but are not limited to, voltage input, frequency, throughput of instructions, and any other parameter that affects the power consumption of the processor 112. In one embodiment of the invention, in order to lower the power consumption of the processor 112, the logic in the platform switches the executing code or instructions to a lower performing code that requires less power by only using lower precision arithmetic units, but requires more iteration to build the precision.


For example, in another embodiment of the invention, in order to change the power consumption of the memory modules 1122, 2124, n 126, the platform changes one or more parameters of the memory modules 1122, 2124, n 126 that include, but are not limited to, voltage input, frequency, number of read instructions, number of write instructions, bandwidth throttling and any other parameter that affects the power consumption of the memory modules 1122, 2124, n 126. One of ordinary skill in the relevant will readily appreciate how to use other techniques to alter the power consumption of the modules and these other techniques can be used without affecting the workings of the invention.


In one embodiment of the invention, the platform controller 160 sets the power limits for each domain and communicates them to the processor 112. In one embodiment of the invention, the platform controller 160 is a hardware device such as a Board Management Controller (BMC) or a Manageability Engine (ME) that is connected through a dedicated hardware interface. In another embodiment of the invention, the platform controller 160 is a software entity such as a Node Manager that is in charge of the platform power management. In yet another embodiment of the invention, the platform controller 160 is integrated with the processor 112.


In one embodiment of the invention, the platform has logic such as processor-based firmware (P-code) to observe the average power consumption of the modules in the platform over the platform domain time window. For example, in one embodiment of the invention, the platform analyzes or determines the average processor and memory power consumption over the platform domain time window and adjusts the power consumption of the processor 112 and the memory modules 1122, 2124, n 126 to enforce both the individual processor and memory power limits and/or the limit of the combined platform power domain 150.


When a module has multiple power consumption limits, the lowest available limit is enforced by the platform. For example, in one embodiment of the invention, if the average processor power consumption over the platform domain time window exceeds the processor power limit, the voltage/frequency of the processor 112 is reduced. Similarly, if the average memory power consumption exceeds the memory power limit, the memory controller in the processor can be set to throttle the memory.


In addition, if the average platform power consumption exceeds the limit of the combined platform power domain 150, the platform selects the most power consuming module to reduce its power consumption such that the limit of the combined platform power domain 150 is met. For example, the platform may select the processor 112 and reduces its voltage/frequency because it is a performance-efficient mechanism for reducing the power of the platform. If the processor 112 is set to the lower operating point that consumes the least power but the limit of the combined platform power domain 150 is not met, the platform selects another module to throttle its power consumption to meet the limit of the combined platform power domain 150. For example, the platform may select the GPU 132 for throttling if the limit of the combined platform power domain 150 is not met.


In one embodiment of the invention, the processor-based firmware has access to the power measurements of the modules in the platform. This allows the average power consumption of each module to be determined and checked against the set threshold. For example, in one embodiment of the invention, the platform may access readings taken from the associated digital voltage regulators for the modules. In another embodiment of invention, the platform may estimate the power consumed by each module by using performance counters. One of ordinary skill in the relevant art will readily appreciate how to use other techniques of determining the power consumption of each module in the platform and these other techniques can be used without affecting the workings of the invention.



FIG. 2 illustrates the operations to enable dynamic power limit sharing in the platform in accordance with one embodiment of the invention. For clarity of illustration, FIG. 2 is discussed with reference to FIG. 1. For ease of illustration, the operations illustrated in FIG. 2 apply to a platform with a processor power domain 110 and a memory power domain 120. One of ordinary skill in the relevant art will readily appreciate how to extend the operations for a platform with more modules and shall not be described herein.


In step 210, the target processor power (TARGET_CPU_power) is set to the difference between the combined platform power budget 105 (Platform budget) and the average memory power consumption (MEM_POWER). In one embodiment of the invention, the average memory power consumption is computed over the platform domain window time limit.


The step 210 allows the platform to dynamically share the power budget between the processor and the memory modules. For example, in one embodiment of the invention, when the average power consumption of the memory modules is low, a higher target processor power is given to the processor. Similarly, when the average power consumption of the memory modules is high, a lower target processor power is given to the processor.


In step 220, the operation 200 checks if the target processor power is greater than the minimum allowed processor power. The minimum allowed processor power is the lowest allowed power rating for the processor in one embodiment of the invention. If the target processor power is greater than the minimum allowed processor power in step 220, the processor power limit is set to the target processor power in step 232. In step 234, the operation 200 disable the throttling of the memory and the operation 200 goes back to step 210.


If the target processor power is not greater than or equal to the minimum allowed processor power in step 220, the target memory power limit (TARGET_MEM_POWER) is set to the difference between the combined platform power budget 105 and the minimum allowed processor power in step 242. In step 244, the operation 200 enables the throttling of the memory to meet the target memory power limit. In step 246, the operation 220 sets the processor power limit to the minimum allowed processor power and the operation 200 goes back to step 210.



FIG. 3 illustrates a system or platform 300 to implement the methods disclosed herein in accordance with one embodiment of the invention. The system 300 includes, but is not limited to, a desktop computer, a tablet computer, a laptop computer, a netbook, a notebook computer, a personal digital assistant (PDA), a server, a workstation, a cellular telephone, a mobile computing device, a smart phone, an Internet appliance or any other type of computing device. In another embodiment, the system 300 used to implement the methods disclosed herein may be a system on a chip (SOC) system.


The processor 310 has a processing core 312 to execute instructions of the system 300. The processing core 312 includes, but is not limited to, fetch logic to fetch instructions, decode logic to decode the instructions, execution logic to execute instructions and the like. The processor 310 has a cache memory 316 to cache instructions and/or data of the system 300. In another embodiment of the invention, the cache memory 316 includes, but is not limited to, level one, level two and level three, cache memory or any other configuration of the cache memory within the processor 310.


The memory control hub (MCH) 314 performs functions that enable the processor 310 to access and communicate with a memory 330 that includes a volatile memory 332 and/or a non-volatile memory 334. The volatile memory 332 includes, but is not limited to, Synchronous Dynamic Random Access Memory (SDRAM), Dynamic Random Access Memory (DRAM), RAMBUS Dynamic Random Access Memory (RDRAM), and/or any other type of random access memory device. The non-volatile memory 334 includes, but is not limited to, NAND flash memory, phase change memory (PCM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), or any other type of non-volatile memory device.


The memory 330 stores information and instructions to be executed by the processor 310. The memory 330 may also stores temporary variables or other intermediate information while the processor 310 is executing instructions. The chipset 320 connects with the processor 310 via Point-to-Point (PtP) interfaces 317 and 322. The chipset 320 enables the processor 310 to connect to other modules in the system 300. In another embodiment of the invention, the chipset 320 is a platform controller hub (PCH). In one embodiment of the invention, the interfaces 317 and 322 operate in accordance with a PtP communication protocol such as the Intel® QuickPath Interconnect (QPI) or the like. The chipset 320 connects to a GPU or a display device 340 that includes, but is not limited to, liquid crystal display (LCD), cathode ray tube (CRT) display, or any other form of visual display device. In another embodiment of the invention, the GPU 340 is not connected to the chipset 320 and is part of the processor 310 (not shown).


In addition, the chipset 320 connects to one or more buses 350 and 360 that interconnect the various modules 374, 380, 382, 384, and 386. Buses 350 and 360 may be interconnected together via a bus bridge 372 if there is a mismatch in bus speed or communication protocol. The chipset 320 couples with, but is not limited to, a non-volatile memory 380, a mass storage device(s) 382, a keyboard/mouse 384 and a network interface 386. The mass storage device 382 includes, but is not limited to, a solid state drive, a hard disk drive, an universal serial bus flash memory drive, or any other form of computer data storage medium. The network interface 386 is implemented using any type of well known network interface standard including, but not limited to, an Ethernet interface, a universal serial bus (USB) interface, a Peripheral Component Interconnect (PCI) Express interface, a wireless interface and/or any other suitable type of interface. The wireless interface operates in accordance with, but is not limited to, the IEEE 802.11 standard and its related family, Home Plug AV (HPAV), Ultra Wide Band (UWB), Bluetooth, WiMax, or any form of wireless communication protocol.


While the modules shown in FIG. 3 are depicted as separate blocks within the system 300, the functions performed by some of these blocks may be integrated within a single semiconductor circuit or may be implemented using two or more separate integrated circuits. The system 300 may include more than one processor/processing core in another embodiment of the invention.


The methods disclosed herein can be implemented in hardware, software, firmware, or any other combination thereof. Although examples of the embodiments of the disclosed subject matter are described, one of ordinary skill in the relevant art will readily appreciate that many other methods of implementing the disclosed subject matter may alternatively be used. In the preceding description, various aspects of the disclosed subject matter have been described. For purposes of explanation, specific numbers, systems and configurations were set forth in order to provide a thorough understanding of the subject matter. However, it is apparent to one skilled in the relevant art having the benefit of this disclosure that the subject matter may be practiced without the specific details. In other instances, well-known features, components, or modules were omitted, simplified, combined, or split in order not to obscure the disclosed subject matter.


The term “is operable” used herein means that the device, system, protocol etc, is able to operate or is adapted to operate for its desired functionality when the device or system is in off-powered state. Various embodiments of the disclosed subject matter may be implemented in hardware, firmware, software, or combination thereof, and may be described by reference to or in conjunction with program code, such as instructions, functions, procedures, data structures, logic, application programs, design representations or formats for simulation, emulation, and fabrication of a design, which when accessed by a machine results in the machine performing tasks, defining abstract data types or low-level hardware contexts, or producing a result.


The techniques shown in the figures can be implemented using code and data stored and executed on one or more computing devices such as general purpose computers or computing devices. Such computing devices store and communicate (internally and with other computing devices over a network) code and data using machine-readable media, such as machine readable storage media (e.g., magnetic disks; optical disks; random access memory; read only memory; flash memory devices; phase-change memory) and machine readable communication media (e.g., electrical, optical, acoustical or other form of propagated signals—such as carrier waves, infrared signals, digital signals, etc.).


While the disclosed subject matter has been described with reference to illustrative embodiments, this description is not intended to be construed in a limiting sense. Various modifications of the illustrative embodiments, as well as other embodiments of the subject matter, which are apparent to persons skilled in the art to which the disclosed subject matter pertains are deemed to lie within the scope of the disclosed subject matter.

Claims
  • 1. A processor comprising: logic to: determine a power budget for a platform, wherein the platform comprises the processor and a memory module; anddynamically set a power limit for the processor and another power limit for the memory module based on the power budget for the platform.
  • 2. The processor of claim 1, wherein the logic is further to determine a time period to enforce the power budget for the platform, and wherein the logic to dynamically set the power limit for the processor and the other power limit for the memory module based on the power budget for the platform is to dynamically set the power limit for the processor and the other power limit for the memory module based on the power budget for the platform for a duration of the time period.
  • 3. The processor of claim 1, wherein the logic to dynamically set the power limit for the processor and the other power limit for the memory module based on the power budget for the platform is to: analyze an average power consumption of the processor to determine the power limit for the processor; andanalyze another average power consumption of the memory module to determine the other power limit for the memory module.
  • 4. The processor of claim 3, wherein the logic to analyze the average power consumption of the processor to determine the power limit for the processor is to: perform one or more of, determining number of stall counts of the processor, and determining characteristics of workloads executed by the processor.
  • 5. The processor of claim 3, wherein the logic to analyze the average power consumption of the memory module to determine the other power limit for the memory module is to determine memory bandwidth utilization of the memory module.
  • 6. The processor of claim 1, wherein the logic is further to: adjust operations of the processor based on the dynamically set power limit of the processor; andadjust operations of the memory module based on the other dynamically set power limit of the memory module.
  • 7. The processor of claim 6, wherein the logic to adjust the operations of the processor based on the dynamically set power limit of the processor is to: adjust one or more of, a voltage, a frequency, instruction throughput, and a performance level of executing code, of the processor to meet the dynamically set power limit of the processor.
  • 8. The processor of claim 6, wherein the logic to adjust the operations of the memory module based on the other dynamically set power limit of the memory module is to: adjust one or more of, read operations, write operations, and a voltage, of the memory module to meet the dynamically set power limit of the memory module.
  • 9. A system comprising: a logic module;a processor coupled with the logic module, to: receive a power budget for a system; anddynamically set a power limit for the processor and another power limit for the logic module based on the power budget for the platform.
  • 10. The system of claim 9, wherein the processor is further to determine a time period to enforce the power budget for the system, and wherein the processor to dynamically set the power limit for the processor and the other power limit for the logic module based on the power budget for the system is to dynamically set the power limit for the processor and the other power limit for the logic module based on the power budget for the system for a duration of the time period.
  • 11. The system of claim 9, wherein the processor to dynamically set the power limit for the processor and the other power limit for the logic module based on the power budget for the system is to: analyze an average power consumption of the processor to determine the power limit for the processor; andanalyze another average power consumption of the logic module to determine the other power limit for the memory module.
  • 12. The system of claim 11, wherein the processor to analyze the average power consumption of the processor to determine the power limit for the processor is to: perform one or more of, determining number of stall counts of the processor, and determining characteristics of workloads executed by the processor.
  • 13. The system of claim 12, wherein the processor to analyze the average power consumption of the logic module to determine the other power limit for the logic module is to determine bandwidth utilization of the logic module.
  • 14. The system of claim 13, wherein the processor to dynamically set the power limit for the processor and the other power limit for the logic module based on the power budget for the system: set a target processor power as a difference of the power budget and the average power consumption of the logic module; anddetermine whether the target processor power is greater than a minimum allowed power consumption of the processor.
  • 15. The system of claim 14, wherein the processor is further to: set the power limit of the processor as the target processor power in response to a determination that the target processor power is greater than the minimum allowed power consumption of the processor; anddisable any throttling of the logic module.
  • 16. The system of claim 14, wherein in response to a determination that the target processor power is not greater than the minimum allowed power consumption of the processor, the processor is to: set a target logic module power as a difference of the power budget and the minimum allowed power consumption of the processor;enable throttling of the logic module to meet the target logic module power; andset the power limit of the processor as the minimum allowed power consumption of the processor.
  • 17. The system of claim 9, wherein the logic module comprises one of a memory module, a graphics processor unit (GPU), and a co-processor.
  • 18. A method comprising: determine a power budget for a platform, wherein the platform comprises the processor and one memory module; anddynamically setting a power limit for the processor and another power limit for the logic module based on the power budget for the platform.
  • 19. The method of claim 18, further comprising determining a time period to enforce the power budget for the platform, and wherein dynamically setting the power limit for the processor and the other power limit for the logic module based on the power budget for the platform comprises dynamically setting the power limit for the processor and the other power limit for the logic module based on the power budget for the platform for a duration of the time period.
  • 20. The method of claim 18, wherein dynamically setting the power limit for the processor and the other power limit for the logic module based on the power budget for the platform comprises: analyzing an average power consumption of the processor to determine the power limit for the processor; andanalyzing another average power consumption of the logic module to determine the other power limit for the memory module.
  • 21. The method of claim 20, wherein analyzing the average power consumption of the processor to determine the power limit for the processor comprises performing one or more of, determining number of stall counts of the processor, and determining characteristics of workloads executed by the processor, and wherein analyzing the average power consumption of the logic module to determine the other power limit for the logic module comprises determining bandwidth utilization of the logic module.
  • 22. The method of claim 18, further comprising: adjusting operations of the processor based on the dynamically set power limit of the processor; andadjusting operations of the logic module based on the other dynamically set power limit of the logic module.
  • 23. The method of claim 18, wherein dynamically setting the power limit for the processor and the other power limit for the logic module based on the power budget for the system comprises: setting a target processor power as a difference of the power budget and the average power consumption of the logic module; anddetermining whether the target processor power is greater than a minimum allowed power consumption of the processor.
  • 24. The method of claim 23, further comprising: setting the power limit of the processor as the target processor power in response to a determination that the target processor power is greater than the minimum allowed power consumption of the processor; anddisabling any throttling of the logic module.
  • 25. The method of claim 23, wherein in response to a determination that the target processor power is not greater than the minimum allowed power consumption of the processor, the method further comprising: setting a target logic module power as a difference of the power budget and the minimum allowed power consumption of the processor;enabling throttling of the logic module to meet the target logic module power; andsetting the power limit of the processor as the minimum allowed power consumption of the processor.
  • 26. The method of claim 18, wherein the logic module comprises one of a memory module, a graphics processor unit (GPU), and a co-processor.
PCT Information
Filing Document Filing Date Country Kind 371c Date
PCT/US12/31249 3/29/2012 WO 00 8/6/2013