Skip to content
Tech Atlas, home
Search
Esc
  • All roadmapsBrowse every learning path
  • ExploreFind a technology area
  • ProjectsGuided projects and builds
  • My AtlasYour learning dashboard
Skill

Memory & Virtual Memory

Explain how Linux gives each process a private virtual address space, and interpret memory usage, paging and OOM events on a live system.

Intermediate1 roadmap

4 objectives 6 steps about 130 min

Check what you know

The lessons are coming later. The knowledge check is ready now.

Take the knowledge check

This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.

Learning objectives

  • Translate a virtual address to a physical one through page tables and explain the roles of the TLB and page faults.
  • Explain demand paging, copy-on-write, memory-mapped files, the page cache, reclaim and swapping.
  • Interpret RSS, PSS, VSZ, free versus available memory, major and minor faults, and /proc/<pid>/smaps for a running process.
  • Explain overcommit and the OOM killer, and set memory limits that stop one service from exhausting a host.

Lesson plan

6 steps, about 130 min · 0 of 5 lessons available so far

  1. One address space per process: virtual addresses, pages and frames Concept · 20 min · coming later
  2. Worked example: walking a multi-level page table and why the TLB matters Worked example · 25 min · coming later
  3. Lazy by design: demand paging, copy-on-write, mmap and the page cache Concept · 20 min · coming later
  4. When memory runs out: reclaim, swap, page replacement and the OOM killer Concept · 20 min · coming later
  5. Lab: page faults, mmap, smaps and a memory limit that triggers the OOM killer Lab · 30 min · coming later
  6. Check: explain a memory report and an OOM entry in the kernel log Knowledge check · 8 questions

Practise it

Write a program that allocates and touches memory in steps; run it with systemd-run under a MemoryMax limit, record RSS, major and minor faults and the OOM kill from the journal, and explain each number in a short report.

Build it from scratch

Practice builds that exercise this skill by re-creating a real technology.

Browse 20 tutorials that practise it

References

Hard prerequisites

Unlocks

On these roadmaps

Progress and evidence for this skill are shared across all of them.