Everything You Need to Know About the CPU C- States Power Saving Modes By Gabriel Torres on September 5, 2008

Similar documents
Generations of the computer. processors.

Intel s SL Enhanced Intel486(TM) Microprocessor Family

Notebook Processor Tour

Low Power AMD Athlon 64 and AMD Opteron Processors

Overview. CPU Manufacturers. Current Intel and AMD Offerings

The Motherboard Chapter #5

Configuring Memory on the HP Business Desktop dx5150

Intel Core 2 Duo Mobile Processor, Intel Core 2 Solo Mobile Processor and Intel Core 2 Extreme Mobile Processor on 45-nm Process

W o r k s h e e t : P r o c e s s o r s

CHAPTER 2: HARDWARE BASICS: INSIDE THE BOX

AMD PhenomII. Architecture for Multimedia System Prof. Cristina Silvano. Group Member: Nazanin Vahabi Kosar Tayebani

21152 PCI-to-PCI Bridge

Chapter 4 System Unit Components. Discovering Computers Your Interactive Guide to the Digital World

White Paper Amy Chong Yew Ee Online Sales Account Manager APAC Online Sales Center Intel Corporation. BOM Cost Reduction by Removing S3 State

A Brief Tutorial on Power Management in Computer Systems. David Chalupsky, Emily Qi, & Ilango Ganga Intel Corporation March 13, 2007

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

Intel architecture. Platform Basics. White Paper Todd Langley Systems Engineer/ Architect Intel Corporation. September 2010

Glitch Free Frequency Shifting Simplifies Timing Design in Consumer Applications

RAM. Overview DRAM. What RAM means? DRAM

An Implementation Of Multiprocessor Linux

Personal Systems Reference Intel PC Processors

Host Power Management in VMware vsphere 5

Random Access Memory (RAM) Types of RAM. RAM Random Access Memory Jamie Tees SDRAM. Micro-DIMM SO-DIMM

Unit A451: Computer systems and programming. Section 2: Computing Hardware 1/5: Central Processing Unit

what operations can it perform? how does it perform them? on what kind of data? where are instructions and data stored?

Technical Product Specifications Dell Dimension 2400 Created by: Scott Puckett

Discovering Computers Living in a Digital World

Intel Desktop Board D925XECV2 Specification Update

Power consumption & management: Windows Vista versus Windows XP

How System Settings Impact PCIe SSD Performance

Family 10h AMD Phenom II Processor Product Data Sheet

Home Software Hardware Benchmarks Services Store Support Forums About Us

Side 2 af 7 Intel Core 2.70GHz 4,164 Intel Core 2.80GHz 4,119 Intel Core 2.80GHz 4,114 Intel Core X 2.00GHz 4,0

Chapter 2 Logic Gates and Introduction to Computer Architecture

PassMark - CPU Mark High Mid Range CPUs - Updated 8th of October 2012

Home Software Hardware Benchmarks Services Store Support Forums About Us

White Paper Perceived Performance Tuning a system for what really matters

Computer Systems Structure Input/Output

PassMark - CPU Mark High Mid Range CPUs - Updated 17th of July 2012

Am186ER/Am188ER AMD Continues 16-bit Innovation

Operating Systems. and Windows

Chapter 1 Computer System Overview

Home Software Hardware Benchmarks Services Store Support Forums About Us

Advanced Computer Architecture-CS501. Computer Systems Design and Architecture 2.1, 2.2, 3.2

VMware Horizon FLEX User Guide

PassMark - CPU Mark Laptop & Portable CPU Performance - Updated 17th of April 2015

CPU Benchmarks Over 600,000 CPUs Benchmarked

Designing VM2 Application Boards

PassMark CPU Benchmarks - High Mid Range CPU's

CPU Benchmarks Over 600,000 CPUs Benchmarked

Ready Time Observations

Ports utilisés. Ports utilisés par le XT1000/5000 :

