All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Hubbard <jhubbard@nvidia.com>
To: Christoph Hellwig <hch@lst.de>, Jan Kara <jack@suse.cz>
Cc: Matthew Wilcox <willy@infradead.org>,
	Jann Horn <jannh@google.com>, Pedro Falcato <pfalcato@suse.de>,
	David Howells <dhowells@redhat.com>,
	Rik van Riel <riel@surriel.com>, Qu Wenruo <wqu@suse.com>,
	"Darrick J. Wong" <djwong@kernel.org>,
	linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org,
	linux-mm@kvack.org, linux-xfs@vger.kernel.org,
	linux-rdma@vger.kernel.org, Leon Romanovsky <leon@kernel.org>,
	Jason Gunthorpe <jgg@nvidia.com>
Subject: Re: Removing ->dirty_folio
Date: Wed, 25 Nov 2026 13:35:58 -0800	[thread overview]
Message-ID: <8ba27f45-a99d-4ff8-acd6-e4eae302591c@nvidia.com> (raw)
In-Reply-To: <20261125143206.GA15229@lst.de>

On 11/25/26 6:32 AM, Christoph Hellwig wrote:
> On Wed, Nov 25, 2026 at 11:15:40AM +0100, Jan Kara wrote:
>> I think we agree regarding the direction where this should be going :).
> 
> Well, that's good.
> 
>> Regarding the tracking of longterm pins, I remember when we started working
>> of the GUP / pin_user_pages() fixes, one of the ideas that we floated was
>> to take pinned pages off the LRU (they cannot be freed anyway) and use that
>> space in struct folio for the tracking we need. John? even had patches for
>> that but the performance overhead was too big (primarily due to LRU locks
>> contention) for direct IO. But for longterm pins, the additional overhead
>> of the setup could be acceptable and that would significantly increase our
>> maneuvering space in what we can do (because longterm pins are yet another
>> page refcount in the end).
> 
> Yes, additional significant overhead for plain FOLL_PIN would be bad.
> But for longterm pins it should not be an issue, as they should last
> long enough to amortize additional cost

Let me go dig that up. I seem to recall that one variation added an "if" branch
to put_page(), and there was a thudding sound followed by silence when I
posted it. haha :)


thanks,
-- 
John Hubbard


      reply	other threads:[~2026-11-25 21:36 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-24 19:08 Removing ->dirty_folio Matthew Wilcox
2026-08-24 19:25 ` John Hubbard
2026-08-24 19:43   ` Matthew Wilcox
2026-08-24 19:51     ` John Hubbard
2026-08-24 21:05       ` Matthew Wilcox
2026-08-25  7:59     ` Pedro Falcato
2026-08-24 19:33 ` Rik van Riel
2026-08-25  8:21   ` David Hildenbrand (Arm)
2026-08-24 21:27 ` Boris Burkov
2026-08-25 19:47   ` Matthew Wilcox
2026-08-24 22:38 ` Qu Wenruo
2026-08-25 19:26   ` Matthew Wilcox
2026-08-25 22:33     ` Qu Wenruo
2026-08-26  4:53       ` Christoph Hellwig
2026-08-26  8:01     ` Christoph Hellwig
2026-08-25  6:48 ` David Howells
2026-08-25 19:16   ` Matthew Wilcox
2026-08-25  7:39 ` Christoph Hellwig
2026-08-25 19:14   ` Matthew Wilcox
2026-08-25  8:25 ` Pedro Falcato
2026-08-25 18:35   ` Matthew Wilcox
2026-08-26  7:54     ` Christoph Hellwig
2026-08-25 19:35 ` Jann Horn
2026-08-25 19:54   ` Matthew Wilcox
2026-08-25 20:06     ` Jann Horn
2026-08-26  0:02       ` Matthew Wilcox
2026-08-26  5:07     ` Christoph Hellwig
2026-08-26  7:42       ` Christoph Hellwig
2026-11-25  8:58       ` Christoph Hellwig
2026-11-25 10:15         ` Jan Kara
2026-11-25 14:32           ` Christoph Hellwig
2026-11-25 21:35             ` John Hubbard [this message]

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=8ba27f45-a99d-4ff8-acd6-e4eae302591c@nvidia.com \
    --to=jhubbard@nvidia.com \
    --cc=dhowells@redhat.com \
    --cc=djwong@kernel.org \
    --cc=hch@lst.de \
    --cc=jack@suse.cz \
    --cc=jannh@google.com \
    --cc=jgg@nvidia.com \
    --cc=leon@kernel.org \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=linux-xfs@vger.kernel.org \
    --cc=pfalcato@suse.de \
    --cc=riel@surriel.com \
    --cc=willy@infradead.org \
    --cc=wqu@suse.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 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.