On Wed, Jan 24, 2024 at 08:43:07PM +0800, Zhiguo Jiang wrote:1 Yes, this patch has been tested.
If the shrinking folio is belong to the exiting task, this folio shouldWhat testing have you done of this patch? How often does it happen?
be freed in the task exit flow rather than being reclaimed in the shrink
flow, because the former takes less time.
If the folio which is belong to the exiting task is reclaimed in the
shrink flow, such as the anon folio, the anon folio needs to be first
written to the swap partition by swap-in in shrink flow, and then the
corresponding swap folio needs to be released in the task exiting flow.
As is well known, releasing a swap folio will task more time than
releasing directly an anon folio.
In the scenarios of the low memory system and mutil backed-applications,
the time-consuming problem caused by shrinking the exiting task's folios
will be more severe.
Are there particular workloads that benefit from this? (I'm not sure
what "mutil backed-applications" are?)
Has been tested.
And I do mean specifically of this patch, because to my eyes it
shouldn't even compile.