PassMark CPU Benchmarks - High Mid Range CPU's

2 z :52

Intel 64 and IA-32 Architectures Software Developer s Manual

Division of Administration (DOA) Desktop Support

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

PassMark CPU Benchmarks - Laptop & Portable CPU Performance. Home Software Hardware Benchmarks Services Store Support Forums About Us

PassMark - CPU Mark Multiple CPU Systems - Updated 17th of July 2012

Home Software Hardware Benchmarks Services Store Support Forums About Us. CPU Mark Price Performance (Click to select desired chart)

CPU Benchmarks Video Card Benchmarks Hard Drive Benchmarks RAM PC Systems Android. Over 600,000 CPUs Benchmarked

Revision Summary: This is the Initial release of this Application Note.

Home Software Hardware Benchmarks Services Store Support Forums A bout Us

Fastboot Techniques for x86 Architectures. Marcus Bortel Field Application Engineer QNX Software Systems

Intel RAID Controller Troubleshooting Guide

Advanced Micro Devices - AMD

Computer Setup (F10) Utility Guide HP Compaq dx2200 Microtower Business PC

CHAPTER 11: Flip Flops

Electric Landing Gear controllers and sequencer LGC12 / LGC 13C

Dynamic Power Variations in Data Centers and Network Rooms

PassMark - CPU Mark Overclocked CPUs - Updated 18th of February 2014

Chapter 6. Inside the System Unit. What You Will Learn... Computers Are Your Future. What You Will Learn... Describing Hardware Performance

ASF: Standards-based Systems Management. Providing remote access and manageability in OS-absent environments

CPU Benchmarks Over 600,000 CPUs Benchmarked

DDR4 Memory Technology on HP Z Workstations

BIOS and CMOS. Overview. The Function of BIOS. The Bus


CPU Benchmarks Over 600,000 CPUs Benchmarked

CPU Benchmarks Over 600,000 CPUs Benchmarked

Choosing a Computer for Running SLX, P3D, and P5

Home Software Hardware Benchmarks Services Store Support Forums About Us

HyperThreading Support in VMware ESX Server 2.1

User Guide Win7Zilla

EVALUATING POWER MANAGEMENT CAPABILITIES OF LOW-POWER CLOUD PLATFORMS. Jens Smeds

Enery Efficient Dynamic Memory Bank and NV Swap Device Management

Laptopy Fujitsu LIFEBOOK Nowoczesna technologia z Intel Core i7 vpro drugiej generacji. lifebook.pl.ts.fujitsu.com

Industrial Multi-port Serial Cards

MICROPROCESSOR AND MICROCOMPUTER BASICS

INTEL HIGH-PERFORMANCE CONSUMER DESKTOP MICROPROCESSOR TIMELINE

WHQL Certification Approval...2 User Interface K software FIFO 4 Universal PCI Interface...5 Ready for 64-bit System...5

Runtime Power Management

Intel Desktop Board DQ45CB

CPU Benchmarks Over 600,000 CPUs Benchmarked

Enhanced Intel SpeedStep Technology for the Intel Pentium M Processor

The Bus (PCI and PCI-Express)

================================================================== CONTENTS ==================================================================


Home Software Hardware Benchmarks Services Store Support Forums About Us

CPU Benchmarks Over 600,000 CPUs Benchmarked

Dynamic Power Variations in Data Centers and Network Rooms

Transcription:

