Recent changes (master)
The following changes since commit 5e8865c0e08861558c1253c521dc9098d0c773ee:
t/io_uring: don't use *rand48_r() variants (2020-03-16 08:30:36 -0600)
are available in the Git repository at:
git://git.kernel.dk/fio.git master
for you to fetch changes up to 3bd2078bdd1c173f9d02bc20e2d630302555a8a0:
zbd: add test for stressing zone locking (2020-03-17 20:05:54 -0600)
----------------------------------------------------------------
Feng Tang (1):
gauss.c: correct the stddev initializtion
Naohiro Aota (6):
zbd: avoid initializing swd when unnecessary
zbd: reset one zone at a time
zbd: use zone_lock to lock a zone
backend: always clean up pending aios
io_u: ensure io_u_quiesce() to process all the IOs
zbd: add test for stressing zone locking
backend.c | 5 --- io_u.c | 6 ++-- lib/gauss.c | 2 +- t/zbd/test-zbd-support | 30 ++++++++++++++++++ zbd.c | 84 +++++++++++++++++++------------------------------- 5 files changed, 66 insertions(+), 61 deletions(-)
---
Diff of recent changes:
backend.c +0 -5
@@ -237,15 +237,10 @@ static void cleanup_pending_aio(struct thread_data *td) {int r; -if (td->error) -return ; -/* * get immediately available events, if any */ r =io_u_queued_complete (td,0 ); -if (r <0 ) -return ;/* * now cancel remaining active events
io_u.c +3 -3
@@ -606,7 +606,7 @@ static inline enum fio_ddir get_rand_ddir(struct thread_data *td)int io_u_quiesce (struct thread_data *td) { -int ret =0 , completed =0 ; +int ret =0 , completed =0 , err =0 ;/* * We are going to sleep, ensure that we flush anything pending as
@@ -625,7 +625,7 @@ int io_u_quiesce(struct thread_data *td)if (ret >0 ) completed += ret;else if (ret <0 ) -break ; + err = ret; }if (td->flags &TD_F_REGROW_LOGS )
@@ -634,7 +634,7 @@ int io_u_quiesce(struct thread_data *td)if (completed)return completed; -return ret; +return err; }static enum fio_ddir rate_ddir (struct thread_data *td,enum fio_ddir ddir)
lib/gauss.c +1 -1
@@ -51,7 +51,7 @@ void gauss_init(struct gauss_state *gs, unsigned long nranges, double dev, gs->nranges = nranges;if (dev !=0.0 ) { - gs->stddev =ceil ((double ) (nranges *100.0 ) / dev); + gs->stddev =ceil ((double )(nranges * dev) /100.0 );if (gs->stddev > nranges /2 ) gs->stddev = nranges /2 ; }
t/zbd/test-zbd-support +30 -0
@@ -755,6 +755,36 @@ test47() { grep -q 'zoneskip 1 is not a multiple of the device zone size' "${logfile}.${test_number}" } +# Multiple overlapping random write jobs for the same drive and with a +# limited number of open zones. This is similar to test29, but uses libaio +# to stress test zone locking. +test48() { + local i jobs=16 off opts=() + + off=$((first_sequential_zone_sector * 512 + 64 * zone_size)) + size=$((16*zone_size)) + [ -n "$is_zbd" ] && reset_zone "$dev" $((off / 512)) + opts=("--aux-path=/tmp" "--allow_file_create=0" "--significant_figures=10") + opts+=("--debug=zbd") + opts+=("--ioengine=libaio" "--rw=randwrite" "--direct=1") + opts+=("--time_based" "--runtime=30") + opts+=("--zonemode=zbd" "--zonesize=${zone_size}") + opts+=("--max_open_zones=4") + for ((i=0;i<jobs;i++)); do + opts+=("--name=job$i" "--filename=$dev" "--offset=$off" "--bs=16K") + opts+=("--io_size=$zone_size" "--iodepth=256" "--thread=1") + opts+=("--group_reporting=1") + done + + fio=$(dirname "$0")/../../fio + + { echo; echo "fio ${opts[*]}"; echo; } >>"${logfile}.${test_number}" + + timeout -v -s KILL 45s \ + "${dynamic_analyzer[@]}" "$fio" "${opts[@]}" \ + >> "${logfile}.${test_number}" 2>&1 || return $? +} + tests=() dynamic_analyzer=() reset_all_zones=
zbd.c +32 -52
140 lines not on this page · raw message