Skip to main content
Definition Website Computer and Technology

Memory Management Unit

Subject: Computer and Technology noun /ˈmɛm.ə.ri ˌmæn.ɪdʒ.mənt ˌjuː.nɪt/ 1 definition

  1. Definition (noun)

    Entry #223 · Updated

    A Memory Management Unit (MMU) is a hardware component—typically integrated directly into a processor—that intercepts CPU memory references and translates virtual addresses into physical addresses in main memory or memory-mapped I/O. Using page tables maintained by the operating system and cached in an on-chip Translation Lookaside Buffer (TLB), it verifies every access against page-level permissions such as read, write, execute, and privilege mode. When a mapping is missing or an access violates permissions, the MMU blocks the operation and raises a hardware exception (such as a page fault) so the kernel can intervene. Unlike software memory allocators or OS memory managers that decide how memory is partitioned, the MMU provides the hardware enforcement boundary necessary for virtual memory, process isolation, and system stability.

    Common Types

    • Paged MMU: Divides virtual and physical memory into fixed-size pages mapped via multi-level or inverted page tables, minimizing external fragmentation in modern general-purpose CPUs such as x86-64 and ARM64.

    • Segmented MMU: Organizes memory into variable-length logical segments—such as code, data, and stack—by checking offsets against base addresses, bounds limits, and privilege flags.

    • Input-Output MMU (IOMMU): Connects DMA-capable peripheral devices such as GPUs and network adapters to system memory, translating device-side I/O virtual addresses to prevent unauthorized memory writes and enable virtual machine device passthrough.

    • Nested (Two-Stage) MMU: Extends paged translation for hardware virtualization by chaining guest-managed and hypervisor-managed page tables, translating guest virtual addresses to guest physical addresses and then to host physical memory.

    Example

    When a user-space process attempts to write to virtual address 0x7fff4a201000, the CPU's MMU checks its Translation Lookaside Buffer (TLB) and, on a miss, walks the process's page tables to resolve the target physical frame in RAM. If the page is unmapped or marked read-only, the MMU blocks the write and raises a page-fault exception so the operating system kernel can either allocate a writable copy (for copy-on-write) or terminate the process with a segmentation fault.