Everything You Need to Know About the CPU C- States Power Saving Modes By Gabriel Torres on September 5, 2008 Introduction In order to save energy when the CPU is idle, the CPU can be commanded to enter a low-power mode. Each CPU has several power modes and they are collectively called C-states or C-modes. In this tutorial we will explain what these modes are, what they do and the modes supported by each processor. The lower-power mode was first introduced with the 486DX4 processor, so this concept is far from being new. With time, however, more power modes were introduced and enhancements were made to each mode so the CPU could consume less power when it is one of these low-power modes. The basic idea of these modes is to cut the clock signal and power from idle units inside the CPU. The more units you stop (by cutting the clock), reduce the voltage or even completely shut down, more energy you save, but more time is required for the CPU to wake up and be again 100% operational. These modes are known as C-states. They are numbered starting at C0, which is the normal CPU operating mode, i.e., the CPU is 100% turned on. The higher the C number is, deeper is the CPU sleep mode, i.e., more circuits and signals are turned off and more time the CPU will take to go back to C0 mode, i.e., to wake-up. Each mode is also known by a name and several of them have sub-modes with different power saving and thus wake-up time levels. In the table below we summarize all C-state modes currently available. Modes C1 to C3 work by basically cutting clock signals used inside the CPU, while modes C4 to C6 work by reducing the CPU voltage. Enhanced modes can do both at the same time. Mode Name What it does CPUs C0 Operating CPU fully turned on State All CPUs C1 Halt software; bus interface unit and APIC are 486DX4 and above C1E Enhanced Halt kept running at full speed. software and reduces CPU voltage; bus interface unit and APIC are kept running at full speed. C1E s all CPU internal clocks. C2 C2 Grant Clock hardware; bus interface unit and APIC are kept running at full speed. s CPU internal and external clocks via hardware All socket 775 CPUs Turion 64, 65-nm Athlon X2 and Phenom CPUs 486DX4 and above Only 486DX4, Pentium, Pentium MMX, K5, K6, K6-2, K6-III hardwaresecrets.com/printpage/ /611 1/5

C2E Extended Grant hardware and reduces CPU voltage; bus interface unit and APIC are kept running at full speed. C3 s all CPU internal clocks C3 C3 C4 Deep AltVID Deeper Enhanced C4E/C5Deeper C6 Deep Power Down s all CPU internal and external clocks s all CPU internal clocks and reduces CPU voltage Reduces CPU voltage Reduces CPU voltage even more and turns off the memory cache Reduces the CPU internal voltage to any value, including 0 V Now we are going to explain each C-state in details. C1 State Core 2 Duo and above (Intel only) Pentium II, Athlon and above, but not on Core 2 Duo E4000 and E6000 Pentium II and above, but not on Core 2 Duo E4000 and E6000; Turion 64 AMD Turion 64 Pentium M and above, but not on Core 2 Duo E4000 and E6000 series; AMD Turion 64 Core Solo, Core Duo and 45-nm mobile Core 2 Duo only 45-nm mobile Core 2 Duo only All x86 CPUs have an instruction called HLT ( Halt ), where the CPU remains stopped, idle, doing nothing when it is ran. The CPU is put back to life after it receives an interruption, which is a hardware signal that tells the CPU to stop what it is doing at the moment and take care of the hardware device that sent that signal. Since in halt mode the CPU is completely idle, Intel decided that this would be the perfect place to reduce the CPU power consumption, so they added the Halt or Auto Halt mode now known as the C1 state starting on the 486DX4 processor. All CPUs after 486DX4 from both Intel and AMD implement this mode, and also the SL Enhanced version of 486DX2. So after the program runs an HLT instruction, the CPU enters its traditional halt mode but now the internal CPU clock signal is stopped (only two units inside the CPU continue to be fed with the CPU internal clock, the bus interface unit and the Advanced Programmable Interrupt Controller, APIC; this is done to allow the CPU to temporarily exit the Halt state if an important request comes through the CPU external bus). As soon as the CPU receives an interruption signal it goes back to its normal operating state, with the clock signal being restored. Since the clock signal is stopped for almost all CPU internal units, they stop running, making them to consume less power. Interesting enough no special programming is required for the CPU to enter the C1 state, as HLT instruction is present since the first 8086 CPU. Before the 486DX4 the HLT instruction was used basically to stop the CPU and make it wait for an interruption. After this CPU, programmers could use this mode to put the CPU into a lower power consumption state. As mentioned, the CPU can temporarily leave the Halt (C1) state to deal with an important request coming from through the CPU external bus. This temporary leave is called Clock Snoop State, HALT/Grant Snoop State or simply Snoop State and during its duration the CPU clock is restored. After the CPU has handled the request, it goes automatically back to the Halt (C1) state. All Intel CPUs based on socket 775 (e.g., Pentium 4, Core 2 Duo) have an advanced Halt state called hardwaresecrets.com/printpage/ /611 2/5

