Page Table Entries in Page Table (original) (raw)

Last Updated : 8 Sep, 2025

A Page Table is a data structure that maps virtual addresses (used by processes) to physical addresses (actual locations in memory). The size and format of a PTE vary by system architecture and OS, but it always contains enough information for efficient memory management and protection.

112

**Note: Each mapping in the table is stored in a Page Table Entry (PTE), which contains critical information required for efficient memory management, protection and address translation.

Information Stored in Page Table Entry

A Page Table Entry (PTE) stores the necessary metadata about a page, allowing the system to manage memory safely and efficiently. The exact format and size of a PTE depend on the system’s architecture (32-bit, 64-bit) and the operating system implementation, but typical fields include the following:

1. Frame Number

2. Present/Absent Bit (Valid/Invalid Bit)

Indicates whether the page is currently loaded in memory or not.

3. Protection Bits

Read (R)
Write (W)
Execute (X)

4. Referenced Bit

5. Caching Enabled/Disabled

6. Modified Bit (Dirty Bit)

**Example: For a 32-bit virtual address space with 4 KB pages:

\text{Number of Pages} = \frac{\text{Total Words}}{\text{Words per Page}}

Here for words per page we have 4KB
i.e 4KB = 2^{10} \times 2^2 = 2^{10 + 2} = 2^{12}
12 bits words per page.

**Note: For 64-bit systems, a flat page table becomes too large, so hierarchical structures (multi-level page tables) are used to manage memory efficiently.

Pros of Using a Page Table in a Virtual Memory

**Note: The Page Table Entry (PTE) is a small but powerful structure that plays a central role in modern memory management. Its fields support address translation, memory protection, efficient caching and effective handling of dynamic processes in an operating system.