Re: [RFC PATCH] mm: don't promote exclusive file folios of dying processes
From: Barry Song
Date: Thu Apr 17 2025 - 20:16:29 EST
On Thu, Apr 17, 2025 at 8:57 PM David Hildenbrand <david@xxxxxxxxxx> wrote:
>
> >> We actually took a more aggressive approach by implementing a hook to demote
> >> exclusive folios of dying apps, which yielded good results—reducing kswapd
> >> overhead, refaults, and thrashing. Of course, it is even much more controversial
> >> than this patch.
> >
> > That doesn't sound wrong to me for Android apps.
> >
> > How about a prctl() to request the behavior for those specific app
> > processes where you have clear usage signal?
>
> I was thinking about the same, so likely that might be a viable solution.
Many thanks to both Johannes and David for the suggestion. I’d be delighted to
take a look at this.
>
> --
> Cheers,
>
> David / dhildenb
>
Thanks
Barry