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?