summaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-12-14 08:32:01 -0700
committerJens Axboe <axboe@kernel.dk>2018-12-14 08:32:46 -0700
commit96563db9995c5cebdce526f2bf97923153d4456b (patch)
treed3048d2b06459fb5fa0a52d2d5bf858bc262e9b6 /server.c
parenta5951dd7710352c373aa1018ec42181b07031165 (diff)
downloadfio-96563db9995c5cebdce526f2bf97923153d4456b.tar.gz
fio-96563db9995c5cebdce526f2bf97923153d4456b.tar.bz2
Add cache hit stats
With the aioring engine, we can get notified if a buffered read was a cache hit or if it hit media. Add that to the output stats for normal and json output. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'server.c')
-rw-r--r--server.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/server.c b/server.c
index 96e51819..2a337707 100644
--- a/server.c
+++ b/server.c
@@ -1563,6 +1563,9 @@ void fio_server_send_ts(struct thread_stat *ts, struct group_run_stats *rs)
p.ts.ss_deviation.u.i = cpu_to_le64(fio_double_to_uint64(ts->ss_deviation.u.f));
p.ts.ss_criterion.u.i = cpu_to_le64(fio_double_to_uint64(ts->ss_criterion.u.f));
+ p.ts.cachehit = cpu_to_le64(ts->cachehit);
+ p.ts.cachemiss = cpu_to_le64(ts->cachemiss);
+
convert_gs(&p.rs, rs);
dprint(FD_NET, "ts->ss_state = %d\n", ts->ss_state);