From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa4.hgst.iphmx.com ([216.71.154.42]:22295 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229707AbhHFBH1 (ORCPT ); Thu, 5 Aug 2021 21:07:27 -0400 From: Shin'ichiro Kawasaki Subject: [PATCH v3 0/5] zbd: Support zone reset by trim Date: Fri, 6 Aug 2021 10:07:06 +0900 Message-Id: <20210806010711.1128153-1-shinichiro.kawasaki@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: fio@vger.kernel.org To: fio@vger.kernel.org, Jens Axboe Cc: Damien Le Moal , Dmitry Fomichev , Niklas Cassel , Shinichiro Kawasaki Trim workload is currently not supported for zonemode=zbd. This patch series enables it by resetting zones for trim I/Os. This allows fio to measure performance of zoned block devices using more realistic workloads which mixes write and trim. The first patch prepares for trim support by modifying the helper function zbd_find_zone(). The second patch adds zone reset for trim. The third patch enables trim workload for libzbc I/O engine. The fourth patch updates the HOWTO file to describe the added functionality. The fifth patch adds a test case that exercises trim operation with zonemode=zbd. Changes from v2: * Reflected comments on the cover letter and the 4th patch Changes from v1: * Separated HOWTO/man changes from 2nd patch as 4th patch * Reflected various comments on the list Shin'ichiro Kawasaki (5): zbd: Add min_bytes argument to zbd_find_zone() zbd: Support zone reset by trim engines/libzbc: Enable trim for libzbc I/O engine HOWTO/man: Describe trim support by zone reset for zoned devices t/zbd: Add test #58 to test zone reset by trim workload HOWTO | 8 ++++ engines/libzbc.c | 13 ++++--- fio.1 | 9 +++-- io_u.c | 9 +++++ t/zbd/test-zbd-support | 26 +++++++++++++ zbd.c | 85 +++++++++++++++++++++++++++++++++++------- zbd.h | 2 + 7 files changed, 128 insertions(+), 24 deletions(-) -- 2.31.1