An unofficial, read-only Hacker News reader. Join the beta →

Worshipping at the altar of Brendan Gregg (opens external site)

241 points by kqr 4 days ago | fzakaria.com | 47 comments on HN

View full thread · View on Hacker News

Comment thread (1)

  1. On a live machine you have to start tracing before the slow run happens, and tracing has a cost, so you only get a few attempts. Here every recording already logs every context switch because the VM needs them to replay, so the off-CPU and wakeup analysis can be done afterwards, on any run. The hrtime test is a useful distinction too: it accounts for 3.38s of the critical path, but the sleep is intentional, so the drag you can actually remove is zero.