Re: [PATCH 2/2] mm: multi-gen lru: fix stat count

2023-10-18 Thread Huan Yang
在 2023/10/19 10:39, Yu Zhao 写道: On Wed, Oct 18, 2023 at 8:17 PM Huan Yang wrote: Hi Yu Zhao, Thanks for your reply. 在 2023/10/19 0:21, Yu Zhao 写道: On Wed, Oct 18, 2023 at 2:22 AM Huan Yang wrote: For multi-gen lru reclaim in evict_folios, like shrink_inactive_list, gather folios which is

Re: [PATCH 2/2] mm: multi-gen lru: fix stat count

2023-10-18 Thread Yu Zhao
On Wed, Oct 18, 2023 at 8:17 PM Huan Yang wrote: > > Hi Yu Zhao, > > Thanks for your reply. > > 在 2023/10/19 0:21, Yu Zhao 写道: > > On Wed, Oct 18, 2023 at 2:22 AM Huan Yang wrote: > >> For multi-gen lru reclaim in evict_folios, like shrink_inactive_list, > >> gather folios which isolate to reclai

Re: [PATCH 2/2] mm: multi-gen lru: fix stat count

2023-10-18 Thread Huan Yang
Hi Yu Zhao, Thanks for your reply. 在 2023/10/19 0:21, Yu Zhao 写道: On Wed, Oct 18, 2023 at 2:22 AM Huan Yang wrote: For multi-gen lru reclaim in evict_folios, like shrink_inactive_list, gather folios which isolate to reclaim, and invoke shirnk_folio_list. But, when complete shrink, it not gat

Re: [PATCH 2/2] mm: multi-gen lru: fix stat count

2023-10-18 Thread Yu Zhao
On Wed, Oct 18, 2023 at 2:22 AM Huan Yang wrote: > > For multi-gen lru reclaim in evict_folios, like shrink_inactive_list, > gather folios which isolate to reclaim, and invoke shirnk_folio_list. > > But, when complete shrink, it not gather shrink reclaim stat into sc, > we can't get info like nr_d

[PATCH 2/2] mm: multi-gen lru: fix stat count

2023-10-18 Thread Huan Yang
For multi-gen lru reclaim in evict_folios, like shrink_inactive_list, gather folios which isolate to reclaim, and invoke shirnk_folio_list. But, when complete shrink, it not gather shrink reclaim stat into sc, we can't get info like nr_dirty\congested in reclaim, and then control writeback, dirty