From: Christoph Hellwig <hch@lst.de>
To: Kundan Kumar <kundan.kumar@samsung.com>
Cc: Christoph Hellwig <hch@lst.de>,
"Darrick J. Wong" <djwong@kernel.org>,
Dave Chinner <david@fromorbit.com>,
jaegeuk@kernel.org, chao@kernel.org, viro@zeniv.linux.org.uk,
brauner@kernel.org, jack@suse.cz, miklos@szeredi.hu,
agruenba@redhat.com, trondmy@kernel.org, anna@kernel.org,
akpm@linux-foundation.org, willy@infradead.org,
mcgrof@kernel.org, clm@meta.com, amir73il@gmail.com,
axboe@kernel.dk, ritesh.list@gmail.com, dave@stgolabs.net,
wangyufei@vivo.com, linux-f2fs-devel@lists.sourceforge.net,
linux-fsdevel@vger.kernel.org, gfs2@lists.linux.dev,
linux-nfs@vger.kernel.org, linux-mm@kvack.org,
gost.dev@samsung.com, anuj20.g@samsung.com, vishak.g@samsung.com,
joshi.k@samsung.com
Subject: Re: [PATCH v2 00/16] Parallelizing filesystem writeback
Date: Fri, 7 Nov 2025 14:37:42 +0100 [thread overview]
Message-ID: <20251107133742.GA5596@lst.de> (raw)
In-Reply-To: <91367b76-e48b-46b4-b10b-43dfdd8472fa@samsung.com>
On Fri, Nov 07, 2025 at 02:54:42PM +0530, Kundan Kumar wrote:
> Predicting the Allocation Group (AG) for aged filesystems and passing
> this information to per-AG writeback threads appears to be a complex
> task.
Yes. But in the end aged file systems are what will see most usage.
Fresh file systems look nice in benchmarks, but they aren't what
users will mostly deal with.
> To segregate these I/O requests by AG, it is necessary to associate
> AG-specific information with the pages/folios in the page cache. Two
> possible approaches are:
> (1) storing AG information in the folio->private field, or
> (2) introducing new markers in the xarray to track AG-specific data.
>
> The AG-affined writeback thread processes specific pages from the page
> cache marked for its AG. Is this a viable approach, or are there
> alternative solutions that could be more effective?
Or maybe the per-AG scheme isn't that great after all and we just
need some other simple sharding scheme? Of course lock contention
will be nicer on a per-AG basis, but as you found out actually
mapping high-level writeback to AGs is pretty hard.
WARNING: multiple messages have this Message-ID (diff)
From: Christoph Hellwig <hch@lst.de>
To: Kundan Kumar <kundan.kumar@samsung.com>
Cc: ritesh.list@gmail.com, vishak.g@samsung.com, jack@suse.cz,
"Darrick J. Wong" <djwong@kernel.org>,
amir73il@gmail.com, Dave Chinner <david@fromorbit.com>,
gfs2@lists.linux.dev, linux-mm@kvack.org, clm@meta.com,
Christoph Hellwig <hch@lst.de>,
dave@stgolabs.net, agruenba@redhat.com, miklos@szeredi.hu,
gost.dev@samsung.com, willy@infradead.org, anuj20.g@samsung.com,
linux-nfs@vger.kernel.org, viro@zeniv.linux.org.uk,
jaegeuk@kernel.org, axboe@kernel.dk, brauner@kernel.org,
linux-f2fs-devel@lists.sourceforge.net, mcgrof@kernel.org,
anna@kernel.org, linux-fsdevel@vger.kernel.org,
akpm@linux-foundation.org, trondmy@kernel.org
Subject: Re: [f2fs-dev] [PATCH v2 00/16] Parallelizing filesystem writeback
Date: Fri, 7 Nov 2025 14:37:42 +0100 [thread overview]
Message-ID: <20251107133742.GA5596@lst.de> (raw)
In-Reply-To: <91367b76-e48b-46b4-b10b-43dfdd8472fa@samsung.com>
On Fri, Nov 07, 2025 at 02:54:42PM +0530, Kundan Kumar wrote:
> Predicting the Allocation Group (AG) for aged filesystems and passing
> this information to per-AG writeback threads appears to be a complex
> task.
Yes. But in the end aged file systems are what will see most usage.
Fresh file systems look nice in benchmarks, but they aren't what
users will mostly deal with.
> To segregate these I/O requests by AG, it is necessary to associate
> AG-specific information with the pages/folios in the page cache. Two
> possible approaches are:
> (1) storing AG information in the folio->private field, or
> (2) introducing new markers in the xarray to track AG-specific data.
>
> The AG-affined writeback thread processes specific pages from the page
> cache marked for its AG. Is this a viable approach, or are there
> alternative solutions that could be more effective?
Or maybe the per-AG scheme isn't that great after all and we just
need some other simple sharding scheme? Of course lock contention
will be nicer on a per-AG basis, but as you found out actually
mapping high-level writeback to AGs is pretty hard.
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
next prev parent reply other threads:[~2025-11-07 13:37 UTC|newest]
Thread overview: 72+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20251014120958epcas5p267c3c9f9dbe6ffc53c25755327de89f9@epcas5p2.samsung.com>
2025-10-14 12:08 ` [PATCH v2 00/16] Parallelizing filesystem writeback Kundan Kumar
2025-10-14 12:08 ` [f2fs-dev] " Kundan Kumar
2025-10-14 12:08 ` [PATCH v2 01/16] writeback: add infra for parallel writeback Kundan Kumar
2025-10-14 12:08 ` [f2fs-dev] " Kundan Kumar
2025-10-21 11:52 ` Jan Kara
2025-10-21 11:52 ` [f2fs-dev] " Jan Kara
2025-10-14 12:08 ` [PATCH v2 02/16] writeback: add support to initialize and free multiple writeback ctxs Kundan Kumar
2025-10-14 12:08 ` [f2fs-dev] " Kundan Kumar
2025-10-14 12:08 ` [PATCH v2 03/16] writeback: link bdi_writeback to its corresponding bdi_writeback_ctx Kundan Kumar
2025-10-14 12:08 ` [f2fs-dev] " Kundan Kumar
2025-10-14 12:08 ` [PATCH v2 04/16] writeback: affine inode to a writeback ctx within a bdi Kundan Kumar
2025-10-14 12:08 ` [f2fs-dev] " Kundan Kumar
2025-10-21 11:58 ` Jan Kara
2025-10-21 11:58 ` [f2fs-dev] " Jan Kara
2025-10-14 12:08 ` [PATCH v2 05/16] writeback: modify bdi_writeback search logic to search across all wb ctxs Kundan Kumar
2025-10-14 12:08 ` [f2fs-dev] " Kundan Kumar
2025-10-21 12:05 ` Jan Kara
2025-10-21 12:05 ` [f2fs-dev] " Jan Kara
2025-10-14 12:08 ` [PATCH v2 06/16] writeback: invoke all writeback contexts for flusher and dirtytime writeback Kundan Kumar
2025-10-14 12:08 ` [f2fs-dev] " Kundan Kumar
2025-10-14 12:08 ` [PATCH v2 07/16] writeback: modify sync related functions to iterate over all writeback contexts Kundan Kumar
2025-10-14 12:08 ` [f2fs-dev] " Kundan Kumar
2025-10-14 12:08 ` [PATCH v2 08/16] writeback: add support to collect stats for all writeback ctxs Kundan Kumar
2025-10-14 12:08 ` [f2fs-dev] " Kundan Kumar
2025-10-14 12:08 ` [PATCH v2 09/16] f2fs: add support in f2fs to handle multiple writeback contexts Kundan Kumar
2025-10-14 12:08 ` [f2fs-dev] " Kundan Kumar
2025-10-15 7:29 ` Christoph Hellwig
2025-10-15 7:29 ` [f2fs-dev] " Christoph Hellwig
2025-10-14 12:08 ` [PATCH v2 10/16] fuse: add support for multiple writeback contexts in fuse Kundan Kumar
2025-10-14 12:08 ` [f2fs-dev] " Kundan Kumar
2025-10-14 12:08 ` [PATCH v2 11/16] gfs2: add support in gfs2 to handle multiple writeback contexts Kundan Kumar
2025-10-14 12:08 ` [f2fs-dev] " Kundan Kumar
2025-10-14 12:08 ` [PATCH v2 12/16] nfs: add support in nfs " Kundan Kumar
2025-10-14 12:08 ` [f2fs-dev] " Kundan Kumar
2025-10-14 12:08 ` [PATCH v2 13/16] writeback: configure the num of writeback contexts between 0 and number of online cpus Kundan Kumar
2025-10-14 12:08 ` [f2fs-dev] " Kundan Kumar
2025-10-14 12:08 ` [PATCH v2 14/16] writeback: segregated allocation and free of writeback contexts Kundan Kumar
2025-10-14 12:08 ` [f2fs-dev] " Kundan Kumar
2025-10-14 12:08 ` [PATCH v2 15/16] writeback: added support to change the number of writebacks using a sysfs attribute Kundan Kumar
2025-10-14 12:08 ` [f2fs-dev] " Kundan Kumar
2025-10-14 12:08 ` [PATCH v2 16/16] writeback: added XFS support for matching writeback count to allocation group count Kundan Kumar
2025-10-14 12:08 ` [f2fs-dev] " Kundan Kumar
2025-10-15 7:30 ` Christoph Hellwig
2025-10-15 7:30 ` [f2fs-dev] " Christoph Hellwig
2025-10-15 1:03 ` [PATCH v2 00/16] Parallelizing filesystem writeback Andrew Morton
2025-10-15 1:03 ` [f2fs-dev] " Andrew Morton
2025-10-15 8:54 ` Kundan Kumar
2025-10-15 8:54 ` [f2fs-dev] " Kundan Kumar
2025-10-15 7:31 ` Christoph Hellwig
2025-10-15 7:31 ` [f2fs-dev] " Christoph Hellwig
2025-10-20 22:46 ` Dave Chinner
2025-10-20 22:46 ` [f2fs-dev] " Dave Chinner via Linux-f2fs-devel
2025-10-21 10:36 ` Kundan Kumar
2025-10-21 10:36 ` [f2fs-dev] " Kundan Kumar
2025-10-21 12:11 ` Jan Kara
2025-10-21 12:11 ` [f2fs-dev] " Jan Kara
2025-10-23 11:41 ` Kundan Kumar
2025-10-23 11:41 ` [f2fs-dev] " Kundan Kumar
2025-10-22 4:39 ` Christoph Hellwig
2025-10-22 4:39 ` [f2fs-dev] " Christoph Hellwig
2025-10-29 6:05 ` Kundan Kumar
2025-10-29 6:05 ` [f2fs-dev] " Kundan Kumar
2025-10-29 6:09 ` Darrick J. Wong
2025-10-29 6:09 ` [f2fs-dev] " Darrick J. Wong via Linux-f2fs-devel
2025-10-29 8:55 ` Christoph Hellwig
2025-10-29 8:55 ` [f2fs-dev] " Christoph Hellwig
2025-11-07 9:24 ` Kundan Kumar
2025-11-07 9:24 ` [f2fs-dev] " Kundan Kumar
2025-11-07 13:37 ` Christoph Hellwig [this message]
2025-11-07 13:37 ` Christoph Hellwig
2025-11-11 5:41 ` Kundan Kumar
2025-11-11 5:41 ` [f2fs-dev] " Kundan Kumar
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=20251107133742.GA5596@lst.de \
--to=hch@lst.de \
--cc=agruenba@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=amir73il@gmail.com \
--cc=anna@kernel.org \
--cc=anuj20.g@samsung.com \
--cc=axboe@kernel.dk \
--cc=brauner@kernel.org \
--cc=chao@kernel.org \
--cc=clm@meta.com \
--cc=dave@stgolabs.net \
--cc=david@fromorbit.com \
--cc=djwong@kernel.org \
--cc=gfs2@lists.linux.dev \
--cc=gost.dev@samsung.com \
--cc=jack@suse.cz \
--cc=jaegeuk@kernel.org \
--cc=joshi.k@samsung.com \
--cc=kundan.kumar@samsung.com \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-nfs@vger.kernel.org \
--cc=mcgrof@kernel.org \
--cc=miklos@szeredi.hu \
--cc=ritesh.list@gmail.com \
--cc=trondmy@kernel.org \
--cc=viro@zeniv.linux.org.uk \
--cc=vishak.g@samsung.com \
--cc=wangyufei@vivo.com \
--cc=willy@infradead.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.