Operating systems

Memory management

How operating systems manage memory: virtual memory, paging, swapping, address spaces and memory protection.

Browse A–Z

Terms

22 terms

  • Address space

    An address space is the range of memory addresses a process or device can use, which the operating system maps to physical memory and protects from…

  • Belady’s anomaly

    Belady's anomaly is the counterintuitive case in which giving a FIFO page replacement policy more memory frames produces more page faults, not fewer.

  • Buddy memory allocation

    Buddy memory allocation splits memory into power-of-two blocks and merges free buddy pairs, giving kernels fast allocation of contiguous page frames.

  • Copy-on-write

    Copy-on-write is a memory management technique in which processes share pages until one writes, and only then does the kernel make a private copy.

  • Demand paging

    Demand paging is a memory management technique that loads a page into physical memory only when a program first accesses it, not in advance.

  • Huge pages

    Huge pages are virtual memory pages far larger than the default 4 KiB, cutting TLB misses and page table overhead for memory-intensive workloads.

  • Memory compression

    Memory compression is an operating system technique that compresses inactive pages in RAM to delay swapping and fit more working data in memory.

  • Memory fragmentation

    Memory fragmentation is the condition in which free memory is split into scattered pieces too small or misplaced to satisfy new allocation requests.

  • Memory segmentation

    Memory segmentation divides a program's address space into variable-sized segments, each with its own base, limit and access rights, checked by the hardware.

  • Memory-mapped file

    A memory-mapped file is a file whose contents the operating system maps into a process address space so it can be read and written like ordinary…

  • Page fault

    A page fault is the processor exception raised when a program touches a virtual page that is not currently mapped to a usable physical frame.

  • Page frame

    A page frame is a fixed-size block of physical RAM that holds one virtual page, the basic unit the operating system allocates in paged memory management.

  • Page replacement algorithm

    A page replacement algorithm decides which resident memory page an operating system evicts when a page fault occurs and no free frame is available.

  • Page table

    A page table is the data structure an operating system uses to map virtual pages to physical page frames, with access and protection bits for each.

  • Physical address

    A physical address is the real location of a byte in main memory or device space, produced after the memory management unit translates a virtual address.

  • Resident set size

    Resident set size is the amount of physical RAM a process currently occupies, counting its pages that are loaded in memory rather than swapped out.

  • Segmentation fault

    A segmentation fault is the error raised when a program touches memory it is not allowed to access, so the operating system stops it.

  • Slab allocation

    Slab allocation is a kernel memory management technique that serves fixed-size objects from caches of preallocated pages to cut fragmentation and setup cost.

  • Thrashing

    Thrashing is a virtual memory failure state in which an operating system spends most of its time moving pages between RAM and disk instead of doing…

  • Translation lookaside buffer TLB

    A translation lookaside buffer (TLB) is a small cache in the processor that stores recent virtual-to-physical address translations to speed up memory access.

  • Virtual address

    A virtual address is a memory location as seen by a program, which the operating system and the MMU translate into a physical address in RAM…

  • Working set

    A working set is the group of memory pages a process has actively referenced during a recent time window, the core idea behind efficient paging decisions.

Also in this topic

Terms explained in another topic that belong here too.

  • Memory overcommit

    Servers › Server resources

    Memory overcommit lets an operating system or hypervisor promise more virtual memory than physical RAM exists, betting that not all of it…

  • Swap

    Servers › Server resources

    Swap is disk space a server uses as overflow for RAM, letting the kernel move idle memory pages out so active processes…