Worshipping at the altar of Brendan Gregg: a 'rewind time' command for the Rewind VMIllustration: Topicex
Cooling

Worshipping at the altar of Brendan Gregg: a 'rewind time' command for the Rewind VM

Heat 50 · #47 in Tech · Cooling2 reports · 2 sources · First reported Nov 12 · Updated Nov 25

What happened?

Farid Zakaria has added a new 'rewind time' command to Rewind, a deterministic virtual machine, that analyzes a recording and tells you where the time went.The command reports the critical path - the longest chain of dependent work, and the minimum time a run can take no matter how many cores it gets - and lets the user drill into any part of it down to the source lines responsible. Every idea in it comes from Brendan Gregg's work: off-CPU analysis, wakeup flame graphs and thread state analysis, which Gregg spent years turning from a dark art into a science.In the worked example, a libuv build and test run takes 78 seconds inside Rewind but only 47.4 seconds on the critical path, with 67% of that time asleep - 23.1 seconds in epoll_pwait and 8.53 seconds in clock_nanosleep. The Time tab shows the path as a flame graph, coloured the way Gregg colours off-CPU flame graphs, with computing warm and asleep blue.
Latest development
the Lobsters item 'Worshipping at the altar of Brendan Gregg' is OUT of Lobsters' 25

Key facts

First reportedNov 12
StatusCooling
Reports tracked2
Sources2
Heat score50
Peak heat70
Last updatedNov 25, 04:48

How did it unfold?

  1. the Lobsters item 'Worshipping at the altar of Brendan Gregg' is OUT of Lobsters' 25
  2. the Lobsters item 'Worshipping at the altar of Brendan Gregg' is OUT of Lobsters' top 25
  3. h stays 90 frozen at admission per the Free TV rounds 389-390 precedent
  4. cross-platform 2 platforms -> x50
  5. the Time tab shows the path as a flame graph coloured the way Gregg colours off-CPU flame graphs
  6. worked example: a libuv build and test run takes 78 seconds inside Rewind, 47.4 seconds critical path, 67% asleep (epoll_pwait 23.1 s, clock_nanosleep 8.53 s)
  7. the ideas are inspired by or directly influenced by Brendan Gregg's work - off-CPU analysis, wakeup flame graphs, thread state analysis
  8. the linked post is Farid Zakaria's blog 'Worshipping at the altar of Brendan Gregg' (fzakaria.com, first published Nov 12, 2026): a new 'rewind time' command for the Rewind deterministic VM that analyzes a recording and tells you where the time went - the critical path, the longest chain of dependent work that sets the minimum runtime regardless of CPU count
  9. in round 435 the cross-platform recompute was h95, d40, x50 = 64.0, below the line, so no search then

What's the angle?

A tribute that ships a tool: how Rewind's new 'rewind time' command turns Brendan Gregg's flame-graph ideas into a critical-path answer, and what the libuv example shows about where build time really goes.Suggested format: Short video · for Developers, performance engineers, systems programmers

Who covered it? (2)

Hacker NewsHacker News
FzakariaFzakaria

How has the heat moved?

Now 50 · Peak 70 · 63 recorded checks since Nov 24
Full ranking →