Recent changes (master)
The following changes since commit df4bf1178ed773986129da6038961388af926971:
log: fix bad < 0 check for unsigned (2017-12-29 08:45:22 -0700)
are available in the git repository at:
git://git.kernel.dk/fio.git master
for you to fetch changes up to c619c0fdb28fbe043d7a7f75bba2ea82b4eca298:
Merge branch 'percentiles' of https://github.com/sitsofe/fio (2018-01-02 09:05:44 -0700)
----------------------------------------------------------------
Jens Axboe (1):
Merge branch 'percentiles' of https://github.com/sitsofe/fio
Sitsofe Wheeler (2):
stat: make lat_percentiles=1 use sample count from lat_stat
init: disable percentiles when latency gathering is disabled
init.c | 5 +++++ stat.c | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-)
---
Diff of recent changes:
init.c +5 -0
@@ -938,6 +938,11 @@ static int fixup_options(struct thread_data *td) ret =1 ; } +if (o->disable_lat) + o->lat_percentiles =0 ; +if (o->disable_clat) + o->clat_percentiles =0 ; +/* * Fix these up to be nsec internally */
stat.c +8 -1
@@ -460,8 +460,15 @@ static void show_ddir_status(struct group_run_stats *rs, struct thread_stat *ts,display_lat (" lat" , min, max, mean, dev, out);if (ts->clat_percentiles || ts->lat_percentiles) { +uint64_t samples; + +if (ts->clat_percentiles) + samples = ts->clat_stat[ddir].samples; +else + samples = ts->lat_stat[ddir].samples; +show_clat_percentiles (ts->io_u_plat[ddir], - ts->clat_stat[ddir].samples, + samples, ts->percentile_list, ts->percentile_precision, ts->clat_percentiles, out);