Message ID | 20200504131739.11246-1-laoar.shao@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [v2] mm, memcg: add workingset_restore in memory.stat | expand |
On Mon 04-05-20 09:17:39, Yafang Shao wrote: [...] > diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guide/cgroup-v2.rst > index bcc80269bb6a..0733b659e757 100644 > --- a/Documentation/admin-guide/cgroup-v2.rst > +++ b/Documentation/admin-guide/cgroup-v2.rst > @@ -1329,6 +1329,9 @@ PAGE_SIZE multiple when read back. > workingset_activate > Number of refaulted pages that were immediately activated > > + workingset_restore > + Number of transitioning of refaulted pages > + I believe something like the following would be more comprehensible "Number of restored pages which have been detected as an active workingset before they got reclaimed." > workingset_nodereclaim > Number of times a shadow node has been reclaimed >
On Mon, May 4, 2020 at 9:29 PM Michal Hocko <mhocko@kernel.org> wrote: > > On Mon 04-05-20 09:17:39, Yafang Shao wrote: > [...] > > diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guide/cgroup-v2.rst > > index bcc80269bb6a..0733b659e757 100644 > > --- a/Documentation/admin-guide/cgroup-v2.rst > > +++ b/Documentation/admin-guide/cgroup-v2.rst > > @@ -1329,6 +1329,9 @@ PAGE_SIZE multiple when read back. > > workingset_activate > > Number of refaulted pages that were immediately activated > > > > + workingset_restore > > + Number of transitioning of refaulted pages > > + > > I believe something like the following would be more comprehensible > "Number of restored pages which have been detected as an active > workingset before they got reclaimed." > Thanks. Will update it. > > workingset_nodereclaim > > Number of times a shadow node has been reclaimed > > > -- > Michal Hocko > SUSE Labs
diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guide/cgroup-v2.rst index bcc80269bb6a..0733b659e757 100644 --- a/Documentation/admin-guide/cgroup-v2.rst +++ b/Documentation/admin-guide/cgroup-v2.rst @@ -1329,6 +1329,9 @@ PAGE_SIZE multiple when read back. workingset_activate Number of refaulted pages that were immediately activated + workingset_restore + Number of transitioning of refaulted pages + workingset_nodereclaim Number of times a shadow node has been reclaimed diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 5beea03dd58a..0395e479995b 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -1451,6 +1451,8 @@ static char *memory_stat_format(struct mem_cgroup *memcg) memcg_page_state(memcg, WORKINGSET_REFAULT)); seq_buf_printf(&s, "workingset_activate %lu\n", memcg_page_state(memcg, WORKINGSET_ACTIVATE)); + seq_buf_printf(&s, "workingset_restore %lu\n", + memcg_page_state(memcg, WORKINGSET_RESTORE)); seq_buf_printf(&s, "workingset_nodereclaim %lu\n", memcg_page_state(memcg, WORKINGSET_NODERECLAIM));