On 04/12/2012 08:28 AM, KAMEZAWA Hiroyuki wrote: > Now, at rmdir, memory cgroup's charge will be moved to > - parent if use_hierarchy=1 > - root if use_hierarchy=0 > > Then, we don't have to have memory reclaim code at destroying memcg. > > This patch divides force_empty to 2 functions as > > - memory_cgroup_recharge() ... try to move all charges to ancestors. > - memory_cgroup_force_empty().. try to reclaim all memory. > > After this patch, memory.force_empty will _not_ move charges to ancestors > but just reclaim all pages. (This meets documenation.) > > rmdir() will not reclaim any memory but moves charge to other cgroup, > parent or root. > > Signed-off-by: KAMEZAWA Hiroyuki<kamezawa.hiroyu@xxxxxxxxxxxxxx> Seems fine by me... -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. 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:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>