GATE Computer ScienceModerateGATE CS (PYQ pattern)

A quad-core chip gives each core a 32 KB L1 instruction cache, a 32 KB L1 data cache and a 256 KB private L2; all cores share an 8 MB L3 (1 MB = 1024 KB). How many KB of distinct data can the whole hierarchy hold if every level is inclusive of the levels above it, and if every level is exclusive of all the others?

  1. A. 8,192 KB and 9,216 KB
  2. B. 8,192 KB and 9,472 KB
  3. C. 9,472 KB and 9,472 KB
  4. D. 8,192 KB and 8,512 KB

Correct answer: B. 8,192 KB and 9,472 KB

Inclusive: everything in L1 and L2 is also in the L3, so distinct capacity = 8,192 KB. Exclusive: all capacities add: 4 × (32 + 32 + 256) + 8,192 = 1,280 + 8,192 = 9,472 KB. Forgetting the L1s gives 9,216; counting one core only gives 8,512.

More Computer Organization and Architecture questions

Exams that ask this topic