GATE Computer ScienceVery hardGATE CS (PYQ pattern)
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 clock cycle by 5% for the whole program (compute and stall time both scale with the clock). What is the overall speed-up?
- A. 1.082
- B. 1.193
- C. 1.125
- D. 1.136
Correct answer: A. 1.082
New time = (0.7 + 0.3 × 0.6) × 1.05 = 0.924; speed-up = 1/0.924 = 1.082. Ignoring the clock penalty gives 1.136; applying it to the stalls only gives 1.093.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- 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…
- A direct-mapped cache has a 1-cycle hit time, a 4% miss rate and a 40-cycle miss penalty on a 1.0 ns clock. A 2-way version also hits in 1…
- An interrupt is recognised only at instruction boundaries. The longest instruction takes 30 cycles; on average an interrupt arrives…
- A program has base CPI 1.2 and makes 1.4 memory references per instruction. Per memory reference, 3% miss in L1 and 1.2% miss in L2 (a…