CS FundamentalsHardGATE CS

In a 5-disk RAID 5 array, a small write updates a single data block. Using the read-modify-write method, how many disk I/O operations does it take?

  1. A. 2 (write data, write parity)
  2. B. 5 (one per disk)
  3. C. 1 (write data only)
  4. D. 4 (read old data, read old parity, write new data, write new parity)

Correct answer: D. 4 (read old data, read old parity, write new data, write new parity)

New parity = old parity XOR old data XOR new data, so two reads and two writes are needed. This small-write penalty is a key RAID 5 drawback.

More Operating Systems questions

Exams that ask this topic