Description

Power is the rate of energy use (watts = joules per second). Energy is the total used over time (joules, or watt-hours). A processor rated at 65 W draws 65 J every second; running it for an hour uses 65 Wh.

Why architects care: battery life in mobile devices, heat removal (thermal design power, TDP), electricity cost and carbon footprint in data centers, and the fact that power now limits how fast chips can be clocked.

Dynamic power comes from transistors switching (charging and discharging capacitance). Static power comes from leakage current even when idle, and it grows as transistors shrink.

Techniques to save energy:

TechniqueIdea
DVFS (dynamic voltage and frequency scaling)Lower V and f when full speed is not needed
Clock gatingStop the clock to idle blocks (cuts switching)
Power gatingCut the supply to idle blocks (cuts leakage)
Race to haltFinish fast, then sleep deeply
Multicore at lower fMany slower cores beat one fast core per watt
Domain-specific hardwareDo the same work with far less energy (Topic 15)
Low-power DRAM, ARM-class serversLower the energy of memory and cores

Data centers and warehouse-scale computers spend energy on servers (processors, memory, storage, network) and on cooling and power delivery. PUE (Power Usage Effectiveness) measures overhead.

Key Formulas

Energy per transition       E  = ½ · C · V²
Dynamic power               P_dyn = α · C · V² · f          (α = activity factor, switching fraction)
                            (or P = C · V² · f with α folded in)
Static power                P_static = I_leak · V
Energy over time            E = P · t                      (1 W · 1 h = 1 Wh)
Energy for a fixed task     E_task = P_avg · t_task

PUE = Total facility power / IT equipment power            (ideal = 1.0)

Scaling rules of thumb: P_dyn ∝ V² · f. Since f is usually reduced together with V, power falls roughly with the cube of the scaling factor, while energy per task falls with V² (frequency cancels because the task runs longer).

Steps

Dynamic power: (1) estimate α, C, V, f, (2) multiply α·C·V²·f.

DVFS evaluation: (1) compute the power ratio (V₂/V₁)² · (f₂/f₁), (2) compute the time ratio f₁/f₂ for a compute-bound task, (3) energy ratio = power ratio × time ratio.

PUE: (1) measure total facility power, (2) measure IT power, (3) divide.

Worked Example

A. Power vs energy. A 65 W CPU runs for 2 h: E = 65 × 2 = 130 Wh = 0.13 kWh = 65 × 7200 = 468,000 J.

B. Dynamic power. α = 0.2, C = 1 nF, V = 1.0 V, f = 3 GHz: P = 0.2 × 10⁻⁹ × 1² × 3 × 10⁹ = 0.6 W.

C. DVFS. Cut both voltage and frequency by 20% (to 0.8×).

  • Power ratio = 0.8² × 0.8 = 0.512 (48.8% less power).
  • Task takes 1/0.8 = 1.25× as long.
  • Energy ratio = 0.512 × 1.25 = 0.64 (36% less energy), which equals V² = 0.64.

Lowering voltage saves energy per task even though it costs time.

D. PUE. Facility draws 1.5 MW, IT load is 1.0 MW: PUE = 1.5 (0.5 MW goes to cooling and distribution). If upgrades reach PUE 1.1, the same IT load needs 1.1 MW, saving 0.4 MW, which over a year is 0.4 × 8760 = 3504 MWh.

E. Electricity cost. 1.5 MW × 8760 h = 13,140 MWh = 13,140,000 kWh. At $0.08/kWh that is about $1.05 million per year.

Python / Assembly

def dyn_power(alpha, C, V, f):
    return alpha * C * V**2 * f

def dvfs(v_ratio, f_ratio):
    p = v_ratio**2 * f_ratio       # power ratio
    t = 1 / f_ratio                # time ratio (compute-bound)
    return p, t, p * t             # power, time, energy ratios

print(round(dyn_power(0.2, 1e-9, 1.0, 3e9), 2))   # 0.6
print(tuple(round(x, 3) for x in dvfs(0.8, 0.8)))   # (0.512, 1.25, 0.64)

def pue(total_kw, it_kw):
    return total_kw / it_kw
print(pue(1500, 1000))                  # 1.5

Putting a core to sleep in RISC-V (wait for interrupt; hardware may gate clocks):

idle_loop:
    wfi                 # wait for interrupt: core can enter a low-power state
    j    idle_loop

Notes

  • Common mistake: power falls quadratically with voltage (P ∝ V²), not exponentially.
  • Some sources say servers and cooling account for "about 86%" of data-center energy. Treat that as a rough figure; published breakdowns vary by facility, and modern hyperscale sites report PUE near 1.1-1.2, meaning cooling and distribution overhead is only 10-20% of IT power.
  • Why ARM servers help: simpler cores deliver more work per watt.
  • Lower voltage has a floor: transistors need enough voltage to switch reliably, and leakage grows, so DVFS has limits.
  • Quick facts: dynamic power = α·C·V²·f; clock gating disables unused circuit parts; AI can optimize workloads and cooling; PUE measures data-center energy efficiency.

References: [HP6] Ch. 1 (1.5-1.6) and Ch. 6 (6.4-6.5); [PH-RV] Ch. 1 (1.7 "The Power Wall"); Barroso, Clidaras & Hölzle, The Datacenter as a Computer, 3rd ed., 2018;