Message ID | 20250318075833.90615-3-jiahao.kernel@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | Adding Proactive Memory Reclaim Statistics | expand |
On Tue, Mar 18, 2025 at 03:58:33PM +0800, Hao Jia <jiahao.kernel@gmail.com> wrote: > From: Hao Jia <jiahao1@lixiang.com> > > The commit 15ff4d409e1a ("mm/memcontrol: add per-memcg pgpgin/pswpin > counter") introduced the pswpin and pswpout items in the memory.stat > of cgroup v2. Therefore, update them accordingly in the cgroup-v2 > documentation. Fixes: 15ff4d409e1a ("mm/memcontrol: add per-memcg pgpgin/pswpin counter") > Signed-off-by: Hao Jia <jiahao1@lixiang.com> > --- > Documentation/admin-guide/cgroup-v2.rst | 6 ++++++ > 1 file changed, 6 insertions(+) Thanks, Michal
On Tue, Mar 18, 2025 at 03:58:33PM +0800, Hao Jia wrote: > From: Hao Jia <jiahao1@lixiang.com> > > The commit 15ff4d409e1a ("mm/memcontrol: add per-memcg pgpgin/pswpin > counter") introduced the pswpin and pswpout items in the memory.stat > of cgroup v2. Therefore, update them accordingly in the cgroup-v2 > documentation. > > Signed-off-by: Hao Jia <jiahao1@lixiang.com> Acked-by: Tejun Heo <tj@kernel.org> Probably best to route it through -mm. If this should go through cgroup, please let me know. Thanks.
On Tue, Mar 18, 2025 at 03:58:33PM +0800, Hao Jia wrote: > From: Hao Jia <jiahao1@lixiang.com> > > The commit 15ff4d409e1a ("mm/memcontrol: add per-memcg pgpgin/pswpin > counter") introduced the pswpin and pswpout items in the memory.stat > of cgroup v2. Therefore, update them accordingly in the cgroup-v2 > documentation. > > Signed-off-by: Hao Jia <jiahao1@lixiang.com> Acked-by: Johannes Weiner <hannes@cmpxchg.org>
diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guide/cgroup-v2.rst index d6692607f80a..c0ae7a76005a 100644 --- a/Documentation/admin-guide/cgroup-v2.rst +++ b/Documentation/admin-guide/cgroup-v2.rst @@ -1555,6 +1555,12 @@ The following nested keys are defined. workingset_nodereclaim Number of times a shadow node has been reclaimed + pswpin (npn) + Number of pages swapped into memory + + pswpout (npn) + Number of pages swapped out of memory + pgscan (npn) Amount of scanned pages (in an inactive LRU list)