Re: [PATCH] mm: memcontrol: add file_thp, shmem_thp to memory.stat

From: Song Liu
Date: Mon Oct 26 2020 - 16:25:17 EST




> On Oct 22, 2020, at 8:18 AM, Johannes Weiner <hannes@xxxxxxxxxxx> wrote:
>
> As huge page usage in the page cache and for shmem files proliferates
> in our production environment, the performance monitoring team has
> asked for per-cgroup stats on those pages.
>
> We already track and export anon_thp per cgroup. We already track file
> THP and shmem THP per node, so making them per-cgroup is only a matter
> of switching from node to lruvec counters. All callsites are in places
> where the pages are charged and locked, so page->memcg is stable.
>
> Signed-off-by: Johannes Weiner <hannes@xxxxxxxxxxx>

Acked-by: Song Liu <songliubraving@xxxxxx>

Thanks!