Re: [RFC][mm] [PATCH 3/4] Memory cgroup hierarchical reclaim (v3)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: KAMEZAWA Hiroyuki
Date: Tuesday, November 11, 2008 - 10:02 pm

On Tue, 11 Nov 2008 18:04:17 +0530
Balbir Singh <balbir@linux.vnet.ibm.com> wrote:



Hmm, does this function is necessary to be complex as this ?
I'm sorry I don't have enough time to review now. (chasing memory online/offline bug.)

But I can't convice this is a good way to reclaim in hierachical manner.

In following tree, Assume that processes hit limitation of Level_2.

   Level_1 (no limit)
	-> Level_2	(limit=1G)
		-> Level_3_A (usage=30M)
		-> Level_3_B (usage=100M)
			-> Level_4_A (usage=50M)
			-> Level_4_B (usage=400M)
			-> Level_4_C (usage=420M)

Even if we know Level_4_C incudes tons of Inactive file caches,
some amount of swap-out will occur until reachin Level_4_C.

Can't we do this hierarchical reclaim in another way ?
(start from Level_4_C because we know it has tons of inactive caches.)

This style of recursive call doesn't have chance to do kind of optimization.
Can we do this reclaim in more flat manner as loop like following
=
try:
  select the most inactive one
	-> try_to_fre_memory
		-> check limit
			-> go to try;
==

?

Thanks,
-Kame











--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC][mm] [PATCH 3/4] Memory cgroup hierarchical recla ..., KAMEZAWA Hiroyuki, (Tue Nov 11, 8:52 pm)
Re: [RFC][mm] [PATCH 3/4] Memory cgroup hierarchical recla ..., KAMEZAWA Hiroyuki, (Tue Nov 11, 10:02 pm)
Re: [RFC][mm] [PATCH 3/4] Memory cgroup hierarchical recla ..., KAMEZAWA Hiroyuki, (Tue Nov 11, 11:01 pm)
Re: [RFC][mm] [PATCH 3/4] Memory cgroup hierarchical recla ..., KAMEZAWA Hiroyuki, (Tue Nov 11, 11:12 pm)
Re: [RFC][mm] [PATCH 3/4] Memory cgroup hierarchical recla ..., KAMEZAWA Hiroyuki, (Tue Nov 11, 11:33 pm)
Re: [RFC][mm] [PATCH 3/4] Memory cgroup hierarchical recla ..., KAMEZAWA Hiroyuki, (Wed Nov 12, 9:18 pm)