linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -mm 0/6] memcg: release memcg_cache_id on css offline
@ 2014-07-21 11:47 Vladimir Davydov
  2014-07-21 11:47 ` [PATCH -mm 1/6] slub: remove kmemcg id from create_unique_id Vladimir Davydov
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Vladimir Davydov @ 2014-07-21 11:47 UTC (permalink / raw)
  To: akpm; +Cc: mhocko, hannes, cl, linux-mm, linux-kernel

Hi,

Currently memcg_cache_id (mem_cgroup->kmemcg_id), which is used for
indexing memcg_caches arrays, is released only on css free. As a result,
offline css, whose number is actually limited only by amount of free
RAM, will occupy slots in these arrays making them grow larger and
larger even if there's only a few kmem active memory cgroups out there.

This patch set makes memcg release memcg_cache_id on css offline. This
way the memcg_caches arrays size will be limited by the number of alive
kmem-active memory cgroups, which is much better.

The work is actually done in patch 6 while patches 1-5 only prepare
memcg and slab subsystems to this change.

Thanks,

Vladimir Davydov (6):
  slub: remove kmemcg id from create_unique_id
  slab: use mem_cgroup_id for per memcg cache naming
  memcg: make memcg_cache_id static
  memcg: add pointer to owner cache to memcg_cache_params
  memcg: keep all children of each root cache on a list
  memcg: release memcg_cache_id on css offline

 include/linux/memcontrol.h |    9 +---
 include/linux/slab.h       |    7 ++-
 mm/memcontrol.c            |  112 +++++++++++++++++++++++++++-----------------
 mm/slab.c                  |   40 +++++++++-------
 mm/slab_common.c           |   44 ++++++++---------
 mm/slub.c                  |   45 +++++++++---------
 6 files changed, 140 insertions(+), 117 deletions(-)

-- 
1.7.10.4

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-07-23 10:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-21 11:47 [PATCH -mm 0/6] memcg: release memcg_cache_id on css offline Vladimir Davydov
2014-07-21 11:47 ` [PATCH -mm 1/6] slub: remove kmemcg id from create_unique_id Vladimir Davydov
2014-07-21 11:47 ` [PATCH -mm 2/6] slab: use mem_cgroup_id for per memcg cache naming Vladimir Davydov
2014-07-21 11:47 ` [PATCH -mm 3/6] memcg: make memcg_cache_id static Vladimir Davydov
2014-07-21 11:47 ` [PATCH -mm 4/6] memcg: add pointer to owner cache to memcg_cache_params Vladimir Davydov
2014-07-21 11:47 ` [PATCH -mm 5/6] memcg: keep all children of each root cache on a list Vladimir Davydov
2014-07-21 11:47 ` [PATCH -mm 6/6] memcg: release memcg_cache_id on css offline Vladimir Davydov
2014-07-23 10:53 ` [PATCH -mm 0/6] " Vladimir Davydov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox