GATE Computer ScienceVery hardGATE CS (PYQ pattern)
Over 1000 memory references, 40 miss in L1 and 20 of those also miss in L2. L1 hit time is 1 cycle, L2 hit time 10 cycles, and memory adds 100 cycles; each level is searched only after the previous one misses. There are 1.5 memory references per instruction. What are the average memory access time and the memory-stall cycles per instruction (cycles beyond the 1-cycle hit)?
- A. 3.4 cycles; 5.1 per instruction
- B. 3.4 cycles; 3.6 per instruction
- C. 1.5 cycles; 0.7 per instruction
- D. 3.4 cycles; 2.4 per instruction
Correct answer: B. 3.4 cycles; 3.6 per instruction
L1 miss rate 4%; L2 local miss rate 20/40 = 50% (global 2%). AMAT = 1 + 0.04 × (10 + 0.5 × 100) = 3.4. Stalls per reference = 2.4, per instruction 1.5 × 2.4 = 3.6. Using the 2% global rate as if local gives about 1.5; forgetting the 1.5 references per instruction gives 2.4.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- Radix-2 Booth recoding of an 8-bit multiplier performs one add or subtract at each change between adjacent bits (with an implied 0 to the…
- A pipeline with ideal CPI 1 handles branches (frequency 20%, of which 40% are taken) in one of three ways: (a) stall for 3 cycles on every…
- A three-word memory-to-memory instruction ADD @A, B (opcode word, address word A, address word B) computes M[B] ← M[M[A]] + M[B], where @A…
- 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…
- 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…