summaryrefslogtreecommitdiff
path: root/io_u.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2017-12-06 12:27:07 -0700
committerJens Axboe <axboe@kernel.dk>2017-12-06 12:27:07 -0700
commit1a9bf8146d9842d268bcb01f4286325a8cfccc21 (patch)
tree3347f14fbf0742140fcb7cecd24c77ca2fe2fc4d /io_u.c
parent67bfebe6af2e6d030ec739fa45ccb211f3e50a0e (diff)
downloadfio-1a9bf8146d9842d268bcb01f4286325a8cfccc21.tar.gz
fio-1a9bf8146d9842d268bcb01f4286325a8cfccc21.tar.bz2
Add option to ignore thinktime for rated IO
By default, fio will ignore thinktime when calculating the next time to issue and IO, if rated IO is specified. This leads to fio entering a catch-up type of mode after doing the specified sleep. For some workloads, that may not be useful. If someone asks for a specific amount of IOPS and sets a thinktime, they may want to exclude the sleep time. Fixes: https://github.com/axboe/fio/issues/497 Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_u.c')
-rw-r--r--io_u.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/io_u.c b/io_u.c
index 44933a18..7ccbd312 100644
--- a/io_u.c
+++ b/io_u.c
@@ -775,8 +775,7 @@ static enum fio_ddir rate_ddir(struct thread_data *td, enum fio_ddir ddir)
if (td->o.io_submit_mode == IO_MODE_INLINE)
io_u_quiesce(td);
- usec = usec_sleep(td, usec);
-
+ usec_sleep(td, usec);
return ddir;
}