Pidoku
22Performance Engineering
On this page

Performance Engineering

Module 2211 lessons~13h 30m

Lessons, in order

22.a The Performance Debugging MethodologyIf you take one thing from Module 22, take this procedure. The other ten lessons are the tools each step calls for. 1h 30m 22.b The Roofline Model in Practice2.f and 6.a teach the roofline and how to place one kernel on it. This lesson uses it on a whole inference step: compute the step's physical floor, compare it with what you measure, and let … 1h 22.c Memory-Bound vs Compute-BoundSorting each piece of work, and each whole step, into one of four regimes: 1h 22.d GPU Utilization Is a LieThis one misunderstanding has probably wasted more GPU-hours than any other in the field. 1h 22.e Memory Fragmentation and Allocators6.11 GiB is held by PyTorch but not used by any tensor, and 3.21 GiB more is free on the device, yet a 2 GiB request fails. The reserved-but-unallocated memory is in pieces, none large … 1h 15m 22.f OOM: Causes and CuresA classification of out-of-memory failures in an inference service, because each kind has a different cause and a different fix. The first job is always to decide which kind you have. 1h 22.g Benchmarking Inference CorrectlyA wrong benchmark is worse than no benchmark, because it produces confident wrong decisions. 1h 30m 22.h GPU Profiling with Nsight6.d teaches the tools: how to read a Nsight Systems timeline and a Nsight Compute kernel report. This lesson is a recipe book for inference: profiling a live engine, finding the gaps in a … 1h 30m 22.i CPU and Python ProfilingFinding where the CPU time goes in an inference server, and where its threads wait. A large share of inference performance problems are on the CPU: 1h 22.j Metrics, Prometheus, and DashboardsTurning the numbers an inference server already exports into a few dashboards and alerts that answer, at a glance, three performance questions: 1h 15m 22.k Case StudiesEight worked investigations of inference performance problems, each in the same format: symptom, measurements, diagnosis, wrong fixes, right fix, result, lesson. They bring the whole module … 1h 30m

About this module

Finding where the time and the memory actually go: a method, the roofline in practice, memory- versus compute-bound work, GPU utilisation myths, fragmentation and allocators, out-of-memory failures, benchmarking that means something, Nsight profiling, CPU and Python profiling, metrics and dashboards, and case studies.

Lessons#

#LessonTime
22.aThe Performance Debugging Methodology90 min
22.bThe Roofline Model in Practice60 min
22.cMemory-Bound vs Compute-Bound60 min
22.dGPU Utilization Is a Lie60 min
22.eMemory Fragmentation and Allocators75 min
22.fOOM: Causes and Cures60 min
22.gBenchmarking Inference Correctly90 min
22.hGPU Profiling with Nsight90 min
22.iCPU and Python Profiling60 min
22.jMetrics, Prometheus, and Dashboards75 min
22.kCase Studies90 min

Previous: Inference Platforms · Next: Production Inference

↑↓ navigate↵ openesc close

100% drag to pan · scroll or pinch to zoom · double-click to zoom in