Obtaining accurate real-time memory power information from the platform is very costly and requires voltage regulators (VR's) that can provide accurate current information across the loadline. Most VR's can provide high accuracy at the high end of the loadline, but provide poor accuracy at the low end of the loadline. Most server workloads exercising the memory at the low end of their power consumption, and thus the lower portion of the loadline, are of particular importance to memory power management.
In various embodiments, memory power usage may be estimated in real time through the use of calibrated weights and activity counters. In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the invention. It will be apparent, however, to one skilled in the art that embodiments of the invention can be practiced without these specific details. In other instances, structures and devices are shown in block diagram form in order to avoid obscuring the invention.
Reference throughout this specification to “one embodiment” or “an embodiment” means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, appearances of the phrases “in one embodiment” or “in an embodiment” in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments.
Referring now to
Memory power agent 106 may be able to create calibrated memory power weights using test patterns, as described in more detail hereinafter. In one embodiment, during the execution of test patterns, memory power agent 106 receives a current measurement from voltage regulator 108, which supplies power to memory 104. The current measurement may be correlated with the test pattern being executed to form a calibrated memory power weight for a particular workload.
Memory power agent 106 may be able to utilize the calibrated weights created to provide real-time memory power usage estimates, as described in more detail hereinafter. In one embodiment, memory power agent 106 reads a value from memory activity counter 112 and, using the previously generated calibrated weights, computes a memory power usage estimate, which is stored in registers 110. Memory activity counters 112 may include various values corresponding to various portions of memory and may count memory activities such as active memory reads, active memory writes, enable activates, clock enable percentage and self-refresh percentage, for example.
Referring now to
Calibrate services 202 may provide memory power agent 106 with the ability to calibrate memory power usage for various levels of loading. Memory power agent 106 may invoke calibrate services 202 during every system, after a hardware configuration has changed or at some other time. Calibrate services 202 may selectively invoke load services 210, sense services 212 or record services 214 to load memory access test patterns 206 into processor 102, to receive current measurements from voltage regulator 108 and to record calibrated results 208, respectively. While shown as containing several functional blocks, calibrate services 202 may be implemented with fewer or with more elements. Also, calibrate services 202 may be implemented in hardware, software or a combination of hardware and software.
Estimate services 204 may provide memory power agent 106 with the ability to provide real-time memory power usage estimates. Memory power agent 106 may invoke estimate services 204 periodically, irregularly or at some other time(s). Estimate services 204 may selectively invoke read services 216, compute services 218 or store services 220 to read a value from memory activity counters 112, to determine a memory power estimation based at least in part on the value and calibrated weights 208 and to store the estimation into registers 110, respectively. While shown as containing several functional blocks, estimate services 204 may be implemented with fewer or with more elements. Also, estimate services 204 may be implemented in hardware, software or a combination of hardware and software.
Memory access test patterns 206 may be chosen to provide a wide range of memory activity levels during the calibration process so that calibrated weights 208 may specific characteristics of voltage regulator 108.
Referring now to
Referring now to
Embodiments may be implemented in many different system types. Referring now to
Still referring to
Furthermore, chipset 590 includes an interface 592 to couple chipset 590 with a high performance graphics engine 538. In turn, chipset 590 may be coupled to a first bus 516 via an interface 596. As shown in
Embodiments may be implemented in code and may be stored on a storage medium having stored thereon instructions which can be used to program a system to perform the instructions. The storage medium may include, but is not limited to, any type of disk including floppy disks, optical disks, compact disk read-only memories (CD-ROMs), compact disk rewritables (CD-RWs), and magneto-optical disks, semiconductor devices such as read-only memories (ROMs), random access memories (RAMs) such as dynamic random access memories (DRAMs), static random access memories (SRAMs), erasable programmable read-only memories (EPROMs), flash memories, electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, or any other type of media suitable for storing electronic instructions.
While the present invention has been described with respect to a limited number of embodiments, those skilled in the art will appreciate numerous modifications and variations therefrom. It is intended that the appended claims cover all such modifications and variations as fall within the true spirit and scope of this present invention.