Skip to main content

18 docs tagged with "memory-management"

View all tags

Huge Pages and THP

A TLB holds a fixed number of entries, and its reach — the amount of address space it can translate

NUMA and Memory Policy

Node-local allocation by default, the policies that override it, and when NUMA effects are a red herring.

Page Tables and the Walk

Translation is a size problem before it's anything else. A flat table mapping every 4 KiB page of a

Swap, zswap, and zram

Swap has an undeserved reputation. It is not "what happens when a machine runs out of memory" — it is

The OOM Killer

By the time this code runs, every allocation path has already failed, reclaim has already been asked and

The Page Allocator

Every other allocator in the kernel — slab, vmalloc, the page cache, the stack allocator — ultimately

The Page Cache

This is the single most consequential piece of Linux memory management, and the one most misread by

The Virtual Address Space

A pointer on x86-64 is a 64-bit value, but the address space it names is not a 64-bit space. Implementing