System Management

An administrator must measure how many 4 KiB random read operations per second the volume mounted at /data can sustain. The results must reflect the storage device rather than the page cache. Which command does this?

Show the answer

Correct answerA. fio --name=t --filename=/data/t.fio --rw=randread --bs=4k --size=1g --direct=1

--rw=randread with --bs=4k generates small random reads, and --direct=1 bypasses the page cache so the device is measured. The tempting --direct=0 variant uses buffered I/O, so cached data inflates the results. The others test sequential reads or large blocks, which measure throughput.