Useful web sites about the Linux perf tools¶
- Julia Evans' Profiling & tracing with perf zine
- Brendan Gregg's perf examples
- Wikipedia
- Franck Pachot's not so basic perf top tutorial "Linux perf-top basics: understand the %"
- Frank Pachot help going from 'time' to 'perf stat' while analysing database performance on "Should CPU-intensive logic be done in the DB or in application server?"
- Ankur Arora uses perf and pahole to investigate "Syscall latency... and some uses of speculative execution"
- Leo Yan on supporting 'perf c2c' on Armv8.2 "Using the Arm Statistical Profiling Extension to detect false cache-line sharing"
- Mark Dawson, Jr. uses 'perf diff' on "5-level vs 4-level Page Tables: Does It Matter?"
- Joe Mario's original 2016 article about 'perf c2c' "C2C - False Sharing Detection in Linux Perf"
- Paul Clarke reimplements AIX's 'curt' command using perf python scripting support, detailing the whole process on "How to analyze your system with perf and Python"
- Viacheslav Biriukov mentions using perf to get more info about page cache activity in the "Advanced tools" section in his "SRE deep dive into Linux Page Cache" series of articles
- Filip Busic uses perf and other BPF tools in "Examining Problematic Memory in C/C++ Applications with BPF, perf, and Memcheck"
- (French) Hadrien Grasland's perf tutorial (designed to be run on a specific system, but could be adapted to self-study without too much effort)
- Leo Yan, Perf Ring Buffer
- Leo Yan Debugging perf with perf
- Paul Clarke helps transitioning from OProfile to perf
- Timed Process Event Based Sampling
Useful web sites about profilers¶
Presentations¶
- Improving the Perf event subsystem after 15 years Ian Rogers, LPC September 2024
- Utilizing type info in the perf tools Namhyung Kim, LPC September 2024
- Linux perf tool metrics Ian Rogers, Weilin Wang, LPC November 2023
- Towards data type profiling Namhyung Kim, LPC November 2023
- Easyperf Twitter Spaces with Arnaldo Carvalho de Melo and Denis Bakhvalov October 2021
- Integration Arm SPE in Perf for Memory Profiling Spring 2021
- Stephane Eranian's keynote at SuperComputing ProTools 2019: Hardware Performance Monitoring Landscape
- Chandler Carruth "Tuning C++: Benchmarks, and CPUs, and Compilers! Oh My!"
- Roberto Vitillo's presentation on Perf events June 2011
In the press¶
- Discovery/analysis of
libxz
backdoor withperf record -e intel_pt//ub
by the discoverer Andres Freund.