Address translation is the hardware bridge connecting a process's illusion of a contiguous, private memory space to the fragmented physical reality of DRAM chips.
To master address translation and solve numerical systems problems with 100% precision, we establish the canonical relationships between bit widths and storage capacities:
2. Comprehensive System Configurations: Worked Reference Table
The following master reference table analyzes five fundamental systems architectures with varying Secondary Memory (Logical Address Space), Physical RAM (Physical Address Space), and Page Sizes:
System #
Logical Space (SM)
Physical RAM (MM)
Page Size (PS)
Addressability
LA Bits
PA Bits
Offset Bits (d)
Page Bits (p)
Frame Bits (f)
1
32 GB
128 MB
1 KB
1 Byte
35
27
10
25
17
2
4 TB
8 GB
2 KB
1 Byte
42
33
11
31
22
3
512 GB
2 GB
512 B
1 Byte
39
31
9
30
22
4
128 GB
32 GB
128 B
1 Byte
37
35
7
30
28
5
1 TB
64 MB
4096 B (4 KB)
1 Byte
40
26
12
28
14
3. Step-by-Step Derivations of Classic Configurations
Let us rigorously derive the exact values for each case from first principles:
A common source of confusion in computer systems is the distinction between Frame Number Bits and Page Table Entry Size:
Minimum Page Table Entry (PTE) Sizing Rule
A Page Table Entry must store the Frame Number (f bits) plus any hardware status bits. Because memory is byte-addressable, data structures cannot allocate fractional bytes:
PTE Size (minimum)=⌈8f+Status Bits⌉ Bytes
If status bits are not explicitly specified in problem statements, assume PTE Size=⌈f/8⌉ Bytes.
Modern Intel and AMD server processors do not utilize 64 full bits of virtual address space because managing 264 bytes would require astronomically large page tables:
Address Bitfield
Bit Range
Width
Purpose in Multi-Level Paging Hierarchy
Sign Extension
Bits 63…48
16 bits
Canonical form check (Must be all 0s for user space or all 1s for kernel)
Byte displacement within target 4 KB physical frame
Canonical 48-Bit Virtual Addressing:
Bits 0 to 11 (12 bits) specify the offset inside a standard 4 KB page (212=4096 bytes).
The remaining 36 bits are divided into four 9-bit chunks (9+9+9+9=36).
Why 9 bits? Because each level's table has 29=512 entries. With an 8-byte (64-bit) PTE, 512×8 B=4096 bytes=4 KB—meaning every page table fits inside a physical frame!
5-Level Paging (PML5):
Modern Linux kernels powering AI clusters support 57-bit virtual addressing by adding a 5th level (PML5) to address up to 128 PB (petabytes) of virtual memory and 4 PB of physical DRAM.
Question 1: In a computer system, the logical address is 32 bits and the physical address is 24 bits. The page size is 4 KB.
Find the number of pages in the logical address space.
Find the number of frames in physical memory.
If each page table entry takes 4 bytes, calculate the total size of the page table for a process.
Answer:
Number of pages:
Page Size=4 KB=212 bytes⟹d=12 bits.
Logical address length =32 bits⟹p=32−12=20 bits.
Number of pages =220=1,048,576 pages (1 Million pages).
Number of frames:
Physical address length =24 bits⟹f=24−12=12 bits.
Number of frames =212=4096 frames.
Total size of Page Table:
Size=Number of pages×PTE Size=220×4 bytes=4×220 bytes=4 MB.
Question 2: A byte-addressable system has a physical address space of 512 MB and a page size of 8 KB. What is the minimum number of bits required to store the physical frame number in each page table entry?
Answer:
Conclusion: At minimum, 16 bits must be dedicated strictly to hold the frame number.
Common Interview Traps
The Word-Addressable Trap: Always verify whether the problem specifies byte-addressable or word-addressable memory. If a system is 2-byte word addressable, 4 KB represents 2 K words, meaning d=11 bits instead of 12 bits!
The Frame Number vs Physical Address Confusion: Students often mistake f (frame number) for the full physical address. Remember: Physical Address=[f∣d]. The frame number is only the higher-order component.
Rounding Up PTE Sizes: In theoretical questions, if f=17 bits, the minimal byte-aligned storage is ⌈17/8⌉=3 bytes. In real systems, hardware alignments favor power-of-two bytes (4 bytes or 8 bytes). Always state your alignment assumption clearly.