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
- Before: Level 14: Testing: EUnit and Common Test, Property-Based Testing Concepts, Testing Concurrent Systems.
- Next: Level 16: Releases & Operations: Releases, Runtime Upgrades, Operating Long-Lived Systems.
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.