Question

A system has a Translation Lookaside Buffer (TLB) that has a reach of 1 MB. TLB reach is defined as the total amount of physical memory that can be accessed through the TLB entries. The paging system uses pages of size 4 KB. The virtual address space is 64 GB and physical address space is 1 GB. If each TLB entry stores a 4-bit process id, page number, frame number, and a 2-bit control field, then the size of the TLB (in bytes) is ___________. (answer in integer)

Note: 1K=210,1M=220,1G=2301\text{K}=2^{10}, 1\text{M}=2^{20}, 1\text{G}=2^{30}

Official answer and solution
Official answer
1536
From
Official GATE 2026 answer key

Solution

Find the number of TLB entries from TLB reach / page size, then compute the bit width of each TLB entry.

  1. Number of TLB entries:
Entries=TLB ReachPage Size=1 MB4 KB=220212=28=256 entries\text{Entries} = \frac{\text{TLB Reach}}{\text{Page Size}} = \frac{1\text{ MB}}{4\text{ KB}} = \frac{2^{20}}{2^{12}} = 2^8 = 256 \text{ entries}
  1. Fields in each TLB entry (with page size =4 KB=212= 4\text{ KB} = 2^{12} bytes):
    • Process ID =4= 4 bits
    • Virtual Page Number (VPN) =log⁡2(64 GB/4 KB)=36−12=24= \log_2(64\text{ GB} / 4\text{ KB}) = 36 - 12 = 24 bits
    • Physical Frame Number (PFN) =log⁡2(1 GB/4 KB)=30−12=18= \log_2(1\text{ GB} / 4\text{ KB}) = 30 - 12 = 18 bits
    • Control field =2= 2 bits
    • Total bits per entry =4+24+18+2=48 bits=6 bytes= 4 + 24 + 18 + 2 = 48\text{ bits} = 6\text{ bytes}.
  2. Total TLB size:
256×6 bytes=1536 bytes256 \times 6\text{ bytes} = 1536\text{ bytes}
Final answer

1536

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2026 Computer Science and Information Technology - Session 2 (CS2)
Question
54 of 65
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.