Graphics processor clock scaling based on idle time
09773344 · 2017-09-26
Assignee
Inventors
- Ilan Aelion (Fort Collins, CO, US)
- Terje Bergstrom (Espoo, FI)
- Matthew R. Longnecker (San Jose, CA, US)
Cpc classification
Y02D10/00
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
International classification
Abstract
A method for graphics processor clock scaling comprises the following steps. A percentage of idle-time is calculated, based upon an elapsed idle-time and an elapsed active time. A graphics processor clock rate is reduced if the percentage of idle time is higher than a high limit threshold. The graphics processor clock rate is increased if the percentage of idle time is lower than a low limit threshold.
Claims
1. A method for graphics processor clock scaling, the method comprising: calculating a percentage of idle-time based upon an accumulated idle-time of the graphics processor and an accumulated active time of the graphics processor; reducing a graphics processor clock rate if the percentage of idle time is higher than a high limit threshold; and increasing the graphics processor clock rate if the percentage of idle time is lower than a low limit threshold, wherein the low limit threshold and the high limit threshold are each adjusted based upon a proportion of graphics processor clock rate increases to graphics processor clock rate decreases.
2. The method of claim 1, wherein the increasing comprises increasing the graphics processor clock rate a predetermined amount if the percentage of idle time is lower than a low limit threshold, and wherein the reducing comprises decreasing the graphics processor clock rate a predetermined amount if the percentage of idle time is higher than a high limit threshold.
3. The method of claim 1 further comprising: increasing the high limit threshold and the low limit threshold when the proportion of graphics processor clock rate increases to graphics processor clock rate decreases is at a high limit; and decreasing the high limit threshold and the low limit threshold when the proportion of graphics processor clock rate increases to graphics processor clock rate decreases is at a low limit.
4. The method of claim 3, wherein the proportion high limit is 4:1 and the proportion low limit is 1:1.
5. The method of claim 1, wherein the high limit threshold is greater than 50%.
6. The method of claim 1, wherein the low limit threshold is less than 50%.
7. A method for graphics processor clock scaling, the method comprising: counting a quantity of clock scale-up decisions and a quantity of clock scale-down decisions over a first evaluation period of a plurality of scale-up evaluation periods and a plurality of scale-down evaluation periods; based upon the clock scale-up decisions and the clock scale-down decisions, increasing and decreasing a graphic processor clock rate, respectively, when a percentage of idle time in a scale-up evaluation period is lower than a selected idle-time percentage low-limit value and when a percentage of idle time in a scale-down evaluation period is higher than a selected idle-time percentage high-limit value, respectively; calculating a proportion of clock scale-up decisions to clock scale-down decisions; and increasing the idle-time percentage high-limit value and the idle-time percentage low-limit value if the proportion of clock scale-up decisions to clock scale-down decisions is at a high limit and decreasing the idle-time percentage high-limit value and the idle-time percentage low-limit value if the proportion of clock scale-up decisions to clock scale-down decisions is at a low limit.
8. The method of claim 7 further comprising: increasing the graphics processor clock rate a predetermined amount if the percentage of idle time is lower than the selected idle-time percentage low-limit value; and decreasing the graphics processor clock rate a predetermined amount if the percentage of idle time is higher than the selected idle-time percentage high-limit value.
9. The method of claim 7, wherein the selected idle-time percentage high-limit value is greater than 50%, and wherein the selected idle-time percentage low-limit value is less than 50%.
10. The method of claim 7, wherein the proportion high limit is 4:1 and the proportion low limit is 1:1.
11. The method of claim 7, wherein increasing the idle-time percentage high-limit value and increasing the idle-time percentage low-limit value increases the idle-time percentage high-limit value and the idle-time percentage low-limit value by a maximum of 50%.
12. The method of claim 7, wherein decreasing the idle-time percentage high-limit value and decreasing the idle-time percentage low-limit value decreases the idle-time percentage high-limit value and the idle-time percentage low-limit value by a maximum of 50%.
13. A computer system comprising: a processor; a graphics processor; a memory; and a clock generator, wherein the clock generator is operable to generate clock signals for the processor and the graphics processor, wherein the memory is operable to store instructions, that when executed by the processor perform a method of scaling a clock output of the clock generator to the graphics processor, the method comprising: calculating a percentage of idle-time based upon an accumulated idle-time and an accumulated active time; reducing a graphics processor clock rate if the percentage of idle time is higher than a high limit threshold; increasing the graphics processor clock rate if the percentage of idle time is lower than a low limit threshold; and adjusting the low limit threshold and the high limit threshold based upon a proportion of graphics processor clock rate increases to graphics processor clock rate decreases.
14. The computer system of claim 13, wherein the method further comprises: increasing the graphics processor clock rate a predetermined amount if the percentage of idle time is lower than a low limit threshold; and decreasing the graphics processor clock rate a predetermined amount if the percentage of idle time is higher than a high limit threshold.
15. The computer system of claim 13, wherein the high limit threshold and the low limit threshold are increased when the proportion of graphics processor clock rate increases to graphics processor clock rate decreases is at a high limit, and wherein the high limit threshold and the low limit threshold are decreased when the proportion of graphics processor clock rate increases to graphics processor clock rate decreases is at a low limit.
16. The computer system of claim 15, wherein the proportion high limit is 4:1 and the proportion low limit is 1:1.
17. The computer system of claim 13, wherein the high limit threshold is greater than 50%.
18. The computer system of claim 13, wherein the low limit threshold is less than 50%.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) Embodiments of the present invention will be better understood from the following detailed description, taken in conjunction with the accompanying drawing figures in which like reference characters designate like elements and in which:
(2)
(3)
(4)
(5)
(6)
(7)
DETAILED DESCRIPTION
(8) Reference will now be made in detail to the preferred embodiments of the present invention, examples of which are illustrated in the accompanying drawings. While the invention will be described in conjunction with the preferred embodiments, it will be understood that they are not intended to limit the invention to these embodiments. On the contrary, the invention is intended to cover alternatives, modifications and equivalents, which may be included within the spirit and scope of the invention as defined by the appended claims. Furthermore, in the following detailed description of embodiments of the present invention, numerous specific details are set forth in order to provide a thorough understanding of the present invention. However, it will be recognized by one of ordinary skill in the art that the present invention may be practiced without these specific details. In other instances, well-known methods, procedures, components, and circuits have not been described in detail so as not to unnecessarily obscure aspects of the embodiments of the present invention. The drawings showing embodiments of the invention are semi-diagrammatic and not to scale and, particularly, some of the dimensions are for the clarity of presentation and are shown exaggerated in the drawing Figures. Similarly, although the views in the drawings for the ease of description generally show similar orientations, this depiction in the Figures is arbitrary for the most part. Generally, the invention can be operated in any orientation.
(9) Notation and Nomenclature:
(10) Some portions of the detailed descriptions, which follow, are presented in terms of procedures, steps, logic blocks, processing, and other symbolic representations of operations on data bits within a computer memory. These descriptions and representations are the means used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. A procedure, computer executed step, logic block, process, etc., is here, and generally, conceived to be a self-consistent sequence of steps or instructions leading to a desired result. The steps are those requiring physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated in a computer system. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like.
(11) It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise as apparent from the following discussions, it is appreciated that throughout the present invention, discussions utilizing terms such as “processing” or “accessing” or “executing” or “storing” or “rendering” or “calculating” or “reducing” or “increasing” or the like, refer to the action and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories and other computer readable media into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage, transmission or display devices. When a component appears in several embodiments, the use of the same reference numeral signifies that the component is the same component as illustrated in the original embodiment.
(12) Graphics Processor Clock Scaling Based on Idle Time
(13) Embodiments of this present invention provide solutions to the increasing challenges inherent in conserving power in computer systems, particularly in mobile computer systems where efficient use of limited battery life is required. Various embodiments of the present disclosure provide dynamic scaling of a clock signal for a graphics processor (GPU) based upon the percentage of idle time experienced by the graphics processor. As discussed herein, if an idle time percentage is higher than a high limit or threshold, a GPU clock rate may be reduced. If the idle time percentage is below a low limit or threshold, the GPU clock rate may be increased. As also discussed herein, the low limit and high limit may also be dynamically adjusted as well, based upon an evaluation of a proportion of scale down decisions versus scale up decisions. As described herein, individual scale down decisions decrease the GPU clock rate while individual scale up decisions increase the GPU clock rate.
(14)
(15) In one exemplary embodiment, the CPU 104 executes an application 116 that is in communication with a graphics driver 118 operable to direct the GPU 108. In one exemplary embodiment, the memory 114 may comprise a hard drive or other memory storage device. In one embodiment, the clock generator 106 generates clocks for the GPU 108 and the CPU 104. It is appreciated that in one exemplary embodiment, the clock generator 106 dynamically adjusts the GPU clock rate based upon a percentage of idle time.
(16)
(17) As illustrated in
(18) As illustrated in
(19)
(20) A ratio of idle time 204 to active time 202 may be adjusted so as to improve energy efficiency by adjusting a clock rate for the graphics processor 108. As described herein, when a ratio of idle time 204 to active time 202 is above or below threshold values, the clock rate for the graphics processor 108 may be lowered or increased to decrease the idle time 204 and increase active time 202, or in the alternative, increase the idle time 204 and decrease the active time 202, to optimally adjust the ratio of idle time 204 to active time 202. In one embodiment, a graphics processor clock rate may be increased in proportion to an amount that a percentage of idle time is lower than a low limit threshold. In one embodiment, a graphics processor clock rate may be decreased in proportion to an amount that a percentage of idle time is higher than a high limit threshold. In further embodiments, the graphics processor clock rate may be increased or decreased a predetermined amount. In one embodiment, a high limit threshold is greater than 50% and a low limit threshold is less than 50%.
(21)
(22) In block 306 of
(23) In one exemplary embodiment, a proportion of clock rate increases (e.g., individual decisions to increase the clock rate) versus clock rate decreases (e.g., individual decisions to decrease the clock rate) may be determined using idle hints and busy hints. Exemplary idle hints and busy hints are described in detail below. As discussed herein, the proportion of clock rate increases to clock rate decreases may be used to determine a desired percentage of idle time, and to scale the GPU clock rate, respectively. Thus, power consumption may be reduced without hindering performance.
(24) In one exemplary embodiment, when the graphics processor 108 becomes idle, an “idle hint” is generated. As discussed herein, idle hints produce an elapsed idle time that is added to an accumulated idle time. A time stamp recording the beginning of the idle time is recorded and a delayed call back is scheduled to deliver an additional idle hint. If there have been no busy hints since the last idle hint, the elapsed time since the last idle hint is added to the accumulated idle time. When work is submitted to the graphics processor 108, a busy hint is generated. Any pending idle hints are canceled, and if the graphics processor 108 was previously idle, the elapsed time is added to the accumulated idle time. Time stamps and the accumulated idle time may be cleared periodically. To minimize possible performance impacts, two evaluation periods may be used: a short evaluation period during which busy hints are detected, and a long evaluation period during which scale-down decisions are made. As discussed herein, lengths of evaluation periods may also be adjusted.
(25) As illustrated in the flow diagram of
(26) The values chosen for idle time percentage limits (e.g., high threshold values and low threshold values) and evaluation periods may have a significant impact on performance. In one exemplary embodiment, a range of high and low threshold values may be selected. A range of threshold values may be used to save power while preserving performance on a wide range of applications and operating conditions. The following describes a dynamic method for setting adjustable idle time percentage high and low threshold values, as well as the evaluation periods, and does not limit the scope of the claims.
(27)
(28) In step 504 of
(29) In step 508 of
(30) In one embodiment, evaluation period lengths may also be adjusted similarly. A shorter or longer evaluation period may be used for determining scale-up decisions and scale-down decisions (e.g., shorter or longer evaluation periods may be used for counting scale-up decisions and scale-down decisions before a scale-up/scale-down ratio is determined). In one embodiment, the scale-up decision counting period may be adjusted by up to 50%, and the scale-down decision counting period may be adjusted by up to 25%.
(31) Although certain preferred embodiments and methods have been disclosed herein, it will be apparent from the foregoing disclosure to those skilled in the art that variations and modifications of such embodiments and methods may be made without departing from the spirit and scope of the invention. It is intended that the invention shall be limited only to the extent required by the appended claims and the rules and principles of applicable law.