backend: tweaks to missed rate thinktime
authorJens Axboe <axboe@kernel.dk>
Tue, 19 Dec 2017 17:17:41 +0000 (10:17 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Dec 2017 17:17:41 +0000 (10:17 -0700)
commit62b858f646ad4fce971fbde21ff4859ec84bc281
tree7f9bfe1cadc7b24957a01ebb28088e4dcae3c050
parent9b50942ecec9c79fa82050c503fe313cfd87ac96
backend: tweaks to missed rate thinktime

shimrot says:

"May I suggest a tweak to the backend.c::handle_thinktime calculation of
"over"? That is, adjust based on the rate per byte similar to what
you've done. That is, if thinktime is greater than one op worth of
bytes, then subtract one op worth of bytes. But, if think time is
greater than one ops worth, instead add the missing the number of bytes
a full op would have exceeded the think time."

See: https://github.com/axboe/fio/issues/497#issuecomment-352816955

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