What is Race to idle?

The strategy of finishing work quickly at high performance and entering deep sleep early, often advantageous when static power or other components' power is large.

Field: Power Management

Japanese name: レーストゥアイドル

The idea

The policy is to run at full speed when there is work, finish early, and spend the remaining time in a deep power-saving state. It is the opposite of running slowly to lower power. Which one wins depends on the breakdown of the power used while running.

A worked example

While the CPU is running, other parts such as memory and power circuits also draw power. Suppose the parts other than the CPU draw 2 W and the whole system draws 0.5 W when resting. Suppose that at full speed the CPU draws 4 W and takes 1 second, and at half speed it draws 1.5 W and takes 2 seconds. Over the 2 seconds, full speed uses 6 W × 1 s plus 0.5 W × 1 s of rest, or 6.5 J. Half speed uses 3.5 W × 2 s, or 7 J. Looking at the CPU alone, half speed saves energy, but for the whole system full speed wins.

When it does not hold

When the voltage can be lowered a lot, dynamic energy falls with the square of the voltage, and running slowly can win. The same is true for systems in which the non-CPU power is small. The advantage of finishing early also shrinks when idle power is not low enough or when entering and leaving the deep state takes long. For work that arrives in small pieces at fixed intervals, such as video playback, running just fast enough to keep up is common. Real operating systems combine the two policies.

Try it: questions about Race to idle

When does "race to idle" (finishing work fast and then sleeping deeply) tend to save energy?

  1. AWhen there is only dynamic power and no static power at all
  2. BWhen static power and the power of other components, such as memory, that stay active during work are large, so sleeping sooner shuts them all down
  3. CWhen entering sleep does not reduce power at all
Show answer and explanation

Answer: B. When static power and the power of other components, such as memory, that stay active during work are large, so sleeping sooner shuts them all down

Considering dynamic power alone, computing slowly at low voltage uses less energy. In reality, leakage and the power of memory, peripherals, the display and so on continue while the system is active. When these are large, finishing quickly at high performance and entering deep sleep, shutting everything down, uses less total energy. Which strategy wins depends on each device's power breakdown.

FAQ

Does it contradict DVFS?

No. Which one wins depends on how large leakage and the power of non-CPU parts are. The larger the share of fixed power, the more it pays to finish early and rest.

Does it apply to things other than CPUs?

Yes. In wireless communication, for example, sending data in a short burst and letting the circuits rest for the remaining time lowers the average power.

Books on Power Management Ad

As an Amazon Associate I earn from qualifying purchases.

This page was drafted with AI and fact-checked by a separate AI review before publication. Our Editorial policy explains how we write and check content. If you spot an error, please tell us on our Contact page.

Back to the glossary