Skip to content

Reduce overhead of memcg when unused

Mel Gorman cgroups linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm, memcg: Try charging a page before setting page up to datemm/memory.c+6 -44 replies
2/2mm, memcg: Optionally disable memcg by default using KconfigDocumentation/kernel-parameters.txt init/Kconfig kernel/cgroup.c +1 more+38 -45 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMichal HockoJohannes Weiner
1/2A-b A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] Reduce overhead of memcg when unused

These are two patches to reduce the overhead of memcg, particularly when it's not used. The first is a simple reordering of when a barrier is applied which memcg happens to get burned by. I doubt it is controversial at all.

The second optionally disables memcg by default. This should have been the default from the start and it matches what Debian already does today. The difficulty is that existing installations may break if the new kernel parameter is not applied so distributions need to be careful with upgrades. The difference it makes is marginal and only visible in profiles, not headline performance. It'd be understandable if memcg maintainers rejected it but I'll leave it up to them.

 Documentation/kernel-parameters.txt |  4 ++++
 init/Kconfig                        | 15 +++++++++++++++
 kernel/cgroup.c                     | 20 ++++++++++++++++----
 mm/memcontrol.c                     |  3 +++
 mm/memory.c                         | 10 ++++++----
 5 files changed, 44 insertions(+), 8 deletions(-)
Signature · 1 line
2.3.5