</>EmbeddedInterview

How does dynamic voltage and frequency scaling (DVFS) save power?

MediumMicrocontrollers & ARM Cortex-M

Short answer: The dynamic power of CMOS logic is roughly P = C · V² · f (switched capacitance × voltage squared × frequency). DVFS lowers the clock frequency when full performance is not needed and, because a lower frequency allows a lower supply voltage, lowers the voltage too. Since power depends on V², reducing voltage gives a large saving. The OS (or firmware) picks an operating performance point (OPP: a frequency/voltage pair) based on the current load.

Example: going from 1.2 GHz at 1.1 V to 600 MHz at 0.9 V:

P2 / P1 = (0.9² × 0.6) / (1.1² × 1.2) = 0.486 / 1.452 ≈ 0.33

Half the speed for about one third of the dynamic power, so the energy per operation also drops (~0.67×).

Rules when switching

  • Raising performance: increase the voltage first, wait for it to settle, then increase the frequency.
  • Lowering: decrease the frequency first, then the voltage.
  • Flash wait states (MCU) or memory timings must also be valid for the new frequency.

In Linux: the cpufreq framework with governors (schedutil, ondemand, performance, powersave), OPP tables in the device tree, a clock driver and a regulator (PMIC) driver; on Arm servers and newer SoCs, firmware (SCMI) performs the change. Check with cpupower frequency-info or /sys/devices/system/cpu/cpu0/cpufreq/.

On MCUs: switch between run modes or PLL settings (e.g. STM32L4 range 1/range 2), run from a slower clock when idle, and use voltage scaling registers.

DVFS vs "race to idle": sometimes it is better to run at full speed, finish quickly and go into a deep sleep state, because static (leakage) power and the rest of the system (memory, radio) keep consuming power while the CPU works slowly. The right choice depends on how much the sleep states save; measure.

Related techniques: clock gating (stop clocks to unused blocks), power gating (switch off domains), big.LITTLE task placement, and thermal throttling (reducing the OPP when the chip gets too hot).