Recent changes (master)
The following changes since commit e27aa8b47c371491044ce9d7b3ee2f8488ba91b4:
Merge branch 'fix/no-rdwr-when-job-never-writes' of https://github.com/hmi-jeon/fio (2026-09-30 13:24:00 -0400)
are available in the Git repository at:
git://git.kernel.dk/fio.git master
for you to fetch changes up to daf3f3b837f81ac2464c6a67bba829c984d65a3f:
Merge branch 'master' of https://github.com/rorychen/fio-HSMR (2026-10-01 14:26:20 -0400)
----------------------------------------------------------------
Vincent Fu (1):
Merge branch 'master' of https://github.com/rorychen/fio-HSMR
rorychen (1):
fio replay: Add an option replay_issue to replay blktrace files from __BLK_TA_ISSUE
HOWTO.rst | 8 ++++++++ blktrace.c | 59 ++++++++++++++++++++++++++++++++++++++++++++++---------- cconv.c | 2 ++ fio.1 | 10 +++++++++- options.c | 11 +++++++++++ server.h | 2 +- thread_options.h | 4 ++-- 7 files changed, 82 insertions(+), 14 deletions(-)
---
Diff of recent changes:
HOWTO.rst +8 -0
@@ -3892,6 +3892,14 @@ I/O replay a device that doesn't support them. This option takes a comma separated list of read, write, trim, sync. +.. option:: replay_issue=bool + + When replaying I/O with :option:`read_iolog` the default behavior is to + replay the blktrace files from queue action. IO requests may be merged, causing + replayed I/O to differ from the actual I/O issued to the driver. By setting + this variable fio will replay from issue action which can more accurately + reflects device traffic but preserve the original behavior of DISCARD, NOTIFY, + and FLUSH requests from queue action. Threads, processes and job synchronization ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
blktrace.c +49 -10
77 lines not on this page · raw message
cconv.c +2 -0
@@ -330,6 +330,7 @@ int convert_thread_options_to_cpu(struct thread_options *o, o->gtod_cpu =le32_to_cpu (top->gtod_cpu); o->clocksource =le32_to_cpu (top->clocksource); o->no_stall =le32_to_cpu (top->no_stall); + o->replay_ta_issue =le32_to_cpu (top->replay_ta_issue); o->trim_percentage =le32_to_cpu (top->trim_percentage); o->trim_batch =le32_to_cpu (top->trim_batch); o->trim_zero =le32_to_cpu (top->trim_zero);
@@ -573,6 +574,7 @@ void convert_thread_options_to_net(struct thread_options_pack *top, top->gtod_cpu =cpu_to_le32 (o->gtod_cpu); top->clocksource =cpu_to_le32 (o->clocksource); top->no_stall =cpu_to_le32 (o->no_stall); + top->replay_ta_issue =cpu_to_le32 (o->replay_ta_issue); top->trim_percentage =cpu_to_le32 (o->trim_percentage); top->trim_batch =cpu_to_le32 (o->trim_batch); top->trim_zero =cpu_to_le32 (o->trim_zero);
fio.1 +9 -1
@@ -3601,7 +3601,6 @@ must be a power of 2. .BI replay_scale \fR=\fPint Scale bye offsets down by this factor when replaying traces. Should most likely use \fBreplay_align\fR as well. -.SS "Threads, processes and job synchronization" .TP .BI replay_skip \fR=\fPstr Sometimes it's useful to skip certain IO types in a replay trace. This could
@@ -3609,6 +3608,15 @@ be, for instance, eliminating the writes in the trace. Or not replaying the trims/discards, if you are redirecting to a device that doesn't support them. This option takes a comma separated list of read, write, trim, sync. .TP +.BI replay_issue \fR=\fPbool +When replaying I/O with \fBread_iolog\fR the default behavior is to replay +the blktrace files from queue action. IO requests may be merged, causing +replayed I/O to differ from the actual I/O issued to the driver. By setting +this variable fio will replay from issue action which can more accurately +reflects device traffic but preserve the original behavior of DISCARD, +NOTIFY, and FLUSH requests from queue action. +.SS "Threads, processes and job synchronization" +.TP .BI thread Fio defaults to creating jobs by using fork, however if this option is given, fio will create jobs by using POSIX Threads' function
options.c +11 -0
@@ -3890,6 +3890,17 @@ struct fio_option fio_options[FIO_MAX_OPTS] = { .category = FIO_OPT_C_IO, .group = FIO_OPT_G_IOLOG, }, + { + .name = "replay_issue", + .lname = "Replay from trace action by queue or issue", + .type = FIO_OPT_BOOL, + .off1 = offsetof(struct thread_options, replay_ta_issue), + .def = "0", + .parent = "read_iolog", + .help = "Replay the blktrace files from the trace actions of queue or issue", + .category = FIO_OPT_C_IO, + .group = FIO_OPT_G_IOLOG, + }, { .name = "exec_prerun", .lname = "Pre-execute runnable",
server.h +1 -1
@@ -51,7 +51,7 @@ struct fio_net_cmd_reply { };enum { -FIO_SERVER_VER =121 , +FIO_SERVER_VER =122 ,FIO_SERVER_MAX_FRAGMENT_PDU =1024 ,FIO_SERVER_MAX_CMD_MB =2048 ,
thread_options.h +2 -2
@@ -291,6 +291,7 @@ struct thread_options {unsigned int job_start_clock_id;enum fio_cs clocksource;unsigned int no_stall; +unsigned int replay_ta_issue;unsigned int trim_percentage;unsigned int trim_batch;unsigned int trim_zero;
@@ -318,7 +319,6 @@ struct thread_options {char *iops_log_file;char *hist_log_file;char *replay_redirect; -/* * Pre-run and post-run shell */
@@ -633,6 +633,7 @@ struct thread_options_pack {uint32_t job_start_clock_id;uint32_t clocksource;uint32_t no_stall; +uint32_t replay_ta_issue;uint32_t trim_percentage;uint32_t trim_batch;uint32_t trim_zero;
@@ -641,7 +642,6 @@ struct thread_options_pack {uint32_t lat_percentiles;uint32_t slat_percentiles;uint32_t percentile_precision; -uint32_t pad2;fio_fp64_t percentile_list[FIO_IO_U_LIST_MAX_LEN ];uint8_t read_iolog_file[FIO_TOP_STR_MAX ];