Enhanced Halt (naming used with Pentium 4 CPUs), Extended Halt (naming used with Core 2 Duo CPUs) or simply C1E, which also reduces the CPU voltage besides stopping the CPU internal clock. If this mode is enabled on the motherboard BIOS, the CPU will enter this mode instead of the traditional Halt (C1) mode when a HLT instruction is issue. Otherwise the CPU will continue to use the standard Halt mode. Core 2 Duo also introduced the Extended Halt/ Grant Snoop state, which allows the CPU to temporarily exit C1E or C2E modes to respond to an important request coming from the CPU external bus, but keeping the CPU lower voltage instead of restoring the CPU full voltage. Pay attention because AMD also uses the name C1E for a completely different thing. On their 65-nm Athlon X2 and Phenom CPUs C1E state works just like the C3 state, shutting down all CPU clocks. The CPU enters C1E state when this option is enabled on BIOS and all CPU cores enter the regular C1 (Halt) state. When this happens, the automatically CPU switches to this C1E state in order to save energy. The difference between AMD s C1E and C3 states is basically how the CPU enters the state: while on the traditional C3 state the CPU must be put in that state usually by a command from the operating system, on C1E the CPU enters the state automatically when all cores are at Halt (C1) state. C2 State The C2 state was also introduced with 486DX4, by adding one extra pin to the CPU, called STPCLK ( Clock ). When this pin is activated, the CPU core clock is cut. As you can see, C2 state is somewhat similar to C1 state: both cut the CPU core clock. The difference between them is how the CPU achieves this: C1 state is activated by software (through an HLT instruction) while C2 state is activated by hardware (by sending a signal to a CPU pin called STPCLK ). Like it happens when the CPU is in the C1 state, the CPU internal clock isn t completely stopped when the CPU enters C2 state: the bus interface and APIC units are still being fed with the CPU internal clock rate. This is done to allow the CPU to temporarily exit the C2 state to take care of an important request coming from the CPU external bus. Since the clock signal is stopped for almost all CPU internal units, they stop running, making them to consume less power. There are two sub-modes for the C2 state: Grant and Clock. Grant is achieved after the STPCLK pin is activated. As explained, in this mode the CPU core clock is stopped but the clock generator chip (also known as PLL, Phase-Locked Loop) is still active and generating the external bus reference clock, i.e., the CPU external clock. 486DX4, Pentium, Pentium MMX, K5, K6, K6-2 and K6-III could go one step further and enter a deeper substate called Clock where the clock generator chip would be turned off and thus the external clock signal would also be turned off, thus saving more energy. Current CPUs don t have the Clock mode inside the C2 State but on the C3 Deep state. Like the Halt (C1) state, the CPU can temporarily leave the Grant (C2) state to deal with an important request coming from through the CPU external bus. This temporary leave is called Clock Snoop State, HALT/Grant Snoop State or simply Snoop State and during its duration the CPU clock is restored. After the CPU has handled the request, it goes automatically back to the Grant (C2) state. Core 2 Duo CPUs brought an advanced Grant state called Extended Grant or C2E, which also reduces the CPU voltage besides stopping the CPU internal clock. If this mode is enabled on the motherboard BIOS, the CPU will enter this mode instead of the traditional Grant (C2) mode when STPCLK pin is activated. Otherwise the CPU will continue to use the standard Grant mode. This CPU also introduced the Extended Halt/ Grant Snoop state, which allows the CPU to temporarily exit C1E or C2E modes to respond to an important request coming from the CPU external bus, but keeping the CPU lower voltage instead of restoring the CPU full voltage. C3 State C3, also known as state, was first used on Pentium II from Intel and the very first Athlon CPU from AMD. Interesting enough this mode isn t available on Core 2 Duo CPUs manufactured under 65-nm process hardwaresecrets.com/printpage/ /611 3/5

