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.
| Part | Role |
|---|---|
| Page tables | Mapping and permission data, kept in RAM by the kernel |
| Page table walker | Hardware that reads the tables on a TLB miss |
| TLB | Cache of recent translations, per core, in several levels |
| Permission bits | Read, 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
| Server | Processor | Cores / threads | Memory | Storage | Network | Per month | Smallest order |
|---|---|---|---|---|---|---|---|
| S7 | Intel Xeon E-2288G | 8 / 16 | 128 GB DDR4 | 2x 1 TB NVMe | 2x 10 Gbps | $100.72 | $100.72 (1 month) |
| S10 | Intel Xeon E-2388G | 8 / 16 | 128 GB DDR4 | 2x 1 TB NVMe | 2x 10 Gbps | $113.23 | $113.23 (1 month) |
| D9 | 2x Intel Xeon Gold 6326 | 32 / 64 | 256 GB DDR4 | 2x 2 TB NVMe | 2x 25 Gbps | $400.25 | $400.25 (1 month) |
| M8 | 2x Intel Xeon Platinum 8352Y | 64 / 128 | 512 GB DDR4 | 2x 4 TB NVMe | 2x 25 Gbps | $667.21 | $667.21 (1 month) |
| A2 | Ampere Altra Q80-30 | 80 / 80 | 256 GB DDR4 | 2x 4 TB NVMe | 2x 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.
OpenVirtualization hosts
Carve one physical box into many virtual machines with Proxmox VE or KVM, guests behind NAT on a single public address.
OpenPhysical 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.
OpenLinux memory management
Virtual memory, pages, overcommit, huge pages, cgroup limits and the OOM killer: how Linux hands out RAM and the knobs worth turning.
OpenFAQ
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.