Re: [RFC][PATCH 1/5] memcg : force_empty to do move account
From: KAMEZAWA Hiroyuki <hidden>
Date: 2008-11-04 06:18:32
Also in:
lkml
On Mon, 3 Nov 2008 22:15:41 -0800 Paul Menage [off-list ref] wrote:
On Thu, Oct 30, 2008 at 6:52 PM, KAMEZAWA Hiroyuki [off-list ref] wrote:quoted
This patch provides a function to move account information of a page between mem_cgroups and rewrite force_empty to make use of this.One part of this that wasn't clear to me - if a cgroup has a lot of unmapped pagecache sitting around but no tasks, and we try to rmdir it, then all the pagecache gets moved to the parent too? Or just the stray mapped pages?
All page caches will be moved to. (I'll add "shrink_usage" interface to drop page caches, later.)
quoted
@@ -597,7 +709,7 @@ static int mem_cgroup_charge_common(stru prefetchw(pc); mem = memcg; - ret = mem_cgroup_try_charge(mm, gfp_mask, &mem); + ret = __mem_cgroup_try_charge(mm, gfp_mask, &mem, true);Isn't this the same as the definition of mem_cgroup_try_charge()? So you could leave it as-is?
try_charge is called by other places....swapin. Thanks, -Kame -- 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>