Posts

Showing posts from May, 2023

Mixups with rwmixread

I saw an interesting question about FIO on Twitter. I will paraphrase here: I observed that tests ran against a Ceph block device with FIO using the randrw parameter produce the exact same IOPS on read and write channels, but in other IO tests with the same drive, I saw the same amount of write IOPS but much higher read IOPS. Why? The glib answer is "because that's what you told FIO to do." When using rw=randrw, the default mix of reads and writes is 50/50. FIO will dutifully enforce this ratio in terms of IOPS. Outside of FIO, there is nothing forcing a 50/50 mix of read and write IOPS and the SSD is free to service more reads if it has the bandwidth to do so. The core issue is that read and write performance of SSDs is not symmetrical, but using the rwmixread parameter binds their performance together through IOPS. This has the tendency of producing lower read IOPS than what the SSD is otherwise capable of servicing. Consider a workload that is 70% read and 30% write, b...