6.4.10 · Hardware › Power, Thermal & Reliability
Intuition Ek-sentence idea
Raw speed ka koi fayda nahi agar aap bijli ka bill ya cooling afford nahi kar sakte — isliye hum hardware ko measure karte hain ki woh har joule (ya watt) mein kitna useful work karta hai , na ki sirf yeh ki woh kitna fast hai.
Intuition Yeh kaunsi problem solve karta hai
Ek datacenter ka bill aur ek phone ki battery life dono energy se dominate hoti hain, raw clock speed se nahi. Do chips same benchmark score hit kar sakti hain, lekin agar chip A yeh 100 W par karti hai aur chip B 50 W par, toh chip B practically twice as valuable hai. Hume ek aisa number chahiye tha jo performance aur power ko fuse kare , taaki engineers fairly compare kar sakein.
Yeh tension hai:
Performance chahti hai high clock frequency f aur high voltage V .
Power dono f aur V ke saath tezi se badhti hai (hum derive karenge kyun).
Ek "sweet spot" ke baad, performance push karna disproportionately zyada power cost karta hai — isliye performance/watt ek design target ke roop mein exist karta hai.
Definition Performance per watt
Performance per Watt = Power Performance
jahan Performance throughput hai (operations/second, jaise FLOPS ya instructions/sec) aur Power average electrical power watts mein hai (joules/sec).
Kyunki performance work per second hai aur power energy per second hai:
Power Perf = energy / sec work / sec = energy work = joule operations
Intuition Seconds cancel ho jaate hain!
Performance/watt secretly operations per joule hai — total useful work jo aap ek fixed energy budget (jaise battery) se nikal sakte hain. Isliye yeh honest efficiency number hai.
CMOS chip mein total power:
P total = P dynamic + P static
Intuition Physically kya ho raha hai
Har logic gate basically ek chhoti capacitor C hai. Ek bit flip karne ke liye aap use voltage V tak charge karte ho phir charge dump karte ho. Capacitor par stored energy hai E = 2 1 C V 2 . Charge karna aur discharge karna dono milake ek full cycle mein C V 2 cost karta hai.
Derivation:
Ek capacitor ko V tak charge karne ki energy: E stored = 2 1 C V 2 .
Discharge par resistive path mein utni hi energy dissipate hoti hai, isliye har switching event mein hum E = 2 1 C V 2 (charge) aur baad mein 2 1 C V 2 (discharge) khote hain.
Agar gates activity factor α (kitne fraction gates flip ho rahe hain) ke saath frequency f par switch karte hain, toh per second switches ki sankhya α f hai.
P dynamic = α C V 2 f
Intuition Yeh kyun exist karta hai
Jab kuch bhi switch nahi ho raha tab bhi, transistors ek trickle current I leak leak karte hain (electrons tunnel / subthreshold conduction). Yeh ek slowly dripping tap jaisa hai.
P static = V I leak
Leakage temperature ke saath exponentially badhti hai — yeh ek key reliability coupling hai.
Intuition High speed par efficiency kyun collapse ho jaati hai
Faster run karne ke liye aapko f badhani padti hai. Lekin zyada f ke liye zyada V chahiye taaki transistors itni tezi se switch kar sakein (roughly f ∝ V operating region ke paas). V ∝ f ko P dyn = α C V 2 f mein substitute karo:
P dyn ∝ f ⋅ f 2 = f 3
Power roughly frequency ke cube ke saath scale karta hai. Performance sirf linearly f ke saath scale karti hai. Toh:
Watt Perf ∝ f 3 f = f 2 1
Worked example Example 1 — Operations per joule compute karo
Ek GPU 20 TFLOPS deliver karta hai 250 W par. Performance/watt aur energy per operation nikalein.
Step 1: 250 W 20 × 1 0 12 FLOP/s = 8 × 1 0 10 FLOP/(s⋅W) = 80 GFLOPS/W .
Yeh step kyun? Perf/watt literally yeh division hai; units ban jaate hain FLOP per joule.
Step 2: Energy per FLOP = 8 × 1 0 10 1 = 12.5 pJ/FLOP .
Yeh step kyun? ops/joule ka reciprocal = joules/op. Confirm karta hai ki perf/watt ≡ work/energy.
Worked example Example 2 — Voltage scaling payoff (DVFS)
Ek core V = 1.0 V , f = 2 GHz par run karta hai. Hum V = 0.8 V par drop karte hain, jisse f = 1.6 GHz milta hai (kyunki f ∝ V ). Dynamic power aur perf/watt par kya asar padta hai?
Step 1 — naya power: P ∝ V 2 f . Ratio = ( 1.0 0.8 ) 2 ⋅ 2.0 1.6 = 0.64 × 0.8 = 0.512 .
Yeh step kyun? Sirf relative factors matter karte hain, isliye ratios ko V 2 f mein daalo. Power 51% tak drop ho jaata hai.
Step 2 — nayi performance: ∝ f , ratio = 0.8 (original ka 80%).
Yeh step kyun? Throughput frequency ko track karta hai.
Step 3 — perf/watt ratio: 0.512 0.8 = 1.5625 .
Yeh step kyun? Perf/watt = perf ÷ power. Hume +56% efficiency mila sirf 20% kam speed ke liye. Isliye phones load ke neeche throttle down karte hain.
Worked example Example 3 — Do chips ke beech choose karna
Chip A: 100 GFLOPS @ 40 W. Chip B: 160 GFLOPS @ 80 W. Kaun zyada energy-efficient hai?
Step 1: A → 100/40 = 2.5 GFLOPS/W. B → 160/80 = 2.0 GFLOPS/W.
Yeh step kyun? Direct perf/watt comparison absolute size ko ignore karta hai aur fair hai.
Conclusion: A efficiency mein jeetta hai (har joule mein zyada work karta hai), bhaley hi B faster ho. Battery/thermal budget ke hisaab se chunein, raw speed se nahi.
Common mistake "Faster chip = zyada efficient chip."
Kyun sahi lagta hai: Speed aur quality synonymous lagte hain; ek faster CPU task "jaldi" finish karta hai, toh surely woh kam energy use karta hai?
Fix: Jaldi finish karna (race-to-idle) kabhi kabhi help karta hai, lekin high f ke liye high V chahiye tha, aur P ∝ V 2 f . Total energy = power × time badh sakta hai bhaley hi time kaam ho. Hamesha operations/joule compute karo, sirf speed nahi.
Common mistake "Voltage aadha karna power bhi aadhi kar deta hai."
Kyun sahi lagta hai: Ohm's-law reflex: P = V I , toh power V mein linear lagti hai.
Fix: Dynamic power α C V 2 f hai — V mein quadratic . V aadha karna (frequency hold karte hue) dynamic power quarter kar deta hai. Yahi quadratic wajah hai ki DVFS itna powerful hai.
Common mistake "Sirf dynamic power matter karta hai."
Kyun sahi lagta hai: Textbooks α C V 2 f se lead karte hain.
Fix: Modern deep-nanometer chips mein, leakage (P static = V I leak ) ek bada hissa ho sakta hai aur temperature ke saath badhta hai — ise ignore karna aapka thermal/reliability budget toda deta hai.
Recall Feynman: ek 12-saal ke bachche ko explain karo
Socho tumhara toy car battery se chalta hai. Ek car super fast jaati hai lekin 5 minute mein battery khatam kar deti hai. Doosri thodi slower hai lekin ek ghante tak chalti hai. "Performance per watt" yeh pooch raha hai: tumhe battery ke har bit se kitna maza (kaam) milta hai? Slow-and-steady aksar zyada total maza deta hai. Aur yeh trick hai: do guna fast jaana do guna battery cost nahi karta — yeh chaar ya aath guna zyada cost kar sakta hai, kyunki speed badhane ke liye zyada "push voltage" chahiye, aur battery drain voltage ke saath squared badhta hai. Isliye fast gadgets garam ho jaate hain aur jaldi mar jaate hain.
Mnemonic Power law yaad rakho
"Alpha Cats Voltage-Squared Frequency" → P = α C V 2 f .
Aur: "Volts hurt squared, Hertz hurt cubed" (kyunki f apne saath V ko bhi upar kheenchta hai, isliye P ∼ f 3 ).
Performance/watt mein "per second" units kyun cancel ho jaate hain?
Voltage-frequency scaling ke under derive karo ki P dyn ∝ f 3 kyun hai.
Jab aap V kam karte ho toh kaun faster drop karta hai: power ya performance? Kis law se?
Performance per watt kaunsi aur zyada fundamental quantity ke equivalent hai? Operations per joule (work per unit energy), kyunki performance aur power mein "per second" cancel ho jaata hai.
CMOS ke liye dynamic power equation? P d y n = α C V 2 f (activity × capacitance × voltage² × frequency).
Dynamic power V 2 ke proportional kyun hai? Energy stored/dissipated on a gate capacitor 2 1 C V 2 hai, aur aap har switch par yahi pay karte ho.
Clock speed push karne par total power f 3 ki tarah kyun scale karta hai? Zyada f ke liye zyada V chahiye (roughly V ∝ f ); V 2 f mein substitute karne par f 3 milta hai.
Agar voltage aadha karo (frequency hold karte hue), dynamic power ka kya hoga? Yeh one quarter ho jaata hai (V mein quadratic hai).
Static/leakage power kya hai aur uska formula kya hai? Idle hone par bhi leakage current se hone wala power loss: P s t a t i c = V I l e ak ; temperature ke saath badhta hai.
Chip A: 100 GFLOPS @ 40 W, Chip B: 160 GFLOPS @ 80 W — kaun zyada efficient hai? A (2.5 GFLOPS/W) B (2.0 GFLOPS/W) se jeetta hai, bhaley hi B faster ho.
Industry ever-higher clocks ki jagah multicore par kyun gayi? High frequency par Perf/watt 1/ f 2 ki tarah girta hai; kam f , V par zyada parallel cores better work-per-joule dete hain.
DVFS kya exploit karta hai? Dynamic Voltage & Frequency Scaling V drop karta hai (quadratic power saving) ek chhhote linear performance loss ke liye, taaki perf/watt boost ho.
Steel-man: "faster = more efficient" sahi kyun lagta hai, aur fix kya hai? Race-to-idle ki wajah se sahi lagta hai; fix: total energy = power×time, aur high f ke liye high V chahiye isliye power (∝ V 2 f ) time ke girane se zyada badh sakta hai.
Capacitor energy half C V squared
Voltage and frequency sweet spot