path: root/thread_options.h
diff options
authorJens Axboe <>2017-09-13 22:07:31 -0600
committerJens Axboe <>2017-09-13 22:07:31 -0600
commitb599759ba565e7f2f573af364e6da4fe6d556a90 (patch)
tree09e905d42b6860bedca8b3f12f67d547593d4baa /thread_options.h
parent8945237ceaa322d5cb0b2f601e4ccf1d85680280 (diff)
Add support for doing total latency percentiles
By default, fio does completion latency percentiles. Sometimes what you want is total IO latency percentiles, including the submission part as well. If that's your thing, then set lat_percentiles=1 and get that instead of the default completion latency percentiles. Signed-off-by: Jens Axboe <>
Diffstat (limited to 'thread_options.h')
1 files changed, 2 insertions, 1 deletions
diff --git a/thread_options.h b/thread_options.h
index fd6576e2..1813cdc7 100644
--- a/thread_options.h
+++ b/thread_options.h
@@ -240,6 +240,7 @@ struct thread_options {
unsigned int trim_zero;
unsigned long long trim_backlog;
unsigned int clat_percentiles;
+ unsigned int lat_percentiles;
unsigned int percentile_precision; /* digits after decimal for percentiles */
fio_fp64_t percentile_list[FIO_IO_U_LIST_MAX_LEN];
@@ -343,7 +344,7 @@ struct thread_options_pack {
uint32_t iodepth_batch_complete_min;
uint32_t iodepth_batch_complete_max;
uint32_t serialize_overlap;
- uint32_t pad3;
+ uint32_t lat_percentiles;
uint64_t size;
uint64_t io_size;