Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <kamezawa.hiroyu@...>
Cc: <linux-mm@...>, LKML <linux-kernel@...>, <xemul@...>, <menage@...>, <yamamoto@...>, <lizf@...>
Date: Saturday, May 31, 2008 - 7:20 am

kamezawa.hiroyu@jp.fujitsu.com wrote:

One way to manage hierarchies other than via limits is to use shares (please see
the shares used by the cpu controller). Basically, what you've done with limits
is done with shares

If a parent has 100 shares, then it can decide how many to pass on to it's  children
based on the shares of the child and your logic would work well. I propose
assigning top level (high resolution) shares to the root of the cgroup and in a
hierarchy passing them down to children and sharing it with them. Based on the
shares, deduce the limit of each node in the hierarchy.

What do you think?


-- 
	Warm Regards,
	Balbir Singh
	Linux Technology Center
	IBM, ISTL
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC][PATCH 0/2] memcg: simple hierarchy (v2), KAMEZAWA Hiroyuki, (Thu May 29, 9:43 pm)
Re: [RFC][PATCH 0/2] memcg: simple hierarchy (v2), Rik van Riel, (Thu May 29, 9:46 pm)
[RFC][PATCH 2/2] memcg: memcg hierarchy, KAMEZAWA Hiroyuki, (Thu May 29, 9:46 pm)
[RFC][PATCH 1/2] memcg: res_counter hierarchy, KAMEZAWA Hiroyuki, (Thu May 29, 9:45 pm)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy, YAMAMOTO Takashi, (Sun Jun 1, 10:15 pm)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy, Balbir Singh, (Fri May 30, 6:20 pm)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy, Balbir Singh, (Sat May 31, 7:20 am)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy, Balbir Singh, (Sat May 31, 1:18 pm)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy, Balbir Singh, (Mon Jun 2, 2:16 am)