Re: [PATCH] mm: vmscan: memcg: Add global shrink priority

From: Chris Down
Date: Sun Dec 29 2019 - 09:02:47 EST


Hi Hui,

teawater writes:
In the memory-constrained and complex multitasking environment such as an Android system may require more complex performance priority.
For example, the tasks of app in the font, they need high priority because low priority will affect the user experience at once.
The tasks of app in background should have lower priority than the first one. And sometime, each app should have different priority. Because some apps are frequently used. They should have high priority than other background apps.
The daemons should have lower priority than background apps. Because most of them will not affect the user experience.

In general I don't think it's meaningful to speculate about whether it would help or not without data and evidence gathering. It would really depend on how the system is composed overall. Is this a real problem you're seeing, or just something hypothetical?

If there is a real case to discuss, we can certainly discuss it. That said, at the very least I think the API needs to be easier to reason about rather than just exposing mm internals, and there needs to be a demonstration that it solves a real problem and existing controls are insufficient :-)

Thanks,

Chris