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)
- 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>

No differences found