public inbox for fio@vger.kernel.org
 help / color / mirror / Atom feed
From: Damien Le Moal <dlemoal@kernel.org>
To: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>,
	fio@vger.kernel.org, Jens Axboe <axboe@kernel.dk>,
	Vincent Fu <vincentfu@gmail.com>
Subject: Re: [PATCH v2 4/8] doc: explain the option write_zone_remainder
Date: Fri, 27 Feb 2026 14:06:01 +0900	[thread overview]
Message-ID: <309b8511-d964-4ae3-9394-243cc8056ea2@kernel.org> (raw)
In-Reply-To: <20260216075936.3318729-5-shinichiro.kawasaki@wdc.com>

On 2/16/26 16:59, Shin'ichiro Kawasaki wrote:
> The recent commit introduced the option write_zone_remainder. Explain
> how it changes handling of zone end remainders. Also, amend the zbd
> zone mode description to explain the default handling of zone end
> remainders.
> 
> Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
> ---
>  HOWTO.rst | 26 +++++++++++++++++++++++++-
>  fio.1     | 25 ++++++++++++++++++++++---
>  2 files changed, 47 insertions(+), 4 deletions(-)
> 
> diff --git a/HOWTO.rst b/HOWTO.rst
> index d31851e9..148c650e 100644
> --- a/HOWTO.rst
> +++ b/HOWTO.rst
> @@ -1034,7 +1034,14 @@ Target file/device
>  				all zones instead of being restricted to a
>  				single zone. The :option:`zoneskip` parameter
>  				is ignored. :option:`zonerange` and
> -				:option:`zonesize` must be identical.
> +				:option:`zonesize` must be identical. When the
> +				specified block size is not aligned with the
> +				zone size or the write pointer positions at
> +				workload start, write workloads create unwritten

				If the size of the unwritten space in a zone is
				not a multiple of the specified block size at
				workload start, write workloads create unwritten

> +				remainder areas at the ends of zones and keep
> +				the zones in open conditions. To free up the
> +				open zone resources, fio issues zone finish
> +				operations to the zones with the remainders.
>  				Trim is handled using a zone reset operation.
>  				Trim only considers non-empty sequential write
>  				required and sequential write preferred zones.
> @@ -1167,6 +1174,23 @@ Target file/device
>  	asynchronous IO engine and :option:`verify` workload are specified,
>  	errors out. Default: false.
>  
> +.. option:: write_zone_remainders=bool
> +
> +	When the specified block size is not aligned with the zone size or the
> +	write pointer positions at workload start, write workloads create

Same as above.

> +	unwritten remainder areas at the ends of zones. By default, fio issues
> +	zone finish operations on such zones, transitioning them to the full
> +	condition and freeing up open zone resources. However, zone finish
> +	operations introduces waits for in-flight writes, reducing overall write
> +	throughput. If this option is specified, fio writes data to the
> +	remainder areas instead of performing zone finish operations. This
> +	improves write throughput by avoiding waits for in-flight writes,
> +	particularly in asynchronous write workloads. The drawback of this
> +	option is that it requires fio to perform writes smaller than the
> +	minimum block size. Consequently, the option :option:`norandommap` must
> +	be set. If :option:`norandommap` is not set, it is automatically set.
> +	Default: false.

With the above and similar fix in the man page, feel free to add:

Reviewed-by: Damien Le Moal <dlemoal@kernel.org>

-- 
Damien Le Moal
Western Digital Research

  reply	other threads:[~2026-02-27  5:06 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-16  7:59 [PATCH v2 0/8] zbd: fix problems of random write with unaligned block size Shin'ichiro Kawasaki
2026-02-16  7:59 ` [PATCH v2 1/8] zbd: fix zone selection of random writes Shin'ichiro Kawasaki
2026-02-27  4:48   ` Damien Le Moal
2026-02-16  7:59 ` [PATCH v2 2/8] zbd: fix write zone accounting Shin'ichiro Kawasaki
2026-02-27  4:53   ` Damien Le Moal
2026-02-27 12:08     ` Shinichiro Kawasaki
2026-02-16  7:59 ` [PATCH v2 3/8] zbd: introduce write_zone_remainder option Shin'ichiro Kawasaki
2026-02-27  4:59   ` Damien Le Moal
2026-02-16  7:59 ` [PATCH v2 4/8] doc: explain the option write_zone_remainder Shin'ichiro Kawasaki
2026-02-27  5:06   ` Damien Le Moal [this message]
2026-02-16  7:59 ` [PATCH v2 5/8] t/zbd: add -m option to enable write_zone_remainder option Shin'ichiro Kawasaki
2026-02-16  7:59 ` [PATCH v2 6/8] t/zbd: avoid test case 14 failure with " Shin'ichiro Kawasaki
2026-02-16  7:59 ` [PATCH v2 7/8] t/zbd: avoid test case 33 " Shin'ichiro Kawasaki
2026-02-16  7:59 ` [PATCH v2 8/8] t/zbd: avoid test case 71 " Shin'ichiro Kawasaki
2026-02-16  9:10 ` [PATCH v2 0/8] zbd: fix problems of random write with unaligned block size fiotestbot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=309b8511-d964-4ae3-9394-243cc8056ea2@kernel.org \
    --to=dlemoal@kernel.org \
    --cc=axboe@kernel.dk \
    --cc=fio@vger.kernel.org \
    --cc=shinichiro.kawasaki@wdc.com \
    --cc=vincentfu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox