From: Pranjal Shrivastava <praan@google.com>
To: Anna Schumaker <anna@kernel.org>
Cc: linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org,
Trond Myklebust <trondmy@kernel.org>,
Christoph Hellwig <hch@lst.de>,
Christoph Hellwig <hch@infradead.org>,
Shivaji Kant <shivajikant@google.com>
Subject: Re: [PATCH v1 6/7] nfs: Optimize direct I/O to use folios for requests
Date: Thu, 4 Jun 2026 07:59:14 +0000 [thread overview]
Message-ID: <aiEwUnZFZwwDPaQK@google.com> (raw)
In-Reply-To: <29a0511d-5216-46f2-a7e4-9c04ae9b1890@app.fastmail.com>
On Wed, Jun 03, 2026 at 03:14:35PM -0400, Anna Schumaker wrote:
> Hi Pranjal,
>
> On Wed, Jun 3, 2026, at 1:30 AM, Pranjal Shrivastava wrote:
> > Optimize nfs_direct_extract_pages() to group contiguous pages from the
> > same folio into single nfs_page structures. This effectively migrates
> > NFS Direct I/O from being page-based to being folio-based.
> >
> > Reduce the number of nfs_page allocations and subsequent iterations
> > by utilizing nfs_page_create_from_folio() to create aggregated
> > requests.
>
> I am seeing a LOT of failing xfstests after applying this patch (testing
> against various NFS versions over TCP with AUTH_SYS):
>
> +-------------+-----------+-------------+-------------+-------------+
> | testcase | tcp-sys-3 | tcp-sys-4.0 | tcp-sys-4.1 | tcp-sys-4.2 |
> +-------------+-----------+-------------+-------------+-------------+
> | generic/091 | failure | failure | failure | failure |
> | generic/130 | failure | failure | failure | failure |
> | generic/139 | skipped | skipped | skipped | failure |
> | generic/143 | skipped | skipped | skipped | failure |
> | generic/154 | skipped | skipped | skipped | failure |
> | generic/155 | skipped | skipped | skipped | failure |
> | generic/183 | skipped | skipped | skipped | failure |
> | generic/188 | skipped | skipped | skipped | failure |
> | generic/190 | skipped | skipped | skipped | failure |
> | generic/196 | skipped | skipped | skipped | failure |
> | generic/198 | failure | failure | failure | failure |
> | generic/203 | skipped | skipped | skipped | failure |
> | generic/214 | skipped | skipped | skipped | failure |
> | generic/240 | failure | failure | failure | failure |
> | generic/263 | failure | failure | failure | failure |
> | generic/287 | skipped | skipped | skipped | failure |
> | generic/290 | skipped | skipped | skipped | failure |
> | generic/292 | skipped | skipped | skipped | failure |
> | generic/330 | skipped | skipped | skipped | failure |
> | generic/444 | failure | skipped | skipped | skipped |
> | generic/450 | failure | failure | failure | failure |
> | generic/451 | failure | failure | failure | failure |
> | generic/586 | skipped | skipped | skipped | failure |
> | generic/647 | failure | failure | failure | failure |
> | generic/708 | failure | failure | failure | failure |
> | generic/729 | failure | failure | failure | failure |
> | generic/760 | failure | failure | failure | failure |
> +-------------+-----------+-------------+-------------+-------------+
>
> I'm curious if you've run xfstests against your changes, and if you
> see the same failures?
>
Hi Anna,
I've just run fio and haven't run xfstests (sorry wasn't aware of them)
I suppose it's this one [1] ? I will set up the environment.
Given that generic/091 (fsx) is failing across the board, I suspect there
is an error in the contiguous grouping logic in Patch 6, likely the
offset calculation or handles partial page boundaries.
I'll run xfstest with this patch and confirm.
Would you suggest breaking out the move to folio in a separate series if
patches 1-5 work fine?
> Thanks,
> Anna
>
[...]
Thanks,
Praan
[1] https://wiki.linux-nfs.org/wiki/index.php/Xfstests
next prev parent reply other threads:[~2026-06-04 7:59 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-03 5:30 [PATCH v1 0/7] nfs: Modernize Direct I/O path Pranjal Shrivastava
2026-06-03 5:30 ` [PATCH v1 1/7] nfs: make nfs_page pin-aware Pranjal Shrivastava
2026-06-03 16:39 ` Anna Schumaker
2026-06-04 7:51 ` Pranjal Shrivastava
2026-06-03 5:30 ` [PATCH v1 2/7] nfs: Track number of pinned pages in nfs_page Pranjal Shrivastava
2026-06-03 5:30 ` [PATCH v1 3/7] nfs: Introduce nfs_release_request_list helper Pranjal Shrivastava
2026-06-03 5:30 ` [PATCH v1 4/7] nfs: migrate direct I/O to iov_iter_extract_pages Pranjal Shrivastava
2026-06-03 5:30 ` [PATCH v1 5/7] nfs: introduce nfs_direct_extract_pages helper Pranjal Shrivastava
2026-06-03 5:30 ` [PATCH v1 6/7] nfs: Optimize direct I/O to use folios for requests Pranjal Shrivastava
2026-06-03 19:14 ` Anna Schumaker
2026-06-04 7:59 ` Pranjal Shrivastava [this message]
2026-06-03 5:30 ` [PATCH v1 7/7] nfs: Cleanup the nfs_page_create_from_page helper Pranjal Shrivastava
2026-06-03 5:33 ` [PATCH v1 0/7] nfs: Modernize Direct I/O path Pranjal Shrivastava
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=aiEwUnZFZwwDPaQK@google.com \
--to=praan@google.com \
--cc=anna@kernel.org \
--cc=hch@infradead.org \
--cc=hch@lst.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=shivajikant@google.com \
--cc=trondmy@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox