PERF tutorial: Counting hardware performance events | Sand, software and sound
This article is part 2 of a three part series on the PERF (linux-tools) performance measurement and profiling system. In part 1, I demonstrate how to use PERF
This article is part 2 of a three part series on the PERF (linux-tools) performance measurement and profiling system. In part 1 , I demonstrate how to use PERF to identify and analyze the hottest execution spots in a program. Part 1 covers the basic PERF commands, options and software performance events. Part 2 introduces hardware performance events and demonstrates how to measure hardware events across an entire application. Part 3 uses hardware performance event sampling to identify and analyze program hot-spots. Each article builds on the usage and background information presented in the pr
related reading
- PERF tutorial: Finding execution hot spots - Sand, software and soundsandsoftwaresound.net
- PERF tutorial: Finding execution hot spots - Sand, software and soundSand, software and soundsandsoftwaresound.net
- Analyzing performance with perf annotatedeveloper.ibm.com
- All my favorite tracing tools: eBPF, QEMU, Perfetto, new ones I built and more - Tristan Humethume.ca
- What Every Programmer Should Know About Memorypeople.freebsd.org
- How to easily measure Floating Point Operations Per Second (FLOPS) | B. Nikolic Software and Computing Blogbnikolic.co.uk
- abseil / Performance Hintsabseil.io
- How to Optimize a CUDA Matmul Kernel for cuBLAS-like Performance: a Worklogsiboehm.com
- perf-config(1) - Linux manual pageman7.org
- Inside NVIDIA GPUs: Anatomy of high performance matmul kernels - Aleksa Gordićaleksagordic.com
- Profiling Go programs with pprofjvns.ca
- PiTorch: ML on Baremetal Raspberry Pis | projectsmasonjwang.com