Re: [f2fs-dev] [PATCH v2] f2fs: another way to set large folio by remembering inode number
From: Christoph Hellwig
Date: Wed May 27 2026 - 02:33:33 EST
On Tue, May 26, 2026 at 03:47:46AM +0000, Jaegeuk Kim wrote:
> Thanks for the feedback. Actually, I tried to do compact_memory before doing
> read() for AI loading, but I got complaints where it took hundreds milliseconds
> to run that compact_memory. Is there a good way to secure high-order pages before
> that read()? It was quite hard to project when it will happen.
Make sure that all files use large folios as much as possible so that
you have a lot of clean pagecache to reclaim.. Same for any other
easily reclaimable memory through shrinkers.