Fix skewed latencies for rate IOPS
authorSEOKYOUNG KO <seokyoung.ko@samsung.com>
Thu, 7 Mar 2013 11:34:31 +0000 (12:34 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 7 Mar 2013 11:34:31 +0000 (12:34 +0100)
commitc3a1b740381cb19e467c8588562bac4d6cbbb199
tree176475605c478091ec9f247b291246e7ef109270
parent5b3faae6f26beb2572ebeae7caf8cd7d693bb818
Fix skewed latencies for rate IOPS

- when -rate_iops is specified, FIO periodically calls usleep() to limit IOPS

- Before usleep(), FIO always wait until the completion of all pending I/O

- For all I/O completions, FIO shows erroneous behavior of logging their
  latency, with that of the longest latency IO sample.

- w/ QD=8/ mixed R:W=33:66, up to 7 samples may get false latency log when
  waiting all I/O completions => False report of latency distribution

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_u.c