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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...>
Cc: linux-mm@kvack.org <linux-mm@...>, LKML <linux-kernel@...>, menage@google.com <menage@...>, xemul@openvz.org <xemul@...>, yamamoto@valinux.co.jp <yamamoto@...>
Date: Monday, June 9, 2008 - 5:48 am

KAMEZAWA Hiroyuki wrote:

We'd definitely like to see a user level tool/application as a demo of how this
can be achieved.


Soft limits has been on my plate for a while now. I'll take a crack at it. At
the moment the statistics is a bit of a worry, since users/administrators need
good statistics to take further action.


The other reason for preferring a shares based approach is that, the it will be
more in line with the CPU controllers interfaces.



I would prefer to use a better name, lent_out? reserved_for_children?
borrowed_by_children?


RES_BORROWED? RES_BORROWED_BY_CHILDREN?


OK, after reading this I am totally sure I want a shares based interface. Limits
are not shared like this.

A child and a parent should both be capable of having a limit of 1G, but they
could use different shares factors to govern, how much each children will get.
Doing it this way, breaks limit semantics.




I'm afraid, I don't understand the set_strategy and it's purpose.


I don't like the idea of spinning in an infinite loop, I would prefer to fail
things instead of burning CPU cycles.


This code is not very understandable. Why do we yield before callback?


Ditto comments as above.


-- 
	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: hierarchy support (v3), KAMEZAWA Hiroyuki, (Wed Jun 4, 12:58 am)
Re: [RFC][PATCH 0/2] memcg: hierarchy support (v3), Balbir Singh, (Mon Jun 9, 5:30 am)
Re: [RFC][PATCH 0/2] memcg: hierarchy support (v3), KAMEZAWA Hiroyuki, (Mon Jun 9, 5:55 am)
Re: [RFC][PATCH 0/2] memcg: hierarchy support (v3), Balbir Singh, (Mon Jun 9, 6:33 am)
Re: [RFC][PATCH 0/2] memcg: hierarchy support (v3), Paul Menage, (Wed Jun 4, 4:59 am)
Re: [RFC][PATCH 0/2] memcg: hierarchy support (v3), KAMEZAWA Hiroyuki, (Wed Jun 4, 5:15 am)
Re: [RFC][PATCH 0/2] memcg: hierarchy support (v3), Paul Menage, (Wed Jun 4, 5:15 am)
Re: [RFC][PATCH 0/2] memcg: hierarchy support (v3), KAMEZAWA Hiroyuki, (Wed Jun 4, 5:31 am)
[RFC][PATCH 2/2] memcg: hardwall hierarhcy for memcg, KAMEZAWA Hiroyuki, (Wed Jun 4, 1:03 am)
Re: [RFC][PATCH 2/2] memcg: hardwall hierarhcy for memcg, KAMEZAWA Hiroyuki, (Thu Jun 12, 1:00 am)
Re: [RFC][PATCH 2/2] memcg: hardwall hierarhcy for memcg, Daisuke Nishimura, (Wed Jun 4, 8:32 am)
Re: [RFC][PATCH 2/2] memcg: hardwall hierarhcy for memcg, KAMEZAWA Hiroyuki, (Wed Jun 4, 8:04 pm)
Re: [RFC][PATCH 2/2] memcg: hardwall hierarhcy for memcg, KAMEZAWA Hiroyuki, (Wed Jun 4, 5:26 am)
Re: [RFC][PATCH 2/2] memcg: hardwall hierarhcy for memcg, Daisuke Nishimura, (Wed Jun 4, 8:53 am)
Re: [RFC][PATCH 2/2] memcg: hardwall hierarhcy for memcg, KAMEZAWA Hiroyuki, (Wed Jun 4, 2:54 am)
[RFC][PATCH 1/2] memcg: res_counter hierarchy, KAMEZAWA Hiroyuki, (Wed Jun 4, 1:01 am)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy, Randy Dunlap, (Wed Jun 11, 7:24 pm)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy, KAMEZAWA Hiroyuki, (Thu Jun 12, 12:59 am)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy, Balbir Singh, (Mon Jun 9, 5:48 am)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy, KAMEZAWA Hiroyuki, (Mon Jun 9, 6:20 am)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy, Balbir Singh, (Mon Jun 9, 6:37 am)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy, Paul Menage, (Wed Jun 4, 4:59 am)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy, KAMEZAWA Hiroyuki, (Wed Jun 4, 5:18 am)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy, YAMAMOTO Takashi, (Wed Jun 4, 3:20 am)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy, KAMEZAWA Hiroyuki, (Wed Jun 4, 3:32 am)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy, KAMEZAWA Hiroyuki, (Wed Jun 4, 3:03 am)