Extra Credit

Linux Memory Management

Official docs outline

12 sections
  1. Memory management guide

    Administrator index of memory management features and tunables.

  2. Concepts overview

    Virtual memory, pages, page cache, zones, nodes, OOM killer and compaction.

  3. HugeTLB pages

    Reserving and mapping huge pages with hugetlbfs, nr_hugepages and MAP_HUGETLB.

  4. Transparent hugepages

    THP enabled and defrag settings, khugepaged and madvise hints.

  5. NUMA memory policy

    mbind, set_mempolicy and interleave, preferred and bind policies.

  6. Kernel samepage merging

    KSM page deduplication through madvise MADV_MERGEABLE.

  7. Zswap

    Compressed swap cache in RAM with pools and writeback.

  8. Userfaultfd

    User-space page fault handling, UFFDIO ioctls and live migration use.

  9. DAMON

    Data access monitoring and DAMON-based reclaim.

  10. Page tables

    Multi-level page table layout, PGD, PUD, PMD and PTE.

  11. Overcommit accounting

    vm.overcommit_memory modes and commit limits.

  12. Memory management internals

    Kernel developer docs on slab, page allocator, vmalloc and reclaim.

Each section links to the official page. Titles and summaries by Extra Credit; the docs belong to their authors.

All 29