diff options
| author | Yuanchu Xie <[email protected]> | 2024-08-13 09:37:59 -0700 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-09-01 20:26:08 -0700 |
| commit | bceeeaed4817ba7ad9013b4116c97220a60fcf7c (patch) | |
| tree | dacb024bfa4b0576c3d6fe3620dc8e5d78a2fb47 /tools/perf/scripts/python | |
| parent | 6963f00813f49375360544fe923e62f2070601af (diff) | |
mm: multi-gen LRU: ignore non-leaf pmd_young for force_scan=true
When non-leaf pmd accessed bits are available, MGLRU page table walks can
clear the non-leaf pmd accessed bit and ignore the accessed bit on the pte
if it's on a different node, skipping a generation update as well. If
another scan occurs on the same node as said skipped pte.
The non-leaf pmd accessed bit might remain cleared and the pte accessed
bits won't be checked. While this is sufficient for reclaim-driven aging,
where the goal is to select a reasonably cold page, the access can be
missed when aging proactively for workingset estimation of a node/memcg.
In more detail, get_pfn_folio returns NULL if the folio's nid != node
under scanning, so the page table walk skips processing of said pte. Now
the pmd_young flag on this pmd is cleared, and if none of the pte's are
accessed before another scan occurs on the folio's node, the pmd_young
check fails and the pte accessed bit is skipped.
Since force_scan disables various other optimizations, we check force_scan
to ignore the non-leaf pmd accessed bit.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Yuanchu Xie <[email protected]>
Acked-by: Yu Zhao <[email protected]>
Cc: "Huang, Ying" <[email protected]>
Cc: Lance Yang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions