Re: [RFC PATCH] mm: don't promote exclusive file folios of dying processes

From: David Hildenbrand
Date: Thu Apr 17 2025 - 08:57:53 EST


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.

--
Cheers,

David / dhildenb