From: Jens Axboe Date: Mon, 9 Oct 2017 19:13:13 +0000 (-0600) Subject: engine/filecreate: use clat and reads for stats X-Git-Tag: fio-3.2~54 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=b47b45887dcd4c9bd7d0391a393809ef892a34ff 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 --- 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;