Re: [RFC PATCH] mm: move xa forward when run across zombie page

From: Matthew Wilcox
Date: Wed Oct 19 2022 - 09:21:51 EST


On Wed, Oct 19, 2022 at 01:48:37PM +0800, Zhaoyang Huang wrote:
> On Wed, Oct 19, 2022 at 12:47 PM Dave Chinner <david@xxxxxxxxxxxxx> wrote:
> > I removed the mapping_set_large_folios() calls in the XFS inode
> > instantiation and the test code has now run over 55,000 iterations
> > without failing. The most iterations I'd seen with large folios
> > enabled was about 7,000 - typically it would fail within 2-3,000
> > iterations.
> hint from my side. The original problem I raised is under v5.15 where
> there is no folio yet.

But 5.15 does use 2MB pages in shmem. You haven't really provided
any information, so I don't know whether the inode that you're having
problems with is a shmem inode.