Re: [PATCH] mm: Optimize TLB flushes during page reclaim
From: Vinay Banakar
Date: Wed Jan 22 2025 - 06:09:34 EST
On Wed, Jan 22, 2025 at 2:59 AM Bharata B Rao <bharata@xxxxxxx> wrote:
> and one flush request is issued for the entire list. Where is the PMD
> level (512) batching done? Is that implicit elsewhere in the flow?
Yes, shrink_folio_list() operates on one PMD at a time, so
pageout_list will contain at most 512 pages during each call. Please
refer to madvise_cold_or_pageout_pte_range() in mm/madvise.c for more
details.
Thanks!
Vinay