---
title: "Memory page"
url: https://www.daytona.com/definitions/m/memory-page
---

# Memory page

A memory page is a fixed-size block of memory that the kernel maps and manages as one unit.

A memory page is the block in which the kernel maps and protects memory. Every virtual address that a process uses falls in one page, which the processor translates to a page frame in physical memory. The processor supports a few page sizes, and the kernel uses the smallest for most memory. A program that asks for a few bytes gets them from a library allocator, which in turn takes whole pages from the kernel.

Working in pages lets the kernel place the memory of a process anywhere in physical memory, in any order. It also lets the kernel keep only the pages in use in memory and leave the rest on disk or unallocated. Physical memory never has to be contiguous, so a process can grow without the kernel finding one large free block for it. A process can even reserve more memory than the machine has, as long as it never touches all of it.

Each page carries its own permissions, such as whether it may be written or run as code. Marking code pages as not writable and data pages as not executable blocks a whole class of attacks. Two processes can also map the same page frame, which is how a shared library takes up memory only once. Most of what a kernel does with memory, from sharing to swapping, it does one page at a time. A host that runs many sandboxes shares and reclaims their memory in the same units.

## Related terms

- [Copy-on-write](https://www.daytona.com/definitions/c/copy-on-write.md)
