Re: [PATCH] mm: madvise: drop MADV_PAGEOUT folios at swap writeback completion
From: David Hildenbrand (Arm)
Date: Mon Sep 21 2026 - 12:12:21 EST
On 9/21/26 17:24, Alexandre Ghiti wrote:
> On an asynchronous swap device MADV_PAGEOUT only marks the folio
> PG_reclaim and rotates it to the tail of the inactive list once its
> writeback completes, so the memory is not actually freed until a later
> reclaim scan removes the by then clean swap cache folio.
But we have the same behavior when just reclaiming memory ordinarily? It's added
to the swapcache and only the next scan actually frees up the memory.
Wouldn't we memory we reclaim ... just gone, like in the sync case?
--
Cheers,
David