linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Gavin Shan <gshan@redhat.com>
Cc: linux-mm@kvack.org, linux-fsdevel@vger.kernel.org,
	linux-kernel@vger.kernel.org, david@redhat.com,
	djwong@kernel.org, willy@infradead.org, hughd@google.com,
	torvalds@linux-foundation.org, zhenyzha@redhat.com,
	shan.gavin@gmail.com
Subject: Re: [PATCH 0/4] mm/filemap: Limit page cache size to that supported by xarray
Date: Tue, 25 Jun 2024 11:37:20 -0700	[thread overview]
Message-ID: <20240625113720.a2fa982b5cb220b1068e5177@linux-foundation.org> (raw)
In-Reply-To: <20240625090646.1194644-1-gshan@redhat.com>

On Tue, 25 Jun 2024 19:06:42 +1000 Gavin Shan <gshan@redhat.com> wrote:

> Currently, xarray can't support arbitrary page cache size. More details
> can be found from the WARN_ON() statement in xas_split_alloc(). In our
> test whose code is attached below, we hit the WARN_ON() on ARM64 system
> where the base page size is 64KB and huge page size is 512MB. The issue
> was reported long time ago and some discussions on it can be found here
> [1].
> 
> [1] https://www.spinics.net/lists/linux-xfs/msg75404.html 
> 
> In order to fix the issue, we need to adjust MAX_PAGECACHE_ORDER to one
> supported by xarray and avoid PMD-sized page cache if needed. The code
> changes are suggested by David Hildenbrand.
> 
> PATCH[1] adjusts MAX_PAGECACHE_ORDER to that supported by xarray
> PATCH[2-3] avoids PMD-sized page cache in the synchronous readahead path
> PATCH[4] avoids PMD-sized page cache for shmem files if needed

Questions on the timing of these.

1&2 are cc:stable whereas 3&4 are not.

I could split them and feed 1&2 into 6.10-rcX and 3&4 into 6.11-rc1.  A
problem with this approach is that we're putting a basically untested
combination into -stable: 1&2 might have bugs which were accidentally
fixed in 3&4.  A way to avoid this is to add cc:stable to all four
patches.

What are your thoughts on this matter?


  parent reply	other threads:[~2024-06-25 18:37 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-25  9:06 Gavin Shan
2024-06-25  9:06 ` [PATCH 1/4] mm/filemap: Make MAX_PAGECACHE_ORDER acceptable to xarray Gavin Shan
2024-06-25 18:43   ` David Hildenbrand
2024-06-25  9:06 ` [PATCH 2/4] mm/filemap: Skip to allocate PMD-sized folios if needed Gavin Shan
2024-06-25 18:44   ` David Hildenbrand
2024-06-25  9:06 ` [PATCH 3/4] mm/readahead: Limit page cache size in page_cache_ra_order() Gavin Shan
2024-06-25 18:45   ` David Hildenbrand
2024-06-26  0:48     ` Gavin Shan
2024-06-25  9:06 ` [PATCH 4/4] mm/shmem: Disable PMD-sized page cache if needed Gavin Shan
2024-06-25 18:50   ` David Hildenbrand
2024-06-26  8:24     ` Ryan Roberts
2024-06-25 18:37 ` Andrew Morton [this message]
2024-06-25 18:51   ` [PATCH 0/4] mm/filemap: Limit page cache size to that supported by xarray David Hildenbrand
2024-06-25 18:58     ` Andrew Morton
2024-06-25 19:05       ` David Hildenbrand
2024-06-26  0:37         ` Gavin Shan
2024-06-26 20:38           ` Andrew Morton
2024-06-26 23:05             ` Gavin Shan
2024-06-26 20:54           ` Matthew Wilcox
2024-06-26 23:48             ` Gavin Shan

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=20240625113720.a2fa982b5cb220b1068e5177@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=david@redhat.com \
    --cc=djwong@kernel.org \
    --cc=gshan@redhat.com \
    --cc=hughd@google.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=shan.gavin@gmail.com \
    --cc=torvalds@linux-foundation.org \
    --cc=willy@infradead.org \
    --cc=zhenyzha@redhat.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