linuxlab.io
Tutorials▾
  • Linux & networking
    File system, processes, TCP/IP, BGP and OSPF
    →
  • Terraform & IaC
    HCL, state, plan/apply on a LocalStack sandbox
    →
  • Git & GitHub
    Object model, plumbing, branching, GitHub Actions
    →
All tutorials →
PricingAboutSign inCreate account
/
  • Introduction
  • Lessons
  • How it works
  • Simulator
  • Knowledge base
  • Interview prep
Lessons
Footer
linuxlab-TutorialsPricingAboutPrivacy & cookies
Copyright © 2026 LinuxLab. All rights reserved.

← из прошлого урока

eBPF can count events and build histograms. Next comes the other half of observability: where the CPU goes. perf record plus report, the flame graph as the standard for talking about performance.

← к прошлому уроку

Продвинутый

Profiling with perf: where the CPU goes

15 мин · урок входит в курс «Продвинутый»

perf is the main CPU profiler on Linux. It samples the processor through a hardware counter (the PMU) every N milliseconds and records stacks. The result: where function X spends the most time. load-average tells you how busy the system is; perf tells you on what exactly.

In this lesson you go through the minimal workflow:

  1. Start a CPU-bound load
  2. perf record takes samples
  3. perf report shows the top functions
  4. You learn how to read the result

⚠️ Caveat: PMU sampling on a VM (the OrbStack VM) can be limited: some events may be unavailable. Basic CPU-time profiling works.

Урок закрыт

Чтобы запустить sandbox и пройти этот урок целиком, нужен соответствующий курс. Внутри - ещё много практических уроков того же уровня и сквозной прогресс.

Купить курсВойти← Все уроки

дальше →

You have a CPU profiler in hand. Next is a sharp change of topic: dynamic routing. A minimal BGP setup on FRR: two AS numbers, one peering, an eBGP session. This is how the entire public internet talks to itself.

Открыть превью: BGP minimum: two AS, one peeringв курсе «Продвинутый» - /pricing
Footer
linuxlab-
Copyright © 2026 LinuxLab. All rights reserved.
Tutorials
Pricing
About
Privacy & cookies