]> www.infradead.org Git - users/hch/blktests.git/commit
block/024: Increase I/O time
authorMasato Suzuki <masato.suzuki@wdc.com>
Wed, 20 Feb 2019 08:12:27 +0000 (17:12 +0900)
committerOmar Sandoval <osandov@fb.com>
Wed, 20 Feb 2019 18:19:47 +0000 (10:19 -0800)
commit32512d753396f63c903839006fdd37122d484cb9
tree31e07d72c3cf10cf422e2a8a17cc320bb9d107d5
parent5b8ef9eef1e0926e0c448178ac821b70a3f96880
block/024: Increase I/O time

The total time spent on write I/Os for the 3 dd executions will be at most
1500 * 3 * 0.5ms = 2250ms, that is, 2.25s. Due to system overhead and
timer triggers, a total write I/O time larger than this value is generally
reported through I/O stat. However, for a system with very low overhead
and/or very precise timers, the reported value can be under 2.5s, leading
to a rounded value equal to 2s, and not the 3s expected.

To avoid the test to fail due to this problem, increase the number of write
I/Os executed so that the total exact I/O time exceeds 2.5s, leading to a
rounded value equal to 3s. The change increases the number of I/Os of the
second and third dd calls to 1800, leading to an exact write I/O time of
(1500 + 1800 * 2) * 0.5 ms = 2.55s.

Signed-off-by: Masato Suzuki <masato.suzuki@wdc.com>
tests/block/024