GATE Computer ScienceHardGATE CS (PYQ pattern)
Memory access takes 200 ns. A page fault takes 8 ms to service if the replaced page is clean and 20 ms if it is dirty (it must first be written out); 70% of replaced pages are dirty. What is the largest page-fault rate p (faults per access) that keeps the effective access time within 10% of 200 ns?
- A. 2.50e-06
- B. 1.22e-06
- C. 1.00e-06
- D. 1.72e-06
Correct answer: B. 1.22e-06
Average fault time = 0.3 × 8 + 0.7 × 20 = 16.4 ms. (1 − p) × 200 + p × 16.4×10⁶ ≤ 220 → p ≤ 20 / (16.4×10⁶ − 200) = 1.22e-06, about one fault per 820,000 accesses. Ignoring dirty pages gives 2.50e-06; swapping the 70/30 weights gives 1.72e-06.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- In IEEE 754 single precision with round-to-nearest-even, which of these is correct for computing 1.0 + 2⁻²⁴ and (1 + 2⁻²³) + 2⁻²⁴?
- In IEEE 754 single precision with round-to-nearest-even, let x = 3 × 2⁻¹⁴⁹ (three times the smallest positive denormal). What are x / 2…
- A memory protects data with a SECDED Hamming code (single-error correction plus one overall parity bit for double-error detection). How…
- A virtually indexed, physically tagged cache is 32 KB, 4-way set-associative with 32-byte blocks, and pages are 4 KB. To avoid synonyms…
- A loop reads a[i] and then b[i] for i = 0..1023, where a and b are int arrays (4 bytes) starting at byte addresses 0 and 4096. The data…
- On a 5-stage pipeline with forwarding, 30% of instructions are loads. Half of them are followed immediately by a dependent instruction…