GATE / CS ARCHIVE

GATE CSE 2001 / QUESTION 9(e)

Cache tag storage overhead

Computer Organization & Architecture · Cache Memory · Full GATE CSE 2001 paper

GATE 2001, Q9(e) Descriptive
Report issue

Cache Memory

Question 9(e), GATE 2001: 32-bit byte addresses; cache data capacity 256 KB=2^18 bytes; 4-way set associative; 16-byte blocks.

Task: Find total extra memory in bytes required for tag bits.
Question 9(e), GATE 2001: 32-bit byte addresses; cache data capacity 256 KB=2^18 bytes; 4-way set associative; 16-byte blocks.

Task: Find total extra memory in bytes required for tag bits.
Tap to enlarge
Shared context

32-bit byte addresses; cache data capacity 256 KB=2^18 bytes; 4-way set associative; 16-byte blocks.

Answer & solution

Answer: 32,768 bytes = 32 KiB for tags only. (no official key was published)

Step through it (8 steps)

1. Total cache blocks equal 256×1024/16=16,384. Every resident block requires its own tag even though blocks share a set index.

2. Each tag has 32−12−4=16 bits. Thus tag storage is 16,384×16=262,144 bits.

3. Convert bits to bytes by dividing by 8: 262,144/8=32,768 bytes, or 32 KiB.

4. This is only the requested tag-bit memory. Valid bits, dirty bits, and replacement metadata would add storage, but their costs are not part of the tag-only question and are not silently included.

Original paper, page 8