From: Chaitanya Kulkarni <chaitanyak@nvidia.com>
To: Zhang Yi <yi.zhang@huaweicloud.com>,
"linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>,
"linux-ext4@vger.kernel.org" <linux-ext4@vger.kernel.org>,
"linux-block@vger.kernel.org" <linux-block@vger.kernel.org>,
"dm-devel@lists.linux.dev" <dm-devel@lists.linux.dev>,
"linux-nvme@lists.infradead.org" <linux-nvme@lists.infradead.org>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"hch@lst.de" <hch@lst.de>, "tytso@mit.edu" <tytso@mit.edu>,
"djwong@kernel.org" <djwong@kernel.org>,
"yi.zhang@huawei.com" <yi.zhang@huawei.com>,
"chengzhihao1@huawei.com" <chengzhihao1@huawei.com>,
"yukuai3@huawei.com" <yukuai3@huawei.com>,
"yangerkun@huawei.com" <yangerkun@huawei.com>,
Shinichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Subject: Re: [RFC PATCH v2 0/8] fallocate: introduce FALLOC_FL_WRITE_ZEROES flag
Date: Wed, 15 Jan 2025 21:07:28 +0000 [thread overview]
Message-ID: <ccebada1-ac72-468e-8342-a9c645e5221e@nvidia.com> (raw)
In-Reply-To: <20250115114637.2705887-1-yi.zhang@huaweicloud.com>
On 1/15/25 03:46, Zhang Yi wrote:
> Currently, we can use the fallocate command to quickly create a
> pre-allocated file. However, on most filesystems, such as ext4 and XFS,
> fallocate create pre-allocation blocks in an unwritten state, and the
> FALLOC_FL_ZERO_RANGE flag also behaves similarly. The extent state must
> be converted to a written state when the user writes data into this
> range later, which can trigger numerous metadata changes and consequent
> journal I/O. This may leads to significant write amplification and
> performance degradation in synchronous write mode. Therefore, we need a
> method to create a pre-allocated file with written extents that can be
> used for pure overwriting. At the monent, the only method available is
> to create an empty file and write zero data into it (for example, using
> 'dd' with a large block size). However, this method is slow and consumes
> a considerable amount of disk bandwidth, we must pre-allocate files in
> advance but cannot add pre-allocated files while user business services
> are running.
it will be very useful if we can get some blktests for scsi/nvme/dm.
Please note that this not a blocker to get this path series to be merged,
but this will help everyone including regular tests runs we do to ensure
the stability of new interface.
if you do please CC and Shinichiro (added to CC list) to we can help those
tests review and potentially also can provide tested by tag tht can help
this work to move forward.
-ck
next prev parent reply other threads:[~2025-01-15 21:07 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-15 11:46 [RFC PATCH v2 0/8] fallocate: introduce FALLOC_FL_WRITE_ZEROES flag Zhang Yi
2025-01-15 11:46 ` [RFC PATCH v2 1/8] block: introduce BLK_FEAT_WRITE_ZEROES_UNMAP to queue limits features Zhang Yi
2025-01-28 6:44 ` Christoph Hellwig
2025-01-28 16:46 ` John Garry
2025-02-07 12:22 ` Zhang Yi
2025-02-07 12:31 ` Zhang Yi
2025-01-15 11:46 ` [RFC PATCH v2 2/8] nvme: set BLK_FEAT_WRITE_ZEROES_UNMAP if device supports DEAC bit Zhang Yi
2025-01-28 6:46 ` Christoph Hellwig
2025-02-07 12:24 ` Zhang Yi
2025-01-15 11:46 ` [RFC PATCH v2 3/8] scsi: sd: set BLK_FEAT_WRITE_ZEROES_UNMAP if device supports unmap zeroing mode Zhang Yi
2025-01-28 6:47 ` Christoph Hellwig
2025-01-15 11:46 ` [RFC PATCH v2 4/8] dm: add BLK_FEAT_WRITE_ZEROES_UNMAP support Zhang Yi
2025-02-07 22:14 ` Benjamin Marzinski
2025-02-08 3:12 ` Zhang Yi
2025-02-10 22:34 ` Benjamin Marzinski
2025-01-15 11:46 ` [RFC PATCH v2 5/8] fs: introduce FALLOC_FL_WRITE_ZEROES to fallocate Zhang Yi
2025-01-15 11:46 ` [RFC PATCH v2 6/8] block: add FALLOC_FL_WRITE_ZEROES support Zhang Yi
2025-01-15 11:46 ` [RFC PATCH v2 7/8] block: factor out common part in blkdev_fallocate() Zhang Yi
2025-01-15 11:46 ` [RFC PATCH v2 8/8] ext4: add FALLOC_FL_WRITE_ZEROES support Zhang Yi
2025-01-15 21:07 ` Chaitanya Kulkarni [this message]
2025-01-16 3:04 ` [RFC PATCH v2 0/8] fallocate: introduce FALLOC_FL_WRITE_ZEROES flag Zhang Yi
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=ccebada1-ac72-468e-8342-a9c645e5221e@nvidia.com \
--to=chaitanyak@nvidia.com \
--cc=chengzhihao1@huawei.com \
--cc=djwong@kernel.org \
--cc=dm-devel@lists.linux.dev \
--cc=hch@lst.de \
--cc=linux-block@vger.kernel.org \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=linux-scsi@vger.kernel.org \
--cc=shinichiro.kawasaki@wdc.com \
--cc=tytso@mit.edu \
--cc=yangerkun@huawei.com \
--cc=yi.zhang@huawei.com \
--cc=yi.zhang@huaweicloud.com \
--cc=yukuai3@huawei.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