i.e., model numbers starting with 4 or 6, but these CPUs implement other extended states (C1E and C2E) mentioned before. Core 2 Duo manufactured under 45-nm process i.e., model numbers starting with 7 or 8 do have this mode back again. As we explained, when the CPU is in the Halt (C1) or in the Grant (C2) states the CPU internal clock is cut from almost all units inside the CPU, making them to stop and thus consume less power. On these states, however, two internal CPU units are kept running: the bus interface unit and the APIC, Advanced Programmable Interface Controller. These units are kept running so the CPU can deal with important requests coming from the CPU external bus and can handle interruptions. The next state, (C3), cuts all internal clock signals from the CPU, including the clocks from the bus interface unit and from the APIC. This means that when the CPU is in the mode it can t answer to important requests coming from the CPU external bus nor interruptions. Intel CPUs and Turion 64 from AMD allow a C3 sub-mode called Deep, where the CPU external clock is also stopped, thus saving more power. The way the CPU enters C3 state depends on the manufacturer. Intel CPUs add an extra pin, called SLP (or DPSLP, depending on the CPU model), which must be activated when the CPU is in C2 state in order to switch the CPU into C3 state. So first STPCLK pin must be activated and then one should activate the SLP pin. Entering the Deep state is achieved by simply cutting the external clock signal. On AMD CPUs the C3 state is entered by simply reading a register from the ACPI (Advanced Control Power Interface), circuit that is physically located on the chipset. If the program, reads the PLVL_2 register, the chipset will activate the STPCLK pin putting the CPU into Grant (C2) mode while if the program reads the PLVL_3 register the chipset will activate the STPCLK pin putting the CPU into (C3) mode. AMD mobile CPUs (Turion 64) support a sub-mode called AltVID that allows the reduction on the CPU voltage while they are in the C3 mode. Also don t forget that Turion 64, 65-nm Athlon X2 and Phenom CPUs also have a mode called C1E that isn t related to Intel s C1E that puts the CPU in a mode identical to C3. The difference between AMD s C1E and C3 states is basically how the CPU enters the state: while on the traditional C3 state the CPU must be put in that state usually by a command issued by the operating system, on C1E the CPU enters the state automatically when all cores are at Halt (C1) state. C4 State Modes C1, C2 and C3 deals basically with the clock signal. Since on C3 mode all clock signals inside the CPU can be stopped, there is no other way to save power by playing with the CPU clock signals. The next step on reducing the CPU idle power is to reduce the CPU voltage. Since power is directly proportional to voltage (P = V x I) if we reduce the CPU voltage we also reduce the amount of power being wasted. The first mode to implement voltage reduction is called C4 or Deeper State and was first implemented on the Pentium M processor (i.e., Centrino platform), which was a CPU targeted to the mobile market, where power saving is extremely important to extend battery life. This mode is also available on Core Solo, Core Duo (the dual-core version of Pentium M), on all mobile versions of Core 2 Duo and desktop Core 2 Duo models with model numbers starting with 7 or 8 (i.e., 45-nm CPUs). This mode isn t available on 65 nm desktop Core 2 Duo CPUs (models starting with 4 or 6 ). This mode is also available on AMD s Turion 64 processor. Deeper State is achieved from Deep state, i.e., the CPU must first enter Deep State (C3) and then, from there, it can reduce its internal voltage. On Core Duo CPUs this must be done by activating a pin on the CPU called DPRSTP. Just for you to have some real examples of how C4 state can save energy, let s consider mobile Core 2 Extreme X9100. In normal (C0) mode working at its full clock this CPU has a maximum current consumption of 59 A, which drops to 12.2 A when the CPU is in C4 state, a 79.32% reduction in consumption. On a mobile Core 2 Duo T9400 or T9600, which have a maximum current consumption of 47 A, maximum current consumption drops to 11.7 A when the CPU is under C4 mode, a 75.11% decrease in consumption. Core Solo, Core Duo (the dual-core version of the Pentium M targeted to the mobile market and codenamed hardwaresecrets.com/printpage/ /611 4/5

Yonah) and the 45-nm version of the mobile Core 2 Duo (i.e., models with numbering starting with 8 or 9 and the 7350 model) have another C4 mode, called Enhanced Deeper or simply C4E, which allows the CPU voltage to be reduced even more after the L2 memory cache has been disabled. This mode isn t available on other CPUs. This mode is also called C5 by some people, even though this isn t the real name of this mode. Let s give some examples of power savings brought by C4E state. First let s consider mobile Core 2 Extreme X9100. In normal (C0) mode working at its full clock this CPU has a maximum current consumption of 59 A, which drops to 11.7 A when the CPU is in C4E state, an 80.17% reduction in consumption. On a mobile Core 2 Duo T9400 or T9600, which have a maximum current consumption of 47 A, maximum current consumption drops to 10.5 A when the CPU is under C4E mode, a 77.66% decrease in consumption. C6 State This is the latest addition on power saving, introduced with the 45-nm version of the mobile Core 2 Duo i.e., models with numbering starting with 8 or 9 and the 7350 model. It is important to note that the desktop version of the 45 nm version of the desktop Core 2 Duo does not bring this functionality, which is also known as Deep Power Down. When the CPU enters this state it saves its entire architectural state inside a special static RAM, which is fed from an independent power source. This allows the CPU internal voltage to be lowered to any value, including 0 V, what would completely turn off the CPU when it is idle. Then when the CPU is waked up it loads the previous state of all internal units from its special static RAM. Of course waking up the CPU from this state takes a lot longer than the previous states we discussed, but it is faster than turning off the computer and then turning it back on and loading the operating system, etc. Notice that there is only one voltage line for the entire CPU (the only component with a different voltage source is the abovementioned special memory) and lowering or turning off the CPU voltage is an all-ornothing kind of deal: if you turn off the CPU, you have to turn off it entirely when it goes into C6 mode. The forthcoming Core i7 CPU (codename Nehalem) will have an embedded power control unit that allows the voltage for individual parts of the CPU to be reduced or turned off. For example, if only one processing core of the CPU is idle, it will be able to turn off just one of the cores, putting it on C6 mode. On current 45-nm mobile Core 2 Duo CPUs you can t do that. In order to enter C6 state the CPU must enter first into C4 state and from there switch to C6 state. Let s give some examples of power savings brought by C6 state. First let s consider mobile Core 2 Extreme X9100. In normal (C0) mode working at its full clock this CPU has a maximum current consumption of 59 A, which drops to 11 A when the CPU is in C6 state, an 81.35% reduction in consumption. On a mobile Core 2 Duo T9400 or T9600, which have a maximum current consumption of 47 A, maximum current consumption drops to 5.7 A when the CPU is under C6 mode, an impressive 87.87% decrease in consumption. Originally at http://www.hardwaresecrets.com/article/everything-you-need-to-know-about-the-cpu-c- States-Power-Saving-Modes/611 2004-11, Hardware Secrets, LLC. All Rights Reserved. Total or partial reproduction of the contents of this site, as well as that of the texts available for downloading, be this in the electronic media, in print, or any other form of distribution, is expressly forbidden. Those who do not comply with these copyright laws will be indicted and punished according to the International Copyrights Law. We do not take responsibility for material damage of any kind caused by the use of information contained in Hardware Secrets. hardwaresecrets.com/printpage/ /611 5/5