Glossary

Memory Management Unit (MMU)

The memory management unit is the part of a CPU that translates every virtual address a program uses into a physical RAM address, and blocks access that the page tables do not allow.

What does the MMU do?

Every load and store a program performs uses a virtual address. Before the access reaches cache or RAM, the MMU looks up which physical page that address belongs to and whether the access is allowed. If the mapping exists and the permissions match, the access proceeds in a fraction of a cycle. If not, the MMU raises a fault and the kernel takes over. This happens billions of times per second, entirely in hardware, and it is what lets Virtual memory work at full speed.

How does address translation work?

The kernel builds page tables in memory: a tree of tables, four or five levels deep on x86-64 and Arm64, that maps virtual page numbers to physical frames. A CPU register points at the top table of the running process. On a lookup, the MMU walks down the tree to find the entry. Walking four levels for every access would be slow, so the MMU keeps recent translations in the translation lookaside buffer (TLB), a small cache close to each core. With a good TLB hit rate, almost no access pays for a full walk.

PartRole
Page tablesMapping and permission data, kept in RAM by the kernel
Page table walkerHardware that reads the tables on a TLB miss
TLBCache of recent translations, per core, in several levels
Permission bitsRead, write, execute, user or kernel only

How does the MMU protect memory?

Each page table entry carries permission bits. User programs cannot touch kernel pages; code pages are read-only; data pages are marked non-executable, which blocks a whole class of exploits that try to run injected code. A program that breaks those rules triggers a fault, and the kernel ends it with a segmentation fault. One process cannot even name another process's memory, because its page tables simply have no mapping for it. That hardware isolation is why one crashing service does not corrupt the others on the same box.

What is a page fault?

A fault raised when a translation is missing or not allowed. Many faults are normal and cheap: the first touch of newly allocated memory, a page of a program that has not been loaded yet, a copy-on-write page after fork(). Major faults need disk access, for a file page or a swapped-out page, and are much slower. You can count them:

ps -o pid,min_flt,maj_flt,comm -C mysqld,nginx
sar -B 5 3

A steady stream of major faults on a database server usually means its working set no longer fits in RAM.

How does the MMU support virtual machines?

A virtual machine has its own kernel with its own page tables, which map to what the guest thinks is physical memory. Modern CPUs add a second stage of translation in hardware, called EPT on Intel and NPT on AMD, with equivalent stage-2 translation on Arm, so guest-physical addresses are translated to real physical addresses without the hypervisor stepping in on every change. That is a large part of why KVM guests on Proxmox run close to native speed. TLB misses cost more under two-stage translation, which is one reason huge pages help VM hosts. Virtualization hosts and Proxmox VE cover hosting VMs on our machines, from S7 to large hosts like M8.

What about containers?

Containers share the host kernel, so each containerized process still gets ordinary per-process page tables from the same MMU. Isolation between containers comes from that, plus namespaces and cgroups. No second translation stage is involved, which is why containers add essentially no memory access overhead.

Does the MMU matter when choosing a server?

Indirectly. Every CPU in our range has a full MMU with hardware virtualization support, so all of them run KVM and containers. Differences show up in TLB sizes and page size options, which matter for very large memory workloads, and in features such as memory encryption and protection keys on newer chips. For most buyers, core count, clock and RAM size decide far more. On a running system, grep -o -w 'vmx\|svm' /proc/cpuinfo | sort -u confirms virtualization support on x86, and lscpu lists address sizes the MMU handles.

Machines Often Used as VM Hosts

ServerProcessorCores / threadsMemoryStorageNetworkPer monthSmallest order
S7Intel Xeon E-2288G8 / 16128 GB DDR42x 1 TB NVMe2x 10 Gbps$100.72$100.72 (1 month)
S10Intel Xeon E-2388G8 / 16128 GB DDR42x 1 TB NVMe2x 10 Gbps$113.23$113.23 (1 month)
D92x Intel Xeon Gold 632632 / 64256 GB DDR42x 2 TB NVMe2x 25 Gbps$400.25$400.25 (1 month)
M82x Intel Xeon Platinum 8352Y64 / 128512 GB DDR42x 4 TB NVMe2x 25 Gbps$667.21$667.21 (1 month)
A2Ampere Altra Q80-3080 / 80256 GB DDR42x 4 TB NVMe2x 25 Gbps$277.57$277.57 (1 month)

Keep Reading

Virtual memory

How every process gets its own private address space, how pages map to RAM or swap, and why VSZ and RSS numbers differ so much.

Open

Virtualization hosts

Carve one physical box into many virtual machines with Proxmox VE or KVM, guests behind NAT on a single public address.

Open

Physical memory

The real RAM installed in a machine, how Linux divides it between programs, cache and the kernel, and how to read physical memory figures.

Open

Linux memory management

Virtual memory, pages, overcommit, huge pages, cgroup limits and the OOM killer: how Linux hands out RAM and the knobs worth turning.

Open

FAQ

Quick Answers

The translation lookaside buffer, a small cache in each core that keeps recent virtual-to-physical address translations.

A program accesses memory its page tables do not allow, such as an unmapped address or a write to a read-only page.

A minor fault is resolved from memory. A major fault needs to read from disk, which is much slower.

Two-stage translation in hardware maps guest memory to host memory without the hypervisor handling every page table change.

Yes. Every CPU in the range supports it, so KVM, Proxmox VE and containers all run normally.