Recent changes (master)
The following changes since commit c77fe6859b6ef937a6ca900c1fab009175d721f8:
engines/http: use proper error value (2023-12-15 13:17:13 -0700)
are available in the Git repository at:
git://git.kernel.dk/fio.git master
for you to fetch changes up to be943a3ef5d94d8a9fefa11dc004789f66beb8e6:
t/zbd: add test case to confirm no write with rwmixwrite=0 option (2023-12-19 19:52:35 -0700)
----------------------------------------------------------------
Shin'ichiro Kawasaki (2):
zbd: avoid write with rwmixwrite=0 option
t/zbd: add test case to confirm no write with rwmixwrite=0 option
t/zbd/test-zbd-support | 23 +++++++++++++++++++++++ zbd.c | 3 ++- 2 files changed, 25 insertions(+), 1 deletion(-)
---
Diff of recent changes:
t/zbd/test-zbd-support +23 -0
@@ -1561,6 +1561,29 @@ test67() { grep -q 'Exceeded max_active_zones limit' "${logfile}.${test_number}" } +# Test rw=randrw and rwmixwrite=0 options do not issue write I/O unit +test68() { + local off size + + require_zbd || return "$SKIP_TESTCASE" + + reset_zone "${dev}" -1 + + # Write some data as preparation + off=$((first_sequential_zone_sector * 512)) + size=$min_seq_write_size + run_one_fio_job "$(ioengine "psync")" --rw=write --offset="$off" \ + --io_size="$size" --zonemode=strided \ + --zonesize="$zone_size" --zonerange="$zone_size" \ + >> "${logfile}.${test_number}" 2>&1 || return $? + # Run random mixed read and write specifying zero write ratio + run_fio_on_seq "$(ioengine "psync")" --rw=randrw --rwmixwrite=0 \ + --time_based --runtime=1s \ + >> "${logfile}.${test_number}" 2>&1 || return $? + # "WRITE:" shall be recoreded only once for the preparation + [[ $(grep -c "WRITE:" "${logfile}.${test_number}") == 1 ]] +} + SECONDS=0 tests=() dynamic_analyzer=()
zbd.c +2 -1
@@ -1876,7 +1876,8 @@ enum fio_ddir zbd_adjust_ddir(struct thread_data *td, struct io_u *io_u,if (ddir !=DDIR_READ || !td_rw (td))return ddir; -if (io_u->file->last_start[DDIR_WRITE ] !=-1ULL || td->o.read_beyond_wp) +if (io_u->file->last_start[DDIR_WRITE ] !=-1ULL || + td->o.read_beyond_wp || td->o.rwmix[DDIR_WRITE ] ==0 )return DDIR_READ ;return DDIR_WRITE ;