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?
- A. 2 (write data, write parity)
- B. 5 (one per disk)
- C. 1 (write data only)
- 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
- Which RAID level can survive the failure of ANY two disks at the same time?
- A device transfers data at 2 MB/s using programmed I/O with an interrupt per byte; handling each interrupt takes 2 µs of CPU time. What…
- A disk has average seek 8 ms, average rotational latency 4 ms and a sustained transfer rate of 100 MB/s. What is the effective bandwidth…
- A journaling file system in ORDERED mode (like ext4's default) is used. Which statement about a crash is correct?
- A hard link and a symbolic (soft) link both point to file F. F is then deleted with rm F. What happens?
- Why can a hard link not normally point to a directory or to a file on a different file system?