]> Git Repo - linux.git/commit
mm: memcontrol: expose THP events on a per-memcg basis
authorChris Down <[email protected]>
Tue, 5 Mar 2019 23:48:09 +0000 (15:48 -0800)
committerLinus Torvalds <[email protected]>
Wed, 6 Mar 2019 05:07:19 +0000 (21:07 -0800)
commit1ff9e6e1798c7670ea6a7680a1ad5582df2fa914
tree6050ceb4029e34bd694454533bb81d02b5afa9c9
parent2bb0f34fe3c1f04196cbcf8aa86b0a9371f6938d
mm: memcontrol: expose THP events on a per-memcg basis

Currently THP allocation events data is fairly opaque, since you can
only get it system-wide.  This patch makes it easier to reason about
transparent hugepage behaviour on a per-memcg basis.

For anonymous THP-backed pages, we already have MEMCG_RSS_HUGE in v1,
which is used for v1's rss_huge [sic].  This is reused here as it's
fairly involved to untangle NR_ANON_THPS right now to make it per-memcg,
since right now some of this is delegated to rmap before we have any
memcg actually assigned to the page.  It's a good idea to rework that,
but let's leave untangling THP allocation for a future patch.

[[email protected]: fix build]
[[email protected]: fix memcontrol build when THP is disabled]
Link: http://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Chris Down <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Roman Gushchin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Documentation/admin-guide/cgroup-v2.rst
mm/huge_memory.c
mm/khugepaged.c
mm/memcontrol.c
This page took 0.056303 seconds and 4 git commands to generate.