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?
- A. 8,192 KB and 9,216 KB
- B. 8,192 KB and 9,472 KB
- C. 9,472 KB and 9,472 KB
- 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.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- Two packed-BCD bytes 0x47 and 0x38 are added with a binary adder. Which correction is needed and what is the correct BCD result?
- A 4-way set uses tree pseudo-LRU with three bits: the root bit says which pair (ways 0-1 or 2-3) holds the next victim, and each pair bit…
- A program spends 70% of its time computing and 30% stalled on cache misses. A bigger cache cuts the stall time by 40% but lengthens the…
- A 4-way set holds blocks A, B, C, D in ways 0, 1, 2, 3; A is the least and D the most recently used. Tree pseudo-LRU uses three bits, all…
- A 16-bit unsigned integer (0..65535) is multiplied by a 16-bit two's-complement integer (−32768..32767). What is the minimum width of a…
- A loop computes y[i] += A[i][j] × x[j] for a 32×32 matrix of 4-byte floats (A in row-major order at address 0, x at 4096, y at 4224); for…