GATE Computer ScienceHardGATE CS (PYQ pattern)
A physically indexed L2 cache is 2 MB, 8-way set-associative with 64-byte blocks. How many page colours (classes of frames that map to the same group of cache sets) are there with 4 KB pages, and with 16 KB pages?
- A. 512 and 128
- B. 64 and 4
- C. 8 and 2
- D. 64 and 16
Correct answer: D. 64 and 16
One way spans 2 MB / 8 = 256 KB of addresses, i.e. 2¹² sets of 64 B. Colours = way size / page size: 256 KB / 4 KB = 64 and 256 KB / 16 KB = 16. Ignoring associativity gives 512 and 128.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A multiplexed bus needs 1 address cycle and 3 wait cycles before data. Option P: a 32-bit bus that transfers 4-word bursts (1 + 3 + 4…
- A classic 5-stage pipeline (IF, ID, EX, MEM, WB) has no forwarding; the register file is written in the first half of a cycle and read in…
- A hierarchy has L1 (1 ns), L2 (4 ns), L3 (15 ns) and DRAM (120 ns); each level is accessed only after the previous one misses. Measured…
- A 16 × 16 matrix of 4-byte ints is stored in row-major order from address 0. It is traversed column by column on a direct-mapped 2 KB…
- An unpipelined multiplier is busy for 4 cycles starting in the cycle a multiply issues; a later multiply that reaches issue while it is…
- Which of the following are correct for addressing modes? I. PC-relative addressing helps make code position independent. II. Register…