GATE Computer ScienceVery hardGATE CS (PYQ pattern)
A cache has a 2-cycle hit time. 70% of memory accesses are reads, which miss 5% of the time with a 40-cycle miss penalty. The other 30% are stores, which go into a write buffer and never wait for memory, except that 10% of stores find the buffer full and then wait 8 extra cycles; a store otherwise takes the 2-cycle hit time. What is the average access time in cycles, averaged over all accesses (reads and stores)?
- A. 3.40
- B. 4.00
- C. 3.64
- D. 4.24
Correct answer: C. 3.64
Reads: 2 + 0.05 × 40 = 4.0 cycles. Stores: 2 + 0.1 × 8 = 2.8 cycles. Average over all accesses = 0.7 × 4.0 + 0.3 × 2.8 = 3.64. Ignoring the full buffer gives 3.40; averaging over reads only gives 4.00; letting stores also miss like reads gives 4.24.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- An 8-bit floating-point format has 1 sign bit, 4 exponent bits with bias 7 and 3 fraction bits, with IEEE-style rules (exponent field 0000…
- Five instructions occur with relative frequencies 0.4, 0.2, 0.2, 0.1 and 0.1. A fixed-length opcode would need 3 bits. What is the minimum…
- An in-order 2-issue processor starts up to two consecutive instructions per cycle. The second is issued with the first only if it has no…
- A loop body is LW, ADD (uses the loaded value), SW, ADDI, BNE and runs 1000 times on a 5-stage pipeline with forwarding: the ADD right…
- A cache has 64 sets of 4 ways. Exact LRU stores the full recency order of each set using the minimum number of bits; tree pseudo-LRU…
- A fully pipelined floating-point adder has latency 4 cycles and can start one addition every cycle; a dependent addition starts only when…