Skip to content

memcg: cleanup per-cpu charge caches

Michal Hocko linux-mm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 6 repliesIn review
  2. v14 patches 21 repliesSuperseded

Changes in v2 from the cover letter

- memcg: do not try to drain per-cpu caches without pages uses drain_cache_local for the current CPU
- added memcg: add mem_cgroup_same_or_subtree helper
- dropped "memcg: prevent from reclaiming if there are per-cpu cached charges" patch

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4memcg: do not try to drain per-cpu caches without pagesmm/memcontrol.c+7 -64 replies
2/4memcg: unify sync and async per-cpu charge cache drainingmm/memcontrol.c+34 -140 replies
3/4memcg: add mem_cgroup_same_or_subtree helpermm/memcontrol.c+26 -250 replies
4/4memcg: get rid of percpu_charge_mutex lockmm/memcontrol.c+2 -1014 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchKAMEZAWA HiroyukiMichal Hocko
1/4A-b A-b A-b
2/4R-b
3/4A-b
4/4A-b

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

Read the v2 thread

Cover letter [PATCH 0/4 v2] memcg: cleanup per-cpu charge caches

Hi,
this is a second version of the per-cpu carge draining code cleanup. I have dropped the "fix unnecessary reclaim if there are still cached charges" part because it seems to have some issues and it is not critical at the moment.

I think that the cleanup has some sense on its own.

Changes since v1:
- memcg: do not try to drain per-cpu caches without pages uses drain_cache_local for the current CPU
- added memcg: add mem_cgroup_same_or_subtree helper
- dropped "memcg: prevent from reclaiming if there are per-cpu cached charges" patch

Michal Hocko (4):
memcg: do not try to drain per-cpu caches without pages
memcg: unify sync and async per-cpu charge cache draining
memcg: add mem_cgroup_same_or_subtree helper
memcg: get rid of percpu_charge_mutex lock

 mm/memcontrol.c |  110 +++++++++++++++++++++++++++++++------------------------
 1 files changed, 62 insertions(+), 48 deletions(-)
Signature · 8 lines
1.7.5.4

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>