From 0dd8377ff92f2cfb6670061782e28fd52d89a52f Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 4 Sep 2007 12:38:28 +0200 Subject: [PATCH 1/1] Fix eta for pure read workload with verify enabled Verify doubles the expected IO count, but that is only true if we are first writing a file and then reading it back to verify. If the workload running is just reading back data to verify it, the IO count is already correct. Signed-off-by: Jens Axboe --- eta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eta.c b/eta.c index 350815ee..625b1f88 100644 --- a/eta.c +++ b/eta.c @@ -107,7 +107,7 @@ static int thread_eta(struct thread_data *td, unsigned long elapsed) * if writing, bytes_total will be twice the size. If mixing, * assume a 50/50 split and thus bytes_total will be 50% larger. */ - if (td->o.do_verify && td->o.verify) { + if (td->o.do_verify && td->o.verify && td_write(td)) { if (td_rw(td)) bytes_total = bytes_total * 3 / 2; else -- 2.25.1