What is Tickless kernel?

An OS kernel that stops the periodic timer tick on idle CPUs so they can sleep until the next work.

Field: Power Management

Japanese name: ティックレスカーネル

What the tick is

An operating-system kernel that uses a periodic tick receives an interrupt from a timer at a fixed interval, roughly 100 to 1000 times per second. On each interrupt it advances the time, decides whether to switch the running program, and handles timers that have expired. The scheme is simple, but it wakes the CPU on every tick even when there is no work at all. Because idle periods are chopped into small pieces, the CPU cannot enter deep power-saving states.

How it works

When a CPU becomes idle, a tickless kernel looks up the next time at which something must be handled. It programs the timer to interrupt just once at that time and stops the periodic tick. If another interrupt arrives earlier, the CPU wakes then. On waking, the kernel reads a counter that keeps running and advances the time by the whole idle period at once. In Linux this feature is enabled by default.

Effects and extensions

Because the CPU can rest for long uninterrupted periods, deep C-states become usable and idle power falls. In virtualized environments, the burden of delivering tick interrupts to idle virtual machines also disappears. The benefit is smaller, however, when applications use many short-interval timers. Real-time operating systems for battery-powered microcontrollers have a feature based on the same idea. There is also an extension that stops the tick even while running, on a CPU where only one program is running.

Try it: questions about Tickless kernel

What is the idea behind the tickless kernel used in Linux and other OSes?

  1. AHiding the clock display to reduce screen power
  2. BWhen idle, the periodic timer tick interrupt is stopped so the CPU can sleep until the next work
  3. CRaising the timer tick interrupt to tens of thousands per second
Show answer and explanation

Answer: B. When idle, the periodic timer tick interrupt is stopped so the CPU can sleep until the next work

An OS with a periodic tick uses a timer interrupt, say 100 to 1000 times per second, for task switching and timekeeping, waking the CPU each time even with nothing to do. A tickless kernel stops the tick on idle CPUs and programs a timer only for the next time it actually needs to wake. The CPU can then sleep longer and deeper, reducing standby power.

FAQ

Does stopping the tick make the clock drift?

No. On waking, the kernel reads a hardware counter that never stops and accounts for the elapsed time correctly.

Is the tick also stopped while the CPU is running?

Basically it is stopped only during idle. The feature that stops it while running can be used when conditions are met, such as only one program running on that CPU.

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