Re: [PATCH v1 2/3] mm: process_mrelease: skip LRU movement for exclusive file folios

Michal Hocko
2026-04-29T08:18:45Z

On Tue 28-04-26 18:19:31, Minchan Kim wrote:
> On Tue, Apr 28, 2026 at 08:56:36AM +0200, Michal Hocko wrote:
[...]
> > DESCRIPTION
> > The process_mrelease() system call is used to free the memory of
> > an exiting process.
>
> "Free the memory of an exiting process" implies all memory, not just
> anonymous. User cannot know it will free only anonymous, and I am trying to
> make it work as intended by completing a symmetric reclamation path.

Page cache doesn't belong to any process.

[...]

> >From cf292f8f8ead8df9161aad342c36633ffa90257f Mon Sep 17 00:00:00 2001
> From: Minchan Kim <minchan@kernel.org>
> Date: Tue, 28 Apr 2026 16:39:06 -0700
> Subject: [PATCH] mm: process_mrelease: skip LRU movement and expedite clean
> file folio reclaim

I will let others to discuss this. I maintain my position that this is a
hack for a very particular use case and you still seem to not explain
non-Android users of the syscall. Anyway, I will not repeat myself here.

--
Michal Hocko
SUSE Labs