Course contentsShow
← Computer Science
Lesson 1355 of 2,87231. Memory ManagementFree lesson

Page Table Entry Structure

Examining the components of a page table entry: frame number, valid bit, dirty bit, and protection bits.

Page Table Entry Structure

You'll learn: What information is stored in each row of the page table and how those bits control memory behavior.

What's Inside a Page Table Entry?

Remember that a page table is essentially a lookup array that translates virtual page numbers to physical frame numbers. Each slot in this table—called a page table entry (PTE)—contains more than just the destination frame number. It also holds several control bits that tell the MMU how to handle that page.

Think of a PTE like a shipping label: it doesn't just say where the package goes (frame number), it also has flags like "fragile," "return to sender if undeliverable," and "signature required."

Core Components of a PTE

Frame Number (Physical Address)

The most important field: which physical frame holds this page's data. During address translation, the MMU extracts this value and combines it with the offset to form the complete physical address.

Valid Bit

Indicates whether this page is currently in physical memory. If 0, the page is invalid or swapped out—accessing it triggers a page fault.

Dirty Bit (Modified Bit)

Tracks whether the page has been written to since loading. When 1, the OS knows it must write this page back to disk before reusing the frame. Clean pages can simply be discarded.

Protection Bits

Control read/write/execute permissions. Common combinations: read-only, read-write, or execute-only. These bits enforce memory protection and prevent illegal access.

Additional bits (like referenced/accessed bits) may exist, but these four form the essential structure.

Key Takeaway: A page table entry stores the physical frame number plus metadata bits (valid, dirty, protection) that let the MMU and OS correctly manage and secure each page of memory.