linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH blktests] zbd/005: remove offset option of blkzone reset command
@ 2025-07-25  8:08 Shin'ichiro Kawasaki
  2025-07-25 10:22 ` Damien Le Moal
  2025-08-04  8:37 ` Shinichiro Kawasaki
  0 siblings, 2 replies; 3+ messages in thread
From: Shin'ichiro Kawasaki @ 2025-07-25  8:08 UTC (permalink / raw)
  To: linux-block; +Cc: Damien Le Moal, Shin'ichiro Kawasaki

The test case zbd/005 performs sequential writes to all sequential
write required zone on the test target zoned block device. To prepare
the device for this operation, the test invokes the blkzone reset
command. However, it takes very long time to complete.

The root cause of the long reset time is the offset option of the
blkzone reset command. This option specifies the first sequential write
required zone. When the offset options is provided, the kernel processes
the reset operation zone by zone. As a result, a separated zone reset
command is issued to each sequential write required zone, significantly
increasing the overall time.

To reduce the execution time of the blkzone reset command, remove the
offset option. Without this option, the kernel can perform a single zone
reset operation that resets all sequential write required zones.

Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
---
 tests/zbd/005 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/zbd/005 b/tests/zbd/005
index 4aa1ab5..790d24e 100755
--- a/tests/zbd/005
+++ b/tests/zbd/005
@@ -46,7 +46,7 @@ test_device() {
 		zbdmode=("--zonemode=zbd" "--max_open_zones=${moaz}")
 	fi
 
-	blkzone reset -o "${ZONE_STARTS[zone_idx]}" "${TEST_DEV}"
+	blkzone reset "${TEST_DEV}"
 
 	_test_dev_set_scheduler deadline
 
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH blktests] zbd/005: remove offset option of blkzone reset command
  2025-07-25  8:08 [PATCH blktests] zbd/005: remove offset option of blkzone reset command Shin'ichiro Kawasaki
@ 2025-07-25 10:22 ` Damien Le Moal
  2025-08-04  8:37 ` Shinichiro Kawasaki
  1 sibling, 0 replies; 3+ messages in thread
From: Damien Le Moal @ 2025-07-25 10:22 UTC (permalink / raw)
  To: Shin'ichiro Kawasaki, linux-block

On 7/25/25 17:08, Shin'ichiro Kawasaki wrote:
> The test case zbd/005 performs sequential writes to all sequential
> write required zone on the test target zoned block device. To prepare
> the device for this operation, the test invokes the blkzone reset
> command. However, it takes very long time to complete.
> 
> The root cause of the long reset time is the offset option of the
> blkzone reset command. This option specifies the first sequential write
> required zone. When the offset options is provided, the kernel processes
> the reset operation zone by zone. As a result, a separated zone reset
> command is issued to each sequential write required zone, significantly
> increasing the overall time.
> 
> To reduce the execution time of the blkzone reset command, remove the
> offset option. Without this option, the kernel can perform a single zone
> reset operation that resets all sequential write required zones.
> 
> Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>

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


-- 
Damien Le Moal
Western Digital Research

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH blktests] zbd/005: remove offset option of blkzone reset command
  2025-07-25  8:08 [PATCH blktests] zbd/005: remove offset option of blkzone reset command Shin'ichiro Kawasaki
  2025-07-25 10:22 ` Damien Le Moal
@ 2025-08-04  8:37 ` Shinichiro Kawasaki
  1 sibling, 0 replies; 3+ messages in thread
From: Shinichiro Kawasaki @ 2025-08-04  8:37 UTC (permalink / raw)
  To: linux-block@vger.kernel.org; +Cc: Damien Le Moal

On Jul 25, 2025 / 17:08, Shin'ichiro Kawasaki wrote:
> The test case zbd/005 performs sequential writes to all sequential
> write required zone on the test target zoned block device. To prepare
> the device for this operation, the test invokes the blkzone reset
> command. However, it takes very long time to complete.
> 
> The root cause of the long reset time is the offset option of the
> blkzone reset command. This option specifies the first sequential write
> required zone. When the offset options is provided, the kernel processes
> the reset operation zone by zone. As a result, a separated zone reset
> command is issued to each sequential write required zone, significantly
> increasing the overall time.
> 
> To reduce the execution time of the blkzone reset command, remove the
> offset option. Without this option, the kernel can perform a single zone
> reset operation that resets all sequential write required zones.
> 
> Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>

FYI, I applied this patch.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-08-04  8:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-25  8:08 [PATCH blktests] zbd/005: remove offset option of blkzone reset command Shin'ichiro Kawasaki
2025-07-25 10:22 ` Damien Le Moal
2025-08-04  8:37 ` Shinichiro Kawasaki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).