linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] do not account memory used for cache creation
@ 2013-06-09 12:45 Glauber Costa
  2013-06-09 12:45 ` [PATCH v2 1/2] memcg: also test for skip accounting at the page allocation level Glauber Costa
  2013-06-09 12:45 ` [PATCH v2 2/2] memcg: do not account memory used for cache creation Glauber Costa
  0 siblings, 2 replies; 3+ messages in thread
From: Glauber Costa @ 2013-06-09 12:45 UTC (permalink / raw)
  To: linux-mm; +Cc: akpm, mhocko, hannes, kamezawa.hiroyu, Glauber Costa

The memory we used to hold the memcg arrays is currently accounted to
the current memcg. But that creates a problem, because that memory can
only be freed after the last user is gone. Our only way to know which is
the last user, is to hook up to freeing time, but the fact that we still
have some in flight kmallocs will prevent freeing to happen. I believe
therefore to be just easier to account this memory as global overhead.

>From my last submission, Michal rightfully noted that this will break
when SLUB is used and allocations are big enough, since those will bypass
the cache mechanism and go directly to the page allocator. To fix this,
we need an extra patch that instructs the memcg kmem page charging to check
the bypass flag as well.

Glauber Costa (2):
  memcg: also test for skip accounting at the page allocation level
  memcg: do not account memory used for cache creation

 mm/memcontrol.c | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

-- 
1.8.2.1

--
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] 3+ messages in thread

end of thread, other threads:[~2013-06-09 12:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-09 12:45 [PATCH v2 0/2] do not account memory used for cache creation Glauber Costa
2013-06-09 12:45 ` [PATCH v2 1/2] memcg: also test for skip accounting at the page allocation level Glauber Costa
2013-06-09 12:45 ` [PATCH v2 2/2] memcg: do not account memory used for cache creation Glauber Costa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).