Recent changes (master)
The following changes since commit 53c82bb879532b994451c6abc7be80c94241d03b:
stat: fix comment about memory consumption (2022-09-12 10:45:56 -0400)
are available in the Git repository at:
git://git.kernel.dk/fio.git master
for you to fetch changes up to 08996af41b2566565cbcdee71766030a2c8ba377:
backend: number of ios not as expected for trimwrite (2022-09-13 15:03:21 -0600)
----------------------------------------------------------------
Ankit Kumar (1):
backend: number of ios not as expected for trimwrite
HOWTO.rst | 6 +++++- backend.c | 6 ++++-- fio.1 | 5 ++++- 3 files changed, 13 insertions(+), 4 deletions(-)
---
Diff of recent changes:
HOWTO.rst +5 -1
@@ -1129,7 +1129,11 @@ I/O type Random mixed reads and writes. **trimwrite** Sequential trim+write sequences. Blocks will be trimmed first, - then the same blocks will be written to. + then the same blocks will be written to. So if ``io_size=64K`` + is specified, Fio will trim a total of 64K bytes and also + write 64K bytes on the same trimmed blocks. This behaviour + will be consistent with ``number_ios`` or other Fio options + limiting the total bytes or number of I/O's. Fio defaults to read if the option is not specified. For the mixed I/O types, the default is to split them 50/50. For certain types of I/O the
backend.c +4 -2
@@ -971,9 +971,11 @@ static void do_io(struct thread_data *td, uint64_t *bytes_done) total_bytes += td->o.size;/* In trimwrite mode, each byte is trimmed and then written, so -* allow total_bytes to be twice as big */ -if (td_trimwrite (td)) +* allow total_bytes or number of ios to be twice as big */ +if (td_trimwrite (td)) { total_bytes += td->total_io_size; + td->o.number_ios *=2 ; + } while ((td->o.read_iolog_file && !flist_empty(&td->io_log_list)) || (!flist_empty(&td->trim_list)) || !io_issue_bytes_exceeded(td) ||
fio.1 +4 -1
@@ -900,7 +900,10 @@ Random mixed reads and writes. .TP .B trimwrite Sequential trim+write sequences. Blocks will be trimmed first, -then the same blocks will be written to. +then the same blocks will be written to. So if `io_size=64K' is specified, +Fio will trim a total of 64K bytes and also write 64K bytes on the same +trimmed blocks. This behaviour will be consistent with `number_ios' or +other Fio options limiting the total bytes or number of I/O's. .RE .P Fio defaults to read if the option is not specified. For the mixed I/O