Skip to content
Minute Campus.

When software failedLesson 021 min

How did one extra second make Linux servers spike in 2012?

At the end of June 2012 the world clock added one second. Some Linux systems did not handle it well: their timers were never told the clock had changed, so waits tied to the clock went wrong and load jumped. The kernel commit that fixed it names MySQL, Firefox and Java among the programs affected. Until the fix arrived, setting the clock again cleared the problem.

Remember

A leap second is rare, so test for it before it arrives.

Sources

Checked at the source.

Every claim in the lesson was checked against these before it was recorded.

  1. 1time: Fix leapsecond triggered hrtimer/futex load spike issueJohn Stultz · Linux kernel commit, July 2012 · read 14 Nov 2026Describes futex-related load spikes after the leap second and names MySQL, Firefox, Thunderbird and Java.
  2. 2Leap_Second.datIERS · read 14 Nov 2026The leap-second table shows TAI-UTC moving from 34 to 35 seconds on 1 July 2012.

Transcript

The lesson, word for word.

Read it at your own pace, or search the page for a term.

How did one extra second make Linux servers spike in twenty twelve? At the end of June, the world clock added one second. The official table moved from thirty-four to thirty-five seconds on the first of July. Some Linux systems did not handle the change well. Their timers were never told the clock had changed, so waits tied to the clock went wrong, and the load on the machine jumped. The kernel commit that fixed it names MySQL, Firefox and Java among the programs affected. Its author called the symptom futex load spikes. Until the fix arrived, setting the clock again cleared the problem. The fix depended on an earlier change, and should not go in alone. In July, the fix made the clock change tell the timers. The lesson: a leap second comes rarely, so test for it before it arrives.

Questions? Comment on the lesson on YouTube

New lessons every day.

Follow Minute Campus where you already scroll.