US20120144218A1 - Transferring Power and Speed from a Lock Requester to a Lock Holder on a System with Multiple Processors - Google Patents
Transferring Power and Speed from a Lock Requester to a Lock Holder on a System with Multiple Processors Download PDFInfo
- Publication number
- US20120144218A1 US20120144218A1 US12/959,804 US95980410A US2012144218A1 US 20120144218 A1 US20120144218 A1 US 20120144218A1 US 95980410 A US95980410 A US 95980410A US 2012144218 A1 US2012144218 A1 US 2012144218A1
- Authority
- US
- United States
- Prior art keywords
- processor
- thread
- frequency
- lock
- thread executing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Abandoned
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3287—Power saving characterised by the action undertaken by switching off individual functional units in the computer system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/324—Power saving characterised by the action undertaken by lowering clock frequency
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/329—Power saving characterised by the action undertaken by task scheduling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/52—Program synchronisation; Mutual exclusion, e.g. by means of semaphores
- G06F9/526—Mutual exclusion algorithms
-
- Y—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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Definitions
- the disclosure relates generally to a computer implemented method, a computer program product, and a data processing system. More specifically, the disclosure relates to a computer implemented method, a computer program product, and a data processing system for dynamically reallocating power between processors of a multiprocessor system.
- SMP symmetric multiprocessor
- hypervisors typically contain locks, usually implemented at least in part by spinning mechanisms, to protect critical sections of code and shared data from corruption. All such locks are coded based on some implicit assumptions about the nature and behavior of the machine. In particular, one standard assumption is that the processors of a symmetric multiprocessor (SMP) system run at approximately the same speed.
- a computer implemented method allocates power between processors in a multiprocessor system.
- a request to acquire a lock is received from a first thread executing on a first processor. Responsive to receiving the request to acquire a lock, a determination is made as to whether a second thread has acquired the lock. Responsive to determining that the second thread has acquired the lock, an original frequency of the first thread executing on the first processor and identifying an operating frequency of the second thread executing on the second processor is identified. The operating frequency of the second thread executing on the second processor is then altered based on the original frequency of the first thread executing on the first processor. When the second thread releases the lock, the spinning thread with the highest original frequency acquires the lock.
- FIG. 1 is a block diagram of a data processing system in which illustrative embodiments may be implemented
- FIG. 2 is a dataflow diagram for dynamically reallocating power between processors of a multiprocessor system according to an illustrative embodiment
- FIG. 3 is a dataflow for lock acquisition by a first thread within a multiprocessor system according to an illustrative embodiment
- FIG. 4 is a first dataflow for lock acquisition by a second thread operating at a lower frequency within a multiprocessor system according to an illustrative embodiment
- FIG. 5 is a series of frequency tracking data structures for tracking frequencies of a plurality of processors executing threads requesting access to a lock according to one illustrative embodiment
- FIG. 6 is a series of frequency tracking data structures for tracking frequencies of a plurality of processors executing threads requesting access to a lock according to one illustrative embodiment
- FIG. 7 is a series of frequency tracking data structures for tracking frequencies of a plurality of processors executing threads requesting access to a lock according to one illustrative embodiment
- FIG. 8 is a flowchart for dynamically reallocating power between processors of a multiprocessor system when a lock is requested according to an illustrative embodiment
- FIG. 9 is a flowchart for dynamically reallocating power between processors of a multiprocessor system when a lock is released according to an illustrative embodiment.
- the present invention may be embodied as a system, method or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, the present invention may take the form of a computer program product embodied in any tangible medium of expression having computer usable program code embodied in the medium.
- the computer-usable or computer-readable medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium.
- the computer-readable medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CDROM), an optical storage device, a transmission media such as those supporting the Internet or an intranet, or a magnetic storage device.
- a computer-usable or computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted, or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
- a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
- the computer-usable medium may include a propagated data signal with the computer-usable program code embodied therewith, either in baseband or as part of a carrier wave.
- the computer usable program code may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc.
- Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like, and conventional procedural programming languages, such as the “C” programming language or similar programming languages.
- the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
- the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).
- LAN local area network
- WAN wide area network
- Internet Service Provider for example, AT&T, MCI, Sprint, EarthLink, MSN, GTE, etc.
- These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
- These computer program instructions may also be stored in a computer-readable medium that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable medium produce an article of manufacture including instruction means which implement the function/act specified in the flowchart and/or block diagram block or blocks.
- the computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
- Data processing system 100 may be a symmetric multiprocessor (SMP) system including processors 101 , 102 , 103 , and 104 , which connect to system bus 106 .
- SMP symmetric multiprocessor
- data processing system 100 may be an IBM server system, a product of International Business Machines Corporation in Armonk, N.Y., used within a network. Alternatively, a single processor system may be employed.
- memory controller/cache 108 Also connected to system bus 106 is memory controller/cache 108 , which provides an interface to local memories 160 , 161 , 162 , and 163 .
- I/O bridge 110 connects to system bus 106 and provides an interface to I/O bus 112 . Memory controller/cache 108 and I/O bridge 110 may be integrated as depicted.
- Peripheral component interconnect (PCI) host bridge 114 connected to I/O bus 112 provides an interface to PCI local bus 115 .
- PCI I/O adapters 120 and 121 connect to PCI bus 115 through PCI-to-PCI bridge 116 , PCI bus 118 , PCI bus 119 , I/O slot 170 , and I/O slot 171 .
- PCI-to-PCI bridge 116 provides an interface to PCI bus 118 and PCI bus 119 .
- PCI I/O adapters 120 and 121 are placed into I/O slots 170 and 171 , respectively.
- Typical PCI bus implementations support between four and eight I/O adapters (i.e. expansion slots for add-in connectors).
- Each PCI I/O adapter 120 - 121 provides an interface between data processing system 100 and input/output devices such as, for example, other network computers, which are clients to data processing system 100 .
- An additional PCI host bridge 122 provides an interface for an additional PCI bus 123 .
- PCI bus 123 connects to a plurality of PCI I/O adapters 128 and 129 .
- PCI I/O adapters 128 and 129 connect to PCI bus 123 through PCI-to-PCI bridge 124 , PCI bus 126 , PCI bus 127 , I/O slot 172 , and I/O slot 173 .
- PCI-to-PCI bridge 124 provides an interface to PCI bus 126 and PCI bus 127 .
- PCI I/O adapters 128 and 129 are placed into I/O slots 172 and 173 , respectively.
- additional I/O devices such as, for example, modems or network adapters may be supported through each of PCI I/O adapters 128 - 129 . Consequently, data processing system 100 allows connections to multiple network computers.
- a memory mapped graphics adapter 148 is inserted into I/O slot 174 and connects to I/O bus 112 through PCI bus 144 , PCI-to-PCI bridge 142 , PCI bus 141 , and PCI host bridge 140 .
- Hard disk adapter 149 may be placed into I/O slot 175 , which connects to PCI bus 145 . In turn, this bus connects to PCI-to-PCI bridge 142 , which connects to PCI host bridge 140 by PCI bus 141 .
- a PCI host bridge 130 provides an interface for PCI bus 131 to connect to I/O bus 112 .
- PCI I/O adapter 136 connects to I/O slot 176 , which connects to PCI-to-PCI bridge 132 by PCI bus 133 .
- PCI-to-PCI bridge 132 connects to PCI bus 131 .
- This PCI bus also connects PCI host bridge 130 to the service processor mailbox interface and ISA bus access pass-through 194 and PCI-to-PCI bridge 132 .
- Service processor mailbox interface and ISA bus access pass-through 194 forwards PCI accesses destined to the PCI/ISA bridge 193 .
- NVRAM storage 192 connects to the ISA bus 196 .
- Service processor 135 connects to service processor mailbox interface and ISA bus access passthrough logic 194 through its local PCI bus 195 .
- Service processor 135 also connects to processors 101 , 102 , 103 , and 104 via a plurality of JTAG/I 2 C busses 134 .
- JTAG/I 2 C busses 134 are a combination of JTAG/scan busses (see IEEE 1149.1) and Phillips I 2 C busses. However, alternatively, JTAG/I 2 C busses 134 may be replaced by only Phillips I 2 C busses or only JTAG/scan busses. All SP-ATTN signals of the host processors 101 , 102 , 103 , and 104 connect together to an interrupt input signal of service processor 135 .
- Service processor 135 has its own local memory 191 and has access to the hardware OP-panel 190 .
- service processor 135 uses the JTAG/I 2 C busses 134 to interrogate the system (host) processors 101 , 102 , 103 , and 104 , memory controller/cache 108 , and I/O bridge 110 .
- service processor 135 has an inventory and topology understanding of data processing system 100 .
- Service processor 135 also executes Built-In-Self-Tests (BISTs), Basic Assurance Tests (BATs), and memory tests on all elements found by interrogating the host processors 101 , 102 , 103 , and 104 , memory controller/cache 108 , and I/O bridge 110 . Any error information for failures detected during the BISTs, BATs, and memory tests are gathered and reported by service processor 135 .
- BISTs Built-In-Self-Tests
- BATs Basic Assurance Tests
- data processing system 100 is allowed to proceed to load executable code into local (host) memories 160 , 161 , 162 , and 163 .
- Service processor 135 then releases host processors 101 , 102 , 103 , and 104 for execution of the code loaded into local memory 160 , 161 , 162 , and 163 . While host processors 101 , 102 , 103 , and 104 are executing code from respective operating systems within data processing system 100 , service processor 135 enters a mode of monitoring and reporting errors.
- the type of items monitored by service processor 135 include, for example, the cooling fan speed and operation, thermal sensors, power supply regulators, and recoverable and non-recoverable errors reported by processors 101 , 102 , 103 , and 104 , local memories 160 , 161 , 162 , and 163 , and I/O bridge 110 .
- Service processor 135 saves and reports error information related to all the monitored items in data processing system 100 .
- Service processor 135 also takes action based on the type of errors and defined thresholds. For example, service processor 135 may take note of excessive recoverable errors on a processor's cache memory and decide that this is predictive of a hard failure. Based on this determination, service processor 135 may mark that resource for de-configuration during the current running session and future Initial Program Loads (IPLs). IPLs are also sometimes referred to as a “boot” or “bootstrap”.
- IPLs are also sometimes referred to as a “boot” or “bootstrap”.
- Data processing system 100 may be implemented using various commercially available computer systems.
- data processing system 100 may be implemented using IBM POWER Family Model 770 system available from International Business Machines Corporation.
- Such a system may run a hypervisor to partition the machine and then run multiple operating systems, one per partition, or alternatively, it may run an operating directly on the hardware without using a hypervisor.
- FIG. 1 may vary.
- other peripheral devices such as optical disk drives and the like, also may be used in addition to or in place of the hardware depicted.
- the depicted example is not meant to imply architectural limitations with respect to illustrative embodiments.
- the illustrative embodiments herein provide a computer implemented method for allocating power between processors in a multiprocessor system.
- a request to acquire a lock is received from a first thread executing on a first processor. Responsive to receiving the request to acquire a lock, a determination is made as to whether a second thread has acquired the lock. Responsive to determining that the second thread has acquired the lock, an original frequency of the first thread executing on the first processor and identifying an operating frequency of the second thread executing on the second processor is identified. The operating frequency of the second thread executing on the second processor is then altered based on the original frequency of the first thread executing on the first processor.
- Multiprocessor system 200 can be a multiprocessor system such as data processing system 100 of FIG. 1 .
- Multiprocessor system 200 includes a set of processors.
- the set of processors includes at least two processors, processor 210 and processor 212 .
- the set of processors of multiprocessor system 200 is shown having only two processors, such is for simplicity only.
- the set of processors of Multiprocessor system 200 may include additional processors.
- Each of processor 210 and processor 212 is a processor such as one of processors 101 , 102 , 103 , and 104 of FIG. 1 .
- Processor 210 operates at frequency 214 .
- Processor 212 operates at frequency 216 .
- Frequency 214 is the operating speed of processor 210 as measured in cycles per second. Frequency 214 is therefore the rate at which processor 210 can complete a processing cycle.
- frequency 216 is the operating speed of processor 212 as measured in cycles per second. Frequency 216 is therefore the rate at which processor 212 can complete a processing cycle.
- Processor 210 executes one or more threads, such as thread 218 .
- processor 212 executes one or more threads, such as thread 220 .
- thread 218 and thread 220 is a unit of processing that can be scheduled to one of processor 210 or processor 212 by an operating system.
- thread 218 and thread 220 is a sequence of code. This code is often responsible for one aspect of a program, or one task the program has been given.
- Multiprocessor system 200 includes contested resource 222 .
- Contested resource 222 is data or some portion of a program that is required by both thread 218 and thread 220 .
- multiprocessor system 200 includes lock 224 .
- Lock 224 is a synchronization mechanism for enforcing limits on access to contested resource 222 .
- Lock 224 ensures that thread 218 and thread 220 do not concurrently attempt to execute contested resource 222 . If thread 218 is executing contested resource 222 , thread 220 must wait until thread 218 finishes before thread 220 is able to access contested resource 222 . Conversely, if thread 220 is executing contested resource 222 , thread 218 must wait until thread 220 finishes before thread 218 is able to access contested resource 222 .
- lock 224 may be implemented as part of synchronization control 226 .
- lock 224 is a spinlock.
- a spinlock is a lock where a thread wanting to access a contested resource simply waits in a loop repeatedly checking until the lock becomes available. Once the lock is available, the thread is able to access the contested resource. As the waiting thread “spins,” it remains active, but does not perform any task other than waiting on another thread to release the lock.
- Spinlocks are coded based on implicit assumptions about the nature and behavior of the machine.
- one standard assumption is that the processors of a symmetric multiprocessor (SMP) operate at approximately the same frequency. This assumption means that the holder of a lock makes progress at about the same rate that a requester “spins” for it. Therefore, the assumption regarding processor frequency determines expected lock hold time and contention level.
- SMP symmetric multiprocessor
- the introduction of aggressive power management causes systems to run different processors at different frequencies, depending on policy and operating conditions. Processors may also change frequencies in response to power and performance considerations.
- processor 210 When a power-managed system with multiple processors running at different speeds runs a symmetric multiprocessor (SMP) operating system or hypervisor, it may well be the case that a processor, such as processor 210 , holding a lock, such as lock 224 , is running at a lower frequency (or raw speed) than a waiting processor, such as processor 212 . When this happens, the implicit locking assumptions of the system may be violated, leading to poor performance, limited scalability, unexpected time-outs, and even system failures.
- SMP symmetric multiprocessor
- CMOS complementary metal-oxide-semiconductor
- C is the capacitance being switched per clock cycle
- V is voltage
- F is the processor frequency (cycles per second).
- Power consumption for a processor is more nearly a linear function of frequency.
- frequency and voltage scaling is the primary means of controlling the power consumption of a running processor.
- Increases in frequency of the processor thus increases the amount of power used by that processor.
- the power that a processor uses can be manipulated by altering the frequency at which the processor operates.
- Power used by processor 210 can therefore be manipulated by altering frequency 214 .
- power used by processor 212 can be manipulated by altering frequency 216 .
- the illustrative embodiments remedy this problem by transferring frequency and power from a processor waiting for a lock, such as processor 212 , to a processor that is currently holding a lock, such as processor 210 .
- This frequency transfer allows the thread holding the lock to run relatively faster, reducing the lock hold time. This frequency transfer also saves wasted power by reducing the power consumption of the processors waiting for the lock.
- Synchronization control 226 is software that controls access by thread 218 and thread 220 to lock 224 . Thread 218 and thread 220 must acquire lock 224 before either of thread 218 and thread 220 can access contested resource 222 .
- synchronization control 226 may be, for example, an operating system, or alternatively a hypervisor.
- Synchronization control 226 includes frequency tracking data structure 228 .
- Frequency tracking data structure 228 is a data structure that tracks the current operating frequencies, such as frequency 214 and frequency 216 , for the processors of multiprocessor system 200 , such as processor 210 and processor 212 .
- frequency 214 and frequency 216 can be obtained by reading the hardware state of the system. However, even where frequency 214 and frequency 216 are obtained from the hardware state, frequency tracking data structure 228 is still required for proper behavior of the system when a processor holding lock 224 , such as processor 210 , later releases lock 224 .
- Multiprocessor system 300 is a multiprocessor system, such as multiprocessor system 200 of FIG. 2 .
- Thread 310 executes on processor 312 .
- Processor 312 operates at frequency 314 .
- Frequency 314 is originally set to F 1 .
- Synchronization control 316 tracks frequency 314 of processor 312 in frequency tracking data structure 318 .
- synchronization control 316 determines whether another thread is currently holding lock 320 .
- lock 320 is free; thus synchronization control 316 grants lock 320 to thread 310 .
- Thread 310 is then able to access the contested resource. As long as there are no other threads waiting for lock 320 , no further action is taken. Should another thread seek to acquire lock 320 , that other thread must wait until thread 310 releases lock.
- synchronization control 316 releases lock 320 from thread 310 , lock 320 may be acquired by the other thread.
- Multiprocessor system 400 is multiprocessor system such as multiprocessor system 300 of FIG. 3 .
- Thread 410 executes on processor 412 .
- Processor 412 operates at frequency 414 .
- Frequency 414 is originally set to F 1 .
- Synchronization control 416 tracks the frequency 414 of processor 412 in frequency tracking data structure 418 .
- Thread 410 holds lock 420 for access to a contested resource, such as contested resource 222 of FIG. 2 .
- Thread 422 executes on processor 424 .
- Processor 424 operates at frequency 426 .
- Frequency 426 is originally set to F 2 .
- F 1 is greater than F 2 .
- Synchronization control 416 tracks frequency 426 of processor 412 in frequency tracking data structure 418 .
- Thread 422 seeks to acquire lock 420 for access to a contested resource, such as contested resource 222 of FIG. 2 .
- Synchronization control 416 then compares frequency 414 of processor 412 , set at F 1 , to frequency 426 of processor 424 , set at F 2 .
- F 1 is greater than F 2 . Therefore, synchronization control 416 does not alter frequency 414 of processor 412 .
- synchronization control 416 may set frequency 426 of processor 424 to F wait .
- F wait is a very low processor frequency with associated low power.
- F wait is used by threads waiting for a spinlock.
- F wait may be, for example, the same speed that an idle thread uses to run an idle loop on machines using idle loops.
- processor 424 may continue to “spin” at the original frequency 426 of F 2 .
- processor 424 is reset to original frequency 426 of F 2 .
- the frequency 426 assigned to processor 424 is its original frequency F 2 plus the maximum additional speed allowed by the power transferred from any additional threads that are continuing to wait. That is, frequency 426 is set to the frequency:
- Each frequency tracking data structure of series 500 is a frequency tracking data structure such as frequency tracking data structure 418 of FIG. 4 .
- Frequency tracking data structure 510 indicates that a request to acquire a lock is received from thread 1 512 .
- Thread 1 512 is a thread such as one of thread 410 or thread 422 of FIG. 4 .
- the lock is granted to thread 1 512 , and a synchronization control, such as synchronization control 418 of FIG. 4 , records in frequency tracking data structure 510 the original frequency F 1 for the processor executing thread 512 .
- Frequency tracking data structure 520 is frequency tracking data structure 510 at a subsequent time. Thread 1 512 still holds the lock. Frequency tracking data structure 520 indicates that a second request to acquire the lock is received from thread 2 522 . Because thread 1 512 already holds the lock, thread 2 522 must “spin,” waiting for thread 1 512 to release the lock.
- a synchronization control such as synchronization control 416 of FIG. 4 , then compares the operating frequency of the processor executing thread 1 512 , set at F 1 , to the original frequency of the processor executing thread 2 522 , set at F 2 .
- F 1 is greater than F 2 .
- the synchronization control therefore allows the processor executing thread 1 512 to continue at the higher operating frequency F 1 , while thread 2 522 spins on its processor at the lower operating frequency F 2 .
- Frequency tracking data structure 530 is frequency tracking data structure 520 at a subsequent time. Thread 1 512 still holds the lock. Frequency tracking data structure 530 indicates that a third request to acquire the lock is received from thread 3 532 . Because thread 1 512 already holds the lock, thread 3 532 must “spin,” waiting for thread 1 512 to release the lock.
- a synchronization control such as synchronization control 416 of FIG. 4 , then compares the operating frequency of the processor executing thread 1 512 , set at F 1 , to the original frequency of the processor executing thread 3 532 , set at F 3 .
- F 3 is greater than F 1 .
- the synchronization control sets the operating frequency of the processor executing thread 1 512 to F 3 .
- synchronization sets the operating frequency of the processor executing thread 3 532 to F 1 , the operating frequency of the frequency of the processor executing thread 1 512 prior to thread 3 532 requesting the lock.
- Frequency tracking data structure 540 is frequency tracking data structure 530 at a subsequent time. Thread 1 512 has released the lock. A synchronization control, such as synchronization control 416 of FIG. 4 , resets the operating frequency for the processor executing thread 1 512 to its original frequency, F 1 .
- the waiting thread with the highest original frequency is given control.
- the speed assigned to it under the second embodiment is its previous speed.
- F 3 is greater than F 2 . Therefore, thread 3 532 acquires the lock.
- a synchronization control such as synchronization control 416 of FIG. 4 , then resets thread 3 532 to its original frequency, F 3 .
- the synchronization control also resets threads 2 522 to its original frequency, F 2 .
- Frequency tracking data structure 550 is frequency tracking data structure 540 at a subsequent time. Thread 3 532 has released the lock.
- a synchronization control such as synchronization control 416 of FIG. 4 , ensures that the operating frequency for the processor executing thread 3 532 is reset to its original frequency, F 3 .
- a synchronization control such as synchronization control 416 of FIG. 4 , ensures that the operating frequency for the processor executing thread 2 522 is reset to its original frequency, F 2 .
- Each frequency tracking data structure of series 600 is a frequency tracking data structure such as frequency tracking data structure 418 of FIG. 4 .
- Frequency tracking data structure 610 indicates that a request to acquire a lock is received from thread 1 612 .
- Thread 1 612 is a thread such as one of thread 410 or thread 422 of FIG. 4 .
- the lock is granted to thread 1 612 , and a synchronization control, such as synchronization control 418 of FIG. 4 , records in frequency tracking data structure 610 the original frequency F 1 for the processor executing thread 612 .
- Frequency tracking data structure 620 is frequency tracking data structure 610 at a subsequent time. Thread 1 612 still holds the lock. Frequency tracking data structure 620 indicates that a second request to acquire the lock is received from thread 2 622 . Because thread 1 612 already holds the lock, thread 2 622 must “spin,” waiting for thread 1 612 to release the lock.
- a synchronization control such as synchronization control 416 of FIG. 4 , then compares the operating frequency of the processor executing thread 1 612 , set at F 1 , to the original frequency of the processor executing thread 2 622 , set at F 2 .
- F 2 is greater than F 1 .
- the synchronization control sets the operating frequency of the processor executing thread 1 612 to F 2 .
- synchronization control sets the operating frequency of the processor executing thread 2 622 to F wait .
- F wait is a very low processor frequency with associated low power.
- F wait is used by threads waiting for a spinlock.
- F wait may be, for example, the same speed that an idle thread uses to run an idle loop on machines using idle loops.
- Frequency tracking data structure 630 is frequency tracking data structure 620 at a subsequent time. Thread 1 612 still holds the lock. Frequency tracking data structure 630 indicates that a third request to acquire the lock is received from thread 3 632 . Because thread 1 612 already holds the lock, thread 3 632 must “spin,” waiting for thread 1 612 to release the lock.
- a synchronization control such as synchronization control 416 of FIG. 4 , then compares the operating frequency of the processor executing thread 1 612 , set at F 2 , to the original frequency of the processor executing thread 3 632 , set at F 3 .
- F 2 is less than F 3 , and also less than F 1 .
- the synchronization control sets the operating frequency of the processor executing thread 1 612 to F 3 .
- synchronization control sets the operating frequency of the processor executing thread 3 632 to F wait .
- Frequency tracking data structure 640 is frequency tracking data structure 630 at a subsequent time. Thread 1 612 has released the lock. A synchronization control, such as synchronization control 416 of FIG. 4 , resets the operating frequency for the processor executing thread 1 612 to its original frequency, F 1 .
- the waiting thread with the highest original frequency is given control.
- the speed assigned to it under the second embodiment is its previous speed.
- F 3 is greater than F 2 . Therefore, thread 3 632 acquires the lock.
- a synchronization control such as synchronization control 416 of FIG. 4 , then resets thread 3 632 to its original frequency, F 3 .
- the synchronization control allows the processor executing thread 2 622 to continue to “spin” at the low power frequency F wait .
- Frequency tracking data structure 650 is frequency tracking data structure 640 at a subsequent time. Thread 3 632 has released the lock.
- a synchronization control such as synchronization control 416 of FIG. 4 , ensures that the operating frequency for the processor executing thread 3 632 is reset to its original frequency, F 2 .
- a synchronization control such as synchronization control 416 of FIG. 4 , ensures that the operating frequency for the processor executing thread 2 622 is reset to its original frequency, F 2 .
- Each frequency tracking data structure of series 700 is a frequency tracking data structure such as frequency tracking data structure 418 of FIG. 4 .
- Frequency tracking data structure 710 indicates that a request to acquire a lock is received from thread 1 712 .
- Thread 1 712 is a thread such as one of thread 410 or thread 524222 of FIG. 4 .
- the lock is granted to thread 1 712 , and a synchronization control, such as synchronization control 418 of FIG. 4 , records in frequency tracking data structure 710 the original frequency F 1 for the processor executing thread 1 712 .
- Frequency tracking data structure 720 is frequency tracking data structure 710 at a subsequent time. Thread 1 712 still holds the lock. Frequency tracking data structure 720 indicates that a second request to acquire the lock is received from thread 2 722 . Because thread 1 712 already holds the lock, thread 2 722 must “spin,” waiting for thread 1 712 to release the lock.
- a synchronization control such as synchronization control 416 of FIG. 4 , then compares the operating frequency of the processor executing thread 1 712 , set at F 1 , to the original frequency of the processor executing thread 2 722 , set at F 2 .
- F 1 is greater than F 2 .
- Successive speed boost and power transfers can be realized as the number of waiting threads increases.
- a new waiting thread arrives, if the new thread is operating at a frequency that is greater than the low power frequency, the waiting thread goes to the wait speed.
- Thread 1712 then inherits a frequency boost of the newly arriving thread.
- the synchronization control sets the operating frequency of the processor executing thread 2 722 , set at F wait .
- the synchronization control sets the operating frequency of the processor executing thread 1 712 to its original frequency F 1 plus the maximum additional speed allowed by the power transferred from any additional threads that are continuing to wait. That is, the operating frequency for thread 1 712 is set to the frequency:
- the operating frequency of the processor executing thread 1 712 is set to:
- Frequency tracking data structure 730 is frequency tracking data structure 720 at a subsequent time. Thread 1 712 still holds the lock. Frequency tracking data structure 730 indicates that a third request to acquire the lock is received from thread 3 732 . Because thread 1 712 already holds the lock, thread 3 732 must “spin,” waiting for thread 1 712 to release the lock.
- a synchronization control such as synchronization control 416 of FIG. 4 , then compares the operating frequency of the processor executing thread 1 712 , set at F 1 +(F 2 ⁇ F wait ), to the original frequency of the processor executing thread 3 732 , set at F 3 .
- F 1 +(F 2 ⁇ F wait ) is greater than F 3 .
- the synchronization control sets the operating frequency of the processor executing thread 3 732 , set at F wait .
- the synchronization control sets the operating frequency of the processor executing thread 1 712 to its original frequency F 1 plus the maximum additional speed allowed by the power transferred from any additional threads that are continuing to wait. That is, the operating frequency for thread 1 712 is set to:
- the operating frequency of the processor executing thread 1 712 is set to:
- Frequency tracking data structure 740 is frequency tracking data structure 730 at a subsequent time. Thread 1 712 has released the lock. A synchronization control, such as synchronization control 416 of FIG. 4 , resets the operating frequency for the processor executing thread 1 712 to its original frequency, F 1 .
- the waiting thread with the highest original frequency is given control.
- the speed assigned to it under the second embodiment is its previous speed plus the maximum additional speed allowed by the power transferred from the threads that are continuing to wait.
- F 2 is greater than F 3 . Therefore, thread 2 722 acquires the lock.
- the synchronization control sets the operating frequency of the processor executing thread 3 732 , set at F wait .
- the synchronization control sets the operating frequency of the processor executing thread 2 722 to its original frequency F 2 plus the maximum additional speed allowed by the power transferred from any additional threads that are continuing to wait. That is, the operating frequency for thread 2 722 is set to the frequency:
- the operating frequency of the processor executing thread 2 722 is set to:
- Frequency tracking data structure 750 is frequency tracking data structure 740 at a subsequent time. Thread 2 722 has released the lock.
- a synchronization control such as synchronization control 416 of FIG. 4 , ensures that the operating frequency for the processor executing thread 2 722 is reset to its original frequency, F 2 . Now, only thread 3 732 is waiting. Therefore, thread 3 732 acquires the lock.
- a synchronization control such as synchronization control 416 of FIG. 4 , ensures that the operating frequency for the processor executing thread 3 732 is reset to its original frequency, F 3 .
- Process 800 is a software process, executing on a software component, such as synchronization control 226 of FIG. 2 .
- Process 800 begins by receiving a request for a lock (step 810 ).
- the lock may be, for example, lock 224 of FIG. 2 .
- the request for a lock is received from a thread, such as one of thread 218 and thread 220 of FIG. 2 that seeks to access a contested resource, such as contested resource 222 of FIG. 2 .
- process 800 determines whether the lock is held by another thread (step 815 ). If another thread is currently utilizing the contested resource, then that thread will hold the lock. However, if no other thread is currently utilizing the contested resource, then the lock is free, and can be granted to the requesting thread.
- process 800 grants the lock to the requesting thread (step 820 ). The requesting thread can then access the contested resource.
- Process 800 records the original frequency of the processor executing the requesting thread in a frequency tracking data structure (step 825 ), and the process terminates thereafter.
- the frequency tracking data structure may be, for example, frequency tracking data structure 228 of FIG. 2 .
- process 800 determines whether the original frequency for the thread requesting the lock is greater than the operating frequency for the thread holding the lock (step 830 ). Responsive to determining that the original frequency of the processor for the thread requesting the lock is not greater than the operating frequency for the thread holding the lock (“no” at step 830 ), process 800 records the original frequency of the processor executing the requesting thread in a frequency tracking data structure (step 835 ). Process 800 sets the operating frequency of the processor for the thread requesting the lock to F wait (step 840 ), and begins to “spin” the thread requesting the lock (step 845 ). After a certain number of cycles, process 800 iterates back to step 815 to determine whether the lock has become available.
- process 800 records the original frequency of the processor executing the requesting thread in a frequency tracking data structure (step 850 ).
- Process 800 sets the operating frequency of the processor for the thread requesting the lock to F wait (step 855 ), and begins to “spin” the thread requesting the lock (step 860 ).
- Process 800 alters the operating frequency for the thread holding the lock based on the frequency of the processor for thread requesting the lock (step 865 ), with the process terminating thereafter.
- process 800 alters the operating frequency for the thread holding the lock by simply substituting the operating frequency of the thread holding the lock for the operating frequency of the processor for thread requesting the lock. In another illustrative embodiment, process 800 alters the operating frequency for thread holding the lock by augmenting the operating frequency of the thread holding the lock by an amount equal to the difference between the operating frequency of the processor for thread requesting the lock and the frequency of the low power state of the processor for the requesting thread that is now “spinning.”
- Process 900 is a software process, executing on a software component, such as synchronization control 326 of FIG. 3 .
- Process 900 begins when a thread releases a lock (step 910 ).
- the lock may be, for example, lock 320 of FIG. 3 .
- the thread is a thread such as thread 310 of FIG. 3 that has controlled a contested resource, such as contested resource 222 of FIG. 2 .
- the thread may be operating at an altered frequency.
- Process 900 then resets the thread's frequency to its original frequency (step 920 ).
- the original frequency can be found in a frequency tracking data structure.
- the frequency tracking data structure may be, for example, frequency tracking data structure 318 of FIG. 3 .
- Process 900 determines if there are any other threads “spinning” for the lock (step 930 ). If no other threads are “spinning” for the lock (“no” at step 930 ), the process terminates. If process 900 determines that additional threads are “spinning” for the lock (“yes” at step 930 ), then process 900 identifies the “spinning” thread having the highest original frequency (step 940 ).
- Process 900 then grants the lock to the spinning thread having the highest original frequency (step 950 ). That thread can then access the contested resource.
- Process 900 sets the operating frequency of the processor executing the thread holding the lock equal to the thread's original frequency (step 960 ).
- the original frequency can be found in a frequency tracking data structure.
- the frequency tracking data structure may be, for example, frequency tracking data structure 318 of FIG. 3 .
- process 900 can further alter the operating frequency of the processor for thread holding the lock by augmenting the operating frequency of the thread holding the lock by an amount equal to the difference between the operating frequency of the processor for any remaining spinning threads and the frequency of a low power state of the processor for the requesting thread that is now “spinning.” (step 970 ). Responsive to resetting the operating frequency for the thread now holding the lock, process 900 terminates.
- the illustrative embodiments herein provide a computer implemented method for allocating power between processors in a multiprocessor system.
- a request to acquire a lock is received from a first thread executing on a first processor. Responsive to receiving the request to acquire a lock, determination is made as to whether a second thread has acquired the lock. Responsive to determining that the second thread has acquired the lock, an original frequency of the first thread executing on the first processor and identifying an operating frequency of the second thread executing on the second processor is identified. The operating frequency of the second thread executing on the second processor is then altered based on the original frequency of the first thread executing on the first processor.
- each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s).
- the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
- the invention can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment containing both hardware and software elements.
- the invention is implemented in software, which includes but is not limited to firmware, resident software, microcode, etc.
- the invention can take the form of a computer program product accessible from a computer-usable or computer-readable medium providing program code for use by or in connection with a computer or any instruction execution system.
- a computer-usable or computer readable medium can be any tangible apparatus that can contain, store, communicate, propagate, or transport the program for use by, or in connection with, the instruction execution system, apparatus, or device.
- the medium can be an electronic, magnetic, optical, electromagnetic, infrared, semiconductor system (apparatus or device), or a propagation medium.
- a computer-readable medium include a semiconductor or solid state memory, magnetic tape, a removable computer diskette, a random access memory (RAM), a read-only memory (ROM), a rigid magnetic disk and an optical disk.
- Current examples of optical disks include compact disk-read only memory (CD-ROM), compact disk-read/write (CD-R/W), and DVD.
- a data processing system suitable for storing and/or executing program code will include at least one processor coupled directly or indirectly to memory elements through a system bus.
- the memory elements can include local memory employed during actual execution of the program code, bulk storage, and cache memories which provide temporary storage of at least some program code in order to reduce the number of times code must be retrieved from bulk storage during execution.
- I/O devices including but not limited to keyboards, displays, pointing devices, etc.
- I/O controllers can be coupled to the system either directly or through intervening I/O controllers.
- Network adapters may also be coupled to the system to enable the data processing system to become coupled to other data processing systems or remote printers or storage devices through intervening private or public networks.
- Modems, cable modem, and Ethernet cards are just a few of the currently available types of network adapters.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Power Sources (AREA)
Abstract
Power is allocated between processors in a multiprocessor system. A request to acquire a lock is received from a first thread executing on a first processor. Responsive to receiving the request to acquire a lock, determination is made as to whether a second thread has acquired the lock. Responsive to determining that the second thread has acquired the lock, an original frequency of the first thread executing on the first processor and an operating frequency of the second thread executing on the second processor is identified. The operating frequency of the second thread executing on the second processor is then altered based on the original frequency of the first thread executing on the first processor. When the second thread releases the lock, the spinning thread with the highest original frequency acquires the lock.
Description
- 1. Field
- The disclosure relates generally to a computer implemented method, a computer program product, and a data processing system. More specifically, the disclosure relates to a computer implemented method, a computer program product, and a data processing system for dynamically reallocating power between processors of a multiprocessor system.
- 2. Description of the Related Art
- To optimize system power and performance as well as to maintain safe operation under a power cap, systems architects and designers are beginning to implement computing systems on which the processors in a symmetric multiprocessor (SMP) system run at very different underlying speeds or frequencies and can dynamically change from one frequency setting to another, depending on power and performance considerations. Symmetric multiprocessor (SMP) system operating systems and hypervisors typically contain locks, usually implemented at least in part by spinning mechanisms, to protect critical sections of code and shared data from corruption. All such locks are coded based on some implicit assumptions about the nature and behavior of the machine. In particular, one standard assumption is that the processors of a symmetric multiprocessor (SMP) system run at approximately the same speed. This means that the holder of a lock makes progress at about the same rate that a requester spins for it. This determines expected lock hold time and contention level. However, the introduction of aggressive power management causes systems to run different processors at different frequencies, depending on policy and operating conditions. Processors may also change frequencies in response to power and performance considerations.
- According to one embodiment of the present invention, a computer implemented method allocates power between processors in a multiprocessor system. A request to acquire a lock is received from a first thread executing on a first processor. Responsive to receiving the request to acquire a lock, a determination is made as to whether a second thread has acquired the lock. Responsive to determining that the second thread has acquired the lock, an original frequency of the first thread executing on the first processor and identifying an operating frequency of the second thread executing on the second processor is identified. The operating frequency of the second thread executing on the second processor is then altered based on the original frequency of the first thread executing on the first processor. When the second thread releases the lock, the spinning thread with the highest original frequency acquires the lock.
-
FIG. 1 is a block diagram of a data processing system in which illustrative embodiments may be implemented; -
FIG. 2 is a dataflow diagram for dynamically reallocating power between processors of a multiprocessor system according to an illustrative embodiment; -
FIG. 3 is a dataflow for lock acquisition by a first thread within a multiprocessor system according to an illustrative embodiment; -
FIG. 4 is a first dataflow for lock acquisition by a second thread operating at a lower frequency within a multiprocessor system according to an illustrative embodiment; -
FIG. 5 is a series of frequency tracking data structures for tracking frequencies of a plurality of processors executing threads requesting access to a lock according to one illustrative embodiment; -
FIG. 6 is a series of frequency tracking data structures for tracking frequencies of a plurality of processors executing threads requesting access to a lock according to one illustrative embodiment; -
FIG. 7 is a series of frequency tracking data structures for tracking frequencies of a plurality of processors executing threads requesting access to a lock according to one illustrative embodiment; -
FIG. 8 is a flowchart for dynamically reallocating power between processors of a multiprocessor system when a lock is requested according to an illustrative embodiment; and -
FIG. 9 is a flowchart for dynamically reallocating power between processors of a multiprocessor system when a lock is released according to an illustrative embodiment. - As will be appreciated by one skilled in the art, the present invention may be embodied as a system, method or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, the present invention may take the form of a computer program product embodied in any tangible medium of expression having computer usable program code embodied in the medium.
- Any combination of one or more computer usable or computer readable medium(s) may be utilized. The computer-usable or computer-readable medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CDROM), an optical storage device, a transmission media such as those supporting the Internet or an intranet, or a magnetic storage device.
- Note that the computer-usable or computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted, or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory. In the context of this document, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. The computer-usable medium may include a propagated data signal with the computer-usable program code embodied therewith, either in baseband or as part of a carrier wave. The computer usable program code may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc.
- Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like, and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).
- The present invention is described below with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions.
- These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable medium that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable medium produce an article of manufacture including instruction means which implement the function/act specified in the flowchart and/or block diagram block or blocks.
- The computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
- With reference now to the figures, and, in particular, with reference to
FIG. 1 , a block diagram of a data processing system in which illustrative embodiments may be implemented is depicted.Data processing system 100 may be a symmetric multiprocessor (SMP)system including processors system bus 106. For example,data processing system 100 may be an IBM server system, a product of International Business Machines Corporation in Armonk, N.Y., used within a network. Alternatively, a single processor system may be employed. Also connected tosystem bus 106 is memory controller/cache 108, which provides an interface tolocal memories O bridge 110 connects tosystem bus 106 and provides an interface to I/O bus 112. Memory controller/cache 108 and I/O bridge 110 may be integrated as depicted. - Peripheral component interconnect (PCI)
host bridge 114 connected to I/O bus 112 provides an interface to PCIlocal bus 115. PCI I/O adapters 120 and 121 connect toPCI bus 115 through PCI-to-PCI bridge 116,PCI bus 118,PCI bus 119, I/O slot 170, and I/O slot 171. PCI-to-PCI bridge 116 provides an interface toPCI bus 118 andPCI bus 119. PCI I/O adapters 120 and 121 are placed into I/O slots data processing system 100 and input/output devices such as, for example, other network computers, which are clients todata processing system 100. - An additional
PCI host bridge 122 provides an interface for anadditional PCI bus 123.PCI bus 123 connects to a plurality of PCI I/O adapters O adapters PCI bus 123 through PCI-to-PCI bridge 124,PCI bus 126,PCI bus 127, I/O slot 172, and I/O slot 173. PCI-to-PCI bridge 124 provides an interface toPCI bus 126 andPCI bus 127. PCI I/O adapters O slots data processing system 100 allows connections to multiple network computers. - A memory mapped
graphics adapter 148 is inserted into I/O slot 174 and connects to I/O bus 112 throughPCI bus 144, PCI-to-PCI bridge 142,PCI bus 141, andPCI host bridge 140.Hard disk adapter 149 may be placed into I/O slot 175, which connects toPCI bus 145. In turn, this bus connects to PCI-to-PCI bridge 142, which connects toPCI host bridge 140 byPCI bus 141. - A
PCI host bridge 130 provides an interface forPCI bus 131 to connect to I/O bus 112. PCI I/O adapter 136 connects to I/O slot 176, which connects to PCI-to-PCI bridge 132 byPCI bus 133. PCI-to-PCI bridge 132 connects toPCI bus 131. This PCI bus also connectsPCI host bridge 130 to the service processor mailbox interface and ISA bus access pass-through 194 and PCI-to-PCI bridge 132. Service processor mailbox interface and ISA bus access pass-through 194 forwards PCI accesses destined to the PCI/ISA bridge 193.NVRAM storage 192 connects to theISA bus 196.Service processor 135 connects to service processor mailbox interface and ISA busaccess passthrough logic 194 through itslocal PCI bus 195.Service processor 135 also connects toprocessors host processors service processor 135.Service processor 135 has its ownlocal memory 191 and has access to the hardware OP-panel 190. - When
data processing system 100 is initially powered up,service processor 135 uses the JTAG/I2C busses 134 to interrogate the system (host)processors cache 108, and I/O bridge 110. At the completion of this step,service processor 135 has an inventory and topology understanding ofdata processing system 100.Service processor 135 also executes Built-In-Self-Tests (BISTs), Basic Assurance Tests (BATs), and memory tests on all elements found by interrogating thehost processors cache 108, and I/O bridge 110. Any error information for failures detected during the BISTs, BATs, and memory tests are gathered and reported byservice processor 135. - If a meaningful and valid configuration of system resources is still possible after taking out the elements found to be faulty during the BISTs, BATs, and memory tests, then
data processing system 100 is allowed to proceed to load executable code into local (host)memories Service processor 135 then releaseshost processors local memory host processors data processing system 100,service processor 135 enters a mode of monitoring and reporting errors. The type of items monitored byservice processor 135 include, for example, the cooling fan speed and operation, thermal sensors, power supply regulators, and recoverable and non-recoverable errors reported byprocessors local memories O bridge 110. -
Service processor 135 saves and reports error information related to all the monitored items indata processing system 100.Service processor 135 also takes action based on the type of errors and defined thresholds. For example,service processor 135 may take note of excessive recoverable errors on a processor's cache memory and decide that this is predictive of a hard failure. Based on this determination,service processor 135 may mark that resource for de-configuration during the current running session and future Initial Program Loads (IPLs). IPLs are also sometimes referred to as a “boot” or “bootstrap”. -
Data processing system 100 may be implemented using various commercially available computer systems. For example,data processing system 100 may be implemented using IBM POWER Family Model 770 system available from International Business Machines Corporation. Such a system may run a hypervisor to partition the machine and then run multiple operating systems, one per partition, or alternatively, it may run an operating directly on the hardware without using a hypervisor. - Those of ordinary skill in the art will appreciate that the hardware depicted in
FIG. 1 may vary. For example, other peripheral devices, such as optical disk drives and the like, also may be used in addition to or in place of the hardware depicted. The depicted example is not meant to imply architectural limitations with respect to illustrative embodiments. - When a power-managed system with multiple processors running at different speeds runs a symmetric multiprocessor (SMP) system operating system or hypervisor, it may well be the case that the holder of a lock is running at lower frequency (or raw speed) than the waiter or waiters. When this happens, the implicit locking assumptions of the system may be violated, leading to poor performance, limited scalability, unexpected time-outs, and even system failures.
- The illustrative embodiments herein provide a computer implemented method for allocating power between processors in a multiprocessor system. A request to acquire a lock is received from a first thread executing on a first processor. Responsive to receiving the request to acquire a lock, a determination is made as to whether a second thread has acquired the lock. Responsive to determining that the second thread has acquired the lock, an original frequency of the first thread executing on the first processor and identifying an operating frequency of the second thread executing on the second processor is identified. The operating frequency of the second thread executing on the second processor is then altered based on the original frequency of the first thread executing on the first processor.
- Referring now to
FIG. 2 , a dataflow diagram for dynamically reallocating power between processors of a multiprocessor system is shown according to an illustrative embodiment.Multiprocessor system 200 can be a multiprocessor system such asdata processing system 100 ofFIG. 1 . -
Multiprocessor system 200 includes a set of processors. The set of processors includes at least two processors,processor 210 andprocessor 212. The set of processors ofmultiprocessor system 200 is shown having only two processors, such is for simplicity only. The set of processors ofMultiprocessor system 200 may include additional processors. Each ofprocessor 210 andprocessor 212 is a processor such as one ofprocessors FIG. 1 . -
Processor 210 operates atfrequency 214.Processor 212 operates atfrequency 216.Frequency 214 is the operating speed ofprocessor 210 as measured in cycles per second.Frequency 214 is therefore the rate at whichprocessor 210 can complete a processing cycle. Similarly,frequency 216 is the operating speed ofprocessor 212 as measured in cycles per second.Frequency 216 is therefore the rate at whichprocessor 212 can complete a processing cycle. -
Processor 210 executes one or more threads, such asthread 218. Similarly,processor 212 executes one or more threads, such asthread 220. Each ofthread 218 andthread 220 is a unit of processing that can be scheduled to one ofprocessor 210 orprocessor 212 by an operating system. Each ofthread 218 andthread 220 is a sequence of code. This code is often responsible for one aspect of a program, or one task the program has been given. -
Multiprocessor system 200 includes contestedresource 222.Contested resource 222 is data or some portion of a program that is required by boththread 218 andthread 220. - In order to maintain process synchronization,
multiprocessor system 200 includeslock 224.Lock 224 is a synchronization mechanism for enforcing limits on access to contestedresource 222.Lock 224 ensures thatthread 218 andthread 220 do not concurrently attempt to execute contestedresource 222. Ifthread 218 is executing contestedresource 222,thread 220 must wait untilthread 218 finishes beforethread 220 is able to access contestedresource 222. Conversely, ifthread 220 is executing contestedresource 222,thread 218 must wait untilthread 220 finishes beforethread 218 is able to access contestedresource 222. In one illustrative embodiment, lock 224 may be implemented as part ofsynchronization control 226. - In one illustrative embodiment,
lock 224 is a spinlock. A spinlock is a lock where a thread wanting to access a contested resource simply waits in a loop repeatedly checking until the lock becomes available. Once the lock is available, the thread is able to access the contested resource. As the waiting thread “spins,” it remains active, but does not perform any task other than waiting on another thread to release the lock. - Spinlocks are coded based on implicit assumptions about the nature and behavior of the machine. In particular, one standard assumption is that the processors of a symmetric multiprocessor (SMP) operate at approximately the same frequency. This assumption means that the holder of a lock makes progress at about the same rate that a requester “spins” for it. Therefore, the assumption regarding processor frequency determines expected lock hold time and contention level. However, the introduction of aggressive power management causes systems to run different processors at different frequencies, depending on policy and operating conditions. Processors may also change frequencies in response to power and performance considerations.
- When a power-managed system with multiple processors running at different speeds runs a symmetric multiprocessor (SMP) operating system or hypervisor, it may well be the case that a processor, such as
processor 210, holding a lock, such aslock 224, is running at a lower frequency (or raw speed) than a waiting processor, such asprocessor 212. When this happens, the implicit locking assumptions of the system may be violated, leading to poor performance, limited scalability, unexpected time-outs, and even system failures. - Idealized power consumption of a complementary metal-oxide-semiconductor (CMOS) circuit is given by the equation:
-
P=C*V 2 *F - wherein:
- P is power;
- C is the capacitance being switched per clock cycle;
- V is voltage, and
- F is the processor frequency (cycles per second).
- Power consumption for a processor, such as
processor 210 andprocessor 212, is more nearly a linear function of frequency. However, under idealized power conditions or otherwise, frequency and voltage scaling is the primary means of controlling the power consumption of a running processor. - Increases in frequency of the processor thus increases the amount of power used by that processor. Thus, the power that a processor uses can be manipulated by altering the frequency at which the processor operates. Power used by
processor 210 can therefore be manipulated by alteringfrequency 214. Similarly, power used byprocessor 212 can be manipulated by alteringfrequency 216. - The illustrative embodiments remedy this problem by transferring frequency and power from a processor waiting for a lock, such as
processor 212, to a processor that is currently holding a lock, such asprocessor 210. This frequency transfer allows the thread holding the lock to run relatively faster, reducing the lock hold time. This frequency transfer also saves wasted power by reducing the power consumption of the processors waiting for the lock. -
Synchronization control 226 is software that controls access bythread 218 andthread 220 to lock 224.Thread 218 andthread 220 must acquirelock 224 before either ofthread 218 andthread 220 can access contestedresource 222. In a multiprocessor system, such asmultiprocessor system 200,synchronization control 226 may be, for example, an operating system, or alternatively a hypervisor. -
Synchronization control 226 includes frequency trackingdata structure 228. Frequency trackingdata structure 228 is a data structure that tracks the current operating frequencies, such asfrequency 214 andfrequency 216, for the processors ofmultiprocessor system 200, such asprocessor 210 andprocessor 212. - In one illustrative embodiment,
frequency 214 andfrequency 216 can be obtained by reading the hardware state of the system. However, even wherefrequency 214 andfrequency 216 are obtained from the hardware state, frequency trackingdata structure 228 is still required for proper behavior of the system when aprocessor holding lock 224, such asprocessor 210, later releaseslock 224. - Referring now to
FIG. 3 , a dataflow for lock acquisition by a first thread within a multiprocessor system is shown according to an illustrative embodiment.Multiprocessor system 300 is a multiprocessor system, such asmultiprocessor system 200 ofFIG. 2 . -
Thread 310 executes onprocessor 312.Processor 312 operates atfrequency 314.Frequency 314 is originally set to F1. Synchronization control 316tracks frequency 314 ofprocessor 312 in frequency trackingdata structure 318. - When
thread 310 seeks to acquirelock 320 for access to a contested resource, such as contestedresource 222 ofFIG. 2 ,synchronization control 316 determines whether another thread is currently holdinglock 320. Here,lock 320 is free; thussynchronization control 316 grants lock 320 tothread 310.Thread 310 is then able to access the contested resource. As long as there are no other threads waiting forlock 320, no further action is taken. Should another thread seek to acquirelock 320, that other thread must wait untilthread 310 releases lock. Whensynchronization control 316 releases lock 320 fromthread 310, lock 320 may be acquired by the other thread. - Referring now to
FIG. 4 , a first dataflow for lock acquisition by a second thread operating at a lower frequency within a multiprocessor system is shown according to an illustrative embodiment.Multiprocessor system 400 is multiprocessor system such asmultiprocessor system 300 ofFIG. 3 . -
Thread 410 executes onprocessor 412.Processor 412 operates atfrequency 414.Frequency 414 is originally set to F1. Synchronization control 416 tracks thefrequency 414 ofprocessor 412 in frequency trackingdata structure 418.Thread 410 holdslock 420 for access to a contested resource, such as contestedresource 222 ofFIG. 2 . -
Thread 422 executes onprocessor 424.Processor 424 operates atfrequency 426.Frequency 426 is originally set to F2. In the illustrative embodiment, F1 is greater than F2. Synchronization control 416tracks frequency 426 ofprocessor 412 in frequency trackingdata structure 418.Thread 422 seeks to acquirelock 420 for access to a contested resource, such as contestedresource 222 ofFIG. 2 . -
Synchronization control 416 then comparesfrequency 414 ofprocessor 412, set at F1, tofrequency 426 ofprocessor 424, set at F2. In the illustrative embodiment, F1 is greater than F2. Therefore,synchronization control 416 does not alterfrequency 414 ofprocessor 412. - Because
lock 420 is held bythread 410,thread 422 “spins” until the lock is available. In an illustrative embodiment,synchronization control 416 may setfrequency 426 ofprocessor 424 to Fwait. Fwait is a very low processor frequency with associated low power. Fwait is used by threads waiting for a spinlock. Fwait may be, for example, the same speed that an idle thread uses to run an idle loop on machines using idle loops. In another illustrative embodiment,processor 424 may continue to “spin” at theoriginal frequency 426 of F2. - When
thread 410 is finished accessing the contested resource, such as contestedresource 222 ofFIG. 2 ,thread 410 releases lock 420.Synchronization 416 then ensures thatfrequency 414 is set to the original frequency F1. - When
thread 410 releases lock 420, the waiting thread with the highest original frequency is given control. In this illustrative embodiment, onlythread 422 is waiting. Therefore,thread 422 acquireslock 420. In an illustrative embodiment,processor 424 is reset tooriginal frequency 426 of F2. - In another illustrative embodiment, the
frequency 426 assigned toprocessor 424 is its original frequency F2 plus the maximum additional speed allowed by the power transferred from any additional threads that are continuing to wait. That is,frequency 426 is set to the frequency: -
- However, in the present illustrative embodiment, because
thread 422 is the only thread waiting forlock 420, the frequency as determined by the above formula effectively resetsfrequency 426 ofprocessor 424 is to F2. - Referring now to
FIG. 5 , a series of frequency tracking data structures are shown for tracking frequencies of a plurality of processors executing threads requesting access to a lock is shown according to one illustrative embodiment. In the illustrative embodiment, the lock holder executes at the highest original frequency of the waiting threads. Other waiting threads spin at other original frequencies of the waiting threads. Each frequency tracking data structure ofseries 500 is a frequency tracking data structure such as frequency trackingdata structure 418 ofFIG. 4 . - Frequency tracking
data structure 510 indicates that a request to acquire a lock is received fromthread 1 512.Thread 1 512 is a thread such as one ofthread 410 orthread 422 ofFIG. 4 . The lock is granted tothread 1 512, and a synchronization control, such assynchronization control 418 ofFIG. 4 , records in frequency trackingdata structure 510 the original frequency F1 for theprocessor executing thread 512. - Frequency tracking
data structure 520 is frequency trackingdata structure 510 at a subsequent time.Thread 1 512 still holds the lock. Frequency trackingdata structure 520 indicates that a second request to acquire the lock is received fromthread 2 522. Becausethread 1 512 already holds the lock,thread 2 522 must “spin,” waiting forthread 1 512 to release the lock. - A synchronization control, such as
synchronization control 416 ofFIG. 4 , then compares the operating frequency of theprocessor executing thread 1 512, set at F1, to the original frequency of theprocessor executing thread 2 522, set at F2. In this illustrative embodiment, F1 is greater than F2. The synchronization control therefore allows theprocessor executing thread 1 512 to continue at the higher operating frequency F1, whilethread 2 522 spins on its processor at the lower operating frequency F2. - Frequency tracking
data structure 530 is frequency trackingdata structure 520 at a subsequent time.Thread 1 512 still holds the lock. Frequency trackingdata structure 530 indicates that a third request to acquire the lock is received fromthread 3 532. Becausethread 1 512 already holds the lock,thread 3 532 must “spin,” waiting forthread 1 512 to release the lock. - A synchronization control, such as
synchronization control 416 ofFIG. 4 , then compares the operating frequency of theprocessor executing thread 1 512, set at F1, to the original frequency of theprocessor executing thread 3 532, set at F3. In this illustrative embodiment, F3 is greater than F1. The synchronization control sets the operating frequency of theprocessor executing thread 1 512 to F3. Additionally, synchronization sets the operating frequency of theprocessor executing thread 3 532 to F1, the operating frequency of the frequency of theprocessor executing thread 1 512 prior tothread 3 532 requesting the lock. - Frequency tracking
data structure 540 is frequency trackingdata structure 530 at a subsequent time.Thread 1 512 has released the lock. A synchronization control, such assynchronization control 416 ofFIG. 4 , resets the operating frequency for theprocessor executing thread 1 512 to its original frequency, F1. - With multiple waiting threads, when
thread 1 512 releases the lock, the waiting thread with the highest original frequency is given control. The speed assigned to it under the second embodiment is its previous speed. - In this illustrative embodiment, F3 is greater than F2. Therefore,
thread 3 532 acquires the lock. - A synchronization control, such as
synchronization control 416 ofFIG. 4 , then resetsthread 3 532 to its original frequency, F3. The synchronization control also resetsthreads 2 522 to its original frequency, F2. - Frequency tracking
data structure 550 is frequency trackingdata structure 540 at a subsequent time.Thread 3 532 has released the lock. A synchronization control, such assynchronization control 416 ofFIG. 4 , ensures that the operating frequency for theprocessor executing thread 3 532 is reset to its original frequency, F3. - Now, only
thread 2 522 is waiting. Therefore,thread 2 522 acquires the lock. A synchronization control, such assynchronization control 416 ofFIG. 4 , ensures that the operating frequency for theprocessor executing thread 2 522 is reset to its original frequency, F2. - Referring now to
FIG. 6 , a series of frequency tracking data structures are shown for tracking frequencies of a plurality of processors executing threads requesting access to a lock is shown according to one illustrative embodiment. In the illustrative embodiment, the lock holder executes at the highest original frequency of the waiting threads. Other waiting threads spin at a very low processor frequency with associated low power. Each frequency tracking data structure ofseries 600 is a frequency tracking data structure such as frequency trackingdata structure 418 ofFIG. 4 . - Frequency tracking
data structure 610 indicates that a request to acquire a lock is received fromthread 1 612.Thread 1 612 is a thread such as one ofthread 410 orthread 422 ofFIG. 4 . The lock is granted tothread 1 612, and a synchronization control, such assynchronization control 418 ofFIG. 4 , records in frequency trackingdata structure 610 the original frequency F1 for theprocessor executing thread 612. - Frequency tracking
data structure 620 is frequency trackingdata structure 610 at a subsequent time.Thread 1 612 still holds the lock. Frequency trackingdata structure 620 indicates that a second request to acquire the lock is received fromthread 2 622. Becausethread 1 612 already holds the lock,thread 2 622 must “spin,” waiting forthread 1 612 to release the lock. - A synchronization control, such as
synchronization control 416 ofFIG. 4 , then compares the operating frequency of theprocessor executing thread 1 612, set at F1, to the original frequency of theprocessor executing thread 2 622, set at F2. In this illustrative embodiment, F2 is greater than F1. The synchronization control sets the operating frequency of theprocessor executing thread 1 612 to F2. Additionally, synchronization control sets the operating frequency of theprocessor executing thread 2 622 to Fwait. Fwait is a very low processor frequency with associated low power. Fwait is used by threads waiting for a spinlock. Fwait may be, for example, the same speed that an idle thread uses to run an idle loop on machines using idle loops. - Frequency tracking
data structure 630 is frequency trackingdata structure 620 at a subsequent time.Thread 1 612 still holds the lock. Frequency trackingdata structure 630 indicates that a third request to acquire the lock is received fromthread 3 632. Becausethread 1 612 already holds the lock,thread 3 632 must “spin,” waiting forthread 1 612 to release the lock. - A synchronization control, such as
synchronization control 416 ofFIG. 4 , then compares the operating frequency of theprocessor executing thread 1 612, set at F2, to the original frequency of theprocessor executing thread 3 632, set at F3. In this illustrative embodiment, F2 is less than F3, and also less than F1. The synchronization control sets the operating frequency of theprocessor executing thread 1 612 to F3. Additionally, synchronization control sets the operating frequency of theprocessor executing thread 3 632 to Fwait. - Frequency tracking
data structure 640 is frequency trackingdata structure 630 at a subsequent time.Thread 1 612 has released the lock. A synchronization control, such assynchronization control 416 ofFIG. 4 , resets the operating frequency for theprocessor executing thread 1 612 to its original frequency, F1. - With multiple waiting threads, when
thread 1 612 releases the lock, the waiting thread with the highest original frequency is given control. The speed assigned to it under the second embodiment is its previous speed. - In this illustrative embodiment, F3 is greater than F2. Therefore,
thread 3 632 acquires the lock. - A synchronization control, such as
synchronization control 416 ofFIG. 4 , then resetsthread 3 632 to its original frequency, F3. The synchronization control allows theprocessor executing thread 2 622 to continue to “spin” at the low power frequency Fwait. - Frequency tracking
data structure 650 is frequency trackingdata structure 640 at a subsequent time.Thread 3 632 has released the lock. A synchronization control, such assynchronization control 416 ofFIG. 4 , ensures that the operating frequency for theprocessor executing thread 3 632 is reset to its original frequency, F2. - Now, only
thread 2 622 is waiting. Therefore,thread 2 622 acquires the lock. A synchronization control, such assynchronization control 416 ofFIG. 4 , ensures that the operating frequency for theprocessor executing thread 2 622 is reset to its original frequency, F2. - Referring now to
FIG. 7 , a series of frequency tracking data structures are shown for tracking frequencies of a plurality of processors executing threads requesting access to a lock is shown according to one illustrative embodiment. In the illustrative embodiment, the lock holder executes at the highest original frequency of the waiting threads. Other waiting threads spin at a very low processor frequency with associated low power. Each frequency tracking data structure ofseries 700 is a frequency tracking data structure such as frequency trackingdata structure 418 ofFIG. 4 . - Frequency tracking
data structure 710 indicates that a request to acquire a lock is received fromthread 1 712.Thread 1 712 is a thread such as one ofthread 410 or thread 524222 ofFIG. 4 . The lock is granted tothread 1 712, and a synchronization control, such assynchronization control 418 ofFIG. 4 , records in frequency trackingdata structure 710 the original frequency F1 for theprocessor executing thread 1 712. - Frequency tracking
data structure 720 is frequency trackingdata structure 710 at a subsequent time.Thread 1 712 still holds the lock. Frequency trackingdata structure 720 indicates that a second request to acquire the lock is received fromthread 2 722. Becausethread 1 712 already holds the lock,thread 2 722 must “spin,” waiting forthread 1 712 to release the lock. - A synchronization control, such as
synchronization control 416 ofFIG. 4 , then compares the operating frequency of theprocessor executing thread 1 712, set at F1, to the original frequency of theprocessor executing thread 2 722, set at F2. In this illustrative embodiment, F1 is greater than F2. - Successive speed boost and power transfers can be realized as the number of waiting threads increases. When a new waiting thread arrives, if the new thread is operating at a frequency that is greater than the low power frequency, the waiting thread goes to the wait speed. Thread 1712 then inherits a frequency boost of the newly arriving thread.
- The synchronization control sets the operating frequency of the
processor executing thread 2 722, set at Fwait. The synchronization control sets the operating frequency of theprocessor executing thread 1 712 to its original frequency F1 plus the maximum additional speed allowed by the power transferred from any additional threads that are continuing to wait. That is, the operating frequency forthread 1 712 is set to the frequency: -
- In the present illustrative embodiment, the operating frequency of the
processor executing thread 1 712 is set to: -
F=F 1+(F 2 −F wait) - Frequency tracking
data structure 730 is frequency trackingdata structure 720 at a subsequent time.Thread 1 712 still holds the lock. Frequency trackingdata structure 730 indicates that a third request to acquire the lock is received fromthread 3 732. Becausethread 1 712 already holds the lock,thread 3 732 must “spin,” waiting forthread 1 712 to release the lock. - A synchronization control, such as
synchronization control 416 ofFIG. 4 , then compares the operating frequency of theprocessor executing thread 1 712, set at F1+(F2−Fwait), to the original frequency of theprocessor executing thread 3 732, set at F3. In this illustration F1+(F2−Fwait) is greater than F3. - The synchronization control sets the operating frequency of the
processor executing thread 3 732, set at Fwait. The synchronization control sets the operating frequency of theprocessor executing thread 1 712 to its original frequency F1 plus the maximum additional speed allowed by the power transferred from any additional threads that are continuing to wait. That is, the operating frequency forthread 1 712 is set to: -
- In the present illustrative embodiment, the operating frequency of the
processor executing thread 1 712 is set to: -
F=F 1+(F 2 −F wait)+(F 3 −F wait) - Frequency tracking
data structure 740 is frequency trackingdata structure 730 at a subsequent time.Thread 1 712 has released the lock. A synchronization control, such assynchronization control 416 ofFIG. 4 , resets the operating frequency for theprocessor executing thread 1 712 to its original frequency, F1. - With multiple waiting threads, when
thread 1 712 releases the lock, the waiting thread with the highest original frequency is given control. The speed assigned to it under the second embodiment is its previous speed plus the maximum additional speed allowed by the power transferred from the threads that are continuing to wait. - In this illustrative embodiment, F2 is greater than F3. Therefore,
thread 2 722 acquires the lock. - The synchronization control sets the operating frequency of the
processor executing thread 3 732, set at Fwait. The synchronization control sets the operating frequency of theprocessor executing thread 2 722 to its original frequency F2 plus the maximum additional speed allowed by the power transferred from any additional threads that are continuing to wait. That is, the operating frequency forthread 2 722 is set to the frequency: -
- In the present illustrative embodiment, the operating frequency of the
processor executing thread 2 722 is set to: -
F=F 2+(F 3 −F wait) - Frequency tracking
data structure 750 is frequency trackingdata structure 740 at a subsequent time.Thread 2 722 has released the lock. A synchronization control, such assynchronization control 416 ofFIG. 4 , ensures that the operating frequency for theprocessor executing thread 2 722 is reset to its original frequency, F2. Now, onlythread 3 732 is waiting. Therefore,thread 3 732 acquires the lock. A synchronization control, such assynchronization control 416 ofFIG. 4 , ensures that the operating frequency for theprocessor executing thread 3 732 is reset to its original frequency, F3. - Referring now to
FIG. 8 , a flowchart for dynamically reallocating power between processors of a multiprocessor system when a lock is requested is shown according to an illustrative embodiment.Process 800 is a software process, executing on a software component, such assynchronization control 226 ofFIG. 2 . -
Process 800 begins by receiving a request for a lock (step 810). The lock may be, for example, lock 224 ofFIG. 2 . The request for a lock is received from a thread, such as one ofthread 218 andthread 220 ofFIG. 2 that seeks to access a contested resource, such as contestedresource 222 ofFIG. 2 . - Responsive to receiving the request for the lock,
process 800 determines whether the lock is held by another thread (step 815). If another thread is currently utilizing the contested resource, then that thread will hold the lock. However, if no other thread is currently utilizing the contested resource, then the lock is free, and can be granted to the requesting thread. - Responsive to determining that the lock is not held by another thread (“no” at step 815),
process 800 grants the lock to the requesting thread (step 820). The requesting thread can then access the contested resource. Process 800 records the original frequency of the processor executing the requesting thread in a frequency tracking data structure (step 825), and the process terminates thereafter. The frequency tracking data structure may be, for example, frequency trackingdata structure 228 ofFIG. 2 . - Returning now to step 815, responsive to determining that the lock is held by another thread (“yes” at step 815),
process 800 determines whether the original frequency for the thread requesting the lock is greater than the operating frequency for the thread holding the lock (step 830). Responsive to determining that the original frequency of the processor for the thread requesting the lock is not greater than the operating frequency for the thread holding the lock (“no” at step 830),process 800 records the original frequency of the processor executing the requesting thread in a frequency tracking data structure (step 835).Process 800 sets the operating frequency of the processor for the thread requesting the lock to Fwait (step 840), and begins to “spin” the thread requesting the lock (step 845). After a certain number of cycles,process 800 iterates back to step 815 to determine whether the lock has become available. - Returning now to step 830, responsive to determining that the original frequency for the thread requesting the lock is greater than the operating frequency of the processor for the thread holding the lock (“yes” at step 830),
process 800 records the original frequency of the processor executing the requesting thread in a frequency tracking data structure (step 850).Process 800 sets the operating frequency of the processor for the thread requesting the lock to Fwait (step 855), and begins to “spin” the thread requesting the lock (step 860).Process 800 alters the operating frequency for the thread holding the lock based on the frequency of the processor for thread requesting the lock (step 865), with the process terminating thereafter. - In one illustrative embodiment,
process 800 alters the operating frequency for the thread holding the lock by simply substituting the operating frequency of the thread holding the lock for the operating frequency of the processor for thread requesting the lock. In another illustrative embodiment,process 800 alters the operating frequency for thread holding the lock by augmenting the operating frequency of the thread holding the lock by an amount equal to the difference between the operating frequency of the processor for thread requesting the lock and the frequency of the low power state of the processor for the requesting thread that is now “spinning.” - Referring now to
FIG. 9 , a flowchart for dynamically reallocating power between processors of a multiprocessor system when a lock is released is shown according to an illustrative embodiment.Process 900 is a software process, executing on a software component, such as synchronization control 326 ofFIG. 3 . -
Process 900 begins when a thread releases a lock (step 910). The lock may be, for example, lock 320 ofFIG. 3 . The thread is a thread such asthread 310 ofFIG. 3 that has controlled a contested resource, such as contestedresource 222 ofFIG. 2 . The thread may be operating at an altered frequency. -
Process 900 then resets the thread's frequency to its original frequency (step 920). The original frequency can be found in a frequency tracking data structure. The frequency tracking data structure may be, for example, frequency trackingdata structure 318 ofFIG. 3 . -
Process 900 then determines if there are any other threads “spinning” for the lock (step 930). If no other threads are “spinning” for the lock (“no” at step 930), the process terminates. Ifprocess 900 determines that additional threads are “spinning” for the lock (“yes” at step 930), then process 900 identifies the “spinning” thread having the highest original frequency (step 940). -
Process 900 then grants the lock to the spinning thread having the highest original frequency (step 950). That thread can then access the contested resource.Process 900 sets the operating frequency of the processor executing the thread holding the lock equal to the thread's original frequency (step 960). The original frequency can be found in a frequency tracking data structure. The frequency tracking data structure may be, for example, frequency trackingdata structure 318 ofFIG. 3 . - In one illustrative embodiment,
process 900 can further alter the operating frequency of the processor for thread holding the lock by augmenting the operating frequency of the thread holding the lock by an amount equal to the difference between the operating frequency of the processor for any remaining spinning threads and the frequency of a low power state of the processor for the requesting thread that is now “spinning.” (step 970). Responsive to resetting the operating frequency for the thread now holding the lock,process 900 terminates. - Thus, the illustrative embodiments herein provide a computer implemented method for allocating power between processors in a multiprocessor system. A request to acquire a lock is received from a first thread executing on a first processor. Responsive to receiving the request to acquire a lock, determination is made as to whether a second thread has acquired the lock. Responsive to determining that the second thread has acquired the lock, an original frequency of the first thread executing on the first processor and identifying an operating frequency of the second thread executing on the second processor is identified. The operating frequency of the second thread executing on the second processor is then altered based on the original frequency of the first thread executing on the first processor.
- The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
- The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
- The corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims below are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The description of the present invention has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the invention. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.
- The invention can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment containing both hardware and software elements. In a preferred embodiment, the invention is implemented in software, which includes but is not limited to firmware, resident software, microcode, etc.
- Furthermore, the invention can take the form of a computer program product accessible from a computer-usable or computer-readable medium providing program code for use by or in connection with a computer or any instruction execution system. For the purposes of this description, a computer-usable or computer readable medium can be any tangible apparatus that can contain, store, communicate, propagate, or transport the program for use by, or in connection with, the instruction execution system, apparatus, or device.
- The medium can be an electronic, magnetic, optical, electromagnetic, infrared, semiconductor system (apparatus or device), or a propagation medium. Examples of a computer-readable medium include a semiconductor or solid state memory, magnetic tape, a removable computer diskette, a random access memory (RAM), a read-only memory (ROM), a rigid magnetic disk and an optical disk. Current examples of optical disks include compact disk-read only memory (CD-ROM), compact disk-read/write (CD-R/W), and DVD.
- A data processing system suitable for storing and/or executing program code will include at least one processor coupled directly or indirectly to memory elements through a system bus. The memory elements can include local memory employed during actual execution of the program code, bulk storage, and cache memories which provide temporary storage of at least some program code in order to reduce the number of times code must be retrieved from bulk storage during execution.
- Input/output, or I/O devices (including but not limited to keyboards, displays, pointing devices, etc.), can be coupled to the system either directly or through intervening I/O controllers.
- Network adapters may also be coupled to the system to enable the data processing system to become coupled to other data processing systems or remote printers or storage devices through intervening private or public networks. Modems, cable modem, and Ethernet cards are just a few of the currently available types of network adapters.
- The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiment was chosen and described in order to best explain the principles of the invention, the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.
Claims (23)
1. A computer implemented method for allocating power between processors in a multiprocessor system, the method comprising:
receiving a request to acquire a lock from a first thread executing on a first processor;
responsive to receiving the request to acquire a lock, determining whether a second thread has acquired the lock;
responsive to determining that the second thread has acquired the lock, identifying an original frequency of the first thread executing on the first processor and identifying an operating frequency of the second thread executing on the second processor; and
altering the operating frequency of the second thread executing on the second processor based on the original frequency of the first thread executing on the first processor.
2. The computer implemented method of claim 1 , further comprising:
setting an operating frequency of the first thread executing on the first processor equal to a low processor frequency associated with a low power setting, wherein the first thread is waiting to acquire the lock.
3. The computer implemented method of claim 1 , further comprising:
determining whether the original frequency of the first thread executing on the first processor is greater than the operating frequency of the second thread executing on the second processor;
responsive to determining that the original frequency of the first thread is greater than the operating frequency of the second thread, altering the operating frequency of the second thread executing on the second processor based on the original frequency of the first thread executing on the first processor, wherein altering the operating frequency of the second thread further comprises:
setting the operating frequency of the second thread executing on the second processor equal to the original frequency of the first thread executing on the first processor.
4. The computer implemented method of claim 2 , wherein the step of altering the operating frequency of the second thread executing on the second processor based on the original frequency of the first thread executing on the first processor further comprises:
augmenting the operating frequency of the second thread executing on the second processor by an amount equal to the difference between the original frequency of the first thread and the operating frequency of the first thread.
5. The computer implemented method of claim 4 , further comprising:
receiving a second request to acquire the lock from a third thread executing on a third processor;
setting an operating frequency of the third thread executing on the third processor to the low processor frequency associated with the low power setting;
determining whether an original frequency of the third thread executing on the third processor is greater than the operating frequency of the second thread executing on the second processor;
responsive to determining that the original frequency of the third thread is greater than the operating frequency of the second thread, augmenting the operating frequency of the second thread executing on the second processor by an amount equal to the difference between an original frequency of the third thread and the operating frequency of the first thread.
6. The computer implemented method of claim 5 , wherein the operating frequency of the second thread executing on the second processor is determined by the formula:
wherein:
F is the operating frequency of the second thread executing on the second processor;
F1 is the original frequency of the second thread executing on the second processor;
FN is the original frequency of other threads waiting to acquire the lock, wherein the other threads comprise the first thread and the third thread; and
Fwait is the low processor frequency associated with the low power setting.
7. The computer implemented method of claim 2 , further comprising:
releasing the lock by the second thread executing on the second processor;
setting the operating frequency of the second thread executing on the second processor equal to an original frequency of the second thread executing on the second processor; and
setting the operating frequency of the first thread executing on the first processor equal to the original frequency of the first thread executing on the first processor.
8. The computer implemented method of claim 5 further comprising:
releasing the lock by the second thread executing on the second processor;
determining whether the original frequency of the first thread executing on the first processor is greater than the original frequency of the third thread executing on the third processor;
responsive to determining that the original frequency of the first thread is greater than the original frequency of the third thread, granting the lock to the first thread; and
altering the operating frequency of the first thread executing on the first processor based on the original frequency of the third thread executing on the third processor.
9. A computer storage type medium having computer usable instructions encoded thereon for allocating power between processors in a multiprocessor system, the computer usable instructions comprising:
instructions for receiving a request to acquire a lock from a first thread executing on a first processor;
instructions, responsive to receiving the request to acquire a lock, for determining whether a second thread has acquired the lock;
instructions, responsive to determining that the second thread has acquired the lock, for identifying an original frequency of the first thread executing on the first processor and identifying an operating frequency of the second thread executing on the second processor; and
instructions for altering the operating frequency of the second thread executing on the second processor based on the original frequency of the first thread executing on the first processor.
10. The computer storage type medium of claim 9 , further comprising:
instructions for setting an operating frequency of the first thread executing on the first processor equal to a low processor frequency associated with a low power setting, wherein the first thread is waiting to acquire the lock.
11. The computer storage type medium of claim 9 , the computer usable instructions further comprising:
instructions for determining whether the original frequency of the first thread executing on the first processor is greater than the operating frequency of the second thread executing on the second processor;
instructions, responsive to determining that the original frequency of the first thread is greater than the operating frequency of the second thread, for altering the operating frequency of the second thread executing on the second processor based on the original frequency of the first thread executing on the first processor, wherein altering the operating frequency of the second thread further comprises:
instructions for setting the operating frequency of the second thread executing on the second processor equal to the original frequency of the first thread executing on the first processor.
12. The computer storage type medium of claim 10 , wherein the instructions for altering the operating frequency of the second thread executing on the second processor based on the original frequency of the first thread executing on the first processor further comprises:
instructions for augmenting the operating frequency of the second thread executing on the second processor by an amount equal to the difference between the original frequency of the first thread and the operating frequency of the first thread.
13. The computer storage type medium of claim 12 , the computer usable instructions further comprising:
instructions for receiving a second request to acquire the lock from a third thread executing on a third processor;
instructions for setting an operating frequency of the third thread executing on the third processor to the low processor frequency associated with the low power setting;
instructions for determining whether an original frequency of the third thread executing on the third processor is greater than the operating frequency of the second thread executing on the second processor;
instructions, responsive to determining that the original frequency of the third thread is greater than the operating frequency of the second thread, for augmenting the operating frequency of the second thread executing on the second processor by an amount equal to the difference between an original frequency of the third thread and the operating frequency of the first thread.
14. The computer storage type medium of claim 13 , wherein the operating frequency of the second thread executing on the second processor is determined by the formula:
wherein:
F is the operating frequency of the second thread executing on the second processor;
F1 is the original frequency of the second thread executing on the second processor;
FN is the original frequency of other threads waiting to acquire the lock, wherein the other threads comprise the first thread and the third thread; and
Fwait is the low processor frequency associated with the low power setting.
15. The computer storage type medium of claim 9 , the computer usable instructions further comprising:
instructions for releasing the lock by the second thread executing on the second processor;
instructions for setting the operating frequency of the second thread executing on the second processor equal to an original frequency of the second thread executing on the second processor; and
instructions for setting the operating frequency of the first thread executing on the first processor equal to the original frequency of the first thread executing on the first processor.
16. The computer storage type medium of claim 13 , the computer usable instructions further comprising:
instructions for releasing the lock by the second thread executing on the second processor;
instructions for determining whether the original frequency of the first thread executing on the first processor is greater than the original frequency of the third thread executing on the third processor;
instructions, responsive to determining that the original frequency of the first thread is greater than the original frequency of the third thread, for granting the lock to the first thread; and
instructions for altering the operating frequency of the first thread executing on the first processor based on the original frequency of the third thread executing on the third processor.
17. A data processing system comprising:
a storage having computer usable instructions encoded thereon for allocating power between processors in a multiprocessor system;
a bus connecting the storage to a processor; and
a processor, wherein the processor executes the computer usable instructions: to receive a request to acquire a lock from a first thread executing on a first processor;
responsive to receiving the request to acquire a lock, to determine whether a second thread has acquired the lock; responsive to determining that the second thread has acquired the lock, to identify an original frequency of the first thread executing on the first processor and identifying an operating frequency of the second thread executing on the second processor; and to alter the operating frequency of the second thread executing on the second processor based on the original frequency of the first thread executing on the first processor.
18. The data processing system of claim 17 , wherein the processor further executes the computer usable instructions:
to set an operating frequency of the first thread executing on the first processor equal to a low processor frequency associated with a low power setting, wherein the first thread is waiting to acquire the lock.
19. The data processing system of claim 17 , wherein the processor further executes the computer usable instructions:
to determine whether the original frequency of the first thread executing on the first processor is greater than the operating frequency of the second thread executing on the second processor; responsive to determining that the original frequency of the first thread is greater than the operating frequency of the second thread, to alter the operating frequency of the second thread executing on the second processor based on the original frequency of the first thread executing on the first processor, wherein the processor further executes the computer usable instructions to alter the operating frequency of the second thread further comprises the processor further executes the computer usable instructions to set the operating frequency of the second thread executing on the second processor equal to the original frequency of the first thread executing on the first processor.
20. The data processing system of claim 18 , wherein the processor further executes the computer usable instructions to alter the operating frequency of the second thread executing on the second processor based on the original frequency of the first thread executing on the first processor further comprises the processor further executes the computer usable instructions to augment the operating frequency of the second thread executing on the second processor by an amount equal to the difference between the original frequency of the first thread and the operating frequency of the first thread.
21. The data processing system of claim 20 , wherein the processor further executes the computer usable instructions:
to receive a second request to acquire the lock from a third thread executing on a third processor; to set an operating frequency of the third thread executing on the third processor to the low processor frequency associated with the low power setting; to determine whether an original frequency of the third thread executing on the third processor is greater than the operating frequency of the second thread executing on the second processor; and responsive to determining that the original frequency of the third thread is greater than the operating frequency of the second thread, to augment the operating frequency of the second thread executing on the second processor by an amount equal to the difference between an original frequency of the third thread and the operating frequency of the first thread.
22. The data processing system of claim 18 , wherein the processor further executes the computer usable instructions:
to release the lock by the second thread executing on the second processor; to set the operating frequency of the second thread executing on the second processor equal to an original frequency of the second thread executing on the second processor; and to set the operating frequency of the first thread executing on the first processor equal to the original frequency of the first thread executing on the first processor.
23. The data processing system of claim 21 , wherein the processor further executes the computer usable instructions:
to the lock by the second thread executing on the second processor; to determine whether the original frequency of the first thread executing on the first processor is greater than the original frequency of the third thread executing on the third processor; responsive to determining that the original frequency of the first thread is greater than the original frequency of the third thread, to grant the lock to the first thread; and to alter the operating frequency of the first thread executing on the first processor based on the original frequency of the third thread executing on the third processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US12/959,804 US20120144218A1 (en) | 2010-12-03 | 2010-12-03 | Transferring Power and Speed from a Lock Requester to a Lock Holder on a System with Multiple Processors |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US12/959,804 US20120144218A1 (en) | 2010-12-03 | 2010-12-03 | Transferring Power and Speed from a Lock Requester to a Lock Holder on a System with Multiple Processors |
Publications (1)
Publication Number | Publication Date |
---|---|
US20120144218A1 true US20120144218A1 (en) | 2012-06-07 |
Family
ID=46163393
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US12/959,804 Abandoned US20120144218A1 (en) | 2010-12-03 | 2010-12-03 | Transferring Power and Speed from a Lock Requester to a Lock Holder on a System with Multiple Processors |
Country Status (1)
Country | Link |
---|---|
US (1) | US20120144218A1 (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120297394A1 (en) * | 2011-05-19 | 2012-11-22 | International Business Machines Corporation | Lock control in multiple processor systems |
US20150113304A1 (en) * | 2013-10-22 | 2015-04-23 | Wisconsin Alumni Research Foundation | Energy-efficient multicore processor architecture for parallel processing |
WO2015191358A1 (en) * | 2014-06-10 | 2015-12-17 | Qualcomm Incorporated | Systems and methods of managing processor device power consumption |
US9442559B2 (en) | 2013-03-14 | 2016-09-13 | Intel Corporation | Exploiting process variation in a multicore processor |
US10073718B2 (en) | 2016-01-15 | 2018-09-11 | Intel Corporation | Systems, methods and devices for determining work placement on processor cores |
US20180314289A1 (en) * | 2017-04-28 | 2018-11-01 | Intel Corporation | Modifying an operating frequency in a processor |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7249270B2 (en) * | 2004-05-26 | 2007-07-24 | Arm Limited | Method and apparatus for placing at least one processor into a power saving mode when another processor has access to a shared resource and exiting the power saving mode upon notification that the shared resource is no longer required by the other processor |
US20080022141A1 (en) * | 2003-06-27 | 2008-01-24 | Per Hammarlund | Queued locks using monitor-memory wait |
US20080104430A1 (en) * | 2006-10-31 | 2008-05-01 | Malone Christopher G | Server configured for managing power and performance |
US7389435B2 (en) * | 2002-08-12 | 2008-06-17 | Hewlett-Packard Development Company, L.P. | System and method for the frequency management of computer systems to allow capacity on demand |
US7650518B2 (en) * | 2006-06-28 | 2010-01-19 | Intel Corporation | Method, apparatus, and system for increasing single core performance in a multi-core microprocessor |
US20100293401A1 (en) * | 2009-05-13 | 2010-11-18 | De Cesare Josh P | Power Managed Lock Optimization |
US7930574B2 (en) * | 2007-12-31 | 2011-04-19 | Intel Corporation | Thread migration to improve power efficiency in a parallel processing environment |
US20110138388A1 (en) * | 2009-12-03 | 2011-06-09 | Wells Ryan D | Methods and apparatuses to improve turbo performance for events handling |
US8032772B2 (en) * | 2007-11-15 | 2011-10-04 | Intel Corporation | Method, apparatus, and system for optimizing frequency and performance in a multi-die microprocessor |
-
2010
- 2010-12-03 US US12/959,804 patent/US20120144218A1/en not_active Abandoned
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7389435B2 (en) * | 2002-08-12 | 2008-06-17 | Hewlett-Packard Development Company, L.P. | System and method for the frequency management of computer systems to allow capacity on demand |
US20080022141A1 (en) * | 2003-06-27 | 2008-01-24 | Per Hammarlund | Queued locks using monitor-memory wait |
US7249270B2 (en) * | 2004-05-26 | 2007-07-24 | Arm Limited | Method and apparatus for placing at least one processor into a power saving mode when another processor has access to a shared resource and exiting the power saving mode upon notification that the shared resource is no longer required by the other processor |
US7650518B2 (en) * | 2006-06-28 | 2010-01-19 | Intel Corporation | Method, apparatus, and system for increasing single core performance in a multi-core microprocessor |
US20080104430A1 (en) * | 2006-10-31 | 2008-05-01 | Malone Christopher G | Server configured for managing power and performance |
US8032772B2 (en) * | 2007-11-15 | 2011-10-04 | Intel Corporation | Method, apparatus, and system for optimizing frequency and performance in a multi-die microprocessor |
US7930574B2 (en) * | 2007-12-31 | 2011-04-19 | Intel Corporation | Thread migration to improve power efficiency in a parallel processing environment |
US20100293401A1 (en) * | 2009-05-13 | 2010-11-18 | De Cesare Josh P | Power Managed Lock Optimization |
US20110138388A1 (en) * | 2009-12-03 | 2011-06-09 | Wells Ryan D | Methods and apparatuses to improve turbo performance for events handling |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120297394A1 (en) * | 2011-05-19 | 2012-11-22 | International Business Machines Corporation | Lock control in multiple processor systems |
US20130305253A1 (en) * | 2011-05-19 | 2013-11-14 | International Business Machines Corporation | Lock control in multiple processor systems |
US8850441B2 (en) * | 2011-05-19 | 2014-09-30 | International Business Machines Corporation | Lock control in multiple processor systems |
US8863136B2 (en) * | 2011-05-19 | 2014-10-14 | International Business Machines Corporation | Lock control in multiple processor systems |
US9442559B2 (en) | 2013-03-14 | 2016-09-13 | Intel Corporation | Exploiting process variation in a multicore processor |
US20150113304A1 (en) * | 2013-10-22 | 2015-04-23 | Wisconsin Alumni Research Foundation | Energy-efficient multicore processor architecture for parallel processing |
US9519330B2 (en) * | 2013-10-22 | 2016-12-13 | Wisconsin Alumni Research Foundation | Energy-efficient multicore processor architecture for parallel processing |
WO2015191358A1 (en) * | 2014-06-10 | 2015-12-17 | Qualcomm Incorporated | Systems and methods of managing processor device power consumption |
CN106462219A (en) * | 2014-06-10 | 2017-02-22 | 高通股份有限公司 | Systems and methods of managing processor device power consumption |
US10073718B2 (en) | 2016-01-15 | 2018-09-11 | Intel Corporation | Systems, methods and devices for determining work placement on processor cores |
US10922143B2 (en) | 2016-01-15 | 2021-02-16 | Intel Corporation | Systems, methods and devices for determining work placement on processor cores |
US11409577B2 (en) | 2016-01-15 | 2022-08-09 | Intel Corporation | Systems, methods and devices for determining work placement on processor cores |
US11853809B2 (en) | 2016-01-15 | 2023-12-26 | Intel Corporation | Systems, methods and devices for determining work placement on processor cores |
US20180314289A1 (en) * | 2017-04-28 | 2018-11-01 | Intel Corporation | Modifying an operating frequency in a processor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8245236B2 (en) | Lock based moving of threads in a shared processor partitioning environment | |
US8799908B2 (en) | Hardware-enabled lock mediation for controlling access to a contested resource | |
US9015501B2 (en) | Structure for asymmetrical performance multi-processors | |
AU2014311463B2 (en) | Virtual machine monitor configured to support latency sensitive virtual machines | |
US10223162B2 (en) | Mechanism for resource utilization metering in a computer system | |
US9721660B2 (en) | Configurable volatile memory without a dedicated power source for detecting a data save trigger condition | |
US8806228B2 (en) | Systems and methods for asymmetrical performance multi-processors | |
US8302102B2 (en) | System utilization through dedicated uncapped partitions | |
US8843673B2 (en) | Offloading input/output (I/O) completion operations | |
US8484495B2 (en) | Power management in a multi-processor computer system | |
CN106598184B (en) | Performing cross-domain thermal control in a processor | |
US8656405B2 (en) | Pulling heavy tasks and pushing light tasks across multiple processor units of differing capacity | |
US20140223225A1 (en) | Multi-core re-initialization failure control system | |
US20120144218A1 (en) | Transferring Power and Speed from a Lock Requester to a Lock Holder on a System with Multiple Processors | |
US20060184480A1 (en) | Method, system, and apparatus for dynamic reconfiguration of resources | |
US20120317582A1 (en) | Composite Contention Aware Task Scheduling | |
US10579416B2 (en) | Thread interrupt offload re-prioritization | |
US10599468B2 (en) | Housekeeping virtual processor overcommit for real time virtualization | |
US10459771B2 (en) | Lightweight thread synchronization using shared memory state | |
JP2016530625A (en) | Method, system, and program for efficient task scheduling using a locking mechanism | |
US20210081234A1 (en) | System and Method for Handling High Priority Management Interrupts | |
US7904564B2 (en) | Method and apparatus for migrating access to block storage | |
CN114902186A (en) | Error reporting for non-volatile memory modules | |
US8346975B2 (en) | Serialized access to an I/O adapter through atomic operation | |
US8365274B2 (en) | Method for creating multiple virtualized operating system environments |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: INTERNATIONAL BUSINESS MACHINES CORPORATION, NEW Y Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:BREY, THOMAS M.;RAWSON, FREEMAN L., III;SIGNING DATES FROM 20101201 TO 20101202;REEL/FRAME:025480/0804 |
|
STCB | Information on status: application discontinuation |
Free format text: ABANDONED -- FAILURE TO PAY ISSUE FEE |