Re: [PATCH v3] mm: memcg: add THP swap out info for anonymous reclaim

From: Johannes Weiner
Date: Wed Sep 13 2023 - 13:38:08 EST


On Thu, Sep 14, 2023 at 12:49:37AM +0800, Vern Hao wrote:
> From: Xin Hao <vernhao@xxxxxxxxxxx>
>
> At present, we support per-memcg reclaim strategy, however we do not
> know the number of transparent huge pages being reclaimed, as we know
> the transparent huge pages need to be splited before reclaim them, and
> they will bring some performance bottleneck effect. for example, when
> two memcg (A & B) are doing reclaim for anonymous pages at same time,
> and 'A' memcg is reclaiming a large number of transparent huge pages, we
> can better analyze that the performance bottleneck will be caused by 'A'
> memcg. therefore, in order to better analyze such problems, there add
> THP swap out info for per-memcg.
>
> Suggested-by: Johannes Weiner <hannes@xxxxxxxxxxx>
> Signed-off-by: Xin Hao <vernhao@xxxxxxxxxxx>

Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>