[PATCH 1/2] tracing: mm: multigen-lru: fix mglru trace

2023-10-20 Thread Huan Yang
This patch add reclaim stat: nr_promote: nr_pages shrink before promote by folio_update_gen. And then, use correct nr_scanned which evict_folios passed into trace_mm_vmscan_lru_shrink_inactive. Mistake info like this: ``` kswapd0-89[000]64.887613: mm_vmscan_lru_shrink_inactive: nid=0

Re: [PATCH 1/2] tracing: mm: multigen-lru: fix mglru trace

2023-10-18 Thread Huan Yang
在 2023/10/19 0:28, Yu Zhao 写道: On Wed, Oct 18, 2023 at 2:22 AM Huan Yang wrote: This patch add two reclaim stat: nr_promote: nr_pages shrink before promote by folio_update_gen. nr_demote: nr_pages NUMA demotion passed. The above isn't specific to MLGRU, so they should be in a separate

Re: [PATCH 1/2] tracing: mm: multigen-lru: fix mglru trace

2023-10-18 Thread Yu Zhao
On Wed, Oct 18, 2023 at 2:22 AM Huan Yang wrote: > > This patch add two reclaim stat: > nr_promote: nr_pages shrink before promote by folio_update_gen. > nr_demote: nr_pages NUMA demotion passed. The above isn't specific to MLGRU, so they should be in a separate patchset. > And then, use

[PATCH 1/2] tracing: mm: multigen-lru: fix mglru trace

2023-10-18 Thread Huan Yang
This patch add two reclaim stat: nr_promote: nr_pages shrink before promote by folio_update_gen. nr_demote: nr_pages NUMA demotion passed. And then, use correct nr_scanned which evict_folios passed into trace_mm_vmscan_lru_shrink_inactive. Mistake info like this: ``` kswapd0-89[000]