Re: [PATCH] mm: vmscan: memcg: Add global shrink priority
From: teawater
Date: Sun Dec 29 2019 - 22:32:51 EST
> 在 2019年12月29日,22:02,Chris Down <chris@xxxxxxxxxxxxxx> 写道:
>
> 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
Thanks! Agree with you.
Best,
Hui