From b47b45887dcd4c9bd7d0391a393809ef892a34ff Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 9 Oct 2017 13:13:13 -0600 Subject: [PATCH] engine/filecreate: use clat and reads for stats Fio defaults to reads, we should use the same direction as the job though. Additionally, we must use clat latencies for tracking, as this is a sync engine and whole latencies are logged as completions. Signed-off-by: Jens Axboe --- engines/filecreate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/filecreate.c b/engines/filecreate.c index d753df24..00562c86 100644 --- a/engines/filecreate.c +++ b/engines/filecreate.c @@ -46,7 +46,7 @@ static int open_file(struct thread_data *td, struct fio_file *f) uint64_t nsec; nsec = ntime_since_now(&start); - add_lat_sample(td, DDIR_WRITE, nsec, 0, 0); + add_clat_sample(td, DDIR_READ, nsec, 0, 0); } return 0; -- 2.25.1