The present invention relates to multiprocessor systems, and more particularly to dynamically allocating processor cores to handle changes in operating statuses to improve performance and power efficiency.
Due to the limitations on clock frequency scaling, the performance gains in future computer systems will come from power-efficient exploitation of concurrency. Consequently, the computer industry has migrated towards including multiple processors on a single chip, which are known as chip multiprocessors (“CMPs”).
In a CMP, multiple copies of identical stand-alone central processing units (CPUs) are placed on a single chip, and a fast, fine-grained communication mechanism may be used to combine CPUs to match the intrinsic parallelism of the application. That is, in CMPs built using the copy-exact approach, all CPUs on a CMP are identical, having exact copies of arithmetic logic units (ALUs), caches and pipelines. This approach minimizes the design complexity of CMPs, since only one CPU needs to be designed, but is instantiated multiple times.
However, the granularity (i.e., the issue width) and the number of processors on the chip in a CMP are fixed at design time based on the designers' best analyses about the desired workload mix and operating points. The issue width may refer to the maximum number of instructions that can be issued in a given cycle for a given processor. By having such limitations, the CMP cannot efficiently handle changes in operating conditions, such as changes in the number and type of available threads or changes in the streams of instructions which occur over time. For example, not all of the processors in the CMP will be effectively utilized if there are not enough software threads at a given time or if there are not enough complex computations to be made in those software threads at a given time. As a result, such a design is power inefficient.
If, however, the appropriate amount of processing power could be dynamically allocated to handle changes in operating conditions, then performance and power efficiency could greatly be improved.
In one embodiment of the present invention, a method for dynamically composing processor cores to form logical processors comprises receiving a change in an operating status. The method further comprises triggering a mechanism to recompose one or more processor cores into a logical processor to handle the change in the operating status. Additionally, the method comprises performing an analysis as to how one or more processor cores should be recomposed to handle the change in the operating status. Furthermore, the method comprises recomposing the one or more processor cores into the logical processor to handle the change in the operating status.
In another embodiment of the present invention, a system comprises a memory unit for storing a computer program for dynamically composing processor cores to form logical processors. The system further comprises composable processor cores coupled to the memory unit, where the processor cores of the composable processor cores are dynamically allocated to one or more logical processors to handle changes in an operating status.
In another embodiment of the present invention, an integrated circuit comprises composable processor cores, where the processor cores of the composable processor cores are dynamically allocated to one or more logical processors to handle changes in an operating status.
The foregoing has outlined rather generally the features and technical advantages of one or more embodiments of the present invention in order that the detailed description of the present invention that follows may be better understood. Additional features and advantages of the present invention will be described hereinafter which may form the subject of the claims of the present invention.
A better understanding of the present invention can be obtained when the following detailed description is considered in conjunction with the following drawings, in which:
The present invention comprises a method, system, computer program product and integrated circuit for dynamically composing processor cores to form logical processors. In one embodiment of the present invention, processor cores are composable in that one or more processor cores are dynamically allocated to form a logical processor to handle a change in the operating status. Once a change in the operating status is detected, a mechanism may be triggered to recompose one or more processor cores into a logical processor to handle the change in the operating status. An analysis may be performed as to how one or more processor cores should be recomposed to handle the change in the operating status. After the analysis, the one or more processor cores are recomposed into the logical processor to handle the change in the operating status. By being able to dynamically allocate the processor cores to handle the change in the operation status in question, performance and power efficiency can be greatly improved.
The principles of the present invention described herein may be applied to any computer architecture related to programming, such as the Explicit Data Graph Execution (“EDGE”) instruction set architecture. Details regarding the EDGE instruction set architecture are described in “Scaling to the End of Silicon with EDGE Architectures,” Computer, Vol. 37, No. 7, pp. 44-55, July, 2004, which is incorporated herein in its entirety. The principles of the present invention are not to be limited in scope to any particular computer architecture.
Further, while the following discusses the present invention in connection with dynamic aggregation, the principles of the present invention may be applied to static aggregation (i.e., the compiler determines how many processor cores to be used). A person of ordinary skill in the art would be capable of applying the principles of the present invention to such an implementation. Further, embodiments applying the principles of the present invention to such an implementation would fall within the scope of the present invention.
In the following description, numerous specific details are set forth to provide a thorough understanding of the present invention. However, it will be apparent to those skilled in the art that the present invention may be practiced without such specific details. In other instances, well-known circuits have been shown in block diagram form in order not to obscure the present invention in unnecessary detail. For the most part, details considering timing considerations and the like have been omitted inasmuch as such details are not necessary to obtain a complete understanding of the present invention and are within the skills of persons of ordinary skill in the relevant art.
Referring to
Referring to
I/O devices may also be connected to computer system 100 via a user interface adapter 110 and a display adapter 111. Keyboard 112, mouse 113 and speaker 114 may all be interconnected to bus 102 through user interface adapter 110. Data may be inputted to computer system 100 through any of these devices. A display monitor 115 may be connected to system bus 102 by display adapter 111. In this manner, a user is capable of inputting to computer system 100 through keyboard 112 or mouse 113 and receiving output from computer system 100 via display 115 or speaker 114.
It is noted that the principles of the present invention are not to be limited in scope to being implemented in a general purpose computing system but may be implemented in any type of computing system, such as an embedded computing system where the power/performance tradeoff may be even more pronounced.
The various aspects, features, embodiments or implementations of the invention described herein can be used alone or in various combinations. The methods of the present invention can be implemented by software, hardware or a combination of hardware and software. The present invention can also be embodied as computer readable code on a computer readable medium. The computer readable medium is any data storage device that can store data which can thereafter be read by a computer system. Examples of the computer readable medium include read-only memory, random access memory, CD-ROMs, flash memory cards, DVDs, magnetic tape, and optical data storage devices. The computer readable medium can also be distributed over network-coupled computer systems so that the computer readable code is stored and executed in a distributed fashion.
As discussed in the Background section, the granularity (i.e., the issue width) and the number of processors on the chip in a CMP are fixed at design time based on the designers' best analyses about the desired workload mix and operating points. The issue width may refer to the maximum number of instructions that can be issued in a given cycle for a given processor. By having such limitations, the CMP cannot efficiently handle the changes in the operating status, such as changes in the number and type of available threads or changes in the streams of instructions which occur over time. For example, not all of the processors in the CMP will be effectively utilized if there are not enough software threads at a given time or if there are not enough complex computations to be made in those software threads at a given time. As a result, such a design is power inefficient. If, however, the appropriate amount of processing power could be dynamically allocated to handle the change in the operating status, then performance and power efficiency could greatly be improved.
The principles of the present invention dynamically allocate processing power to handle the change in the operating status by using “composable” processor cores as discussed below in connection with
Each processor core 201 of composable processor cores 101 may include identical logic as illustrated in
Referring to
Instructions from instruction cache unit 302 may be outputted to issue queues, or what may be referred to as an “instruction window” 303, after the instructions are decoded, such as by a decode unit (not shown). Instruction window 303 may include queues coupled to one or more arithmetic logic units 304 (identified as “ALU” in
Each processor core 201 may further include a load/store queue 306 configured to store load and store instructions at either the time when the effective addresses are computed, such as at point 307, or when the instructions are issued, such as at point 308.
Further, each processor core 201 may include a dependence predictor 309 configured to decide whether to speculatively execute certain loads and stores out of order, while preventing other loads and stores from executing out-of-order (keeping them in-order).
Additionally, each processor core 201 includes a control register 310 configured to store a hashing function as will be discussed further below in connection with
Returning to
For example, referring to
Any number of processor cores 201 may be dynamically allocated into any number of logical processors 202, up to the number of processor cores 201.
Referring to
It is noted for clarity that processor cores 201 may be recomposed any number of times, including only one time. Further,
As discussed above, processor cores 201 may be dynamically allocated into any number of logical processors 202. When that occurs though, there is a need to uniquely identify each processor core 201 within logical processor 202 so that the particular task can be assigned to the appropriate processor 201. As discussed above, each processor 201 may include a control register 310 (
Referring to
While the foregoing discussed bit field 402 being used to identify a register, it is noted for clarity that bit field 402 may be used to identify other structures, such as a cache location, branch predictor bank location and so forth. Further, it is noted for clarity that hashing function 400 may include any number of bit fields and that hashing function 400 is not to be limited in scope to hashing function 400 depicted in
In one embodiment, a register file for a logical processor 202 (e.g., logical processor 202E) is made up of the register banks from each of the processor cores 201 (e.g., processor cores 201I, 201J, 201M, 201N) of logical processor 202. As a result, control register 310 in each processor core 201 of logical processor 202 may include multiple hashing functions 400 where each hashing function 400 may be used for different structures (e.g., banks of a data cache, banks of a register file).
In one embodiment, hashing function 400 may need the following information in order to correctly identify the appropriate processor core 201: (1) origin (coordinates) of the sub-array of processor cores 201 that comprise logical processor 202; (2) size (in x and y coordinates) of logical processor 202; and (3) interleaving pattern of registers, cache lines, etc., across processor cores 201.
A method for dynamically allocating processor cores 201 to handle changes in operating status to improve performance and power efficiency is discussed below in connection with
Referring to
In step 502, a determination is made as to whether to recompose processor cores 201. “Recompose,” as used herein, refers to reallocating processor cores 201 into logical processors 202 as illustrated in
If it is determined that there is no need to recompose processor cores 201, then, in step 503, recomposition does not occur.
If, however, it is determined to recompose, then, in step 504, a mechanism is triggered to recompose processor cores 201 into a logical processor 202 to handle the change in the operating status. Each of the factors discussed in connection with step 502 may be used to trigger the recomposition of processor cores 201.
In step 505, an analysis is performed as to how processor cores 201 should be recomposed to handle the change in the operating status. For example, if a particular processor core 201 is being utilized at its maximum utilization rate, then it may not be desirable to be recomposed. However, if a particular processor core 201 is performing below a particular threshold, then that particular processor core 201 may be recomposed. The analysis may consider many factors as to how processor cores 201 should be recomposed. The principles of the present invention are not to be limited in scope to any particular factor being used to analyze how processor cores 201 should be recomposed to handle the change in the operating status.
In step 506, active processor core(s) 201 (“active” processor cores refers to those processor cores that are currently executing streams of instructions) that are to be recomposed are halted. For example, suppose prior to the change in the operating status, processor cores 201A and 201B were each actively operating as a single logical processor 202. Suppose further that it is determined that processor cores 201A-B are to be recomposed into a single logical processor 202. Then, processor cores 201A-B are halted. In another example, suppose that processor cores 201A-D were operating together as a single logical processor 202. Suppose further that is it determined that processor cores 201A-D are to be recomposed into a larger single logical processor 202, such as one comprising processor cores 201A-F. Then, processor cores 201A-D are halted.
In step 507, the state values of the registers in halted processor cores 201 are read. In step 508, the state values read are stored in a memory system (e.g., memory 106 of
Referring to
In step 510, a hashing function 400 is generated for each processor core 201 that was not previously used but will be utilized to handle the change in the operating status. For example, suppose that processor core 201C was not previously utilized. It may now be decided that processor core 201C should be used, such as with other processor cores 201, to handle the change in the operating status.
In step 511, the processor cores 201 are recomposed into logical processor 202 to handle the change in the operating status. For example, as illustrated in
In step 512, the updated hashing function(s) 400 (referring to the updated hashing function 400 generated in step 509) are stored in control register(s) 310 in the appropriate processor cores 201. For example, if an updated hashing function 400 were generated for halted processor cores 201A and 201B, then those updated hashing functions 400 would be stored in control registers 310 in processor cores 201A and 201B. Each processor core 201A, 201B would have a unique hashing function 400 with bit field 401 used to uniquely identify them within logical processor 202. For example, processor core 201A may include a 0 in bit field 401 of hashing function 400 to identify itself; whereas, processor core 201B may include a 1 in bit field 401 of hashing function 400 to identify itself. In an alternative embodiment, instead of hashing function 400 being stored in control register(s) 310 in the appropriate processor cores 201, information used to compute hashing function 400 (referring to hashing function 400 generated in step 509) may be stored in control register(s) 310 in the appropriate processor cores 201.
In step 513, the hashing function(s) 400 (referring to hashing function 400 generated in step 510) are stored in control register(s) 310 in the appropriate processor cores 201. For example, suppose that processor core 201C was not previously utilized prior to being recomposed with other processor cores 201. A hashing function 400 may be generated for processor core 201C and stored in its control register 310. In an alternative embodiment, the information used to compute hashing function 400 (referring to hashing function 400 generated in step 510) is stored in control register 310.
Referring to
In step 515, the recomposed processor cores 201 are executed to handle the change in the operating status. For example, referring to
Although the method, system, computer program product and integrated circuit are described in connection with several embodiments, it is not intended to be limited to the specific forms set forth herein, but on the contrary, it is intended to cover such alternatives, modifications and equivalents, as can be reasonably included within the spirit and scope of the invention as defined by the appended claims. It is noted that the headings are used only for organizational purposes and not meant to limit the scope of the description or claims.
This application is related to the following commonly owned co-pending U.S. patent application: Provisional Application Ser. No. 60/948,120, “Method and Apparatus for Providing Dynamic Composition of Multiple Processors for Adaptive Single-Threaded Executions,” filed Jul. 5, 2007, and claims the benefit of its earlier filing date under 35 U.S.C. §119(e).
Number | Date | Country | |
---|---|---|---|
60948120 | Jul 2007 | US |