The present application is related to, and incorporates by reference, U.S. patent application Ser. No. 12/944,140, entitled SYSTEM AND METHOD FOR CONTROLLING CENTRAL PROCESSING UNIT POWER BASED ON INFERRED WORKLOAD PARALLELISM, by Rychlik et al., filed concurrently. The present application is related to, and incorporates by reference, U.S. patent application Ser. No. 12/944,202, entitled SYSTEM AND METHOD FOR CONTROLLING CENTRAL PROCESSING UNIT POWER IN A VIRTUALIZED SYSTEM, by Rychlik et al., filed concurrently. The present application is related to, and incorporates by reference, U.S. patent application Ser. No. 12/944,378, entitled SYSTEM AND METHOD FOR CONTROLLING CENTRAL PROCESSING UNIT POWER WITH REDUCED FREQUENCY OSCILLATIONS, by Thomson et al., filed concurrently. The present application is related to, and incorporates by reference, U.S. patent application Ser. No. 12/944,467, entitled SYSTEM AND METHOD FOR CONTROLLING CENTRAL PROCESSING UNIT POWER WITH GUARANTEED TRANSIENT DEADLINES, by Thomson et al., filed concurrently. The present application is related to, and incorporates by reference, U.S. patent application Ser. No. 12/944,561, entitled SYSTEM AND METHOD FOR CONTROLLING CENTRAL PROCESSING UNIT POWER WITH GUARANTEED STEADY STATE DEADLINES, by Thomson et al., filed concurrently. The present application is related to, and incorporates by reference, U.S. patent application Ser. No. 12/944,564, entitled SYSTEM AND METHOD FOR DYNAMICALLY CONTROLLING A PLURALITY OF CORES IN A MULTICORE CENTRAL PROCESSING UNIT BASED ON TEMPERATURE, by Sur et al., filed concurrently.
Portable computing devices (PCDs) are ubiquitous. These devices may include cellular telephones, portable digital assistants (PDAs), portable game consoles, palmtop computers, and other portable electronic devices. In addition to the primary function of these devices, many include peripheral functions. For example, a cellular telephone may include the primary function of making cellular telephone calls and the peripheral functions of a still camera, a video camera, global positioning system (GPS) navigation, web browsing, sending and receiving emails, sending and receiving text messages, push-to-talk capabilities, etc. As the functionality of such a device increases, the computing or processing power required to support such functionality also increases. Further, as the computing power increases, there exists a greater need to effectively manage the processor, or processors, that provide the computing power.
Accordingly, what is needed is an improved method of controlling power within a multicore CPU.
In the figures, like reference numerals refer to like parts throughout the various views unless otherwise indicated.
The word “exemplary” is used herein to mean “serving as an example, instance, or illustration.” Any aspect described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other aspects.
In this description, the term “application” may also include files having executable content, such as: object code, scripts, byte code, markup language files, and patches. In addition, an “application” referred to herein, may also include files that are not executable in nature, such as documents that may need to be opened or other data files that need to be accessed.
The term “content” may also include files having executable content, such as: object code, scripts, byte code, markup language files, and patches. In addition, “content” referred to herein, may also include files that are not executable in nature, such as documents that may need to be opened or other data files that need to be accessed.
As used in this description, the terms “component,” “database,” “module,” “system,” and the like are intended to refer to a computer-related entity, either hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component may be, but is not limited to being, a process running on a processor, a processor, an object, an executable, a thread of execution, a program, and/or a computer. By way of illustration, both an application running on a computing device and the computing device may be a component. One or more components may reside within a process and/or thread of execution, and a component may be localized on one computer and/or distributed between two or more computers. In addition, these components may execute from various computer readable media having various data structures stored thereon. The components may communicate by way of local and/or remote processes such as in accordance with a signal having one or more data packets (e.g., data from one component interacting with another component in a local system, distributed system, and/or across a network such as the Internet with other systems by way of the signal).
Referring initially to
In a particular aspect, as depicted in
Referring to
As illustrated in
As further illustrated in
As depicted in
In a particular aspect, one or more of the method steps described herein may be stored in the memory 344 as computer program instructions. These instructions may be executed by the multicore CPU 324 in order to perform the methods described herein. Further, the multicore CPU 324, the memory 344, or a combination thereof may serve as a means for executing one or more of the method steps described herein in order to control a clock associated with each CPU, or core, of the multicore CPU 324.
Referring to
In a particular aspect, each DCVS algorithm 416, 417, 418 may be identical and each may monitor the same parameter, e.g., idle time, workload, etc. In another aspect, each DCVS algorithm 416, 417, 418 may be identical, but each may monitor a different parameter. In another aspect, each DCVS algorithm 416, 417, 418 may be different, but each may monitor the same parameter. In still another aspect, each DCVS algorithm 416, 417, 418 may be different and each may monitor a different parameter.
In another aspect, the zeroth DCVS algorithm 416 may utilize the idle information from the zeroth core 410, the first core 412, the Nth core 414, or any combination thereof. The first DCVS algorithm 417 may utilize the idle information from the zeroth core 410, the first core 412, the Nth core 414, or any combination thereof. Also, the Nth DCVS algorithm 418 may utilize the idle information from the zeroth core 410, the first core 412, the Nth core 414, or any combination thereof.
Moreover, as illustrated, the memory 404 may include an operating system 420 stored thereon. The operating system 420 may include a scheduler 422 and the scheduler 422 may include a first run queue 424, a second run queue 426, and an Nth run queue 428. The memory 404 may also include a first application 430, a second application 432, and an Nth application 434 stored thereon.
In a particular aspect, the applications 430, 432, 434 may send one or more tasks 436 to the operating system 420 to be processed at the cores 410, 412, 414 within the multicore CPU 402. The tasks 436 may be processed, or executed, as single tasks, threads, or a combination thereof. Further, the scheduler 422 may schedule the tasks, threads, or a combination thereof for execution within the multicore CPU 402. Additionally, the scheduler 422 may place the tasks, threads, or a combination thereof in the run queues 424, 426, 428. The cores 410, 412, 414 may retrieve the tasks, threads, or a combination thereof from the run queues 424, 426, 428 as instructed, e.g., by the operating system 420 for processing, or execution, of those task and threads at the cores 410, 412, 414.
Referring to
At block 510, a zeroth DCVS algorithm may be executed on a zeroth core. Then, at block 512, a zeroth clock associated with the zeroth core may be monitored. Further, at block 514, an idle time associated with the zeroth core may be monitored. At block 516, the clock frequency of the zeroth clock associated with the zeroth core may be varied based on the idle time of the zeroth core. Moreover, at block 518, the voltage of the zeroth core may be varied based on the idle time of the zeroth core.
Moving to decision 519, the power controller may determine whether the device is powered off. If the device is powered off, the method may end. Otherwise, if the device remains powered on, the method 500 may return to a location just after the execution of step 502 and the method 500 may continue as described.
Continuing the description of the method 500, at block 520, a first DCVS algorithm may be executed on a first core. Then, at block 522, a first clock associated with the first core may be monitored. Further, at block 524, an idle time associated with the first core may be monitored. At block 526, the clock frequency of the first clock associated with the first core may be varied based on the idle time of the first core. Moreover, at block 528, the voltage of the first core may be varied based on the idle time of the first core. Thereafter, the method 500 may continue to decision 519 and continue as described herein.
At block 530, an Nth DCVS algorithm may be executed on an Nth core. Then, at block 532, an Nth clock associated with the Nth core may be monitored. Further, at block 534, an idle time associated with the Nth core may be monitored. At block 536, the clock frequency of the Nth clock associated with the Nth core may be varied based on the idle time of the Nth core. Moreover, at block 538, the voltage of the first core may be varied based on the idle time of the first core. Thereafter, the method 500 may continue to decision 519 and continue as described herein.
It may be appreciated that steps 510 through 518, steps 520 through steps 528, and steps 530 through 538 may be executed in parallel. As such, independent, asynchronous clock control may be provided for a clock associated with each core.
Referring to
At block 610, a zeroth DCVS algorithm may be executed on a zeroth core. Then, at block 612, a zeroth clock associated with the zeroth core may be monitored. Further, at block 614, a workload associated with the zeroth core may be monitored. At block 616, the clock frequency of the zeroth clock associated with the zeroth core may be varied based on the workload of the zeroth core. Moreover, at block 618, the voltage of the zeroth core may be varied based on the workload of the zeroth core.
Moving to decision 619, the power controller may determine whether the device is powered off. If the device is powered off, the method may end. Otherwise, if the device remains powered on, the method 600 may return to a location just after the execution of step 602 and the method 600 may continue as described.
Continuing the description of the method 600, at block 620, a first DCVS algorithm may be executed on a first core. Then, at block 622, a first clock associated with the first core may be monitored. Further, at block 624, a workload associated with the first core may be monitored. At block 626, the clock frequency of the first clock associated with the first core may be varied based on the workload of the first core. Moreover, at block 628, the voltage of the first core may be varied based on the workload of the first core. Thereafter, the method 600 may continue to decision 619 and continue as described herein.
At block 630, an Nth DCVS algorithm may be executed on an Nth core. Then, at block 632, an Nth clock associated with the Nth core may be monitored. Further, at block 634, a workload associated with the Nth core may be monitored. At block 636, the clock frequency of the Nth clock associated with the Nth core may be varied based on the workload of the Nth core. Moreover, at block 638, the voltage of the first core may be varied based on the workload of the first core. Thereafter, the method 600 may continue to decision 619 and continue as described herein.
It may be appreciated that steps 610 through 618, steps 620 through steps 628, and steps 630 through 638 may be executed in parallel. As such, independent, asynchronous clock control may be provided for a clock associated with each core.
It is to be understood that the method steps described herein need not necessarily be performed in the order as described. Further, words such as “thereafter,” “then,” “next,” etc. are not intended to limit the order of the steps. These words are simply used to guide the reader through the description of the method steps. Moreover, the methods described herein are described as executable on a portable computing device (PCD). The PCD may be a mobile telephone device, a portable digital assistant device, a smartbook computing device, a netbook computing device, a laptop computing device, a desktop computing device, or a combination thereof.
The system and methods disclosed herein provide completely independent DCVS (a.k.a. DVFS) algorithms that may be executed completely independently on the multiple cores. There is one instance of a DCVS algorithm per core, and each monitors and controls the clock of that core only. The multiple algorithms are allowed to independently set different clock frequencies for the multiple cores.
In one particular aspect, each DCVS algorithm instance may monitor the percentage of idle time spent on each core. The core idle time may be obtained from the operating system or via special external hardware counters, such as a system profiling and diagnostic monitor (SPDM). In another aspect, each DCVS algorithm may monitor a workload characteristic such as task memory-boundedness and independently adjusts frequency based on different task characteristics running on each core.
In one or more exemplary aspects, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored as one or more instructions or code on a computer program product such as a machine readable medium, i.e., a non-transitory computer-readable medium. Computer-readable media includes computer storage media that facilitates transfer of a computer program from one place to another. A storage media may be any available media that may be accessed by a computer. By way of example, and not limitation, such non-transitory computer-readable media may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that may be used to store desired program code in the form of instructions or data structures and that may be accessed by a computer. Disk and disc, as used herein, includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of non-transitory computer-readable media.
Although selected aspects have been illustrated and described in detail, it will be understood that various substitutions and alterations may be made therein without departing from the spirit and scope of the present invention, as defined by the following claims.
The present application claims priority to U.S. Provisional Patent Application Ser. No. 61/286,967, entitled SYSTEM AND METHOD OF ASYNCHRONOUSLY AND INDEPENDENTLY CONTROLLING CORE CLOCKS IN A MULTICORE CENTRAL PROCESSING UNIT, filed on Dec. 16, 2009, the contents of which are fully incorporated by reference.
Number | Name | Date | Kind |
---|---|---|---|
5644769 | Hasiguti | Jul 1997 | A |
6076171 | Kawata | Jun 2000 | A |
6804632 | Orenstien et al. | Oct 2004 | B2 |
6829713 | Cooper et al. | Dec 2004 | B2 |
6978389 | Jahnke | Dec 2005 | B2 |
7043405 | Orenstien et al. | May 2006 | B2 |
7058824 | Plante et al. | Jun 2006 | B2 |
7107187 | Saghier et al. | Sep 2006 | B1 |
7133806 | Prasad | Nov 2006 | B2 |
7134031 | Flautner | Nov 2006 | B2 |
7219245 | Raghuvanshi | May 2007 | B1 |
7233188 | Takano et al. | Jun 2007 | B1 |
7263457 | White et al. | Aug 2007 | B2 |
7369967 | Washburn et al. | May 2008 | B1 |
7370189 | Fischer et al. | May 2008 | B2 |
7398407 | Jorgenson et al. | Jul 2008 | B2 |
7401240 | Heller, Jr. et al. | Jul 2008 | B2 |
7437581 | Grochowski et al. | Oct 2008 | B2 |
7467291 | Cockroft et al. | Dec 2008 | B1 |
7500124 | Seo | Mar 2009 | B2 |
7543161 | Olszewski et al. | Jun 2009 | B2 |
7669067 | Degenhardt | Feb 2010 | B2 |
7689838 | Srinivasan et al. | Mar 2010 | B2 |
7711966 | Prabhakaran et al. | May 2010 | B2 |
7783906 | Turner et al. | Aug 2010 | B2 |
20020046354 | Ostrom et al. | Apr 2002 | A1 |
20020188877 | Buch | Dec 2002 | A1 |
20030115495 | Rawson, III | Jun 2003 | A1 |
20040225902 | Cesare et al. | Nov 2004 | A1 |
20040254765 | Lee et al. | Dec 2004 | A1 |
20050102560 | Taketoshi et al. | May 2005 | A1 |
20060036878 | Rothman et al. | Feb 2006 | A1 |
20060123253 | Morgan et al. | Jun 2006 | A1 |
20060149975 | Rotem et al. | Jul 2006 | A1 |
20070033425 | Clark | Feb 2007 | A1 |
20070033526 | Thompson et al. | Feb 2007 | A1 |
20070156370 | White et al. | Jul 2007 | A1 |
20070255929 | Kasahara et al. | Nov 2007 | A1 |
20080005591 | Trautman et al. | Jan 2008 | A1 |
20080028244 | Capps et al. | Jan 2008 | A1 |
20080168287 | Berry et al. | Jul 2008 | A1 |
20080201591 | Hu et al. | Aug 2008 | A1 |
20080310099 | Monferrer et al. | Dec 2008 | A1 |
20090037922 | Herington | Feb 2009 | A1 |
20090049314 | Taha et al. | Feb 2009 | A1 |
20090106576 | Jacobowitz et al. | Apr 2009 | A1 |
20090150695 | Song et al. | Jun 2009 | A1 |
20090150696 | Song et al. | Jun 2009 | A1 |
20090187775 | Ishikawa | Jul 2009 | A1 |
20090217276 | Brenner et al. | Aug 2009 | A1 |
20090230930 | Jain et al. | Sep 2009 | A1 |
20090249347 | Henmi | Oct 2009 | A1 |
20090271646 | Talwar et al. | Oct 2009 | A1 |
20090276642 | Burton et al. | Nov 2009 | A1 |
20100076733 | Kumar et al. | Mar 2010 | A1 |
20100122101 | Naffziger et al. | May 2010 | A1 |
20110023047 | Memik et al. | Jan 2011 | A1 |
20110145559 | Thomson et al. | Jun 2011 | A1 |
20110145605 | Sur et al. | Jun 2011 | A1 |
20110145615 | Rychlik et al. | Jun 2011 | A1 |
20110145616 | Rychlik et al. | Jun 2011 | A1 |
20110145617 | Thomson et al. | Jun 2011 | A1 |
20110145824 | Thomson et al. | Jun 2011 | A1 |
20130074085 | Thomson et al. | Mar 2013 | A1 |
20130151879 | Thomson | Jun 2013 | A1 |
Number | Date | Country |
---|---|---|
0098169 | Jan 1984 | EP |
0942363 | Sep 1999 | EP |
1496424 | Jan 2005 | EP |
2445167 | Jul 2008 | GB |
H0351902 | Mar 1991 | JP |
8006681 | Jan 1996 | JP |
H08190535 | Jul 1996 | JP |
H10268963 | Oct 1998 | JP |
H11282695 | Oct 1999 | JP |
2002099433 | Apr 2002 | JP |
2004533674 | Nov 2004 | JP |
2005128937 | May 2005 | JP |
2006011548 | Jan 2006 | JP |
2008059054 | Mar 2008 | JP |
2008117397 | May 2008 | JP |
2008513912 | May 2008 | JP |
2008129846 | Jun 2008 | JP |
2008165798 | Jul 2008 | JP |
2008269249 | Nov 2008 | JP |
2009503728 | Jan 2009 | JP |
2009140157 | Jun 2009 | JP |
2009169858 | Jul 2009 | JP |
2009238024 | Oct 2009 | JP |
2010518525 | May 2010 | JP |
20070049226 | May 2007 | KR |
20090107490 | Oct 2009 | KR |
WO0225414 | Mar 2002 | WO |
WO-02074046 | Sep 2002 | WO |
WO-2004044720 | May 2004 | WO |
WO2005119412 | Dec 2005 | WO |
2006037119 | Apr 2006 | WO |
2007007300 | Jan 2007 | WO |
2008047179 | Apr 2008 | WO |
Entry |
---|
Wonyoung Kim, Meeta S. Gupta, Gu-Yeon Wei and David Brooks, “System Level Analysis of Fast, Per-Core DVFS using On-Chip Switching Regulators.” IEEE International Symposium on High-Performance Computer Architecture (HPCA), Feb. 2008. |
Compaq et al, “Advanced Configuration and Power Interface Specification”, Compaq Computer Corporation, Intel Cor0poration, Microsoft Corporation, Phoenix Technologies Ltd., Toshiba Corporation, Revision 2.0, Jul. 27, 2000. |
International Search Report and Written Opinion—PCT/US2010/059560—ISA/EPO—Jun. 15, 2011. |
International Search Report and Written Opinion—PCT/US2010/059562, ISA/EPO—May 27, 2011. |
International Search Report and Written Opinion—PCT/US2010/058075—ISA/EPO—Apr. 27, 2011. |
International Search Report and Written Opinion—PCT/US2010/059535, ISA/EPO—Apr. 28, 2011. |
International Search Report and Written Opinion—PCT/US2010/059538, International Search Authority—European Patent Office—Apr. 7, 2011. |
Semeraro et al., “Energy-Efficient Processor Design Using Multiple Clock Domains with Dynamic Voltage and Frequency Scaling,” International Symposium on High-Performance Computer Architecture, pp. 0029, Eighth International Symposium on High-Performance Computer architecture (HPCA'02), 2002, Boston, Massachusetts. ISBN: 0-7695-1525-8. |
iDebian, CPU frequency scaling in Linux, Jun. 26, 2008, iDebian's Weblog. |
Stallings, W., “Operating systems internals and design principles,” 2005, Pearson, 5th edition, section 3.2, pp. 111-126. |
Kanai J, et al., “Statistical Prediction-based Energy-Aware Linux Scheduler for CMP systems”, Proceedings of computer system symposium (IPSJ symposium series), vol. 2008, No. 12, Information Processing Society of Japan, Nov. 5, 2008, pp. 77-86. |
Number | Date | Country | |
---|---|---|---|
20110145624 A1 | Jun 2011 | US |
Number | Date | Country | |
---|---|---|---|
61286967 | Dec 2009 | US |