Virtual Memory & Paging

Answer & solution
Official answer: 1536
Step through it (6 steps)
Givens and goal
A TLB reaches 1 MB with 4 KB pages. Virtual space is 64 GB and physical space 1 GB. Each entry stores a 4-bit process ID, virtual page number, physical frame number, and 2 control bits. Find the TLB size in bytes, with binary K,M,G.
Approach
Find entry count and entry width independently, then multiply.
Step-by-step solution
1. TLB reach is number of entries times page size. Therefore the number of entries is 2²⁰/2¹²=2⁸=256.
2. Virtual space 64 GB equals 2³⁶ bytes, requiring a 36-bit address. A 4 KB page has a 12-bit byte offset. The virtual page number therefore has 36−12=24 bits.
3. Physical space 1 GB equals 2³⁰ bytes, requiring a 30-bit address. Removing the same 12-bit offset leaves an 18-bit physical frame number.
4. One entry contains 4+24+18+2=48 bits, or 6 bytes. Total storage is 256×6=1536 bytes.
5. The page offset is not stored as part of a translation entry because it passes through unchanged. This answer includes exactly the specified fields and assumes no unmentioned padding, replacement information, or other implementation metadata.