Erlang course

Erlang Level 15: BEAM Performance

BEAM Performance is level 15 of 17 of the LoWisa Erlang course. It has 3 lessons and 9 ideas. Below is every lesson and what it teaches, in one line each.

Updated 2026-11-25

Scheduler Behaviour

  • Schedulers. BEAM runs one scheduler per core: processes balanced across them automatically.
  • Reductions. Work is counted in reductions: a process yields after its budget, keeping latency flat.
  • Dirty schedulers. Long native work runs on dirty schedulers: the main ones stay responsive.

Process and Memory Performance

  • Per-process heaps. Each process owns a heap collected independently: GC pauses stay per-process and tiny.
  • Binary sharing. Large binaries are shared by reference: and leak when a small slice pins a huge buffer.
  • Mailbox costs. Selective receive over a deep mailbox scans repeatedly: flat mailboxes are a performance property.

Profiling Large Erlang Systems

  • Profilers. fprof and eprof attribute time per function: measured hotspots over folklore.
  • Microstate accounting. msacc shows where schedulers spend time: emulator, GC, I/O: the node’s time budget.
  • Load testing honestly. BEAM systems load-test with real concurrency: thousands of connections, sustained, before production does it.

Before and after this level

In the app each of these ideas is taught and then asked back, and the level ends with a checkpoint and flashcards. See Checkpoints and flashcards.

Frequently asked questions

What does Erlang Level 15: BEAM Performance cover?

Scheduler Behaviour, Process and Memory Performance, Profiling Large Erlang Systems: 3 lessons and 9 ideas.

What should I know before this level?

The level before it, Level 14: Testing, which covers EUnit and Common Test, Property-Based Testing Concepts, Testing Concurrent Systems.

Learn Erlang on your phone

The first level is free. LoWisa is on Google Play and the App Store.